Skip to content

Commit

Permalink
fix notneeded getting added as a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rem1776 authored and rem1776 committed Jul 25, 2024
1 parent 3b5bd28 commit 184b6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m4/gx_fortran_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ if test -f "FOO.mod"; then
gx_cv_fc_mod_case_flag="-ef"
fi
else
gx_cv_fc_mod_case_flag="notneeded"
gx_cv_fc_mod_case_flag=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Expand All @@ -449,7 +449,7 @@ FCFLAGS=$gx_mod_case_flag_FCFLAGS_save
if test "x$gx_cv_fc_mod_case_flag" = "xunknown"; then
m4_default([$2],
[AC_MSG_ERROR([No working flag found to disable .mod filename capitalization])])
elif test "x$gx_cv_fc_mod_case_flag" != "notneeded"; then
elif test "x$gx_cv_fc_mod_case_flag" != "x"; then
AC_DEFINE([NEEDS_MOD_OUTPUT_CASE_FLAG], 1,
[Define to 1 if your Fortran compiler requires a flag to match case of module names])
FC_MOD_CASE_FLAG=$gx_cv_fc_mod_case_flag
Expand Down

0 comments on commit 184b6b7

Please sign in to comment.