20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
28
dnl Installs and validates AppData XML files.
30
dnl Call APPDATA_XML in configure.ac to check for the appdata-validate tool.
31
dnl Add @APPDATA_XML_RULES@ to a Makefile.am to substitute the make rules. Add
32
dnl .appdata.xml files to appdata_XML in Makefile.am and they will be validated
33
dnl at make check time, if appdata-validate is installed, as well as installed
34
dnl to the correct location automatically. Add --enable-appdata-validate to
35
dnl DISTCHECK_CONFIGURE_FLAGS in Makefile.am to require valid AppData XML when
36
dnl doing a distcheck.
38
dnl Adding files to appdata_XML does not distribute them automatically.
40
AC_DEFUN([APPDATA_XML],
42
m4_pattern_allow([AM_V_GEN])
43
AC_ARG_ENABLE([appdata-validate],
44
[AS_HELP_STRING([--disable-appdata-validate],
45
[Disable validating AppData XML files during check phase])])
47
AS_IF([test "x$enable_appdata_validate" != "xno"],
48
[AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate])
49
AS_IF([test "x$APPDATA_VALIDATE" = "x"],
50
[have_appdata_validate=no],
51
[have_appdata_validate=yes
52
AC_SUBST([APPDATA_VALIDATE])])],
53
[have_appdata_validate=no])
55
AS_IF([test "x$have_appdata_validate" != "xno"],
56
[appdata_validate=yes],
58
AS_IF([test "x$enable_appdata_validate" = "xyes"],
59
[AC_MSG_ERROR([AppData validation was requested but appdata-validate was not found])])])
61
AC_SUBST([appdataxmldir], [${datadir}/appdata])
64
.PHONY : uninstall-appdata-xml install-appdata-xml clean-appdata-xml
66
mostlyclean-am: clean-appdata-xml
68
%.appdata.valid: %.appdata.xml
69
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; \
70
if test -n "$(APPDATA_VALIDATE)"; \
71
then $(APPDATA_VALIDATE) --nonet $${d}$<; fi \
74
check-am: $(appdata_XML:.appdata.xml=.appdata.valid)
75
uninstall-am: uninstall-appdata-xml
76
install-data-am: install-appdata-xml
78
.SECONDARY: $(appdata_XML)
80
install-appdata-xml: $(appdata_XML)
82
if test -n "$^"; then \
83
test -z "$(appdataxmldir)" || $(MKDIR_P) "$(DESTDIR)$(appdataxmldir)"; \
84
$(INSTALL_DATA) $^ "$(DESTDIR)$(appdataxmldir)"; \
87
uninstall-appdata-xml:
89
@list='\''$(appdata_XML)'\''; test -n "$(appdataxmldir)" || list=; \
90
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
91
test -n "$$files" || exit 0; \
92
echo " ( cd '\''$(DESTDIR)$(appdataxmldir)'\'' && rm -f" $$files ")"; \
93
cd "$(DESTDIR)$(appdataxmldir)" && rm -f $$files
96
rm -f $(appdata_XML:.appdata.xml=.appdata.valid)
98
_APPDATA_XML_SUBST(APPDATA_XML_RULES)
101
dnl _APPDATA_XML_SUBST(VARIABLE)
102
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
103
AC_DEFUN([_APPDATA_XML_SUBST],
106
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
23
110
dnl GLIB_GSETTINGS
24
111
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
25
112
dnl the schema should be compiled
9176
9263
# generated from the m4 files accompanying Automake X.Y.
9177
9264
# (This private macro should not be called outside this file.)
9178
9265
AC_DEFUN([AM_AUTOMAKE_VERSION],
9179
[am__api_version='1.14'
9266
[am__api_version='1.13'
9180
9267
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9181
9268
dnl require some minimum version. Point them to the right macro.
9182
m4_if([$1], [1.14], [],
9269
m4_if([$1], [1.13.4], [],
9183
9270
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9195
9282
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9196
9283
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9197
9284
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9198
[AM_AUTOMAKE_VERSION([1.14])dnl
9285
[AM_AUTOMAKE_VERSION([1.13.4])dnl
9199
9286
m4_ifndef([AC_AUTOCONF_VERSION],
9200
9287
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9201
9288
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9676
9757
AC_CONFIG_COMMANDS_PRE(dnl
9677
9758
[m4_provide_if([_AM_COMPILER_EXEEXT],
9678
9759
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9680
# POSIX will say in a future version that running "rm -f" with no argument
9681
# is OK; and we want to be able to make that assumption in our Makefile
9682
# recipes. So use an aggressive probe to check that the usage we want is
9683
# actually supported "in the wild" to an acceptable degree.
9684
# See automake bug#10828.
9685
# To make any issue more visible, cause the running configure to be aborted
9686
# by default if the 'rm' program in use doesn't match our expectations; the
9687
# user can still override this though.
9688
if rm -f && rm -fr && rm -rf; then : OK; else
9692
Your 'rm' program seems unable to run without file operands specified
9693
on the command line, even when the '-f' option is present. This is contrary
9694
to the behaviour of most rm programs out there, and not conforming with
9695
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9697
Please tell bug-automake@gnu.org about your system, including the value
9698
of your $PATH and any error possibly output before this message. This
9699
can help us improve future automake versions.
9702
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9703
echo 'Configuration will proceed anyway, since you have set the' >&2
9704
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9708
Aborting the configuration process, to ensure you take notice of the issue.
9710
You can download and install GNU coreutils to get an 'rm' implementation
9711
that behaves properly: <http://www.gnu.org/software/coreutils/>.
9713
If you want to complete the configuration process using your problematic
9714
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9715
to "yes", and re-run configure.
9718
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9722
9762
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9723
9763
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9836
9877
rm -f confinc confmf
9880
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9882
# This file is free software; the Free Software Foundation
9883
# gives unlimited permission to copy and/or distribute it,
9884
# with or without modifications, as long as this notice is preserved.
9888
# Like AC_PROG_CC_C_O, but changed for automake.
9889
AC_DEFUN([AM_PROG_CC_C_O],
9890
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
9891
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9892
AC_REQUIRE_AUX_FILE([compile])dnl
9893
# FIXME: we rely on the cache variable name because
9894
# there is no other way.
9896
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9897
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9898
if test "$am_t" != yes; then
9899
# Losing compiler, so override with the script.
9900
# FIXME: It is wrong to rewrite CC.
9901
# But if we don't then we get into trouble of one sort or another.
9902
# A longer-term fix would be to have automake use am__CC in this case,
9903
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9904
CC="$am_aux_dir/compile $CC"
9906
dnl Make sure AC_PROG_CC is never called again, or it will override our
9908
m4_define([AC_PROG_CC],
9909
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9839
9912
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9841
9914
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9906
9979
AC_DEFUN([_AM_IF_OPTION],
9907
9980
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9909
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9911
# This file is free software; the Free Software Foundation
9912
# gives unlimited permission to copy and/or distribute it,
9913
# with or without modifications, as long as this notice is preserved.
9917
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9918
# to automatically call this.
9919
AC_DEFUN([_AM_PROG_CC_C_O],
9920
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9921
AC_REQUIRE_AUX_FILE([compile])dnl
9922
AC_LANG_PUSH([C])dnl
9924
[whether $CC understands -c and -o together],
9925
[am_cv_prog_cc_c_o],
9926
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9927
# Make sure it works both with $CC and with simple cc.
9928
# Following AC_PROG_CC_C_O, we do the test twice because some
9929
# compilers refuse to overwrite an existing .o file with -o,
9930
# though they will create one.
9931
am_cv_prog_cc_c_o=yes
9933
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9934
&& test -f conftest2.$ac_objext; then
9937
am_cv_prog_cc_c_o=no
9941
rm -f core conftest*
9943
if test "$am_cv_prog_cc_c_o" != yes; then
9944
# Losing compiler, so override with the script.
9945
# FIXME: It is wrong to rewrite CC.
9946
# But if we don't then we get into trouble of one sort or another.
9947
# A longer-term fix would be to have automake use am__CC in this case,
9948
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9949
CC="$am_aux_dir/compile $CC"
9953
# For backward compatibility.
9954
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9956
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9958
# This file is free software; the Free Software Foundation
9959
# gives unlimited permission to copy and/or distribute it,
9960
# with or without modifications, as long as this notice is preserved.
9962
# AM_RUN_LOG(COMMAND)
9963
# -------------------
9964
# Run COMMAND, save the exit status in ac_status, and log it.
9965
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9966
AC_DEFUN([AM_RUN_LOG],
9967
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9968
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9970
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9971
(exit $ac_status); }])
9973
9982
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9975
9984
# Copyright (C) 1996-2013 Free Software Foundation, Inc.