mld2p4-2:

config/pac.m4
 configure.ac
 configure

Check for psblas-3.4
stopcriterion
Salvatore Filippone 10 years ago
parent 6267a30999
commit b992f1907a

@ -380,7 +380,7 @@ rm -f conftest*])
dnl @synopsis PAC_FORTRAN_PSBLAS_VERSION( )
dnl
dnl Will try to compile, link and run a program using the PSBLAS library. \
dnl Checks for version major and minor
dnl Checks for version major, minor and patchlevel
dnl
dnl Will use MPIFC, otherwise '$FC'.
dnl
@ -423,6 +423,19 @@ else
cat conftest.$ac_ext >&AC_FD_CC
pac_cv_psblas_minor="unknown";
fi
cat > conftest.$ac_ext <<EOF
program test
use psb_base_mod
print *,psb_patchlevel_
end program test
EOF
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
pac_cv_psblas_patchlevel=`./conftest${ac_exeext} | sed 's/^ *//'`
else
echo "configure: failed program was:" >&AC_FD_CC
cat conftest.$ac_ext >&AC_FD_CC
pac_cv_psblas_patchlevel="unknown";
fi
rm -f conftest*
AC_MSG_RESULT([Done])
]

5986
configure vendored

File diff suppressed because it is too large Load Diff

@ -257,10 +257,14 @@ fi
if test "x$pac_cv_psblas_minor" == "xunknown"; then
AC_MSG_ERROR([PSBLAS version minor "$pac_cv_psblas_minor".])
fi
if (( $pac_cv_psblas_major < 3 )) || ( (( $pac_cv_psblas_major == 3 )) && (( $pac_cv_psblas_minor < 1 ))) ; then
AC_MSG_ERROR([I need at least PSBLAS version 3.1.])
if test "x$pac_cv_psblas_patchlevel" == "xunknown"; then
AC_MSG_ERROR([PSBLAS patchlevel "$pac_cv_psblas_patchlevel".])
fi
if (( $pac_cv_psblas_major < 3 )) ||
( (( $pac_cv_psblas_major == 3 )) && (( $pac_cv_psblas_minor < 4 ))) ; then
AC_MSG_ERROR([I need at least PSBLAS version 3.4.])
else
AC_MSG_NOTICE([Am configuring with PSBLAS version $pac_cv_psblas_major.$pac_cv_psblas_minor.])
AC_MSG_NOTICE([Am configuring with PSBLAS version $pac_cv_psblas_major.$pac_cv_psblas_minor.$pac_cv_psblas_patchlevel.])
fi
###############################################################################

Loading…
Cancel
Save