mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-18 20:02:27 +00:00
psblas3:
config/pac.m4 configure.ac configure Configry stuff for Cray FTN, to be tested.
This commit is contained in:
@@ -95,6 +95,47 @@ rm -f conftest*])
|
||||
|
||||
|
||||
|
||||
dnl @synopsis PAC_CHECK_HAVE_CRAYFTN( [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
dnl
|
||||
dnl Will check if MPIFC is $FC.
|
||||
dnl The check will proceed by compiling a small Fortran program
|
||||
dnl containing the _CRAYFTN macro, which should be defined in the
|
||||
dnl gfortran compiled programs.
|
||||
dnl
|
||||
dnl On pass, will execute ACTION-IF-FOUND. Otherwise, ACTION-IF-NOT-FOUND.
|
||||
dnl
|
||||
dnl @author Salvatore Filippone <salvatore.filippone@uniroma2.it>
|
||||
dnl
|
||||
AC_DEFUN(PAC_CHECK_HAVE_CRAYFTN,
|
||||
ac_exeext=''
|
||||
ac_ext='F'
|
||||
ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
|
||||
dnl Warning : square brackets are EVIL!
|
||||
[
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
program main
|
||||
#ifdef _CRAYFTN
|
||||
print *, "Cray FTN!"
|
||||
#else
|
||||
this program will fail
|
||||
#endif
|
||||
end
|
||||
|
||||
EOF
|
||||
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
|
||||
ifelse([$1], , :, [rm -rf conftest*
|
||||
$1])
|
||||
else
|
||||
echo "configure: failed program was:" >&AC_FD_CC
|
||||
cat conftest.$ac_ext >&AC_FD_CC
|
||||
ifelse([$2], , , [ rm -rf conftest*
|
||||
$2
|
||||
])dnl
|
||||
fi
|
||||
rm -f conftest*])
|
||||
|
||||
|
||||
|
||||
dnl @synopsis PAC_CHECK_HAVE_GFORTRAN( [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
|
||||
dnl
|
||||
dnl Will check if MPIFC is $FC.
|
||||
|
||||
Reference in New Issue
Block a user