[MOAB-dev] r5299 - MOAB/trunk/config
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Tue Jan 10 04:14:23 CST 2012
Author: tautges
Date: 2012-01-10 04:14:23 -0600 (Tue, 10 Jan 2012)
New Revision: 5299
Added:
MOAB/trunk/config/damsel.m4
Log:
Forgot to add this one, and defaulting it to off.
Added: MOAB/trunk/config/damsel.m4
===================================================================
--- MOAB/trunk/config/damsel.m4 (rev 0)
+++ MOAB/trunk/config/damsel.m4 2012-01-10 10:14:23 UTC (rev 5299)
@@ -0,0 +1,73 @@
+#######################################################################################
+# Check for Damsel library ((C++)
+# Sets HAVE_DAMSEL to 'yes' or 'no'
+# If HAVE_DAMSEL == yes, then exports:
+# DAMSEL_CPPFLAGS
+# DAMSEL_LDFLAGS
+# DAMSEL_LIBS
+#######################################################################################
+AC_DEFUN([FATHOM_CHECK_DAMSEL],[
+
+AC_MSG_CHECKING([if DAMSEL support is enabled])
+AC_ARG_WITH(damsel,
+[AC_HELP_STRING([--with-damsel=DIR], [Specify DAMSEL location])
+AC_HELP_STRING([--without-damsel], [Disable support for DAMSEL file format])],
+[DAMSEL_ARG=$withval
+DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-damsel=\"${withval}\""
+]
+, [DAMSEL_ARG=])
+if test "x" != "x$DAMSEL_ARG" && test "xno" != "x$DAMSEL_ARG"; then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+ # if DAMSEL support is not disabled
+AC_MSG_CHECKING([if DAMSEL support available])
+AC_MSG_RESULT([])
+HAVE_DAMSEL=no
+if test "xno" != "x$DAMSEL_ARG"; then
+ HAVE_DAMSEL=yes
+
+ # if a path is specified, update LIBS and INCLUDES accordingly
+ if test "xyes" != "x$DAMSEL_ARG" && test "x" != "x$DAMSEL_ARG"; then
+ if test -d "${DAMSEL_ARG}/lib"; then
+ DAMSEL_LDFLAGS="-L${DAMSEL_ARG}/lib"
+ elif test -d "${DAMSEL_ARG}"; then
+ DAMSEL_LDFLAGS="-L${DAMSEL_ARG}"
+ else
+ AC_MSG_ERROR("$DAMSEL_ARG is not a directory.")
+ fi
+ if test -d "${DAMSEL_ARG}/include"; then
+ DAMSEL_CPPFLAGS="-I${DAMSEL_ARG}/include"
+ else
+ DAMSEL_CPPFLAGS="-I${DAMSEL_ARG}"
+ fi
+ fi
More information about the moab-dev
mailing list