Avoid the following warning:
$ ./autogen.sh
configure.ac:42: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call
detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded
from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded
from...
m4/as-linux.m4:435: AS_CHECK_REDHAT_PRE_FC2 is expanded from...
m4/as-linux.m4:69: AS_LINUX is expanded from...
configure.ac:42: the top level
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
HAVE_REDHAT_KERNEL=false
ac_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -I${LINUX_DIR}/include/linux"
- AC_COMPILE_IFELSE(AC_LANG_PROGRAM([
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include "rhconfig.h"
int code = RED_HAT_LINUX_KERNEL;
- ]),
+ ]])],
AC_MSG_RESULT(found); HAVE_REDHAT_KERNEL=true,
AC_MSG_RESULT(not found))
dnl restore CFLAGS