This patch makes autoreconf pass along -I arguments to aclocal, which
is useful in cases
where m4 files are installed in sensible, but non standard places
(like /opt/local/share/aclocal)

cheers,
-- 
Clinton Roy
CSIRO - Robotics Platform Engineer
Autonomous Systems Lab

humbug.org.au  - Brisbane Unix Group
azure.humbug.org.au/~croy/blog - Blog
flickr.com/photos/croy/ - Photos
diff --git a/bin/autoreconf.in b/bin/autoreconf.in
index 923f8ca..86e8826 100644
--- a/bin/autoreconf.in
+++ b/bin/autoreconf.in
@@ -186,6 +186,7 @@ sub parse_args ()
 
   # Dispatch autoreconf's option to the tools.
   # --include;
+  $aclocal    .= join (' -I ', '', map { shell_quote ($_) } @include);
   $autoconf   .= join (' --include=', '', map { shell_quote ($_) } @include);
   $autoconf   .= join (' --prepend-include=', '', map { shell_quote ($_) } @prepend_include);
   $autoheader .= join (' --include=', '', map { shell_quote ($_) } @include);
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 71f507f..2315515 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -1663,7 +1663,7 @@ run @samp{make}.
 @item [EMAIL PROTECTED]
 @itemx -I @var{dir}
 Append @var{dir} to the include path.  Multiple invocations accumulate.
-Passed on to @command{autoconf} and @command{autoheader} internally.
+Passed on to @command{aclocal}, @command{autoconf} and @command{autoheader} internally.
 
 @item [EMAIL PROTECTED]
 @itemx -B @var{dir}

Reply via email to