14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
17
[m4_warning([this file was generated for autoconf 2.66.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
[m4_warning([this file was generated for autoconf 2.65.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
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"
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
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
49
# -------------------------------
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
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`
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
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
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,
268
LIBS="$glib_save_LIBS"
271
gt_cv_have_gettext=no
276
if test "$gt_cv_have_gettext" = "yes" ; then
277
AC_DEFINE(ENABLE_NLS, 1,
278
[always defined to indicate that i18n is enabled])
281
dnl Test whether we really found GNU xgettext.
282
if test "$XGETTEXT" != ":"; then
283
dnl If it is not GNU xgettext we define it as : so that the
284
dnl Makefiles still can work.
285
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
289
[found xgettext program is not GNU xgettext; ignore it])
294
# We need to process the po/ directory.
298
[case "$CONFIG_FILES" in *po/Makefile.in*)
299
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
302
dnl These rules are solely for the distribution goal. While doing this
303
dnl we only have to keep exactly one list of the available catalogs
305
for lang in $ALL_LINGUAS; do
306
GMOFILES="$GMOFILES $lang.gmo"
307
POFILES="$POFILES $lang.po"
310
dnl Make all variables we use known to autoconf.
313
AC_SUBST(DATADIRNAME)
317
AC_SUBST(PO_IN_DATADIR_TRUE)
318
AC_SUBST(PO_IN_DATADIR_FALSE)
323
# AM_GLIB_GNU_GETTEXT
324
# -------------------
325
# Do checks necessary for use of gettext. If a suitable implementation
326
# of gettext is found in either in libintl or in the C library,
327
# it will set INTLLIBS to the libraries needed for use of gettext
328
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330
# on various variables needed by the Makefile.in.in installed by
333
glib_DEFUN([GLIB_GNU_GETTEXT],
334
[AC_REQUIRE([AC_PROG_CC])dnl
335
AC_REQUIRE([AC_HEADER_STDC])dnl
340
if test "$gt_cv_have_gettext" = "yes"; then
341
if test "x$ALL_LINGUAS" = "x"; then
344
AC_MSG_CHECKING(for catalogs to be installed)
346
for presentlang in $ALL_LINGUAS; do
348
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349
desiredlanguages="$LINGUAS"
351
desiredlanguages="$ALL_LINGUAS"
353
for desiredlang in $desiredlanguages; do
354
# Use the presentlang catalog if desiredlang is
355
# a. equal to presentlang, or
356
# b. a variant of presentlang (because in this case,
357
# presentlang can be used as a fallback for messages
358
# which are not translated in the desiredlang catalog).
359
case "$desiredlang" in
360
"$presentlang"*) useit=yes;;
363
if test $useit = yes; then
364
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
368
AC_MSG_RESULT($LINGUAS)
371
dnl Construct list of names of catalog files to be constructed.
372
if test -n "$LINGUAS"; then
373
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
377
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379
dnl Try to locate is.
381
if test -n "$ac_aux_dir"; then
382
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
384
if test -z "$MKINSTALLDIRS"; then
385
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
387
AC_SUBST(MKINSTALLDIRS)
389
dnl Generate list of files to be processed by xgettext which will
390
dnl be included in po/Makefile.
391
test -d po || mkdir po
392
if test "x$srcdir" != "x."; then
393
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394
posrcprefix="$srcdir/"
396
posrcprefix="../$srcdir/"
402
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403
< $srcdir/po/POTFILES.in > po/POTFILES
406
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407
# -------------------------------
408
# Define VARIABLE to the location where catalog files will
409
# be installed by po/Makefile.
410
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412
glib_save_prefix="$prefix"
413
glib_save_exec_prefix="$exec_prefix"
414
glib_save_datarootdir="$datarootdir"
415
test "x$prefix" = xNONE && prefix=$ac_default_prefix
416
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417
datarootdir=`eval echo "${datarootdir}"`
418
if test "x$CATOBJEXT" = "x.mo" ; then
419
localedir=`eval echo "${libdir}/locale"`
421
localedir=`eval echo "${datadir}/locale"`
423
prefix="$glib_save_prefix"
424
exec_prefix="$glib_save_exec_prefix"
425
datarootdir="$glib_save_datarootdir"
426
AC_DEFINE_UNQUOTED($1, "$localedir",
427
[Define the location where the catalogs will be installed])
431
dnl Now the definitions that aclocal will find
433
ifdef(glib_configure_ac,[],[
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
438
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
440
# Create a temporary file with TEST-FILE as its contents and pass the
441
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
442
# 0 and perform ACTION-IF-FAIL for any other exit status.
443
AC_DEFUN([GLIB_RUN_PROG],
444
[cat >conftest.foo <<_ACEOF
447
if AC_RUN_LOG([$1 conftest.foo]); then
448
m4_ifval([$3], [$3], [:])
449
m4_ifvaln([$4], [else $4])dnl
450
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
458
dnl GNOME_COMMON_INIT
460
AC_DEFUN([GNOME_COMMON_INIT],
462
dnl this macro should come after AC_CONFIG_MACRO_DIR
463
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
465
dnl ensure that when the Automake generated makefile calls aclocal,
466
dnl it honours the $ACLOCAL_FLAGS environment variable
467
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
468
if test -n "$ac_macro_dir"; then
469
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
472
AC_SUBST([ACLOCAL_AMFLAGS])
475
AC_DEFUN([GNOME_DEBUG_CHECK],
477
AC_ARG_ENABLE([debug],
478
AC_HELP_STRING([--enable-debug],
479
[turn on debugging]),,
482
if test x$enable_debug = xyes ; then
483
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
484
[Enable additional debugging at the expense of performance and size])
488
dnl GNOME_MAINTAINER_MODE_DEFINES ()
489
dnl define DISABLE_DEPRECATED
491
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
493
AC_REQUIRE([AM_MAINTAINER_MODE])
495
DISABLE_DEPRECATED=""
496
if test $USE_MAINTAINER_MODE = yes; then
497
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
498
for DOMAIN in $DOMAINS; do
499
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
503
AC_SUBST(DISABLE_DEPRECATED)
506
dnl GNOME_COMPILE_WARNINGS
507
dnl Turn on many useful compiler warnings
508
dnl For now, only works on GCC
509
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
510
dnl ******************************
511
dnl More compiler warnings
512
dnl ******************************
514
AC_ARG_ENABLE(compile-warnings,
515
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
516
[Turn on compiler warnings]),,
517
[enable_compile_warnings="m4_default([$1],[yes])"])
520
if test "x$GCC" != xyes; then
521
enable_compile_warnings=no
525
realsave_CFLAGS="$CFLAGS"
527
case "$enable_compile_warnings" in
532
warning_flags="-Wall"
535
warning_flags="-Wall -Wmissing-prototypes"
538
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
539
CFLAGS="$warning_flags $CFLAGS"
540
for option in -Wno-sign-compare; do
541
SAVE_CFLAGS="$CFLAGS"
542
CFLAGS="$CFLAGS $option"
543
AC_MSG_CHECKING([whether gcc understands $option])
544
AC_TRY_COMPILE([], [],
547
CFLAGS="$SAVE_CFLAGS"
548
AC_MSG_RESULT($has_option)
549
if test $has_option = yes; then
550
warning_flags="$warning_flags $option"
556
if test "$enable_compile_warnings" = "error" ; then
557
warning_flags="$warning_flags -Werror"
561
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
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}
564
CFLAGS="$realsave_CFLAGS"
565
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
566
AC_MSG_RESULT($warning_flags)
569
AC_HELP_STRING([--enable-iso-c],
570
[Try to warn if code is not ISO C ]),,
573
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
575
if test "x$enable_iso_c" != "xno"; then
576
if test "x$GCC" = "xyes"; then
578
*[\ \ ]-ansi[\ \ ]*) ;;
579
*) complCFLAGS="$complCFLAGS -ansi" ;;
582
*[\ \ ]-pedantic[\ \ ]*) ;;
583
*) complCFLAGS="$complCFLAGS -pedantic" ;;
587
AC_MSG_RESULT($complCFLAGS)
589
WARN_CFLAGS="$warning_flags $complCFLAGS"
590
AC_SUBST(WARN_CFLAGS)
593
dnl For C++, do basically the same thing.
595
AC_DEFUN([GNOME_CXX_WARNINGS],[
596
AC_ARG_ENABLE(cxx-warnings,
597
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
598
[Turn on compiler warnings.]),,
599
[enable_cxx_warnings="m4_default([$1],[minimum])"])
601
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
603
if test "x$GXX" != xyes; then
604
enable_cxx_warnings=no
606
if test "x$enable_cxx_warnings" != "xno"; then
607
if test "x$GXX" = "xyes"; then
608
case " $CXXFLAGS " in
609
*[\ \ ]-Wall[\ \ ]*) ;;
610
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
613
## -W is not all that useful. And it cannot be controlled
614
## with individual -Wno-xxx flags, unlike -Wall
615
if test "x$enable_cxx_warnings" = "xyes"; then
616
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
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
620
AC_MSG_RESULT($warnCXXFLAGS)
622
AC_ARG_ENABLE(iso-cxx,
623
AC_HELP_STRING([--enable-iso-cxx],
624
[Try to warn if code is not ISO C++ ]),,
627
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
629
if test "x$enable_iso_cxx" != "xno"; then
630
if test "x$GXX" = "xyes"; then
631
case " $CXXFLAGS " in
632
*[\ \ ]-ansi[\ \ ]*) ;;
633
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
636
case " $CXXFLAGS " in
637
*[\ \ ]-pedantic[\ \ ]*) ;;
638
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
642
AC_MSG_RESULT($complCXXFLAGS)
644
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
645
AC_SUBST(WARN_CXXFLAGS)
648
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
649
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
650
AC_DEFUN([GNOME_DOC_DEFINES],
652
AC_ARG_WITH([help-dir],
653
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
654
[with_help_dir='${datadir}/gnome/help'])
655
HELP_DIR="$with_help_dir"
658
AC_ARG_WITH([omf-dir],
659
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
660
[with_omf_dir='${datadir}/omf'])
661
OMF_DIR="$with_omf_dir"
664
AC_ARG_WITH([help-formats],
665
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
666
[with_help_formats=''])
667
DOC_USER_FORMATS="$with_help_formats"
668
AC_SUBST(DOC_USER_FORMATS)
670
AC_ARG_ENABLE([scrollkeeper],
671
[AC_HELP_STRING([--disable-scrollkeeper],
672
[do not make updates to the scrollkeeper database])],,
673
enable_scrollkeeper=yes)
674
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
676
dnl disable scrollkeeper automatically for distcheck
677
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
678
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
680
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
683
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
685
AC_DEFUN([GNOME_DOC_INIT],
686
[AC_REQUIRE([AC_PROG_LN_S])dnl
688
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
690
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
691
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
692
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
694
if test "$gdu_cv_have_gdu" = "yes"; then
696
ifelse([$2],,[:],[$2])
699
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
706
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
707
dnl the schema should be compiled
710
AC_DEFUN([GLIB_GSETTINGS],
712
m4_pattern_allow([AM_V_GEN])
713
AC_ARG_ENABLE(schemas-compile,
714
AC_HELP_STRING([--disable-schemas-compile],
715
[Disable regeneration of gschemas.compiled on install]),
716
[case ${enableval} in
717
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
718
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
719
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
721
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
722
PKG_PROG_PKG_CONFIG([0.16])
723
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
724
if test x$cross_compiling != xyes; then
725
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
727
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
729
AC_SUBST(GLIB_COMPILE_SCHEMAS)
730
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
731
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
733
ifelse([$1],,[:],[$1])
737
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
739
mostlyclean-am: clean-gsettings-schemas
741
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
743
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
744
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
746
all-am: $(gsettings_SCHEMAS:.xml=.valid)
747
uninstall-am: uninstall-gsettings-schemas
748
install-data-am: install-gsettings-schemas
750
.SECONDARY: $(gsettings_SCHEMAS)
752
gsettings__base_list = \
753
sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
754
sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
756
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
758
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
759
@list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
760
for p in $$list; do \
761
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
763
done | $(gsettings__base_list) | \
764
while read files; do \
765
echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
766
$(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
768
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
770
uninstall-gsettings-schemas:
772
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
773
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
774
test -n "$$files" || exit 0; \
775
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
776
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
777
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
779
clean-gsettings-schemas:
780
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
782
ifdef gsettings_ENUM_NAMESPACE
783
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
784
$(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>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
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.
787
_GSETTINGS_SUBST(GSETTINGS_RULES)
790
dnl _GSETTINGS_SUBST(VARIABLE)
791
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
792
AC_DEFUN([_GSETTINGS_SUBST],
795
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
799
dnl -*- mode: autoconf -*-
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.
804
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
805
AC_DEFUN([GTK_DOC_CHECK],
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]))])
836
AC_MSG_CHECKING([whether to build gtk-doc documentation])
837
AC_MSG_RESULT($enable_gtk_doc)
839
dnl enable/disable output formats
840
AC_ARG_ENABLE([gtk-doc-html],
841
AS_HELP_STRING([--enable-gtk-doc-html],
842
[build documentation in html format [[default=yes]]]),,
843
[enable_gtk_doc_html=yes])
844
AC_ARG_ENABLE([gtk-doc-pdf],
845
AS_HELP_STRING([--enable-gtk-doc-pdf],
846
[build documentation in pdf format [[default=no]]]),,
847
[enable_gtk_doc_pdf=no])
849
if test -z "$GTKDOC_MKPDF"; then
850
enable_gtk_doc_pdf=no
854
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
855
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
856
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
857
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
858
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
862
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
863
# serial 40 IT_PROG_INTLTOOL
864
AC_DEFUN([IT_PROG_INTLTOOL], [
866
AC_REQUIRE([AM_NLS])dnl
868
case "$am__api_version" in
870
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
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]);;
876
if test -n "$1"; then
877
AC_MSG_CHECKING([for intltool >= $1])
879
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
880
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
881
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
883
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
884
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
885
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
888
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
889
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
890
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
891
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
892
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
895
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 $< [$]@'
896
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 $< [$]@'
897
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 $< [$]@'
898
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 $< [$]@'
899
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
900
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 $< [$]@'
901
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 $< [$]@'
902
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 $< [$]@'
903
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 $< [$]@'
904
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 $< [$]@'
905
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 $< [$]@'
906
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
907
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 $< [$]@'
908
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 $< [$]@'
909
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 $< [$]@'
910
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 $< [$]@'
911
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 $< [$]@'
912
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 $< [$]@'
913
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 $< [$]@'
915
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
916
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
917
_IT_SUBST(INTLTOOL_KEYS_RULE)
918
_IT_SUBST(INTLTOOL_PROP_RULE)
919
_IT_SUBST(INTLTOOL_OAF_RULE)
920
_IT_SUBST(INTLTOOL_PONG_RULE)
921
_IT_SUBST(INTLTOOL_SERVER_RULE)
922
_IT_SUBST(INTLTOOL_SHEET_RULE)
923
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
924
_IT_SUBST(INTLTOOL_UI_RULE)
925
_IT_SUBST(INTLTOOL_XAM_RULE)
926
_IT_SUBST(INTLTOOL_KBD_RULE)
927
_IT_SUBST(INTLTOOL_XML_RULE)
928
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
929
_IT_SUBST(INTLTOOL_CAVES_RULE)
930
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
931
_IT_SUBST(INTLTOOL_THEME_RULE)
932
_IT_SUBST(INTLTOOL_SERVICE_RULE)
933
_IT_SUBST(INTLTOOL_POLICY_RULE)
935
# Check the gettext tools to make sure they are GNU
936
AC_PATH_PROG(XGETTEXT, xgettext)
937
AC_PATH_PROG(MSGMERGE, msgmerge)
938
AC_PATH_PROG(MSGFMT, msgfmt)
939
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
940
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
941
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
943
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
944
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
945
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
946
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
947
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
950
AC_PATH_PROG(INTLTOOL_PERL, perl)
951
if test -z "$INTLTOOL_PERL"; then
952
AC_MSG_ERROR([perl not found])
954
AC_MSG_CHECKING([for perl >= 5.8.1])
955
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
956
if test $? -ne 0; then
957
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
959
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
960
AC_MSG_RESULT([$IT_PERL_VERSION])
962
if test "x$2" != "xno-xml"; then
963
AC_MSG_CHECKING([for XML::Parser])
964
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
967
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
971
# Substitute ALL_LINGUAS so we can use it in po/Makefile
972
AC_SUBST(ALL_LINGUAS)
974
# Set DATADIRNAME correctly if it is not set yet
975
# (copied from glib-gettext.m4)
976
if test -z "$DATADIRNAME"; then
978
[AC_LANG_PROGRAM([[]],
979
[[extern int _nl_msg_cat_cntr;
980
return _nl_msg_cat_cntr]])],
984
dnl On Solaris, if bind_textdomain_codeset is in libc,
985
dnl GNU format message catalog is always supported,
986
dnl since both are added to the libc all together.
987
dnl Hence, we'd like to go with DATADIRNAME=share
989
AC_CHECK_FUNC(bind_textdomain_codeset,
990
[DATADIRNAME=share], [DATADIRNAME=lib])
997
AC_SUBST(DATADIRNAME)
870
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
872
AC_SUBST([AM_BACKSLASH])dnl
873
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
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.
1004
# IT_PO_SUBDIR(DIRNAME)
882
# AM_PROG_INSTALL_STRIP
1005
883
# ---------------------
1006
# All po subdirs have to be declared with this macro; the subdir "po" is
1007
# declared by IT_PROG_INTLTOOL.
1009
AC_DEFUN([IT_PO_SUBDIR],
1010
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1012
dnl The following CONFIG_COMMANDS should be executed at the very end
1013
dnl of config.status.
1014
AC_CONFIG_COMMANDS_PRE([
1015
AC_CONFIG_COMMANDS([$1/stamp-it], [
1016
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
1017
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
1019
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1024
'"s|^| $ac_top_srcdir/|" \
1025
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1027
[sed '/^POTFILES =/,/[^\\]$/ {
1031
' "$1/Makefile.in" >"$1/Makefile"]
1032
rm -f "$1/Makefile.tmp"
1033
mv "$1/stamp-it.tmp" "$1/stamp-it"
1038
# _IT_SUBST(VARIABLE)
1039
# -------------------
1040
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1042
AC_DEFUN([_IT_SUBST],
1045
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1050
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1051
# A hint is needed for aclocal from Automake <= 1.9.4:
1052
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
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])
1055
1019
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1057
1021
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1058
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1022
# 2006, 2007, 2008 Free Software Foundation, Inc.
1060
1023
# Written by Gordon Matzigkeit, 1996
1062
1025
# This file is free software; the Free Software Foundation gives
9259
9127
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9260
9128
installed software in a non-standard prefix.
9132
[AC_MSG_RESULT([no])
9264
9134
elif test $pkg_failed = untried; then
9266
m4_default([$4], [AC_MSG_FAILURE(
9135
ifelse([$4], , [AC_MSG_FAILURE(dnl
9267
9136
[The pkg-config script could not be found or is too old. Make sure it
9268
9137
is in your PATH or set the PKG_CONFIG environment variable to the full
9269
9138
path to pkg-config.
9273
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
9142
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9276
9145
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9277
9146
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9278
9147
AC_MSG_RESULT([yes])
9148
ifelse([$3], , :, [$3])
9281
9150
])# PKG_CHECK_MODULES
9283
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9285
# This file is free software; the Free Software Foundation
9286
# gives unlimited permission to copy and/or distribute it,
9287
# with or without modifications, as long as this notice is preserved.
9289
# AM_AUTOMAKE_VERSION(VERSION)
9290
# ----------------------------
9291
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9292
# generated from the m4 files accompanying Automake X.Y.
9293
# (This private macro should not be called outside this file.)
9294
AC_DEFUN([AM_AUTOMAKE_VERSION],
9295
[am__api_version='1.11'
9296
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9297
dnl require some minimum version. Point them to the right macro.
9298
m4_if([$1], [1.11.1], [],
9299
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9152
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
9153
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
9155
# This file is free software, distributed under the terms of the GNU
9156
# General Public License. As a special exception to the GNU General
9157
# Public License, this file may be distributed as part of a program
9158
# that contains a configuration script generated by Autoconf, under
9159
# the same distribution terms as the rest of that program.
9161
# This file can be copied and used freely without restrictions. It can
9162
# be used in projects which are not available under the GNU Public License
9163
# but which still want to provide support for the GNU gettext functionality.
9165
# Macro to add for using GNU gettext.
9166
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
9168
# Modified to never use included libintl.
9169
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
9171
# Major rework to remove unused code
9172
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
9174
# Added better handling of ALL_LINGUAS from GNU gettext version
9175
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
9177
# Modified to require ngettext
9178
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
9180
# We need this here as well, since someone might use autoconf-2.5x
9181
# to configure GLib then an older version to configure a package
9182
# using AM_GLIB_GNU_GETTEXT
9186
dnl We go to great lengths to make sure that aclocal won't
9187
dnl try to pull in the installed version of these macros
9188
dnl when running aclocal in the glib directory.
9190
m4_copy([AC_DEFUN],[glib_DEFUN])
9191
m4_copy([AC_REQUIRE],[glib_REQUIRE])
9193
dnl At the end, if we're not within glib, we'll define the public
9194
dnl definitions in terms of our private definitions.
9198
#--------------------
9199
glib_DEFUN([GLIB_LC_MESSAGES],
9200
[AC_CHECK_HEADERS([locale.h])
9201
if test $ac_cv_header_locale_h = yes; then
9202
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
9203
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
9204
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
9205
if test $am_cv_val_LC_MESSAGES = yes; then
9206
AC_DEFINE(HAVE_LC_MESSAGES, 1,
9207
[Define if your <locale.h> file defines LC_MESSAGES.])
9211
# GLIB_PATH_PROG_WITH_TEST
9212
#----------------------------
9213
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
9214
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
9215
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
9216
[# Extract the first word of "$2", so it can be a program name with args.
9217
set dummy $2; ac_word=[$]2
9218
AC_MSG_CHECKING([for $ac_word])
9219
AC_CACHE_VAL(ac_cv_path_$1,
9222
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
9225
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9226
for ac_dir in ifelse([$5], , $PATH, [$5]); do
9227
test -z "$ac_dir" && ac_dir=.
9228
if test -f $ac_dir/$ac_word; then
9230
ac_cv_path_$1="$ac_dir/$ac_word"
9236
dnl If no 4th arg is given, leave the cache variable unset,
9237
dnl so AC_PATH_PROGS will keep looking.
9238
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
9243
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
9244
AC_MSG_RESULT([$]$1)
9302
# _AM_AUTOCONF_VERSION(VERSION)
9303
# -----------------------------
9304
# aclocal traces this macro to find the Autoconf version.
9305
# This is a private macro too. Using m4_define simplifies
9306
# the logic in aclocal, which can simply ignore this definition.
9307
m4_define([_AM_AUTOCONF_VERSION], [])
9309
# AM_SET_CURRENT_AUTOMAKE_VERSION
9253
glib_DEFUN([GLIB_WITH_NLS],
9254
dnl NLS is obligatory
9258
gt_cv_have_gettext=no
9264
AC_CHECK_HEADER(libintl.h,
9265
[gt_cv_func_dgettext_libintl="no"
9266
libintl_extra_libs=""
9269
# First check in libc
9271
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
9273
#include <libintl.h>
9275
[return !ngettext ("","", 1)],
9276
gt_cv_func_ngettext_libc=yes,
9277
gt_cv_func_ngettext_libc=no)
9280
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9281
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
9283
#include <libintl.h>
9285
[return !dgettext ("","")],
9286
gt_cv_func_dgettext_libc=yes,
9287
gt_cv_func_dgettext_libc=no)
9291
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9292
AC_CHECK_FUNCS(bind_textdomain_codeset)
9296
# If we don't have everything we want, check in libintl
9298
if test "$gt_cv_func_dgettext_libc" != "yes" \
9299
|| test "$gt_cv_func_ngettext_libc" != "yes" \
9300
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9302
AC_CHECK_LIB(intl, bindtextdomain,
9303
[AC_CHECK_LIB(intl, ngettext,
9304
[AC_CHECK_LIB(intl, dgettext,
9305
gt_cv_func_dgettext_libintl=yes)])])
9307
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
9308
AC_MSG_CHECKING([if -liconv is needed to use gettext])
9310
AC_CHECK_LIB(intl, ngettext,
9311
[AC_CHECK_LIB(intl, dcgettext,
9312
[gt_cv_func_dgettext_libintl=yes
9313
libintl_extra_libs=-liconv],
9319
# If we found libintl, then check in it for bind_textdomain_codeset();
9320
# we'll prefer libc if neither have bind_textdomain_codeset(),
9321
# and both have dgettext and ngettext
9323
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
9324
glib_save_LIBS="$LIBS"
9325
LIBS="$LIBS -lintl $libintl_extra_libs"
9326
unset ac_cv_func_bind_textdomain_codeset
9327
AC_CHECK_FUNCS(bind_textdomain_codeset)
9328
LIBS="$glib_save_LIBS"
9330
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
9331
gt_cv_func_dgettext_libc=no
9333
if test "$gt_cv_func_dgettext_libc" = "yes" \
9334
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
9335
gt_cv_func_dgettext_libintl=no
9341
if test "$gt_cv_func_dgettext_libc" = "yes" \
9342
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
9343
gt_cv_have_gettext=yes
9346
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9347
INTLLIBS="-lintl $libintl_extra_libs"
9350
if test "$gt_cv_have_gettext" = "yes"; then
9351
AC_DEFINE(HAVE_GETTEXT,1,
9352
[Define if the GNU gettext() function is already present or preinstalled.])
9353
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
9354
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
9355
if test "$MSGFMT" != "no"; then
9356
glib_save_LIBS="$LIBS"
9357
LIBS="$LIBS $INTLLIBS"
9358
AC_CHECK_FUNCS(dcgettext)
9360
AC_MSG_CHECKING([if msgfmt accepts -c])
9361
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
9364
"Content-Type: text/plain; charset=UTF-8\n"
9365
"Project-Id-Version: test 1.0\n"
9366
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
9367
"Last-Translator: test <foo@bar.xx>\n"
9368
"Language-Team: C <LL@li.org>\n"
9369
"MIME-Version: 1.0\n"
9370
"Content-Transfer-Encoding: 8bit\n"
9371
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
9372
AC_SUBST(MSGFMT_OPTS)
9373
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
9374
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
9375
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
9376
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
9377
return _nl_msg_cat_cntr],
9382
dnl On Solaris, if bind_textdomain_codeset is in libc,
9383
dnl GNU format message catalog is always supported,
9384
dnl since both are added to the libc all together.
9385
dnl Hence, we'd like to go with DATADIRNAME=share and
9386
dnl and CATOBJEXT=.gmo in this case.
9387
AC_CHECK_FUNC(bind_textdomain_codeset,
9398
LIBS="$glib_save_LIBS"
9401
gt_cv_have_gettext=no
9406
if test "$gt_cv_have_gettext" = "yes" ; then
9407
AC_DEFINE(ENABLE_NLS, 1,
9408
[always defined to indicate that i18n is enabled])
9411
dnl Test whether we really found GNU xgettext.
9412
if test "$XGETTEXT" != ":"; then
9413
dnl If it is not GNU xgettext we define it as : so that the
9414
dnl Makefiles still can work.
9415
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9419
[found xgettext program is not GNU xgettext; ignore it])
9424
# We need to process the po/ directory.
9428
[case "$CONFIG_FILES" in *po/Makefile.in*)
9429
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
9432
dnl These rules are solely for the distribution goal. While doing this
9433
dnl we only have to keep exactly one list of the available catalogs
9434
dnl in configure.ac.
9435
for lang in $ALL_LINGUAS; do
9436
GMOFILES="$GMOFILES $lang.gmo"
9437
POFILES="$POFILES $lang.po"
9440
dnl Make all variables we use known to autoconf.
9443
AC_SUBST(DATADIRNAME)
9445
AC_SUBST(INSTOBJEXT)
9447
AC_SUBST(PO_IN_DATADIR_TRUE)
9448
AC_SUBST(PO_IN_DATADIR_FALSE)
9453
# AM_GLIB_GNU_GETTEXT
9454
# -------------------
9455
# Do checks necessary for use of gettext. If a suitable implementation
9456
# of gettext is found in either in libintl or in the C library,
9457
# it will set INTLLIBS to the libraries needed for use of gettext
9458
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
9459
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
9460
# on various variables needed by the Makefile.in.in installed by
9463
glib_DEFUN([GLIB_GNU_GETTEXT],
9464
[AC_REQUIRE([AC_PROG_CC])dnl
9465
AC_REQUIRE([AC_HEADER_STDC])dnl
9470
if test "$gt_cv_have_gettext" = "yes"; then
9471
if test "x$ALL_LINGUAS" = "x"; then
9474
AC_MSG_CHECKING(for catalogs to be installed)
9476
for presentlang in $ALL_LINGUAS; do
9478
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
9479
desiredlanguages="$LINGUAS"
9481
desiredlanguages="$ALL_LINGUAS"
9483
for desiredlang in $desiredlanguages; do
9484
# Use the presentlang catalog if desiredlang is
9485
# a. equal to presentlang, or
9486
# b. a variant of presentlang (because in this case,
9487
# presentlang can be used as a fallback for messages
9488
# which are not translated in the desiredlang catalog).
9489
case "$desiredlang" in
9490
"$presentlang"*) useit=yes;;
9493
if test $useit = yes; then
9494
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9497
LINGUAS=$NEW_LINGUAS
9498
AC_MSG_RESULT($LINGUAS)
9501
dnl Construct list of names of catalog files to be constructed.
9502
if test -n "$LINGUAS"; then
9503
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9507
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
9508
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
9509
dnl Try to locate is.
9511
if test -n "$ac_aux_dir"; then
9512
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9514
if test -z "$MKINSTALLDIRS"; then
9515
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9517
AC_SUBST(MKINSTALLDIRS)
9519
dnl Generate list of files to be processed by xgettext which will
9520
dnl be included in po/Makefile.
9521
test -d po || mkdir po
9522
if test "x$srcdir" != "x."; then
9523
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9524
posrcprefix="$srcdir/"
9526
posrcprefix="../$srcdir/"
9532
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9533
< $srcdir/po/POTFILES.in > po/POTFILES
9536
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
9310
9537
# -------------------------------
9311
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9312
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9313
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9314
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9315
m4_ifndef([AC_AUTOCONF_VERSION],
9316
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9317
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9319
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9321
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9323
# This file is free software; the Free Software Foundation
9324
# gives unlimited permission to copy and/or distribute it,
9325
# with or without modifications, as long as this notice is preserved.
9327
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9328
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9329
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9331
# Of course, Automake must honor this variable whenever it calls a
9332
# tool from the auxiliary directory. The problem is that $srcdir (and
9333
# therefore $ac_aux_dir as well) can be either absolute or relative,
9334
# depending on how configure is run. This is pretty annoying, since
9335
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9336
# source directory, any form will work fine, but in subdirectories a
9337
# relative path needs to be adjusted first.
9339
# $ac_aux_dir/missing
9340
# fails when called from a subdirectory if $ac_aux_dir is relative
9341
# $top_srcdir/$ac_aux_dir/missing
9342
# fails if $ac_aux_dir is absolute,
9343
# fails when called from a subdirectory in a VPATH build with
9344
# a relative $ac_aux_dir
9346
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9347
# are both prefixed by $srcdir. In an in-source build this is usually
9348
# harmless because $srcdir is `.', but things will broke when you
9349
# start a VPATH build or use an absolute $srcdir.
9351
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9352
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9353
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9354
# and then we would define $MISSING as
9355
# MISSING="\${SHELL} $am_aux_dir/missing"
9356
# This will work as long as MISSING is not called from configure, because
9357
# unfortunately $(top_srcdir) has no meaning in configure.
9358
# However there are other variables, like CC, which are often used in
9359
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9361
# Another solution, used here, is to always expand $ac_aux_dir to an
9362
# absolute PATH. The drawback is that using absolute paths prevent a
9363
# configured tree to be moved without reconfiguration.
9365
AC_DEFUN([AM_AUX_DIR_EXPAND],
9366
[dnl Rely on autoconf to set up CDPATH properly.
9367
AC_PREREQ([2.50])dnl
9368
# expand $ac_aux_dir to an absolute path
9369
am_aux_dir=`cd $ac_aux_dir && pwd`
9372
# AM_CONDITIONAL -*- Autoconf -*-
9374
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9375
# Free Software Foundation, Inc.
9377
# This file is free software; the Free Software Foundation
9378
# gives unlimited permission to copy and/or distribute it,
9379
# with or without modifications, as long as this notice is preserved.
9383
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9384
# -------------------------------------
9385
# Define a conditional.
9386
AC_DEFUN([AM_CONDITIONAL],
9388
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9389
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9390
AC_SUBST([$1_TRUE])dnl
9391
AC_SUBST([$1_FALSE])dnl
9392
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9393
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9394
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9538
# Define VARIABLE to the location where catalog files will
9539
# be installed by po/Makefile.
9540
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
9541
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
9542
glib_save_prefix="$prefix"
9543
glib_save_exec_prefix="$exec_prefix"
9544
glib_save_datarootdir="$datarootdir"
9545
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9546
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
9547
datarootdir=`eval echo "${datarootdir}"`
9548
if test "x$CATOBJEXT" = "x.mo" ; then
9549
localedir=`eval echo "${libdir}/locale"`
9551
localedir=`eval echo "${datadir}/locale"`
9402
AC_CONFIG_COMMANDS_PRE(
9403
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9404
AC_MSG_ERROR([[conditional "$1" was never defined.
9405
Usually this means the macro was only invoked conditionally.]])
9408
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9409
# Free Software Foundation, Inc.
9411
# This file is free software; the Free Software Foundation
9412
# gives unlimited permission to copy and/or distribute it,
9413
# with or without modifications, as long as this notice is preserved.
9417
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9418
# written in clear, in which case automake, when reading aclocal.m4,
9419
# will think it sees a *use*, and therefore will trigger all it's
9420
# C support machinery. Also note that it means that autoscan, seeing
9421
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9424
# _AM_DEPENDENCIES(NAME)
9425
# ----------------------
9426
# See how the compiler implements dependency checking.
9427
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9428
# We try a few techniques and use that to set a single cache variable.
9430
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9431
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9432
# dependency, and given that the user is not expected to run this macro,
9433
# just rely on AC_PROG_CC.
9434
AC_DEFUN([_AM_DEPENDENCIES],
9435
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9436
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9437
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9438
AC_REQUIRE([AM_DEP_TRACK])dnl
9440
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9441
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9442
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9443
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9444
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9445
[depcc="$$1" am_compiler_list=])
9447
AC_CACHE_CHECK([dependency style of $depcc],
9448
[am_cv_$1_dependencies_compiler_type],
9449
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9450
# We make a subdir and do the tests there. Otherwise we can end up
9451
# making bogus files that we don't know about and never remove. For
9452
# instance it was reported that on HP-UX the gcc test will end up
9453
# making a dummy file named `D' -- because `-MD' means `put the output
9456
# Copy depcomp to subdir because otherwise we won't find it if we're
9457
# using a relative directory.
9458
cp "$am_depcomp" conftest.dir
9460
# We will build objects and dependencies in a subdirectory because
9461
# it helps to detect inapplicable dependency modes. For instance
9462
# both Tru64's cc and ICC support -MD to output dependencies as a
9463
# side effect of compilation, but ICC will put the dependencies in
9464
# the current directory while Tru64 will put them in the object
9468
am_cv_$1_dependencies_compiler_type=none
9469
if test "$am_compiler_list" = ""; then
9470
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9553
prefix="$glib_save_prefix"
9554
exec_prefix="$glib_save_exec_prefix"
9555
datarootdir="$glib_save_datarootdir"
9556
AC_DEFINE_UNQUOTED($1, "$localedir",
9557
[Define the location where the catalogs will be installed])
9561
dnl Now the definitions that aclocal will find
9563
ifdef(glib_configure_ac,[],[
9564
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
9565
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
9568
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
9570
# Create a temporary file with TEST-FILE as its contents and pass the
9571
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
9572
# 0 and perform ACTION-IF-FAIL for any other exit status.
9573
AC_DEFUN([GLIB_RUN_PROG],
9574
[cat >conftest.foo <<_ACEOF
9577
if AC_RUN_LOG([$1 conftest.foo]); then
9578
m4_ifval([$3], [$3], [:])
9579
m4_ifvaln([$4], [else $4])dnl
9580
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
9581
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
9590
dnl GNOME_COMMON_INIT
9592
AU_DEFUN([GNOME_COMMON_INIT],
9594
dnl this macro should come after AC_CONFIG_MACRO_DIR
9595
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
9597
dnl ensure that when the Automake generated makefile calls aclocal,
9598
dnl it honours the $ACLOCAL_FLAGS environment variable
9599
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
9600
if test -n "$ac_macro_dir"; then
9601
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
9474
[case " $depcc " in #(
9475
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9478
[case " $depcc " in #(
9479
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9482
for depmode in $am_compiler_list; do
9483
# Setup a source with many dependencies, because some compilers
9484
# like to wrap large dependency lists on column 80 (with \), and
9485
# we should not choose a depcomp mode which is confused by this.
9487
# We need to recreate these files for each test, as the compiler may
9488
# overwrite some of them when testing with obscure command lines.
9489
# This happens at least with the AIX C compiler.
9491
for i in 1 2 3 4 5 6; do
9492
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9493
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9494
# Solaris 8's {/usr,}/bin/sh.
9495
touch sub/conftst$i.h
9497
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9499
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9500
# mode. It turns out that the SunPro C++ compiler does not properly
9501
# handle `-M -o', and we need to detect this. Also, some Intel
9502
# versions had trouble with output in subdirs
9503
am__obj=sub/conftest.${OBJEXT-o}
9504
am__minus_obj="-o $am__obj"
9507
# This depmode causes a compiler race in universal mode.
9508
test "$am__universal" = false || continue
9511
# after this tag, mechanisms are not by side-effect, so they'll
9512
# only be used when explicitly requested
9513
if test "x$enable_dependency_tracking" = xyes; then
9519
msvisualcpp | msvcmsys)
9520
# This compiler won't grok `-c -o', but also, the minuso test has
9521
# not run yet. These depmodes are late enough in the game, and
9522
# so weak that their functioning should not be impacted.
9523
am__obj=conftest.${OBJEXT-o}
9604
AC_SUBST([ACLOCAL_AMFLAGS])
9606
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
9607
in your top-level Makefile.am, instead, where "m4" is the macro directory set
9608
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
9610
AC_DEFUN([GNOME_DEBUG_CHECK],
9612
AC_ARG_ENABLE([debug],
9613
AC_HELP_STRING([--enable-debug],
9614
[turn on debugging]),,
9617
if test x$enable_debug = xyes ; then
9618
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
9619
[Enable additional debugging at the expense of performance and size])
9623
dnl GNOME_MAINTAINER_MODE_DEFINES ()
9624
dnl define DISABLE_DEPRECATED
9626
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
9628
AC_REQUIRE([AM_MAINTAINER_MODE])
9630
DISABLE_DEPRECATED=""
9631
if test $USE_MAINTAINER_MODE = yes; then
9632
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
9633
for DOMAIN in $DOMAINS; do
9634
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
9638
AC_SUBST(DISABLE_DEPRECATED)
9641
dnl GNOME_COMPILE_WARNINGS
9642
dnl Turn on many useful compiler warnings
9643
dnl For now, only works on GCC
9644
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
9645
dnl ******************************
9646
dnl More compiler warnings
9647
dnl ******************************
9649
AC_ARG_ENABLE(compile-warnings,
9650
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
9651
[Turn on compiler warnings]),,
9652
[enable_compile_warnings="m4_default([$1],[yes])"])
9655
if test "x$GCC" != xyes; then
9656
enable_compile_warnings=no
9660
realsave_CFLAGS="$CFLAGS"
9662
case "$enable_compile_warnings" in
9667
warning_flags="-Wall"
9670
warning_flags="-Wall -Wmissing-prototypes"
9673
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
9674
CFLAGS="$warning_flags $CFLAGS"
9675
for option in -Wno-sign-compare; do
9676
SAVE_CFLAGS="$CFLAGS"
9677
CFLAGS="$CFLAGS $option"
9678
AC_MSG_CHECKING([whether gcc understands $option])
9679
AC_TRY_COMPILE([], [],
9682
CFLAGS="$SAVE_CFLAGS"
9683
AC_MSG_RESULT($has_option)
9684
if test $has_option = yes; then
9685
warning_flags="$warning_flags $option"
9691
if test "$enable_compile_warnings" = "error" ; then
9692
warning_flags="$warning_flags -Werror"
9696
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
9528
if depmode=$depmode \
9529
source=sub/conftest.c object=$am__obj \
9530
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9531
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9532
>/dev/null 2>conftest.err &&
9533
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9534
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9535
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9536
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9537
# icc doesn't choke on unknown options, it will just issue warnings
9538
# or remarks (even with -Werror). So we grep stderr for any message
9539
# that says an option was ignored or not supported.
9540
# When given -MP, icc 7.0 and 7.1 complain thusly:
9541
# icc: Command line warning: ignoring option '-M'; no argument required
9542
# The diagnosis changed in icc 8.0:
9543
# icc: Command line remark: option '-MP' not supported
9544
if (grep 'ignoring option' conftest.err ||
9545
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9546
am_cv_$1_dependencies_compiler_type=$depmode
9699
CFLAGS="$realsave_CFLAGS"
9700
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
9701
AC_MSG_RESULT($warning_flags)
9703
AC_ARG_ENABLE(iso-c,
9704
AC_HELP_STRING([--enable-iso-c],
9705
[Try to warn if code is not ISO C ]),,
9708
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
9710
if test "x$enable_iso_c" != "xno"; then
9711
if test "x$GCC" = "xyes"; then
9713
*[\ \ ]-ansi[\ \ ]*) ;;
9714
*) complCFLAGS="$complCFLAGS -ansi" ;;
9717
*[\ \ ]-pedantic[\ \ ]*) ;;
9718
*) complCFLAGS="$complCFLAGS -pedantic" ;;
9722
AC_MSG_RESULT($complCFLAGS)
9724
WARN_CFLAGS="$warning_flags $complCFLAGS"
9725
AC_SUBST(WARN_CFLAGS)
9728
dnl For C++, do basically the same thing.
9730
AC_DEFUN([GNOME_CXX_WARNINGS],[
9731
AC_ARG_ENABLE(cxx-warnings,
9732
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
9733
[Turn on compiler warnings.]),,
9734
[enable_cxx_warnings="m4_default([$1],[minimum])"])
9736
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
9738
if test "x$GXX" != xyes; then
9739
enable_cxx_warnings=no
9741
if test "x$enable_cxx_warnings" != "xno"; then
9742
if test "x$GXX" = "xyes"; then
9743
case " $CXXFLAGS " in
9744
*[\ \ ]-Wall[\ \ ]*) ;;
9745
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
9748
## -W is not all that useful. And it cannot be controlled
9749
## with individual -Wno-xxx flags, unlike -Wall
9750
if test "x$enable_cxx_warnings" = "xyes"; then
9751
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
9555
am_cv_$1_dependencies_compiler_type=none
9558
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9559
AM_CONDITIONAL([am__fastdep$1], [
9560
test "x$enable_dependency_tracking" != xno \
9561
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9567
# Choose a directory name for dependency files.
9568
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9569
AC_DEFUN([AM_SET_DEPDIR],
9570
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9571
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9577
AC_DEFUN([AM_DEP_TRACK],
9578
[AC_ARG_ENABLE(dependency-tracking,
9579
[ --disable-dependency-tracking speeds up one-time build
9580
--enable-dependency-tracking do not reject slow dependency extractors])
9581
if test "x$enable_dependency_tracking" != xno; then
9582
am_depcomp="$ac_aux_dir/depcomp"
9585
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9586
AC_SUBST([AMDEPBACKSLASH])dnl
9587
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9590
# Generate code to set up dependency tracking. -*- Autoconf -*-
9592
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9593
# Free Software Foundation, Inc.
9595
# This file is free software; the Free Software Foundation
9596
# gives unlimited permission to copy and/or distribute it,
9597
# with or without modifications, as long as this notice is preserved.
9601
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9602
# ------------------------------
9603
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9605
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9606
# are listed without --file. Let's play safe and only enable the eval
9607
# if we detect the quoting.
9608
case $CONFIG_FILES in
9609
*\'*) eval set x "$CONFIG_FILES" ;;
9610
*) set x $CONFIG_FILES ;;
9615
# Strip MF so we end up with the name of the file.
9616
mf=`echo "$mf" | sed -e 's/:.*$//'`
9617
# Check whether this is an Automake generated Makefile or not.
9618
# We used to match only the files named `Makefile.in', but
9619
# some people rename them; so instead we look at the file content.
9620
# Grep'ing the first line is not enough: some people post-process
9621
# each Makefile.in and add a new line on top of each file to say so.
9622
# Grep'ing the whole file is not good either: AIX grep has a line
9623
# limit of 2048, but all sed's we know have understand at least 4000.
9624
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9625
dirpart=`AS_DIRNAME("$mf")`
9629
# Extract the definition of DEPDIR, am__include, and am__quote
9630
# from the Makefile without running `make'.
9631
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9632
test -z "$DEPDIR" && continue
9633
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9634
test -z "am__include" && continue
9635
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9636
# When using ansi2knr, U may be empty or an underscore; expand it
9637
U=`sed -n 's/^U = //p' < "$mf"`
9638
# Find all dependency output files, they are included files with
9639
# $(DEPDIR) in their names. We invoke sed twice because it is the
9640
# simplest approach to changing $(DEPDIR) to its actual value in the
9642
for file in `sed -n "
9643
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9644
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9645
# Make sure the directory exists.
9646
test -f "$dirpart/$file" && continue
9647
fdir=`AS_DIRNAME(["$file"])`
9648
AS_MKDIR_P([$dirpart/$fdir])
9649
# echo "creating $dirpart/$file"
9650
echo '# dummy' > "$dirpart/$file"
9654
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9657
# AM_OUTPUT_DEPENDENCY_COMMANDS
9658
# -----------------------------
9659
# This macro should only be invoked once -- use via AC_REQUIRE.
9661
# This code is only required when automatic dependency tracking
9662
# is enabled. FIXME. This creates each `.P' file that we will
9663
# need in order to bootstrap the dependency handling code.
9664
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9665
[AC_CONFIG_COMMANDS([depfiles],
9666
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9667
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9670
# Do all the work for Automake. -*- Autoconf -*-
9672
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9673
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9675
# This file is free software; the Free Software Foundation
9676
# gives unlimited permission to copy and/or distribute it,
9677
# with or without modifications, as long as this notice is preserved.
9681
# This macro actually does too much. Some checks are only needed if
9682
# your package does certain things. But this isn't really a big deal.
9684
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9685
# AM_INIT_AUTOMAKE([OPTIONS])
9686
# -----------------------------------------------
9687
# The call with PACKAGE and VERSION arguments is the old style
9688
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9689
# and VERSION should now be passed to AC_INIT and removed from
9690
# the call to AM_INIT_AUTOMAKE.
9691
# We support both call styles for the transition. After
9692
# the next Automake release, Autoconf can make the AC_INIT
9693
# arguments mandatory, and then we can depend on a new Autoconf
9694
# release and drop the old call support.
9695
AC_DEFUN([AM_INIT_AUTOMAKE],
9696
[AC_PREREQ([2.62])dnl
9697
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9698
dnl the ones we care about.
9699
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9700
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9701
AC_REQUIRE([AC_PROG_INSTALL])dnl
9702
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9703
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9704
# is not polluted with repeated "-I."
9705
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9706
# test to see if srcdir already configured
9707
if test -f $srcdir/config.status; then
9708
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9712
# test whether we have cygpath
9713
if test -z "$CYGPATH_W"; then
9714
if (cygpath --version) >/dev/null 2>/dev/null; then
9715
CYGPATH_W='cygpath -w'
9720
AC_SUBST([CYGPATH_W])
9722
# Define the identity of the package.
9723
dnl Distinguish between old-style and new-style calls.
9725
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9726
AC_SUBST([PACKAGE], [$1])dnl
9727
AC_SUBST([VERSION], [$2])],
9728
[_AM_SET_OPTIONS([$1])dnl
9729
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9730
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9731
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9732
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9733
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9735
_AM_IF_OPTION([no-define],,
9736
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9737
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9739
# Some tools Automake needs.
9740
AC_REQUIRE([AM_SANITY_CHECK])dnl
9741
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9742
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9743
AM_MISSING_PROG(AUTOCONF, autoconf)
9744
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9745
AM_MISSING_PROG(AUTOHEADER, autoheader)
9746
AM_MISSING_PROG(MAKEINFO, makeinfo)
9747
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9748
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9749
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9750
# We need awk for the "check" target. The system "awk" is bad on
9752
AC_REQUIRE([AC_PROG_AWK])dnl
9753
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9754
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9755
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9756
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9757
[_AM_PROG_TAR([v7])])])
9758
_AM_IF_OPTION([no-dependencies],,
9759
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9760
[_AM_DEPENDENCIES(CC)],
9761
[define([AC_PROG_CC],
9762
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9763
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9764
[_AM_DEPENDENCIES(CXX)],
9765
[define([AC_PROG_CXX],
9766
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9767
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9768
[_AM_DEPENDENCIES(OBJC)],
9769
[define([AC_PROG_OBJC],
9770
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9772
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9773
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9774
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9775
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9776
AC_CONFIG_COMMANDS_PRE(dnl
9777
[m4_provide_if([_AM_COMPILER_EXEEXT],
9778
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9781
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9782
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9783
dnl mangled by Autoconf and run in a shell conditional statement.
9784
m4_define([_AC_COMPILER_EXEEXT],
9785
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9788
# When config.status generates a header, we must update the stamp-h file.
9789
# This file resides in the same directory as the config header
9790
# that is generated. The stamp files are numbered to have different names.
9792
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9793
# loop where config.status creates the headers, so we can generate
9794
# our stamp files there.
9795
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9796
[# Compute $1's index in $config_headers.
9799
for _am_header in $config_headers :; do
9801
$_am_arg | $_am_arg:* )
9804
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9807
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9809
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9811
# This file is free software; the Free Software Foundation
9812
# gives unlimited permission to copy and/or distribute it,
9813
# with or without modifications, as long as this notice is preserved.
9815
# AM_PROG_INSTALL_SH
9816
# ------------------
9817
# Define $install_sh.
9818
AC_DEFUN([AM_PROG_INSTALL_SH],
9819
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9820
if test x"${install_sh}" != xset; then
9823
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9825
install_sh="\${SHELL} $am_aux_dir/install-sh"
9828
AC_SUBST(install_sh)])
9830
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9832
# This file is free software; the Free Software Foundation
9833
# gives unlimited permission to copy and/or distribute it,
9834
# with or without modifications, as long as this notice is preserved.
9838
# Check whether the underlying file-system supports filenames
9839
# with a leading dot. For instance MS-DOS doesn't.
9840
AC_DEFUN([AM_SET_LEADING_DOT],
9841
[rm -rf .tst 2>/dev/null
9842
mkdir .tst 2>/dev/null
9843
if test -d .tst; then
9848
rmdir .tst 2>/dev/null
9849
AC_SUBST([am__leading_dot])])
9851
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9854
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9855
# Free Software Foundation, Inc.
9857
# This file is free software; the Free Software Foundation
9858
# gives unlimited permission to copy and/or distribute it,
9859
# with or without modifications, as long as this notice is preserved.
9863
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9864
# ----------------------------------
9865
# Control maintainer-specific portions of Makefiles.
9866
# Default is to disable them, unless `enable' is passed literally.
9867
# For symmetry, `disable' may be passed as well. Anyway, the user
9868
# can override the default with the --enable/--disable switch.
9869
AC_DEFUN([AM_MAINTAINER_MODE],
9870
[m4_case(m4_default([$1], [disable]),
9871
[enable], [m4_define([am_maintainer_other], [disable])],
9872
[disable], [m4_define([am_maintainer_other], [enable])],
9873
[m4_define([am_maintainer_other], [enable])
9874
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9875
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9876
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9877
AC_ARG_ENABLE([maintainer-mode],
9878
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9879
(and sometimes confusing) to the casual installer],
9880
[USE_MAINTAINER_MODE=$enableval],
9881
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9882
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9883
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9884
MAINT=$MAINTAINER_MODE_TRUE
9885
AC_SUBST([MAINT])dnl
9889
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9891
# Check to see how 'make' treats includes. -*- Autoconf -*-
9893
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9895
# This file is free software; the Free Software Foundation
9896
# gives unlimited permission to copy and/or distribute it,
9897
# with or without modifications, as long as this notice is preserved.
9903
# Check to see how make treats includes.
9904
AC_DEFUN([AM_MAKE_INCLUDE],
9905
[am_make=${MAKE-make}
9906
cat > confinc << 'END'
9908
@echo this is the am__doit target
9911
# If we don't find an include directive, just comment out the code.
9912
AC_MSG_CHECKING([for style of include used by $am_make])
9916
# First try GNU make style include.
9917
echo "include confinc" > confmf
9918
# Ignore all kinds of additional output from `make'.
9919
case `$am_make -s -f confmf 2> /dev/null` in #(
9920
*the\ am__doit\ target*)
9926
# Now try BSD make style include.
9927
if test "$am__include" = "#"; then
9928
echo '.include "confinc"' > confmf
9929
case `$am_make -s -f confmf 2> /dev/null` in #(
9930
*the\ am__doit\ target*)
9931
am__include=.include
9937
AC_SUBST([am__include])
9938
AC_SUBST([am__quote])
9939
AC_MSG_RESULT([$_am_result])
9940
rm -f confinc confmf
9943
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9945
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9946
# Free Software Foundation, Inc.
9948
# This file is free software; the Free Software Foundation
9949
# gives unlimited permission to copy and/or distribute it,
9950
# with or without modifications, as long as this notice is preserved.
9954
# AM_MISSING_PROG(NAME, PROGRAM)
9955
# ------------------------------
9956
AC_DEFUN([AM_MISSING_PROG],
9957
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9958
$1=${$1-"${am_missing_run}$2"}
9962
# AM_MISSING_HAS_RUN
9963
# ------------------
9964
# Define MISSING if not defined so far and test if it supports --run.
9965
# If it does, set am_missing_run to use it, otherwise, to nothing.
9966
AC_DEFUN([AM_MISSING_HAS_RUN],
9967
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9968
AC_REQUIRE_AUX_FILE([missing])dnl
9969
if test x"${MISSING+set}" != xset; then
9972
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9974
MISSING="\${SHELL} $am_aux_dir/missing" ;;
9977
# Use eval to expand $SHELL
9978
if eval "$MISSING --run true"; then
9979
am_missing_run="$MISSING --run "
9982
AC_MSG_WARN([`missing' script is too old or missing])
9986
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9988
# This file is free software; the Free Software Foundation
9989
# gives unlimited permission to copy and/or distribute it,
9990
# with or without modifications, as long as this notice is preserved.
9994
# Check for `mkdir -p'.
9995
AC_DEFUN([AM_PROG_MKDIR_P],
9996
[AC_PREREQ([2.60])dnl
9997
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9998
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9999
dnl while keeping a definition of mkdir_p for backward compatibility.
10000
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10001
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10002
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10003
dnl adjustment using top_builddir (which is defined more often than
10005
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10007
[[\\/$]]* | ?:[[\\/]]*) ;;
10008
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10012
# Helper functions for option handling. -*- Autoconf -*-
10014
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10016
# This file is free software; the Free Software Foundation
10017
# gives unlimited permission to copy and/or distribute it,
10018
# with or without modifications, as long as this notice is preserved.
10022
# _AM_MANGLE_OPTION(NAME)
10023
# -----------------------
10024
AC_DEFUN([_AM_MANGLE_OPTION],
10025
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10027
# _AM_SET_OPTION(NAME)
10028
# ------------------------------
10029
# Set option NAME. Presently that only means defining a flag for this option.
10030
AC_DEFUN([_AM_SET_OPTION],
10031
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10033
# _AM_SET_OPTIONS(OPTIONS)
10034
# ----------------------------------
10035
# OPTIONS is a space-separated list of Automake options.
10036
AC_DEFUN([_AM_SET_OPTIONS],
10037
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10039
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10040
# -------------------------------------------
10041
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10042
AC_DEFUN([_AM_IF_OPTION],
10043
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10045
# Check to make sure that the build environment is sane. -*- Autoconf -*-
10047
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10048
# Free Software Foundation, Inc.
10050
# This file is free software; the Free Software Foundation
10051
# gives unlimited permission to copy and/or distribute it,
10052
# with or without modifications, as long as this notice is preserved.
10058
AC_DEFUN([AM_SANITY_CHECK],
10059
[AC_MSG_CHECKING([whether build environment is sane])
10062
echo timestamp > conftest.file
10063
# Reject unsafe characters in $srcdir or the absolute working directory
10064
# name. Accept space and tab only in the latter.
9755
AC_MSG_RESULT($warnCXXFLAGS)
9757
AC_ARG_ENABLE(iso-cxx,
9758
AC_HELP_STRING([--enable-iso-cxx],
9759
[Try to warn if code is not ISO C++ ]),,
9760
[enable_iso_cxx=no])
9762
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
9764
if test "x$enable_iso_cxx" != "xno"; then
9765
if test "x$GXX" = "xyes"; then
9766
case " $CXXFLAGS " in
9767
*[\ \ ]-ansi[\ \ ]*) ;;
9768
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
9771
case " $CXXFLAGS " in
9772
*[\ \ ]-pedantic[\ \ ]*) ;;
9773
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
9777
AC_MSG_RESULT($complCXXFLAGS)
9779
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
9780
AC_SUBST(WARN_CXXFLAGS)
9783
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
9784
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
9785
AC_DEFUN([GNOME_DOC_DEFINES],
9787
AC_ARG_WITH([help-dir],
9788
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
9789
[with_help_dir='${datadir}/gnome/help'])
9790
HELP_DIR="$with_help_dir"
9793
AC_ARG_WITH([omf-dir],
9794
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
9795
[with_omf_dir='${datadir}/omf'])
9796
OMF_DIR="$with_omf_dir"
9799
AC_ARG_WITH([help-formats],
9800
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
9801
[with_help_formats=''])
9802
DOC_USER_FORMATS="$with_help_formats"
9803
AC_SUBST(DOC_USER_FORMATS)
9805
AC_ARG_ENABLE([scrollkeeper],
9806
[AC_HELP_STRING([--disable-scrollkeeper],
9807
[do not make updates to the scrollkeeper database])],,
9808
enable_scrollkeeper=yes)
9809
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
9811
dnl disable scrollkeeper automatically for distcheck
9812
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
9813
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
9815
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
9818
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
9820
AC_DEFUN([GNOME_DOC_INIT],
9821
[AC_REQUIRE([AC_PROG_LN_S])dnl
9823
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
9825
AC_MSG_CHECKING([gnome-doc-utils >= $gdu_cv_version_required])
9826
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
9827
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
9829
if test "$gdu_cv_have_gdu" = "yes"; then
9830
AC_MSG_RESULT([yes])
9831
ifelse([$2],,[:],[$2])
9834
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
9841
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
9842
dnl the schema should be compiled
9845
AC_DEFUN([GLIB_GSETTINGS],
9847
m4_pattern_allow([AM_V_GEN])
9848
AC_ARG_ENABLE(schemas-compile,
9849
AC_HELP_STRING([--disable-schemas-compile],
9850
[Disable regeneration of gschemas.compiled on install]),
9851
[case ${enableval} in
9852
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
9853
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
9854
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
9856
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
9857
PKG_PROG_PKG_CONFIG([0.16])
9858
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
9859
if test x$cross_compiling != xyes; then
9860
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
9862
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
9864
AC_SUBST(GLIB_COMPILE_SCHEMAS)
9865
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
9866
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
9868
ifelse([$1],,[:],[$1])
9872
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
9874
mostlyclean-am: clean-gsettings-schemas
9876
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
9878
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
9879
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
9881
all-am: $(gsettings_SCHEMAS:.xml=.valid)
9882
uninstall-am: uninstall-gsettings-schemas
9883
install-data-am: install-gsettings-schemas
9885
.SECONDARY: $(gsettings_SCHEMAS)
9887
gsettings__base_list = \
9888
sed "$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g" | \
9889
sed "$$!N;$$!N;$$!N;$$!N;s/\n/ /g"
9891
install-gsettings-schemas: $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
9893
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"
9894
@list='\''$(gsettings__enum_file) $(gsettings_SCHEMAS)'\''; test -n "$(gsettingsschemadir)" || list=; \
9895
for p in $$list; do \
9896
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
9898
done | $(gsettings__base_list) | \
9899
while read files; do \
9900
echo " $(INSTALL_DATA) $$files '\''$(DESTDIR)$(gsettingsschemadir)'\''"; \
9901
$(INSTALL_DATA) $$files "$(DESTDIR)$(gsettingsschemadir)" || exit $$?; \
9903
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
9905
uninstall-gsettings-schemas:
9906
@$(NORMAL_UNINSTALL)
9907
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
9908
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
9909
test -n "$$files" || exit 0; \
9910
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
9911
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
9912
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
9914
clean-gsettings-schemas:
9915
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
9917
ifdef gsettings_ENUM_NAMESPACE
9918
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
9919
$(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>" $(gsettings_ENUM_FILES) > [$]@.tmp && mv [$]@.tmp [$]@
10068
*[[\\\"\#\$\&\'\`$am_lf]]*)
10069
AC_MSG_ERROR([unsafe absolute working directory name]);;
10072
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10073
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10076
# Do `set' in a subshell so we don't clobber the current shell's
10077
# arguments. Must try -L first in case configure is actually a
10078
# symlink; some systems play weird games with the mod time of symlinks
10079
# (eg FreeBSD returns the mod time of the symlink's containing
10082
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10083
if test "$[*]" = "X"; then
10085
set X `ls -t "$srcdir/configure" conftest.file`
10087
rm -f conftest.file
10088
if test "$[*]" != "X $srcdir/configure conftest.file" \
10089
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10091
# If neither matched, then we have a broken ls. This can happen
10092
# if, for instance, CONFIG_SHELL is bash and it inherits a
10093
# broken ls alias from the environment. This has actually
10094
# happened. Such a system could not be considered "sane".
10095
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10096
alias in your environment])
10099
test "$[2]" = conftest.file
10105
AC_MSG_ERROR([newly created file is older than distributed files!
10106
Check your system clock])
10108
AC_MSG_RESULT(yes)])
10110
# Copyright (C) 2009 Free Software Foundation, Inc.
10112
# This file is free software; the Free Software Foundation
10113
# gives unlimited permission to copy and/or distribute it,
10114
# with or without modifications, as long as this notice is preserved.
9922
_GSETTINGS_SUBST(GSETTINGS_RULES)
9925
dnl _GSETTINGS_SUBST(VARIABLE)
9926
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
9927
AC_DEFUN([_GSETTINGS_SUBST],
9930
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
9934
dnl -*- mode: autoconf -*-
10118
# AM_SILENT_RULES([DEFAULT])
10119
# --------------------------
10120
# Enable less verbose build rules; with the default set to DEFAULT
10121
# (`yes' being less verbose, `no' or empty being verbose).
10122
AC_DEFUN([AM_SILENT_RULES],
10123
[AC_ARG_ENABLE([silent-rules],
10124
[ --enable-silent-rules less verbose build output (undo: `make V=1')
10125
--disable-silent-rules verbose build output (undo: `make V=0')])
10126
case $enable_silent_rules in
10127
yes) AM_DEFAULT_VERBOSITY=0;;
10128
no) AM_DEFAULT_VERBOSITY=1;;
10129
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9939
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
9940
AC_DEFUN([GTK_DOC_CHECK],
9942
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
9943
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
9945
dnl check for tools we added during development
9946
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
9947
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
9948
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
9950
dnl for overriding the documentation installation directory
9951
AC_ARG_WITH([html-dir],
9952
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
9953
[with_html_dir='${datadir}/gtk-doc/html'])
9954
HTML_DIR="$with_html_dir"
9955
AC_SUBST([HTML_DIR])
9957
dnl enable/disable documentation building
9958
AC_ARG_ENABLE([gtk-doc],
9959
AS_HELP_STRING([--enable-gtk-doc],
9960
[use gtk-doc to build documentation [[default=no]]]),,
9961
[enable_gtk_doc=no])
9963
if test x$enable_gtk_doc = xyes; then
9965
[PKG_CHECK_EXISTS([gtk-doc],,
9966
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
9967
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
9968
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
9971
AC_MSG_CHECKING([whether to build gtk-doc documentation])
9972
AC_MSG_RESULT($enable_gtk_doc)
9974
dnl enable/disable output formats
9975
AC_ARG_ENABLE([gtk-doc-html],
9976
AS_HELP_STRING([--enable-gtk-doc-html],
9977
[build documentation in html format [[default=yes]]]),,
9978
[enable_gtk_doc_html=yes])
9979
AC_ARG_ENABLE([gtk-doc-pdf],
9980
AS_HELP_STRING([--enable-gtk-doc-pdf],
9981
[build documentation in pdf format [[default=no]]]),,
9982
[enable_gtk_doc_pdf=no])
9984
if test -z "$GTKDOC_MKPDF"; then
9985
enable_gtk_doc_pdf=no
9989
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
9990
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
9991
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
9992
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
9993
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
9997
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
9998
# serial 40 IT_PROG_INTLTOOL
9999
AC_DEFUN([IT_PROG_INTLTOOL], [
10000
AC_PREREQ([2.50])dnl
10001
AC_REQUIRE([AM_NLS])dnl
10003
case "$am__api_version" in
10005
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
10131
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10133
AC_SUBST([AM_BACKSLASH])dnl
10134
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10011
if test -n "$1"; then
10012
AC_MSG_CHECKING([for intltool >= $1])
10014
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10015
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
10016
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
10018
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
10019
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
10020
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
10023
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
10024
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
10025
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
10026
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
10027
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
10030
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 $< [$]@'
10031
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 $< [$]@'
10032
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 $< [$]@'
10033
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 $< [$]@'
10034
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
10035
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 $< [$]@'
10036
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 $< [$]@'
10037
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 $< [$]@'
10038
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 $< [$]@'
10039
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 $< [$]@'
10040
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 $< [$]@'
10041
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
10042
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 $< [$]@'
10043
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 $< [$]@'
10044
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 $< [$]@'
10045
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 $< [$]@'
10046
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 $< [$]@'
10047
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 $< [$]@'
10048
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 $< [$]@'
10050
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
10051
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
10052
_IT_SUBST(INTLTOOL_KEYS_RULE)
10053
_IT_SUBST(INTLTOOL_PROP_RULE)
10054
_IT_SUBST(INTLTOOL_OAF_RULE)
10055
_IT_SUBST(INTLTOOL_PONG_RULE)
10056
_IT_SUBST(INTLTOOL_SERVER_RULE)
10057
_IT_SUBST(INTLTOOL_SHEET_RULE)
10058
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
10059
_IT_SUBST(INTLTOOL_UI_RULE)
10060
_IT_SUBST(INTLTOOL_XAM_RULE)
10061
_IT_SUBST(INTLTOOL_KBD_RULE)
10062
_IT_SUBST(INTLTOOL_XML_RULE)
10063
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
10064
_IT_SUBST(INTLTOOL_CAVES_RULE)
10065
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
10066
_IT_SUBST(INTLTOOL_THEME_RULE)
10067
_IT_SUBST(INTLTOOL_SERVICE_RULE)
10068
_IT_SUBST(INTLTOOL_POLICY_RULE)
10070
# Check the gettext tools to make sure they are GNU
10071
AC_PATH_PROG(XGETTEXT, xgettext)
10072
AC_PATH_PROG(MSGMERGE, msgmerge)
10073
AC_PATH_PROG(MSGFMT, msgfmt)
10074
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10075
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
10076
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10078
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
10079
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
10080
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
10081
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
10082
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
10085
AC_PATH_PROG(INTLTOOL_PERL, perl)
10086
if test -z "$INTLTOOL_PERL"; then
10087
AC_MSG_ERROR([perl not found])
10089
AC_MSG_CHECKING([for perl >= 5.8.1])
10090
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
10091
if test $? -ne 0; then
10092
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
10094
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
10095
AC_MSG_RESULT([$IT_PERL_VERSION])
10097
if test "x$2" != "xno-xml"; then
10098
AC_MSG_CHECKING([for XML::Parser])
10099
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
10100
AC_MSG_RESULT([ok])
10102
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
10106
# Substitute ALL_LINGUAS so we can use it in po/Makefile
10107
AC_SUBST(ALL_LINGUAS)
10109
# Set DATADIRNAME correctly if it is not set yet
10110
# (copied from glib-gettext.m4)
10111
if test -z "$DATADIRNAME"; then
10113
[AC_LANG_PROGRAM([[]],
10114
[[extern int _nl_msg_cat_cntr;
10115
return _nl_msg_cat_cntr]])],
10116
[DATADIRNAME=share],
10119
dnl On Solaris, if bind_textdomain_codeset is in libc,
10120
dnl GNU format message catalog is always supported,
10121
dnl since both are added to the libc all together.
10122
dnl Hence, we'd like to go with DATADIRNAME=share
10124
AC_CHECK_FUNC(bind_textdomain_codeset,
10125
[DATADIRNAME=share], [DATADIRNAME=lib])
10132
AC_SUBST(DATADIRNAME)
10137
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10139
# This file is free software; the Free Software Foundation
10140
# gives unlimited permission to copy and/or distribute it,
10141
# with or without modifications, as long as this notice is preserved.
10143
# AM_PROG_INSTALL_STRIP
10139
# IT_PO_SUBDIR(DIRNAME)
10144
10140
# ---------------------
10145
# One issue with vendor `install' (even GNU) is that you can't
10146
# specify the program used to strip binaries. This is especially
10147
# annoying in cross-compiling environments, where the build's strip
10148
# is unlikely to handle the host's binaries.
10149
# Fortunately install-sh will honor a STRIPPROG variable, so we
10150
# always use install-sh in `make install-strip', and initialize
10151
# STRIPPROG with the value of the STRIP variable (set by the user).
10152
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10153
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10154
# Installed binaries are usually stripped using `strip' when the user
10155
# run `make install-strip'. However `strip' might not be the right
10156
# tool to use in cross-compilation environments, therefore Automake
10157
# will honor the `STRIP' environment variable to overrule this program.
10158
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10159
if test "$cross_compiling" != no; then
10160
AC_CHECK_TOOL([STRIP], [strip], :)
10162
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10163
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10165
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
10167
# This file is free software; the Free Software Foundation
10168
# gives unlimited permission to copy and/or distribute it,
10169
# with or without modifications, as long as this notice is preserved.
10173
# _AM_SUBST_NOTMAKE(VARIABLE)
10174
# ---------------------------
10175
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10176
# This macro is traced by Automake.
10177
AC_DEFUN([_AM_SUBST_NOTMAKE])
10179
# AM_SUBST_NOTMAKE(VARIABLE)
10180
# ---------------------------
10181
# Public sister of _AM_SUBST_NOTMAKE.
10182
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10184
# Check how to create a tarball. -*- Autoconf -*-
10186
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10188
# This file is free software; the Free Software Foundation
10189
# gives unlimited permission to copy and/or distribute it,
10190
# with or without modifications, as long as this notice is preserved.
10194
# _AM_PROG_TAR(FORMAT)
10195
# --------------------
10196
# Check how to create a tarball in format FORMAT.
10197
# FORMAT should be one of `v7', `ustar', or `pax'.
10199
# Substitute a variable $(am__tar) that is a command
10200
# writing to stdout a FORMAT-tarball containing the directory
10202
# tardir=directory && $(am__tar) > result.tar
10204
# Substitute a variable $(am__untar) that extract such
10205
# a tarball read from stdin.
10206
# $(am__untar) < result.tar
10207
AC_DEFUN([_AM_PROG_TAR],
10208
[# Always define AMTAR for backward compatibility.
10209
AM_MISSING_PROG([AMTAR], [tar])
10211
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10212
[m4_case([$1], [ustar],, [pax],,
10213
[m4_fatal([Unknown tar format])])
10214
AC_MSG_CHECKING([how to create a $1 tar archive])
10215
# Loop over all known methods to create a tar archive until one works.
10216
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10217
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10218
# Do not fold the above two line into one, because Tru64 sh and
10219
# Solaris sh will not grok spaces in the rhs of `-'.
10220
for _am_tool in $_am_tools
10224
for _am_tar in tar gnutar gtar;
10226
AM_RUN_LOG([$_am_tar --version]) && break
10228
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10229
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10230
am__untar="$_am_tar -xf -"
10233
# Must skip GNU tar: if it does not support --format= it doesn't create
10234
# ustar tarball either.
10235
(tar --version) >/dev/null 2>&1 && continue
10236
am__tar='tar chf - "$$tardir"'
10237
am__tar_='tar chf - "$tardir"'
10238
am__untar='tar xf -'
10241
am__tar='pax -L -x $1 -w "$$tardir"'
10242
am__tar_='pax -L -x $1 -w "$tardir"'
10246
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10247
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10248
am__untar='cpio -i -H $1 -d'
10257
# If the value was cached, stop now. We just wanted to have am__tar
10258
# and am__untar set.
10259
test -n "${am_cv_prog_tar_$1}" && break
10261
# tar/untar a dummy directory, and stop if the command works
10262
rm -rf conftest.dir
10264
echo GrepMe > conftest.dir/file
10265
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10266
rm -rf conftest.dir
10267
if test -s conftest.tar; then
10268
AM_RUN_LOG([$am__untar <conftest.tar])
10269
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10272
rm -rf conftest.dir
10274
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10275
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10276
AC_SUBST([am__tar])
10277
AC_SUBST([am__untar])
10141
# All po subdirs have to be declared with this macro; the subdir "po" is
10142
# declared by IT_PROG_INTLTOOL.
10144
AC_DEFUN([IT_PO_SUBDIR],
10145
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
10147
dnl The following CONFIG_COMMANDS should be executed at the very end
10148
dnl of config.status.
10149
AC_CONFIG_COMMANDS_PRE([
10150
AC_CONFIG_COMMANDS([$1/stamp-it], [
10151
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
10152
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
10154
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
10159
'"s|^| $ac_top_srcdir/|" \
10160
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
10162
[sed '/^POTFILES =/,/[^\\]$/ {
10166
' "$1/Makefile.in" >"$1/Makefile"]
10167
rm -f "$1/Makefile.tmp"
10168
mv "$1/stamp-it.tmp" "$1/stamp-it"
10173
# _IT_SUBST(VARIABLE)
10174
# -------------------
10175
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10177
AC_DEFUN([_IT_SUBST],
10180
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10184
# deprecated macros
10185
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
10186
# A hint is needed for aclocal from Automake <= 1.9.4:
10187
# AC_DEFUN([AC_PROG_INTLTOOL], ...)