blob: 99660b27ff852af49996a65b17df86f8bbdfbda1 (
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
42
|
AC_DEFUN(AC_MY_LIBS,
[
if ` test "$1" `
then
AC_MSG_CHECKING(gmp library)
if test -r "$1/lib$2.a"
then
LDADD="$LDADD $1/lib$2.a"
else
AC_MSG_ERROR($2 not found)
fi
AC_MSG_RESULT(yes)
else
AC_CHECK_LIB($2, main, , AC_MSG_ERROR($2 not found))
fi
]
)
AC_DEFUN(AC_MY_HEADERS,
[
if test "$1"
then
AC_CHECK_HEADER($1/$2, INCLUDES="$INCLUDES -I$1",AC_MSG_ERROR(echo $2 not found in $1))
else
AC_CHECK_HEADER($2,, AC_MSG_ERROR($2 not found))
fi
])
AC_DEFUN(AC_CHECK_OS,
[
AC_MSG_CHECKING(OS type)
OS_TYPE=`uname -a | awk '{print $ 1}' `
AC_MSG_RESULT($OS_TYPE)
])
AC_DEFUN(AC_CHECK_MACHTYPE,
[
AC_MSG_CHECKING(Mach type)
MACHTYPE=`uname -m`
AC_MSG_RESULT($MACHTYPE)
])
|