diff --git a/build/php.m4 b/build/php.m4 index 7422469835958..dd1a4a7b51885 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -128,6 +128,15 @@ AC_DEFUN([PHP_INIT_BUILD_SYSTEM],[ AC_REQUIRE([PHP_CANONICAL_HOST_TARGET])dnl > Makefile.objects > Makefile.fragments +dnl Run at the end of the configuration, before creating the config.status. +AC_CONFIG_COMMANDS_PRE( +[dnl Directory for storing shared objects of extensions. +PHP_ADD_BUILD_DIR([modules]) +phplibdir="$(pwd)/modules" +PHP_SUBST([phplibdir]) +PHP_GEN_BUILD_DIRS +PHP_GEN_GLOBAL_MAKEFILE +])dnl ]) dnl @@ -136,6 +145,7 @@ dnl dnl Generates the global makefile. dnl AC_DEFUN([PHP_GEN_GLOBAL_MAKEFILE],[ + AC_MSG_NOTICE([creating Makefile]) cat >Makefile <