[cig-commits] r22391 - seismo/3D/SPECFEM3D_GLOBE/trunk

elliott.sales.de.andrade at geodynamics.org elliott.sales.de.andrade at geodynamics.org
Thu Jun 20 15:04:02 PDT 2013


Author: elliott.sales.de.andrade
Date: 2013-06-20 15:04:01 -0700 (Thu, 20 Jun 2013)
New Revision: 22391

Modified:
   seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess
Log:
Allow setting default CFLAGS in flags.guess.

Modified: seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess	2013-06-20 22:03:50 UTC (rev 22390)
+++ seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess	2013-06-20 22:04:01 UTC (rev 22391)
@@ -144,6 +144,11 @@
         ;;
 esac
 
+# If you wish, set CFLAGS here instead of on the command-line.
+# This will then be persistent across calls to configure.
+# If you don't set it, then the default value will be determined by autoconf.
+#DEF_CFLAGS="-g -O3"
+
 if test "x$FLAGS_CHECK" = "x"; then
     FLAGS_CHECK="$DEF_FFLAGS"
 fi
@@ -158,5 +163,10 @@
 echo MPILIBS=\"$MPILIBS\" | sed 's/\$/\\\$/g'
 echo FLAGS_CHECK=\"$FLAGS_CHECK\" | sed 's/\$/\\\$/g'
 echo FCENV=\"$FCENV\" | sed 's/\$/\\\$/g'
+if [ -n "${DEF_CFLAGS+set}" -a -z "${CFLAGS+set}" ]; then
+# We only set this if it's set in this file and the user hasn't
+# overridden it on the command-line.
+echo CFLAGS=\"$DEF_CFLAGS\" | sed 's/\$/\\\$/g'
+fi
 
 # end of file



More information about the CIG-COMMITS mailing list