Hi,

Here's the Autoconf patch for config.status builddir awareness,
and some minor textfile updates.  The acgeneral.m4 part depends on
my previous patch having been applied and massaged so there are
no quotes around $f in the case/esac.

  Lars J

ChangeLog Entry

2000-07-10  Lars J. Aas  <[EMAIL PROTECTED]>

        * acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS):
        Make config.status support inputfiles in current dir (./*) and
        with absolute paths (/*).
        * NEWS: Describe new config.status functionality.
        * TODO: Remove recently solved problem.

Index: NEWS
===================================================================
RCS file: /cvs/autoconf/NEWS,v
retrieving revision 1.125
diff -u -r1.125 NEWS
--- NEWS        2000/06/26 10:20:36     1.125
+++ NEWS        2000/07/08 16:49:31
@@ -79,6 +79,14 @@
   The same holds for configuration headers and links.
   You can instantiate unknown files and headers:
     ./config.status --header foo.h:foo.h.in --file bar:baz
+  You can concatenate multiple input files into the output file:
+    ./config.status --header foo.h:foo.h.in:foo2.h.in
+  You can also take input from stdin and output to stdout
+  by using the '-' filename convention.
+  Source files can now also be specified with absolute (/)
+  and builddir-relative (./) paths.
+  Files can be targeted for multiple directory levels that don't
+  exist yet - the one-level limit is removed.
 - has a useful --help
 
 
Index: TODO
===================================================================
RCS file: /cvs/autoconf/TODO,v
retrieving revision 1.81
diff -u -r1.81 TODO
--- TODO        2000/06/26 10:20:36     1.81
+++ TODO        2000/07/08 16:49:32
@@ -120,16 +120,6 @@
 ** Allow --recursive to config.status
 So that --recheck does not pass --no-recursive to configure.
 
-** config.status
-Lars seemed to need to be able to apply both the AC_SUBST and
-AC_DEFINE transformation on a single file, which implies that we must
-be able to have `.in' files either in srcdir or in builddir.  In fact,
-have a look at the configuration of Zsh: they patch config.status on
-the fly to have it look for the files in builddir instead of srcdir!!!
-There is a real problem, Autoconf must help.  BTW, why do they need
-that?
-
-
 ------------------------------------------------------------------------------
 
 * Automake
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.511
diff -u -r1.511 acgeneral.m4
--- acgeneral.m4        2000/07/07 17:46:36     1.511
+++ acgeneral.m4        2000/07/08 16:49:34
@@ -4575,8 +4575,10 @@
   ac_file_inputs=`IFS=:
                   for f in $ac_file_in; do
                     case $f in
-                    -) echo $tmp/stdin ;;
-                    *) echo $ac_given_srcdir/$f ;;
+                    -)                        echo $tmp/stdin ;;
+                    [[\\/]]* | ?:[[\\/]]* )   echo $f ;;
+                    ./*)                      echo $f ;;
+                    *)                        echo $ac_given_srcdir/$f ;;
                     esac
                   done`
   for ac_file_input in $ac_file_inputs;
@@ -4710,8 +4712,10 @@
   ac_file_inputs=`IFS=:
                   for f in $ac_file_in; do
                     case $f in
-                    -) echo $tmp/stdin ;;
-                    *) echo $ac_given_srcdir/$f ;;
+                    -)                        echo $tmp/stdin ;;
+                    [[\\/]]* | ?:[[\\/]]* )   echo $f ;;
+                    ./*)                      echo $f ;;
+                    *)                        echo $ac_given_srcdir/$f ;;
                     esac
                   done`
   for ac_file_input in $ac_file_inputs;

Reply via email to