On 05/31/2011 01:51 AM, Vincent Torri wrote: > > Hey, > > I have a library that is using gettext is available, that is, in > configure.ac, i use: > > m4_ifdef([AM_GNU_GETTEXT_VERSION], [ > AM_GNU_GETTEXT_VERSION([0.12.1]) > ]) Why force such an old version? Most distros support at least 0.17, which comes with quite a few improvements over 0.12.1. > > Unfortunately, when I use autoreconf -f -i on a system that has no > gettext, there is an error saying that autopoint is not available while > the package is using gettext. > > How can I fix that problem ? Right now, autoreconf greps configure.ac for /^AM_GNU_GETTEXST_VERSION/, rather than using autoconf --trace mechanisms. Which is unfortunate, because for situations like this, it gets the wrong answers. You can foil autoreconf's grep by inserting whitespace or using extra m4 quoting, such as: m4_ifdef([AM_GNU_GETTEXT_VERSION], [ AM_GNU_GETTEXT_VERSION([...]) ]) which would probably fix autoreconf on your bare-bones system, but I don't know if that will break the running of gettext on systems where it is installed. Ultimately, it would be super nice if we could convert autoreconf over to using --trace mechanisms for seeing which macros are actually called, rather than just grepping for magic strings. -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf