Commit acd9587b authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Downgrade cfortran.h failure to warning.

parent 9192a0f6
......@@ -29158,32 +29158,29 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cfortran_works" >&5
$as_echo "$acx_cv_cfortran_works" >&6; }
case x"$acx_cv_cfortran_works" in #(
if test x"$acx_cv_cfortran_works" = xyes; then :
$as_echo "#define HAVE_CF_INTERFACE 1" >>confdefs.h
else
case x"$acx_cv_cfortran_works" in #(
x"error") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Linking/Running with C EXTERNAL built with cfortran.h does not work!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&5
$as_echo "$as_me: Linking/Running with C EXTERNAL built with cfortran.h does not work!" >&6;} ;; #(
x"compiling with cfortran.h failed") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Compilation with cfortran.h is not working!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: Compilation with cfortran.h is not working!" >&5
$as_echo "$as_me: Compilation with cfortran.h is not working!" >&6;} ;; #(
x"error compiling Fortran subroutine") :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "compilation of simple Fortran source failed!
See \`config.log' for more details" "$LINENO" 5; } ;; #(
xyes) :
$as_echo "#define HAVE_CF_INTERFACE 1" >>confdefs.h
;; #(
{ $as_echo "$as_me:${as_lineno-$LINENO}: compilation of simple Fortran source failed!" >&5
$as_echo "$as_me: compilation of simple Fortran source failed!" >&6;} ;; #(
*) :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Unexpected error when linking C and Fortran via cfortran.h!
See \`config.log' for more details" "$LINENO" 5; } ;;
{ $as_echo "$as_me:${as_lineno-$LINENO}: Unexpected error when linking C and Fortran via cfortran.h!" >&5
$as_echo "$as_me: Unexpected error when linking C and Fortran via cfortran.h!" >&6;} ;;
esac
{ $as_echo "$as_me:${as_lineno-$LINENO}: Disabling cfortran.h bindings generation" >&5
$as_echo "$as_me: Disabling cfortran.h bindings generation" >&6;}
acx_cv_cfortran_works=no
fi
 
fi
if test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes; then
......
......@@ -328,7 +328,17 @@ ACX_XLF_QEXTNAME_ADD_APPENDUS
AS_IF([test -n "$FC" -a X"$FC" != Xno -o -n "$F77" -a X"$F77" != Xno],
[ACX_CHECK_CFORTRAN([$srcdir/src],
[AC_DEFINE([HAVE_CF_INTERFACE],[1],
[Defined to 1 if C / Fortran interface cfortran.h works])])])
[Defined to 1 if C / Fortran interface cfortran.h works])],
[AS_CASE([x"$acx_cv_cfortran_works"],
[x"error"],
[AC_MSG_NOTICE([Linking/Running with C EXTERNAL built with cfortran.h does not work!])],
[x"compiling with cfortran.h failed"],
[AC_MSG_NOTICE([Compilation with cfortran.h is not working!])],
[x"error compiling Fortran subroutine"],
[AC_MSG_NOTICE([compilation of simple Fortran source failed!])],
[AC_MSG_NOTICE([Unexpected error when linking C and Fortran via cfortran.h!])])
AC_MSG_NOTICE([Disabling cfortran.h bindings generation])
acx_cv_cfortran_works=no])])
AM_CONDITIONAL([USE_FC],[test -n "$FC" -a X"$FC" != Xno -a x"$acx_cv_cfortran_works" = xyes])dnl
dnl
AC_SUBST([CPPFLAGS])dnl
......
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