aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-06-21 12:15:03 +0200
committerJiri Vanek <[email protected]>2013-06-21 12:15:03 +0200
commitda8ec0b9cba22448fbb5b599bff3e1f5fb8c0bf7 (patch)
treee3cd2c82fd0eff3b9d9c95b4f67fac27d7d519bc /acinclude.m4
parent70371886c351800a6fad9bad17777179af2d8584 (diff)
Added tagsup (optional dependence) as sanitizer for (possibly) invalid xml files
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8edb694..ca8077c 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -403,6 +403,31 @@ then
fi
])
+AC_DEFUN_ONCE([IT_CHECK_FOR_TAGSOUP],
+[
+ AC_MSG_CHECKING([for tagsoup])
+ AC_ARG_WITH([tagsoup],
+ [AS_HELP_STRING([--with-tagsoup],
+ [tagsoup.jar])],
+ [
+ TAGSOUP_JAR=${withval}
+ ],
+ [
+ TAGSOUP_JAR=
+ ])
+ if test -z "${TAGSOUP_JAR}"; then
+ for dir in /usr/share/java /usr/local/share/java ; do
+ if test -f $dir/tagsoup.jar; then
+ TAGSOUP_JAR=$dir/tagsoup.jar
+ break
+ fi
+ done
+ fi
+ AC_MSG_RESULT(${TAGSOUP_JAR})
+ AC_SUBST(TAGSOUP_JAR)
+ AM_CONDITIONAL([HAVE_TAGSOUP], [test x$TAGSOUP_JAR != xno])
+])
+
dnl Generic macro to check for a Java class
dnl Takes the name of the class as an argument. The macro name
dnl is usually the name of the class with '.'