]> git.ipfire.org Git - thirdparty/git.git/blobdiff - configure.ac
reftable: reftable file level tests
[thirdparty/git.git] / configure.ac
index 031e8d3fee8f22f1f3a1a751675d923d1e36dc42..c3a913103d0007cde7a8f7752f42848d57a9b81a 100644 (file)
@@ -672,9 +672,22 @@ AC_LINK_IFELSE([ZLIBTEST_SRC],
        NO_DEFLATE_BOUND=yes])
 LIBS="$old_LIBS"
 
+AC_DEFUN([ZLIBTEST_UNCOMPRESS2_SRC], [
+AC_LANG_PROGRAM([#include <zlib.h>],
+ [uncompress2(NULL,NULL,NULL,NULL);])])
+AC_MSG_CHECKING([for uncompress2 in -lz])
+old_LIBS="$LIBS"
+LIBS="$LIBS -lz"
+AC_LINK_IFELSE([ZLIBTEST_UNCOMPRESS2_SRC],
+       [AC_MSG_RESULT([yes])],
+       [AC_MSG_RESULT([no])
+       NO_UNCOMPRESS2=yes])
+LIBS="$old_LIBS"
+
 GIT_UNSTASH_FLAGS($ZLIB_PATH)
 
 GIT_CONF_SUBST([NO_DEFLATE_BOUND])
+GIT_CONF_SUBST([NO_UNCOMPRESS2])
 
 #
 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,