Line 0
Link Here
|
|
|
1 |
--- config.m4.orig 2018-07-11 13:18:02 UTC |
2 |
+++ config.m4 |
3 |
@@ -358,7 +358,7 @@ if test "$PHP_GD" != "no"; then |
4 |
|
5 |
if test "$GD_MODULE_TYPE" = "builtin"; then |
6 |
PHP_ADD_BUILD_DIR($ext_builddir/libgd) |
7 |
- GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS" |
8 |
+ GDLIB_CFLAGS="-I../.. -I$ext_srcdir/libgd $GDLIB_CFLAGS" |
9 |
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/" |
10 |
|
11 |
PHP_TEST_BUILD(foobar, [], [ |
12 |
@@ -366,7 +366,7 @@ if test "$PHP_GD" != "no"; then |
13 |
], [ $GD_SHARED_LIBADD ], [char foobar () {}]) |
14 |
else |
15 |
GD_HEADER_DIRS="ext/gd/" |
16 |
- GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS" |
17 |
+ GDLIB_CFLAGS="-I../.. -I$ext_srcdir/libgd $GDLIB_CFLAGS" |
18 |
PHP_ADD_INCLUDE($GD_INCLUDE) |
19 |
PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [ |
20 |
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.]) |