diff options
Diffstat (limited to 'zlib/configure.in')
-rw-r--r-- | zlib/configure.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zlib/configure.in b/zlib/configure.in index 16fae3cbedf..4b63cb2ea72 100644 --- a/zlib/configure.in +++ b/zlib/configure.in @@ -38,6 +38,9 @@ else fi AC_SUBST(zlib_basedir) +AC_ARG_WITH(system-zlib, +[ --with-system-zlib Use installed libz]) + LIB_AC_PROG_CC AM_PROG_LIBTOOL @@ -58,11 +61,22 @@ if test -n "$with_cross_host"; then # we'll have. AC_DEFINE(HAVE_MEMCPY) AC_DEFINE(HAVE_STRERROR) + + # We ignore --with-system-zlib in this case. + target_all=libzgcj.la else AC_FUNC_MMAP AC_CHECK_FUNCS(memcpy strerror) + + if test "$with_system_zlib" = yes; then + AC_CHECK_LIB(z, deflate, target_all=, target_all=libzgcj.la) + else + target_all=libzgcj.la + fi fi +AC_SUBST(target_all) + AC_CHECK_HEADERS(unistd.h) if test "${multilib}" = "yes"; then |