configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
authorRichard Guenther <rguenther@suse.de>
Sat, 5 Nov 2005 21:09:13 +0000 (21:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 5 Nov 2005 21:09:13 +0000 (21:09 +0000)
2005-11-05  Richard Guenther  <rguenther@suse.de>

* configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
* configure: Regenerate.

From-SVN: r106535

libgfortran/ChangeLog
libgfortran/configure
libgfortran/configure.ac

index 0459b6ba9e6fd0f7383ebdd9e714f7766db3247a..9905c4f8e8be16ba2dc44f11d154fc7390d6a93a 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-05  Richard Guenther  <rguenther@suse.de>
+
+       * configure.ac: Use AM_FCFLAGS for extra flags, not FCFLAGS.
+       * configure: Regenerate.
+
 2005-11-05  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
 
        * intrinsics/tty.c (ttynam): New function.
index b5bcafafa81481ac5ba5a710c971714ec5656228..a332726e6684b0b4ce5420a6d416c6eed046f770 100755 (executable)
@@ -2965,9 +2965,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-# Add -Wall if we are using GCC.
+# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
 if test "x$GCC" = "xyes"; then
-  AM_FCFLAGS="-Wall"
+  AM_FCFLAGS="-Wall -fno-repack-arrays -fno-underscoring"
   ## We like to use C99 routines when available.  This makes sure that
   ## __STDC_VERSION__ is set such that libc includes make them available.
   AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
@@ -4418,7 +4418,6 @@ exec 5>>./config.log
 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
 
 # We need gfortran to compile parts of the library
-# We can't use AC_PROG_FC because it expects a fully working gfortran.
 #AC_PROG_FC(gfortran)
 FC="$GFORTRAN"
 ac_ext=${FC_SRCEXT-f}
@@ -4513,7 +4512,7 @@ fi
 
 
 # Provide some information about the compiler.
-echo "$as_me:4516:" \
+echo "$as_me:4515:" \
      "checking for Fortran compiler version" >&5
 ac_compiler=`set X $ac_compile; echo $2`
 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -4656,7 +4655,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
-FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
 
 # extra LD Flags which are required for targets
 case "${host}" in
index 1808455acad06512520182150d047ee73c847d06..6ca4565e024ba7a42927713e73d85d953c1610c0 100644 (file)
@@ -109,9 +109,9 @@ m4_define([_AC_ARG_VAR_PRECIOUS],[])
 AC_PROG_CC
 m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
 
-# Add -Wall if we are using GCC.
+# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
 if test "x$GCC" = "xyes"; then
-  AM_FCFLAGS="-Wall"
+  AM_FCFLAGS="-Wall -fno-repack-arrays -fno-underscoring"
   ## We like to use C99 routines when available.  This makes sure that
   ## __STDC_VERSION__ is set such that libc includes make them available.
   AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
@@ -135,11 +135,9 @@ AC_SUBST(enable_static)
 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
 
 # We need gfortran to compile parts of the library
-# We can't use AC_PROG_FC because it expects a fully working gfortran.
 #AC_PROG_FC(gfortran)
 FC="$GFORTRAN"
 AC_PROG_FC(gfortran)
-FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring"
 
 # extra LD Flags which are required for targets
 case "${host}" in