From 7df877eccdd826e94df53215f65dee639428e83f Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:27:08 -0700 Subject: zlib 1.2.3.7 --- configure | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'configure') 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 uname=`(uname -s || echo unknown) 2>/dev/null` fi case "$uname" in - Linux | linux | GNU | GNU/*) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; + Linux | linux | GNU | GNU/* | *BSD | DragonFly) LDSHARED=${LDSHARED-"$cc -shared -Wl,-soname,libz.so.1,--version-script,zlib.map"} ;; CYGWIN* | Cygwin* | cygwin* | OS/2* ) EXE='.exe' ;; QNX*) # This is for QNX6. I suppose that the QNX rule below is for QNX2,QNX4 @@ -215,14 +215,6 @@ else TEST="all teststatic testshared" fi -cat > zlibdefs.h << EOF -/* zlibdefs.h -- compile-time definitions for the zlib compression library - * Copyright (C) 1995-2006 Jean-loup Gailly. - * For conditions of distribution and use, see copyright notice in zlib.h - */ - -EOF - cat > $test.c < off64_t dummy = 0; @@ -252,21 +244,15 @@ EOF fi fi +cp -p zconf.in.h zconf.h + cat > $test.c < int main() { return 0; } EOF if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then - cat >> zlibdefs.h < /* for off_t */ -#include /* for SEEK_* and off_t */ -#ifdef VMS -# include /* for off_t */ -#endif -#ifndef z_off_t -# define z_off_t off_t -#endif -EOF + sed < zconf.h "/#ifdef HAVE_UNISTD_H/s/def HAVE_UNISTD_H/ 1/" > zconf.temp.h + mv zconf.temp.h zconf.h echo "Checking for unistd.h... Yes." else echo "Checking for unistd.h... No." @@ -300,7 +286,7 @@ if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then #include #include -int mytest(char *fmt, ...) +int mytest(const char *fmt, ...) { char buf[20]; va_list ap; @@ -364,7 +350,7 @@ EOF #include #include -int mytest(char *fmt, ...) +int mytest(const char *fmt, ...) { int n; char buf[20]; -- cgit v1.2.3-55-g6feb