Commit 96719876 authored by Andreas Marek's avatar Andreas Marek
Browse files

Fix error in determining whether _ is needed

parent e7cd6e73
Changelog for next release
- not yet decided
- fix determination whether a _ is needed to link Fortran to C
Changelog for ELPA 2020.05.001
......
......@@ -1053,7 +1053,7 @@ if test x"$can_link_with_" = x"yes"; then
AC_DEFINE([NEED_UNDERSCORE_TO_LINK_AGAINST_FORTRAN],[1],[need to append an underscore])
fi
AC_MSG_CHECKING(whether we do not need _ in C programs to link against a Fortran library)
AC_MSG_CHECKING(whether we can link C programs against Fortran without _ )
AC_LINK_IFELSE([AC_LANG_SOURCE([
int main(int argc, char **argv) {
......@@ -1067,11 +1067,10 @@ int main(int argc, char **argv) {
[can_link_without_=no]
)
AC_MSG_RESULT([${can_link_without_}])
if test x"$can_link_with_" = x"yes"; then
if test x"$can_link_without_" = x"yes"; then
AC_DEFINE([NEED_NO_UNDERSCORE_TO_LINK_AGAINST_FORTRAN],[1],[need not to append an underscore])
fi
if test x"${need_vsx}" = x"yes"; then
AC_MSG_CHECKING(whether we can compile Altivec VSX with intrinsics in C)
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment