On 04/13/2010 01:42 PM, Steffen Dettmer wrote: > Hi, > > we have a generic .m4 file and it has package-specific options in such a way: > > AC_ARG_ENABLE(AC_PACKAGE_NAME[-logging], > [ --enable-]AC_PACKAGE_NAME[-logging[=ARG] Enable logging > for ]AC_PACKAGE_NAME[ [ARG=yes]], > > is this the good / right / correct way to do that or are there pitfalls? This should work, but you may want to also use AS_HELP_STRING for better formatting of the --help text. You may also want to use m4_defn([AC_PACKAGE_NAME]) instead of AC_PACKAGE_NAME, in case the package name resembles an existing macro name. -- 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 http://lists.gnu.org/mailman/listinfo/autoconf