15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
16
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
18
[m4_warning([this file was generated for autoconf 2.68.
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf. It may work, but is not guaranteed to.
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'.])])
30
AU_DEFUN([GNOME_COMMON_INIT],
32
dnl this macro should come after AC_CONFIG_MACRO_DIR
33
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
35
dnl ensure that when the Automake generated makefile calls aclocal,
36
dnl it honours the $ACLOCAL_FLAGS environment variable
37
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
38
if test -n "$ac_macro_dir"; then
39
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
42
AC_SUBST([ACLOCAL_AMFLAGS])
44
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
45
in your top-level Makefile.am, instead, where "m4" is the macro directory set
46
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
48
AC_DEFUN([GNOME_DEBUG_CHECK],
50
AC_ARG_ENABLE([debug],
51
AC_HELP_STRING([--enable-debug],
52
[turn on debugging]),,
55
if test x$enable_debug = xyes ; then
56
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
57
[Enable additional debugging at the expense of performance and size])
61
dnl GNOME_MAINTAINER_MODE_DEFINES ()
62
dnl define DISABLE_DEPRECATED
64
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
66
AC_REQUIRE([AM_MAINTAINER_MODE])
69
if test $USE_MAINTAINER_MODE = yes; then
70
DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
71
for DOMAIN in $DOMAINS; do
72
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
76
AC_SUBST(DISABLE_DEPRECATED)
79
dnl GNOME_COMPILE_WARNINGS
80
dnl Turn on many useful compiler warnings
81
dnl For now, only works on GCC
82
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
83
dnl ******************************
84
dnl More compiler warnings
85
dnl ******************************
87
AC_ARG_ENABLE(compile-warnings,
88
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
89
[Turn on compiler warnings]),,
90
[enable_compile_warnings="m4_default([$1],[yes])"])
93
if test "x$GCC" != xyes; then
94
enable_compile_warnings=no
98
realsave_CFLAGS="$CFLAGS"
100
case "$enable_compile_warnings" in
105
warning_flags="-Wall"
108
warning_flags="-Wall -Wmissing-prototypes"
111
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
112
CFLAGS="$warning_flags $CFLAGS"
113
for option in -Wno-sign-compare; do
114
SAVE_CFLAGS="$CFLAGS"
115
CFLAGS="$CFLAGS $option"
116
AC_MSG_CHECKING([whether gcc understands $option])
117
AC_TRY_COMPILE([], [],
120
CFLAGS="$SAVE_CFLAGS"
121
AC_MSG_RESULT($has_option)
122
if test $has_option = yes; then
123
warning_flags="$warning_flags $option"
129
if test "$enable_compile_warnings" = "error" ; then
130
warning_flags="$warning_flags -Werror"
134
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
137
CFLAGS="$realsave_CFLAGS"
138
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
139
AC_MSG_RESULT($warning_flags)
142
AC_HELP_STRING([--enable-iso-c],
143
[Try to warn if code is not ISO C ]),,
146
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
148
if test "x$enable_iso_c" != "xno"; then
149
if test "x$GCC" = "xyes"; then
151
*[\ \ ]-ansi[\ \ ]*) ;;
152
*) complCFLAGS="$complCFLAGS -ansi" ;;
155
*[\ \ ]-pedantic[\ \ ]*) ;;
156
*) complCFLAGS="$complCFLAGS -pedantic" ;;
160
AC_MSG_RESULT($complCFLAGS)
162
WARN_CFLAGS="$warning_flags $complCFLAGS"
163
AC_SUBST(WARN_CFLAGS)
166
dnl For C++, do basically the same thing.
168
AC_DEFUN([GNOME_CXX_WARNINGS],[
169
AC_ARG_ENABLE(cxx-warnings,
170
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
171
[Turn on compiler warnings.]),,
172
[enable_cxx_warnings="m4_default([$1],[minimum])"])
174
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
176
if test "x$GXX" != xyes; then
177
enable_cxx_warnings=no
179
if test "x$enable_cxx_warnings" != "xno"; then
180
if test "x$GXX" = "xyes"; then
181
case " $CXXFLAGS " in
182
*[\ \ ]-Wall[\ \ ]*) ;;
183
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
186
## -W is not all that useful. And it cannot be controlled
187
## with individual -Wno-xxx flags, unlike -Wall
188
if test "x$enable_cxx_warnings" = "xyes"; then
189
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
193
AC_MSG_RESULT($warnCXXFLAGS)
195
AC_ARG_ENABLE(iso-cxx,
196
AC_HELP_STRING([--enable-iso-cxx],
197
[Try to warn if code is not ISO C++ ]),,
200
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
202
if test "x$enable_iso_cxx" != "xno"; then
203
if test "x$GXX" = "xyes"; then
204
case " $CXXFLAGS " in
205
*[\ \ ]-ansi[\ \ ]*) ;;
206
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
209
case " $CXXFLAGS " in
210
*[\ \ ]-pedantic[\ \ ]*) ;;
211
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
215
AC_MSG_RESULT($complCXXFLAGS)
217
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
218
AC_SUBST(WARN_CXXFLAGS)
222
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
223
dnl the schema should be compiled
226
AC_DEFUN([GLIB_GSETTINGS],
228
m4_pattern_allow([AM_V_GEN])
229
AC_ARG_ENABLE(schemas-compile,
230
AS_HELP_STRING([--disable-schemas-compile],
231
[Disable regeneration of gschemas.compiled on install]),
232
[case ${enableval} in
233
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
234
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
235
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
237
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
238
PKG_PROG_PKG_CONFIG([0.16])
239
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
240
if test x$cross_compiling != xyes; then
241
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
243
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
245
AC_SUBST(GLIB_COMPILE_SCHEMAS)
246
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
247
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
249
ifelse([$1],,[:],[$1])
253
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
255
mostlyclean-am: clean-gsettings-schemas
257
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
259
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
260
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
262
all-am: $(gsettings_SCHEMAS:.xml=.valid)
263
uninstall-am: uninstall-gsettings-schemas
264
install-data-am: install-gsettings-schemas
266
.SECONDARY: $(gsettings_SCHEMAS)
268
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
270
if test -n "$^"; then \
271
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
272
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
273
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
276
uninstall-gsettings-schemas:
278
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
279
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
280
test -n "$$files" || exit 0; \
281
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
282
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
283
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
285
clean-gsettings-schemas:
286
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
288
ifdef gsettings_ENUM_NAMESPACE
289
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
290
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
293
_GSETTINGS_SUBST(GSETTINGS_RULES)
296
dnl _GSETTINGS_SUBST(VARIABLE)
297
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
298
AC_DEFUN([_GSETTINGS_SUBST],
301
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
305
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
306
# serial 1 (pkg-config-0.24)
308
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
310
# This program is free software; you can redistribute it and/or modify
311
# it under the terms of the GNU General Public License as published by
312
# the Free Software Foundation; either version 2 of the License, or
313
# (at your option) any later version.
315
# This program is distributed in the hope that it will be useful, but
316
# WITHOUT ANY WARRANTY; without even the implied warranty of
317
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
318
# General Public License for more details.
320
# You should have received a copy of the GNU General Public License
321
# along with this program; if not, write to the Free Software
322
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
324
# As a special exception to the GNU General Public License, if you
325
# distribute this file as part of a program that contains a
326
# configuration script generated by Autoconf, you may include it under
327
# the same distribution terms that you use for the rest of that program.
329
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
330
# ----------------------------------
331
AC_DEFUN([PKG_PROG_PKG_CONFIG],
332
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
333
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
334
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
335
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
336
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
337
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
339
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
340
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
342
if test -n "$PKG_CONFIG"; then
343
_pkg_min_version=m4_default([$1], [0.9.0])
344
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
345
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
352
])# PKG_PROG_PKG_CONFIG
354
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
356
# Check to see whether a particular set of modules exists. Similar
357
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
359
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
360
# only at the first occurence in configure.ac, so if the first place
361
# it's called might be skipped (such as if it is within an "if", you
362
# have to call PKG_CHECK_EXISTS manually
363
# --------------------------------------------------------------
364
AC_DEFUN([PKG_CHECK_EXISTS],
365
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
366
if test -n "$PKG_CONFIG" && \
367
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
368
m4_default([$2], [:])
369
m4_ifvaln([$3], [else
373
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
374
# ---------------------------------------------
375
m4_define([_PKG_CONFIG],
376
[if test -n "$$1"; then
378
elif test -n "$PKG_CONFIG"; then
379
PKG_CHECK_EXISTS([$3],
380
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
381
test "x$?" != "x0" && pkg_failed=yes ],
388
# _PKG_SHORT_ERRORS_SUPPORTED
389
# -----------------------------
390
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
391
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
392
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
393
_pkg_short_errors_supported=yes
395
_pkg_short_errors_supported=no
397
])# _PKG_SHORT_ERRORS_SUPPORTED
400
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
401
# [ACTION-IF-NOT-FOUND])
404
# Note that if there is a possibility the first call to
405
# PKG_CHECK_MODULES might not happen, you should be sure to include an
406
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
409
# --------------------------------------------------------------
410
AC_DEFUN([PKG_CHECK_MODULES],
411
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
412
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
413
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
416
AC_MSG_CHECKING([for $1])
418
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
419
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
421
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
422
and $1[]_LIBS to avoid the need to call pkg-config.
423
See the pkg-config man page for more details.])
425
if test $pkg_failed = yes; then
427
_PKG_SHORT_ERRORS_SUPPORTED
428
if test $_pkg_short_errors_supported = yes; then
429
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
431
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
433
# Put the nasty error message in config.log where it belongs
434
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
436
m4_default([$4], [AC_MSG_ERROR(
437
[Package requirements ($2) were not met:
441
Consider adjusting the PKG_CONFIG_PATH environment variable if you
442
installed software in a non-standard prefix.
446
elif test $pkg_failed = untried; then
448
m4_default([$4], [AC_MSG_FAILURE(
449
[The pkg-config script could not be found or is too old. Make sure it
450
is in your PATH or set the PKG_CONFIG environment variable to the full
455
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
458
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
459
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
463
])# PKG_CHECK_MODULES
465
AC_DEFUN([YELP_HELP_INIT],
467
AC_REQUIRE([AC_PROG_LN_S])
468
m4_pattern_allow([AM_V_at])
469
m4_pattern_allow([AM_V_GEN])
470
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
471
AC_ARG_WITH([help-dir],
472
AC_HELP_STRING([--with-help-dir=DIR],
473
[path where help files are installed]),,
474
[with_help_dir='${datadir}/help'])
475
HELP_DIR="$with_help_dir"
478
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
479
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
480
if test x"$ITSTOOL" = x; then
481
AC_MSG_ERROR([itstool not found])
484
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
485
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
486
if test x"$XMLLINT" = x; then
487
AC_MSG_ERROR([xmllint not found])
498
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
499
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
500
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
501
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
502
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))
503
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f))
504
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f))
505
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f)))
506
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp)
508
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
509
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V))
510
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V))
511
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V))
512
_HELP_LC_VERBOSE_0 = @echo " GEN "$(dir [$]@);
514
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES)
517
pot: $(_HELP_POTFILE)
518
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
519
$(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
522
repo: $(_HELP_POTFILE)
523
$(AM_V_at)for po in $(_HELP_POFILES); do \
524
if test "x[$](_HELP_V)" = "x0"; then echo " GEN $${po}"; fi; \
525
msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \
529
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
530
$(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi
531
$(AM_V_GEN)if ! test -f "[$]@"; then \
532
(cd "$(dir [$]@)" && \
533
$(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
534
mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \
536
(cd "$(dir [$]@)" && \
537
$(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \
538
msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \
539
rm "$(notdir [$]@).tmp"); \
542
$(_HELP_MOFILES): %.mo: %.po
543
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
544
$(AM_V_GEN)msgfmt -o "[$]@" "$<"
546
$(_HELP_LC_FILES): $(_HELP_LINGUAS)
547
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS)
548
$(_HELP_LC_STAMPS): %.stamp: %.mo
549
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA)
550
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi
551
$(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \
552
mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \
553
if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \
554
(cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \
558
mostlyclean-am: $(if $(HELP_ID),clean-help)
560
rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES)
563
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
564
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)
565
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po)
566
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f))))
568
distdir: distdir-help-files
570
@for lc in C $(HELP_LINGUAS); do \
571
$(MKDIR_P) "$(distdir)/$$lc"; \
572
for file in $(HELP_FILES); do \
573
if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \
574
cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \
581
for lc in C $(_HELP_LINGUAS); do \
587
xmlpath="$$lc:$(srcdir)/$$lc"; \
589
for page in $(HELP_FILES); do \
590
echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \
591
$(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \
597
install-data-am: $(if $(HELP_ID),install-help)
599
@for lc in C $(_HELP_LINGUAS); do \
600
$(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \
602
@for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
603
if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \
604
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
605
if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
606
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \
607
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \
609
@for f in $(_HELP_C_EXTRA); do \
610
lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
611
if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \
612
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
613
if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \
614
echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \
615
$(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \
617
@for f in $(HELP_MEDIA); do \
618
for lc in C $(_HELP_LINGUAS); do \
619
if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \
620
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
621
mdir=`dirname "$$f"`; \
622
if test "x$mdir" = "x."; then mdir=""; fi; \
623
if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \
624
if test -f "$$d$$lc/$$f"; then \
625
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \
626
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \
627
elif test "x$$lc" != "xC"; then \
628
echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \
629
$(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \
634
.PHONY: uninstall-help
635
uninstall-am: $(if $(HELP_ID),uninstall-help)
637
for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \
638
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
639
echo "rm -f $$helpdir`basename $$f`"; \
640
rm -f "$$helpdir`basename $$f`"; \
642
@for f in $(_HELP_C_EXTRA); do \
643
lc=`dirname "$$f"`; lc=`basename "$$lc"`; \
644
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
645
echo "rm -f $$helpdir`basename $$f`"; \
646
rm -f "$$helpdir`basename $$f`"; \
648
@for f in $(HELP_MEDIA); do \
649
for lc in C $(_HELP_LINGUAS); do \
650
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \
651
echo "rm -f $$helpdir$$f"; \
652
rm -f "$$helpdir$$f"; \
656
AC_SUBST([YELP_HELP_RULES])
657
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
23
660
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24
661
# Foundation, Inc.
1066
1703
AC_SUBST([am__untar])
1067
1704
]) # _AM_PROG_TAR
1069
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
1070
# serial 1 (pkg-config-0.24)
1072
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
1074
# This program is free software; you can redistribute it and/or modify
1075
# it under the terms of the GNU General Public License as published by
1076
# the Free Software Foundation; either version 2 of the License, or
1077
# (at your option) any later version.
1079
# This program is distributed in the hope that it will be useful, but
1080
# WITHOUT ANY WARRANTY; without even the implied warranty of
1081
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1082
# General Public License for more details.
1084
# You should have received a copy of the GNU General Public License
1085
# along with this program; if not, write to the Free Software
1086
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1088
# As a special exception to the GNU General Public License, if you
1089
# distribute this file as part of a program that contains a
1090
# configuration script generated by Autoconf, you may include it under
1091
# the same distribution terms that you use for the rest of that program.
1093
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
1094
# ----------------------------------
1095
AC_DEFUN([PKG_PROG_PKG_CONFIG],
1096
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
1097
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
1098
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
1099
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
1100
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
1101
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
1103
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1104
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
1106
if test -n "$PKG_CONFIG"; then
1107
_pkg_min_version=m4_default([$1], [0.9.0])
1108
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
1109
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
1110
AC_MSG_RESULT([yes])
1116
])# PKG_PROG_PKG_CONFIG
1118
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1120
# Check to see whether a particular set of modules exists. Similar
1121
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
1123
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1124
# only at the first occurence in configure.ac, so if the first place
1125
# it's called might be skipped (such as if it is within an "if", you
1126
# have to call PKG_CHECK_EXISTS manually
1127
# --------------------------------------------------------------
1128
AC_DEFUN([PKG_CHECK_EXISTS],
1129
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1130
if test -n "$PKG_CONFIG" && \
1131
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
1132
m4_default([$2], [:])
1133
m4_ifvaln([$3], [else
1137
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
1138
# ---------------------------------------------
1139
m4_define([_PKG_CONFIG],
1140
[if test -n "$$1"; then
1142
elif test -n "$PKG_CONFIG"; then
1143
PKG_CHECK_EXISTS([$3],
1144
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
1145
test "x$?" != "x0" && pkg_failed=yes ],
1152
# _PKG_SHORT_ERRORS_SUPPORTED
1153
# -----------------------------
1154
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
1155
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
1156
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1157
_pkg_short_errors_supported=yes
1159
_pkg_short_errors_supported=no
1161
])# _PKG_SHORT_ERRORS_SUPPORTED
1164
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
1165
# [ACTION-IF-NOT-FOUND])
1168
# Note that if there is a possibility the first call to
1169
# PKG_CHECK_MODULES might not happen, you should be sure to include an
1170
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
1173
# --------------------------------------------------------------
1174
AC_DEFUN([PKG_CHECK_MODULES],
1175
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
1176
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
1177
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
1180
AC_MSG_CHECKING([for $1])
1182
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
1183
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
1185
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
1186
and $1[]_LIBS to avoid the need to call pkg-config.
1187
See the pkg-config man page for more details.])
1189
if test $pkg_failed = yes; then
1191
_PKG_SHORT_ERRORS_SUPPORTED
1192
if test $_pkg_short_errors_supported = yes; then
1193
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
1195
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
1197
# Put the nasty error message in config.log where it belongs
1198
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
1200
m4_default([$4], [AC_MSG_ERROR(
1201
[Package requirements ($2) were not met:
1205
Consider adjusting the PKG_CONFIG_PATH environment variable if you
1206
installed software in a non-standard prefix.
1210
elif test $pkg_failed = untried; then
1212
m4_default([$4], [AC_MSG_FAILURE(
1213
[The pkg-config script could not be found or is too old. Make sure it
1214
is in your PATH or set the PKG_CONFIG environment variable to the full
1219
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
1222
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
1223
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
1224
AC_MSG_RESULT([yes])
1227
])# PKG_CHECK_MODULES
1234
dnl GNOME_COMMON_INIT
1236
AU_DEFUN([GNOME_COMMON_INIT],
1238
dnl this macro should come after AC_CONFIG_MACRO_DIR
1239
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
1241
dnl ensure that when the Automake generated makefile calls aclocal,
1242
dnl it honours the $ACLOCAL_FLAGS environment variable
1243
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
1244
if test -n "$ac_macro_dir"; then
1245
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
1248
AC_SUBST([ACLOCAL_AMFLAGS])
1250
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
1251
in your top-level Makefile.am, instead, where "m4" is the macro directory set
1252
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
1254
AC_DEFUN([GNOME_DEBUG_CHECK],
1256
AC_ARG_ENABLE([debug],
1257
AC_HELP_STRING([--enable-debug],
1258
[turn on debugging]),,
1261
if test x$enable_debug = xyes ; then
1262
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
1263
[Enable additional debugging at the expense of performance and size])
1267
dnl GNOME_MAINTAINER_MODE_DEFINES ()
1268
dnl define DISABLE_DEPRECATED
1270
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
1272
AC_REQUIRE([AM_MAINTAINER_MODE])
1274
DISABLE_DEPRECATED=""
1275
if test $USE_MAINTAINER_MODE = yes; then
1276
DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
1277
for DOMAIN in $DOMAINS; do
1278
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
1282
AC_SUBST(DISABLE_DEPRECATED)
1285
dnl GNOME_COMPILE_WARNINGS
1286
dnl Turn on many useful compiler warnings
1287
dnl For now, only works on GCC
1288
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
1289
dnl ******************************
1290
dnl More compiler warnings
1291
dnl ******************************
1293
AC_ARG_ENABLE(compile-warnings,
1294
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
1295
[Turn on compiler warnings]),,
1296
[enable_compile_warnings="m4_default([$1],[yes])"])
1299
if test "x$GCC" != xyes; then
1300
enable_compile_warnings=no
1304
realsave_CFLAGS="$CFLAGS"
1306
case "$enable_compile_warnings" in
1311
warning_flags="-Wall"
1314
warning_flags="-Wall -Wmissing-prototypes"
1317
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
1318
CFLAGS="$warning_flags $CFLAGS"
1319
for option in -Wno-sign-compare; do
1320
SAVE_CFLAGS="$CFLAGS"
1321
CFLAGS="$CFLAGS $option"
1322
AC_MSG_CHECKING([whether gcc understands $option])
1323
AC_TRY_COMPILE([], [],
1326
CFLAGS="$SAVE_CFLAGS"
1327
AC_MSG_RESULT($has_option)
1328
if test $has_option = yes; then
1329
warning_flags="$warning_flags $option"
1335
if test "$enable_compile_warnings" = "error" ; then
1336
warning_flags="$warning_flags -Werror"
1340
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
1343
CFLAGS="$realsave_CFLAGS"
1344
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
1345
AC_MSG_RESULT($warning_flags)
1347
AC_ARG_ENABLE(iso-c,
1348
AC_HELP_STRING([--enable-iso-c],
1349
[Try to warn if code is not ISO C ]),,
1352
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
1354
if test "x$enable_iso_c" != "xno"; then
1355
if test "x$GCC" = "xyes"; then
1357
*[\ \ ]-ansi[\ \ ]*) ;;
1358
*) complCFLAGS="$complCFLAGS -ansi" ;;
1361
*[\ \ ]-pedantic[\ \ ]*) ;;
1362
*) complCFLAGS="$complCFLAGS -pedantic" ;;
1366
AC_MSG_RESULT($complCFLAGS)
1368
WARN_CFLAGS="$warning_flags $complCFLAGS"
1369
AC_SUBST(WARN_CFLAGS)
1372
dnl For C++, do basically the same thing.
1374
AC_DEFUN([GNOME_CXX_WARNINGS],[
1375
AC_ARG_ENABLE(cxx-warnings,
1376
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
1377
[Turn on compiler warnings.]),,
1378
[enable_cxx_warnings="m4_default([$1],[minimum])"])
1380
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
1382
if test "x$GXX" != xyes; then
1383
enable_cxx_warnings=no
1385
if test "x$enable_cxx_warnings" != "xno"; then
1386
if test "x$GXX" = "xyes"; then
1387
case " $CXXFLAGS " in
1388
*[\ \ ]-Wall[\ \ ]*) ;;
1389
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
1392
## -W is not all that useful. And it cannot be controlled
1393
## with individual -Wno-xxx flags, unlike -Wall
1394
if test "x$enable_cxx_warnings" = "xyes"; then
1395
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
1399
AC_MSG_RESULT($warnCXXFLAGS)
1401
AC_ARG_ENABLE(iso-cxx,
1402
AC_HELP_STRING([--enable-iso-cxx],
1403
[Try to warn if code is not ISO C++ ]),,
1404
[enable_iso_cxx=no])
1406
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
1408
if test "x$enable_iso_cxx" != "xno"; then
1409
if test "x$GXX" = "xyes"; then
1410
case " $CXXFLAGS " in
1411
*[\ \ ]-ansi[\ \ ]*) ;;
1412
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
1415
case " $CXXFLAGS " in
1416
*[\ \ ]-pedantic[\ \ ]*) ;;
1417
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
1421
AC_MSG_RESULT($complCXXFLAGS)
1423
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
1424
AC_SUBST(WARN_CXXFLAGS)
1428
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
1429
dnl the schema should be compiled
1432
AC_DEFUN([GLIB_GSETTINGS],
1434
m4_pattern_allow([AM_V_GEN])
1435
AC_ARG_ENABLE(schemas-compile,
1436
AS_HELP_STRING([--disable-schemas-compile],
1437
[Disable regeneration of gschemas.compiled on install]),
1438
[case ${enableval} in
1439
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
1440
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
1441
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
1443
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
1444
PKG_PROG_PKG_CONFIG([0.16])
1445
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
1446
if test x$cross_compiling != xyes; then
1447
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
1449
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
1451
AC_SUBST(GLIB_COMPILE_SCHEMAS)
1452
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
1453
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
1455
ifelse([$1],,[:],[$1])
1459
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
1461
mostlyclean-am: clean-gsettings-schemas
1463
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
1465
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
1466
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
1468
all-am: $(gsettings_SCHEMAS:.xml=.valid)
1469
uninstall-am: uninstall-gsettings-schemas
1470
install-data-am: install-gsettings-schemas
1472
.SECONDARY: $(gsettings_SCHEMAS)
1474
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
1476
if test -n "$^"; then \
1477
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
1478
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
1479
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
1482
uninstall-gsettings-schemas:
1483
@$(NORMAL_UNINSTALL)
1484
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
1485
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
1486
test -n "$$files" || exit 0; \
1487
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
1488
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
1489
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
1491
clean-gsettings-schemas:
1492
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
1494
ifdef gsettings_ENUM_NAMESPACE
1495
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
1496
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
1499
_GSETTINGS_SUBST(GSETTINGS_RULES)
1502
dnl _GSETTINGS_SUBST(VARIABLE)
1503
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1504
AC_DEFUN([_GSETTINGS_SUBST],
1507
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1511
1706
m4_include([m4/gettext.m4])
1512
m4_include([m4/gnome-doc-utils.m4])
1513
1707
m4_include([m4/iconv.m4])
1514
1708
m4_include([m4/intlmacosx.m4])
1515
1709
m4_include([m4/intltool.m4])