aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-05-23 08:59:20 +0800
committerDaniel Veillard <veillard@redhat.com>2016-05-23 09:01:00 +0800
commit489200559245d8013273a170ff40007252c14ccb (patch)
tree3bf4398933bed50025c05f4f91a88659c84d95bd /configure.ac
parent9f2416c61775c588a57da8a586d60e11c21b71db (diff)
downloadplatform_external_libxml2-489200559245d8013273a170ff40007252c14ccb.tar.gz
platform_external_libxml2-489200559245d8013273a170ff40007252c14ccb.tar.bz2
platform_external_libxml2-489200559245d8013273a170ff40007252c14ccb.zip
libxml2 hardcodes -L/lib in zlib/lzma tests which breaks cross-compiles
For https://bugzilla.gnome.org/show_bug.cgi?id=749416 do not use -L$Z_DIR/lib when Z_DIR isn't actually set
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6f012c92..af8ec257 100644
--- a/configure.ac
+++ b/configure.ac
@@ -400,7 +400,9 @@ else
if test "x$have_libz" = "xno"; then
AC_CHECK_HEADERS(zlib.h,
[SAVE_LDFLAGS="${LDFLAGS}"
- LDFLAGS="-L${Z_DIR}/lib"
+ if test "x${Z_DIR}" != "x"; then
+ LDFLAGS="${LDFLAGS} -L${Z_DIR}/lib"
+ fi
AC_CHECK_LIB(z, gzread,[
have_libz=yes
if test "x${Z_DIR}" != "x"; then