From 77f748fd1ccdc4433b89625426d0883969d7be00 Mon Sep 17 00:00:00 2001 From: Lars Johannsen Date: Fri, 2 Jul 2010 13:56:00 -0700 Subject: [PATCH] Allow config/build to work with autoconf-2.65 As of autoconf-2.65 the AC_LANG_SOURCE source macro no longer includes the confdef.h results when expanded. To handle this simply explicitly include confdef.h in conftest.c. This will cause two copies to of confdef.h to be added to the test for earlier autoconf versions but this is not harmful. Signed-off-by: Brian Behlendorf --- config/kernel.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kernel.m4 b/config/kernel.m4 index 6f5d31d2d7..9c65b0feec 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -285,7 +285,7 @@ dnl # dnl # ZFS_LINUX_CONFTEST dnl # AC_DEFUN([ZFS_LINUX_CONFTEST], [ -cat >conftest.c <<_ACEOF +cat confdefs.h - <<_ACEOF >conftest.c $1 _ACEOF ])