14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
[m4_warning([this file was generated for autoconf 2.67.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17
[m4_warning([this file was generated for autoconf 2.68.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl you should install foo.schemas files
29
AC_DEFUN([AM_GCONF_SOURCE_2],
31
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37
AC_ARG_WITH([gconf-source],
38
AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
[Config database for installing schema files.]),
40
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49
AC_ARG_WITH([gconf-schema-file-dir],
50
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
[Directory for installing schema files.]),
52
[GCONF_SCHEMA_FILE_DIR="$withval"],)
54
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57
AC_ARG_ENABLE(schemas-install,
58
AC_HELP_STRING([--disable-schemas-install],
59
[Disable the schemas installation]),
62
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
70
27
dnl GNOME_COMMON_INIT
72
AC_DEFUN([GNOME_COMMON_INIT],
29
AU_DEFUN([GNOME_COMMON_INIT],
74
31
dnl this macro should come after AC_CONFIG_MACRO_DIR
75
32
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
314
274
GNOME_DOC_DEFINES
278
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
279
dnl the schema should be compiled
282
AC_DEFUN([GLIB_GSETTINGS],
284
m4_pattern_allow([AM_V_GEN])
285
AC_ARG_ENABLE(schemas-compile,
286
AS_HELP_STRING([--disable-schemas-compile],
287
[Disable regeneration of gschemas.compiled on install]),
288
[case ${enableval} in
289
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
290
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
291
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
293
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
294
PKG_PROG_PKG_CONFIG([0.16])
295
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
296
if test x$cross_compiling != xyes; then
297
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
299
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
301
AC_SUBST(GLIB_COMPILE_SCHEMAS)
302
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
303
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
305
ifelse([$1],,[:],[$1])
309
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
311
mostlyclean-am: clean-gsettings-schemas
313
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
315
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
316
$(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 [$]@
318
all-am: $(gsettings_SCHEMAS:.xml=.valid)
319
uninstall-am: uninstall-gsettings-schemas
320
install-data-am: install-gsettings-schemas
322
.SECONDARY: $(gsettings_SCHEMAS)
324
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
326
if test -n "$^"; then \
327
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
328
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
329
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
332
uninstall-gsettings-schemas:
334
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
335
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
336
test -n "$$files" || exit 0; \
337
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
338
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
339
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
341
clean-gsettings-schemas:
342
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
344
ifdef gsettings_ENUM_NAMESPACE
345
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
346
$(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 [$]@
349
_GSETTINGS_SUBST(GSETTINGS_RULES)
352
dnl _GSETTINGS_SUBST(VARIABLE)
353
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
354
AC_DEFUN([_GSETTINGS_SUBST],
357
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
318
362
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
319
363
# serial 40 IT_PROG_INTLTOOL
569
613
# ----------------------------------
570
614
AC_DEFUN([PKG_PROG_PKG_CONFIG],
571
615
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
572
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
616
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
617
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
573
618
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
574
619
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
575
620
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
788
834
am_aux_dir=`cd $ac_aux_dir && pwd`
792
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
793
# Free Software Foundation, Inc.
795
# This file is free software; the Free Software Foundation
796
# gives unlimited permission to copy and/or distribute it,
797
# with or without modifications, as long as this notice is preserved.
801
# This was merged into AC_PROG_CC in Autoconf.
803
AU_DEFUN([AM_PROG_CC_STDC],
805
AC_DIAGNOSE([obsolete], [$0:
806
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
807
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
808
you adjust the code. You can also remove the above call to
809
AC_PROG_CC if you already called it elsewhere.])
810
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
812
AU_DEFUN([fp_PROG_CC_STDC])
814
837
# AM_CONDITIONAL -*- Autoconf -*-
816
839
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
1109
1132
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1135
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1136
# Free Software Foundation, Inc.
1138
# This file is free software; the Free Software Foundation
1139
# gives unlimited permission to copy and/or distribute it,
1140
# with or without modifications, as long as this notice is preserved.
1144
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1145
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1112
1147
# Do all the work for Automake. -*- Autoconf -*-
1114
1149
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1382
1417
rm -f confinc confmf
1420
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1421
# Free Software Foundation, Inc.
1423
# This file is free software; the Free Software Foundation
1424
# gives unlimited permission to copy and/or distribute it,
1425
# with or without modifications, as long as this notice is preserved.
1431
# Like AC_PROG_CC_C_O, but changed for automake.
1432
AC_DEFUN([AM_PROG_CC_C_O],
1433
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1434
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1435
AC_REQUIRE_AUX_FILE([compile])dnl
1436
# FIXME: we rely on the cache variable name because
1437
# there is no other way.
1439
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1440
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1441
if test "$am_t" != yes; then
1442
# Losing compiler, so override with the script.
1443
# FIXME: It is wrong to rewrite CC.
1444
# But if we don't then we get into trouble of one sort or another.
1445
# A longer-term fix would be to have automake use am__CC in this case,
1446
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1447
CC="$am_aux_dir/compile $CC"
1449
dnl Make sure AC_PROG_CC is never called again, or it will override our
1451
m4_define([AC_PROG_CC],
1452
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1385
1455
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1387
1457
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1719
1789
AC_SUBST([am__untar])
1720
1790
]) # _AM_PROG_TAR
1792
# Autoconf support for the Vala compiler
1794
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
1796
# This file is free software; the Free Software Foundation
1797
# gives unlimited permission to copy and/or distribute it,
1798
# with or without modifications, as long as this notice is preserved.
1802
# Check whether the Vala compiler exists in `PATH'. If it is found, the
1803
# variable VALAC is set. Optionally a minimum release number of the
1804
# compiler can be requested.
1806
# AM_PROG_VALAC([MINIMUM-VERSION])
1807
# --------------------------------
1808
AC_DEFUN([AM_PROG_VALAC],
1809
[AC_PATH_PROG([VALAC], [valac], [])
1810
AS_IF([test -z "$VALAC"],
1811
[AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
1812
[AS_IF([test -n "$1"],
1813
[AC_MSG_CHECKING([$VALAC is at least version $1])
1814
am__vala_version=`$VALAC --version | sed 's/Vala *//'`
1815
AS_VERSION_COMPARE([$1], ["$am__vala_version"],
1816
[AC_MSG_RESULT([yes])],
1817
[AC_MSG_RESULT([yes])],
1818
[AC_MSG_RESULT([no])
1819
AC_MSG_ERROR([Vala $1 not found.])])])])