summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acinclude.m48
-rw-r--r--configure.in26
2 files changed, 13 insertions, 21 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index fb9bb01604..eab670e70d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -308,12 +308,8 @@ AC_DEFUN(PHP_GEN_CONFIG_VARS,[
done
])
-AC_DEFUN(PHP_GEN_MAKEFILE,[
- $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $1
-])
-
AC_DEFUN(PHP_GEN_MAKEFILES,[
- $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $PHP_FAST_OUTPUT_FILES
+ $SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $1
])
AC_DEFUN(PHP_TM_GMTOFF,[
@@ -837,7 +833,7 @@ AC_DEFUN(AC_SOCKADDR_SA_LEN,[
])
-dnl ## PHP_AC_OUTPUT(file)
+dnl ## PHP_OUTPUT(file)
dnl ## adds "file" to the list of files generated by AC_OUTPUT
dnl ## This macro can be used several times.
AC_DEFUN(PHP_OUTPUT,[
diff --git a/configure.in b/configure.in
index 7bcc7e92ce..e948a70471 100644
--- a/configure.in
+++ b/configure.in
@@ -795,20 +795,16 @@ PHP_CONFIGURE_PART(Generating files)
PHP_GEN_CONFIG_VARS
touch .deps
-#libphp4.module
-AC_OUTPUT([php4.spec Zend/Makefile
- build-defs.h
- $PHP_OUTPUT_FILES
- ], [], [
-
-if test "$CONFIG_FILES" = ""; then
- PHP_GEN_MAKEFILES
-else
- for file in $PHP_FAST_OUTPUT_FILES; do
- if test "\$file" = "\$CONFIG_FILES"; then
- PHP_GEN_MAKEFILE(\$file)
- fi
- done
+ALL_OUTPUT_FILES="php4.spec Zend/Makefile build-defs.h $PHP_OUTPUT_FILES"
+
+AC_OUTPUT($ALL_OUTPUT_FILES, [], [
+
+if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES"; then
+ REDO_ALL=yes
+fi
+
+if test -n "\$REDO_ALL"; then
+ PHP_GEN_MAKEFILES($PHP_FAST_OUTPUT_FILES)
fi
if test ! -f $srcdir/ext/bcmath/number.c; then
@@ -834,7 +830,7 @@ cat >Zend/zend_config.h <<FEO
FEO
# run this only when generating all the files?
-if test "\$CONFIG_FILES" = ""; then
+if test -n "\$REDO_ALL"; then
# Hacking while airborne considered harmful.
#
echo "creating main/internal_functions.c"