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'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
24
# This file is free software; the Free Software Foundation
25
# gives unlimited permission to copy and/or distribute it,
26
# with or without modifications, as long as this notice is preserved.
28
# AM_AUTOMAKE_VERSION(VERSION)
29
# ----------------------------
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
# generated from the m4 files accompanying Automake X.Y.
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.11'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.11.1], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
25
# This file is free software, distributed under the terms of the GNU
26
# General Public License. As a special exception to the GNU General
27
# Public License, this file may be distributed as part of a program
28
# that contains a configuration script generated by Autoconf, under
29
# the same distribution terms as the rest of that program.
31
# This file can be copied and used freely without restrictions. It can
32
# be used in projects which are not available under the GNU Public License
33
# but which still want to provide support for the GNU gettext functionality.
35
# Macro to add for using GNU gettext.
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
38
# Modified to never use included libintl.
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
41
# Major rework to remove unused code
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
44
# Added better handling of ALL_LINGUAS from GNU gettext version
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
47
# Modified to require ngettext
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
50
# We need this here as well, since someone might use autoconf-2.5x
51
# to configure GLib then an older version to configure a package
52
# using AM_GLIB_GNU_GETTEXT
56
dnl We go to great lengths to make sure that aclocal won't
57
dnl try to pull in the installed version of these macros
58
dnl when running aclocal in the glib directory.
60
m4_copy([AC_DEFUN],[glib_DEFUN])
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
63
dnl At the end, if we're not within glib, we'll define the public
64
dnl definitions in terms of our private definitions.
69
glib_DEFUN([GLIB_LC_MESSAGES],
70
[AC_CHECK_HEADERS([locale.h])
71
if test $ac_cv_header_locale_h = yes; then
72
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75
if test $am_cv_val_LC_MESSAGES = yes; then
76
AC_DEFINE(HAVE_LC_MESSAGES, 1,
77
[Define if your <locale.h> file defines LC_MESSAGES.])
81
# GLIB_PATH_PROG_WITH_TEST
82
#----------------------------
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86
[# Extract the first word of "$2", so it can be a program name with args.
87
set dummy $2; ac_word=[$]2
88
AC_MSG_CHECKING([for $ac_word])
89
AC_CACHE_VAL(ac_cv_path_$1,
92
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
95
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96
for ac_dir in ifelse([$5], , $PATH, [$5]); do
97
test -z "$ac_dir" && ac_dir=.
98
if test -f $ac_dir/$ac_word; then
100
ac_cv_path_$1="$ac_dir/$ac_word"
106
dnl If no 4th arg is given, leave the cache variable unset,
107
dnl so AC_PATH_PROGS will keep looking.
108
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
123
glib_DEFUN([GLIB_WITH_NLS],
124
dnl NLS is obligatory
128
gt_cv_have_gettext=no
134
AC_CHECK_HEADER(libintl.h,
135
[gt_cv_func_dgettext_libintl="no"
136
libintl_extra_libs=""
139
# First check in libc
141
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
145
[return !ngettext ("","", 1)],
146
gt_cv_func_ngettext_libc=yes,
147
gt_cv_func_ngettext_libc=no)
150
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
155
[return !dgettext ("","")],
156
gt_cv_func_dgettext_libc=yes,
157
gt_cv_func_dgettext_libc=no)
161
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162
AC_CHECK_FUNCS(bind_textdomain_codeset)
166
# If we don't have everything we want, check in libintl
168
if test "$gt_cv_func_dgettext_libc" != "yes" \
169
|| test "$gt_cv_func_ngettext_libc" != "yes" \
170
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
172
AC_CHECK_LIB(intl, bindtextdomain,
173
[AC_CHECK_LIB(intl, ngettext,
174
[AC_CHECK_LIB(intl, dgettext,
175
gt_cv_func_dgettext_libintl=yes)])])
177
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178
AC_MSG_CHECKING([if -liconv is needed to use gettext])
180
AC_CHECK_LIB(intl, ngettext,
181
[AC_CHECK_LIB(intl, dcgettext,
182
[gt_cv_func_dgettext_libintl=yes
183
libintl_extra_libs=-liconv],
189
# If we found libintl, then check in it for bind_textdomain_codeset();
190
# we'll prefer libc if neither have bind_textdomain_codeset(),
191
# and both have dgettext and ngettext
193
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194
glib_save_LIBS="$LIBS"
195
LIBS="$LIBS -lintl $libintl_extra_libs"
196
unset ac_cv_func_bind_textdomain_codeset
197
AC_CHECK_FUNCS(bind_textdomain_codeset)
198
LIBS="$glib_save_LIBS"
200
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201
gt_cv_func_dgettext_libc=no
203
if test "$gt_cv_func_dgettext_libc" = "yes" \
204
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
205
gt_cv_func_dgettext_libintl=no
211
if test "$gt_cv_func_dgettext_libc" = "yes" \
212
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
213
gt_cv_have_gettext=yes
216
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217
INTLLIBS="-lintl $libintl_extra_libs"
220
if test "$gt_cv_have_gettext" = "yes"; then
221
AC_DEFINE(HAVE_GETTEXT,1,
222
[Define if the GNU gettext() function is already present or preinstalled.])
223
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225
if test "$MSGFMT" != "no"; then
226
glib_save_LIBS="$LIBS"
227
LIBS="$LIBS $INTLLIBS"
228
AC_CHECK_FUNCS(dcgettext)
230
AC_MSG_CHECKING([if msgfmt accepts -c])
231
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
234
"Content-Type: text/plain; charset=UTF-8\n"
235
"Project-Id-Version: test 1.0\n"
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237
"Last-Translator: test <foo@bar.xx>\n"
238
"Language-Team: C <LL@li.org>\n"
239
"MIME-Version: 1.0\n"
240
"Content-Transfer-Encoding: 8bit\n"
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242
AC_SUBST(MSGFMT_OPTS)
243
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247
return _nl_msg_cat_cntr],
252
dnl On Solaris, if bind_textdomain_codeset is in libc,
253
dnl GNU format message catalog is always supported,
254
dnl since both are added to the libc all together.
255
dnl Hence, we'd like to go with DATADIRNAME=share and
256
dnl and CATOBJEXT=.gmo in this case.
257
AC_CHECK_FUNC(bind_textdomain_codeset,
272
LIBS="$glib_save_LIBS"
275
gt_cv_have_gettext=no
280
if test "$gt_cv_have_gettext" = "yes" ; then
281
AC_DEFINE(ENABLE_NLS, 1,
282
[always defined to indicate that i18n is enabled])
285
dnl Test whether we really found GNU xgettext.
286
if test "$XGETTEXT" != ":"; then
287
dnl If it is not GNU xgettext we define it as : so that the
288
dnl Makefiles still can work.
289
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
293
[found xgettext program is not GNU xgettext; ignore it])
298
# We need to process the po/ directory.
302
[case "$CONFIG_FILES" in *po/Makefile.in*)
303
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
306
dnl These rules are solely for the distribution goal. While doing this
307
dnl we only have to keep exactly one list of the available catalogs
309
for lang in $ALL_LINGUAS; do
310
GMOFILES="$GMOFILES $lang.gmo"
311
POFILES="$POFILES $lang.po"
314
dnl Make all variables we use known to autoconf.
317
AC_SUBST(DATADIRNAME)
321
AC_SUBST(PO_IN_DATADIR_TRUE)
322
AC_SUBST(PO_IN_DATADIR_FALSE)
327
# AM_GLIB_GNU_GETTEXT
328
# -------------------
329
# Do checks necessary for use of gettext. If a suitable implementation
330
# of gettext is found in either in libintl or in the C library,
331
# it will set INTLLIBS to the libraries needed for use of gettext
332
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
333
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
334
# on various variables needed by the Makefile.in.in installed by
337
glib_DEFUN([GLIB_GNU_GETTEXT],
338
[AC_REQUIRE([AC_PROG_CC])dnl
339
AC_REQUIRE([AC_HEADER_STDC])dnl
344
if test "$gt_cv_have_gettext" = "yes"; then
345
if test "x$ALL_LINGUAS" = "x"; then
348
AC_MSG_CHECKING(for catalogs to be installed)
350
for presentlang in $ALL_LINGUAS; do
352
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
353
desiredlanguages="$LINGUAS"
355
desiredlanguages="$ALL_LINGUAS"
357
for desiredlang in $desiredlanguages; do
358
# Use the presentlang catalog if desiredlang is
359
# a. equal to presentlang, or
360
# b. a variant of presentlang (because in this case,
361
# presentlang can be used as a fallback for messages
362
# which are not translated in the desiredlang catalog).
363
case "$desiredlang" in
364
"$presentlang"*) useit=yes;;
367
if test $useit = yes; then
368
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
372
AC_MSG_RESULT($LINGUAS)
375
dnl Construct list of names of catalog files to be constructed.
376
if test -n "$LINGUAS"; then
377
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
381
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
382
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
383
dnl Try to locate is.
385
if test -n "$ac_aux_dir"; then
386
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
388
if test -z "$MKINSTALLDIRS"; then
389
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
391
AC_SUBST(MKINSTALLDIRS)
393
dnl Generate list of files to be processed by xgettext which will
394
dnl be included in po/Makefile.
395
test -d po || mkdir po
396
if test "x$srcdir" != "x."; then
397
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
398
posrcprefix="$srcdir/"
400
posrcprefix="../$srcdir/"
406
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
407
< $srcdir/po/POTFILES.in > po/POTFILES
410
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
49
411
# -------------------------------
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.11.1])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62
# This file is free software; the Free Software Foundation
63
# gives unlimited permission to copy and/or distribute it,
64
# with or without modifications, as long as this notice is preserved.
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70
# Of course, Automake must honor this variable whenever it calls a
71
# tool from the auxiliary directory. The problem is that $srcdir (and
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
# depending on how configure is run. This is pretty annoying, since
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
# source directory, any form will work fine, but in subdirectories a
76
# relative path needs to be adjusted first.
79
# fails when called from a subdirectory if $ac_aux_dir is relative
80
# $top_srcdir/$ac_aux_dir/missing
81
# fails if $ac_aux_dir is absolute,
82
# fails when called from a subdirectory in a VPATH build with
83
# a relative $ac_aux_dir
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
# are both prefixed by $srcdir. In an in-source build this is usually
87
# harmless because $srcdir is `.', but things will broke when you
88
# start a VPATH build or use an absolute $srcdir.
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
# and then we would define $MISSING as
94
# MISSING="\${SHELL} $am_aux_dir/missing"
95
# This will work as long as MISSING is not called from configure, because
96
# unfortunately $(top_srcdir) has no meaning in configure.
97
# However there are other variables, like CC, which are often used in
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
100
# Another solution, used here, is to always expand $ac_aux_dir to an
101
# absolute PATH. The drawback is that using absolute paths prevent a
102
# configured tree to be moved without reconfiguration.
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
[dnl Rely on autoconf to set up CDPATH properly.
107
# expand $ac_aux_dir to an absolute path
108
am_aux_dir=`cd $ac_aux_dir && pwd`
111
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
# Free Software Foundation, Inc.
116
# This file is free software; the Free Software Foundation
117
# gives unlimited permission to copy and/or distribute it,
118
# with or without modifications, as long as this notice is preserved.
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
# -------------------------------------
124
# Define a conditional.
125
AC_DEFUN([AM_CONDITIONAL],
127
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
AC_SUBST([$1_TRUE])dnl
130
AC_SUBST([$1_FALSE])dnl
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133
m4_define([_AM_COND_VALUE_$1], [$2])dnl
412
# Define VARIABLE to the location where catalog files will
413
# be installed by po/Makefile.
414
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
415
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
416
glib_save_prefix="$prefix"
417
glib_save_exec_prefix="$exec_prefix"
418
glib_save_datarootdir="$datarootdir"
419
test "x$prefix" = xNONE && prefix=$ac_default_prefix
420
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
421
datarootdir=`eval echo "${datarootdir}"`
422
if test "x$CATOBJEXT" = "x.mo" ; then
423
localedir=`eval echo "${libdir}/locale"`
425
localedir=`eval echo "${datadir}/locale"`
141
AC_CONFIG_COMMANDS_PRE(
142
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143
AC_MSG_ERROR([[conditional "$1" was never defined.
144
Usually this means the macro was only invoked conditionally.]])
147
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
# Free Software Foundation, Inc.
150
# This file is free software; the Free Software Foundation
151
# gives unlimited permission to copy and/or distribute it,
152
# with or without modifications, as long as this notice is preserved.
156
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157
# written in clear, in which case automake, when reading aclocal.m4,
158
# will think it sees a *use*, and therefore will trigger all it's
159
# C support machinery. Also note that it means that autoscan, seeing
160
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
163
# _AM_DEPENDENCIES(NAME)
164
# ----------------------
165
# See how the compiler implements dependency checking.
166
# NAME is "CC", "CXX", "GCJ", or "OBJC".
167
# We try a few techniques and use that to set a single cache variable.
169
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171
# dependency, and given that the user is not expected to run this macro,
172
# just rely on AC_PROG_CC.
173
AC_DEFUN([_AM_DEPENDENCIES],
174
[AC_REQUIRE([AM_SET_DEPDIR])dnl
175
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
AC_REQUIRE([AM_DEP_TRACK])dnl
179
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
180
[$1], CXX, [depcc="$CXX" am_compiler_list=],
181
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
[$1], UPC, [depcc="$UPC" am_compiler_list=],
183
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
184
[depcc="$$1" am_compiler_list=])
186
AC_CACHE_CHECK([dependency style of $depcc],
187
[am_cv_$1_dependencies_compiler_type],
188
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189
# We make a subdir and do the tests there. Otherwise we can end up
190
# making bogus files that we don't know about and never remove. For
191
# instance it was reported that on HP-UX the gcc test will end up
192
# making a dummy file named `D' -- because `-MD' means `put the output
195
# Copy depcomp to subdir because otherwise we won't find it if we're
196
# using a relative directory.
197
cp "$am_depcomp" conftest.dir
199
# We will build objects and dependencies in a subdirectory because
200
# it helps to detect inapplicable dependency modes. For instance
201
# both Tru64's cc and ICC support -MD to output dependencies as a
202
# side effect of compilation, but ICC will put the dependencies in
203
# the current directory while Tru64 will put them in the object
207
am_cv_$1_dependencies_compiler_type=none
208
if test "$am_compiler_list" = ""; then
209
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
427
prefix="$glib_save_prefix"
428
exec_prefix="$glib_save_exec_prefix"
429
datarootdir="$glib_save_datarootdir"
430
AC_DEFINE_UNQUOTED($1, "$localedir",
431
[Define the location where the catalogs will be installed])
435
dnl Now the definitions that aclocal will find
437
ifdef(glib_configure_ac,[],[
438
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
439
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
442
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
444
# Create a temporary file with TEST-FILE as its contents and pass the
445
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
446
# 0 and perform ACTION-IF-FAIL for any other exit status.
447
AC_DEFUN([GLIB_RUN_PROG],
448
[cat >conftest.foo <<_ACEOF
451
if AC_RUN_LOG([$1 conftest.foo]); then
452
m4_ifval([$3], [$3], [:])
453
m4_ifvaln([$4], [else $4])dnl
454
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
455
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
464
dnl GNOME_COMMON_INIT
466
AU_DEFUN([GNOME_COMMON_INIT],
468
dnl this macro should come after AC_CONFIG_MACRO_DIR
469
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
471
dnl ensure that when the Automake generated makefile calls aclocal,
472
dnl it honours the $ACLOCAL_FLAGS environment variable
473
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
474
if test -n "$ac_macro_dir"; then
475
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
213
[case " $depcc " in #(
214
*\ -arch\ *\ -arch\ *) am__universal=true ;;
217
[case " $depcc " in #(
218
*\ -arch\ *\ -arch\ *) am__universal=true ;;
221
for depmode in $am_compiler_list; do
222
# Setup a source with many dependencies, because some compilers
223
# like to wrap large dependency lists on column 80 (with \), and
224
# we should not choose a depcomp mode which is confused by this.
226
# We need to recreate these files for each test, as the compiler may
227
# overwrite some of them when testing with obscure command lines.
228
# This happens at least with the AIX C compiler.
230
for i in 1 2 3 4 5 6; do
231
echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
# Solaris 8's {/usr,}/bin/sh.
234
touch sub/conftst$i.h
236
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
238
# We check with `-c' and `-o' for the sake of the "dashmstdout"
239
# mode. It turns out that the SunPro C++ compiler does not properly
240
# handle `-M -o', and we need to detect this. Also, some Intel
241
# versions had trouble with output in subdirs
242
am__obj=sub/conftest.${OBJEXT-o}
243
am__minus_obj="-o $am__obj"
246
# This depmode causes a compiler race in universal mode.
247
test "$am__universal" = false || continue
250
# after this tag, mechanisms are not by side-effect, so they'll
251
# only be used when explicitly requested
252
if test "x$enable_dependency_tracking" = xyes; then
258
msvisualcpp | msvcmsys)
259
# This compiler won't grok `-c -o', but also, the minuso test has
260
# not run yet. These depmodes are late enough in the game, and
261
# so weak that their functioning should not be impacted.
262
am__obj=conftest.${OBJEXT-o}
478
AC_SUBST([ACLOCAL_AMFLAGS])
480
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
481
in your top-level Makefile.am, instead, where "m4" is the macro directory set
482
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
484
AC_DEFUN([GNOME_DEBUG_CHECK],
486
AC_ARG_ENABLE([debug],
487
AC_HELP_STRING([--enable-debug],
488
[turn on debugging]),,
491
if test x$enable_debug = xyes ; then
492
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
493
[Enable additional debugging at the expense of performance and size])
497
dnl GNOME_MAINTAINER_MODE_DEFINES ()
498
dnl define DISABLE_DEPRECATED
500
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
502
AC_REQUIRE([AM_MAINTAINER_MODE])
504
DISABLE_DEPRECATED=""
505
if test $USE_MAINTAINER_MODE = yes; then
506
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
507
for DOMAIN in $DOMAINS; do
508
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
512
AC_SUBST(DISABLE_DEPRECATED)
515
dnl GNOME_COMPILE_WARNINGS
516
dnl Turn on many useful compiler warnings
517
dnl For now, only works on GCC
518
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
519
dnl ******************************
520
dnl More compiler warnings
521
dnl ******************************
523
AC_ARG_ENABLE(compile-warnings,
524
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
525
[Turn on compiler warnings]),,
526
[enable_compile_warnings="m4_default([$1],[yes])"])
529
if test "x$GCC" != xyes; then
530
enable_compile_warnings=no
534
realsave_CFLAGS="$CFLAGS"
536
case "$enable_compile_warnings" in
541
warning_flags="-Wall"
544
warning_flags="-Wall -Wmissing-prototypes"
547
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
548
CFLAGS="$warning_flags $CFLAGS"
549
for option in -Wno-sign-compare; do
550
SAVE_CFLAGS="$CFLAGS"
551
CFLAGS="$CFLAGS $option"
552
AC_MSG_CHECKING([whether gcc understands $option])
553
AC_TRY_COMPILE([], [],
556
CFLAGS="$SAVE_CFLAGS"
557
AC_MSG_RESULT($has_option)
558
if test $has_option = yes; then
559
warning_flags="$warning_flags $option"
565
if test "$enable_compile_warnings" = "error" ; then
566
warning_flags="$warning_flags -Werror"
570
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
267
if depmode=$depmode \
268
source=sub/conftest.c object=$am__obj \
269
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271
>/dev/null 2>conftest.err &&
272
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276
# icc doesn't choke on unknown options, it will just issue warnings
277
# or remarks (even with -Werror). So we grep stderr for any message
278
# that says an option was ignored or not supported.
279
# When given -MP, icc 7.0 and 7.1 complain thusly:
280
# icc: Command line warning: ignoring option '-M'; no argument required
281
# The diagnosis changed in icc 8.0:
282
# icc: Command line remark: option '-MP' not supported
283
if (grep 'ignoring option' conftest.err ||
284
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285
am_cv_$1_dependencies_compiler_type=$depmode
573
CFLAGS="$realsave_CFLAGS"
574
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
575
AC_MSG_RESULT($warning_flags)
578
AC_HELP_STRING([--enable-iso-c],
579
[Try to warn if code is not ISO C ]),,
582
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
584
if test "x$enable_iso_c" != "xno"; then
585
if test "x$GCC" = "xyes"; then
587
*[\ \ ]-ansi[\ \ ]*) ;;
588
*) complCFLAGS="$complCFLAGS -ansi" ;;
591
*[\ \ ]-pedantic[\ \ ]*) ;;
592
*) complCFLAGS="$complCFLAGS -pedantic" ;;
596
AC_MSG_RESULT($complCFLAGS)
598
WARN_CFLAGS="$warning_flags $complCFLAGS"
599
AC_SUBST(WARN_CFLAGS)
602
dnl For C++, do basically the same thing.
604
AC_DEFUN([GNOME_CXX_WARNINGS],[
605
AC_ARG_ENABLE(cxx-warnings,
606
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
607
[Turn on compiler warnings.]),,
608
[enable_cxx_warnings="m4_default([$1],[minimum])"])
610
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
612
if test "x$GXX" != xyes; then
613
enable_cxx_warnings=no
615
if test "x$enable_cxx_warnings" != "xno"; then
616
if test "x$GXX" = "xyes"; then
617
case " $CXXFLAGS " in
618
*[\ \ ]-Wall[\ \ ]*) ;;
619
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
622
## -W is not all that useful. And it cannot be controlled
623
## with individual -Wno-xxx flags, unlike -Wall
624
if test "x$enable_cxx_warnings" = "xyes"; then
625
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
294
am_cv_$1_dependencies_compiler_type=none
297
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298
AM_CONDITIONAL([am__fastdep$1], [
299
test "x$enable_dependency_tracking" != xno \
300
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
306
# Choose a directory name for dependency files.
307
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308
AC_DEFUN([AM_SET_DEPDIR],
309
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
316
AC_DEFUN([AM_DEP_TRACK],
317
[AC_ARG_ENABLE(dependency-tracking,
318
[ --disable-dependency-tracking speeds up one-time build
319
--enable-dependency-tracking do not reject slow dependency extractors])
320
if test "x$enable_dependency_tracking" != xno; then
321
am_depcomp="$ac_aux_dir/depcomp"
324
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
AC_SUBST([AMDEPBACKSLASH])dnl
326
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
329
# Generate code to set up dependency tracking. -*- Autoconf -*-
331
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
# Free Software Foundation, Inc.
334
# This file is free software; the Free Software Foundation
335
# gives unlimited permission to copy and/or distribute it,
336
# with or without modifications, as long as this notice is preserved.
340
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
# ------------------------------
342
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
344
# Autoconf 2.62 quotes --file arguments for eval, but not when files
345
# are listed without --file. Let's play safe and only enable the eval
346
# if we detect the quoting.
347
case $CONFIG_FILES in
348
*\'*) eval set x "$CONFIG_FILES" ;;
349
*) set x $CONFIG_FILES ;;
354
# Strip MF so we end up with the name of the file.
355
mf=`echo "$mf" | sed -e 's/:.*$//'`
356
# Check whether this is an Automake generated Makefile or not.
357
# We used to match only the files named `Makefile.in', but
358
# some people rename them; so instead we look at the file content.
359
# Grep'ing the first line is not enough: some people post-process
360
# each Makefile.in and add a new line on top of each file to say so.
361
# Grep'ing the whole file is not good either: AIX grep has a line
362
# limit of 2048, but all sed's we know have understand at least 4000.
363
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364
dirpart=`AS_DIRNAME("$mf")`
368
# Extract the definition of DEPDIR, am__include, and am__quote
369
# from the Makefile without running `make'.
370
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
test -z "$DEPDIR" && continue
372
am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
test -z "am__include" && continue
374
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
# When using ansi2knr, U may be empty or an underscore; expand it
376
U=`sed -n 's/^U = //p' < "$mf"`
377
# Find all dependency output files, they are included files with
378
# $(DEPDIR) in their names. We invoke sed twice because it is the
379
# simplest approach to changing $(DEPDIR) to its actual value in the
381
for file in `sed -n "
382
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384
# Make sure the directory exists.
385
test -f "$dirpart/$file" && continue
386
fdir=`AS_DIRNAME(["$file"])`
387
AS_MKDIR_P([$dirpart/$fdir])
388
# echo "creating $dirpart/$file"
389
echo '# dummy' > "$dirpart/$file"
393
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
396
# AM_OUTPUT_DEPENDENCY_COMMANDS
397
# -----------------------------
398
# This macro should only be invoked once -- use via AC_REQUIRE.
400
# This code is only required when automatic dependency tracking
401
# is enabled. FIXME. This creates each `.P' file that we will
402
# need in order to bootstrap the dependency handling code.
403
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
[AC_CONFIG_COMMANDS([depfiles],
405
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
409
# Do all the work for Automake. -*- Autoconf -*-
411
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
414
# This file is free software; the Free Software Foundation
415
# gives unlimited permission to copy and/or distribute it,
416
# with or without modifications, as long as this notice is preserved.
420
# This macro actually does too much. Some checks are only needed if
421
# your package does certain things. But this isn't really a big deal.
423
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
424
# AM_INIT_AUTOMAKE([OPTIONS])
425
# -----------------------------------------------
426
# The call with PACKAGE and VERSION arguments is the old style
427
# call (pre autoconf-2.50), which is being phased out. PACKAGE
428
# and VERSION should now be passed to AC_INIT and removed from
429
# the call to AM_INIT_AUTOMAKE.
430
# We support both call styles for the transition. After
431
# the next Automake release, Autoconf can make the AC_INIT
432
# arguments mandatory, and then we can depend on a new Autoconf
433
# release and drop the old call support.
434
AC_DEFUN([AM_INIT_AUTOMAKE],
435
[AC_PREREQ([2.62])dnl
436
dnl Autoconf wants to disallow AM_ names. We explicitly allow
437
dnl the ones we care about.
438
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
439
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
440
AC_REQUIRE([AC_PROG_INSTALL])dnl
441
if test "`cd $srcdir && pwd`" != "`pwd`"; then
442
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
443
# is not polluted with repeated "-I."
444
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
445
# test to see if srcdir already configured
446
if test -f $srcdir/config.status; then
447
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
451
# test whether we have cygpath
452
if test -z "$CYGPATH_W"; then
453
if (cygpath --version) >/dev/null 2>/dev/null; then
454
CYGPATH_W='cygpath -w'
459
AC_SUBST([CYGPATH_W])
461
# Define the identity of the package.
462
dnl Distinguish between old-style and new-style calls.
464
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
AC_SUBST([PACKAGE], [$1])dnl
466
AC_SUBST([VERSION], [$2])],
467
[_AM_SET_OPTIONS([$1])dnl
468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
474
_AM_IF_OPTION([no-define],,
475
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
478
# Some tools Automake needs.
479
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
AM_MISSING_PROG(AUTOCONF, autoconf)
483
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
AM_MISSING_PROG(MAKEINFO, makeinfo)
486
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
489
# We need awk for the "check" target. The system "awk" is bad on
491
AC_REQUIRE([AC_PROG_AWK])dnl
492
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
493
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
494
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
495
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
496
[_AM_PROG_TAR([v7])])])
497
_AM_IF_OPTION([no-dependencies],,
498
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
[_AM_DEPENDENCIES(CC)],
500
[define([AC_PROG_CC],
501
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
502
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
[_AM_DEPENDENCIES(CXX)],
504
[define([AC_PROG_CXX],
505
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
506
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
[_AM_DEPENDENCIES(OBJC)],
508
[define([AC_PROG_OBJC],
509
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
511
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
514
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
AC_CONFIG_COMMANDS_PRE(dnl
516
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
520
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
521
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
dnl mangled by Autoconf and run in a shell conditional statement.
523
m4_define([_AC_COMPILER_EXEEXT],
524
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
527
# When config.status generates a header, we must update the stamp-h file.
528
# This file resides in the same directory as the config header
529
# that is generated. The stamp files are numbered to have different names.
531
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
532
# loop where config.status creates the headers, so we can generate
533
# our stamp files there.
534
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
535
[# Compute $1's index in $config_headers.
538
for _am_header in $config_headers :; do
540
$_am_arg | $_am_arg:* )
543
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
546
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
548
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
550
# This file is free software; the Free Software Foundation
551
# gives unlimited permission to copy and/or distribute it,
552
# with or without modifications, as long as this notice is preserved.
556
# Define $install_sh.
557
AC_DEFUN([AM_PROG_INSTALL_SH],
558
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
559
if test x"${install_sh}" != xset; then
562
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
564
install_sh="\${SHELL} $am_aux_dir/install-sh"
567
AC_SUBST(install_sh)])
569
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
571
# This file is free software; the Free Software Foundation
572
# gives unlimited permission to copy and/or distribute it,
573
# with or without modifications, as long as this notice is preserved.
577
# Check whether the underlying file-system supports filenames
578
# with a leading dot. For instance MS-DOS doesn't.
579
AC_DEFUN([AM_SET_LEADING_DOT],
580
[rm -rf .tst 2>/dev/null
581
mkdir .tst 2>/dev/null
582
if test -d .tst; then
587
rmdir .tst 2>/dev/null
588
AC_SUBST([am__leading_dot])])
590
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
# Free Software Foundation, Inc.
596
# This file is free software; the Free Software Foundation
597
# gives unlimited permission to copy and/or distribute it,
598
# with or without modifications, as long as this notice is preserved.
602
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
# ----------------------------------
604
# Control maintainer-specific portions of Makefiles.
605
# Default is to disable them, unless `enable' is passed literally.
606
# For symmetry, `disable' may be passed as well. Anyway, the user
607
# can override the default with the --enable/--disable switch.
608
AC_DEFUN([AM_MAINTAINER_MODE],
609
[m4_case(m4_default([$1], [disable]),
610
[enable], [m4_define([am_maintainer_other], [disable])],
611
[disable], [m4_define([am_maintainer_other], [enable])],
612
[m4_define([am_maintainer_other], [enable])
613
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
615
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
AC_ARG_ENABLE([maintainer-mode],
617
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
618
(and sometimes confusing) to the casual installer],
619
[USE_MAINTAINER_MODE=$enableval],
620
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
MAINT=$MAINTAINER_MODE_TRUE
628
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
630
# Check to see how 'make' treats includes. -*- Autoconf -*-
632
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
634
# This file is free software; the Free Software Foundation
635
# gives unlimited permission to copy and/or distribute it,
636
# with or without modifications, as long as this notice is preserved.
642
# Check to see how make treats includes.
643
AC_DEFUN([AM_MAKE_INCLUDE],
644
[am_make=${MAKE-make}
645
cat > confinc << 'END'
647
@echo this is the am__doit target
650
# If we don't find an include directive, just comment out the code.
651
AC_MSG_CHECKING([for style of include used by $am_make])
655
# First try GNU make style include.
656
echo "include confinc" > confmf
657
# Ignore all kinds of additional output from `make'.
658
case `$am_make -s -f confmf 2> /dev/null` in #(
659
*the\ am__doit\ target*)
665
# Now try BSD make style include.
666
if test "$am__include" = "#"; then
667
echo '.include "confinc"' > confmf
668
case `$am_make -s -f confmf 2> /dev/null` in #(
669
*the\ am__doit\ target*)
676
AC_SUBST([am__include])
677
AC_SUBST([am__quote])
678
AC_MSG_RESULT([$_am_result])
682
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
684
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
685
# Free Software Foundation, Inc.
687
# This file is free software; the Free Software Foundation
688
# gives unlimited permission to copy and/or distribute it,
689
# with or without modifications, as long as this notice is preserved.
693
# AM_MISSING_PROG(NAME, PROGRAM)
694
# ------------------------------
695
AC_DEFUN([AM_MISSING_PROG],
696
[AC_REQUIRE([AM_MISSING_HAS_RUN])
697
$1=${$1-"${am_missing_run}$2"}
703
# Define MISSING if not defined so far and test if it supports --run.
704
# If it does, set am_missing_run to use it, otherwise, to nothing.
705
AC_DEFUN([AM_MISSING_HAS_RUN],
706
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
707
AC_REQUIRE_AUX_FILE([missing])dnl
708
if test x"${MISSING+set}" != xset; then
711
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
713
MISSING="\${SHELL} $am_aux_dir/missing" ;;
716
# Use eval to expand $SHELL
717
if eval "$MISSING --run true"; then
718
am_missing_run="$MISSING --run "
721
AC_MSG_WARN([`missing' script is too old or missing])
725
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
727
# This file is free software; the Free Software Foundation
728
# gives unlimited permission to copy and/or distribute it,
729
# with or without modifications, as long as this notice is preserved.
733
# Check for `mkdir -p'.
734
AC_DEFUN([AM_PROG_MKDIR_P],
735
[AC_PREREQ([2.60])dnl
736
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
737
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
738
dnl while keeping a definition of mkdir_p for backward compatibility.
739
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
740
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
741
dnl Makefile.ins that do not define MKDIR_P, so we do our own
742
dnl adjustment using top_builddir (which is defined more often than
744
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
746
[[\\/$]]* | ?:[[\\/]]*) ;;
747
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
751
# Helper functions for option handling. -*- Autoconf -*-
753
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
755
# This file is free software; the Free Software Foundation
756
# gives unlimited permission to copy and/or distribute it,
757
# with or without modifications, as long as this notice is preserved.
761
# _AM_MANGLE_OPTION(NAME)
762
# -----------------------
763
AC_DEFUN([_AM_MANGLE_OPTION],
764
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
766
# _AM_SET_OPTION(NAME)
767
# ------------------------------
768
# Set option NAME. Presently that only means defining a flag for this option.
769
AC_DEFUN([_AM_SET_OPTION],
770
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
772
# _AM_SET_OPTIONS(OPTIONS)
773
# ----------------------------------
774
# OPTIONS is a space-separated list of Automake options.
775
AC_DEFUN([_AM_SET_OPTIONS],
776
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
778
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
779
# -------------------------------------------
780
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
781
AC_DEFUN([_AM_IF_OPTION],
782
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
784
# Check to make sure that the build environment is sane. -*- Autoconf -*-
786
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
787
# Free Software Foundation, Inc.
789
# This file is free software; the Free Software Foundation
790
# gives unlimited permission to copy and/or distribute it,
791
# with or without modifications, as long as this notice is preserved.
797
AC_DEFUN([AM_SANITY_CHECK],
798
[AC_MSG_CHECKING([whether build environment is sane])
801
echo timestamp > conftest.file
802
# Reject unsafe characters in $srcdir or the absolute working directory
803
# name. Accept space and tab only in the latter.
629
AC_MSG_RESULT($warnCXXFLAGS)
631
AC_ARG_ENABLE(iso-cxx,
632
AC_HELP_STRING([--enable-iso-cxx],
633
[Try to warn if code is not ISO C++ ]),,
636
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
638
if test "x$enable_iso_cxx" != "xno"; then
639
if test "x$GXX" = "xyes"; then
640
case " $CXXFLAGS " in
641
*[\ \ ]-ansi[\ \ ]*) ;;
642
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
645
case " $CXXFLAGS " in
646
*[\ \ ]-pedantic[\ \ ]*) ;;
647
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
651
AC_MSG_RESULT($complCXXFLAGS)
653
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
654
AC_SUBST(WARN_CXXFLAGS)
657
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
658
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
659
AC_DEFUN([GNOME_DOC_DEFINES],
661
AC_ARG_WITH([help-dir],
662
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
663
[with_help_dir='${datadir}/gnome/help'])
664
HELP_DIR="$with_help_dir"
667
AC_ARG_WITH([omf-dir],
668
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
669
[with_omf_dir='${datadir}/omf'])
670
OMF_DIR="$with_omf_dir"
673
AC_ARG_WITH([help-formats],
674
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
675
[with_help_formats=''])
676
DOC_USER_FORMATS="$with_help_formats"
677
AC_SUBST(DOC_USER_FORMATS)
679
AC_ARG_ENABLE([scrollkeeper],
680
[AC_HELP_STRING([--disable-scrollkeeper],
681
[do not make updates to the scrollkeeper database])],,
682
enable_scrollkeeper=yes)
683
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
685
dnl disable scrollkeeper automatically for distcheck
686
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
687
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
689
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
692
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
694
AC_DEFUN([GNOME_DOC_INIT],
695
[AC_REQUIRE([AC_PROG_LN_S])dnl
697
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
699
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
700
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
701
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
703
if test "$gdu_cv_have_gdu" = "yes"; then
705
ifelse([$2],,[:],[$2])
708
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
715
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
716
dnl the schema should be compiled
719
AC_DEFUN([GLIB_GSETTINGS],
721
m4_pattern_allow([AM_V_GEN])
722
AC_ARG_ENABLE(schemas-compile,
723
AS_HELP_STRING([--disable-schemas-compile],
724
[Disable regeneration of gschemas.compiled on install]),
725
[case ${enableval} in
726
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
727
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
728
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
730
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
731
PKG_PROG_PKG_CONFIG([0.16])
732
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
733
if test x$cross_compiling != xyes; then
734
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
736
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
738
AC_SUBST(GLIB_COMPILE_SCHEMAS)
739
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
740
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
742
ifelse([$1],,[:],[$1])
746
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
748
mostlyclean-am: clean-gsettings-schemas
750
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
752
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
753
$(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 [$]@
755
all-am: $(gsettings_SCHEMAS:.xml=.valid)
756
uninstall-am: uninstall-gsettings-schemas
757
install-data-am: install-gsettings-schemas
759
.SECONDARY: $(gsettings_SCHEMAS)
761
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
763
if test -n "$^"; then \
764
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
765
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
766
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
769
uninstall-gsettings-schemas:
771
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
772
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
773
test -n "$$files" || exit 0; \
774
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
775
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
776
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
778
clean-gsettings-schemas:
779
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
781
ifdef gsettings_ENUM_NAMESPACE
782
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
783
$(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 [$]@
807
*[[\\\"\#\$\&\'\`$am_lf]]*)
808
AC_MSG_ERROR([unsafe absolute working directory name]);;
811
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
812
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
815
# Do `set' in a subshell so we don't clobber the current shell's
816
# arguments. Must try -L first in case configure is actually a
817
# symlink; some systems play weird games with the mod time of symlinks
818
# (eg FreeBSD returns the mod time of the symlink's containing
821
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
822
if test "$[*]" = "X"; then
824
set X `ls -t "$srcdir/configure" conftest.file`
827
if test "$[*]" != "X $srcdir/configure conftest.file" \
828
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
830
# If neither matched, then we have a broken ls. This can happen
831
# if, for instance, CONFIG_SHELL is bash and it inherits a
832
# broken ls alias from the environment. This has actually
833
# happened. Such a system could not be considered "sane".
834
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
835
alias in your environment])
838
test "$[2]" = conftest.file
844
AC_MSG_ERROR([newly created file is older than distributed files!
845
Check your system clock])
849
# Copyright (C) 2009 Free Software Foundation, Inc.
851
# This file is free software; the Free Software Foundation
852
# gives unlimited permission to copy and/or distribute it,
853
# with or without modifications, as long as this notice is preserved.
786
_GSETTINGS_SUBST(GSETTINGS_RULES)
789
dnl _GSETTINGS_SUBST(VARIABLE)
790
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
791
AC_DEFUN([_GSETTINGS_SUBST],
794
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
798
dnl -*- mode: autoconf -*-
857
# AM_SILENT_RULES([DEFAULT])
858
# --------------------------
859
# Enable less verbose build rules; with the default set to DEFAULT
860
# (`yes' being less verbose, `no' or empty being verbose).
861
AC_DEFUN([AM_SILENT_RULES],
862
[AC_ARG_ENABLE([silent-rules],
863
[ --enable-silent-rules less verbose build output (undo: `make V=1')
864
--disable-silent-rules verbose build output (undo: `make V=0')])
865
case $enable_silent_rules in
866
yes) AM_DEFAULT_VERBOSITY=0;;
867
no) AM_DEFAULT_VERBOSITY=1;;
868
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
803
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
804
AC_DEFUN([GTK_DOC_CHECK],
806
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
807
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
808
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
810
dnl check for tools we added during development
811
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
812
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
813
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
815
dnl for overriding the documentation installation directory
816
AC_ARG_WITH([html-dir],
817
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
818
[with_html_dir='${datadir}/gtk-doc/html'])
819
HTML_DIR="$with_html_dir"
822
dnl enable/disable documentation building
823
AC_ARG_ENABLE([gtk-doc],
824
AS_HELP_STRING([--enable-gtk-doc],
825
[use gtk-doc to build documentation [[default=no]]]),,
828
if test x$enable_gtk_doc = xyes; then
830
[PKG_CHECK_EXISTS([gtk-doc],,
831
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
832
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
833
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
834
dnl don't check for glib if we build glib
835
if test "x$PACKAGE_NAME" != "xglib"; then
836
dnl don't fail if someone does not have glib
837
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
841
AC_MSG_CHECKING([whether to build gtk-doc documentation])
842
AC_MSG_RESULT($enable_gtk_doc)
844
dnl enable/disable output formats
845
AC_ARG_ENABLE([gtk-doc-html],
846
AS_HELP_STRING([--enable-gtk-doc-html],
847
[build documentation in html format [[default=yes]]]),,
848
[enable_gtk_doc_html=yes])
849
AC_ARG_ENABLE([gtk-doc-pdf],
850
AS_HELP_STRING([--enable-gtk-doc-pdf],
851
[build documentation in pdf format [[default=no]]]),,
852
[enable_gtk_doc_pdf=no])
854
if test -z "$GTKDOC_MKPDF"; then
855
enable_gtk_doc_pdf=no
859
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
860
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
861
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
862
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
863
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
867
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
868
# serial 40 IT_PROG_INTLTOOL
869
AC_DEFUN([IT_PROG_INTLTOOL], [
871
AC_REQUIRE([AM_NLS])dnl
873
case "$am__api_version" in
875
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
872
AC_SUBST([AM_BACKSLASH])dnl
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
881
if test -n "$1"; then
882
AC_MSG_CHECKING([for intltool >= $1])
884
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
885
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
886
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
888
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
889
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
890
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
893
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
894
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
895
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
896
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
897
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
900
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
901
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
902
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
903
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
904
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
905
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
906
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
907
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
908
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
909
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
910
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
911
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@'
912
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
913
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
914
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
915
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
916
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
917
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
918
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
920
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
921
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
922
_IT_SUBST(INTLTOOL_KEYS_RULE)
923
_IT_SUBST(INTLTOOL_PROP_RULE)
924
_IT_SUBST(INTLTOOL_OAF_RULE)
925
_IT_SUBST(INTLTOOL_PONG_RULE)
926
_IT_SUBST(INTLTOOL_SERVER_RULE)
927
_IT_SUBST(INTLTOOL_SHEET_RULE)
928
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
929
_IT_SUBST(INTLTOOL_UI_RULE)
930
_IT_SUBST(INTLTOOL_XAM_RULE)
931
_IT_SUBST(INTLTOOL_KBD_RULE)
932
_IT_SUBST(INTLTOOL_XML_RULE)
933
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
934
_IT_SUBST(INTLTOOL_CAVES_RULE)
935
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
936
_IT_SUBST(INTLTOOL_THEME_RULE)
937
_IT_SUBST(INTLTOOL_SERVICE_RULE)
938
_IT_SUBST(INTLTOOL_POLICY_RULE)
940
# Check the gettext tools to make sure they are GNU
941
AC_PATH_PROG(XGETTEXT, xgettext)
942
AC_PATH_PROG(MSGMERGE, msgmerge)
943
AC_PATH_PROG(MSGFMT, msgfmt)
944
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
945
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
946
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
948
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
949
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
950
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
951
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
952
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
955
AC_PATH_PROG(INTLTOOL_PERL, perl)
956
if test -z "$INTLTOOL_PERL"; then
957
AC_MSG_ERROR([perl not found])
959
AC_MSG_CHECKING([for perl >= 5.8.1])
960
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
961
if test $? -ne 0; then
962
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
964
IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
965
AC_MSG_RESULT([$IT_PERL_VERSION])
967
if test "x$2" != "xno-xml"; then
968
AC_MSG_CHECKING([for XML::Parser])
969
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
972
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
976
# Substitute ALL_LINGUAS so we can use it in po/Makefile
977
AC_SUBST(ALL_LINGUAS)
979
# Set DATADIRNAME correctly if it is not set yet
980
# (copied from glib-gettext.m4)
981
if test -z "$DATADIRNAME"; then
983
[AC_LANG_PROGRAM([[]],
984
[[extern int _nl_msg_cat_cntr;
985
return _nl_msg_cat_cntr]])],
989
dnl On Solaris, if bind_textdomain_codeset is in libc,
990
dnl GNU format message catalog is always supported,
991
dnl since both are added to the libc all together.
992
dnl Hence, we'd like to go with DATADIRNAME=share
994
AC_CHECK_FUNC(bind_textdomain_codeset,
995
[DATADIRNAME=share], [DATADIRNAME=lib])
1002
AC_SUBST(DATADIRNAME)
876
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
878
# This file is free software; the Free Software Foundation
879
# gives unlimited permission to copy and/or distribute it,
880
# with or without modifications, as long as this notice is preserved.
882
# AM_PROG_INSTALL_STRIP
1009
# IT_PO_SUBDIR(DIRNAME)
883
1010
# ---------------------
884
# One issue with vendor `install' (even GNU) is that you can't
885
# specify the program used to strip binaries. This is especially
886
# annoying in cross-compiling environments, where the build's strip
887
# is unlikely to handle the host's binaries.
888
# Fortunately install-sh will honor a STRIPPROG variable, so we
889
# always use install-sh in `make install-strip', and initialize
890
# STRIPPROG with the value of the STRIP variable (set by the user).
891
AC_DEFUN([AM_PROG_INSTALL_STRIP],
892
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
893
# Installed binaries are usually stripped using `strip' when the user
894
# run `make install-strip'. However `strip' might not be the right
895
# tool to use in cross-compilation environments, therefore Automake
896
# will honor the `STRIP' environment variable to overrule this program.
897
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
898
if test "$cross_compiling" != no; then
899
AC_CHECK_TOOL([STRIP], [strip], :)
901
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
902
AC_SUBST([INSTALL_STRIP_PROGRAM])])
904
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
906
# This file is free software; the Free Software Foundation
907
# gives unlimited permission to copy and/or distribute it,
908
# with or without modifications, as long as this notice is preserved.
912
# _AM_SUBST_NOTMAKE(VARIABLE)
913
# ---------------------------
914
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
915
# This macro is traced by Automake.
916
AC_DEFUN([_AM_SUBST_NOTMAKE])
918
# AM_SUBST_NOTMAKE(VARIABLE)
919
# ---------------------------
920
# Public sister of _AM_SUBST_NOTMAKE.
921
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
923
# Check how to create a tarball. -*- Autoconf -*-
925
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
927
# This file is free software; the Free Software Foundation
928
# gives unlimited permission to copy and/or distribute it,
929
# with or without modifications, as long as this notice is preserved.
933
# _AM_PROG_TAR(FORMAT)
934
# --------------------
935
# Check how to create a tarball in format FORMAT.
936
# FORMAT should be one of `v7', `ustar', or `pax'.
938
# Substitute a variable $(am__tar) that is a command
939
# writing to stdout a FORMAT-tarball containing the directory
941
# tardir=directory && $(am__tar) > result.tar
943
# Substitute a variable $(am__untar) that extract such
944
# a tarball read from stdin.
945
# $(am__untar) < result.tar
946
AC_DEFUN([_AM_PROG_TAR],
947
[# Always define AMTAR for backward compatibility.
948
AM_MISSING_PROG([AMTAR], [tar])
950
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
951
[m4_case([$1], [ustar],, [pax],,
952
[m4_fatal([Unknown tar format])])
953
AC_MSG_CHECKING([how to create a $1 tar archive])
954
# Loop over all known methods to create a tar archive until one works.
955
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
956
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
957
# Do not fold the above two line into one, because Tru64 sh and
958
# Solaris sh will not grok spaces in the rhs of `-'.
959
for _am_tool in $_am_tools
963
for _am_tar in tar gnutar gtar;
965
AM_RUN_LOG([$_am_tar --version]) && break
967
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
968
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
969
am__untar="$_am_tar -xf -"
972
# Must skip GNU tar: if it does not support --format= it doesn't create
973
# ustar tarball either.
974
(tar --version) >/dev/null 2>&1 && continue
975
am__tar='tar chf - "$$tardir"'
976
am__tar_='tar chf - "$tardir"'
980
am__tar='pax -L -x $1 -w "$$tardir"'
981
am__tar_='pax -L -x $1 -w "$tardir"'
985
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
986
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
987
am__untar='cpio -i -H $1 -d'
996
# If the value was cached, stop now. We just wanted to have am__tar
998
test -n "${am_cv_prog_tar_$1}" && break
1000
# tar/untar a dummy directory, and stop if the command works
1003
echo GrepMe > conftest.dir/file
1004
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1006
if test -s conftest.tar; then
1007
AM_RUN_LOG([$am__untar <conftest.tar])
1008
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1013
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1014
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1016
AC_SUBST([am__untar])
1011
# All po subdirs have to be declared with this macro; the subdir "po" is
1012
# declared by IT_PROG_INTLTOOL.
1014
AC_DEFUN([IT_PO_SUBDIR],
1015
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1017
dnl The following CONFIG_COMMANDS should be executed at the very end
1018
dnl of config.status.
1019
AC_CONFIG_COMMANDS_PRE([
1020
AC_CONFIG_COMMANDS([$1/stamp-it], [
1021
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1022
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1024
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1029
'"s|^| $ac_top_srcdir/|" \
1030
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1032
[sed '/^POTFILES =/,/[^\\]$/ {
1036
' "$1/Makefile.in" >"$1/Makefile"]
1037
rm -f "$1/Makefile.tmp"
1038
mv "$1/stamp-it.tmp" "$1/stamp-it"
1043
# _IT_SUBST(VARIABLE)
1044
# -------------------
1045
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1047
AC_DEFUN([_IT_SUBST],
1050
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1055
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1056
# A hint is needed for aclocal from Automake <= 1.9.4:
1057
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1019
1060
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
9650
9691
])# PKG_CHECK_MODULES
9652
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9653
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9655
# This file is free software, distributed under the terms of the GNU
9656
# General Public License. As a special exception to the GNU General
9657
# Public License, this file may be distributed as part of a program
9658
# that contains a configuration script generated by Autoconf, under
9659
# the same distribution terms as the rest of that program.
9661
# This file can be copied and used freely without restrictions. It can
9662
# be used in projects which are not available under the GNU Public License
9663
# but which still want to provide support for the GNU gettext functionality.
9665
# Macro to add for using GNU gettext.
9666
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9668
# Modified to never use included libintl.
9669
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
9671
# Major rework to remove unused code
9672
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
9674
# Added better handling of ALL_LINGUAS from GNU gettext version
9675
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9677
# Modified to require ngettext
9678
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
9680
# We need this here as well, since someone might use autoconf-2.5x
9681
# to configure GLib then an older version to configure a package
9682
# using AM_GLIB_GNU_GETTEXT
9686
dnl We go to great lengths to make sure that aclocal won't
9687
dnl try to pull in the installed version of these macros
9688
dnl when running aclocal in the glib directory.
9690
m4_copy([AC_DEFUN],[glib_DEFUN])
9691
m4_copy([AC_REQUIRE],[glib_REQUIRE])
9693
dnl At the end, if we're not within glib, we'll define the public
9694
dnl definitions in terms of our private definitions.
9698
#--------------------
9699
glib_DEFUN([GLIB_LC_MESSAGES],
9700
[AC_CHECK_HEADERS([locale.h])
9701
if test $ac_cv_header_locale_h = yes; then
9702
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9703
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9704
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9705
if test $am_cv_val_LC_MESSAGES = yes; then
9706
AC_DEFINE(HAVE_LC_MESSAGES, 1,
9707
[Define if your <locale.h> file defines LC_MESSAGES.])
9711
# GLIB_PATH_PROG_WITH_TEST
9712
#----------------------------
9713
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9714
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9715
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9716
[# Extract the first word of "$2", so it can be a program name with args.
9717
set dummy $2; ac_word=[$]2
9718
AC_MSG_CHECKING([for $ac_word])
9719
AC_CACHE_VAL(ac_cv_path_$1,
9722
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9725
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9726
for ac_dir in ifelse([$5], , $PATH, [$5]); do
9727
test -z "$ac_dir" && ac_dir=.
9728
if test -f $ac_dir/$ac_word; then
9730
ac_cv_path_$1="$ac_dir/$ac_word"
9693
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9695
# This file is free software; the Free Software Foundation
9696
# gives unlimited permission to copy and/or distribute it,
9697
# with or without modifications, as long as this notice is preserved.
9699
# AM_AUTOMAKE_VERSION(VERSION)
9700
# ----------------------------
9701
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9702
# generated from the m4 files accompanying Automake X.Y.
9703
# (This private macro should not be called outside this file.)
9704
AC_DEFUN([AM_AUTOMAKE_VERSION],
9705
[am__api_version='1.11'
9706
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9707
dnl require some minimum version. Point them to the right macro.
9708
m4_if([$1], [1.11.1], [],
9709
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9712
# _AM_AUTOCONF_VERSION(VERSION)
9713
# -----------------------------
9714
# aclocal traces this macro to find the Autoconf version.
9715
# This is a private macro too. Using m4_define simplifies
9716
# the logic in aclocal, which can simply ignore this definition.
9717
m4_define([_AM_AUTOCONF_VERSION], [])
9719
# AM_SET_CURRENT_AUTOMAKE_VERSION
9720
# -------------------------------
9721
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9722
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9723
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9724
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9725
m4_ifndef([AC_AUTOCONF_VERSION],
9726
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9727
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9729
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9731
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9733
# This file is free software; the Free Software Foundation
9734
# gives unlimited permission to copy and/or distribute it,
9735
# with or without modifications, as long as this notice is preserved.
9737
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9738
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9739
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9741
# Of course, Automake must honor this variable whenever it calls a
9742
# tool from the auxiliary directory. The problem is that $srcdir (and
9743
# therefore $ac_aux_dir as well) can be either absolute or relative,
9744
# depending on how configure is run. This is pretty annoying, since
9745
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9746
# source directory, any form will work fine, but in subdirectories a
9747
# relative path needs to be adjusted first.
9749
# $ac_aux_dir/missing
9750
# fails when called from a subdirectory if $ac_aux_dir is relative
9751
# $top_srcdir/$ac_aux_dir/missing
9752
# fails if $ac_aux_dir is absolute,
9753
# fails when called from a subdirectory in a VPATH build with
9754
# a relative $ac_aux_dir
9756
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9757
# are both prefixed by $srcdir. In an in-source build this is usually
9758
# harmless because $srcdir is `.', but things will broke when you
9759
# start a VPATH build or use an absolute $srcdir.
9761
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9762
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9763
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9764
# and then we would define $MISSING as
9765
# MISSING="\${SHELL} $am_aux_dir/missing"
9766
# This will work as long as MISSING is not called from configure, because
9767
# unfortunately $(top_srcdir) has no meaning in configure.
9768
# However there are other variables, like CC, which are often used in
9769
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9771
# Another solution, used here, is to always expand $ac_aux_dir to an
9772
# absolute PATH. The drawback is that using absolute paths prevent a
9773
# configured tree to be moved without reconfiguration.
9775
AC_DEFUN([AM_AUX_DIR_EXPAND],
9776
[dnl Rely on autoconf to set up CDPATH properly.
9777
AC_PREREQ([2.50])dnl
9778
# expand $ac_aux_dir to an absolute path
9779
am_aux_dir=`cd $ac_aux_dir && pwd`
9782
# AM_CONDITIONAL -*- Autoconf -*-
9784
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9785
# Free Software Foundation, Inc.
9787
# This file is free software; the Free Software Foundation
9788
# gives unlimited permission to copy and/or distribute it,
9789
# with or without modifications, as long as this notice is preserved.
9793
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9794
# -------------------------------------
9795
# Define a conditional.
9796
AC_DEFUN([AM_CONDITIONAL],
9798
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9799
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9800
AC_SUBST([$1_TRUE])dnl
9801
AC_SUBST([$1_FALSE])dnl
9802
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9803
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9804
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9812
AC_CONFIG_COMMANDS_PRE(
9813
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9814
AC_MSG_ERROR([[conditional "$1" was never defined.
9815
Usually this means the macro was only invoked conditionally.]])
9818
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9819
# Free Software Foundation, Inc.
9821
# This file is free software; the Free Software Foundation
9822
# gives unlimited permission to copy and/or distribute it,
9823
# with or without modifications, as long as this notice is preserved.
9827
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9828
# written in clear, in which case automake, when reading aclocal.m4,
9829
# will think it sees a *use*, and therefore will trigger all it's
9830
# C support machinery. Also note that it means that autoscan, seeing
9831
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9834
# _AM_DEPENDENCIES(NAME)
9835
# ----------------------
9836
# See how the compiler implements dependency checking.
9837
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9838
# We try a few techniques and use that to set a single cache variable.
9840
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9841
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9842
# dependency, and given that the user is not expected to run this macro,
9843
# just rely on AC_PROG_CC.
9844
AC_DEFUN([_AM_DEPENDENCIES],
9845
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9846
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9847
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9848
AC_REQUIRE([AM_DEP_TRACK])dnl
9850
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9851
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9852
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9853
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9854
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9855
[depcc="$$1" am_compiler_list=])
9857
AC_CACHE_CHECK([dependency style of $depcc],
9858
[am_cv_$1_dependencies_compiler_type],
9859
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9860
# We make a subdir and do the tests there. Otherwise we can end up
9861
# making bogus files that we don't know about and never remove. For
9862
# instance it was reported that on HP-UX the gcc test will end up
9863
# making a dummy file named `D' -- because `-MD' means `put the output
9866
# Copy depcomp to subdir because otherwise we won't find it if we're
9867
# using a relative directory.
9868
cp "$am_depcomp" conftest.dir
9870
# We will build objects and dependencies in a subdirectory because
9871
# it helps to detect inapplicable dependency modes. For instance
9872
# both Tru64's cc and ICC support -MD to output dependencies as a
9873
# side effect of compilation, but ICC will put the dependencies in
9874
# the current directory while Tru64 will put them in the object
9878
am_cv_$1_dependencies_compiler_type=none
9879
if test "$am_compiler_list" = ""; then
9880
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9884
[case " $depcc " in #(
9885
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9888
[case " $depcc " in #(
9889
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9892
for depmode in $am_compiler_list; do
9893
# Setup a source with many dependencies, because some compilers
9894
# like to wrap large dependency lists on column 80 (with \), and
9895
# we should not choose a depcomp mode which is confused by this.
9897
# We need to recreate these files for each test, as the compiler may
9898
# overwrite some of them when testing with obscure command lines.
9899
# This happens at least with the AIX C compiler.
9901
for i in 1 2 3 4 5 6; do
9902
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9903
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9904
# Solaris 8's {/usr,}/bin/sh.
9905
touch sub/conftst$i.h
9907
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9909
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9910
# mode. It turns out that the SunPro C++ compiler does not properly
9911
# handle `-M -o', and we need to detect this. Also, some Intel
9912
# versions had trouble with output in subdirs
9913
am__obj=sub/conftest.${OBJEXT-o}
9914
am__minus_obj="-o $am__obj"
9917
# This depmode causes a compiler race in universal mode.
9918
test "$am__universal" = false || continue
9921
# after this tag, mechanisms are not by side-effect, so they'll
9922
# only be used when explicitly requested
9923
if test "x$enable_dependency_tracking" = xyes; then
9736
dnl If no 4th arg is given, leave the cache variable unset,
9737
dnl so AC_PATH_PROGS will keep looking.
9738
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9743
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9744
AC_MSG_RESULT([$]$1)
9753
glib_DEFUN([GLIB_WITH_NLS],
9754
dnl NLS is obligatory
9758
gt_cv_have_gettext=no
9764
AC_CHECK_HEADER(libintl.h,
9765
[gt_cv_func_dgettext_libintl="no"
9766
libintl_extra_libs=""
9769
# First check in libc
9771
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9773
#include <libintl.h>
9775
[return !ngettext ("","", 1)],
9776
gt_cv_func_ngettext_libc=yes,
9777
gt_cv_func_ngettext_libc=no)
9780
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9781
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9783
#include <libintl.h>
9785
[return !dgettext ("","")],
9786
gt_cv_func_dgettext_libc=yes,
9787
gt_cv_func_dgettext_libc=no)
9791
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9792
AC_CHECK_FUNCS(bind_textdomain_codeset)
9796
# If we don't have everything we want, check in libintl
9798
if test "$gt_cv_func_dgettext_libc" != "yes" \
9799
|| test "$gt_cv_func_ngettext_libc" != "yes" \
9800
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9802
AC_CHECK_LIB(intl, bindtextdomain,
9803
[AC_CHECK_LIB(intl, ngettext,
9804
[AC_CHECK_LIB(intl, dgettext,
9805
gt_cv_func_dgettext_libintl=yes)])])
9807
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9808
AC_MSG_CHECKING([if -liconv is needed to use gettext])
9810
AC_CHECK_LIB(intl, ngettext,
9811
[AC_CHECK_LIB(intl, dcgettext,
9812
[gt_cv_func_dgettext_libintl=yes
9813
libintl_extra_libs=-liconv],
9819
# If we found libintl, then check in it for bind_textdomain_codeset();
9820
# we'll prefer libc if neither have bind_textdomain_codeset(),
9821
# and both have dgettext and ngettext
9823
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9824
glib_save_LIBS="$LIBS"
9825
LIBS="$LIBS -lintl $libintl_extra_libs"
9826
unset ac_cv_func_bind_textdomain_codeset
9827
AC_CHECK_FUNCS(bind_textdomain_codeset)
9828
LIBS="$glib_save_LIBS"
9830
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9831
gt_cv_func_dgettext_libc=no
9833
if test "$gt_cv_func_dgettext_libc" = "yes" \
9834
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
9835
gt_cv_func_dgettext_libintl=no
9841
if test "$gt_cv_func_dgettext_libc" = "yes" \
9842
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
9843
gt_cv_have_gettext=yes
9846
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9847
INTLLIBS="-lintl $libintl_extra_libs"
9850
if test "$gt_cv_have_gettext" = "yes"; then
9851
AC_DEFINE(HAVE_GETTEXT,1,
9852
[Define if the GNU gettext() function is already present or preinstalled.])
9853
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9854
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9855
if test "$MSGFMT" != "no"; then
9856
glib_save_LIBS="$LIBS"
9857
LIBS="$LIBS $INTLLIBS"
9858
AC_CHECK_FUNCS(dcgettext)
9860
AC_MSG_CHECKING([if msgfmt accepts -c])
9861
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9864
"Content-Type: text/plain; charset=UTF-8\n"
9865
"Project-Id-Version: test 1.0\n"
9866
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9867
"Last-Translator: test <foo@bar.xx>\n"
9868
"Language-Team: C <LL@li.org>\n"
9869
"MIME-Version: 1.0\n"
9870
"Content-Transfer-Encoding: 8bit\n"
9871
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9872
AC_SUBST(MSGFMT_OPTS)
9873
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9874
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9875
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9876
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9877
return _nl_msg_cat_cntr],
9882
dnl On Solaris, if bind_textdomain_codeset is in libc,
9883
dnl GNU format message catalog is always supported,
9884
dnl since both are added to the libc all together.
9885
dnl Hence, we'd like to go with DATADIRNAME=share and
9886
dnl and CATOBJEXT=.gmo in this case.
9887
AC_CHECK_FUNC(bind_textdomain_codeset,
9902
LIBS="$glib_save_LIBS"
9905
gt_cv_have_gettext=no
9910
if test "$gt_cv_have_gettext" = "yes" ; then
9911
AC_DEFINE(ENABLE_NLS, 1,
9912
[always defined to indicate that i18n is enabled])
9915
dnl Test whether we really found GNU xgettext.
9916
if test "$XGETTEXT" != ":"; then
9917
dnl If it is not GNU xgettext we define it as : so that the
9918
dnl Makefiles still can work.
9919
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9923
[found xgettext program is not GNU xgettext; ignore it])
9928
# We need to process the po/ directory.
9932
[case "$CONFIG_FILES" in *po/Makefile.in*)
9933
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9936
dnl These rules are solely for the distribution goal. While doing this
9937
dnl we only have to keep exactly one list of the available catalogs
9938
dnl in configure.ac.
9939
for lang in $ALL_LINGUAS; do
9940
GMOFILES="$GMOFILES $lang.gmo"
9941
POFILES="$POFILES $lang.po"
9944
dnl Make all variables we use known to autoconf.
9947
AC_SUBST(DATADIRNAME)
9949
AC_SUBST(INSTOBJEXT)
9951
AC_SUBST(PO_IN_DATADIR_TRUE)
9952
AC_SUBST(PO_IN_DATADIR_FALSE)
9957
# AM_GLIB_GNU_GETTEXT
9958
# -------------------
9959
# Do checks necessary for use of gettext. If a suitable implementation
9960
# of gettext is found in either in libintl or in the C library,
9961
# it will set INTLLIBS to the libraries needed for use of gettext
9962
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
9963
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
9964
# on various variables needed by the Makefile.in.in installed by
9967
glib_DEFUN([GLIB_GNU_GETTEXT],
9968
[AC_REQUIRE([AC_PROG_CC])dnl
9969
AC_REQUIRE([AC_HEADER_STDC])dnl
9974
if test "$gt_cv_have_gettext" = "yes"; then
9975
if test "x$ALL_LINGUAS" = "x"; then
9978
AC_MSG_CHECKING(for catalogs to be installed)
9980
for presentlang in $ALL_LINGUAS; do
9982
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9983
desiredlanguages="$LINGUAS"
9985
desiredlanguages="$ALL_LINGUAS"
9987
for desiredlang in $desiredlanguages; do
9988
# Use the presentlang catalog if desiredlang is
9989
# a. equal to presentlang, or
9990
# b. a variant of presentlang (because in this case,
9991
# presentlang can be used as a fallback for messages
9992
# which are not translated in the desiredlang catalog).
9993
case "$desiredlang" in
9994
"$presentlang"*) useit=yes;;
9997
if test $useit = yes; then
9998
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10001
LINGUAS=$NEW_LINGUAS
10002
AC_MSG_RESULT($LINGUAS)
10005
dnl Construct list of names of catalog files to be constructed.
10006
if test -n "$LINGUAS"; then
10007
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10011
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10012
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10013
dnl Try to locate is.
10015
if test -n "$ac_aux_dir"; then
10016
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10018
if test -z "$MKINSTALLDIRS"; then
10019
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10021
AC_SUBST(MKINSTALLDIRS)
10023
dnl Generate list of files to be processed by xgettext which will
10024
dnl be included in po/Makefile.
10025
test -d po || mkdir po
10026
if test "x$srcdir" != "x."; then
10027
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10028
posrcprefix="$srcdir/"
10030
posrcprefix="../$srcdir/"
10036
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10037
< $srcdir/po/POTFILES.in > po/POTFILES
10040
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
10041
# -------------------------------
10042
# Define VARIABLE to the location where catalog files will
10043
# be installed by po/Makefile.
10044
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
10045
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
10046
glib_save_prefix="$prefix"
10047
glib_save_exec_prefix="$exec_prefix"
10048
glib_save_datarootdir="$datarootdir"
10049
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10050
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
10051
datarootdir=`eval echo "${datarootdir}"`
10052
if test "x$CATOBJEXT" = "x.mo" ; then
10053
localedir=`eval echo "${libdir}/locale"`
10055
localedir=`eval echo "${datadir}/locale"`
10057
prefix="$glib_save_prefix"
10058
exec_prefix="$glib_save_exec_prefix"
10059
datarootdir="$glib_save_datarootdir"
10060
AC_DEFINE_UNQUOTED($1, "$localedir",
10061
[Define the location where the catalogs will be installed])
10065
dnl Now the definitions that aclocal will find
10067
ifdef(glib_configure_ac,[],[
10068
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
10069
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
10072
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
10074
# Create a temporary file with TEST-FILE as its contents and pass the
10075
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
10076
# 0 and perform ACTION-IF-FAIL for any other exit status.
10077
AC_DEFUN([GLIB_RUN_PROG],
10078
[cat >conftest.foo <<_ACEOF
10081
if AC_RUN_LOG([$1 conftest.foo]); then
10082
m4_ifval([$3], [$3], [:])
10083
m4_ifvaln([$4], [else $4])dnl
10084
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
10085
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
10094
dnl GNOME_COMMON_INIT
10096
AU_DEFUN([GNOME_COMMON_INIT],
10098
dnl this macro should come after AC_CONFIG_MACRO_DIR
10099
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
10101
dnl ensure that when the Automake generated makefile calls aclocal,
10102
dnl it honours the $ACLOCAL_FLAGS environment variable
10103
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
10104
if test -n "$ac_macro_dir"; then
10105
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
10108
AC_SUBST([ACLOCAL_AMFLAGS])
10110
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
10111
in your top-level Makefile.am, instead, where "m4" is the macro directory set
10112
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
10114
AC_DEFUN([GNOME_DEBUG_CHECK],
10116
AC_ARG_ENABLE([debug],
10117
AC_HELP_STRING([--enable-debug],
10118
[turn on debugging]),,
10121
if test x$enable_debug = xyes ; then
10122
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
10123
[Enable additional debugging at the expense of performance and size])
10127
dnl GNOME_MAINTAINER_MODE_DEFINES ()
10128
dnl define DISABLE_DEPRECATED
10130
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
10132
AC_REQUIRE([AM_MAINTAINER_MODE])
10134
DISABLE_DEPRECATED=""
10135
if test $USE_MAINTAINER_MODE = yes; then
10136
DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
10137
for DOMAIN in $DOMAINS; do
10138
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
10142
AC_SUBST(DISABLE_DEPRECATED)
10145
dnl GNOME_COMPILE_WARNINGS
10146
dnl Turn on many useful compiler warnings
10147
dnl For now, only works on GCC
10148
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
10149
dnl ******************************
10150
dnl More compiler warnings
10151
dnl ******************************
10153
AC_ARG_ENABLE(compile-warnings,
10154
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
10155
[Turn on compiler warnings]),,
10156
[enable_compile_warnings="m4_default([$1],[yes])"])
10159
if test "x$GCC" != xyes; then
10160
enable_compile_warnings=no
10164
realsave_CFLAGS="$CFLAGS"
10166
case "$enable_compile_warnings" in
10171
warning_flags="-Wall"
10174
warning_flags="-Wall -Wmissing-prototypes"
10177
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
10178
CFLAGS="$warning_flags $CFLAGS"
10179
for option in -Wno-sign-compare; do
10180
SAVE_CFLAGS="$CFLAGS"
10181
CFLAGS="$CFLAGS $option"
10182
AC_MSG_CHECKING([whether gcc understands $option])
10183
AC_TRY_COMPILE([], [],
10186
CFLAGS="$SAVE_CFLAGS"
10187
AC_MSG_RESULT($has_option)
10188
if test $has_option = yes; then
10189
warning_flags="$warning_flags $option"
10195
if test "$enable_compile_warnings" = "error" ; then
10196
warning_flags="$warning_flags -Werror"
10200
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
9929
msvisualcpp | msvcmsys)
9930
# This compiler won't grok `-c -o', but also, the minuso test has
9931
# not run yet. These depmodes are late enough in the game, and
9932
# so weak that their functioning should not be impacted.
9933
am__obj=conftest.${OBJEXT-o}
10203
CFLAGS="$realsave_CFLAGS"
10204
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
10205
AC_MSG_RESULT($warning_flags)
10207
AC_ARG_ENABLE(iso-c,
10208
AC_HELP_STRING([--enable-iso-c],
10209
[Try to warn if code is not ISO C ]),,
10212
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
10214
if test "x$enable_iso_c" != "xno"; then
10215
if test "x$GCC" = "xyes"; then
10216
case " $CFLAGS " in
10217
*[\ \ ]-ansi[\ \ ]*) ;;
10218
*) complCFLAGS="$complCFLAGS -ansi" ;;
10220
case " $CFLAGS " in
10221
*[\ \ ]-pedantic[\ \ ]*) ;;
10222
*) complCFLAGS="$complCFLAGS -pedantic" ;;
10226
AC_MSG_RESULT($complCFLAGS)
10228
WARN_CFLAGS="$warning_flags $complCFLAGS"
10229
AC_SUBST(WARN_CFLAGS)
10232
dnl For C++, do basically the same thing.
10234
AC_DEFUN([GNOME_CXX_WARNINGS],[
10235
AC_ARG_ENABLE(cxx-warnings,
10236
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
10237
[Turn on compiler warnings.]),,
10238
[enable_cxx_warnings="m4_default([$1],[minimum])"])
10240
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
10242
if test "x$GXX" != xyes; then
10243
enable_cxx_warnings=no
10245
if test "x$enable_cxx_warnings" != "xno"; then
10246
if test "x$GXX" = "xyes"; then
10247
case " $CXXFLAGS " in
10248
*[\ \ ]-Wall[\ \ ]*) ;;
10249
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
10252
## -W is not all that useful. And it cannot be controlled
10253
## with individual -Wno-xxx flags, unlike -Wall
10254
if test "x$enable_cxx_warnings" = "xyes"; then
10255
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9938
if depmode=$depmode \
9939
source=sub/conftest.c object=$am__obj \
9940
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9941
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9942
>/dev/null 2>conftest.err &&
9943
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9944
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9945
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9946
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9947
# icc doesn't choke on unknown options, it will just issue warnings
9948
# or remarks (even with -Werror). So we grep stderr for any message
9949
# that says an option was ignored or not supported.
9950
# When given -MP, icc 7.0 and 7.1 complain thusly:
9951
# icc: Command line warning: ignoring option '-M'; no argument required
9952
# The diagnosis changed in icc 8.0:
9953
# icc: Command line remark: option '-MP' not supported
9954
if (grep 'ignoring option' conftest.err ||
9955
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9956
am_cv_$1_dependencies_compiler_type=$depmode
10259
AC_MSG_RESULT($warnCXXFLAGS)
10261
AC_ARG_ENABLE(iso-cxx,
10262
AC_HELP_STRING([--enable-iso-cxx],
10263
[Try to warn if code is not ISO C++ ]),,
10264
[enable_iso_cxx=no])
10266
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
10268
if test "x$enable_iso_cxx" != "xno"; then
10269
if test "x$GXX" = "xyes"; then
10270
case " $CXXFLAGS " in
10271
*[\ \ ]-ansi[\ \ ]*) ;;
10272
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
10275
case " $CXXFLAGS " in
10276
*[\ \ ]-pedantic[\ \ ]*) ;;
10277
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
10281
AC_MSG_RESULT($complCXXFLAGS)
10283
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
10284
AC_SUBST(WARN_CXXFLAGS)
10287
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
10288
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
10289
AC_DEFUN([GNOME_DOC_DEFINES],
10291
AC_ARG_WITH([help-dir],
10292
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
10293
[with_help_dir='${datadir}/gnome/help'])
10294
HELP_DIR="$with_help_dir"
10297
AC_ARG_WITH([omf-dir],
10298
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
10299
[with_omf_dir='${datadir}/omf'])
10300
OMF_DIR="$with_omf_dir"
10303
AC_ARG_WITH([help-formats],
10304
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
10305
[with_help_formats=''])
10306
DOC_USER_FORMATS="$with_help_formats"
10307
AC_SUBST(DOC_USER_FORMATS)
10309
AC_ARG_ENABLE([scrollkeeper],
10310
[AC_HELP_STRING([--disable-scrollkeeper],
10311
[do not make updates to the scrollkeeper database])],,
10312
enable_scrollkeeper=yes)
10313
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
10315
dnl disable scrollkeeper automatically for distcheck
10316
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
10317
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
10319
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
10322
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
10324
AC_DEFUN([GNOME_DOC_INIT],
10325
[AC_REQUIRE([AC_PROG_LN_S])dnl
10327
if test -z "$AM_DEFAULT_VERBOSITY"; then
10328
AM_DEFAULT_VERBOSITY=1
10330
AC_SUBST([AM_DEFAULT_VERBOSITY])
10332
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
10334
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
10335
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
10336
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
10338
if test "$gdu_cv_have_gdu" = "yes"; then
10339
AC_MSG_RESULT([yes])
10340
ifelse([$2],,[:],[$2])
10342
AC_MSG_RESULT([no])
10343
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
10350
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10351
dnl the schema should be compiled
10354
AC_DEFUN([GLIB_GSETTINGS],
10356
m4_pattern_allow([AM_V_GEN])
10357
AC_ARG_ENABLE(schemas-compile,
10358
AS_HELP_STRING([--disable-schemas-compile],
10359
[Disable regeneration of gschemas.compiled on install]),
10360
[case ${enableval} in
10361
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
10362
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
10363
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
10365
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
10366
PKG_PROG_PKG_CONFIG([0.16])
10367
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
10368
if test x$cross_compiling != xyes; then
10369
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
10371
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
10373
AC_SUBST(GLIB_COMPILE_SCHEMAS)
10374
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
10375
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
10377
ifelse([$1],,[:],[$1])
10381
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
10383
mostlyclean-am: clean-gsettings-schemas
10385
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
10387
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
10388
$(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 [$]@
10390
all-am: $(gsettings_SCHEMAS:.xml=.valid)
10391
uninstall-am: uninstall-gsettings-schemas
10392
install-data-am: install-gsettings-schemas
10394
.SECONDARY: $(gsettings_SCHEMAS)
10396
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
10398
if test -n "$^"; then \
10399
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
10400
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
10401
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
10404
uninstall-gsettings-schemas:
10405
@$(NORMAL_UNINSTALL)
10406
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
10407
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
10408
test -n "$$files" || exit 0; \
10409
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
10410
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
10411
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
10413
clean-gsettings-schemas:
10414
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
10416
ifdef gsettings_ENUM_NAMESPACE
10417
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
10418
$(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 [$]@
9965
am_cv_$1_dependencies_compiler_type=none
9968
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9969
AM_CONDITIONAL([am__fastdep$1], [
9970
test "x$enable_dependency_tracking" != xno \
9971
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9977
# Choose a directory name for dependency files.
9978
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9979
AC_DEFUN([AM_SET_DEPDIR],
9980
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9981
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9987
AC_DEFUN([AM_DEP_TRACK],
9988
[AC_ARG_ENABLE(dependency-tracking,
9989
[ --disable-dependency-tracking speeds up one-time build
9990
--enable-dependency-tracking do not reject slow dependency extractors])
9991
if test "x$enable_dependency_tracking" != xno; then
9992
am_depcomp="$ac_aux_dir/depcomp"
9995
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9996
AC_SUBST([AMDEPBACKSLASH])dnl
9997
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10000
# Generate code to set up dependency tracking. -*- Autoconf -*-
10002
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10003
# Free Software Foundation, Inc.
10005
# This file is free software; the Free Software Foundation
10006
# gives unlimited permission to copy and/or distribute it,
10007
# with or without modifications, as long as this notice is preserved.
10011
# _AM_OUTPUT_DEPENDENCY_COMMANDS
10012
# ------------------------------
10013
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10015
# Autoconf 2.62 quotes --file arguments for eval, but not when files
10016
# are listed without --file. Let's play safe and only enable the eval
10017
# if we detect the quoting.
10018
case $CONFIG_FILES in
10019
*\'*) eval set x "$CONFIG_FILES" ;;
10020
*) set x $CONFIG_FILES ;;
10025
# Strip MF so we end up with the name of the file.
10026
mf=`echo "$mf" | sed -e 's/:.*$//'`
10027
# Check whether this is an Automake generated Makefile or not.
10028
# We used to match only the files named `Makefile.in', but
10029
# some people rename them; so instead we look at the file content.
10030
# Grep'ing the first line is not enough: some people post-process
10031
# each Makefile.in and add a new line on top of each file to say so.
10032
# Grep'ing the whole file is not good either: AIX grep has a line
10033
# limit of 2048, but all sed's we know have understand at least 4000.
10034
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10035
dirpart=`AS_DIRNAME("$mf")`
10039
# Extract the definition of DEPDIR, am__include, and am__quote
10040
# from the Makefile without running `make'.
10041
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10042
test -z "$DEPDIR" && continue
10043
am__include=`sed -n 's/^am__include = //p' < "$mf"`
10044
test -z "am__include" && continue
10045
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10046
# When using ansi2knr, U may be empty or an underscore; expand it
10047
U=`sed -n 's/^U = //p' < "$mf"`
10048
# Find all dependency output files, they are included files with
10049
# $(DEPDIR) in their names. We invoke sed twice because it is the
10050
# simplest approach to changing $(DEPDIR) to its actual value in the
10052
for file in `sed -n "
10053
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10054
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10055
# Make sure the directory exists.
10056
test -f "$dirpart/$file" && continue
10057
fdir=`AS_DIRNAME(["$file"])`
10058
AS_MKDIR_P([$dirpart/$fdir])
10059
# echo "creating $dirpart/$file"
10060
echo '# dummy' > "$dirpart/$file"
10064
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10067
# AM_OUTPUT_DEPENDENCY_COMMANDS
10068
# -----------------------------
10069
# This macro should only be invoked once -- use via AC_REQUIRE.
10071
# This code is only required when automatic dependency tracking
10072
# is enabled. FIXME. This creates each `.P' file that we will
10073
# need in order to bootstrap the dependency handling code.
10074
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10075
[AC_CONFIG_COMMANDS([depfiles],
10076
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10077
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10080
# Do all the work for Automake. -*- Autoconf -*-
10082
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
10083
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
10085
# This file is free software; the Free Software Foundation
10086
# gives unlimited permission to copy and/or distribute it,
10087
# with or without modifications, as long as this notice is preserved.
10091
# This macro actually does too much. Some checks are only needed if
10092
# your package does certain things. But this isn't really a big deal.
10094
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10095
# AM_INIT_AUTOMAKE([OPTIONS])
10096
# -----------------------------------------------
10097
# The call with PACKAGE and VERSION arguments is the old style
10098
# call (pre autoconf-2.50), which is being phased out. PACKAGE
10099
# and VERSION should now be passed to AC_INIT and removed from
10100
# the call to AM_INIT_AUTOMAKE.
10101
# We support both call styles for the transition. After
10102
# the next Automake release, Autoconf can make the AC_INIT
10103
# arguments mandatory, and then we can depend on a new Autoconf
10104
# release and drop the old call support.
10105
AC_DEFUN([AM_INIT_AUTOMAKE],
10106
[AC_PREREQ([2.62])dnl
10107
dnl Autoconf wants to disallow AM_ names. We explicitly allow
10108
dnl the ones we care about.
10109
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10110
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10111
AC_REQUIRE([AC_PROG_INSTALL])dnl
10112
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10113
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10114
# is not polluted with repeated "-I."
10115
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10116
# test to see if srcdir already configured
10117
if test -f $srcdir/config.status; then
10118
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10122
# test whether we have cygpath
10123
if test -z "$CYGPATH_W"; then
10124
if (cygpath --version) >/dev/null 2>/dev/null; then
10125
CYGPATH_W='cygpath -w'
10130
AC_SUBST([CYGPATH_W])
10132
# Define the identity of the package.
10133
dnl Distinguish between old-style and new-style calls.
10135
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10136
AC_SUBST([PACKAGE], [$1])dnl
10137
AC_SUBST([VERSION], [$2])],
10138
[_AM_SET_OPTIONS([$1])dnl
10139
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10140
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
10141
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10142
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10143
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10145
_AM_IF_OPTION([no-define],,
10146
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
10147
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
10149
# Some tools Automake needs.
10150
AC_REQUIRE([AM_SANITY_CHECK])dnl
10151
AC_REQUIRE([AC_ARG_PROGRAM])dnl
10152
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
10153
AM_MISSING_PROG(AUTOCONF, autoconf)
10154
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
10155
AM_MISSING_PROG(AUTOHEADER, autoheader)
10156
AM_MISSING_PROG(MAKEINFO, makeinfo)
10157
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10158
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10159
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
10160
# We need awk for the "check" target. The system "awk" is bad on
10162
AC_REQUIRE([AC_PROG_AWK])dnl
10163
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10164
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10165
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10166
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10167
[_AM_PROG_TAR([v7])])])
10168
_AM_IF_OPTION([no-dependencies],,
10169
[AC_PROVIDE_IFELSE([AC_PROG_CC],
10170
[_AM_DEPENDENCIES(CC)],
10171
[define([AC_PROG_CC],
10172
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
10173
AC_PROVIDE_IFELSE([AC_PROG_CXX],
10174
[_AM_DEPENDENCIES(CXX)],
10175
[define([AC_PROG_CXX],
10176
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
10177
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10178
[_AM_DEPENDENCIES(OBJC)],
10179
[define([AC_PROG_OBJC],
10180
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
10182
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
10183
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
10184
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
10185
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
10186
AC_CONFIG_COMMANDS_PRE(dnl
10187
[m4_provide_if([_AM_COMPILER_EXEEXT],
10188
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10191
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10192
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10193
dnl mangled by Autoconf and run in a shell conditional statement.
10194
m4_define([_AC_COMPILER_EXEEXT],
10195
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10198
# When config.status generates a header, we must update the stamp-h file.
10199
# This file resides in the same directory as the config header
10200
# that is generated. The stamp files are numbered to have different names.
10202
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10203
# loop where config.status creates the headers, so we can generate
10204
# our stamp files there.
10205
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10206
[# Compute $1's index in $config_headers.
10209
for _am_header in $config_headers :; do
10210
case $_am_header in
10211
$_am_arg | $_am_arg:* )
10214
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
10217
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10219
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
10221
# This file is free software; the Free Software Foundation
10222
# gives unlimited permission to copy and/or distribute it,
10223
# with or without modifications, as long as this notice is preserved.
10225
# AM_PROG_INSTALL_SH
10226
# ------------------
10227
# Define $install_sh.
10228
AC_DEFUN([AM_PROG_INSTALL_SH],
10229
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10230
if test x"${install_sh}" != xset; then
10231
case $am_aux_dir in
10233
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10235
install_sh="\${SHELL} $am_aux_dir/install-sh"
10238
AC_SUBST(install_sh)])
10240
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
10242
# This file is free software; the Free Software Foundation
10243
# gives unlimited permission to copy and/or distribute it,
10244
# with or without modifications, as long as this notice is preserved.
10248
# Check whether the underlying file-system supports filenames
10249
# with a leading dot. For instance MS-DOS doesn't.
10250
AC_DEFUN([AM_SET_LEADING_DOT],
10251
[rm -rf .tst 2>/dev/null
10252
mkdir .tst 2>/dev/null
10253
if test -d .tst; then
10258
rmdir .tst 2>/dev/null
10259
AC_SUBST([am__leading_dot])])
10261
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
10262
# From Jim Meyering
10264
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
10265
# Free Software Foundation, Inc.
10267
# This file is free software; the Free Software Foundation
10268
# gives unlimited permission to copy and/or distribute it,
10269
# with or without modifications, as long as this notice is preserved.
10273
# AM_MAINTAINER_MODE([DEFAULT-MODE])
10274
# ----------------------------------
10275
# Control maintainer-specific portions of Makefiles.
10276
# Default is to disable them, unless `enable' is passed literally.
10277
# For symmetry, `disable' may be passed as well. Anyway, the user
10278
# can override the default with the --enable/--disable switch.
10279
AC_DEFUN([AM_MAINTAINER_MODE],
10280
[m4_case(m4_default([$1], [disable]),
10281
[enable], [m4_define([am_maintainer_other], [disable])],
10282
[disable], [m4_define([am_maintainer_other], [enable])],
10283
[m4_define([am_maintainer_other], [enable])
10284
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10285
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
10286
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10287
AC_ARG_ENABLE([maintainer-mode],
10288
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
10289
(and sometimes confusing) to the casual installer],
10290
[USE_MAINTAINER_MODE=$enableval],
10291
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10292
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10293
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10294
MAINT=$MAINTAINER_MODE_TRUE
10295
AC_SUBST([MAINT])dnl
10299
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
10301
# Check to see how 'make' treats includes. -*- Autoconf -*-
10303
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
10305
# This file is free software; the Free Software Foundation
10306
# gives unlimited permission to copy and/or distribute it,
10307
# with or without modifications, as long as this notice is preserved.
10311
# AM_MAKE_INCLUDE()
10312
# -----------------
10313
# Check to see how make treats includes.
10314
AC_DEFUN([AM_MAKE_INCLUDE],
10315
[am_make=${MAKE-make}
10316
cat > confinc << 'END'
10318
@echo this is the am__doit target
10321
# If we don't find an include directive, just comment out the code.
10322
AC_MSG_CHECKING([for style of include used by $am_make])
10326
# First try GNU make style include.
10327
echo "include confinc" > confmf
10328
# Ignore all kinds of additional output from `make'.
10329
case `$am_make -s -f confmf 2> /dev/null` in #(
10330
*the\ am__doit\ target*)
10331
am__include=include
10336
# Now try BSD make style include.
10337
if test "$am__include" = "#"; then
10338
echo '.include "confinc"' > confmf
10339
case `$am_make -s -f confmf 2> /dev/null` in #(
10340
*the\ am__doit\ target*)
10341
am__include=.include
10347
AC_SUBST([am__include])
10348
AC_SUBST([am__quote])
10349
AC_MSG_RESULT([$_am_result])
10350
rm -f confinc confmf
10353
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10355
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
10356
# Free Software Foundation, Inc.
10358
# This file is free software; the Free Software Foundation
10359
# gives unlimited permission to copy and/or distribute it,
10360
# with or without modifications, as long as this notice is preserved.
10364
# AM_MISSING_PROG(NAME, PROGRAM)
10365
# ------------------------------
10366
AC_DEFUN([AM_MISSING_PROG],
10367
[AC_REQUIRE([AM_MISSING_HAS_RUN])
10368
$1=${$1-"${am_missing_run}$2"}
10372
# AM_MISSING_HAS_RUN
10373
# ------------------
10374
# Define MISSING if not defined so far and test if it supports --run.
10375
# If it does, set am_missing_run to use it, otherwise, to nothing.
10376
AC_DEFUN([AM_MISSING_HAS_RUN],
10377
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10378
AC_REQUIRE_AUX_FILE([missing])dnl
10379
if test x"${MISSING+set}" != xset; then
10380
case $am_aux_dir in
10382
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10384
MISSING="\${SHELL} $am_aux_dir/missing" ;;
10387
# Use eval to expand $SHELL
10388
if eval "$MISSING --run true"; then
10389
am_missing_run="$MISSING --run "
10392
AC_MSG_WARN([`missing' script is too old or missing])
10396
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10398
# This file is free software; the Free Software Foundation
10399
# gives unlimited permission to copy and/or distribute it,
10400
# with or without modifications, as long as this notice is preserved.
10404
# Check for `mkdir -p'.
10405
AC_DEFUN([AM_PROG_MKDIR_P],
10406
[AC_PREREQ([2.60])dnl
10407
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10408
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10409
dnl while keeping a definition of mkdir_p for backward compatibility.
10410
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10411
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10412
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10413
dnl adjustment using top_builddir (which is defined more often than
10415
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10417
[[\\/$]]* | ?:[[\\/]]*) ;;
10418
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10422
# Helper functions for option handling. -*- Autoconf -*-
10424
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10426
# This file is free software; the Free Software Foundation
10427
# gives unlimited permission to copy and/or distribute it,
10428
# with or without modifications, as long as this notice is preserved.
10432
# _AM_MANGLE_OPTION(NAME)
10433
# -----------------------
10434
AC_DEFUN([_AM_MANGLE_OPTION],
10435
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10437
# _AM_SET_OPTION(NAME)
10438
# ------------------------------
10439
# Set option NAME. Presently that only means defining a flag for this option.
10440
AC_DEFUN([_AM_SET_OPTION],
10441
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10443
# _AM_SET_OPTIONS(OPTIONS)
10444
# ----------------------------------
10445
# OPTIONS is a space-separated list of Automake options.
10446
AC_DEFUN([_AM_SET_OPTIONS],
10447
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10449
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10450
# -------------------------------------------
10451
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10452
AC_DEFUN([_AM_IF_OPTION],
10453
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10455
# Check to make sure that the build environment is sane. -*- Autoconf -*-
10457
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10458
# Free Software Foundation, Inc.
10460
# This file is free software; the Free Software Foundation
10461
# gives unlimited permission to copy and/or distribute it,
10462
# with or without modifications, as long as this notice is preserved.
10468
AC_DEFUN([AM_SANITY_CHECK],
10469
[AC_MSG_CHECKING([whether build environment is sane])
10472
echo timestamp > conftest.file
10473
# Reject unsafe characters in $srcdir or the absolute working directory
10474
# name. Accept space and tab only in the latter.
10421
_GSETTINGS_SUBST(GSETTINGS_RULES)
10424
dnl _GSETTINGS_SUBST(VARIABLE)
10425
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10426
AC_DEFUN([_GSETTINGS_SUBST],
10429
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10433
dnl -*- mode: autoconf -*-
10478
*[[\\\"\#\$\&\'\`$am_lf]]*)
10479
AC_MSG_ERROR([unsafe absolute working directory name]);;
10482
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10483
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10486
# Do `set' in a subshell so we don't clobber the current shell's
10487
# arguments. Must try -L first in case configure is actually a
10488
# symlink; some systems play weird games with the mod time of symlinks
10489
# (eg FreeBSD returns the mod time of the symlink's containing
10492
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10493
if test "$[*]" = "X"; then
10495
set X `ls -t "$srcdir/configure" conftest.file`
10497
rm -f conftest.file
10498
if test "$[*]" != "X $srcdir/configure conftest.file" \
10499
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10501
# If neither matched, then we have a broken ls. This can happen
10502
# if, for instance, CONFIG_SHELL is bash and it inherits a
10503
# broken ls alias from the environment. This has actually
10504
# happened. Such a system could not be considered "sane".
10505
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10506
alias in your environment])
10509
test "$[2]" = conftest.file
10515
AC_MSG_ERROR([newly created file is older than distributed files!
10516
Check your system clock])
10518
AC_MSG_RESULT(yes)])
10520
# Copyright (C) 2009 Free Software Foundation, Inc.
10522
# This file is free software; the Free Software Foundation
10523
# gives unlimited permission to copy and/or distribute it,
10524
# with or without modifications, as long as this notice is preserved.
10438
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
10439
AC_DEFUN([GTK_DOC_CHECK],
10441
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10442
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10443
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
10445
dnl check for tools we added during development
10446
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
10447
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
10448
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
10450
dnl for overriding the documentation installation directory
10451
AC_ARG_WITH([html-dir],
10452
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
10453
[with_html_dir='${datadir}/gtk-doc/html'])
10454
HTML_DIR="$with_html_dir"
10455
AC_SUBST([HTML_DIR])
10457
dnl enable/disable documentation building
10458
AC_ARG_ENABLE([gtk-doc],
10459
AS_HELP_STRING([--enable-gtk-doc],
10460
[use gtk-doc to build documentation [[default=no]]]),,
10461
[enable_gtk_doc=no])
10463
if test x$enable_gtk_doc = xyes; then
10465
[PKG_CHECK_EXISTS([gtk-doc],,
10466
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
10467
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
10468
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
10469
dnl don't check for glib if we build glib
10470
if test "x$PACKAGE_NAME" != "xglib"; then
10471
dnl don't fail if someone does not have glib
10472
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
10476
AC_MSG_CHECKING([whether to build gtk-doc documentation])
10477
AC_MSG_RESULT($enable_gtk_doc)
10479
dnl enable/disable output formats
10480
AC_ARG_ENABLE([gtk-doc-html],
10481
AS_HELP_STRING([--enable-gtk-doc-html],
10482
[build documentation in html format [[default=yes]]]),,
10483
[enable_gtk_doc_html=yes])
10484
AC_ARG_ENABLE([gtk-doc-pdf],
10485
AS_HELP_STRING([--enable-gtk-doc-pdf],
10486
[build documentation in pdf format [[default=no]]]),,
10487
[enable_gtk_doc_pdf=no])
10489
if test -z "$GTKDOC_MKPDF"; then
10490
enable_gtk_doc_pdf=no
10494
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
10495
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
10496
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
10497
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
10498
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
10502
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10503
# serial 40 IT_PROG_INTLTOOL
10504
AC_DEFUN([IT_PROG_INTLTOOL], [
10505
AC_PREREQ([2.50])dnl
10506
AC_REQUIRE([AM_NLS])dnl
10508
case "$am__api_version" in
10510
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10528
# AM_SILENT_RULES([DEFAULT])
10529
# --------------------------
10530
# Enable less verbose build rules; with the default set to DEFAULT
10531
# (`yes' being less verbose, `no' or empty being verbose).
10532
AC_DEFUN([AM_SILENT_RULES],
10533
[AC_ARG_ENABLE([silent-rules],
10534
[ --enable-silent-rules less verbose build output (undo: `make V=1')
10535
--disable-silent-rules verbose build output (undo: `make V=0')])
10536
case $enable_silent_rules in
10537
yes) AM_DEFAULT_VERBOSITY=0;;
10538
no) AM_DEFAULT_VERBOSITY=1;;
10539
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10516
if test -n "$1"; then
10517
AC_MSG_CHECKING([for intltool >= $1])
10519
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10520
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10521
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10523
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10524
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10525
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
10528
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10529
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10530
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10531
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10532
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10535
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10536
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10537
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10538
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10539
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10540
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10541
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10542
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10543
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10544
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10545
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10546
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u --no-translations $< [$]@'
10547
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10548
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10549
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10550
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10551
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10552
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10553
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
10555
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10556
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10557
_IT_SUBST(INTLTOOL_KEYS_RULE)
10558
_IT_SUBST(INTLTOOL_PROP_RULE)
10559
_IT_SUBST(INTLTOOL_OAF_RULE)
10560
_IT_SUBST(INTLTOOL_PONG_RULE)
10561
_IT_SUBST(INTLTOOL_SERVER_RULE)
10562
_IT_SUBST(INTLTOOL_SHEET_RULE)
10563
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10564
_IT_SUBST(INTLTOOL_UI_RULE)
10565
_IT_SUBST(INTLTOOL_XAM_RULE)
10566
_IT_SUBST(INTLTOOL_KBD_RULE)
10567
_IT_SUBST(INTLTOOL_XML_RULE)
10568
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10569
_IT_SUBST(INTLTOOL_CAVES_RULE)
10570
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10571
_IT_SUBST(INTLTOOL_THEME_RULE)
10572
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10573
_IT_SUBST(INTLTOOL_POLICY_RULE)
10575
# Check the gettext tools to make sure they are GNU
10576
AC_PATH_PROG(XGETTEXT, xgettext)
10577
AC_PATH_PROG(MSGMERGE, msgmerge)
10578
AC_PATH_PROG(MSGFMT, msgfmt)
10579
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10580
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10581
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10583
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10584
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10585
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10586
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10587
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10590
AC_PATH_PROG(INTLTOOL_PERL, perl)
10591
if test -z "$INTLTOOL_PERL"; then
10592
AC_MSG_ERROR([perl not found])
10594
AC_MSG_CHECKING([for perl >= 5.8.1])
10595
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10596
if test $? -ne 0; then
10597
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10599
IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
10600
AC_MSG_RESULT([$IT_PERL_VERSION])
10602
if test "x$2" != "xno-xml"; then
10603
AC_MSG_CHECKING([for XML::Parser])
10604
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10605
AC_MSG_RESULT([ok])
10607
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10611
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10612
AC_SUBST(ALL_LINGUAS)
10614
# Set DATADIRNAME correctly if it is not set yet
10615
# (copied from glib-gettext.m4)
10616
if test -z "$DATADIRNAME"; then
10618
[AC_LANG_PROGRAM([[]],
10619
[[extern int _nl_msg_cat_cntr;
10620
return _nl_msg_cat_cntr]])],
10621
[DATADIRNAME=share],
10624
dnl On Solaris, if bind_textdomain_codeset is in libc,
10625
dnl GNU format message catalog is always supported,
10626
dnl since both are added to the libc all together.
10627
dnl Hence, we'd like to go with DATADIRNAME=share
10629
AC_CHECK_FUNC(bind_textdomain_codeset,
10630
[DATADIRNAME=share], [DATADIRNAME=lib])
10637
AC_SUBST(DATADIRNAME)
10541
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10543
AC_SUBST([AM_BACKSLASH])dnl
10544
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10547
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10549
# This file is free software; the Free Software Foundation
10550
# gives unlimited permission to copy and/or distribute it,
10551
# with or without modifications, as long as this notice is preserved.
10644
# IT_PO_SUBDIR(DIRNAME)
10553
# AM_PROG_INSTALL_STRIP
10645
10554
# ---------------------
10646
# All po subdirs have to be declared with this macro; the subdir "po" is
10647
# declared by IT_PROG_INTLTOOL.
10649
AC_DEFUN([IT_PO_SUBDIR],
10650
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10652
dnl The following CONFIG_COMMANDS should be executed at the very end
10653
dnl of config.status.
10654
AC_CONFIG_COMMANDS_PRE([
10655
AC_CONFIG_COMMANDS([$1/stamp-it], [
10656
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10657
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10659
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10664
'"s|^| $ac_top_srcdir/|" \
10665
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10667
[sed '/^POTFILES =/,/[^\\]$/ {
10671
' "$1/Makefile.in" >"$1/Makefile"]
10672
rm -f "$1/Makefile.tmp"
10673
mv "$1/stamp-it.tmp" "$1/stamp-it"
10678
# _IT_SUBST(VARIABLE)
10679
# -------------------
10680
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10682
AC_DEFUN([_IT_SUBST],
10685
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10689
# deprecated macros
10690
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10691
# A hint is needed for aclocal from Automake <= 1.9.4:
10692
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
10555
# One issue with vendor `install' (even GNU) is that you can't
10556
# specify the program used to strip binaries. This is especially
10557
# annoying in cross-compiling environments, where the build's strip
10558
# is unlikely to handle the host's binaries.
10559
# Fortunately install-sh will honor a STRIPPROG variable, so we
10560
# always use install-sh in `make install-strip', and initialize
10561
# STRIPPROG with the value of the STRIP variable (set by the user).
10562
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10563
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10564
# Installed binaries are usually stripped using `strip' when the user
10565
# run `make install-strip'. However `strip' might not be the right
10566
# tool to use in cross-compilation environments, therefore Automake
10567
# will honor the `STRIP' environment variable to overrule this program.
10568
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10569
if test "$cross_compiling" != no; then
10570
AC_CHECK_TOOL([STRIP], [strip], :)
10572
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10573
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10575
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
10577
# This file is free software; the Free Software Foundation
10578
# gives unlimited permission to copy and/or distribute it,
10579
# with or without modifications, as long as this notice is preserved.
10583
# _AM_SUBST_NOTMAKE(VARIABLE)
10584
# ---------------------------
10585
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10586
# This macro is traced by Automake.
10587
AC_DEFUN([_AM_SUBST_NOTMAKE])
10589
# AM_SUBST_NOTMAKE(VARIABLE)
10590
# ---------------------------
10591
# Public sister of _AM_SUBST_NOTMAKE.
10592
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10594
# Check how to create a tarball. -*- Autoconf -*-
10596
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10598
# This file is free software; the Free Software Foundation
10599
# gives unlimited permission to copy and/or distribute it,
10600
# with or without modifications, as long as this notice is preserved.
10604
# _AM_PROG_TAR(FORMAT)
10605
# --------------------
10606
# Check how to create a tarball in format FORMAT.
10607
# FORMAT should be one of `v7', `ustar', or `pax'.
10609
# Substitute a variable $(am__tar) that is a command
10610
# writing to stdout a FORMAT-tarball containing the directory
10612
# tardir=directory && $(am__tar) > result.tar
10614
# Substitute a variable $(am__untar) that extract such
10615
# a tarball read from stdin.
10616
# $(am__untar) < result.tar
10617
AC_DEFUN([_AM_PROG_TAR],
10618
[# Always define AMTAR for backward compatibility.
10619
AM_MISSING_PROG([AMTAR], [tar])
10621
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10622
[m4_case([$1], [ustar],, [pax],,
10623
[m4_fatal([Unknown tar format])])
10624
AC_MSG_CHECKING([how to create a $1 tar archive])
10625
# Loop over all known methods to create a tar archive until one works.
10626
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10627
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10628
# Do not fold the above two line into one, because Tru64 sh and
10629
# Solaris sh will not grok spaces in the rhs of `-'.
10630
for _am_tool in $_am_tools
10634
for _am_tar in tar gnutar gtar;
10636
AM_RUN_LOG([$_am_tar --version]) && break
10638
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10639
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10640
am__untar="$_am_tar -xf -"
10643
# Must skip GNU tar: if it does not support --format= it doesn't create
10644
# ustar tarball either.
10645
(tar --version) >/dev/null 2>&1 && continue
10646
am__tar='tar chf - "$$tardir"'
10647
am__tar_='tar chf - "$tardir"'
10648
am__untar='tar xf -'
10651
am__tar='pax -L -x $1 -w "$$tardir"'
10652
am__tar_='pax -L -x $1 -w "$tardir"'
10656
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10657
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10658
am__untar='cpio -i -H $1 -d'
10667
# If the value was cached, stop now. We just wanted to have am__tar
10668
# and am__untar set.
10669
test -n "${am_cv_prog_tar_$1}" && break
10671
# tar/untar a dummy directory, and stop if the command works
10672
rm -rf conftest.dir
10674
echo GrepMe > conftest.dir/file
10675
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10676
rm -rf conftest.dir
10677
if test -s conftest.tar; then
10678
AM_RUN_LOG([$am__untar <conftest.tar])
10679
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10682
rm -rf conftest.dir
10684
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10685
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10686
AC_SUBST([am__tar])
10687
AC_SUBST([am__untar])