diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:10 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:22:10 -0700 |
commit | 8e34b3a8024c028dd9fd21d70525fc6d215efde5 (patch) | |
tree | 896a32f54abdf42ae3c1bb3c5d5627668b481ce4 /configure | |
parent | 13a294f044ef0a89b2dcbfbb5d4d4c792673348e (diff) | |
download | zlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.tar.gz zlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.tar.bz2 zlib-8e34b3a8024c028dd9fd21d70525fc6d215efde5.zip |
zlib 1.2.0.2v1.2.0.2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -19,6 +19,7 @@ | |||
19 | # an error. | 19 | # an error. |
20 | 20 | ||
21 | LIBS=libz.a | 21 | LIBS=libz.a |
22 | LDFLAGS="-L. ${LIBS}" | ||
22 | SHAREDLIB=libz.so | 23 | SHAREDLIB=libz.so |
23 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` | 24 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` |
24 | AR=${AR-"ar rc"} | 25 | AR=${AR-"ar rc"} |
@@ -53,6 +54,10 @@ case "$1" in | |||
53 | esac | 54 | esac |
54 | done | 55 | done |
55 | 56 | ||
57 | if [ $shared -eq 1 ]; then | ||
58 | LDFLAGS="-L. ${SHAREDLIB}" | ||
59 | fi | ||
60 | |||
56 | test=ztest$$ | 61 | test=ztest$$ |
57 | cat > $test.c <<EOF | 62 | cat > $test.c <<EOF |
58 | extern int getchar(); | 63 | extern 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 |