autoconf for compiler warnings

Brad Hards bhards at bigpond.net.au
Sun Dec 8 14:42:04 EST 2002


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

G'day,

I'm in the process of autoconf'ing some code, and (to my significant 
amazement) it wasn't even that hard. I can definately recommend the info page 
and http://sources.redhat.com/autobook/autobook/autobook_toc.html

One thing I can't seem to find though: how to test compiler behaviour for 
warning flags. Basically, if I have gcc, I want to set CFLAGS="${CFLAGS} 
- -Wall -W", and on other compilers, I'd like the closest warning equivalent.

Any ideas?

Brad

BTW: Anyone know of a website that has an autoconf "cookbook" collection? 

- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE98r+MW6pHgIdAuOMRAplgAJ90cOs6HFQ4mZWHpL7EiF4DhN40WQCdFwoA
8UJJm0IGJQ5OQtEZD64qeKI=
=p3Bm
-----END PGP SIGNATURE-----




More information about the linux mailing list