From a0ec9c282b3dbabec9d1f46e86c37336b9cd490b Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Wed, 20 Mar 2013 23:04:19 -0500 Subject: [svn-r23410] HDFFV-8264: Using F2003, build fails on Fedora with undefined reference to __h5r_MOD_h5rget_region_region_f This turned out being an issue with configure. The reporter submitted a patch which fixed the fact that we should not be setting AM_FCFLAGS (an automake variable) with FFLAGS (a user variable). I removed this, and we now only set FFLAGS if the environment variable is set, otherwise we don't. Tested: jam (gnu) --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 38b342a..a57d149 100644 --- a/configure.ac +++ b/configure.ac @@ -434,9 +434,10 @@ if test "X$HDF_FORTRAN" = "Xyes"; then ## -------------------------------------------------------------------- ## General Fortran flags - ## - AM_FCFLAGS="${AM_FCFLAGS} ${FFLAGS}" - FCFLAGS="${FCFLAGS} ${FFLAGS}" + ## Only add FFLAGS to FCFLAGS if it's set. + if test "x$FFLAGS" != "x" ; then + FCFLAGS="${FCFLAGS} ${FFLAGS}" + fi ## -------------------------------------------------------------------- ## Fortran source extention -- cgit v0.12