blob: 66aa532d27689cfef4007f23e286aa1c542078ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
dnl #
dnl # FR_CHECK_TYPE_INCLUDE([#includes ...], type, default-C-types)
dnl #
dnl # This function is like AC_CHECK_TYPE, but you can give this one
dnl # a list of include files to check.
dnl #
AC_DEFUN([FR_CHECK_TYPE_INCLUDE],
[
AC_CACHE_CHECK(for $2, ac_cv_type_$2,
[ ac_cv_type_$2=no
AC_TRY_COMPILE($1,
[$2 foo],
ac_cv_type_$2=yes,
)
]
)
if test "$ac_cv_type_$2" != "yes"; then
AC_DEFINE($2, $3, $4)
fi
])
|