summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-12-07 06:39:40 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-12-07 06:39:40 +0000
commitcaf889e96e7cbc9d5e40c6cf0e92f76ccf5970a1 (patch)
tree43a437af19d56d0c545c02735eab202ef3555370 /lib
parent0164ff72c2efd4c7db112cca680ded68f5217254 (diff)
downloadautoconf-caf889e96e7cbc9d5e40c6cf0e92f76ccf5970a1.tar.gz
* lib/autoconf/c.m4 (_AC_PROG_CC_C89): Also try -xc99=all, for Sun
C 5.8 on Solaris 10. Using -xc99=all rather than -xc99 bypasses the buggy -xc99 option of Forte Developer 7 C on Solaris 9.
Diffstat (limited to 'lib')
-rw-r--r--lib/autoconf/c.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 38586f96..0b610469 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1278,11 +1278,11 @@ 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 IRIX -c99
-dnl Solaris (unused because it causes the compiler to assume C99 semantics for
-dnl library functions, and this is invalid before Solaris 10: -xc99)
+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 -qlanglvl=extc99]], [$1], [$2])[]dnl
+[[-std=gnu99 -c99 -xc99=all -qlanglvl=extc99]], [$1], [$2])[]dnl
])# _AC_PROG_CC_C99