From 3bab8c6b1dd3ce1d992b0865843f48d22398d4d3 Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Sat, 8 Nov 2008 18:45:51 +0000
Subject: [PATCH] New --enable-fortran-blas flag.
---
configure.ac | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index cb066fe..fe0a3f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,6 +29,8 @@ AC_CONFIG_FILES([Makefile gnu-compat/Makefile
add_ons/libalbas/tests/Makefile
add_ons/block_solve/Makefile
add_ons/block_solve/src/Makefile
+ add_ons/block_solve/demo/Makefile
+ add_ons/block_solve/demo/2d/Makefile
add_ons/geomview/Makefile
add_ons/grape/Makefile
add_ons/grape/mesh/Makefile
@@ -149,6 +151,12 @@ AC_ARG_ENABLE([dim-of-world],
;;
esac])
+ALBERTA_ENABLE_FLAG([fortran-blas],
+ [Use BLAS routines for some basis linear algebra stuff.],
+ [disabled],
+ [USE_F77_BLAS],
+ [DEFINE SUBST COND])
+
ALBERTA_ENABLE_FLAG([vector-basis-functions],
[Disable support for vector-valued basis functions. If you leave this enabled
ALBERTA supports DIM_OF_WORLD-valued basis functions and scalar basis
@@ -310,7 +318,7 @@ if test "${BUILD_DEBUG_LIBS}" = "1"; then
fi
fi
AC_ARG_VAR([ALBERTA_DEBUG_CXXFLAGS],
- [C++ cCompiler-flags used to create the debug-enabled libraries])
+ [C++ Compiler-flags used to create the debug-enabled libraries])
fi
#
@@ -598,10 +606,23 @@ if test "$ALBERTA_EFENCE" = 0 -a -n "$EFENCE_LIB"; then
ALBERTA_EFENCE=1
fi
+#
+# OpenMP
+#
+ALBERTA_OPENMP
+if test -n "${OPENMP_CFLAGS}"; then
+ ALBERTA_OPTIMIZE_CFLAGS="${ALBERTA_OPTIMIZE_CFLAGS} ${OPENMP_CFLAGS}"
+ ALBERTA_DEBUG_CFLAGS="${ALBERTA_DEBUG_CFLAGS} ${OPENMP_CFLAGS}"
+ ALBERTA_PROFILE_CFLAGS="${ALBERTA_PROFILE_CFLAGS} ${OPENMP_CFLAGS}"
+ ALBERTA_FFLAGS="${ALBERTA_FFLAGS} ${OPENMP_CFLAGS}"
+ LDFLAGS="${LDFLAGS} `echo ${OPENMP_CFLAGS}|sed -e 's/-/-XCClinker -/g'`"
+fi
+
#
# Install libtool.alberta for shared libraries?
#
-ALBERTA_ENABLE_FLAG([install-libtool], [disable installation of libtool.alberta], 1)
+ALBERTA_ENABLE_FLAG([install-libtool],
+ [disable installation of libtool.alberta], 1)
# building of all versions is enabled by default, but can be
# disabled using --disable-DOW-dimension switches (the macros
--
GitLab