]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
A tiny optimization in _AC_OUTPUT_HEADERS.
authorStepan Kasal <kasal@ucw.cz>
Wed, 27 Apr 2005 10:04:36 +0000 (10:04 +0000)
committerStepan Kasal <kasal@ucw.cz>
Wed, 27 Apr 2005 10:04:36 +0000 (10:04 +0000)
ChangeLog
lib/autoconf/status.m4

index c9b8c4a8b0c84f7f4b5de76c560623315fed8e23..d839c22d4a424801345f40224f041b890faa6ae0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-25  Stepan Kasal  <kasal@ucw.cz>
+
+       * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): A tiny optimization.
+
 2005-04-22  Stepan Kasal  <kasal@ucw.cz>
 
        * doc/autoconf.texi (External Software): Quadrigraphs are not
index 39e5a7e5a5015b94aec60f1c41396426fe03af5c..a1b31b524aea4184c730ded71f62c65982f111f4 100644 (file)
@@ -645,14 +645,9 @@ cat >>$CONFIG_STATUS <<\_ACEOF
   # Let's still pretend it is `configure' which instantiates (i.e., don't
   # use $as_me), people would be surprised to read:
   #    /* config.h.  Generated by config.status.  */
-  if test x"$ac_file" = x-; then
-    echo "/* Generated by configure.  */" >"$tmp/config.h"
-  else
-    echo "/* $ac_file.  Generated by configure.  */" >"$tmp/config.h"
-  fi
-  cat "$tmp/in" >>"$tmp/config.h"
-  rm -f "$tmp/in"
   if test x"$ac_file" != x-; then
+    echo "/* $ac_file.  Generated by configure.  */" >"$tmp/config.h"
+    cat "$tmp/in" >>"$tmp/config.h"
     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
       AC_MSG_NOTICE([$ac_file is unchanged])
     else
@@ -662,9 +657,10 @@ cat >>$CONFIG_STATUS <<\_ACEOF
       mv "$tmp/config.h" $ac_file
     fi
   else
-    cat "$tmp/config.h"
-    rm -f "$tmp/config.h"
+    echo "/* Generated by configure.  */"
+    cat "$tmp/in"
   fi
+  rm -f "$tmp/in"
 dnl If running for Automake, be ready to perform additional
 dnl commands to set up the timestamp files.
 m4_ifdef([_AC_AM_CONFIG_HEADER_HOOK],