[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting that AC_PROG_LIBTOOL has been invoked
From: |
Eric Blake |
Subject: |
Re: Detecting that AC_PROG_LIBTOOL has been invoked |
Date: |
Fri, 14 Dec 2007 07:54:54 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Adding bug-autoconf, replies can drop libtool]
According to Paolo Bonzini on 12/14/2007 5:24 AM:
>
> You can use m4_provide_if like this:
>
> m4_define([m4_provided], [
> m4_provide_if([AC_PROG_LIBTOOL], [], [
> m4_provide_if([LT_INIT], [],
> [m4_warn([syntax], [Libtool required by $1])])])])])
>
> ...
>
> m4_provided([MY_MACRO_NAME])
>
> I didn't count the number of closing brackets.
Sounds like it's time to document the m4_provide and m4_provide_if
portions of m4sugar. They are stable enough that they should not remain
undocumented, especially now that you are suggesting their use.
Also, the manual mentions AC_PROVIDE (a synonym for m4_provide), but does
not document it; and it also lacks documentation for AC_PROVIDE_IFELSE (a
synonym for m4_provide_if). When writing autoconf macros instead of
m4sugar scripts, using the AC_ spellings looks a bit nicer.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHYpk+84KuGfSFAYARAo+HAJ4vsDPXaPk/nJEbEYARtTntQ/t4NACgq15p
mPbH9bnH9zj+ID/c7sFGRM4=
=nPch
-----END PGP SIGNATURE-----