]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoreconf.sh (autoheader): Run it when there is no template, as
authorAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 14:42:14 +0000 (14:42 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 14:42:14 +0000 (14:42 +0000)
there is no risk to override a handwritten template.
From Assar Westerlund.

ChangeLog
autoreconf.in
autoreconf.sh
bin/autoreconf.in

index 18d1f903821a50b3395637baee4e0a27a59c329d..d45873452283d2e7b96afa2a9a8c53fda42c6fab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-26  Akim Demaille  <akim@epita.fr>
+
+       * autoreconf.sh (autoheader): Run it when there is no template, as
+       there is no risk to override a handwritten template.
+       From Assar Westerlund.
+
 2001-01-26  Akim Demaille  <akim@epita.fr>
 
        * aclang.m4: dnl AC_ARG_VAR's newline.
index 67ebd7c58f75b5a5a8d5478d78137bed408c82b9..6ecabf7566f7c6b371eb3374c2952f8da96c330a 100644 (file)
@@ -385,9 +385,13 @@ while read dir; do
     template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
     stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
     stamp=$template_dir/stamp-h$stamp_num.in
-    uses_autoheader=false;
+    # If config.hin exists, don't override it unless it was really
+    # created by autoheader (users are allowed to write them by hand!).
+    uses_autoheader=false
     grep autoheader "$template" >/dev/null 2>&1 &&
        uses_autoheader=:
+    test -f "$template" ||
+       uses_autoheader=:
     if $uses_autoheader &&
        { $force ||
          $update $template \
index 67ebd7c58f75b5a5a8d5478d78137bed408c82b9..6ecabf7566f7c6b371eb3374c2952f8da96c330a 100644 (file)
@@ -385,9 +385,13 @@ while read dir; do
     template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
     stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
     stamp=$template_dir/stamp-h$stamp_num.in
-    uses_autoheader=false;
+    # If config.hin exists, don't override it unless it was really
+    # created by autoheader (users are allowed to write them by hand!).
+    uses_autoheader=false
     grep autoheader "$template" >/dev/null 2>&1 &&
        uses_autoheader=:
+    test -f "$template" ||
+       uses_autoheader=:
     if $uses_autoheader &&
        { $force ||
          $update $template \
index 67ebd7c58f75b5a5a8d5478d78137bed408c82b9..6ecabf7566f7c6b371eb3374c2952f8da96c330a 100644 (file)
@@ -385,9 +385,13 @@ while read dir; do
     template_dir=`echo $template | sed 's,/*[^/]*$,,;s,^$,.,'`
     stamp_num=`test "$tcount" -gt 1 && echo "$tcount"`
     stamp=$template_dir/stamp-h$stamp_num.in
-    uses_autoheader=false;
+    # If config.hin exists, don't override it unless it was really
+    # created by autoheader (users are allowed to write them by hand!).
+    uses_autoheader=false
     grep autoheader "$template" >/dev/null 2>&1 &&
        uses_autoheader=:
+    test -f "$template" ||
+       uses_autoheader=:
     if $uses_autoheader &&
        { $force ||
          $update $template \