Skip to content

Commit 5cd2195

Browse files
committed
Add embed improvements
- Use AC_CONFIG_FILES - Move all configuration into conditional check as already done with the rest of embed SAPI.
1 parent a1a2c28 commit 5cd2195

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

sapi/embed/config.m4

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ if test "$PHP_EMBED" != "no"; then
2828
[php_embed.c],
2929
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
3030
PHP_INSTALL_HEADERS([sapi/embed], [php_embed.h])
31+
PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/embed/Makefile.frag],
32+
[$abs_srcdir/sapi/embed],
33+
[sapi/embed])
34+
AC_CONFIG_FILES([sapi/embed/php-embed.pc])
35+
install_embed=install-embed
3136
])
3237
AC_MSG_RESULT([$PHP_EMBED_TYPE])
3338
AC_SUBST([PHP_EMBED_TYPE])
34-
35-
PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/embed/Makefile.frag],
36-
[$abs_srcdir/sapi/embed],
37-
[$abs_builddir/sapi/embed])
38-
PHP_OUTPUT([sapi/embed/php-embed.pc])
39-
40-
install_embed=install-embed
4139
else
4240
AC_MSG_RESULT([no])
4341
fi

0 commit comments

Comments
 (0)