From: Eric Blake Date: Tue, 25 Sep 2007 12:23:03 +0000 (-0600) Subject: Improve C99 detection. X-Git-Tag: v2.62~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50306359a4c172df95c1e6aaf93c448fb2ea3958;p=thirdparty%2Fautoconf.git Improve C99 detection. * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and avoid deprecation warning with icc. * THANKS: Update. Reported by Ted Bullock. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 235d1f06..102aa726 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-09-25 Eric Blake + + Improve C99 detection. + * lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and + avoid deprecation warning with icc. + * THANKS: Update. + Reported by Ted Bullock. + 2007-09-24 Jim Meyering Whenever possible, use the vertical bar as sed delimiter. diff --git a/THANKS b/THANKS index fbffc1be..13318e0d 100644 --- a/THANKS +++ b/THANKS @@ -308,6 +308,7 @@ Stu Grossman grossman@cygnus.com Sumit Pandya sumit@elitecore.com Syd Polk spolk@cygnus.com T.E. Dickey dickey@clark.net +Ted Bullock tbullock@canada.com Theodore Ts'o tytso@mit.edu Thien-Thi Nguyen ttn@gnu.org Thomas Winder tom@vlsivie.tuwien.ac.at diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index a31b7727..7e2d76e9 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1299,13 +1299,14 @@ test_varargs (const char *format, ...) dnl Try dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999) dnl AIX -qlanglvl=extc99 (unused restrictive mode: -qlanglvl=stdc99) -dnl Intel ICC -c99 +dnl HP cc -AC99 +dnl Intel ICC -std=c99, -c99 (deprecated) dnl IRIX -c99 dnl Solaris -xc99=all (Forte Developer 7 C mishandles -xc99 on Solaris 9, dnl as it incorrectly assumes C99 semantics for library functions) dnl Tru64 -c99 dnl with extended modes being tried first. -[[-std=gnu99 -c99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl +[[-std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl ])# _AC_PROG_CC_C99