diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-06-13 01:07:18 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-06-13 01:17:29 +0300 |
commit | 03ac0b56514514a7e84ce323d9c8dac645e456f4 (patch) | |
tree | 2627f65fe529aeb06e193a91d61c5e1fc673968a | |
parent | 5c247d22c50cb912f681e9a985e4be1494385251 (diff) |
Use system libxml2 on iOS
-rwxr-xr-x | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 04fd7c9287ec..8857c2423f9f 100755 --- a/configure.in +++ b/configure.in @@ -4332,7 +4332,7 @@ AC_SUBST(XSLTPROC) # =================================================================== AC_MSG_CHECKING([which libxml to use]) if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \ - "$_os" = "Darwin" && \ + "$_os" = "Darwin" -o $_os = iOS && \ test "$with_system_libxml" != "no"; then AC_MSG_RESULT([external]) SYSTEM_LIBXML=YES @@ -4341,6 +4341,11 @@ if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \ LIBXML_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libxml2" dnl omit -L/usr/lib LIBXML_LIBS="-lxml2 -lz -lpthread -liconv -lm" + elif test $_os = iOS; then + dnl make sure to use SDK path + usr=`echo '#include <stdlib.h>' | $CC -E -MD - | grep usr/include/stdlib.h | head -1 | sed -e 's,# 1 ",,' -e 's,/usr/include/.*,/usr,'` + LIBXML_CFLAGS="-I$usr/include/libxml2" + LIBXML_LIBS="-L$usr/lib -lxml2 -liconv" else PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.0) fi |