2008-10-26 00:38:12 +02:00
|
|
|
--- configure.orig 2008-10-26 00:36:04.000000000 +0200
|
|
|
|
+++ configure 2008-10-26 00:36:46.000000000 +0200
|
2008-10-22 16:51:18 +02:00
|
|
|
@@ -169,20 +169,9 @@ SHAREDLIBV=${SHAREDLIBV-"libz$shared_ext
|
|
|
|
SHAREDLIBM=${SHAREDLIBM-"libz$shared_ext.$VER1"}
|
|
|
|
|
|
|
|
if test $shared -eq 1; then
|
|
|
|
- echo Checking for shared library support...
|
|
|
|
- # we must test in two steps (cc then ld), required at least on SunOS 4.x
|
|
|
|
- if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
|
|
|
|
- test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
|
|
|
|
CFLAGS="$SFLAGS"
|
2008-10-26 00:38:12 +02:00
|
|
|
- LIBS="$SHAREDLIBV"
|
|
|
|
- echo Building shared library $SHAREDLIBV with $CC.
|
2008-10-22 16:51:18 +02:00
|
|
|
- elif test -z "$old_cc" -a -z "$old_cflags"; then
|
|
|
|
- echo No shared library support.
|
|
|
|
- shared=0;
|
|
|
|
- else
|
|
|
|
- echo 'No shared library support; try without defining CC and CFLAGS'
|
|
|
|
- shared=0;
|
|
|
|
- fi
|
2008-10-26 00:38:12 +02:00
|
|
|
+ LIBS="libz.a $SHAREDLIBV"
|
|
|
|
+ echo Building static and shared library $SHAREDLIBV with $CC.
|
2008-10-22 16:51:18 +02:00
|
|
|
fi
|
|
|
|
if test $shared -eq 0; then
|
|
|
|
LDSHARED="$CC"
|