From: Paul Eggert Date: Wed, 22 Jul 2020 19:56:19 +0000 (-0700) Subject: Port AC_F77_LIBRARY_LDFLAGS to oneAPI HPC Toolkit X-Git-Tag: v2.69c~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae26b9b44c183c41b84fc36ff70082713295d621;p=thirdparty%2Fautoconf.git Port AC_F77_LIBRARY_LDFLAGS to oneAPI HPC Toolkit Problem reported by Bill Dieter in: https://lists.gnu.org/r/bug-autoconf/2020-07/msg00089.html * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Defend against ‘clang -mllvm -loopopt=0’. --- diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 0a0c4168..59a8859b 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -698,6 +698,7 @@ while test $[@%:@] != 1; do -zallextract*| -zdefaultextract) ac_cv_[]_AC_LANG_ABBREV[]_libs="$ac_cv_[]_AC_LANG_ABBREV[]_libs $ac_arg" ;; + -mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'. # Ignore everything else. esac done