1dnl ------------------------------------------------------------- 2dnl LASPACK Iterative Solvers 3dnl ------------------------------------------------------------- 4AC_DEFUN([CONFIGURE_LASPACK], 5[ 6 AC_ARG_ENABLE(laspack, 7 AS_HELP_STRING([--disable-laspack], 8 [build without LASPACK iterative solver support]), 9 [AS_CASE("${enableval}", 10 [yes], [enablelaspack=yes], 11 [no], [enablelaspack=no], 12 [AC_MSG_ERROR(bad value ${enableval} for --enable-laspack)])], 13 [enablelaspack=$enableoptional]) 14 15 AS_IF([test "x$enablelaspack" = "xyes" && 16 (test "x$enabletripleprecision" != "xno" || 17 test "x$enablequadrupleprecision" != "xno")], 18 [enablelaspack=no 19 AC_MSG_RESULT(<<< Disabling LASPACK support due to extended precision >>>) 20 ], []) 21 22 dnl The LASPACK API is distributed with libmesh, so we don't have to guess 23 dnl where it might be installed... 24 AS_IF([test "x$enablelaspack" = "xyes"], 25 [ 26 LASPACK_INCLUDE="-I\$(top_srcdir)/contrib/laspack" 27 LASPACK_LIB="\$(EXTERNAL_LIBDIR)/liblaspack\$(libext)" 28 AC_DEFINE(HAVE_LASPACK, 1, [Flag indicating whether the library will be compiled with LASPACK support]) 29 AC_MSG_RESULT(<<< Configuring library with Laspack support >>>) 30 ], 31 [ 32 LASPACK_INCLUDE="" 33 LASPACK_LIB="" 34 enablelaspack=no 35 ]) 36 37 AC_SUBST(LASPACK_INCLUDE) 38 AC_SUBST(LASPACK_LIB) 39]) 40