|
|
|
@ -675,9 +675,6 @@ lapack_target
|
|
|
|
|
lapack_libs
|
|
|
|
|
blas_line
|
|
|
|
|
blas_libs
|
|
|
|
|
ac_ct_F77
|
|
|
|
|
FFLAGS
|
|
|
|
|
F77
|
|
|
|
|
f90rule
|
|
|
|
|
SET_MAKE
|
|
|
|
|
cuda_extlibs
|
|
|
|
@ -797,9 +794,7 @@ LDFLAGS
|
|
|
|
|
LIBS
|
|
|
|
|
CC
|
|
|
|
|
CFLAGS
|
|
|
|
|
CPPFLAGS
|
|
|
|
|
F77
|
|
|
|
|
FFLAGS'
|
|
|
|
|
CPPFLAGS'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Initialize some variables set by options.
|
|
|
|
@ -1492,8 +1487,6 @@ Some influential environment variables:
|
|
|
|
|
CFLAGS C compiler flags
|
|
|
|
|
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
|
|
|
you have headers in a nonstandard directory <include dir>
|
|
|
|
|
F77 Fortran 77 compiler command
|
|
|
|
|
FFLAGS Fortran 77 compiler flags
|
|
|
|
|
|
|
|
|
|
Use these variables to override the choices made by `configure' or to help
|
|
|
|
|
it to find libraries and programs with nonstandard names/locations.
|
|
|
|
@ -1651,90 +1644,6 @@ fi
|
|
|
|
|
|
|
|
|
|
} # ac_fn_c_try_compile
|
|
|
|
|
|
|
|
|
|
# ac_fn_f77_try_compile LINENO
|
|
|
|
|
# ----------------------------
|
|
|
|
|
# Try to compile conftest.$ac_ext, and return whether this succeeded.
|
|
|
|
|
ac_fn_f77_try_compile ()
|
|
|
|
|
{
|
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
rm -f conftest.$ac_objext
|
|
|
|
|
if { { ac_try="$ac_compile"
|
|
|
|
|
case "(($ac_try" in
|
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
|
esac
|
|
|
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
(eval "$ac_compile") 2>conftest.err
|
|
|
|
|
ac_status=$?
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
|
|
|
cat conftest.er1 >&5
|
|
|
|
|
mv -f conftest.er1 conftest.err
|
|
|
|
|
fi
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
test $ac_status = 0; } && {
|
|
|
|
|
test -z "$ac_f77_werror_flag" ||
|
|
|
|
|
test ! -s conftest.err
|
|
|
|
|
} && test -s conftest.$ac_objext; then :
|
|
|
|
|
ac_retval=0
|
|
|
|
|
else
|
|
|
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
ac_retval=1
|
|
|
|
|
fi
|
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
as_fn_set_status $ac_retval
|
|
|
|
|
|
|
|
|
|
} # ac_fn_f77_try_compile
|
|
|
|
|
|
|
|
|
|
# ac_fn_f77_try_link LINENO
|
|
|
|
|
# -------------------------
|
|
|
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
|
|
|
ac_fn_f77_try_link ()
|
|
|
|
|
{
|
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
|
|
|
|
if { { ac_try="$ac_link"
|
|
|
|
|
case "(($ac_try" in
|
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
|
esac
|
|
|
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
(eval "$ac_link") 2>conftest.err
|
|
|
|
|
ac_status=$?
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
grep -v '^ *+' conftest.err >conftest.er1
|
|
|
|
|
cat conftest.er1 >&5
|
|
|
|
|
mv -f conftest.er1 conftest.err
|
|
|
|
|
fi
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
test $ac_status = 0; } && {
|
|
|
|
|
test -z "$ac_f77_werror_flag" ||
|
|
|
|
|
test ! -s conftest.err
|
|
|
|
|
} && test -s conftest$ac_exeext && {
|
|
|
|
|
test "$cross_compiling" = yes ||
|
|
|
|
|
test -x conftest$ac_exeext
|
|
|
|
|
}; then :
|
|
|
|
|
ac_retval=0
|
|
|
|
|
else
|
|
|
|
|
$as_echo "$as_me: failed program was:" >&5
|
|
|
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
|
|
ac_retval=1
|
|
|
|
|
fi
|
|
|
|
|
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
|
|
|
|
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
|
|
|
|
# interfere with the next link command; also delete a directory that is
|
|
|
|
|
# left behind by Apple's compiler. We do this before executing the actions.
|
|
|
|
|
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
as_fn_set_status $ac_retval
|
|
|
|
|
|
|
|
|
|
} # ac_fn_f77_try_link
|
|
|
|
|
|
|
|
|
|
# ac_fn_fc_try_link LINENO
|
|
|
|
|
# ------------------------
|
|
|
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
|
|
@ -2418,7 +2327,11 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checking MPIF90...
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
@ -2856,13 +2769,68 @@ if test $ac_compiler_gnu = yes; then
|
|
|
|
|
else
|
|
|
|
|
GFC=
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
|
|
|
|
|
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
|
|
|
|
|
if ${ac_cv_fc_srcext_f90+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
ac_ext=f90
|
|
|
|
|
ac_fcflags_srcext_save=$ac_fcflags_srcext
|
|
|
|
|
ac_fcflags_srcext=
|
|
|
|
|
ac_cv_fc_srcext_f90=unknown
|
|
|
|
|
case $ac_ext in #(
|
|
|
|
|
[fF]77) ac_try=f77;; #(
|
|
|
|
|
*) ac_try=f95;;
|
|
|
|
|
esac
|
|
|
|
|
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do
|
|
|
|
|
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_fc_srcext_f90=$ac_flag; break
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
rm -f conftest.$ac_objext conftest.f90
|
|
|
|
|
ac_fcflags_srcext=$ac_fcflags_srcext_save
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
|
|
|
|
|
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
|
|
|
|
|
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
|
|
|
|
|
else
|
|
|
|
|
ac_fc_srcext=f90
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xnone; then
|
|
|
|
|
ac_fcflags_srcext=""
|
|
|
|
|
FCFLAGS_f90=""
|
|
|
|
|
else
|
|
|
|
|
ac_fcflags_srcext=$ac_cv_fc_srcext_f90
|
|
|
|
|
FCFLAGS_f90=$ac_cv_fc_srcext_f90
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Checking MPIF90...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check whether --enable-parallel was given.
|
|
|
|
@ -3177,11 +3145,10 @@ if test $ac_compiler_gnu = yes; then
|
|
|
|
|
else
|
|
|
|
|
GFC=
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
# this avoids that an empty MPIF90 field is produced if the corresponding
|
|
|
|
|
# environment variable MPIF90 does not contain an acceptable compiler
|
|
|
|
@ -3300,62 +3267,6 @@ ftn )
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
|
|
|
|
|
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
|
|
|
|
|
if ${ac_cv_fc_srcext_f90+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
ac_ext=f90
|
|
|
|
|
ac_fcflags_srcext_save=$ac_fcflags_srcext
|
|
|
|
|
ac_fcflags_srcext=
|
|
|
|
|
ac_cv_fc_srcext_f90=unknown
|
|
|
|
|
case $ac_ext in #(
|
|
|
|
|
[fF]77) ac_try=f77;; #(
|
|
|
|
|
*) ac_try=f95;;
|
|
|
|
|
esac
|
|
|
|
|
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do
|
|
|
|
|
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_fc_srcext_f90=$ac_flag; break
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
rm -f conftest.$ac_objext conftest.f90
|
|
|
|
|
ac_fcflags_srcext=$ac_fcflags_srcext_save
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
|
|
|
|
|
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
|
|
|
|
|
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
|
|
|
|
|
else
|
|
|
|
|
ac_fc_srcext=f90
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xnone; then
|
|
|
|
|
ac_fcflags_srcext=""
|
|
|
|
|
FCFLAGS_f90=""
|
|
|
|
|
else
|
|
|
|
|
ac_fcflags_srcext=$ac_cv_fc_srcext_f90
|
|
|
|
|
FCFLAGS_f90=$ac_cv_fc_srcext_f90
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo setting F90... $f90
|
|
|
|
|
echo setting MPIF90... $mpif90
|
|
|
|
|
|
|
|
|
@ -3737,11 +3648,10 @@ if test "x$ac_cv_prog_cc_c89" != xno; then :
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
cc=$CC
|
|
|
|
|
|
|
|
|
@ -4224,65 +4134,6 @@ then
|
|
|
|
|
# -----------------------------------------
|
|
|
|
|
# Check compiler
|
|
|
|
|
# -----------------------------------------
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
|
|
|
|
|
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
|
|
|
|
|
if ${ac_cv_fc_srcext_f90+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
ac_ext=f90
|
|
|
|
|
ac_fcflags_srcext_save=$ac_fcflags_srcext
|
|
|
|
|
ac_fcflags_srcext=
|
|
|
|
|
ac_cv_fc_srcext_f90=unknown
|
|
|
|
|
case $ac_ext in #(
|
|
|
|
|
[fF]77) ac_try=f77;; #(
|
|
|
|
|
*) ac_try=f95;;
|
|
|
|
|
esac
|
|
|
|
|
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do
|
|
|
|
|
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_fc_srcext_f90=$ac_flag; break
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
rm -f conftest.$ac_objext conftest.f90
|
|
|
|
|
ac_fcflags_srcext=$ac_fcflags_srcext_save
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
|
|
|
|
|
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
|
|
|
|
|
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
|
|
|
|
|
else
|
|
|
|
|
ac_fc_srcext=f90
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xnone; then
|
|
|
|
|
ac_fcflags_srcext=""
|
|
|
|
|
FCFLAGS_f90=""
|
|
|
|
|
else
|
|
|
|
|
ac_fcflags_srcext=$ac_cv_fc_srcext_f90
|
|
|
|
|
FCFLAGS_f90=$ac_cv_fc_srcext_f90
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
as_CACHEVAR=`$as_echo "ax_cv_check_fcflags__$mMcuda=cuda$with_cuda_runtime" | $as_tr_sh`
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran compiler accepts $mMcuda=cuda$with_cuda_runtime" >&5
|
|
|
|
|
$as_echo_n "checking whether Fortran compiler accepts $mMcuda=cuda$with_cuda_runtime... " >&6; }
|
|
|
|
@ -4312,12 +4163,6 @@ else
|
|
|
|
|
have_cudafor=no
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_ext=c
|
|
|
|
|
ac_cpp='$CPP $CPPFLAGS'
|
|
|
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
if test "x$have_cudafor" != "xyes"
|
|
|
|
|
then
|
|
|
|
|
as_fn_error $? "You do not have the cudafor module. Are you using NVHPC compiler?" "$LINENO" 5
|
|
|
|
@ -4421,227 +4266,10 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
|
|
|
|
|
F77=$f90 # use Fortran 90 actually
|
|
|
|
|
FFLAGS="$test_fflags"
|
|
|
|
|
LDFLAGS="$test_ldflags"
|
|
|
|
|
|
|
|
|
|
# Checking BLAS...
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
if test -n "$ac_tool_prefix"; then
|
|
|
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
|
|
|
|
|
do
|
|
|
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
|
|
if ${ac_cv_prog_F77+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
if test -n "$F77"; then
|
|
|
|
|
ac_cv_prog_F77="$F77" # Let the user override the test.
|
|
|
|
|
else
|
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
|
for as_dir in $PATH
|
|
|
|
|
do
|
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
|
test -z "$as_dir" && as_dir=.
|
|
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
|
|
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
|
|
break 2
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
F77=$ac_cv_prog_F77
|
|
|
|
|
if test -n "$F77"; then
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
|
|
|
|
|
$as_echo "$F77" >&6; }
|
|
|
|
|
else
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test -n "$F77" && break
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
if test -z "$F77"; then
|
|
|
|
|
ac_ct_F77=$F77
|
|
|
|
|
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
|
|
|
|
|
do
|
|
|
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
|
|
|
|
set dummy $ac_prog; ac_word=$2
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
|
|
|
|
$as_echo_n "checking for $ac_word... " >&6; }
|
|
|
|
|
if ${ac_cv_prog_ac_ct_F77+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
if test -n "$ac_ct_F77"; then
|
|
|
|
|
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
|
|
|
|
|
else
|
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
|
for as_dir in $PATH
|
|
|
|
|
do
|
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
|
test -z "$as_dir" && as_dir=.
|
|
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
|
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
|
|
|
|
ac_cv_prog_ac_ct_F77="$ac_prog"
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
|
|
|
|
break 2
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
done
|
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
ac_ct_F77=$ac_cv_prog_ac_ct_F77
|
|
|
|
|
if test -n "$ac_ct_F77"; then
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
|
|
|
|
|
$as_echo "$ac_ct_F77" >&6; }
|
|
|
|
|
else
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test -n "$ac_ct_F77" && break
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if test "x$ac_ct_F77" = x; then
|
|
|
|
|
F77=""
|
|
|
|
|
else
|
|
|
|
|
case $cross_compiling:$ac_tool_warned in
|
|
|
|
|
yes:)
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
|
|
|
|
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
|
|
|
|
ac_tool_warned=yes ;;
|
|
|
|
|
esac
|
|
|
|
|
F77=$ac_ct_F77
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Provide some information about the compiler.
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
|
|
|
|
|
set X $ac_compile
|
|
|
|
|
ac_compiler=$2
|
|
|
|
|
for ac_option in --version -v -V -qversion; do
|
|
|
|
|
{ { ac_try="$ac_compiler $ac_option >&5"
|
|
|
|
|
case "(($ac_try" in
|
|
|
|
|
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
|
|
|
*) ac_try_echo=$ac_try;;
|
|
|
|
|
esac
|
|
|
|
|
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
|
|
|
|
$as_echo "$ac_try_echo"; } >&5
|
|
|
|
|
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
|
|
|
|
ac_status=$?
|
|
|
|
|
if test -s conftest.err; then
|
|
|
|
|
sed '10a\
|
|
|
|
|
... rest of stderr output deleted ...
|
|
|
|
|
10q' conftest.err >conftest.er1
|
|
|
|
|
cat conftest.er1 >&5
|
|
|
|
|
fi
|
|
|
|
|
rm -f conftest.er1 conftest.err
|
|
|
|
|
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
|
|
|
|
test $ac_status = 0; }
|
|
|
|
|
done
|
|
|
|
|
rm -f a.out
|
|
|
|
|
|
|
|
|
|
# If we don't use `.F' as extension, the preprocessor is not run on the
|
|
|
|
|
# input file. (Note that this only needs to work for GNU compilers.)
|
|
|
|
|
ac_save_ext=$ac_ext
|
|
|
|
|
ac_ext=F
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
|
|
|
|
|
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
|
|
|
|
|
if ${ac_cv_f77_compiler_gnu+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
#ifndef __GNUC__
|
|
|
|
|
choke me
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_f77_try_compile "$LINENO"; then :
|
|
|
|
|
ac_compiler_gnu=yes
|
|
|
|
|
else
|
|
|
|
|
ac_compiler_gnu=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
|
|
|
|
|
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
|
|
|
|
|
ac_ext=$ac_save_ext
|
|
|
|
|
ac_test_FFLAGS=${FFLAGS+set}
|
|
|
|
|
ac_save_FFLAGS=$FFLAGS
|
|
|
|
|
FFLAGS=
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
|
|
|
|
|
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
|
|
|
|
|
if ${ac_cv_prog_f77_g+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
FFLAGS=-g
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_f77_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_prog_f77_g=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_prog_f77_g=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
|
|
|
|
|
$as_echo "$ac_cv_prog_f77_g" >&6; }
|
|
|
|
|
if test "$ac_test_FFLAGS" = set; then
|
|
|
|
|
FFLAGS=$ac_save_FFLAGS
|
|
|
|
|
elif test $ac_cv_prog_f77_g = yes; then
|
|
|
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
|
|
|
|
FFLAGS="-g -O2"
|
|
|
|
|
else
|
|
|
|
|
FFLAGS="-g"
|
|
|
|
|
fi
|
|
|
|
|
else
|
|
|
|
|
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
|
|
|
|
|
FFLAGS="-O2"
|
|
|
|
|
else
|
|
|
|
|
FFLAGS=
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test $ac_compiler_gnu = yes; then
|
|
|
|
|
G77=yes
|
|
|
|
|
else
|
|
|
|
|
G77=
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
have_blas=0
|
|
|
|
@ -4757,7 +4385,7 @@ for ac_lib in '' $mkl_lib; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lmkl_sequential -lmkl_core $add_mkl_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -4806,7 +4434,7 @@ for ac_lib in '' $mkl_lib; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -l$mkl_omp -lmkl_core $add_mkl_omp $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -4867,7 +4495,7 @@ for ac_lib in '' essl; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -4967,7 +4595,7 @@ for ac_lib in '' armpl_arm; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib yes $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5042,7 +4670,7 @@ for ac_lib in '' armpl; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5090,7 +4718,7 @@ for ac_lib in '' armpl_mp; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5164,7 +4792,7 @@ for ac_lib in '' acml; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5209,7 +4837,7 @@ for ac_lib in '' acml_mp; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5277,7 +4905,7 @@ for ac_lib in '' blas; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5338,7 +4966,7 @@ for ac_lib in '' blas; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5403,7 +5031,7 @@ for ac_lib in '' f77blas; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lg2c $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5470,7 +5098,7 @@ for ac_lib in '' blas-3 openblas blas; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dgemm=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5573,7 +5201,7 @@ for ac_lib in '' lapack; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dspev=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5642,7 +5270,7 @@ for ac_lib in '' lapack-3 lapack; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dspev=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5784,7 +5412,7 @@ for ac_lib in '' fft; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_zftfax=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5852,7 +5480,7 @@ for ac_lib in '' asl; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_zfc3cl=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5937,7 +5565,7 @@ for ac_lib in '' fftw3_omp; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dfftw_execute_dft=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -5984,7 +5612,7 @@ for ac_lib in '' fftw3_omp; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lfftw3 -lm $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dfftw_execute_dft=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6030,7 +5658,7 @@ for ac_lib in '' fftw3; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lm $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_dfftw_execute_dft=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6060,65 +5688,6 @@ fi
|
|
|
|
|
|
|
|
|
|
if test "$have_fft" -eq 1
|
|
|
|
|
then
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran flag to compile .f90 files" >&5
|
|
|
|
|
$as_echo_n "checking for Fortran flag to compile .f90 files... " >&6; }
|
|
|
|
|
if ${ac_cv_fc_srcext_f90+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
ac_ext=f90
|
|
|
|
|
ac_fcflags_srcext_save=$ac_fcflags_srcext
|
|
|
|
|
ac_fcflags_srcext=
|
|
|
|
|
ac_cv_fc_srcext_f90=unknown
|
|
|
|
|
case $ac_ext in #(
|
|
|
|
|
[fF]77) ac_try=f77;; #(
|
|
|
|
|
*) ac_try=f95;;
|
|
|
|
|
esac
|
|
|
|
|
for ac_flag in none -qsuffix=f=f90 -Tf "-x $ac_try"; do
|
|
|
|
|
test "x$ac_flag" != xnone && ac_fcflags_srcext="$ac_flag"
|
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
program main
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_fc_srcext_f90=$ac_flag; break
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
done
|
|
|
|
|
rm -f conftest.$ac_objext conftest.f90
|
|
|
|
|
ac_fcflags_srcext=$ac_fcflags_srcext_save
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_srcext_f90" >&5
|
|
|
|
|
$as_echo "$ac_cv_fc_srcext_f90" >&6; }
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xunknown; then
|
|
|
|
|
as_fn_error $? "Fortran could not compile .f90 files" "$LINENO" 5
|
|
|
|
|
else
|
|
|
|
|
ac_fc_srcext=f90
|
|
|
|
|
if test "x$ac_cv_fc_srcext_f90" = xnone; then
|
|
|
|
|
ac_fcflags_srcext=""
|
|
|
|
|
FCFLAGS_f90=""
|
|
|
|
|
else
|
|
|
|
|
ac_fcflags_srcext=$ac_cv_fc_srcext_f90
|
|
|
|
|
FCFLAGS_f90=$ac_cv_fc_srcext_f90
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
try_dflags="$try_dflags -D__FFTW3"
|
|
|
|
|
try_incdir="$FFTW_INCLUDE $FFTW_INC $INCLUDE_PATH $CPATH $FPATH"
|
|
|
|
|
orig_fflags="$FFLAGS"
|
|
|
|
@ -6141,11 +5710,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
FFLAGS="$orig_fflags"
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
|
|
|
|
|
break
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -6323,10 +5887,10 @@ else
|
|
|
|
|
as_fn_error $? "Could not find required libxc library." "$LINENO" 5
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
@ -6354,8 +5918,7 @@ fi
|
|
|
|
|
foxlibs=""
|
|
|
|
|
else
|
|
|
|
|
extfox="libfox"
|
|
|
|
|
foxlibs="-L\$(TOPDIR)/FoX/lib -lFoX_dom -lFoX_sax -lFoX_wxml \
|
|
|
|
|
-lFoX_common -lFoX_utils -lFoX_fsys "
|
|
|
|
|
foxlibs="-L\$(TOPDIR)/FoX/lib -lFoX_dom -lFoX_sax -lFoX_wxml -lFoX_common -lFoX_utils -lFoX_fsys "
|
|
|
|
|
try_iflags="$try_iflags -I\$(TOPDIR)/FoX/finclude "
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
@ -6415,7 +5978,7 @@ for ac_lib in '' massvp4 massv; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lmass $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_vexp=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6483,7 +6046,7 @@ for ac_lib in '' massv; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lmass_simd $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_vexp=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6551,7 +6114,7 @@ for ac_lib in '' massvp4_64; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib -lmass_64 $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_vexp=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6654,7 +6217,7 @@ for ac_lib in '' mpi; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_mpi_init=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6745,7 +6308,6 @@ for dummy in x # to allow simple 'break'
|
|
|
|
|
do
|
|
|
|
|
test "$have_mpi" -eq 0 && break
|
|
|
|
|
|
|
|
|
|
F77=$mpif90
|
|
|
|
|
LIBS="$mpi_libs"
|
|
|
|
|
|
|
|
|
|
# look for scalapack if required
|
|
|
|
@ -6770,7 +6332,7 @@ for ac_lib in '' "" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6825,7 +6387,7 @@ for ac_lib in '' "mkl_scalapack_lp64" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib "$scalapack_libs" $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6877,7 +6439,7 @@ for ac_lib in '' "" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6927,7 +6489,7 @@ for ac_lib in '' "" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -6978,7 +6540,7 @@ for ac_lib in '' "" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -7031,7 +6593,7 @@ for ac_lib in '' "" ; do
|
|
|
|
|
ac_res=-l$ac_lib
|
|
|
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
|
|
|
|
fi
|
|
|
|
|
if ac_fn_f77_try_link "$LINENO"; then :
|
|
|
|
|
if ac_fn_fc_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_search_pdgemr2d=$ac_res
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
@ -7367,10 +6929,10 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$have_hdf5" -eq 1 ; then
|
|
|
|
@ -7610,10 +7172,10 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
ac_ext=f
|
|
|
|
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$have_hdf5" -eq 1 ; then
|
|
|
|
|