Re: Problem with tests for GSL

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

 



On Oct 29, 2007, at 5:53 PM, Laurence Finston wrote:

However, I would still be interested to know if there's a way of passing
specific options to the C or C++ compiler when `configure' runs its
tests without having to go deeply into the guts of Autoconf.  I have
looked into it a bit, but it seems like a major undertaking to really
understand how to use it at that level.

You can change the relevant flags before the invocation of the compiler and restore them afterwards. The typical idiom is this:

saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -my-new-flag"
AC_TRY_LINK(...)
# now you know whether -my-new-flag works and you can take the appropriate action
CFLAGS=$saved_CFLAGS

Cheers,

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux