mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Autotools: Move Zend/zend_config.h to AC_CONFIG_COMMANDS (#15538)
Instead of creating Zend/zend_config.h header file in an initialization argument of "default" commands, this creates it in its own wrapper when config.status is called.
This commit is contained in:
parent
6a51062c85
commit
e7874f2089
1 changed files with 7 additions and 7 deletions
14
configure.ac
14
configure.ac
|
@ -1796,6 +1796,12 @@ AC_CONFIG_FILES([
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS_PRE([PHP_PATCH_CONFIG_HEADERS([main/php_config.h.in])])
|
AC_CONFIG_COMMANDS_PRE([PHP_PATCH_CONFIG_HEADERS([main/php_config.h.in])])
|
||||||
|
|
||||||
|
AC_CONFIG_COMMANDS([Zend/zend_config.h], [
|
||||||
|
cat >Zend/zend_config.h <<FEO
|
||||||
|
#include <../main/php_config.h>
|
||||||
|
FEO
|
||||||
|
])
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS([main/internal_functions.c], [], [
|
AC_CONFIG_COMMANDS([main/internal_functions.c], [], [
|
||||||
AWK="$AWK" $SHELL $srcdir/build/genif.sh \
|
AWK="$AWK" $SHELL $srcdir/build/genif.sh \
|
||||||
$srcdir/main/internal_functions.c.in \
|
$srcdir/main/internal_functions.c.in \
|
||||||
|
@ -1808,7 +1814,7 @@ AC_CONFIG_COMMANDS([main/internal_functions_cli.c], [], [
|
||||||
"$EXT_CLI_STATIC" > main/internal_functions_cli.c
|
"$EXT_CLI_STATIC" > main/internal_functions_cli.c
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS([default],[
|
AC_CONFIG_COMMANDS([default], [
|
||||||
cat <<X
|
cat <<X
|
||||||
|
|
||||||
+--------------------------------------------------------------------+
|
+--------------------------------------------------------------------+
|
||||||
|
@ -1823,11 +1829,5 @@ cat <<X
|
||||||
Thank you for using PHP.
|
Thank you for using PHP.
|
||||||
|
|
||||||
X
|
X
|
||||||
],[
|
|
||||||
dnl Create configuration headers.
|
|
||||||
dnl ----------------------------------------------------------------------------
|
|
||||||
cat >Zend/zend_config.h <<FEO
|
|
||||||
#include <../main/php_config.h>
|
|
||||||
FEO
|
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue