Commit 85931dee authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Fail the configure script if ISO interface is requested but the compiler does...

Fail the configure script if ISO interface is requested but the compiler does not support CHARACTER interoperability.
parent 38c71800
......@@ -264,7 +264,10 @@ AC_ARG_ENABLE([iso-c-interface],
[Create Fortran Interface via iso_c_bindings facility of F2003 [default=no].])],
[enable_isoc=${enableval}],[enable_isoc=no])
AS_IF([test x"$enable_isoc" = xyes],
[ACX_FC_CHECK_STRPTR_CONVERT(,[enable_isoc=no])],[enable_isoc=no])
[ACX_FC_CHECK_STRPTR_CONVERT([],
[AC_MSG_FAILURE([the Fortran compiler cannot handle complex CHARACTER dnl
interoperability: disable Fortran 2003 interface (--disable-iso-c-interface)])])],
[enable_isoc=no])
AM_CONDITIONAL([CREATE_ISOC],[test "x$enable_isoc" = 'xyes'])
AC_SUBST([ENABLE_F2003_ISOC],[$enable_isoc])
AM_SUBST_NOTMAKE([ENABLE_F2003_ISOC])
......
Markdown is supported
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