summaryrefslogtreecommitdiff
path: root/lib/autoconf/fortran.m4
diff options
context:
space:
mode:
Diffstat (limited to 'lib/autoconf/fortran.m4')
-rw-r--r--lib/autoconf/fortran.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4
index 59a8859b..16bd9cb0 100644
--- a/lib/autoconf/fortran.m4
+++ b/lib/autoconf/fortran.m4
@@ -665,9 +665,12 @@ while test $[@%:@] != 1; do
|-LANG:=* | -LIST:* | -LNO:* | -link)
;;
-lkernel32)
+ # Ignore this library only on Windows-like systems.
case $host_os in
- *cygwin*) ;;
- *) ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg"
+ cygwin* | msys* ) ;;
+ *)
+ _AC_LIST_MEMBER_IF($ac_arg, $ac_cv_[]_AC_LANG_ABBREV[]_libs, ,
+ ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg")
;;
esac
;;