From 3c829c50a8f705402bdc759946d49ae7caebd003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 13 Aug 2017 14:58:35 +0200 Subject: New upstream version 0.26.3 --- aclocal.m4 | 92 +------------------------------------------------------------- 1 file changed, 1 insertion(+), 91 deletions(-) (limited to 'aclocal.m4') diff --git a/aclocal.m4 b/aclocal.m4 index cdacdf4..dccb385 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -20,97 +20,6 @@ You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) -# appdata-xml.m4 -# -# serial 5 - -dnl APPDATA_XML -dnl Installs and validates AppData XML files. -dnl -dnl Call APPDATA_XML in configure.ac to check for the appdata-validate tool. -dnl Add @APPDATA_XML_RULES@ to a Makefile.am to substitute the make rules. Add -dnl .appdata.xml files to appdata_XML in Makefile.am and they will be validated -dnl at make check time, if appdata-validate is installed, as well as installed -dnl to the correct location automatically. Add --enable-appdata-validate to -dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when -dnl doing a distcheck. -dnl -dnl Adding files to appdata_XML does not distribute them automatically. - -AU_DEFUN([APPDATA_XML], -[ - m4_pattern_allow([AM_V_GEN]) - AC_ARG_ENABLE([appdata-validate], - [AS_HELP_STRING([--disable-appdata-validate], - [Disable validating AppData XML files during check phase])]) - - AS_IF([test "x$enable_appdata_validate" != "xno"], - [AC_PATH_PROG([APPSTREAM_UTIL], [appstream-util]) - AS_IF([test "x$APPSTREAM_UTIL" = "x"], - [have_appdata_validate=no], - [have_appdata_validate=yes - AC_SUBST([APPSTREAM_UTIL])])], - [have_appdata_validate=no]) - - AS_IF([test "x$have_appdata_validate" != "xno"], - [appdata_validate=yes], - [appdata_validate=no - AS_IF([test "x$enable_appdata_validate" = "xyes"], - [AC_MSG_ERROR([AppData validation was requested but appstream-util was not found])])]) - - AC_SUBST([appdataxmldir], [${datadir}/appdata]) - - APPDATA_XML_RULES=' -.PHONY : uninstall-appdata-xml install-appdata-xml clean-appdata-xml - -mostlyclean-am: clean-appdata-xml - -%.appdata.valid: %.appdata.xml - $(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \ - if test -n "$(APPSTREAM_UTIL)"; \ - then $(APPSTREAM_UTIL) --nonet validate $${d}$<; fi \ - && touch [$]@ - -check-am: $(appdata_XML:.appdata.xml=.appdata.valid) -uninstall-am: uninstall-appdata-xml -install-data-am: install-appdata-xml - -.SECONDARY: $(appdata_XML) - -install-appdata-xml: $(appdata_XML) - @$(NORMAL_INSTALL) - if test -n "$^"; then \ - test -z "$(appdataxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appdataxmldir)"; \ - $(INSTALL_DATA) $^ "$(DESTDIR)$(appdataxmldir)"; \ - fi - -uninstall-appdata-xml: - @$(NORMAL_UNINSTALL) - @list='\''$(appdata_XML)'\''; test -n "$(appdataxmldir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '\''$(DESTDIR)$(appdataxmldir)'\'' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(appdataxmldir)" && rm -f $$files - -clean-appdata-xml: - rm -f $(appdata_XML:.appdata.xml=.appdata.valid) -' - _APPDATA_XML_SUBST(APPDATA_XML_RULES) -], -[Use the new APPSTREAM_XML macro instead of APPDATA_XML in configure.ac, and - replace @APPDATA_XML_RULES@ with @APPSTREAM_XML_RULES@, appdata_XML with - appstream_XML and --enable-appdata-validate with --enable-appstream-validate - in Makefile.am]) - -dnl _APPDATA_XML_SUBST(VARIABLE) -dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST -AC_DEFUN([_APPDATA_XML_SUBST], -[ -AC_SUBST([$1]) -m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) -] -) - # Copyright (C) 2002-2014 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -1315,6 +1224,7 @@ AC_DEFUN([AM_PROG_VALAC], m4_default([$2], [:]) fi]) +m4_include([m4/appstream-xml.m4]) m4_include([m4/ax_generate_changelog.m4]) m4_include([m4/ax_is_release.m4]) m4_include([m4/ax_require_defined.m4]) -- cgit v1.2.3