diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:08 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:08 -0700 |
commit | 7df877eccdd826e94df53215f65dee639428e83f (patch) | |
tree | 11ed5070798961e28a4c69d9272ecaada500abc3 /configure | |
parent | dc5a43ebfadb6b775f6e64bfeb5a461c66acb394 (diff) | |
download | zlib-7df877eccdd826e94df53215f65dee639428e83f.tar.gz zlib-7df877eccdd826e94df53215f65dee639428e83f.tar.bz2 zlib-7df877eccdd826e94df53215f65dee639428e83f.zip |
zlib 1.2.3.7v1.2.3.7
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28 |
1 files changed, 7 insertions, 21 deletions
@@ -85,7 +85,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then | |||
85 | uname=`(uname -s || echo unknown) 2>/dev/null` | 85 | uname=`(uname -s || echo unknown) 2>/dev/null` |
86 | fi | 86 | fi |
87 | case "$uname" in | 87 | case "$uname" in |
88 | Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; | 88 | Linux | linux | GNU | GNU/* | *BSD | DragonFly) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; |
89 | CYGWIN* | Cygwin* | cygwin* | OS/2* ) | 89 | CYGWIN* | Cygwin* | cygwin* | OS/2* ) |
90 | EXE='.exe' ;; | 90 | EXE='.exe' ;; |
91 | QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 | 91 | QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 |
@@ -215,14 +215,6 @@ else | |||
215 | TEST="all teststatic testshared" | 215 | TEST="all teststatic testshared" |
216 | fi | 216 | fi |
217 | 217 | ||
218 | cat > zlibdefs.h << EOF | ||
219 | /* zlibdefs.h -- compile-time definitions for the zlib compression library | ||
220 | * Copyright (C) 1995-2006 Jean-loup Gailly. | ||
221 | * For conditions of distribution and use, see copyright notice in zlib.h | ||
222 | */ | ||
223 | |||
224 | EOF | ||
225 | |||
226 | cat > $test.c <<EOF | 218 | cat > $test.c <<EOF |
227 | #include <sys/types.h> | 219 | #include <sys/types.h> |
228 | off64_t dummy = 0; | 220 | off64_t dummy = 0; |
@@ -252,21 +244,15 @@ EOF | |||
252 | fi | 244 | fi |
253 | fi | 245 | fi |
254 | 246 | ||
247 | cp -p zconf.in.h zconf.h | ||
248 | |||
255 | cat > $test.c <<EOF | 249 | cat > $test.c <<EOF |
256 | #include <unistd.h> | 250 | #include <unistd.h> |
257 | int main() { return 0; } | 251 | int main() { return 0; } |
258 | EOF | 252 | EOF |
259 | if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then | 253 | if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then |
260 | cat >> zlibdefs.h <<EOF | 254 | sed < zconf.h "/#ifdef HAVE_UNISTD_H/s/def HAVE_UNISTD_H/ 1/" > zconf.temp.h |
261 | #include <sys/types.h> /* for off_t */ | 255 | mv zconf.temp.h zconf.h |
262 | #include <unistd.h> /* for SEEK_* and off_t */ | ||
263 | #ifdef VMS | ||
264 | # include <unixio.h> /* for off_t */ | ||
265 | #endif | ||
266 | #ifndef z_off_t | ||
267 | # define z_off_t off_t | ||
268 | #endif | ||
269 | EOF | ||
270 | echo "Checking for unistd.h... Yes." | 256 | echo "Checking for unistd.h... Yes." |
271 | else | 257 | else |
272 | echo "Checking for unistd.h... No." | 258 | echo "Checking for unistd.h... No." |
@@ -300,7 +286,7 @@ if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then | |||
300 | #include <stdio.h> | 286 | #include <stdio.h> |
301 | #include <stdarg.h> | 287 | #include <stdarg.h> |
302 | 288 | ||
303 | int mytest(char *fmt, ...) | 289 | int mytest(const char *fmt, ...) |
304 | { | 290 | { |
305 | char buf[20]; | 291 | char buf[20]; |
306 | va_list ap; | 292 | va_list ap; |
@@ -364,7 +350,7 @@ EOF | |||
364 | #include <stdio.h> | 350 | #include <stdio.h> |
365 | #include <stdarg.h> | 351 | #include <stdarg.h> |
366 | 352 | ||
367 | int mytest(char *fmt, ...) | 353 | int mytest(const char *fmt, ...) |
368 | { | 354 | { |
369 | int n; | 355 | int n; |
370 | char buf[20]; | 356 | char buf[20]; |