]> git.wh0rd.org - dump.git/blobdiff - configure.in
Andreas Dilger fixes (CPP, ext2 features, const char etc).
[dump.git] / configure.in
index dcb6bfb7296c4de2062594f5add1bd55bc82f677..768a92e20d1d927c2abb7fceb373dd6ea82b4720 100644 (file)
@@ -122,6 +122,19 @@ fi
 echo "Using new style F script"
 )
 
+dnl
+dnl Handle --enable-largefile
+dnl
+AC_ARG_ENABLE([largefile],
+[  --enable-largefile         enable Large File System support (your glibc needs to support it)],
+if test "$enableval" = "yes"
+then
+       AC_DEFINE(_FILE_OFFSET_BITS,64)
+fi
+,
+echo "Not enabling Large File System support"
+)
+
 dnl
 dnl set $(CC) from --with-cc=value
 dnl
@@ -281,6 +294,19 @@ if test "$readline_h" = no -o "$readline_lib" = no; then
        fi
 fi
 
+dnl
+dnl Check for zlib headers and libraries
+dnl
+AC_CHECK_HEADER(zlib.h, [zlib_h=yes], [zlib_h=no])
+AC_CHECK_LIB(z, compress2, [zlib_lib=yes], [zlib_lib=no])
+if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
+       ZLIB="-lz"
+       AC_DEFINE(HAVE_ZLIB)
+else
+       ZLIB=""
+fi
+AC_SUBST(ZLIB)
+
 dnl
 dnl Check for library functions
 dnl