1 Hack the xml2-config to return paths into WORKDIR.
3 --- a/xml2-config.in 2009-12-17 11:45:20.000000000 +0000
4 +++ b/xml2-config.in 2009-12-17 11:45:36.000000000 +0000
9 -exec_prefix=@exec_prefix@
10 -includedir=@includedir@
13 +#exec_prefix=@exec_prefix@
14 +#includedir=@includedir@
17 +prefix=${WORKDIR}/UnpackedTarball/xml2
18 +exec_prefix=${WORKDIR}/UnpackedTarball/xml2
19 +includedir=${WORKDIR}/UnpackedTarball/xml2/include
20 +libdir=${WORKDIR}/UnpackedTarball/xml2/.libs
28 - echo @XML_INCLUDEDIR@ @XML_CFLAGS@
29 + echo -I${includedir}
30 +# echo @XML_INCLUDEDIR@ @XML_CFLAGS@
38 - if [ "`uname`" = "Linux" ]
40 - if [ "@XML_LIBDIR@" = "-L/usr/lib" -o "@XML_LIBDIR@" = "-L/usr/lib64" ]
42 - echo @XML_LIBS@ @MODULE_PLATFORM_LIBS@
44 - echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@
47 - echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@ @WIN32_EXTRA_LIBADD@
49 + echo -L${libdir} -lxml2 -lm
50 +# if [ "`uname`" = "Linux" ]
52 +# if [ "@XML_LIBDIR@" = "-L/usr/lib" -o "@XML_LIBDIR@" = "-L/usr/lib64" ]
54 +# echo @XML_LIBS@ @MODULE_PLATFORM_LIBS@
56 +# echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@
59 +# echo @XML_LIBDIR@ @XML_LIBS@ @MODULE_PLATFORM_LIBS@ @WIN32_EXTRA_LIBADD@
63 + print) # ugly configure hack