mirror of
https://github.com/aria2/aria2.git
synced 2024-11-27 12:04:46 +08:00
We are not bothered by NDK zlib anymore
This commit is contained in:
parent
0ec2db9f34
commit
18a51ce314
15
configure.ac
15
configure.ac
@ -226,19 +226,12 @@ if test "x$with_libz" = "xyes"; then
|
||||
fi
|
||||
if test "x$have_zlib" = "xyes"; then
|
||||
AC_DEFINE([HAVE_ZLIB], [1], [Define to 1 if you have zlib.])
|
||||
# Android NDK arch-mips contains gzbuffer symbol but it is missing
|
||||
# in zlib.h
|
||||
save_CFLAGS=$CFLAGS
|
||||
save_CPPFLAGS=$CPPFLAGS
|
||||
save_LIBS=$LIBS
|
||||
CFLAGS="$CFLAGS $ZLIB_CFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS"
|
||||
LIBS="$ZLIB_LIBS $LIBS"
|
||||
AC_CHECK_DECL([gzbuffer], [have_decl_gzbuffer=yes], [],
|
||||
[[#include <zlib.h>]])
|
||||
if test "x$have_decl_gzbuffer" = "xyes"; then
|
||||
AC_CHECK_FUNC([gzbuffer])
|
||||
fi
|
||||
AC_CHECK_FUNCS([gzsetparams])
|
||||
CFLAGS=$save_CFLAGS
|
||||
AC_CHECK_FUNCS([gzbuffer gzsetparams])
|
||||
CPPFLAGS=$save_CPPFLAGS
|
||||
LIBS=$save_LIBS
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user