From 9a2b08d42f91d283bb318d2927c5e8873eb6e625 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 10 Feb 2004 09:36:07 +0000 Subject: added i_size_read() check to configure.in --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index a5abe85..7aa7ad9 100644 --- a/configure.in +++ b/configure.in @@ -60,6 +60,14 @@ if test "$enable_kernel_module" != "no"; then AC_SUBST(majver) AC_SUBST(kmoduledir) subdirs="$subdirs kernel" + + old_cflags="$CFLAGS" + CFLAGS="-I${kernelsrc}/include -Wall -O2 -D__KERNEL__" + AC_CHECK_DECL(i_size_read, + AC_DEFINE(HAVE_I_SIZE_FUNC, 1, + [Kernel has i_size_read() and i_size_write() functions]),, + [#include ]) + CFLAGS="$old_cflags" fi if test "$enable_lib" != "no"; then -- cgit v1.2.3