Skip to content

Commit 3e44856

Browse files
committed
ZLIB patch
1 parent e1d9e45 commit 3e44856

File tree

4 files changed

+8774
-6070
lines changed

4 files changed

+8774
-6070
lines changed

config.guess

100644100755
File mode changed.

config.sub

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ case $basic_machine in
261261
| d10v | d30v | dlx | dsp16xx \
262262
| epiphany \
263263
| fido | fr30 | frv \
264-
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0 | hppa64 \
264+
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265265
| hexagon \
266266
| i370 | i860 | i960 | ia64 \
267267
| ip2k | iq2000 \
@@ -384,7 +384,7 @@ case $basic_machine in
384384
| elxsi-* \
385385
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
386386
| h8300-* | h8500-* \
387-
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0-* | hppa64-* \
387+
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
388388
| hexagon-* \
389389
| i*86-* | i860-* | i960-* | ia64-* \
390390
| ip2k-* | iq2000-* \
@@ -1411,7 +1411,7 @@ case $os in
14111411
os=`echo $os | sed -e 's|nto|nto-qnx|'`
14121412
;;
14131413
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1414-
| -windows* | -osx | -abug | -os9* | -beos* | -haiku* \
1414+
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
14151415
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
14161416
;;
14171417
-mac*)

ext/zlib/config0.m4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
1919
elif test -f $PHP_ZLIB/include/zlib.h; then
2020
ZLIB_DIR=$PHP_ZLIB
2121
ZLIB_INCDIR=$ZLIB_DIR/include
22+
elif test -f $PHP_ZLIB/develop/headers/zlib.h; then
23+
ZLIB_DIR=$PHP_ZLIB
24+
ZLIB_INCDIR=$ZLIB_DIR/develop/headers
2225
fi
2326
else
24-
for i in /usr/local /usr $PHP_ZLIB_DIR; do
27+
for i in /usr/local /usr /system $PHP_ZLIB_DIR; do
2528
if test -f $i/include/zlib/zlib.h; then
2629
ZLIB_DIR=$i
2730
ZLIB_INCDIR=$i/include/zlib
2831
elif test -f $i/include/zlib.h; then
2932
ZLIB_DIR=$i
3033
ZLIB_INCDIR=$i/include
34+
elif test -f $i/develop/headers/zlib.h; then
35+
ZLIB_DIR=$i
36+
ZLIB_INCDIR=$i/develop/headers
3137
fi
3238
done
3339
fi
@@ -42,7 +48,7 @@ if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
4248
esac
4349

4450
AC_MSG_CHECKING([for zlib version >= 1.2.0.4])
45-
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_DIR/include/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
51+
ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_INCDIR/zlib.h | $SED -e 's/[[^0-9\.]]//g'`
4652
AC_MSG_RESULT([$ZLIB_VERSION])
4753
if test `echo $ZLIB_VERSION | $SED -e 's/[[^0-9]]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
4854
AC_MSG_ERROR([libz version greater or equal to 1.2.0.4 required])

0 commit comments

Comments
 (0)