default to system zlib on contemporary unices
This commit is contained in:
parent
d7c0f54934
commit
29dbc36ce0
1 changed files with 15 additions and 2 deletions
17
configure.in
17
configure.in
|
@ -3865,9 +3865,22 @@ AC_SUBST(SYSTEM_STDLIBS)
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
dnl Check for system zlib
|
dnl Check for system zlib
|
||||||
dnl ===================================================================
|
dnl ===================================================================
|
||||||
if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
|
if test "$with_system_zlib" != "no"; then
|
||||||
with_system_zlib=yes
|
if test "$_os" = "Darwin"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
elif test "$_os" = "Linux"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
elif test "$_os" = "FreeBSD"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
elif test "$_os" = "DragonFly"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
elif test "$_os" = "NetBSD"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
elif test "$_os" = "OpenBSD"; then
|
||||||
|
with_system_zlib=yes
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([which zlib to use])
|
AC_MSG_CHECKING([which zlib to use])
|
||||||
if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
|
if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
|
||||||
test "$with_system_zlib" != "no"; then
|
test "$with_system_zlib" != "no"; then
|
||||||
|
|
Loading…
Reference in a new issue