autoconf
[Top][All Lists]
Advanced

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

Platform-specific AC_ARG_*


From: John Calcote
Subject: Platform-specific AC_ARG_*
Date: Mon, 23 Jun 2008 11:21:32 -0600
User-agent: Thunderbird 2.0.0.14 (X11/20080421)

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

I'm building a configure.ac file that would like to provide some
platform-specific options as command-line options.

For example, on Solaris SPARC hosts, you can target sparc-generic code,
if you wish, but it makes no sense to even see an option,
- --enable-sparc-generic on an Intel Linux box.

Is there a way to use AC_ENABLE_ARG conditionally, based on the contents
of the $host variable, for example?

I've also thought about the possibility of adding some "solaris only"
text to the help text for the option. I've also considered adding an
AC_MSG_ERROR message if someone attempts to use the option on a
non-Solaris/Sparc host. But these options seem wrong to me.

Thanks,
John
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIX9ucdcgqmRY/OH8RAmWpAJwPRDWppd8aaiGcpxz11mYjKnU+RACeJBKe
NFfobfjyBbB8pkQcmDUp2v4=
=GlUt
-----END PGP SIGNATURE-----




reply via email to

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