summaryrefslogtreecommitdiff
path: root/ax_trilinos_thyra_epetraext.m4
diff options
context:
space:
mode:
Diffstat (limited to 'ax_trilinos_thyra_epetraext.m4')
-rw-r--r--ax_trilinos_thyra_epetraext.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/ax_trilinos_thyra_epetraext.m4 b/ax_trilinos_thyra_epetraext.m4
new file mode 100644
index 0000000..218364f
--- /dev/null
+++ b/ax_trilinos_thyra_epetraext.m4
@@ -0,0 +1,42 @@
+# ===========================================================================
+# http://autoconf-archive.cryp.to/ax_trilinos_thyra_epetraext.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_TRILINOS_THYRA_EPETRAEXT([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+#
+# DESCRIPTION
+#
+# Checks if the Thyra/EpetraExt adapters were compiled with Trilinos. When
+# ACTION-IF-NOT-FOUND is not specified, the default behavior is for
+# configure to fail.
+#
+# LAST MODIFICATION
+#
+# 2008-11-02
+#
+# COPYLEFT
+#
+# Copyright (c) 2008 Rhys Ulerich <rhys.ulerich@gmail.com>
+#
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided the copyright notice
+# and this notice are preserved.
+
+AC_DEFUN([AX_TRILINOS_THYRA_EPETRAEXT],[
+ AC_REQUIRE([AX_TRILINOS_BASE])
+ AC_REQUIRE([AX_TRILINOS_EPETRAEXT])
+ AC_REQUIRE([AX_TRILINOS_THYRA_EPETRA])
+ ax_trilinos_thyra_epetraext=yes
+ AC_HAVE_LIBRARY([thyraepetraext],[:],[ax_trilinos_thyra_epetraext=no])
+ if test "$ax_trilinos_thyra_epetraext" = yes; then
+ : # NOP
+ ifelse([$1],,,
+ [$1])
+ else
+ : # NOP
+ ifelse([$2],,AC_MSG_ERROR([Trilinos Thyra/EpetraExt adapters not usable.]),
+ [$2])
+ fi
+])