mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-20 21:02:26 +00:00
psblas3:
configure changes for librsb interoperability.
This commit is contained in:
@@ -742,6 +742,7 @@ with_module_path
|
||||
enable_dependency_tracking
|
||||
with_blas
|
||||
with_lapack
|
||||
with_rsb
|
||||
with_metis
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
@@ -1404,6 +1405,7 @@ Optional Packages:
|
||||
prepend to [MODULE_PATH]
|
||||
--with-blas=<lib> use BLAS library <lib>
|
||||
--with-lapack=<lib> use LAPACK library <lib>
|
||||
--with-rsb Specify Recursive Sparse BLAS library
|
||||
--with-metis=LIB Specify -lMETISLIBNAME or the absolute library
|
||||
filename.
|
||||
|
||||
@@ -8772,6 +8774,22 @@ fi
|
||||
#AC_CHECK_LIB(umf,umfpack_di_solve,psblas_cv_have_umfpack=yes,psblas_cv_have_umfpack=no,[amd])
|
||||
|
||||
|
||||
# Check whether --with-rsb was given.
|
||||
if test "${with_rsb+set}" = set; then :
|
||||
withval=$with_rsb; if test x$withval = xno; then
|
||||
want_rsb_libs= ; else if test x$withval = xyes ; then want_rsb_libs=-lrsb ; else want_rsb_libs="$withval" ; fi ; FDEFINES="$psblas_cv_define_prepend-DHAVE_LIBRSB $FDEFINES" ; fi
|
||||
else
|
||||
want_rsb_libs=""
|
||||
fi
|
||||
|
||||
if test x$want_rsb_libs != x ; then
|
||||
# FIXME ! temporary for OpenMP
|
||||
want_rsb_libs="`/usr/local/bin/librsb-config --static --ldflags` -fopenmp $want_rsb_libs"
|
||||
fi
|
||||
RSB_LIBS="$want_rsb_libs"
|
||||
LIBS="$RSB_LIBS ${LIBS}"
|
||||
|
||||
|
||||
# Check whether --with-metis was given.
|
||||
if test "${with_metis+set}" = set; then :
|
||||
withval=$with_metis; psblas_cv_metis=$withval
|
||||
|
||||
@@ -652,6 +652,16 @@ PAC_MAKE_IS_GNUMAKE
|
||||
# Note : also umfdi_local_search, ...
|
||||
#AC_CHECK_LIB(umf,umfpack_di_solve,psblas_cv_have_umfpack=yes,psblas_cv_have_umfpack=no,[amd])
|
||||
|
||||
AC_ARG_WITH(rsb, AC_HELP_STRING([--with-rsb], [Specify Recursive Sparse BLAS library]), [if test x$withval = xno; then
|
||||
want_rsb_libs= ; else if test x$withval = xyes ; then want_rsb_libs=-lrsb ; else want_rsb_libs="$withval" ; fi ; FDEFINES="$psblas_cv_define_prepend-DHAVE_LIBRSB $FDEFINES" ; fi], [want_rsb_libs=""])
|
||||
if test x$want_rsb_libs != x ; then
|
||||
# FIXME ! temporary for OpenMP
|
||||
want_rsb_libs="`/usr/local/bin/librsb-config --static --ldflags` -fopenmp $want_rsb_libs"
|
||||
fi
|
||||
RSB_LIBS="$want_rsb_libs"
|
||||
LIBS="$RSB_LIBS ${LIBS}"
|
||||
dnl AC_CHECK_HEADERS([rsb.h], [ LIBS="${LIBS} $want_rsb_libs"], [])
|
||||
|
||||
AC_ARG_WITH(metis, AC_HELP_STRING([--with-metis=LIB], [Specify -lMETISLIBNAME or the absolute library filename.]),
|
||||
[psblas_cv_metis=$withval],
|
||||
[psblas_cv_metis=''])
|
||||
|
||||
Reference in New Issue
Block a user