File: gtkdoc_jh_check_xml_catalog.m4

package info (click to toggle)
appstream-glib 0.3.0-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,672 kB
  • ctags: 2,965
  • sloc: ansic: 23,193; sh: 11,991; makefile: 680; xml: 225
file content (16 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl Checks if a particular URI appears in the XML catalog
dnl Usage:
dnl	JH_CHECK_XML_CATALOG(URI, [FRIENDLY-NAME], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
AC_DEFUN([JH_CHECK_XML_CATALOG],
[
	AC_REQUIRE([JH_PATH_XML_CATALOG],[JH_PATH_XML_CATALOG(,[:])])dnl
	AC_MSG_CHECKING([for ifelse([$2],,[$1],[$2]) in XML catalog])
	if $jh_found_xmlcatalog && \
		AC_RUN_LOG([$XMLCATALOG --noout "$XML_CATALOG_FILE" "$1" >&2]); then
		AC_MSG_RESULT([found])
		ifelse([$3],,,[$3])
	else
		AC_MSG_RESULT([not found])
		ifelse([$4],,[AC_MSG_ERROR([could not find ifelse([$2],,[$1],[$2]) in XML catalog])],[$4])
	fi
])