summaryrefslogtreecommitdiff
path: root/ax_trilinos_teuchos.m4
blob: bce4bb1dd08eef7d78124a20e8387f52950c9a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ===========================================================================
#          http://autoconf-archive.cryp.to/ax_trilinos_teuchos.html
# ===========================================================================
#
# SYNOPSIS
#
#   AX_TRILINOS_TEUCHOS([, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
#
# DESCRIPTION
#
#   Test for the Trilinos Teuchos
#   (http://trilinos.sandia.gov/packages/teuchos) library. On success,
#   defines HAVE_LIBTEUCHOS due to AC_CHECK_LIB invocation.
#
# LAST MODIFICATION
#
#   2008-08-06
#
# 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_TEUCHOS],[
    AC_REQUIRE([AX_TRILINOS_BASE])
    ax_trilinos_teuchos=yes
    AC_CHECK_HEADER([Teuchos_Version.hpp],,[ax_trilinos_teuchos=no])
    AC_CHECK_LIB(   [teuchos],[main],     ,[ax_trilinos_teuchos=no])
    if test "$ax_trilinos_teuchos" = yes; then
        dnl NOP required
        :
        ifelse([$1], , , [$1])
    else
        dnl NOP required
        :
        ifelse([$2], , , [$2])
    fi
])