]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Update the file even if it is unchanged, to avoid foiling a
authorDavid MacKenzie <djm@djmnet.org>
Sat, 19 Mar 1994 21:39:45 +0000 (21:39 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Sat, 19 Mar 1994 21:39:45 +0000 (21:39 +0000)
Makefile rule that makes it from configure.in.
If you let the rule for making config.status from configure
create config.h from config.h.in, then an unnecessary update here
will not cause unneeded recompilation.  Recompilation should only
happen if config.h is updated, which won't occur if config.h.in
had the same contents, even if its timestamp changed.  (Ick.)

autoheader.in
autoheader.sh
bin/autoheader.in

index f969155181f811f872eae206447dfc7311028e74..95bc3803438c2e0041827b3eabba67448e82c50f 100644 (file)
@@ -200,11 +200,14 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    if cmp -s $tmpout ${config_h}.in; then
-      rm -f $tmpout
-    else
-      mv -f $tmpout ${config_h}.in
-    fi
+    # Update the file even if it is unchanged, to avoid foiling a
+    # Makefile rule that makes it from configure.in.
+    # If you let the rule for making config.status from configure
+    # create config.h from config.h.in, then an unnecessary update here
+    # will not cause unneeded recompilation.  Recompilation should only
+    # happen if config.h is updated, which won't occur if config.h.in
+    # had the same contents, even if its timestamp changed.  (Ick.)
+    mv -f $tmpout ${config_h}.in
   else
     rm -f $tmpout
   fi
index f969155181f811f872eae206447dfc7311028e74..95bc3803438c2e0041827b3eabba67448e82c50f 100644 (file)
@@ -200,11 +200,14 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    if cmp -s $tmpout ${config_h}.in; then
-      rm -f $tmpout
-    else
-      mv -f $tmpout ${config_h}.in
-    fi
+    # Update the file even if it is unchanged, to avoid foiling a
+    # Makefile rule that makes it from configure.in.
+    # If you let the rule for making config.status from configure
+    # create config.h from config.h.in, then an unnecessary update here
+    # will not cause unneeded recompilation.  Recompilation should only
+    # happen if config.h is updated, which won't occur if config.h.in
+    # had the same contents, even if its timestamp changed.  (Ick.)
+    mv -f $tmpout ${config_h}.in
   else
     rm -f $tmpout
   fi
index f969155181f811f872eae206447dfc7311028e74..95bc3803438c2e0041827b3eabba67448e82c50f 100644 (file)
@@ -200,11 +200,14 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    if cmp -s $tmpout ${config_h}.in; then
-      rm -f $tmpout
-    else
-      mv -f $tmpout ${config_h}.in
-    fi
+    # Update the file even if it is unchanged, to avoid foiling a
+    # Makefile rule that makes it from configure.in.
+    # If you let the rule for making config.status from configure
+    # create config.h from config.h.in, then an unnecessary update here
+    # will not cause unneeded recompilation.  Recompilation should only
+    # happen if config.h is updated, which won't occur if config.h.in
+    # had the same contents, even if its timestamp changed.  (Ick.)
+    mv -f $tmpout ${config_h}.in
   else
     rm -f $tmpout
   fi