Kaydet (Commit) a1bfd9d2 authored tarafından Samuel Mehrbrodt's avatar Samuel Mehrbrodt

Improve checking for emscripten zlib

Change-Id: I52cff17d4d909135e40be53cd5c22a1565953762
üst 6a8396a3
...@@ -7420,17 +7420,16 @@ dnl and has no pkg-config for it at least on some tinderboxes, ...@@ -7420,17 +7420,16 @@ dnl and has no pkg-config for it at least on some tinderboxes,
dnl so leaving that out for now dnl so leaving that out for now
dnl libo_CHECK_SYSTEM_MODULE([zlib],[ZLIB],[zlib]) dnl libo_CHECK_SYSTEM_MODULE([zlib],[ZLIB],[zlib])
AC_MSG_CHECKING([which zlib to use]) AC_MSG_CHECKING([which zlib to use])
if test "$_os" = "Emscripten"; then if test "$with_system_zlib" = "yes"; then
# Emscripten provides its own zlib
AC_MSG_RESULT([Emscripten provided])
SYSTEM_ZLIB=TRUE
elif test "$with_system_zlib" = "yes"; then
AC_MSG_RESULT([external]) AC_MSG_RESULT([external])
SYSTEM_ZLIB=TRUE SYSTEM_ZLIB=TRUE
AC_CHECK_HEADER(zlib.h, [], if test "$_os" != "Emscripten"; then
[AC_MSG_ERROR(zlib.h not found. install zlib)], []) # Emscripten provides its own zlib, don't check for that
AC_CHECK_LIB(z, deflate, [ ZLIB=-lz ], AC_CHECK_HEADER(zlib.h, [],
[AC_MSG_ERROR(zlib not found or functional)], []) [AC_MSG_ERROR(zlib.h not found. install zlib)], [])
AC_CHECK_LIB(z, deflate, [ ZLIB=-lz ],
[AC_MSG_ERROR(zlib not found or functional)], [])
fi
else else
AC_MSG_RESULT([internal]) AC_MSG_RESULT([internal])
SYSTEM_ZLIB= SYSTEM_ZLIB=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment