(I know about finding libxml2/libxslt using pkg-config, but am using the
older M4 macros to support non-Linux systems without the pkg-config
infrastructure.)
The attached patches bring the M4 code up to current Autoconf
conventions and eliminate "The macro `AC_TRY_RUN/AC_TRY_LINK' is
obsolete" warnings from the program.
--Daniel
P.S.: Please Cc: any replies to me, as I am not subscribed to this list.
--
NAME = Daniel Richard G. _\|/_ Remember, skunks
MAIL = [email protected] (/o|o\) _- don't smell bad---
MAIL+= [email protected] < (^),> it's the people who
WWW = (not there yet!) / \ annoy us that do!
--- libxml.m4.orig 2009-07-24 03:11:04.000000000 -0400
+++ libxml.m4 2010-02-09 12:34:38.000000000 -0500
@@ -58,7 +58,7 @@
dnl (Also sanity checks the results of xml2-config to some extent)
dnl
rm -f conf.xmltest
- AC_TRY_RUN([
+ AC_RUN_IFELSE([AC_LANG_SOURCE([
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -133,7 +133,7 @@
}
return 1;
}
-],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+])],, no_xml=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CPPFLAGS="$ac_save_CPPFLAGS"
LIBS="$ac_save_LIBS"
fi
@@ -156,10 +156,10 @@
echo "*** Could not run libxml test program, checking why..."
CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
LIBS="$LIBS $XML_LIBS"
- AC_TRY_LINK([
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <libxml/xmlversion.h>
#include <stdio.h>
-], [ LIBXML_TEST_VERSION; return 0;],
+], [ LIBXML_TEST_VERSION; return 0;])],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
--- libxslt.m4.orig 2009-07-24 03:27:27.000000000 -0400
+++ libxslt.m4 2010-02-09 12:40:02.000000000 -0500
@@ -60,7 +60,7 @@
dnl (Also sanity checks the results of xslt-config to some extent)
dnl
rm -f conf.xslttest
- AC_TRY_RUN([
+ AC_RUN_IFELSE([AC_LANG_SOURCE([
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -136,7 +136,7 @@
}
return 1;
}
-],, no_xslt=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+])],, no_xslt=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
@@ -159,10 +159,10 @@
echo "*** Could not run libxslt test program, checking why..."
CFLAGS="$CFLAGS $XSLT_CFLAGS"
LIBS="$LIBS $XSLT_LIBS"
- AC_TRY_LINK([
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <libxslt/xslt.h>
#include <stdio.h>
-], [ LIBXSLT_TEST_VERSION; return 0;],
+], [ LIBXSLT_TEST_VERSION; return 0;])],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding LIBXSLT or finding the wrong"
echo "*** version of LIBXSLT. If it is not finding LIBXSLT, you'll need to set your"
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml