summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 51ef10f..68bfc88 100755
--- a/configure
+++ b/configure
@@ -19,6 +19,7 @@
19# an error. 19# an error.
20 20
21LIBS=libz.a 21LIBS=libz.a
22LDFLAGS="-L. ${LIBS}"
22SHAREDLIB=libz.so 23SHAREDLIB=libz.so
23VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` 24VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`
24AR=${AR-"ar rc"} 25AR=${AR-"ar rc"}
@@ -53,6 +54,10 @@ case "$1" in
53 esac 54 esac
54done 55done
55 56
57if [ $shared -eq 1 ]; then
58 LDFLAGS="-L. ${SHAREDLIB}"
59fi
60
56test=ztest$$ 61test=ztest$$
57cat > $test.c <<EOF 62cat > $test.c <<EOF
58extern int getchar(); 63extern int getchar();
@@ -123,6 +128,10 @@ else
123 SFLAGS=${CFLAGS-"-KPIC -O"} 128 SFLAGS=${CFLAGS-"-KPIC -O"}
124 CFLAGS=${CFLAGS-"-O"} 129 CFLAGS=${CFLAGS-"-O"}
125 LDSHARED=${LDSHARED-"cc -G"};; 130 LDSHARED=${LDSHARED-"cc -G"};;
131 AIX*) # Courtesy of dbakker@arrayasolutions.com
132 SFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
133 CFLAGS=${CFLAGS-"-O -qmaxmem=8192"}
134 LDSHARED=${LDSHARED-"xlc -G"};;
126 # send working options for other systems to support@gzip.org 135 # send working options for other systems to support@gzip.org
127 *) SFLAGS=${CFLAGS-"-O"} 136 *) SFLAGS=${CFLAGS-"-O"}
128 CFLAGS=${CFLAGS-"-O"} 137 CFLAGS=${CFLAGS-"-O"}
@@ -422,4 +431,5 @@ sed < Makefile.in "
422/^exec_prefix *=/s%=.*%=$exec_prefix% 431/^exec_prefix *=/s%=.*%=$exec_prefix%
423/^libdir *=/s%=.*%=$libdir% 432/^libdir *=/s%=.*%=$libdir%
424/^includedir *=/s%=.*%=$includedir% 433/^includedir *=/s%=.*%=$includedir%
434/^LDFLAGS *=/s%=.*%=$LDFLAGS%
425" > Makefile 435" > Makefile