Sync usage with man page.
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / check-type-extra.m4
blob9e9e3a9a5beaf3812fea253cf31664d2d76a1da5
1 dnl $Heimdal: check-type-extra.m4 13338 2004-02-12 14:21:14Z lha $
2 dnl $NetBSD$
3 dnl
4 dnl ac_check_type + extra headers
6 dnl AC_CHECK_TYPE_EXTRA(TYPE, DEFAULT, HEADERS)
7 AC_DEFUN([AC_CHECK_TYPE_EXTRA],
8 [AC_REQUIRE([AC_HEADER_STDC])dnl
9 AC_MSG_CHECKING(for $1)
10 AC_CACHE_VAL(ac_cv_type_$1,
11 [AC_EGREP_CPP(dnl
12 changequote(<<,>>)dnl
13 <<$1[^a-zA-Z_0-9]>>dnl
14 changequote([,]), [#include <sys/types.h>
15 #if STDC_HEADERS
16 #include <stdlib.h>
17 #include <stddef.h>
18 #endif
19 $3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
20 AC_MSG_RESULT($ac_cv_type_$1)
21 if test $ac_cv_type_$1 = no; then
22   AC_DEFINE($1, $2, [Define this to what the type $1 should be.])