diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:19:21 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:19:21 -0700 |
commit | b8c9ecb0765fc39423c07613d909c5193378bdfd (patch) | |
tree | c2a2964d00dcfee6c7426ffcdf8e8060727bc2bf /configure | |
parent | 6759211ad8a5006689216a86c3267bb503bfccc1 (diff) | |
download | zlib-b8c9ecb0765fc39423c07613d909c5193378bdfd.tar.gz zlib-b8c9ecb0765fc39423c07613d909c5193378bdfd.tar.bz2 zlib-b8c9ecb0765fc39423c07613d909c5193378bdfd.zip |
zlib 1.0.9v1.0.9
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -14,6 +14,10 @@ | |||
14 | # (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure) | 14 | # (setenv prefix $HOME; setenv CC cc; setenv CFLAGS "-O4"; ./configure) |
15 | # LDSHARED is the command to be used to create a shared library | 15 | # LDSHARED is the command to be used to create a shared library |
16 | 16 | ||
17 | # Incorrect settings of CC or CFLAGS may prevent creating a shared library. | ||
18 | # If you have problems, try without defining CC and CFLAGS before reporting | ||
19 | # an error. | ||
20 | |||
17 | LIBS=libz.a | 21 | LIBS=libz.a |
18 | SHAREDLIB=libz.so | 22 | SHAREDLIB=libz.so |
19 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` | 23 | VER=`sed -n -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h` |
@@ -23,6 +27,8 @@ prefix=${prefix-/usr/local} | |||
23 | exec_prefix=${exec_prefix-$prefix} | 27 | exec_prefix=${exec_prefix-$prefix} |
24 | shared_ext='.so' | 28 | shared_ext='.so' |
25 | shared=0 | 29 | shared=0 |
30 | old_cc="$CC" | ||
31 | old_cflags="$CFLAGS" | ||
26 | 32 | ||
27 | case "$1" in | 33 | case "$1" in |
28 | -s* | --s*) shared=1; shift;; | 34 | -s* | --s*) shared=1; shift;; |
@@ -96,9 +102,12 @@ if test $shared -eq 1; then | |||
96 | CFLAGS="$SFLAGS" | 102 | CFLAGS="$SFLAGS" |
97 | LIBS="$SHAREDLIB.$VER" | 103 | LIBS="$SHAREDLIB.$VER" |
98 | echo Building shared library $SHAREDLIB.$VER with $CC. | 104 | echo Building shared library $SHAREDLIB.$VER with $CC. |
99 | else | 105 | elif test -z "$old_cc" -a -z "$old_cflags"; then |
100 | echo No shared library suppport. | 106 | echo No shared library suppport. |
101 | shared=0; | 107 | shared=0; |
108 | else | ||
109 | echo 'No shared library suppport; try without defining CC and CFLAGS' | ||
110 | shared=0; | ||
102 | fi | 111 | fi |
103 | fi | 112 | fi |
104 | if test $shared -eq 0; then | 113 | if test $shared -eq 0; then |