there is no risk to override a handwritten template.
From Assar Westerlund.
+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.
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 \
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 \
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 \