@@ -50,17 +50,23 @@ AC_DEFUN([PHP_GD_ZLIB],[
50
50
elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
51
51
PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
52
52
PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
53
+ elif test -f "$PHP_ZLIB_DIR/develop/headers/zlib.h"; then
54
+ PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
55
+ PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/develop/headers"
53
56
else
54
57
AC_MSG_ERROR ( [ Can't find zlib headers under "$PHP_ZLIB_DIR"] )
55
58
fi
56
59
else
57
- for i in /usr/local /usr; do
60
+ for i in /usr/local /usr /system ; do
58
61
if test -f "$i/include/zlib/zlib.h"; then
59
62
PHP_ZLIB_DIR="$i"
60
63
PHP_ZLIB_INCDIR="$i/include/zlib"
61
64
elif test -f "$i/include/zlib.h"; then
62
65
PHP_ZLIB_DIR="$i"
63
66
PHP_ZLIB_INCDIR="$i/include"
67
+ elif test -f "$i/develop/headers/zlib.h"; then
68
+ PHP_ZLIB_DIR="$i"
69
+ PHP_ZLIB_INCDIR="$i/develop/headers"
64
70
fi
65
71
done
66
72
fi
@@ -71,6 +77,7 @@ AC_DEFUN([PHP_GD_WEBP],[
71
77
72
78
for i in $PHP_WEBP_DIR /usr/local /usr; do
73
79
test -f $i/include/webp/decode.h && GD_WEBP_DIR=$i && break
80
+ test -f $i/develop/headers/webp/decode.h && GD_WEBP_DIR=$i && break
74
81
done
75
82
76
83
if test -z "$GD_WEBP_DIR"; then
@@ -79,6 +86,7 @@ AC_DEFUN([PHP_GD_WEBP],[
79
86
80
87
for i in $PHP_WEBP_DIR /usr/local /usr; do
81
88
test -f $i/include/webp/encode.h && GD_WEBP_DIR=$i && break
89
+ test -f $i/develop/headers/webp/encode.h && GD_WEBP_DIR=$i && break
82
90
done
83
91
84
92
if test -z "$GD_WEBP_DIR"; then
@@ -103,8 +111,9 @@ AC_DEFUN([PHP_GD_WEBP],[
103
111
AC_DEFUN ( [ PHP_GD_JPEG] ,[
104
112
if test "$PHP_JPEG_DIR" != "no"; then
105
113
106
- for i in $PHP_JPEG_DIR /usr/local /usr; do
114
+ for i in $PHP_JPEG_DIR /usr/local /usr /system ; do
107
115
test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
116
+ test -f $i/develop/headers/jpeglib.h && GD_JPEG_DIR=$i && break
108
117
done
109
118
110
119
if test -z "$GD_JPEG_DIR"; then
@@ -130,6 +139,7 @@ AC_DEFUN([PHP_GD_PNG],[
130
139
131
140
for i in $PHP_PNG_DIR /usr/local /usr; do
132
141
test -f $i/include/png.h && GD_PNG_DIR=$i && break
142
+ test -f $i/develop/headers/png.h && GD_PNG_DIR=$i && break
133
143
done
134
144
135
145
if test -z "$GD_PNG_DIR"; then
@@ -162,6 +172,8 @@ AC_DEFUN([PHP_GD_XPM],[
162
172
for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
163
173
test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break
164
174
test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break
175
+ test -f $i/develop/headers/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break
176
+ test -f $i/develop/headers/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break
165
177
done
166
178
167
179
if test -z "$GD_XPM_DIR"; then
@@ -186,7 +198,7 @@ AC_DEFUN([PHP_GD_XPM],[
186
198
AC_DEFUN ( [ PHP_GD_FREETYPE2] ,[
187
199
if test "$PHP_FREETYPE_DIR" != "no"; then
188
200
189
- for i in $PHP_FREETYPE_DIR /usr/local /usr; do
201
+ for i in $PHP_FREETYPE_DIR /usr/local /usr /system ; do
190
202
if test -f "$i/bin/freetype-config"; then
191
203
FREETYPE2_DIR=$i
192
204
FREETYPE2_CONFIG="$i/bin/freetype-config"
@@ -317,7 +329,7 @@ dnl Various checks for GD features
317
329
PHP_GD_FREETYPE2
318
330
319
331
dnl Header path
320
- for i in include/gd include/gd2 include gd ""; do
332
+ for i in include/gd include/gd2 include gd develop/headers ""; do
321
333
test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
322
334
done
323
335
0 commit comments