X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=configure.in;h=3d3fa95c9a07653889c5c0df0468a43e06d43a93;hb=5b1519bf528182fff35b8786455182ec018c454e;hp=7a9b4f68acd735d5502778b5b6085218e68e75e8;hpb=8f3f29d383f9301395d5d7b4411d62a35d077175;p=tools%2Fe2fsprogs.git diff --git a/configure.in b/configure.in index 7a9b4f6..3d3fa95 100644 --- a/configure.in +++ b/configure.in @@ -111,6 +111,22 @@ AC_ARG_WITH([root-prefix], root_prefix=$withval, root_prefix=NONE)dnl dnl +dnl handle --enable-compression +dnl +AC_ARG_ENABLE([compression], +[ --enable-compression enable EXPERIMENTAL compression support], +if test "$enableval" = "no" +then + echo "Disabling compression support" +else + AC_DEFINE(ENABLE_COMPRESSION) + echo "Enabling compression support" + echo "WARNING: Compression support is experimental" +fi +, +echo "Disabling compression support by default" +) +dnl dnl handle --enable-dll-shlibs dnl AC_ARG_ENABLE([dll-shlibs], @@ -191,7 +207,7 @@ AC_DEFINE_UNQUOTED(VERSION, "$VERSION") AC_SUBST(PACKAGE) AC_SUBST(VERSION) -ALL_LINGUAS="it" +ALL_LINGUAS="it nyc" AM_GNU_GETTEXT dnl dnl handle --enable-profile @@ -384,6 +400,27 @@ if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then AC_DEFINE(HAVE_LLSEEK_PROTOTYPE) fi dnl +dnl Check to see if lseek64() is declared in unistd.h. Glibc's header files +dnl are so convoluted that I can't tell whether it will always be defined, +dnl and if it isn't defined while lseek64 is defined in the library, +dnl disaster will strike. +dnl +dnl Warning! Use of --enable-gcc-wall may throw off this test. +dnl +dnl +AC_MSG_CHECKING(whether lseek64 declared in unistd.h) +AC_CACHE_VAL(e2fsprogs_cv_have_lseek64_prototype, + AC_TRY_COMPILE( +[#define _LARGEFILE_SOURCE +#define _LARGEFILE64_SOURCE +#include ], [extern int lseek64(int);], + [e2fsprogs_cv_have_lseek64_prototype=no], + [e2fsprogs_cv_have_lseek64_prototype=yes])) +AC_MSG_RESULT($e2fsprogs_cv_have_lseek64_prototype) +if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then + AC_DEFINE(HAVE_LSEEK64_PROTOTYPE) +fi +dnl dnl Word sizes... dnl if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then @@ -429,7 +466,7 @@ if test "$e2fsprogs_cv_struct_st_flags" = yes; then AC_DEFINE(HAVE_STAT_FLAGS) fi fi -AC_CHECK_FUNCS(chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo) +AC_CHECK_FUNCS(chflags getrusage llseek lseek64 open64 strdup getmntinfo strcasecmp srandom fchown mallinfo fdatasync) dnl dnl Check to see if ino_t is defined dnl @@ -543,11 +580,6 @@ else fi AC_SUBST(DO_TEST_SUITE) dnl -dnl -dnl -DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute -AC_SUBST_FILE(DO_SUBSTITUTE_SCRIPT) -dnl dnl Make our output files, being sure that we create the some miscellaneous dnl directories dnl