Skip to content

Commit 5c97a9a

Browse files
committed
ext/gd: Install only php_gd.h and libgd headers
1 parent c372ea5 commit 5c97a9a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/gd/config.m4

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ dnl Various checks for GD features
235235
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared,, \\$(GD_CFLAGS))
236236
PHP_ADD_BUILD_DIR($ext_builddir/libgd)
237237
GD_CFLAGS="-Wno-strict-prototypes -I$ext_srcdir/libgd $GD_CFLAGS"
238-
GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
238+
PHP_INSTALL_HEADERS([ext/gd], [php_gd.h libgd/])
239239

240240
PHP_TEST_BUILD(foobar, [], [
241241
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
@@ -250,13 +250,12 @@ dnl Various checks for GD features
250250
PHP_GD_CHECK_VERSION
251251

252252
PHP_NEW_EXTENSION(gd, gd.c $extra_sources, $ext_shared)
253-
GD_HEADER_DIRS="ext/gd/"
253+
PHP_INSTALL_HEADERS([ext/gd], [php_gd.h])
254254
PHP_CHECK_LIBRARY(gd, gdImageCreate, [], [
255255
AC_MSG_ERROR([GD build test failed. Please check the config.log for details.])
256256
], [ $GD_SHARED_LIBADD ])
257257
fi
258258

259-
PHP_INSTALL_HEADERS([$GD_HEADER_DIRS])
260259
PHP_SUBST(GD_CFLAGS)
261260
PHP_SUBST(GDLIB_CFLAGS)
262261
PHP_SUBST(GDLIB_LIBS)

0 commit comments

Comments
 (0)