I fail to understand the login in autoreconf for when to run
autoheader.  With this simple configure.in:

----------------------------------------------------------------------
AC_INIT(configure.in)
AC_CONFIG_HEADER(config.h)
AC_OUTPUT(Makefile)
----------------------------------------------------------------------

autoreconf --force fails to run autoheader since it doesn't found a
config.h.in.  I'm not sure what's the code that greps for autoheader
in config.h.in in autoreconf is trying to do, but since it fails if
there is no such file, it seems wrong to me.

The appended patch does the right thing for me.

/assar

Index: autoreconf.sh
===================================================================
RCS file: /cvs/autoconf/autoreconf.sh,v
retrieving revision 1.64
diff -u -w -u -w -r1.64 autoreconf.sh
--- autoreconf.sh       2001/01/25 16:02:09     1.64
+++ autoreconf.sh       2001/01/26 14:19:50
@@ -385,11 +385,7 @@
     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;
-    grep autoheader "$template" >/dev/null 2>&1 &&
-       uses_autoheader=:
-    if $uses_autoheader &&
-       { $force ||
+    if { $force ||
          $update $template \
             configure.ac $localdir/aclocal.m4 $localdir/acconfig.h ||
          $update $template \

Reply via email to