(clean): clean universal binary intermediate steps, too
[arla.git] / cf / kernel-have-def.m4
blob89e920b13b4cb16489e8661862b0c69e8fd37f4e
1 dnl
2 dnl $Id$
3 dnl
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],
10 [$2 foo],
11 cache_val=yes,
12 cache_val=no)])
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])
16         undefine([foo])
18 undefine([cache_val])