[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoreconf 2.53 does not handle three levels of configure.ac
From: |
ezra peisach |
Subject: |
autoreconf 2.53 does not handle three levels of configure.ac |
Date: |
Thu, 4 Apr 2002 12:50:04 -0500 (EST) |
autoreconf scans configure.ac files for AC_CONFIG_SUBDIRS and adds the
directory to the list of directories to recusively run autoreconf
in. Unforuntaley, when the subdir is decended into and
AC_CONFIG_SUBDIRS is discovered, the current directory is not
prepended onto the subdir name - resultsing in failure. Therefore
something like:
|-configure.ac
|-foo
|configure.ac
|bar
|configure.ac
results in autoreconf trying to run autoconf in ".", "foo" and "bar"
instead of "foo/bar"
The following patch solves the problem and should work under windows as well.
Index: autoreconf.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autoreconf.in,v
retrieving revision 1.91
diff -c -r1.91 autoreconf.in
*** autoreconf.in 3 Apr 2002 10:53:56 -0000 1.91
--- autoreconf.in 4 Apr 2002 17:44:00 -0000
***************
*** 312,317 ****
--- 312,319 ----
my $uses_libtool;
my $uses_autoheader;
my @subdir;
+ my $on_win = ($^O =~ /mswin/i);
+ my $path_sep = $on_win ? '\\' : '/';
my $traces = new Autom4te::XFile
("$autoconf"
. join (' --trace=', '',
***************
*** 338,344 ****
if (-d)
{
verbose "$configure_ac: subdirectory $_ to autoreconf";
! push @ARGV, $_;
}
else
{
--- 340,346 ----
if (-d)
{
verbose "$configure_ac: subdirectory $_ to autoreconf";
! push @ARGV, $directory . $path_sep . $_;
}
else
{
- autoreconf 2.53 does not handle three levels of configure.ac,
ezra peisach <=