summaryrefslogtreecommitdiffstats
path: root/config/user-zlib.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/user-zlib.m4')
-rw-r--r--config/user-zlib.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/config/user-zlib.m4 b/config/user-zlib.m4
index a48361662..82c0962e4 100644
--- a/config/user-zlib.m4
+++ b/config/user-zlib.m4
@@ -7,13 +7,13 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_ZLIB], [
AC_CHECK_HEADER([zlib.h], [], [AC_MSG_FAILURE([
*** zlib.h missing, zlib-devel package required])])
- AC_CHECK_LIB([z], [compress2], [], [AC_MSG_FAILURE([
+ AC_SEARCH_LIBS([compress2], [z], [], [AC_MSG_FAILURE([
*** compress2() missing, zlib-devel package required])])
- AC_CHECK_LIB([z], [uncompress], [], [AC_MSG_FAILURE([
+ AC_SEARCH_LIBS([uncompress], [z], [], [AC_MSG_FAILURE([
*** uncompress() missing, zlib-devel package required])])
- AC_CHECK_LIB([z], [crc32], [], [AC_MSG_FAILURE([
+ AC_SEARCH_LIBS([crc32], [z], [], [AC_MSG_FAILURE([
*** crc32() missing, zlib-devel package required])])
AC_SUBST([ZLIB], ["-lz"])