In Tru64 autoconf likes to select "-std1" as the flag to get an ANSI compiler. The problem is that this is similar to the "-ansi" switch in GCC, and it turns off useful extensions. The normal and recommended switch would be just "-std". �Could this be fixed?

I'm attaching a patch that I think it fixes the problem by testing -std
before -std1. I haven't tested it though.

Thanks.

--
Nicol�s Lichtmaier.-
Synapsis Argentina
+54(11)4314-3000 (int. 231)



--- c.m4.orig   2004-01-13 12:32:55.000000000 -0300
+++ c.m4        2004-01-13 12:34:15.000000000 -0300
@@ -840,11 +840,12 @@
 # Don't try gcc -ansi; that turns off useful extensions and
 # breaks some systems' header files.
 # AIX                  -qlanglvl=ansi
+# Tru64                        -std
 # Ultrix and OSF/1     -std1
 # 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 -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc 
-D__EXTENSIONS__"
 do
   CC="$ac_save_CC $ac_arg"
   _AC_COMPILE_IFELSE([],

Reply via email to