Merge commit '0f1012be0aeb6f5f27966c80321db79a9b1aaec3' into zfs-branch

This commit is contained in:
Brian Behlendorf 2009-06-26 14:33:53 -07:00
commit 4fbded409d
2 changed files with 12 additions and 0 deletions

11
config/user-zlib.m4 Normal file
View File

@ -0,0 +1,11 @@
dnl #
dnl # Check for zlib
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
AC_CHECK_HEADER([zlib.h], [], [AC_MSG_ERROR([
*** zlib.h missing, the zlib-devel package is required])])
AC_CHECK_LIB([z], [compress2], [], [AC_MSG_ERROR([
*** compress2() missing, the zlib-devel package is required])])
AC_CHECK_LIB([z], [uncompress], [], [AC_MSG_ERROR([
*** uncompress() missing, the zlib-devel package is required])])
])

View File

@ -7,4 +7,5 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_CONFIG_USER_LIBDISKMGT
ZFS_AC_CONFIG_USER_LIBSHARE
ZFS_AC_CONFIG_USER_IOCTL
ZFS_AC_CONFIG_USER_ZLIB
])