]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/cf/check-type-extra.m4
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / cf / check-type-extra.m4
1 dnl $Id: check-type-extra.m4 13338 2004-02-12 14:21:14Z lha $
2 dnl
3 dnl ac_check_type + extra headers
4
5 dnl AC_CHECK_TYPE_EXTRA(TYPE, DEFAULT, HEADERS)
6 AC_DEFUN([AC_CHECK_TYPE_EXTRA],
7 [AC_REQUIRE([AC_HEADER_STDC])dnl
8 AC_MSG_CHECKING(for $1)
9 AC_CACHE_VAL(ac_cv_type_$1,
10 [AC_EGREP_CPP(dnl
11 changequote(<<,>>)dnl
12 <<$1[^a-zA-Z_0-9]>>dnl
13 changequote([,]), [#include <sys/types.h>
14 #if STDC_HEADERS
15 #include <stdlib.h>
16 #include <stddef.h>
17 #endif
18 $3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
19 AC_MSG_RESULT($ac_cv_type_$1)
20 if test $ac_cv_type_$1 = no; then
21   AC_DEFINE($1, $2, [Define this to what the type $1 should be.])
22 fi
23 ])