aboutsummaryrefslogtreecommitdiff
path: root/m4/libxml2.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/libxml2.m4')
-rw-r--r--m4/libxml2.m414
1 files changed, 7 insertions, 7 deletions
diff --git a/m4/libxml2.m4 b/m4/libxml2.m4
index 68cd8242f..2865b54f8 100644
--- a/m4/libxml2.m4
+++ b/m4/libxml2.m4
@@ -9,7 +9,7 @@
9dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) 9dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
10dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS 10dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
11dnl 11dnl
12AC_DEFUN([AM_PATH_XML2],[ 12AC_DEFUN([AM_PATH_XML2],[
13AC_ARG_WITH(xml-prefix, 13AC_ARG_WITH(xml-prefix,
14 [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)], 14 [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)],
15 xml_config_prefix="$withval", xml_config_prefix="") 15 xml_config_prefix="$withval", xml_config_prefix="")
@@ -64,7 +64,7 @@ dnl
64#include <string.h> 64#include <string.h>
65#include <libxml/xmlversion.h> 65#include <libxml/xmlversion.h>
66 66
67int 67int
68main() 68main()
69{ 69{
70 int xml_major_version, xml_minor_version, xml_micro_version; 70 int xml_major_version, xml_minor_version, xml_micro_version;
@@ -100,9 +100,9 @@ main()
100 printf("*** xml2-config (version %d.%d.%d)\n", 100 printf("*** xml2-config (version %d.%d.%d)\n",
101 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); 101 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
102 return 1; 102 return 1;
103 } 103 }
104/* Compare the headers to the library to make sure we match */ 104/* Compare the headers to the library to make sure we match */
105 /* Less than ideal -- doesn't provide us with return value feedback, 105 /* Less than ideal -- doesn't provide us with return value feedback,
106 * only exits if there's a serious mismatch between header and library. 106 * only exits if there's a serious mismatch between header and library.
107 */ 107 */
108 LIBXML_TEST_VERSION; 108 LIBXML_TEST_VERSION;
@@ -128,7 +128,7 @@ main()
128 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 128 printf("*** being found. The easiest way to fix this is to remove the old version\n");
129 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); 129 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
130 printf("*** correct copy of xml2-config. (In this case, you will have to\n"); 130 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
131 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 131 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
132 printf("*** so that the correct libraries are found at run-time))\n"); 132 printf("*** so that the correct libraries are found at run-time))\n");
133 } 133 }
134 return 1; 134 return 1;
@@ -141,7 +141,7 @@ main()
141 141
142 if test "x$no_xml" = x ; then 142 if test "x$no_xml" = x ; then
143 AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)) 143 AC_MSG_RESULT(yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version))
144 ifelse([$2], , :, [$2]) 144 ifelse([$2], , :, [$2])
145 else 145 else
146 AC_MSG_RESULT(no) 146 AC_MSG_RESULT(no)
147 if test "$XML2_CONFIG" = "no" ; then 147 if test "$XML2_CONFIG" = "no" ; then
@@ -170,7 +170,7 @@ main()
170 echo "*** If you have an old version installed, it is best to remove it, although" 170 echo "*** If you have an old version installed, it is best to remove it, although"
171 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], 171 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
172 [ echo "*** The test program failed to compile or link. See the file config.log for the" 172 [ echo "*** The test program failed to compile or link. See the file config.log for the"
173 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" 173 echo "*** exact error that occurred. This usually means LIBXML was incorrectly installed"
174 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" 174 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
175 echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ]) 175 echo "*** may want to edit the xml2-config script: $XML2_CONFIG" ])
176 CPPFLAGS="$ac_save_CPPFLAGS" 176 CPPFLAGS="$ac_save_CPPFLAGS"