bump version
[buildroot.git] / package / zlib / zlib-1.2.3-010-configure.patch
blob07b8007dd1785d0448b52e9bc4cceb447c3c1223
1 diff -rdup zlib-1.2.3.orig/configure zlib-1.2.3/configure
2 --- zlib-1.2.3.orig/configure 2005-07-11 22:11:57.000000000 +0200
3 +++ zlib-1.2.3/configure 2008-10-31 12:48:33.000000000 +0100
4 @@ -71,7 +72,7 @@ case "$cc" in
5 *gcc*) gcc=1;;
6 esac
8 -if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
9 +if test $gcc -eq 1 && ($cc -c $cflags $test.c) 2>/dev/null; then
10 CC="$cc"
11 SFLAGS=${CFLAGS-"-fPIC -O3"}
12 CFLAGS="$cflags"
13 @@ -171,8 +172,8 @@ SHAREDLIBM=${SHAREDLIBM-"libz$shared_ext
14 if test $shared -eq 1; then
15 echo Checking for shared library support...
16 # we must test in two steps (cc then ld), required at least on SunOS 4.x
17 - if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
18 - test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
19 + if ($CC -c $SFLAGS $test.c) 2>>config.log &&
20 + ($LDSHARED -o $test$shared_ext $test.o) 2>>config.log; then
21 CFLAGS="$SFLAGS"
22 LIBS="$SHAREDLIBV"
23 echo Building shared library $SHAREDLIBV with $CC.
24 @@ -195,7 +196,7 @@ cat > $test.c <<EOF
25 #include <unistd.h>
26 int main() { return 0; }
27 EOF
28 -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
29 +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
30 sed < zconf.in.h "/HAVE_UNISTD_H/s%0%1%" > zconf.h
31 echo "Checking for unistd.h... Yes."
32 else
33 @@ -218,7 +219,7 @@ int main()
35 EOF
37 -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
38 +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
39 echo "Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()"
41 cat > $test.c <<EOF
42 @@ -242,7 +243,7 @@ int main()
44 EOF
46 - if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
47 + if ($CC $CFLAGS -o $test $test.c) 2>>config.log; then
48 echo "Checking for vsnprintf() in stdio.h... Yes."
50 cat >$test.c <<EOF
51 @@ -267,7 +268,7 @@ int main()
53 EOF
55 - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
56 + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
57 echo "Checking for return value of vsnprintf()... Yes."
58 else
59 CFLAGS="$CFLAGS -DHAS_vsnprintf_void"
60 @@ -305,7 +306,7 @@ int main()
62 EOF
64 - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
65 + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
66 echo "Checking for return value of vsprintf()... Yes."
67 else
68 CFLAGS="$CFLAGS -DHAS_vsprintf_void"
69 @@ -335,7 +336,7 @@ int main()
71 EOF
73 - if test "`($CC $CFLAGS -o $test $test.c) 2>&1`" = ""; then
74 + if ($CC $CFLAGS -o $test $test.c) 2>>config.log; then
75 echo "Checking for snprintf() in stdio.h... Yes."
77 cat >$test.c <<EOF
78 @@ -354,7 +355,7 @@ int main()
80 EOF
82 - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
83 + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
84 echo "Checking for return value of snprintf()... Yes."
85 else
86 CFLAGS="$CFLAGS -DHAS_snprintf_void"
87 @@ -386,7 +387,7 @@ int main()
89 EOF
91 - if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
92 + if ($CC -c $CFLAGS $test.c) 2>>config.log; then
93 echo "Checking for return value of sprintf()... Yes."
94 else
95 CFLAGS="$CFLAGS -DHAS_sprintf_void"
96 @@ -402,7 +403,7 @@ cat >$test.c <<EOF
97 #include <errno.h>
98 int main() { return 0; }
99 EOF
100 -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
101 +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
102 echo "Checking for errno.h... Yes."
103 else
104 echo "Checking for errno.h... No."
105 @@ -417,7 +418,7 @@ caddr_t hello() {
106 return mmap((caddr_t)0, (off_t)0, PROT_READ, MAP_SHARED, 0, (off_t)0);
109 -if test "`($CC -c $CFLAGS $test.c) 2>&1`" = ""; then
110 +if ($CC -c $CFLAGS $test.c) 2>>config.log; then
111 CFLAGS="$CFLAGS -DUSE_MMAP"
112 echo Checking for mmap support... Yes.
113 else
114 @@ -427,7 +428,7 @@ fi
115 CPP=${CPP-"$CC -E"}
116 case $CFLAGS in
117 *ASMV*)
118 - if test "`nm $test.o | grep _hello`" = ""; then
119 + if test "x`nm $test.o | grep _hello`" = "x"; then
120 CPP="$CPP -DNO_UNDERLINE"
121 echo Checking for underline in external names... No.
122 else