]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
stamp-h needs to be made by config.status, not elsewhere, per recipe in
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Dec 2000 20:39:09 +0000 (20:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 Dec 2000 20:39:09 +0000 (20:39 +0000)
Autoconf manual.  In particular, touching it before creating config.status
is guaranteed to lose.

configure
configure.in
src/Makefile.global.in

index e15088ee54eb20d5c73a4241a7ad882f78208ddd..d5488bda9ed2d82b8ca520e42e506fc0f2c9355e 100755 (executable)
--- a/configure
+++ b/configure
@@ -7806,9 +7806,6 @@ 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
@@ -8291,6 +8288,9 @@ cat >> $CONFIG_STATUS <<EOF
 EOF
 cat >> $CONFIG_STATUS <<\EOF
 
+# Update timestamp for config.h (see Makefile.global)
+echo >src/include/stamp-h
+
 exit 0
 EOF
 chmod +x $CONFIG_STATUS
index d721801ceea7afa1812d475cfa479354695e0151..92ac6b546755d688144e10d09141095927bcd53b 100644 (file)
@@ -1128,13 +1128,14 @@ 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
+],
+[
+# Update timestamp for config.h (see Makefile.global)
+echo >src/include/stamp-h
 ])
index ac4864126f998cf58a5029188b7f0977c1b8a097..f1e425a0138f1448b2f6aae740748dd5e7ceb990 100644 (file)
@@ -1,5 +1,5 @@
 # -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.115 2000/12/16 13:03:25 petere Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.116 2000/12/29 20:39:06 tgl Exp $
 
 #------------------------------------------------------------------------------
 # All PostgreSQL makefiles include this file and use the variables it sets,
@@ -305,15 +305,17 @@ $(top_builddir)/src/Makefile.global: $(top_srcdir)/src/Makefile.global.in $(top_
 # Remake config.h from config.h.in if the latter changed.
 # config.status will not change the timestamp on config.h if it
 # doesn't change, so as to avoid recompiling the entire tree
-# unnecessarily. Therefore config.status will update a timestamp file
-# everytime it runs so that we don't trigger this rule everytime.
+# unnecessarily. Therefore we make config.status update a timestamp file
+# stamp-h everytime it runs, so that we don't trigger this rule everytime.
+# (We do trigger the null rule for stamp-h to config.h everytime; so it's
+# important for that rule to be null!)
 #
 # Of course you need to turn on dependency tracking to get any
-# dependencies on config.h
+# dependencies on config.h.
 $(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.