autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoreconf only runs autoheader if it has already been done?


From: Assar Westerlund
Subject: autoreconf only runs autoheader if it has already been done?
Date: 26 Jan 2001 15:28:25 +0100
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

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

[Prev in Thread] Current Thread [Next in Thread]