Mike Dodd | 8cfa702 | 2010-11-17 11:12:26 -0800 | [diff] [blame] | 1 | dnl AX_KERNEL_OPTION(option, action-if-found, action-if-not-found) |
2 | dnl see if autoconf.h defines the option | ||||
3 | AC_DEFUN([AX_KERNEL_OPTION], [ | ||||
4 | SAVE_CFLAGS=$CFLAGS | ||||
5 | CFLAGS="-I$KINC -O2 -D__KERNEL__" | ||||
6 | AC_TRY_COMPILE( [#include <linux/autoconf.h>], | ||||
7 | [ | ||||
8 | #ifndef $1 | ||||
9 | break_me_hard(\\\); | ||||
10 | #endif | ||||
11 | ],[$2],[$3],) | ||||
12 | CFLAGS=$SAVE_CFLAGS | ||||
13 | ]) |