From 68bb0f2c7a9d5c59f7a27e4f8450417b04660235 Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sat, 13 Jun 2015 20:23:25 +0200 Subject: [PATCH] Rewrite the check for zlib Use quote characters around arguments. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2e81e28..1edb8a4 100644 --- a/configure.ac +++ b/configure.ac @@ -174,7 +174,13 @@ AS_IF([test "x$with_zlib" != "xno" ], AC_CHECK_HEADERS(zlib.h) AS_IF([test "x$ac_cv_header_zlib_h" = "xyes"], [ - AC_CHECK_LIB(z, gzopen,LIBS="-lz ${LIBS}"; HAVE_ZLIB_LIB="yes", HAVE_ZLIB_LIB="") + AC_CHECK_LIB([z],[gzopen], + [ + LIBS="-lz ${LIBS}" + HAVE_ZLIB_LIB="yes" + ],[ + HAVE_ZLIB_LIB="" + ]) AS_IF([test "x$HAVE_ZLIB_LIB" != "xyes"],[AC_MSG_ERROR([zlib was not found])]) ],[ zlib_status="not found" -- 2.47.2