[MOAB-dev] commit/MOAB: danwu: Save FCFLAGS and FFLAGS before calling AC_PROG_FC or AC_PROG_F77.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Jul 8 16:01:05 CDT 2014


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/f36b2982fa13/
Changeset:   f36b2982fa13
Branch:      master
User:        danwu
Date:        2014-07-08 22:59:25
Summary:     Save FCFLAGS and FFLAGS before calling AC_PROG_FC or AC_PROG_F77.

Affected #:  1 file

diff --git a/config/compiler.m4 b/config/compiler.m4
index 4787100..0c03094 100644
--- a/config/compiler.m4
+++ b/config/compiler.m4
@@ -89,6 +89,12 @@ test "xno" = "x$CHECK_FC" || CHECK_FC=yes
 USER_CXXFLAGS="$CXXFLAGS"
 USER_CFLAGS="$CFLAGS"
 
+  # Save these before calling AC_PROG_FC or AC_PROG_F77
+  # because those macros will modify them, and we want
+  # the original user values, not the autoconf defaults.
+USER_FCFLAGS="$FCFLAGS"
+USER_FFLAGS="$FFLAGS"
+
   # Check for Parallel
   # Need to check this early so we can look for the correct compiler
 AC_ARG_WITH( [mpi], AC_HELP_STRING([[--with-mpi@<:@=DIR@:>@]], [Enable parallel support]),

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list