bug-autoconf
[Top][All Lists]
Advanced

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

Re: autoreconf doesn't pass -I to aclocal


From: Eric Blake
Subject: Re: autoreconf doesn't pass -I to aclocal
Date: Mon, 01 Sep 2008 06:52:44 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to David Hilvert on 8/28/2008 10:19 PM:
> 
> The autoreconf script isn't passing -I (et cetera) to aclocal.

aclocal is an automake tool; as such, are you sure that your Makefile.am
has the appropriate ACLOCAL_AMFLAGS line?  At any rate, I've added the
automake list, in case someone there has better advice.

> http://repo.or.cz/w/libale.git
> 
> But the patch below breaks it:
> 
> diff --git a/bootstrap b/bootstrap
> index 46dc7cd..1034bb9 100755
> --- a/bootstrap
> +++ b/bootstrap
> @@ -38,21 +38,11 @@ if test -e configure && test "x$1" != "x-r"; then
>  fi
>  
>  #
> -# Add autoconf archive files.
> -#
> -
> -cp /usr/share/autoconf-archive/acx_pthread.m4 m4/.
> -cp /usr/share/autoconf-archive/ax_lang_compiler_ms.m4 m4/.
> -cp /usr/share/autoconf-archive/ax_check_gl.m4 m4/.
> -cp /usr/share/autoconf-archive/ax_check_glu.m4 m4/.
> -cp /usr/share/autoconf-archive/ax_check_glut.m4 m4/.

This is a bit bold of your bootstrap script - not everyone has
autoconf-archive installed at that location.

> -
> -#
>  # Run autotools' bootstrap script, adding things that automake thinks are
>  # missing, among other things (--install).
>  #
>  
> -autoreconf --install
> +autoreconf -I /usr/share/autoconf-archive/ --install

I'm not sure that '-I absolute' will work with aclocal.  It seems like you
are better off copying it into your local m4 directory.  For example, that
is how gnulib works - rather than trying to autoreconf by pointing into
gnulib's m4 directory, the bootstrap process for projects using gnulib
will copy macros from the gnulib location (at whatever directory it might
be located at) over to the project's local m4 directory.  Then the single
'ACLOCAL_AMFLAGS = -I m4' is enough to tell autoreconf where to locate the
imported m4 files, without having to maintain them in the project's
version control system.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki75ZwACgkQ84KuGfSFAYDpNACcCcp+XOSTwf+zuWxXVa4zsi9H
At4An1puib6qA0BHLpplHs98FkugvGlz
=FXTA
-----END PGP SIGNATURE-----




reply via email to

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