summaryrefslogtreecommitdiff
path: root/m4/ax_trilinos_thyra_epetra.m4
diff options
context:
space:
mode:
authorRhys Ulerich <rhys.ulerich@gmail.com>2008-11-07 00:07:19 +0100
committerPeter Simons <simons@cryp.to>2008-11-07 00:07:19 +0100
commit3a26712ace5ab2a47ea5e8f17d1aec80f373fdc7 (patch)
tree0ed92dac4c67c0d22d189c6c6587dfce20e358ca /m4/ax_trilinos_thyra_epetra.m4
parentd3e9b1463db867d2c396e0349fd62169c17f9954 (diff)
downloadautoconf-archive-3a26712ace5ab2a47ea5e8f17d1aec80f373fdc7.tar.gz
Updated AX_TRILINOS macros.
Diffstat (limited to 'm4/ax_trilinos_thyra_epetra.m4')
-rw-r--r--m4/ax_trilinos_thyra_epetra.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/m4/ax_trilinos_thyra_epetra.m4 b/m4/ax_trilinos_thyra_epetra.m4
new file mode 100644
index 0000000..1efe1d6
--- /dev/null
+++ b/m4/ax_trilinos_thyra_epetra.m4
@@ -0,0 +1,42 @@
+# ===========================================================================
+# http://autoconf-archive.cryp.to/ax_trilinos_thyra_epetra.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_TRILINOS_THYRA_EPETRA([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+#
+# DESCRIPTION
+#
+# Checks if the Thyra/Epetra 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_EPETRA],[
+ AC_REQUIRE([AX_TRILINOS_BASE])
+ AC_REQUIRE([AX_TRILINOS_EPETRA])
+ AC_REQUIRE([AX_TRILINOS_THYRA])
+ ax_trilinos_thyra_epetra=yes
+ AC_HAVE_LIBRARY([thyraepetra],[:],[ax_trilinos_thyra_epetra=no])
+ if test "$ax_trilinos_thyra_epetra" = yes; then
+ : # NOP
+ ifelse([$1],,,
+ [$1])
+ else
+ : # NOP
+ ifelse([$2],,AC_MSG_ERROR([Trilinos Thyra/Epetra support not usable.]),
+ [$2])
+ fi
+])