patch -p0 < Patches/xml2-win32.patch
rm -f xml/aclocal.m4
endif
+ifdef HAVE_UCLIBC
+ patch -p0 < Patches/xml2-uclibc.patch
+endif
.xml: xml
(cd xml; CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-minimal --with-catalog --with-reader --with-tree --with-push --with-xptr --with-valid --with-xpath --with-xinclude --with-sax1 --without-zlib --without-iconv --without-http --without-ftp && make && make install)
--- /dev/null
+--- xml/config.sub.orig 2007-05-14 17:21:21.000000000 +0200
++++ xml/config.sub 2007-05-14 17:22:29.000000000 +0200
+@@ -1110,6 +1110,9 @@
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
++ -uclibc*)
++ os=-linux
++ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;