From: Wolfgang Bangerth Date: Wed, 29 Aug 2007 13:26:49 +0000 (+0000) Subject: Always link with blas and lapack if using PETSc on Mac OS X. X-Git-Tag: v8.0.0~9966 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e29ca56365217d61bfdc404b72e8a34d5ea10d55;p=dealii.git Always link with blas and lapack if using PETSc on Mac OS X. git-svn-id: https://svn.dealii.org/trunk@15082 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure b/deal.II/configure index c90c584155..0a78a1ae2f 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -11094,6 +11094,17 @@ if test "x$with_petsc" != "x" -a "x$with_petsc" != "xno" ; then with_blas="yes" fi fi + + case "$target" in + *-apple-darwin* ) + if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then + with_blas="yes" + fi + if test "x$with_lapack" = "x" -o "x$with_lapack" = "xno"; then + with_lapack="yes" + fi + ;; + esac fi diff --git a/deal.II/configure.in b/deal.II/configure.in index 1608754c55..e1284349db 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -429,12 +429,26 @@ fi dnl Likewise, if we use PETSc and link statically, we have to add blas to the dnl linker line (if we use shared libs, then the PETSc libs already carry this dnl dependence, but static archives do not have a method to list dependencies) +dnl +dnl On Mac OS X, when using PETSc, it appears as if we always need to link with +dnl blas and lapack, independently of whether we use static or shared libs if test "x$with_petsc" != "x" -a "x$with_petsc" != "xno" ; then if test "x$enableshared" = "xno" ; then if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then with_blas="yes" fi fi + + case "$target" in + *-apple-darwin* ) + if test "x$with_blas" = "x" -o "x$with_blas" = "xno"; then + with_blas="yes" + fi + if test "x$with_lapack" = "x" -o "x$with_lapack" = "xno"; then + with_lapack="yes" + fi + ;; + esac fi dnl -------------------------------------------------------------