diff --git a/configure b/configure index 8fbf0baf..87a38015 100755 --- a/configure +++ b/configure @@ -726,7 +726,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -838,7 +837,6 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1091,15 +1089,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1237,7 +1226,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1390,7 +1379,6 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -4418,6 +4406,8 @@ if test x"$pac_cv_serial_mpi" == x"yes" ; then FAKEMPI="fakempi.o"; MPIFC="$FC"; MPICC="$CC"; + CXXDEFINES="-DSERIAL_MPI $CXXDEFINES"; + else ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -8432,11 +8422,12 @@ if test "x$amg4psblas_cv_have_mumps" == "xyes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: PSBLAS defines PSB_LPK_ as $pac_cv_psblas_lpk. MUMPS interfacing will fail when called in global mode on very large matrices. " >&5 $as_echo "$as_me: PSBLAS defines PSB_LPK_ as $pac_cv_psblas_lpk. MUMPS interfacing will fail when called in global mode on very large matrices. " >&6;} fi - MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_INCLUDES" if test "x$pac_mumps_fmods_ok" == "xyes" ; then FDEFINES="$amg_cv_define_prepend-DHAVE_MUMPS_ $amg_cv_define_prepend-DHAVE_MUMPS_MODULES_ $MUMPS_MODULES $FDEFINES" + MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_MODULES" elif test "x$pac_mumps_fincs_ok" == "xyes" ; then FDEFINES="$amg_cv_define_prepend-DHAVE_MUMPS_ $amg_cv_define_prepend-DHAVE_MUMPS_INCLUDES_ $MUMPS_FINCLUDES $FDEFINES" + MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_INCLUDES" else # This should not happen MUMPS_FLAGS="" diff --git a/configure.ac b/configure.ac index 94a86aaa..216b3915 100755 --- a/configure.ac +++ b/configure.ac @@ -169,6 +169,8 @@ if test x"$pac_cv_serial_mpi" == x"yes" ; then FAKEMPI="fakempi.o"; MPIFC="$FC"; MPICC="$CC"; + CXXDEFINES="-DSERIAL_MPI $CXXDEFINES"; + else AC_LANG([C]) if test "X$MPICC" = "X" ; then @@ -654,11 +656,12 @@ if test "x$amg4psblas_cv_have_mumps" == "xyes" ; then if test "x$pac_cv_psblas_lpk" == "x8" ; then AC_MSG_NOTICE([PSBLAS defines PSB_LPK_ as $pac_cv_psblas_lpk. MUMPS interfacing will fail when called in global mode on very large matrices. ]) fi - MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_INCLUDES" if test "x$pac_mumps_fmods_ok" == "xyes" ; then FDEFINES="$amg_cv_define_prepend-DHAVE_MUMPS_ $amg_cv_define_prepend-DHAVE_MUMPS_MODULES_ $MUMPS_MODULES $FDEFINES" + MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_MODULES" elif test "x$pac_mumps_fincs_ok" == "xyes" ; then FDEFINES="$amg_cv_define_prepend-DHAVE_MUMPS_ $amg_cv_define_prepend-DHAVE_MUMPS_INCLUDES_ $MUMPS_FINCLUDES $FDEFINES" + MUMPS_FLAGS="-DHave_MUMPS_ $MUMPS_INCLUDES" else # This should not happen MUMPS_FLAGS=""