]> granicus.if.org Git - postgis/commitdiff
#1980: define new configure arg --with-mathmldtd to allow overriding path to mathmldtd
authorRegina Obe <lr@pcorp.us>
Sun, 4 Nov 2012 10:45:09 +0000 (10:45 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 4 Nov 2012 10:45:09 +0000 (10:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10638 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 79ecc5affc5da4ce875383873cdff68a5e33c2a2..d592d22b9bf72096a11105590e9263b6993517b4 100644 (file)
@@ -224,19 +224,22 @@ AC_SUBST([XSLBASE])
 dnl
 dnl Let's see if we can find mathml2.dtd
 dnl
-
-MATHML2_DTD="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"
+AC_ARG_WITH([mathmldtd], 
+       [AS_HELP_STRING([--with-mathmldtd=PATH], [specify the dtd path for mathml2.dtd])], 
+       [MATHML2_DTD="$withval"], [MATHML2_DTD=""])
 dnl TODO: get more paths to add here...
-SEARCHPATH="
-               /usr/share/xml/schema/w3c/mathml/dtd
-               "
-for p in ${SEARCHPATH}; do
-       if test -r "${p}"/mathml2.dtd; then
-               MATHML2_DTD="${p}/mathml2.dtd"
-               break
-       fi
-done
-
+if test "x$MATHML2_DTD" = "x"; then
+       MATHML2_DTD="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"
+       SEARCHPATH="
+                       /usr/share/xml/schema/w3c/mathml/dtd
+                       "
+       for p in ${SEARCHPATH}; do
+               if test -r "${p}"/mathml2.dtd; then
+                       MATHML2_DTD="${p}/mathml2.dtd"
+                       break
+               fi
+       done
+fi
 AC_SUBST([MATHML2_DTD])
 
 dnl ===========================================================================