From 2bdf9cfae3333595b98baa8a7fd4a6fed6d0eb8b Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Mon, 15 Dec 2008 10:40:22 -0800
Subject: [PATCH 1/2] Moving all kernel+user configure magic to the correct
 topic branches where the features are introduced or needed

---
 config/zfs-build.m4 | 25 -------------------------
 configure.ac        | 28 ----------------------------
 2 files changed, 53 deletions(-)

diff --git a/config/zfs-build.m4 b/config/zfs-build.m4
index 074018207e..149b96a04a 100644
--- a/config/zfs-build.m4
+++ b/config/zfs-build.m4
@@ -361,28 +361,3 @@ AC_DEFUN([ZFS_CHECK_SYMBOL_EXPORT],
 		$3
 	fi
 ])
-
-dnl #
-dnl # 2.6.x API change
-dnl # bio_end_io_t uses 2 args (size was dropped from prototype)
-dnl #
-AC_DEFUN([ZFS_AC_2ARGS_BIO_END_IO_T],
-	[AC_MSG_CHECKING([whether bio_end_io_t wants 2 args])
-	tmp_flags="$EXTRA_KCFLAGS"
-	EXTRA_KCFLAGS="-Werror"
-	ZFS_LINUX_TRY_COMPILE([
-	        #include <linux/bio.h>
-	],[
-		void (*wanted_end_io)(struct bio *, int) = NULL;
-		bio_end_io_t *local_end_io;
-
-		local_end_io = wanted_end_io;
-	],[
-	        AC_MSG_RESULT(yes)
-	        AC_DEFINE(HAVE_2ARGS_BIO_END_IO_T, 1,
-	                  [bio_end_io_t wants 2 args])
-	],[
-	        AC_MSG_RESULT(no)
-	])
-	EXTRA_KCFLAGS="$tmp_flags"
-])
diff --git a/configure.ac b/configure.ac
index 51ec72c5fe..ca6f34085d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,34 +54,6 @@ ZFS_AC_SPL
 ZFS_AC_CONFIG
 ZFS_AC_LICENSE
 ZFS_AC_DEBUG
-ZFS_AC_2ARGS_BIO_END_IO_T
-
-AC_CHECK_LIB([diskmgt], [libdiskmgt_error],
-	[AC_DEFINE([HAVE_LIBDISKMGT], 1,
-        [Define to 1 if 'libdiskmgt' library available])])
-
-AC_CHECK_LIB([efi], [efi_alloc_and_init],
-	[AC_DEFINE([HAVE_LIBEFI], 1,
-	[Define to 1 if 'libefi' library available])])
-
-AC_CHECK_LIB([share], [sa_init],
-	[AC_DEFINE([HAVE_LIBSHARE], 1,
-	[Define to 1 if 'libshare' library available])])
-
-AC_EGREP_HEADER(strcmp, strings.h, 
-	[AC_DEFINE([HAVE_STRCMP_IN_STRINGS_H], 1,
-        [Define to 1 if strcmpl() is defined in <strings.h> header file])])
-
-AC_EGREP_HEADER(sysinfo, sys/systeminfo.h, 
-	[AC_DEFINE([HAVE_SYSINFO_IN_SYS_SYSTEMINFO_H], 1,
-        [Define to 1 if sysinfo() is defined in <sys/systeminfo.h> header file])])
-
-#AC_DEFINE([HAVE_ZVOL], 1, ["Define to 1 to include ZVOL support"])
-#AC_DEFINE([HAVE_ZPL], 1, ["Define to 1 to include ZPL support"])
-#AC_DEFINE([WANT_FAKE_IOCTL], 1, ["Define to 1 to use fake ioctl() support"])
-#AC_DEFINE([HAVE_DM_INUSE_SWAP], 1, ["None"])
-#AC_DEFINE([HAVE_UNICODE], 1, ["None"])
-#AC_DEFINE([HAVE_INTTYPES], 1, [Define to 1 if unint16 defined in <sys/types.h>])
 
 AC_CONFIG_FILES([ Makefile
                   config/Makefile

From 574e2cec0d57b565303f5db045bf756ebbef6788 Mon Sep 17 00:00:00 2001
From: Brian Behlendorf <behlendorf1@llnl.gov>
Date: Mon, 15 Dec 2008 10:41:15 -0800
Subject: [PATCH 2/2] Minor context change to ease merging

---
 config/user.m4 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/user.m4 b/config/user.m4
index 11187d422e..80a15ae082 100644
--- a/config/user.m4
+++ b/config/user.m4
@@ -1,4 +1,5 @@
 dnl #
 dnl # Default ZFS user configuration
 dnl #
-AC_DEFUN([ZFS_AC_CONFIG_USER], [])
+AC_DEFUN([ZFS_AC_CONFIG_USER], [
+])