[please CC all replies to me, I'm not on this list] Hi, I use aclocal on Solaris boxes at uni, and it is very useful for me to be able to add an include path to aclocal, without having to use -I all the time. This is because the boxes don't have stuff like libtool installed, and so the AM_PROG_LIBTOOL macro isn't in the default include directory, so I've had to install it in my home directory. I've hacked libtool to read extra include paths from the ACPATH variable. I don't think I've sent this patch before (I made it ages ago), so do you want to include this in upstream automake? It would be a useful addition, IMHO ... the patch is against the latest CVS automake. Thanks, Timshel -- Timshel Knoll <[EMAIL PROTECTED]> for Debian email: <[EMAIL PROTECTED]> Geomatics/Computer Science double degree, RMIT Debian GNU/Linux developer, see http://people.debian.org/~timshel/ For GnuPG public key: finger [EMAIL PROTECTED]
Index: aclocal.in =================================================================== RCS file: /cvsroot/automake/automake/aclocal.in,v retrieving revision 1.55 diff -u -r1.55 aclocal.in --- aclocal.in 2001/03/07 18:37:06 1.55 +++ aclocal.in 2001/05/15 05:08:59 @@ -115,6 +115,7 @@ local (@dirlist) = &parse_arguments (@ARGV); +&parse_acpath ($ENV{'ACPATH'}, \@dirlist); &scan_m4_files (@dirlist); &scan_configure; if (! $exit_status) @@ -147,6 +148,17 @@ Report bugs to <bug-automake\@gnu.org>.\n"; exit $status; +} + +# Parse added include paths +sub parse_acpath +{ + local (@pathlist) = split ':', shift; + local ($dirlist) = shift; + + foreach (@pathlist) { + push (@$dirlist, $_); + } } # Parse command line.