1 dnl $Heimdal: check-type-extra.m4 13338 2004-02-12 14:21:14Z lha $
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,
13 <<$1[^a-zA-Z_0-9]>>dnl
14 changequote([,]), [#include <sys/types.h>
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.])