diff --git a/configure b/configure index e398607..e08bb2d 100755 --- a/configure +++ b/configure @@ -18753,6 +18753,7 @@ if test "$coin_has_metis" = yes; then fi # Fix Fortran preprocessor flags +# Add workaround for incompatibility with Fortran 2003 (https://github.com/coin-or-tools/ThirdParty-Mumps/issues/4) case $FC in *xlf*) fdefs= @@ -18763,6 +18764,9 @@ case $FC in fi MY_FDEFS="$fdefs" ;; + *gfortran*) + MY_FDEFS="$MY_FDEFS -std=legacy" + ;; esac diff --git a/configure.ac b/configure.ac index e6a282e..f91f9b4 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,7 @@ if test "$coin_has_metis" = yes; then fi # Fix Fortran preprocessor flags +# Add workaround for incompatibility with Fortran 2003 (https://github.com/coin-or-tools/ThirdParty-Mumps/issues/4) case $FC in *xlf*) fdefs= @@ -116,6 +117,9 @@ case $FC in fi MY_FDEFS="$fdefs" ;; + *gfortran*) + MY_FDEFS="$MY_FDEFS -std=legacy" + ;; esac AC_SUBST(MY_FDEFS)