5 dnl AC_HAVE_KERNEL_DEF(includes, [struct|typedef])
6 AC_DEFUN([AC_HAVE_KERNEL_DEF], [
7 define(cache_val, translit(ac_cv_have_def_$2, [A-Z ], [a-z_]))
8 AC_CACHE_CHECK([if $2 exists], cache_val, [
9 AC_TRY_COMPILE_KERNEL([$1],
13 if test "$cache_val" = yes; then
14 define(foo, translit(HAVE_DEF_$2, [a-z ], [A-Z_]))
15 AC_DEFINE(foo, 1, [Define if you have $2])