@@ -77,11 +77,11 @@ AC_DEFUN([PHP_GD_VPX],[
77
77
if test "$PHP_VPX_DIR" != "no"; then
78
78
79
79
for i in $PHP_VPX_DIR /usr/local /usr; do
80
- test -f $i/$PHP_VPX_DIR/libvpx.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libvpx.a && GD_VPX_DIR=$i && break
80
+ test -f $i/include/vpx_codec.h || test -f $i/include/vpx/vpx_codec.h && GD_VPX_DIR=$i && break
81
81
done
82
82
83
83
if test -z "$GD_VPX_DIR"; then
84
- AC_MSG_ERROR ( [ libvpx.(a|so) not found.] )
84
+ AC_MSG_ERROR ( [ vpx_codec.h not found.] )
85
85
fi
86
86
87
87
PHP_CHECK_LIBRARY(vpx,vpx_codec_destroy,
@@ -103,11 +103,11 @@ AC_DEFUN([PHP_GD_JPEG],[
103
103
if test "$PHP_JPEG_DIR" != "no"; then
104
104
105
105
for i in $PHP_JPEG_DIR /usr/local /usr; do
106
- test -f $i/$PHP_LIBDIR/libjpeg.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libjpeg.a && GD_JPEG_DIR=$i && break
106
+ test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
107
107
done
108
108
109
109
if test -z "$GD_JPEG_DIR"; then
110
- AC_MSG_ERROR ( [ libjpeg.(a|so) not found.] )
110
+ AC_MSG_ERROR ( [ jpeglib.h not found.] )
111
111
fi
112
112
113
113
PHP_CHECK_LIBRARY(jpeg,jpeg_read_header,
@@ -128,21 +128,17 @@ AC_DEFUN([PHP_GD_PNG],[
128
128
if test "$PHP_PNG_DIR" != "no"; then
129
129
130
130
for i in $PHP_PNG_DIR /usr/local /usr; do
131
- test -f $i/$PHP_LIBDIR/libpng.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libpng.a && GD_PNG_DIR=$i && break
131
+ test -f $i/include/png.h && GD_PNG_DIR=$i && break
132
132
done
133
133
134
134
if test -z "$GD_PNG_DIR"; then
135
- AC_MSG_ERROR ( [ libpng.(a|so) not found.] )
135
+ AC_MSG_ERROR ( [ png.h not found.] )
136
136
fi
137
137
138
138
if test "$PHP_ZLIB_DIR" = "no"; then
139
139
AC_MSG_ERROR ( [ PNG support requires ZLIB. Use --with-zlib-dir=<DIR>] )
140
140
fi
141
141
142
- if test ! -f $GD_PNG_DIR/include/png.h; then
143
- AC_MSG_ERROR ( [ png.h not found.] )
144
- fi
145
-
146
142
PHP_CHECK_LIBRARY(png,png_write_image,
147
143
[
148
144
PHP_ADD_INCLUDE($GD_PNG_DIR/include)
0 commit comments