config/pac.m4 configure.ac configure Check for psblas-3.4
@ -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 Will use MPIFC, otherwise '$FC'.
@ -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
pac_cv_psblas_patchlevel="unknown";
rm -f conftest*
AC_MSG_RESULT([Done])
]
@ -257,10 +257,14 @@ fi
if test "x$pac_cv_psblas_minor" == "xunknown"; then
AC_MSG_ERROR([PSBLAS version minor "$pac_cv_psblas_minor".])
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".])
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.])
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.])
###############################################################################