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
|
# LPIC_TO_UPPER(STRING)
# ---------------------
# Convert the passed string to uppercase
AC_DEFUN([LPIC_TO_UPPER],
[translit([$1],[abcdefghijklmnopqrstuvwxyz.],[ABCDEFGHIJKLMNOPQRSTUVWXYZ_])])
# Check whether the pvm headers are available
AC_DEFUN([LPIC_CHECK_PVM],
[AC_MSG_CHECKING([for pvm header])
AC_TRY_COMPILE(
[@%:@include <pvm3.h>],
[],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([pvm header not found])])
])
# Check whether the mpi headers are available
AC_DEFUN([LPIC_CHECK_MPI],
[AC_MSG_CHECKING([for mpi header])
AC_TRY_COMPILE(
[@%:@include <mpi.h>],
[],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([mpi header not found])])
])
# Check whether FUNCTION (including namespace qualifier) is available
# when compiling after including HEADER.
AC_DEFUN([LPIC_CHECK_FUNC],
[AC_MSG_CHECKING([for compilation with $1])
AC_TRY_COMPILE(
[@%:@include <$3>],
[$1($2);],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([function $1 not found])])
])
|