diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-12-16 13:03:25 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-12-16 13:03:25 +0000 |
commit | 2a81896a2ab909471116f25896ae60b1700b8cfb (patch) | |
tree | f34ca4d99ed9637d9f7c88140584ddd47ac9e431 | |
parent | ad4fd77a5f7708b28c130b7ce1d81b367fe8cc4c (diff) | |
download | postgresql-2a81896a2ab909471116f25896ae60b1700b8cfb.tar.gz postgresql-2a81896a2ab909471116f25896ae60b1700b8cfb.zip |
Fix rules to re-generate config.h. The examples in the Autoconf manual are
flawed because the timestamp file is already updated when Makefile.global
is remade, and the rule for config.h never gets run.
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.in | 7 | ||||
-rw-r--r-- | src/Makefile.global.in | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/configure b/configure index c52cba912fc..1e1dc927c12 100755 --- a/configure +++ b/configure @@ -7761,6 +7761,9 @@ if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then echo "$ac_t""done" 1>&6 fi +# (see Makefile.global) +echo >src/include/stamp-h + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -8242,7 +8245,6 @@ cat >> $CONFIG_STATUS <<EOF EOF cat >> $CONFIG_STATUS <<\EOF -echo "timestamp file" > src/include/stamp-h exit 0 EOF diff --git a/configure.in b/configure.in index 7e1085142bf..7fea78f8645 100644 --- a/configure.in +++ b/configure.in @@ -1123,12 +1123,13 @@ if test x"$abs_top_srcdir" != x"$abs_top_builddir"; then AC_MSG_RESULT(done) fi +# (see Makefile.global) +echo >src/include/stamp-h + AC_OUTPUT( [ GNUmakefile src/GNUmakefile src/Makefile.global src/backend/port/Makefile -], -[echo "timestamp file" > src/include/stamp-h] -) +]) diff --git a/src/Makefile.global.in b/src/Makefile.global.in index a09651f348a..ac4864126f9 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -1,5 +1,5 @@ # -*-makefile-*- -# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.114 2000/11/30 20:36:10 petere Exp $ +# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.115 2000/12/16 13:03:25 petere Exp $ #------------------------------------------------------------------------------ # All PostgreSQL makefiles include this file and use the variables it sets, @@ -313,6 +313,7 @@ $(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_ $(top_builddir)/src/include/config.h: $(top_builddir)/src/include/stamp-h $(top_builddir)/src/include/stamp-h: $(top_srcdir)/src/include/config.h.in $(top_builddir)/config.status cd $(top_builddir) && CONFIG_FILES= CONFIG_HEADERS=src/include/config.h ./config.status + echo >$@ # When configure changes, rerun configure with the same options as # last time. To change configure, you need to run autoconf manually. |