mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r21315] Fix for fortran 2003-related bin/reconfigure warnings (with proper quoting this time). Tested on jam (w/ gfortran 4.5.3 for fortran 2003), talwit and linew.
This commit is contained in:
parent
fd71d209df
commit
a69cfa6bf2
8
configure
vendored
8
configure
vendored
@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in Id: configure.in 21304 2011-08-23 21:37:00Z derobins .
|
||||
# From configure.in Id: configure.in 21306 2011-08-24 15:17:49Z brtnfld .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.68 for HDF5 1.9.89.
|
||||
#
|
||||
@ -6339,15 +6339,13 @@ $as_echo_n "checking if Fortran compiler supports ISO_C_BINDING module... " >&6;
|
||||
|
||||
cat > conftest.$ac_ext <<_ACEOF
|
||||
program main
|
||||
|
||||
USE iso_c_binding
|
||||
|
||||
USE iso_c_binding
|
||||
end
|
||||
_ACEOF
|
||||
if ac_fn_fc_try_compile "$LINENO"; then :
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
HAVE_ISO_C_BINDING="yes"
|
||||
HAVE_ISO_C_BINDING=yes
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
|
@ -529,11 +529,10 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
|
||||
|
||||
AC_MSG_CHECKING([if Fortran compiler supports ISO_C_BINDING module])
|
||||
|
||||
AC_TRY_COMPILE(,[
|
||||
USE iso_c_binding
|
||||
], [AC_MSG_RESULT(yes)
|
||||
HAVE_ISO_C_BINDING="yes"],
|
||||
AC_MSG_RESULT(no))
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[USE iso_c_binding])],
|
||||
[AC_MSG_RESULT(yes)
|
||||
HAVE_ISO_C_BINDING=[yes]],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
if test "X$HAVE_ISO_C_BINDING" = "Xno"; then
|
||||
AC_MSG_ERROR([Fortran compiler does not have ISO_C_BINDING; unsupported Fortran 2003 compiler, remove --enable-fortran2003])
|
||||
|
Loading…
Reference in New Issue
Block a user