]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Jan 2004 18:20:51 +0000 (18:20 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 15 Jan 2004 18:20:51 +0000 (18:20 +0000)
-std1 disables some useful extensions on Tru64.

ChangeLog
lib/autoconf/c.m4

index 824da5fd2d24e97ac67433773088a0ece52eccd8..b5cfbff329725d68a202a56ed9ef18759264dd5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-15  Paul Eggert  <eggert@twinsun.com>
+
+       * lib/autoconf/c.m4 (_AC_PROG_CC_STDC): Try -std, not -std1, since
+       -std1 disables some useful extensions on Tru64.  Problem reported
+       by N. Lichtmaier in
+       <http://mail.gnu.org/archive/html/autoconf/2004-01/msg00100.html>.
+
 2004-01-14  Paul Eggert  <eggert@twinsun.com>
 
        * doc/autoconf.texi (Programming in M4sh): Document that
index 9d80b994ded855dcfb79d6a7367130fc9c21332c..eddba0f8b85873fb3aab8cc63315fe1d8714fade 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Programming languages support.
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -824,10 +824,10 @@ static char *f (char * (*g) (char **, int), char **p, ...)
 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
    function prototypes and stuff, but not '\xHH' hex character constants.
    These don't provoke an error unfortunately, instead are silently treated
-   as 'x'.  The following induces an error, until -std1 is added to get
+   as 'x'.  The following induces an error, until -std is added to get
    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
    array size at least.  It's necessary to write '\x00'==0 to get something
-   that's true only with -std1.  */
+   that's true only with -std.  */
 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
 int test (int i, double x);
@@ -840,11 +840,11 @@ char **argv;]],
 # Don't try gcc -ansi; that turns off useful extensions and
 # breaks some systems' header files.
 # AIX                  -qlanglvl=ansi
-# Ultrix and OSF/1     -std1
+# Ultrix, OSF/1, Tru64 -std
 # HP-UX 10.20 and later        -Ae
 # HP-UX older versions -Aa -D_HPUX_SOURCE
 # SVR4                 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+for ac_arg in "" -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 do
   CC="$ac_save_CC $ac_arg"
   _AC_COMPILE_IFELSE([],