aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:08 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:27:08 -0700
commit7df877eccdd826e94df53215f65dee639428e83f (patch)
tree11ed5070798961e28a4c69d9272ecaada500abc3 /configure
parentdc5a43ebfadb6b775f6e64bfeb5a461c66acb394 (diff)
downloadzlib-7df877eccdd826e94df53215f65dee639428e83f.tar.gz
zlib-7df877eccdd826e94df53215f65dee639428e83f.tar.bz2
zlib-7df877eccdd826e94df53215f65dee639428e83f.zip
zlib 1.2.3.7v1.2.3.7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 7 insertions, 21 deletions
diff --git a/configure b/configure
index 261efa9..5f0ed6e 100755
--- a/configure
+++ b/configure
@@ -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"
216fi 216fi
217 217
218cat > 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
224EOF
225
226cat > $test.c <<EOF 218cat > $test.c <<EOF
227#include <sys/types.h> 219#include <sys/types.h>
228off64_t dummy = 0; 220off64_t dummy = 0;
@@ -252,21 +244,15 @@ EOF
252 fi 244 fi
253fi 245fi
254 246
247cp -p zconf.in.h zconf.h
248
255cat > $test.c <<EOF 249cat > $test.c <<EOF
256#include <unistd.h> 250#include <unistd.h>
257int main() { return 0; } 251int main() { return 0; }
258EOF 252EOF
259if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then 253if 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
269EOF
270 echo "Checking for unistd.h... Yes." 256 echo "Checking for unistd.h... Yes."
271else 257else
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
303int mytest(char *fmt, ...) 289int 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
367int mytest(char *fmt, ...) 353int mytest(const char *fmt, ...)
368{ 354{
369 int n; 355 int n;
370 char buf[20]; 356 char buf[20];