]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Go back to doing move-if-change. Work around in dependencies
authorDavid MacKenzie <djm@djmnet.org>
Tue, 5 Apr 1994 00:13:00 +0000 (00:13 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 5 Apr 1994 00:13:00 +0000 (00:13 +0000)
by using stamp files.

autoheader.in
autoheader.sh
bin/autoheader.in

index 067345e60edd129edc0b398fa170275ea93e19fc..8db5a70c52dcf3a7b1e8d300c616a589ddfa064e 100644 (file)
@@ -202,14 +202,11 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    # 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
+    if cmp -s $tmpout ${config_h}.in; then
+      rm -f $tmpout
+    else
+      mv -f $tmpout ${config_h}.in
+    fi
   else
     rm -f $tmpout
   fi
index 067345e60edd129edc0b398fa170275ea93e19fc..8db5a70c52dcf3a7b1e8d300c616a589ddfa064e 100644 (file)
@@ -202,14 +202,11 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    # 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
+    if cmp -s $tmpout ${config_h}.in; then
+      rm -f $tmpout
+    else
+      mv -f $tmpout ${config_h}.in
+    fi
   else
     rm -f $tmpout
   fi
index 067345e60edd129edc0b398fa170275ea93e19fc..8db5a70c52dcf3a7b1e8d300c616a589ddfa064e 100644 (file)
@@ -202,14 +202,11 @@ done
 
 if test $# -eq 0; then
   if test $status -eq 0; then
-    # 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
+    if cmp -s $tmpout ${config_h}.in; then
+      rm -f $tmpout
+    else
+      mv -f $tmpout ${config_h}.in
+    fi
   else
     rm -f $tmpout
   fi