This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Compiler flags
- From: Guido Draheim <guidod-2002- at gmx dot de>
- To: ai26 at sternwarte dot uni-erlangen dot de, automake at gnu dot org
- Date: Mon, 11 Nov 2002 01:49:20 +0100
- Subject: Re: Compiler flags
- References: <A0LHXSVP5Y3YC8VSHCA974IGH05BMH.3dcef400@micha>
This is an autoconf.at.gnu.org question...
Michael Lemke wrote:
Today I've been trying to learn automake&autoconf. Something I can't
figure out although it is the main reason I am investigating automake:
How do I set compiler flags based on the compiler? For example, g77
requires -fdollar-ok but Sun Fortran won't like that. How can I handle
that? How much does automake know about such problems?
Thanks for any suggestions,
Michael
check at configure-time if the compiler supports the option.
Just try_compile and do not use if the test fails. That's it.
http://ac-archive.sf.net/guidod/ac_check_cc_opt.html