aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-01-19 08:58:42 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-01-19 08:58:42 +0000
commit4188ddf811f8067c6b6fa0ffb5d8f43ba5e3f41e (patch)
tree463321b726944e2d981c3e5dd0141929acba994a /configure.in
parent499cc9204f8facf8c33fe8de63216460aaf93b2a (diff)
downloadandroid_external_libxml2-4188ddf811f8067c6b6fa0ffb5d8f43ba5e3f41e.tar.gz
android_external_libxml2-4188ddf811f8067c6b6fa0ffb5d8f43ba5e3f41e.tar.bz2
android_external_libxml2-4188ddf811f8067c6b6fa0ffb5d8f43ba5e3f41e.zip
trying to fix windows/configure issues reported by Tim Van Holder Daniel
* configure.in xml2-config.in: trying to fix windows/configure issues reported by Tim Van Holder Daniel
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 253b63aa..2bff06bd 100644
--- a/configure.in
+++ b/configure.in
@@ -624,6 +624,17 @@ case ${host} in
hppa*-hp-mpeix)
NEED_TRIO=1
;;
+ *-*-mingw* | *-*-cygwin* | *-*-msvc* )
+ # If the host is Windows, and shared libraries are disabled, we
+ # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
+ # work properly (without it, xmlexports.h would force the use of
+ # DLL imports, which obviously aren't present in a static
+ # library).
+ if test "x$enable_shared" = "xno"; then
+ XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
+ CFLAGS="$CFLAGS -DLIBXML_STATIC"
+ fi
+ ;;
esac