20
20
If you have problems, you may need to regenerate the build system entirely.
21
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
25
# This file is free software; the Free Software Foundation
26
# gives unlimited permission to copy and/or distribute it,
27
# with or without modifications, as long as this notice is preserved.
29
# AM_AUTOMAKE_VERSION(VERSION)
30
# ----------------------------
31
# Automake X.Y traces this macro to ensure aclocal.m4 has been
32
# generated from the m4 files accompanying Automake X.Y.
33
# (This private macro should not be called outside this file.)
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
35
[am__api_version='1.13'
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37
dnl require some minimum version. Point them to the right macro.
38
m4_if([$1], [1.13.1], [],
39
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
23
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
24
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
26
# This file is free software, distributed under the terms of the GNU
27
# General Public License. As a special exception to the GNU General
28
# Public License, this file may be distributed as part of a program
29
# that contains a configuration script generated by Autoconf, under
30
# the same distribution terms as the rest of that program.
32
# This file can be copied and used freely without restrictions. It can
33
# be used in projects which are not available under the GNU Public License
34
# but which still want to provide support for the GNU gettext functionality.
36
# Macro to add for using GNU gettext.
37
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
39
# Modified to never use included libintl.
40
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
42
# Major rework to remove unused code
43
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
45
# Added better handling of ALL_LINGUAS from GNU gettext version
46
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
48
# Modified to require ngettext
49
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
51
# We need this here as well, since someone might use autoconf-2.5x
52
# to configure GLib then an older version to configure a package
53
# using AM_GLIB_GNU_GETTEXT
57
dnl We go to great lengths to make sure that aclocal won't
58
dnl try to pull in the installed version of these macros
59
dnl when running aclocal in the glib directory.
61
m4_copy([AC_DEFUN],[glib_DEFUN])
62
m4_copy([AC_REQUIRE],[glib_REQUIRE])
64
dnl At the end, if we're not within glib, we'll define the public
65
dnl definitions in terms of our private definitions.
70
glib_DEFUN([GLIB_LC_MESSAGES],
71
[AC_CHECK_HEADERS([locale.h])
72
if test $ac_cv_header_locale_h = yes; then
73
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
74
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
75
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
76
if test $am_cv_val_LC_MESSAGES = yes; then
77
AC_DEFINE(HAVE_LC_MESSAGES, 1,
78
[Define if your <locale.h> file defines LC_MESSAGES.])
82
# GLIB_PATH_PROG_WITH_TEST
83
#----------------------------
84
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
85
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
86
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
87
[# Extract the first word of "$2", so it can be a program name with args.
88
set dummy $2; ac_word=[$]2
89
AC_MSG_CHECKING([for $ac_word])
90
AC_CACHE_VAL(ac_cv_path_$1,
93
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
96
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
97
for ac_dir in ifelse([$5], , $PATH, [$5]); do
98
test -z "$ac_dir" && ac_dir=.
99
if test -f $ac_dir/$ac_word; then
101
ac_cv_path_$1="$ac_dir/$ac_word"
107
dnl If no 4th arg is given, leave the cache variable unset,
108
dnl so AC_PATH_PROGS will keep looking.
109
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
114
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
42
# _AM_AUTOCONF_VERSION(VERSION)
43
# -----------------------------
44
# aclocal traces this macro to find the Autoconf version.
45
# This is a private macro too. Using m4_define simplifies
46
# the logic in aclocal, which can simply ignore this definition.
47
m4_define([_AM_AUTOCONF_VERSION], [])
49
# AM_SET_CURRENT_AUTOMAKE_VERSION
124
glib_DEFUN([GLIB_WITH_NLS],
125
dnl NLS is obligatory
129
gt_cv_have_gettext=no
135
AC_CHECK_HEADER(libintl.h,
136
[gt_cv_func_dgettext_libintl="no"
137
libintl_extra_libs=""
140
# First check in libc
142
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
146
[return !ngettext ("","", 1)],
147
gt_cv_func_ngettext_libc=yes,
148
gt_cv_func_ngettext_libc=no)
151
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
152
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
156
[return !dgettext ("","")],
157
gt_cv_func_dgettext_libc=yes,
158
gt_cv_func_dgettext_libc=no)
162
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
163
AC_CHECK_FUNCS(bind_textdomain_codeset)
167
# If we don't have everything we want, check in libintl
169
if test "$gt_cv_func_dgettext_libc" != "yes" \
170
|| test "$gt_cv_func_ngettext_libc" != "yes" \
171
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
173
AC_CHECK_LIB(intl, bindtextdomain,
174
[AC_CHECK_LIB(intl, ngettext,
175
[AC_CHECK_LIB(intl, dgettext,
176
gt_cv_func_dgettext_libintl=yes)])])
178
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
179
AC_MSG_CHECKING([if -liconv is needed to use gettext])
181
AC_CHECK_LIB(intl, ngettext,
182
[AC_CHECK_LIB(intl, dcgettext,
183
[gt_cv_func_dgettext_libintl=yes
184
libintl_extra_libs=-liconv],
190
# If we found libintl, then check in it for bind_textdomain_codeset();
191
# we'll prefer libc if neither have bind_textdomain_codeset(),
192
# and both have dgettext and ngettext
194
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
195
glib_save_LIBS="$LIBS"
196
LIBS="$LIBS -lintl $libintl_extra_libs"
197
unset ac_cv_func_bind_textdomain_codeset
198
AC_CHECK_FUNCS(bind_textdomain_codeset)
199
LIBS="$glib_save_LIBS"
201
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
202
gt_cv_func_dgettext_libc=no
204
if test "$gt_cv_func_dgettext_libc" = "yes" \
205
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
206
gt_cv_func_dgettext_libintl=no
212
if test "$gt_cv_func_dgettext_libc" = "yes" \
213
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
214
gt_cv_have_gettext=yes
217
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
218
INTLLIBS="-lintl $libintl_extra_libs"
221
if test "$gt_cv_have_gettext" = "yes"; then
222
AC_DEFINE(HAVE_GETTEXT,1,
223
[Define if the GNU gettext() function is already present or preinstalled.])
224
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
225
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
226
if test "$MSGFMT" != "no"; then
227
glib_save_LIBS="$LIBS"
228
LIBS="$LIBS $INTLLIBS"
229
AC_CHECK_FUNCS(dcgettext)
231
AC_MSG_CHECKING([if msgfmt accepts -c])
232
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
235
"Content-Type: text/plain; charset=UTF-8\n"
236
"Project-Id-Version: test 1.0\n"
237
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
238
"Last-Translator: test <foo@bar.xx>\n"
239
"Language-Team: C <LL@li.org>\n"
240
"MIME-Version: 1.0\n"
241
"Content-Transfer-Encoding: 8bit\n"
242
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
243
AC_SUBST(MSGFMT_OPTS)
244
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
245
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
246
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
247
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
248
return _nl_msg_cat_cntr],
253
dnl On Solaris, if bind_textdomain_codeset is in libc,
254
dnl GNU format message catalog is always supported,
255
dnl since both are added to the libc all together.
256
dnl Hence, we'd like to go with DATADIRNAME=share and
257
dnl and CATOBJEXT=.gmo in this case.
258
AC_CHECK_FUNC(bind_textdomain_codeset,
273
LIBS="$glib_save_LIBS"
276
gt_cv_have_gettext=no
281
if test "$gt_cv_have_gettext" = "yes" ; then
282
AC_DEFINE(ENABLE_NLS, 1,
283
[always defined to indicate that i18n is enabled])
286
dnl Test whether we really found GNU xgettext.
287
if test "$XGETTEXT" != ":"; then
288
dnl If it is not GNU xgettext we define it as : so that the
289
dnl Makefiles still can work.
290
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
294
[found xgettext program is not GNU xgettext; ignore it])
299
# We need to process the po/ directory.
303
[case "$CONFIG_FILES" in *po/Makefile.in*)
304
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
307
dnl These rules are solely for the distribution goal. While doing this
308
dnl we only have to keep exactly one list of the available catalogs
310
for lang in $ALL_LINGUAS; do
311
GMOFILES="$GMOFILES $lang.gmo"
312
POFILES="$POFILES $lang.po"
315
dnl Make all variables we use known to autoconf.
318
AC_SUBST(DATADIRNAME)
322
AC_SUBST(PO_IN_DATADIR_TRUE)
323
AC_SUBST(PO_IN_DATADIR_FALSE)
328
# AM_GLIB_GNU_GETTEXT
329
# -------------------
330
# Do checks necessary for use of gettext. If a suitable implementation
331
# of gettext is found in either in libintl or in the C library,
332
# it will set INTLLIBS to the libraries needed for use of gettext
333
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
334
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
335
# on various variables needed by the Makefile.in.in installed by
338
glib_DEFUN([GLIB_GNU_GETTEXT],
339
[AC_REQUIRE([AC_PROG_CC])dnl
344
if test "$gt_cv_have_gettext" = "yes"; then
345
if test "x$ALL_LINGUAS" = "x"; then
348
AC_MSG_CHECKING(for catalogs to be installed)
350
for presentlang in $ALL_LINGUAS; do
352
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
353
desiredlanguages="$LINGUAS"
355
desiredlanguages="$ALL_LINGUAS"
357
for desiredlang in $desiredlanguages; do
358
# Use the presentlang catalog if desiredlang is
359
# a. equal to presentlang, or
360
# b. a variant of presentlang (because in this case,
361
# presentlang can be used as a fallback for messages
362
# which are not translated in the desiredlang catalog).
363
case "$desiredlang" in
364
"$presentlang"*) useit=yes;;
367
if test $useit = yes; then
368
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
372
AC_MSG_RESULT($LINGUAS)
375
dnl Construct list of names of catalog files to be constructed.
376
if test -n "$LINGUAS"; then
377
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
381
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
382
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
383
dnl Try to locate is.
385
if test -n "$ac_aux_dir"; then
386
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
388
if test -z "$MKINSTALLDIRS"; then
389
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
391
AC_SUBST(MKINSTALLDIRS)
393
dnl Generate list of files to be processed by xgettext which will
394
dnl be included in po/Makefile.
395
test -d po || mkdir po
396
if test "x$srcdir" != "x."; then
397
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
398
posrcprefix="$srcdir/"
400
posrcprefix="../$srcdir/"
406
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
407
< $srcdir/po/POTFILES.in > po/POTFILES
410
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
50
411
# -------------------------------
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54
[AM_AUTOMAKE_VERSION([1.13.1])dnl
55
m4_ifndef([AC_AUTOCONF_VERSION],
56
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
59
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
63
# This file is free software; the Free Software Foundation
64
# gives unlimited permission to copy and/or distribute it,
65
# with or without modifications, as long as this notice is preserved.
67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
71
# Of course, Automake must honor this variable whenever it calls a
72
# tool from the auxiliary directory. The problem is that $srcdir (and
73
# therefore $ac_aux_dir as well) can be either absolute or relative,
74
# depending on how configure is run. This is pretty annoying, since
75
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
76
# source directory, any form will work fine, but in subdirectories a
77
# relative path needs to be adjusted first.
80
# fails when called from a subdirectory if $ac_aux_dir is relative
81
# $top_srcdir/$ac_aux_dir/missing
82
# fails if $ac_aux_dir is absolute,
83
# fails when called from a subdirectory in a VPATH build with
84
# a relative $ac_aux_dir
86
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87
# are both prefixed by $srcdir. In an in-source build this is usually
88
# harmless because $srcdir is '.', but things will broke when you
89
# start a VPATH build or use an absolute $srcdir.
91
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
93
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94
# and then we would define $MISSING as
95
# MISSING="\${SHELL} $am_aux_dir/missing"
96
# This will work as long as MISSING is not called from configure, because
97
# unfortunately $(top_srcdir) has no meaning in configure.
98
# However there are other variables, like CC, which are often used in
99
# configure, and could therefore not use this "fixed" $ac_aux_dir.
101
# Another solution, used here, is to always expand $ac_aux_dir to an
102
# absolute PATH. The drawback is that using absolute paths prevent a
103
# configured tree to be moved without reconfiguration.
105
AC_DEFUN([AM_AUX_DIR_EXPAND],
106
[dnl Rely on autoconf to set up CDPATH properly.
108
# expand $ac_aux_dir to an absolute path
109
am_aux_dir=`cd $ac_aux_dir && pwd`
112
# AM_CONDITIONAL -*- Autoconf -*-
114
# Copyright (C) 1997-2013 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.
120
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
121
# -------------------------------------
122
# Define a conditional.
123
AC_DEFUN([AM_CONDITIONAL],
124
[AC_PREREQ([2.52])dnl
125
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
126
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
127
AC_SUBST([$1_TRUE])dnl
128
AC_SUBST([$1_FALSE])dnl
129
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
130
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
131
m4_define([_AM_COND_VALUE_$1], [$2])dnl
412
# Define VARIABLE to the location where catalog files will
413
# be installed by po/Makefile.
414
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
415
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
416
glib_save_prefix="$prefix"
417
glib_save_exec_prefix="$exec_prefix"
418
glib_save_datarootdir="$datarootdir"
419
test "x$prefix" = xNONE && prefix=$ac_default_prefix
420
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
421
datarootdir=`eval echo "${datarootdir}"`
422
if test "x$CATOBJEXT" = "x.mo" ; then
423
localedir=`eval echo "${libdir}/locale"`
425
localedir=`eval echo "${datadir}/locale"`
139
AC_CONFIG_COMMANDS_PRE(
140
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
141
AC_MSG_ERROR([[conditional "$1" was never defined.
142
Usually this means the macro was only invoked conditionally.]])
145
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
147
# This file is free software; the Free Software Foundation
148
# gives unlimited permission to copy and/or distribute it,
149
# with or without modifications, as long as this notice is preserved.
152
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
153
# written in clear, in which case automake, when reading aclocal.m4,
154
# will think it sees a *use*, and therefore will trigger all it's
155
# C support machinery. Also note that it means that autoscan, seeing
156
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
159
# _AM_DEPENDENCIES(NAME)
160
# ----------------------
161
# See how the compiler implements dependency checking.
162
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
163
# We try a few techniques and use that to set a single cache variable.
165
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
166
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
167
# dependency, and given that the user is not expected to run this macro,
168
# just rely on AC_PROG_CC.
169
AC_DEFUN([_AM_DEPENDENCIES],
170
[AC_REQUIRE([AM_SET_DEPDIR])dnl
171
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
172
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
173
AC_REQUIRE([AM_DEP_TRACK])dnl
175
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
176
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
177
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
178
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
179
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
180
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181
[depcc="$$1" am_compiler_list=])
183
AC_CACHE_CHECK([dependency style of $depcc],
184
[am_cv_$1_dependencies_compiler_type],
185
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
186
# We make a subdir and do the tests there. Otherwise we can end up
187
# making bogus files that we don't know about and never remove. For
188
# instance it was reported that on HP-UX the gcc test will end up
189
# making a dummy file named 'D' -- because '-MD' means "put the output
193
# Copy depcomp to subdir because otherwise we won't find it if we're
194
# using a relative directory.
195
cp "$am_depcomp" conftest.dir
197
# We will build objects and dependencies in a subdirectory because
198
# it helps to detect inapplicable dependency modes. For instance
199
# both Tru64's cc and ICC support -MD to output dependencies as a
200
# side effect of compilation, but ICC will put the dependencies in
201
# the current directory while Tru64 will put them in the object
205
am_cv_$1_dependencies_compiler_type=none
206
if test "$am_compiler_list" = ""; then
207
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
427
prefix="$glib_save_prefix"
428
exec_prefix="$glib_save_exec_prefix"
429
datarootdir="$glib_save_datarootdir"
430
AC_DEFINE_UNQUOTED($1, "$localedir",
431
[Define the location where the catalogs will be installed])
435
dnl Now the definitions that aclocal will find
437
ifdef(glib_configure_ac,[],[
438
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
439
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
442
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
444
# Create a temporary file with TEST-FILE as its contents and pass the
445
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
446
# 0 and perform ACTION-IF-FAIL for any other exit status.
447
AC_DEFUN([GLIB_RUN_PROG],
448
[cat >conftest.foo <<_ACEOF
451
if AC_RUN_LOG([$1 conftest.foo]); then
452
m4_ifval([$3], [$3], [:])
453
m4_ifvaln([$4], [else $4])dnl
454
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
455
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
464
dnl GNOME_COMMON_INIT
466
AU_DEFUN([GNOME_COMMON_INIT],
468
dnl this macro should come after AC_CONFIG_MACRO_DIR
469
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
471
dnl ensure that when the Automake generated makefile calls aclocal,
472
dnl it honours the $ACLOCAL_FLAGS environment variable
473
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
474
if test -n "$ac_macro_dir"; then
475
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
211
[case " $depcc " in #(
212
*\ -arch\ *\ -arch\ *) am__universal=true ;;
215
[case " $depcc " in #(
216
*\ -arch\ *\ -arch\ *) am__universal=true ;;
219
for depmode in $am_compiler_list; do
220
# Setup a source with many dependencies, because some compilers
221
# like to wrap large dependency lists on column 80 (with \), and
222
# we should not choose a depcomp mode which is confused by this.
224
# We need to recreate these files for each test, as the compiler may
225
# overwrite some of them when testing with obscure command lines.
226
# This happens at least with the AIX C compiler.
228
for i in 1 2 3 4 5 6; do
229
echo '#include "conftst'$i'.h"' >> sub/conftest.c
230
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
231
# Solaris 10 /bin/sh.
232
echo '/* dummy */' > sub/conftst$i.h
234
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
236
# We check with '-c' and '-o' for the sake of the "dashmstdout"
237
# mode. It turns out that the SunPro C++ compiler does not properly
238
# handle '-M -o', and we need to detect this. Also, some Intel
239
# versions had trouble with output in subdirs.
240
am__obj=sub/conftest.${OBJEXT-o}
241
am__minus_obj="-o $am__obj"
244
# This depmode causes a compiler race in universal mode.
245
test "$am__universal" = false || continue
248
# After this tag, mechanisms are not by side-effect, so they'll
249
# only be used when explicitly requested.
250
if test "x$enable_dependency_tracking" = xyes; then
256
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
257
# This compiler won't grok '-c -o', but also, the minuso test has
258
# not run yet. These depmodes are late enough in the game, and
259
# so weak that their functioning should not be impacted.
260
am__obj=conftest.${OBJEXT-o}
478
AC_SUBST([ACLOCAL_AMFLAGS])
480
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
481
in your top-level Makefile.am, instead, where "m4" is the macro directory set
482
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
484
AC_DEFUN([GNOME_DEBUG_CHECK],
486
AC_ARG_ENABLE([debug],
487
AC_HELP_STRING([--enable-debug],
488
[turn on debugging]),,
491
if test x$enable_debug = xyes ; then
492
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
493
[Enable additional debugging at the expense of performance and size])
497
dnl GNOME_MAINTAINER_MODE_DEFINES ()
498
dnl define DISABLE_DEPRECATED
500
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
502
AC_REQUIRE([AM_MAINTAINER_MODE])
504
DISABLE_DEPRECATED=""
505
if test $USE_MAINTAINER_MODE = yes; then
506
DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
507
for DOMAIN in $DOMAINS; do
508
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
512
AC_SUBST(DISABLE_DEPRECATED)
515
# gnome-compiler-flags.m4
520
dnl GNOME_COMPILE_WARNINGS
521
dnl Turn on many useful compiler warnings and substitute the result into
523
dnl For now, only works on GCC
524
dnl Pass the default value of the --enable-compile-warnings configure option as
525
dnl the first argument to the macro, defaulting to 'yes'.
526
dnl Additional warning/error flags can be passed as an optional second argument.
528
dnl For example: GNOME_COMPILE_WARNINGS([maximum],[-Werror=some-flag -Wfoobar])
529
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
530
dnl ******************************
531
dnl More compiler warnings
532
dnl ******************************
534
AC_ARG_ENABLE(compile-warnings,
535
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
536
[Turn on compiler warnings]),,
537
[enable_compile_warnings="m4_default([$1],[yes])"])
539
if test "x$GCC" != xyes; then
540
enable_compile_warnings=no
544
realsave_CFLAGS="$CFLAGS"
546
dnl These are warning flags that aren't marked as fatal. Can be
547
dnl overridden on a per-project basis with -Wno-foo.
550
-Wstrict-prototypes \
554
dnl These compiler flags typically indicate very broken or suspicious
555
dnl code. Some of them such as implicit-function-declaration are
556
dnl just not default because gcc compiles a lot of legacy code.
557
dnl We choose to make this set into explicit errors.
559
-Werror=missing-prototypes \
560
-Werror=implicit-function-declaration \
561
-Werror=pointer-arith \
563
-Werror=format-security \
565
-Werror=missing-include-dirs \
568
dnl Additional warning or error flags provided by the module author to
569
dnl allow stricter standards to be imposed on a per-module basis.
570
dnl The author can pass -W or -Werror flags here as they see fit.
571
additional_flags="m4_default([$2],[])"
573
case "$enable_compile_warnings" in
578
warning_flags="-Wall"
581
warning_flags="$base_warn_flags $base_error_flags $additional_flags"
584
warning_flags="$base_warn_flags $base_error_flags $additional_flags"
587
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
265
if depmode=$depmode \
266
source=sub/conftest.c object=$am__obj \
267
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
268
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
269
>/dev/null 2>conftest.err &&
270
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
271
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
272
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
273
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
274
# icc doesn't choke on unknown options, it will just issue warnings
275
# or remarks (even with -Werror). So we grep stderr for any message
276
# that says an option was ignored or not supported.
277
# When given -MP, icc 7.0 and 7.1 complain thusly:
278
# icc: Command line warning: ignoring option '-M'; no argument required
279
# The diagnosis changed in icc 8.0:
280
# icc: Command line remark: option '-MP' not supported
281
if (grep 'ignoring option' conftest.err ||
282
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
283
am_cv_$1_dependencies_compiler_type=$depmode
591
if test "$enable_compile_warnings" = "error" ; then
592
warning_flags="$warning_flags -Werror"
595
dnl Check whether GCC supports the warning options
596
for option in $warning_flags; do
597
save_CFLAGS="$CFLAGS"
598
CFLAGS="$CFLAGS $option"
599
AC_MSG_CHECKING([whether gcc understands $option])
600
AC_TRY_COMPILE([], [],
603
CFLAGS="$save_CFLAGS"
604
AC_MSG_RESULT([$has_option])
605
if test $has_option = yes; then
606
tested_warning_flags="$tested_warning_flags $option"
612
CFLAGS="$realsave_CFLAGS"
613
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
614
AC_MSG_RESULT($tested_warning_flags)
617
AC_HELP_STRING([--enable-iso-c],
618
[Try to warn if code is not ISO C ]),,
621
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
623
if test "x$enable_iso_c" != "xno"; then
624
if test "x$GCC" = "xyes"; then
626
*[\ \ ]-ansi[\ \ ]*) ;;
627
*) complCFLAGS="$complCFLAGS -ansi" ;;
630
*[\ \ ]-pedantic[\ \ ]*) ;;
631
*) complCFLAGS="$complCFLAGS -pedantic" ;;
635
AC_MSG_RESULT($complCFLAGS)
637
WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
638
AC_SUBST(WARN_CFLAGS)
641
dnl For C++, do basically the same thing.
643
AC_DEFUN([GNOME_CXX_WARNINGS],[
644
AC_ARG_ENABLE(cxx-warnings,
645
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
646
[Turn on compiler warnings.]),,
647
[enable_cxx_warnings="m4_default([$1],[minimum])"])
649
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
651
if test "x$GXX" != xyes; then
652
enable_cxx_warnings=no
654
if test "x$enable_cxx_warnings" != "xno"; then
655
if test "x$GXX" = "xyes"; then
656
case " $CXXFLAGS " in
657
*[\ \ ]-Wall[\ \ ]*) ;;
658
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
661
## -W is not all that useful. And it cannot be controlled
662
## with individual -Wno-xxx flags, unlike -Wall
663
if test "x$enable_cxx_warnings" = "xyes"; then
664
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
292
am_cv_$1_dependencies_compiler_type=none
295
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
296
AM_CONDITIONAL([am__fastdep$1], [
297
test "x$enable_dependency_tracking" != xno \
298
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
304
# Choose a directory name for dependency files.
305
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
306
AC_DEFUN([AM_SET_DEPDIR],
307
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
308
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
314
AC_DEFUN([AM_DEP_TRACK],
315
[AC_ARG_ENABLE([dependency-tracking], [dnl
317
[--enable-dependency-tracking],
318
[do not reject slow dependency extractors])
320
[--disable-dependency-tracking],
321
[speeds up one-time build])])
322
if test "x$enable_dependency_tracking" != xno; then
323
am_depcomp="$ac_aux_dir/depcomp"
327
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
328
AC_SUBST([AMDEPBACKSLASH])dnl
329
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
330
AC_SUBST([am__nodep])dnl
331
_AM_SUBST_NOTMAKE([am__nodep])dnl
334
# Generate code to set up dependency tracking. -*- Autoconf -*-
336
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
338
# This file is free software; the Free Software Foundation
339
# gives unlimited permission to copy and/or distribute it,
340
# with or without modifications, as long as this notice is preserved.
343
# _AM_OUTPUT_DEPENDENCY_COMMANDS
344
# ------------------------------
345
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
347
# Older Autoconf quotes --file arguments for eval, but not when files
348
# are listed without --file. Let's play safe and only enable the eval
349
# if we detect the quoting.
350
case $CONFIG_FILES in
351
*\'*) eval set x "$CONFIG_FILES" ;;
352
*) set x $CONFIG_FILES ;;
357
# Strip MF so we end up with the name of the file.
358
mf=`echo "$mf" | sed -e 's/:.*$//'`
359
# Check whether this is an Automake generated Makefile or not.
360
# We used to match only the files named 'Makefile.in', but
361
# some people rename them; so instead we look at the file content.
362
# Grep'ing the first line is not enough: some people post-process
363
# each Makefile.in and add a new line on top of each file to say so.
364
# Grep'ing the whole file is not good either: AIX grep has a line
365
# limit of 2048, but all sed's we know have understand at least 4000.
366
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
367
dirpart=`AS_DIRNAME("$mf")`
371
# Extract the definition of DEPDIR, am__include, and am__quote
372
# from the Makefile without running 'make'.
373
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
374
test -z "$DEPDIR" && continue
375
am__include=`sed -n 's/^am__include = //p' < "$mf"`
376
test -z "am__include" && continue
377
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
378
# Find all dependency output files, they are included files with
379
# $(DEPDIR) in their names. We invoke sed twice because it is the
380
# simplest approach to changing $(DEPDIR) to its actual value in the
382
for file in `sed -n "
383
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
384
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
385
# Make sure the directory exists.
386
test -f "$dirpart/$file" && continue
387
fdir=`AS_DIRNAME(["$file"])`
388
AS_MKDIR_P([$dirpart/$fdir])
389
# echo "creating $dirpart/$file"
390
echo '# dummy' > "$dirpart/$file"
394
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
397
# AM_OUTPUT_DEPENDENCY_COMMANDS
398
# -----------------------------
399
# This macro should only be invoked once -- use via AC_REQUIRE.
401
# This code is only required when automatic dependency tracking
402
# is enabled. FIXME. This creates each '.P' file that we will
403
# need in order to bootstrap the dependency handling code.
404
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
405
[AC_CONFIG_COMMANDS([depfiles],
406
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
407
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
410
# Do all the work for Automake. -*- Autoconf -*-
412
# Copyright (C) 1996-2013 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.
418
# This macro actually does too much. Some checks are only needed if
419
# your package does certain things. But this isn't really a big deal.
421
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
422
# AM_INIT_AUTOMAKE([OPTIONS])
423
# -----------------------------------------------
424
# The call with PACKAGE and VERSION arguments is the old style
425
# call (pre autoconf-2.50), which is being phased out. PACKAGE
426
# and VERSION should now be passed to AC_INIT and removed from
427
# the call to AM_INIT_AUTOMAKE.
428
# We support both call styles for the transition. After
429
# the next Automake release, Autoconf can make the AC_INIT
430
# arguments mandatory, and then we can depend on a new Autoconf
431
# release and drop the old call support.
432
AC_DEFUN([AM_INIT_AUTOMAKE],
433
[AC_PREREQ([2.65])dnl
434
dnl Autoconf wants to disallow AM_ names. We explicitly allow
435
dnl the ones we care about.
436
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
437
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
438
AC_REQUIRE([AC_PROG_INSTALL])dnl
439
if test "`cd $srcdir && pwd`" != "`pwd`"; then
440
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
441
# is not polluted with repeated "-I."
442
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
443
# test to see if srcdir already configured
444
if test -f $srcdir/config.status; then
445
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
449
# test whether we have cygpath
450
if test -z "$CYGPATH_W"; then
451
if (cygpath --version) >/dev/null 2>/dev/null; then
452
CYGPATH_W='cygpath -w'
457
AC_SUBST([CYGPATH_W])
459
# Define the identity of the package.
460
dnl Distinguish between old-style and new-style calls.
462
[AC_DIAGNOSE([obsolete],
463
[$0: two- and three-arguments forms are deprecated.])
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.
470
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
472
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
473
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
474
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
476
_AM_IF_OPTION([no-define],,
477
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
478
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
480
# Some tools Automake needs.
481
AC_REQUIRE([AM_SANITY_CHECK])dnl
482
AC_REQUIRE([AC_ARG_PROGRAM])dnl
483
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
484
AM_MISSING_PROG([AUTOCONF], [autoconf])
485
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
486
AM_MISSING_PROG([AUTOHEADER], [autoheader])
487
AM_MISSING_PROG([MAKEINFO], [makeinfo])
488
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
489
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
490
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
491
# For better backward compatibility. To be removed once Automake 1.9.x
492
# dies out for good. For more background, see:
493
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
494
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
495
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
496
# We need awk for the "check" target. The system "awk" is bad on
498
AC_REQUIRE([AC_PROG_AWK])dnl
499
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
500
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
501
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
502
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
503
[_AM_PROG_TAR([v7])])])
504
_AM_IF_OPTION([no-dependencies],,
505
[AC_PROVIDE_IFELSE([AC_PROG_CC],
506
[_AM_DEPENDENCIES([CC])],
507
[m4_define([AC_PROG_CC],
508
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
509
AC_PROVIDE_IFELSE([AC_PROG_CXX],
510
[_AM_DEPENDENCIES([CXX])],
511
[m4_define([AC_PROG_CXX],
512
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
513
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
514
[_AM_DEPENDENCIES([OBJC])],
515
[m4_define([AC_PROG_OBJC],
516
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
517
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
518
[_AM_DEPENDENCIES([OBJCXX])],
519
[m4_define([AC_PROG_OBJCXX],
520
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
522
AC_REQUIRE([AM_SILENT_RULES])dnl
523
dnl The testsuite driver may need to know about EXEEXT, so add the
524
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
525
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
526
AC_CONFIG_COMMANDS_PRE(dnl
527
[m4_provide_if([_AM_COMPILER_EXEEXT],
528
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
531
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
532
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
533
dnl mangled by Autoconf and run in a shell conditional statement.
534
m4_define([_AC_COMPILER_EXEEXT],
535
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
538
# When config.status generates a header, we must update the stamp-h file.
539
# This file resides in the same directory as the config header
540
# that is generated. The stamp files are numbered to have different names.
542
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
543
# loop where config.status creates the headers, so we can generate
544
# our stamp files there.
545
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
546
[# Compute $1's index in $config_headers.
549
for _am_header in $config_headers :; do
551
$_am_arg | $_am_arg:* )
554
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
557
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
559
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
561
# This file is free software; the Free Software Foundation
562
# gives unlimited permission to copy and/or distribute it,
563
# with or without modifications, as long as this notice is preserved.
567
# Define $install_sh.
568
AC_DEFUN([AM_PROG_INSTALL_SH],
569
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
570
if test x"${install_sh}" != xset; then
573
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
575
install_sh="\${SHELL} $am_aux_dir/install-sh"
578
AC_SUBST([install_sh])])
580
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
582
# This file is free software; the Free Software Foundation
583
# gives unlimited permission to copy and/or distribute it,
584
# with or without modifications, as long as this notice is preserved.
586
# Check whether the underlying file-system supports filenames
587
# with a leading dot. For instance MS-DOS doesn't.
588
AC_DEFUN([AM_SET_LEADING_DOT],
589
[rm -rf .tst 2>/dev/null
590
mkdir .tst 2>/dev/null
591
if test -d .tst; then
596
rmdir .tst 2>/dev/null
597
AC_SUBST([am__leading_dot])])
599
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
602
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
604
# This file is free software; the Free Software Foundation
605
# gives unlimited permission to copy and/or distribute it,
606
# with or without modifications, as long as this notice is preserved.
608
# AM_MAINTAINER_MODE([DEFAULT-MODE])
609
# ----------------------------------
610
# Control maintainer-specific portions of Makefiles.
611
# Default is to disable them, unless 'enable' is passed literally.
612
# For symmetry, 'disable' may be passed as well. Anyway, the user
613
# can override the default with the --enable/--disable switch.
614
AC_DEFUN([AM_MAINTAINER_MODE],
615
[m4_case(m4_default([$1], [disable]),
616
[enable], [m4_define([am_maintainer_other], [disable])],
617
[disable], [m4_define([am_maintainer_other], [enable])],
618
[m4_define([am_maintainer_other], [enable])
619
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
620
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
621
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
622
AC_ARG_ENABLE([maintainer-mode],
623
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
624
am_maintainer_other[ make rules and dependencies not useful
625
(and sometimes confusing) to the casual installer])],
626
[USE_MAINTAINER_MODE=$enableval],
627
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
628
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
629
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
630
MAINT=$MAINTAINER_MODE_TRUE
668
AC_MSG_RESULT($warnCXXFLAGS)
670
AC_ARG_ENABLE(iso-cxx,
671
AC_HELP_STRING([--enable-iso-cxx],
672
[Try to warn if code is not ISO C++ ]),,
675
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
677
if test "x$enable_iso_cxx" != "xno"; then
678
if test "x$GXX" = "xyes"; then
679
case " $CXXFLAGS " in
680
*[\ \ ]-ansi[\ \ ]*) ;;
681
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
684
case " $CXXFLAGS " in
685
*[\ \ ]-pedantic[\ \ ]*) ;;
686
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
690
AC_MSG_RESULT($complCXXFLAGS)
692
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
693
AC_SUBST(WARN_CXXFLAGS)
697
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
698
dnl the schema should be compiled
701
AC_DEFUN([GLIB_GSETTINGS],
703
m4_pattern_allow([AM_V_GEN])
704
AC_ARG_ENABLE(schemas-compile,
705
AS_HELP_STRING([--disable-schemas-compile],
706
[Disable regeneration of gschemas.compiled on install]),
707
[case ${enableval} in
708
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
709
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
710
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
712
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
713
PKG_PROG_PKG_CONFIG([0.16])
714
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
715
if test x$cross_compiling != xyes; then
716
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
718
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
720
AC_SUBST(GLIB_COMPILE_SCHEMAS)
721
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
722
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
724
ifelse([$1],,[:],[$1])
728
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
730
mostlyclean-am: clean-gsettings-schemas
732
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
734
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
735
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
737
all-am: $(gsettings_SCHEMAS:.xml=.valid)
738
uninstall-am: uninstall-gsettings-schemas
739
install-data-am: install-gsettings-schemas
741
.SECONDARY: $(gsettings_SCHEMAS)
743
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
745
if test -n "$^"; then \
746
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
747
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
748
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
751
uninstall-gsettings-schemas:
753
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
754
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
755
test -n "$$files" || exit 0; \
756
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
757
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
758
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
760
clean-gsettings-schemas:
761
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
763
ifdef gsettings_ENUM_NAMESPACE
764
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
765
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
768
_GSETTINGS_SUBST(GSETTINGS_RULES)
771
dnl _GSETTINGS_SUBST(VARIABLE)
772
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
773
AC_DEFUN([_GSETTINGS_SUBST],
776
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
635
# Check to see how 'make' treats includes. -*- Autoconf -*-
637
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
639
# This file is free software; the Free Software Foundation
640
# gives unlimited permission to copy and/or distribute it,
641
# with or without modifications, as long as this notice is preserved.
645
# Check to see how make treats includes.
646
AC_DEFUN([AM_MAKE_INCLUDE],
647
[am_make=${MAKE-make}
648
cat > confinc << 'END'
650
@echo this is the am__doit target
653
# If we don't find an include directive, just comment out the code.
654
AC_MSG_CHECKING([for style of include used by $am_make])
658
# First try GNU make style include.
659
echo "include confinc" > confmf
660
# Ignore all kinds of additional output from 'make'.
661
case `$am_make -s -f confmf 2> /dev/null` in #(
662
*the\ am__doit\ target*)
668
# Now try BSD make style include.
669
if test "$am__include" = "#"; then
670
echo '.include "confinc"' > confmf
671
case `$am_make -s -f confmf 2> /dev/null` in #(
672
*the\ am__doit\ target*)
679
AC_SUBST([am__include])
680
AC_SUBST([am__quote])
681
AC_MSG_RESULT([$_am_result])
685
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
687
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
689
# This file is free software; the Free Software Foundation
690
# gives unlimited permission to copy and/or distribute it,
691
# 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"}
702
# Define MISSING if not defined so far and test if it is modern enough.
703
# If it is, set am_missing_run to use it, otherwise, to nothing.
704
AC_DEFUN([AM_MISSING_HAS_RUN],
705
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
706
AC_REQUIRE_AUX_FILE([missing])dnl
707
if test x"${MISSING+set}" != xset; then
710
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
712
MISSING="\${SHELL} $am_aux_dir/missing" ;;
715
# Use eval to expand $SHELL
716
if eval "$MISSING --is-lightweight"; then
717
am_missing_run="$MISSING "
720
AC_MSG_WARN(['missing' script is too old or missing])
724
# Helper functions for option handling. -*- Autoconf -*-
726
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
728
# This file is free software; the Free Software Foundation
729
# gives unlimited permission to copy and/or distribute it,
730
# with or without modifications, as long as this notice is preserved.
732
# _AM_MANGLE_OPTION(NAME)
733
# -----------------------
734
AC_DEFUN([_AM_MANGLE_OPTION],
735
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
737
# _AM_SET_OPTION(NAME)
738
# --------------------
739
# Set option NAME. Presently that only means defining a flag for this option.
740
AC_DEFUN([_AM_SET_OPTION],
741
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
743
# _AM_SET_OPTIONS(OPTIONS)
744
# ------------------------
745
# OPTIONS is a space-separated list of Automake options.
746
AC_DEFUN([_AM_SET_OPTIONS],
747
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
749
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
750
# -------------------------------------------
751
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
752
AC_DEFUN([_AM_IF_OPTION],
753
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
755
# Check to make sure that the build environment is sane. -*- Autoconf -*-
757
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
759
# This file is free software; the Free Software Foundation
760
# gives unlimited permission to copy and/or distribute it,
761
# with or without modifications, as long as this notice is preserved.
765
AC_DEFUN([AM_SANITY_CHECK],
766
[AC_MSG_CHECKING([whether build environment is sane])
767
# Reject unsafe characters in $srcdir or the absolute working directory
768
# name. Accept space and tab only in the latter.
772
*[[\\\"\#\$\&\'\`$am_lf]]*)
773
AC_MSG_ERROR([unsafe absolute working directory name]);;
776
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
777
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
780
# Do 'set' in a subshell so we don't clobber the current shell's
781
# arguments. Must try -L first in case configure is actually a
782
# symlink; some systems play weird games with the mod time of symlinks
783
# (eg FreeBSD returns the mod time of the symlink's containing
787
for am_try in 1 2; do
788
echo "timestamp, slept: $am_has_slept" > conftest.file
789
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
790
if test "$[*]" = "X"; then
792
set X `ls -t "$srcdir/configure" conftest.file`
794
if test "$[*]" != "X $srcdir/configure conftest.file" \
795
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
797
# If neither matched, then we have a broken ls. This can happen
798
# if, for instance, CONFIG_SHELL is bash and it inherits a
799
# broken ls alias from the environment. This has actually
800
# happened. Such a system could not be considered "sane".
801
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
802
alias in your environment])
804
if test "$[2]" = conftest.file || test $am_try -eq 2; then
811
test "$[2]" = conftest.file
817
AC_MSG_ERROR([newly created file is older than distributed files!
818
Check your system clock])
821
# If we didn't sleep, we still need to ensure time stamps of config.status and
822
# generated files are strictly newer.
824
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
828
AC_CONFIG_COMMANDS_PRE(
829
[AC_MSG_CHECKING([that generated files are newer than configure])
830
if test -n "$am_sleep_pid"; then
831
# Hide warnings about reused PIDs.
832
wait $am_sleep_pid 2>/dev/null
834
AC_MSG_RESULT([done])])
838
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
840
# This file is free software; the Free Software Foundation
841
# gives unlimited permission to copy and/or distribute it,
842
# with or without modifications, as long as this notice is preserved.
844
# AM_SILENT_RULES([DEFAULT])
845
# --------------------------
846
# Enable less verbose build rules; with the default set to DEFAULT
847
# ("yes" being less verbose, "no" or empty being verbose).
848
AC_DEFUN([AM_SILENT_RULES],
849
[AC_ARG_ENABLE([silent-rules], [dnl
851
[--enable-silent-rules],
852
[less verbose build output (undo: "make V=1")])
854
[--disable-silent-rules],
855
[verbose build output (undo: "make V=0")])dnl
857
case $enable_silent_rules in @%:@ (((
858
yes) AM_DEFAULT_VERBOSITY=0;;
859
no) AM_DEFAULT_VERBOSITY=1;;
860
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
863
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
864
dnl do not support nested variable expansions.
865
dnl See automake bug#9928 and bug#10237.
867
AC_CACHE_CHECK([whether $am_make supports nested variables],
868
[am_cv_make_support_nested_variables],
869
[if AS_ECHO([['TRUE=$(BAR$(V))
875
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
876
am_cv_make_support_nested_variables=yes
878
am_cv_make_support_nested_variables=no
880
if test $am_cv_make_support_nested_variables = yes; then
881
dnl Using '$V' instead of '$(V)' breaks IRIX make.
883
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
885
AM_V=$AM_DEFAULT_VERBOSITY
886
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
889
AM_SUBST_NOTMAKE([AM_V])dnl
890
AC_SUBST([AM_DEFAULT_V])dnl
891
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
892
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
894
AC_SUBST([AM_BACKSLASH])dnl
895
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
898
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
900
# This file is free software; the Free Software Foundation
901
# gives unlimited permission to copy and/or distribute it,
902
# with or without modifications, as long as this notice is preserved.
904
# AM_PROG_INSTALL_STRIP
905
# ---------------------
906
# One issue with vendor 'install' (even GNU) is that you can't
907
# specify the program used to strip binaries. This is especially
908
# annoying in cross-compiling environments, where the build's strip
909
# is unlikely to handle the host's binaries.
910
# Fortunately install-sh will honor a STRIPPROG variable, so we
911
# always use install-sh in "make install-strip", and initialize
912
# STRIPPROG with the value of the STRIP variable (set by the user).
913
AC_DEFUN([AM_PROG_INSTALL_STRIP],
914
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
915
# Installed binaries are usually stripped using 'strip' when the user
916
# run "make install-strip". However 'strip' might not be the right
917
# tool to use in cross-compilation environments, therefore Automake
918
# will honor the 'STRIP' environment variable to overrule this program.
919
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
920
if test "$cross_compiling" != no; then
921
AC_CHECK_TOOL([STRIP], [strip], :)
923
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
924
AC_SUBST([INSTALL_STRIP_PROGRAM])])
926
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
928
# This file is free software; the Free Software Foundation
929
# gives unlimited permission to copy and/or distribute it,
930
# with or without modifications, as long as this notice is preserved.
932
# _AM_SUBST_NOTMAKE(VARIABLE)
933
# ---------------------------
934
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
935
# This macro is traced by Automake.
936
AC_DEFUN([_AM_SUBST_NOTMAKE])
938
# AM_SUBST_NOTMAKE(VARIABLE)
939
# --------------------------
940
# Public sister of _AM_SUBST_NOTMAKE.
941
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
943
# Check how to create a tarball. -*- Autoconf -*-
945
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
947
# This file is free software; the Free Software Foundation
948
# gives unlimited permission to copy and/or distribute it,
949
# with or without modifications, as long as this notice is preserved.
951
# _AM_PROG_TAR(FORMAT)
952
# --------------------
953
# Check how to create a tarball in format FORMAT.
954
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
956
# Substitute a variable $(am__tar) that is a command
957
# writing to stdout a FORMAT-tarball containing the directory
959
# tardir=directory && $(am__tar) > result.tar
961
# Substitute a variable $(am__untar) that extract such
962
# a tarball read from stdin.
963
# $(am__untar) < result.tar
964
AC_DEFUN([_AM_PROG_TAR],
965
[# Always define AMTAR for backward compatibility. Yes, it's still used
966
# in the wild :-( We should find a proper way to deprecate it ...
967
AC_SUBST([AMTAR], ['$${TAR-tar}'])
969
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
970
[m4_case([$1], [ustar],, [pax],,
971
[m4_fatal([Unknown tar format])])
972
AC_MSG_CHECKING([how to create a $1 tar archive])
973
# Loop over all known methods to create a tar archive until one works.
974
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
975
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
976
# Do not fold the above two line into one, because Tru64 sh and
977
# Solaris sh will not grok spaces in the rhs of '-'.
978
for _am_tool in $_am_tools
982
for _am_tar in tar gnutar gtar;
984
AM_RUN_LOG([$_am_tar --version]) && break
986
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
987
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
988
am__untar="$_am_tar -xf -"
991
# Must skip GNU tar: if it does not support --format= it doesn't create
992
# ustar tarball either.
993
(tar --version) >/dev/null 2>&1 && continue
994
am__tar='tar chf - "$$tardir"'
995
am__tar_='tar chf - "$tardir"'
999
am__tar='pax -L -x $1 -w "$$tardir"'
1000
am__tar_='pax -L -x $1 -w "$tardir"'
1004
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1005
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1006
am__untar='cpio -i -H $1 -d'
1015
# If the value was cached, stop now. We just wanted to have am__tar
1016
# and am__untar set.
1017
test -n "${am_cv_prog_tar_$1}" && break
1019
# tar/untar a dummy directory, and stop if the command works
1022
echo GrepMe > conftest.dir/file
1023
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1025
if test -s conftest.tar; then
1026
AM_RUN_LOG([$am__untar <conftest.tar])
1027
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1032
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1033
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1035
AC_SUBST([am__untar])
780
dnl -*- mode: autoconf -*-
785
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
786
AC_DEFUN([GTK_DOC_CHECK],
788
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
789
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
790
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
792
dnl check for tools we added during development
793
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
794
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
795
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
797
dnl for overriding the documentation installation directory
798
AC_ARG_WITH([html-dir],
799
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
800
[with_html_dir='${datadir}/gtk-doc/html'])
801
HTML_DIR="$with_html_dir"
804
dnl enable/disable documentation building
805
AC_ARG_ENABLE([gtk-doc],
806
AS_HELP_STRING([--enable-gtk-doc],
807
[use gtk-doc to build documentation [[default=no]]]),,
810
if test x$enable_gtk_doc = xyes; then
812
[PKG_CHECK_EXISTS([gtk-doc],,
813
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
814
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
815
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
816
dnl don't check for glib if we build glib
817
if test "x$PACKAGE_NAME" != "xglib"; then
818
dnl don't fail if someone does not have glib
819
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:])
823
AC_MSG_CHECKING([whether to build gtk-doc documentation])
824
AC_MSG_RESULT($enable_gtk_doc)
826
dnl enable/disable output formats
827
AC_ARG_ENABLE([gtk-doc-html],
828
AS_HELP_STRING([--enable-gtk-doc-html],
829
[build documentation in html format [[default=yes]]]),,
830
[enable_gtk_doc_html=yes])
831
AC_ARG_ENABLE([gtk-doc-pdf],
832
AS_HELP_STRING([--enable-gtk-doc-pdf],
833
[build documentation in pdf format [[default=no]]]),,
834
[enable_gtk_doc_pdf=no])
836
if test -z "$GTKDOC_MKPDF"; then
837
enable_gtk_doc_pdf=no
840
if test -z "$AM_DEFAULT_VERBOSITY"; then
841
AM_DEFAULT_VERBOSITY=1
843
AC_SUBST([AM_DEFAULT_VERBOSITY])
845
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
846
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
847
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
848
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
849
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
1039
853
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
10074
9894
m4_popdef([pkg_description])
10075
9895
]) dnl PKG_NOARCH_INSTALLDIR
10077
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
10078
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
10080
# This file is free software, distributed under the terms of the GNU
10081
# General Public License. As a special exception to the GNU General
10082
# Public License, this file may be distributed as part of a program
10083
# that contains a configuration script generated by Autoconf, under
10084
# the same distribution terms as the rest of that program.
10086
# This file can be copied and used freely without restrictions. It can
10087
# be used in projects which are not available under the GNU Public License
10088
# but which still want to provide support for the GNU gettext functionality.
10090
# Macro to add for using GNU gettext.
10091
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
10093
# Modified to never use included libintl.
10094
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
10096
# Major rework to remove unused code
10097
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
10099
# Added better handling of ALL_LINGUAS from GNU gettext version
10100
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
10102
# Modified to require ngettext
10103
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
10105
# We need this here as well, since someone might use autoconf-2.5x
10106
# to configure GLib then an older version to configure a package
10107
# using AM_GLIB_GNU_GETTEXT
10111
dnl We go to great lengths to make sure that aclocal won't
10112
dnl try to pull in the installed version of these macros
10113
dnl when running aclocal in the glib directory.
10115
m4_copy([AC_DEFUN],[glib_DEFUN])
10116
m4_copy([AC_REQUIRE],[glib_REQUIRE])
10118
dnl At the end, if we're not within glib, we'll define the public
10119
dnl definitions in terms of our private definitions.
10123
#--------------------
10124
glib_DEFUN([GLIB_LC_MESSAGES],
10125
[AC_CHECK_HEADERS([locale.h])
10126
if test $ac_cv_header_locale_h = yes; then
10127
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
10128
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
10129
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
10130
if test $am_cv_val_LC_MESSAGES = yes; then
10131
AC_DEFINE(HAVE_LC_MESSAGES, 1,
10132
[Define if your <locale.h> file defines LC_MESSAGES.])
10136
# GLIB_PATH_PROG_WITH_TEST
10137
#----------------------------
10138
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
10139
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
10140
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
10141
[# Extract the first word of "$2", so it can be a program name with args.
10142
set dummy $2; ac_word=[$]2
10143
AC_MSG_CHECKING([for $ac_word])
10144
AC_CACHE_VAL(ac_cv_path_$1,
10147
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
10150
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10151
for ac_dir in ifelse([$5], , $PATH, [$5]); do
10152
test -z "$ac_dir" && ac_dir=.
10153
if test -f $ac_dir/$ac_word; then
10155
ac_cv_path_$1="$ac_dir/$ac_word"
10161
dnl If no 4th arg is given, leave the cache variable unset,
10162
dnl so AC_PATH_PROGS will keep looking.
10163
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
10167
$1="$ac_cv_path_$1"
10168
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
10169
AC_MSG_RESULT([$]$1)
10178
glib_DEFUN([GLIB_WITH_NLS],
10179
dnl NLS is obligatory
10183
gt_cv_have_gettext=no
10189
AC_CHECK_HEADER(libintl.h,
10190
[gt_cv_func_dgettext_libintl="no"
10191
libintl_extra_libs=""
10194
# First check in libc
10196
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
10198
#include <libintl.h>
10200
[return !ngettext ("","", 1)],
10201
gt_cv_func_ngettext_libc=yes,
10202
gt_cv_func_ngettext_libc=no)
10205
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10206
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
10208
#include <libintl.h>
10210
[return !dgettext ("","")],
10211
gt_cv_func_dgettext_libc=yes,
10212
gt_cv_func_dgettext_libc=no)
10216
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
10217
AC_CHECK_FUNCS(bind_textdomain_codeset)
10221
# If we don't have everything we want, check in libintl
10223
if test "$gt_cv_func_dgettext_libc" != "yes" \
10224
|| test "$gt_cv_func_ngettext_libc" != "yes" \
10225
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
10227
AC_CHECK_LIB(intl, bindtextdomain,
10228
[AC_CHECK_LIB(intl, ngettext,
10229
[AC_CHECK_LIB(intl, dgettext,
10230
gt_cv_func_dgettext_libintl=yes)])])
10232
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10233
AC_MSG_CHECKING([if -liconv is needed to use gettext])
10235
AC_CHECK_LIB(intl, ngettext,
10236
[AC_CHECK_LIB(intl, dcgettext,
10237
[gt_cv_func_dgettext_libintl=yes
10238
libintl_extra_libs=-liconv],
10244
# If we found libintl, then check in it for bind_textdomain_codeset();
10245
# we'll prefer libc if neither have bind_textdomain_codeset(),
10246
# and both have dgettext and ngettext
10248
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10249
glib_save_LIBS="$LIBS"
10250
LIBS="$LIBS -lintl $libintl_extra_libs"
10251
unset ac_cv_func_bind_textdomain_codeset
10252
AC_CHECK_FUNCS(bind_textdomain_codeset)
10253
LIBS="$glib_save_LIBS"
10255
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10256
gt_cv_func_dgettext_libc=no
10258
if test "$gt_cv_func_dgettext_libc" = "yes" \
10259
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
10260
gt_cv_func_dgettext_libintl=no
10266
if test "$gt_cv_func_dgettext_libc" = "yes" \
10267
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
10268
gt_cv_have_gettext=yes
10271
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10272
INTLLIBS="-lintl $libintl_extra_libs"
10275
if test "$gt_cv_have_gettext" = "yes"; then
10276
AC_DEFINE(HAVE_GETTEXT,1,
10277
[Define if the GNU gettext() function is already present or preinstalled.])
10278
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
10279
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
10280
if test "$MSGFMT" != "no"; then
10281
glib_save_LIBS="$LIBS"
10282
LIBS="$LIBS $INTLLIBS"
10283
AC_CHECK_FUNCS(dcgettext)
10285
AC_MSG_CHECKING([if msgfmt accepts -c])
10286
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
10289
"Content-Type: text/plain; charset=UTF-8\n"
10290
"Project-Id-Version: test 1.0\n"
10291
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
10292
"Last-Translator: test <foo@bar.xx>\n"
10293
"Language-Team: C <LL@li.org>\n"
10294
"MIME-Version: 1.0\n"
10295
"Content-Transfer-Encoding: 8bit\n"
10296
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
10297
AC_SUBST(MSGFMT_OPTS)
10298
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
10299
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
10300
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
10301
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
10302
return _nl_msg_cat_cntr],
10304
DATADIRNAME=share],
10307
dnl On Solaris, if bind_textdomain_codeset is in libc,
10308
dnl GNU format message catalog is always supported,
10309
dnl since both are added to the libc all together.
10310
dnl Hence, we'd like to go with DATADIRNAME=share and
10311
dnl and CATOBJEXT=.gmo in this case.
10312
AC_CHECK_FUNC(bind_textdomain_codeset,
10314
DATADIRNAME=share],
10327
LIBS="$glib_save_LIBS"
10330
gt_cv_have_gettext=no
10335
if test "$gt_cv_have_gettext" = "yes" ; then
10336
AC_DEFINE(ENABLE_NLS, 1,
10337
[always defined to indicate that i18n is enabled])
10340
dnl Test whether we really found GNU xgettext.
10341
if test "$XGETTEXT" != ":"; then
10342
dnl If it is not GNU xgettext we define it as : so that the
10343
dnl Makefiles still can work.
10344
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10348
[found xgettext program is not GNU xgettext; ignore it])
10353
# We need to process the po/ directory.
10356
AC_OUTPUT_COMMANDS(
10357
[case "$CONFIG_FILES" in *po/Makefile.in*)
10358
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10361
dnl These rules are solely for the distribution goal. While doing this
10362
dnl we only have to keep exactly one list of the available catalogs
10363
dnl in configure.ac.
10364
for lang in $ALL_LINGUAS; do
10365
GMOFILES="$GMOFILES $lang.gmo"
10366
POFILES="$POFILES $lang.po"
10369
dnl Make all variables we use known to autoconf.
10371
AC_SUBST(CATOBJEXT)
10372
AC_SUBST(DATADIRNAME)
10374
AC_SUBST(INSTOBJEXT)
10376
AC_SUBST(PO_IN_DATADIR_TRUE)
10377
AC_SUBST(PO_IN_DATADIR_FALSE)
10382
# AM_GLIB_GNU_GETTEXT
10383
# -------------------
10384
# Do checks necessary for use of gettext. If a suitable implementation
10385
# of gettext is found in either in libintl or in the C library,
10386
# it will set INTLLIBS to the libraries needed for use of gettext
10387
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
10388
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
10389
# on various variables needed by the Makefile.in.in installed by
10392
glib_DEFUN([GLIB_GNU_GETTEXT],
10393
[AC_REQUIRE([AC_PROG_CC])dnl
10394
AC_REQUIRE([AC_HEADER_STDC])dnl
10399
if test "$gt_cv_have_gettext" = "yes"; then
10400
if test "x$ALL_LINGUAS" = "x"; then
10403
AC_MSG_CHECKING(for catalogs to be installed)
10405
for presentlang in $ALL_LINGUAS; do
10407
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10408
desiredlanguages="$LINGUAS"
10410
desiredlanguages="$ALL_LINGUAS"
10412
for desiredlang in $desiredlanguages; do
10413
# Use the presentlang catalog if desiredlang is
10414
# a. equal to presentlang, or
10415
# b. a variant of presentlang (because in this case,
10416
# presentlang can be used as a fallback for messages
10417
# which are not translated in the desiredlang catalog).
10418
case "$desiredlang" in
10419
"$presentlang"*) useit=yes;;
10422
if test $useit = yes; then
10423
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10426
LINGUAS=$NEW_LINGUAS
10427
AC_MSG_RESULT($LINGUAS)
10430
dnl Construct list of names of catalog files to be constructed.
10431
if test -n "$LINGUAS"; then
10432
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10436
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
10437
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
10438
dnl Try to locate is.
10440
if test -n "$ac_aux_dir"; then
10441
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10443
if test -z "$MKINSTALLDIRS"; then
10444
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10446
AC_SUBST(MKINSTALLDIRS)
10448
dnl Generate list of files to be processed by xgettext which will
10449
dnl be included in po/Makefile.
10450
test -d po || mkdir po
10451
if test "x$srcdir" != "x."; then
10452
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10453
posrcprefix="$srcdir/"
10455
posrcprefix="../$srcdir/"
10461
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10462
< $srcdir/po/POTFILES.in > po/POTFILES
10465
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
10466
# -------------------------------
10467
# Define VARIABLE to the location where catalog files will
10468
# be installed by po/Makefile.
10469
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
10470
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
10471
glib_save_prefix="$prefix"
10472
glib_save_exec_prefix="$exec_prefix"
10473
glib_save_datarootdir="$datarootdir"
10474
test "x$prefix" = xNONE && prefix=$ac_default_prefix
10475
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
10476
datarootdir=`eval echo "${datarootdir}"`
10477
if test "x$CATOBJEXT" = "x.mo" ; then
10478
localedir=`eval echo "${libdir}/locale"`
10480
localedir=`eval echo "${datadir}/locale"`
10482
prefix="$glib_save_prefix"
10483
exec_prefix="$glib_save_exec_prefix"
10484
datarootdir="$glib_save_datarootdir"
10485
AC_DEFINE_UNQUOTED($1, "$localedir",
10486
[Define the location where the catalogs will be installed])
10490
dnl Now the definitions that aclocal will find
10492
ifdef(glib_configure_ac,[],[
10493
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
10494
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
10497
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
10499
# Create a temporary file with TEST-FILE as its contents and pass the
10500
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
10501
# 0 and perform ACTION-IF-FAIL for any other exit status.
10502
AC_DEFUN([GLIB_RUN_PROG],
10503
[cat >conftest.foo <<_ACEOF
10506
if AC_RUN_LOG([$1 conftest.foo]); then
10507
m4_ifval([$3], [$3], [:])
10508
m4_ifvaln([$4], [else $4])dnl
10509
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
10510
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
10519
dnl GNOME_COMMON_INIT
10521
AU_DEFUN([GNOME_COMMON_INIT],
10523
dnl this macro should come after AC_CONFIG_MACRO_DIR
10524
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
10526
dnl ensure that when the Automake generated makefile calls aclocal,
10527
dnl it honours the $ACLOCAL_FLAGS environment variable
10528
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
10529
if test -n "$ac_macro_dir"; then
10530
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
10533
AC_SUBST([ACLOCAL_AMFLAGS])
10535
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}"
10536
in your top-level Makefile.am, instead, where "m4" is the macro directory set
10537
with AC_CONFIG_MACRO_DIR() in your configure.ac]])
10539
AC_DEFUN([GNOME_DEBUG_CHECK],
10541
AC_ARG_ENABLE([debug],
10542
AC_HELP_STRING([--enable-debug],
10543
[turn on debugging]),,
10546
if test x$enable_debug = xyes ; then
10547
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
10548
[Enable additional debugging at the expense of performance and size])
10552
dnl GNOME_MAINTAINER_MODE_DEFINES ()
10553
dnl define DISABLE_DEPRECATED
10555
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
10557
AC_REQUIRE([AM_MAINTAINER_MODE])
10559
DISABLE_DEPRECATED=""
10560
if test $USE_MAINTAINER_MODE = yes; then
10561
DOMAINS="GCONF BONOBO BONOBO_UI GNOME LIBGLADE GNOME_VFS WNCK LIBSOUP"
10562
for DOMAIN in $DOMAINS; do
10563
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
10567
AC_SUBST(DISABLE_DEPRECATED)
10570
dnl GNOME_COMPILE_WARNINGS
10571
dnl Turn on many useful compiler warnings and substitute the result into
10573
dnl For now, only works on GCC
10574
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
10575
dnl ******************************
10576
dnl More compiler warnings
10577
dnl ******************************
10579
AC_ARG_ENABLE(compile-warnings,
10580
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
10581
[Turn on compiler warnings]),,
10582
[enable_compile_warnings="m4_default([$1],[yes])"])
10584
if test "x$GCC" != xyes; then
10585
enable_compile_warnings=no
10589
realsave_CFLAGS="$CFLAGS"
10591
dnl These are warning flags that aren't marked as fatal. Can be
10592
dnl overridden on a per-project basis with -Wno-foo.
10593
base_warn_flags=" \
10595
-Wstrict-prototypes \
10599
dnl These compiler flags typically indicate very broken or suspicious
10600
dnl code. Some of them such as implicit-function-declaration are
10601
dnl just not default because gcc compiles a lot of legacy code.
10602
dnl We choose to make this set into explicit errors.
10603
base_error_flags=" \
10604
-Werror=missing-prototypes \
10605
-Werror=implicit-function-declaration \
10606
-Werror=pointer-arith \
10607
-Werror=init-self \
10608
-Werror=format-security \
10610
-Werror=missing-include-dirs \
10613
case "$enable_compile_warnings" in
10618
warning_flags="-Wall"
10621
warning_flags="$base_warn_flags $base_error_flags"
10624
warning_flags="$base_warn_flags $base_error_flags"
10627
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
10631
if test "$enable_compile_warnings" = "error" ; then
10632
warning_flags="$warning_flags -Werror"
10635
dnl Check whether GCC supports the warning options
10636
for option in $warning_flags; do
10637
save_CFLAGS="$CFLAGS"
10638
CFLAGS="$CFLAGS $option"
10639
AC_MSG_CHECKING([whether gcc understands $option])
10640
AC_TRY_COMPILE([], [],
10643
CFLAGS="$save_CFLAGS"
10644
AC_MSG_RESULT([$has_option])
10645
if test $has_option = yes; then
10646
tested_warning_flags="$tested_warning_flags $option"
10652
CFLAGS="$realsave_CFLAGS"
10653
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
10654
AC_MSG_RESULT($tested_warning_flags)
10656
AC_ARG_ENABLE(iso-c,
10657
AC_HELP_STRING([--enable-iso-c],
10658
[Try to warn if code is not ISO C ]),,
10661
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
10663
if test "x$enable_iso_c" != "xno"; then
10664
if test "x$GCC" = "xyes"; then
10665
case " $CFLAGS " in
10666
*[\ \ ]-ansi[\ \ ]*) ;;
10667
*) complCFLAGS="$complCFLAGS -ansi" ;;
10669
case " $CFLAGS " in
10670
*[\ \ ]-pedantic[\ \ ]*) ;;
10671
*) complCFLAGS="$complCFLAGS -pedantic" ;;
10675
AC_MSG_RESULT($complCFLAGS)
10677
WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
10678
AC_SUBST(WARN_CFLAGS)
10681
dnl For C++, do basically the same thing.
10683
AC_DEFUN([GNOME_CXX_WARNINGS],[
10684
AC_ARG_ENABLE(cxx-warnings,
10685
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
10686
[Turn on compiler warnings.]),,
10687
[enable_cxx_warnings="m4_default([$1],[minimum])"])
10689
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
10691
if test "x$GXX" != xyes; then
10692
enable_cxx_warnings=no
10694
if test "x$enable_cxx_warnings" != "xno"; then
10695
if test "x$GXX" = "xyes"; then
10696
case " $CXXFLAGS " in
10697
*[\ \ ]-Wall[\ \ ]*) ;;
10698
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
10701
## -W is not all that useful. And it cannot be controlled
10702
## with individual -Wno-xxx flags, unlike -Wall
10703
if test "x$enable_cxx_warnings" = "xyes"; then
10704
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
10708
AC_MSG_RESULT($warnCXXFLAGS)
10710
AC_ARG_ENABLE(iso-cxx,
10711
AC_HELP_STRING([--enable-iso-cxx],
10712
[Try to warn if code is not ISO C++ ]),,
10713
[enable_iso_cxx=no])
10715
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
10717
if test "x$enable_iso_cxx" != "xno"; then
10718
if test "x$GXX" = "xyes"; then
10719
case " $CXXFLAGS " in
10720
*[\ \ ]-ansi[\ \ ]*) ;;
10721
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
10724
case " $CXXFLAGS " in
10725
*[\ \ ]-pedantic[\ \ ]*) ;;
10726
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
10730
AC_MSG_RESULT($complCXXFLAGS)
10732
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
10733
AC_SUBST(WARN_CXXFLAGS)
10737
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether
10738
dnl the schema should be compiled
10741
AC_DEFUN([GLIB_GSETTINGS],
10743
m4_pattern_allow([AM_V_GEN])
10744
AC_ARG_ENABLE(schemas-compile,
10745
AS_HELP_STRING([--disable-schemas-compile],
10746
[Disable regeneration of gschemas.compiled on install]),
10747
[case ${enableval} in
10748
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
10749
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
10750
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;;
10752
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE])
10753
PKG_PROG_PKG_CONFIG([0.16])
10754
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas])
10755
if test x$cross_compiling != xyes; then
10756
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0`
10758
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas)
10760
AC_SUBST(GLIB_COMPILE_SCHEMAS)
10761
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then
10762
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2])
10764
ifelse([$1],,[:],[$1])
10768
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
10770
mostlyclean-am: clean-gsettings-schemas
10772
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
10774
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
10775
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
10777
all-am: $(gsettings_SCHEMAS:.xml=.valid)
10778
uninstall-am: uninstall-gsettings-schemas
10779
install-data-am: install-gsettings-schemas
10781
.SECONDARY: $(gsettings_SCHEMAS)
10783
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
10785
if test -n "$^"; then \
10786
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
10787
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
10788
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
10791
uninstall-gsettings-schemas:
10792
@$(NORMAL_UNINSTALL)
10793
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \
10794
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \
10795
test -n "$$files" || exit 0; \
10796
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \
10797
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
10798
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
10800
clean-gsettings-schemas:
10801
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
10803
ifdef gsettings_ENUM_NAMESPACE
10804
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
10805
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@
10808
_GSETTINGS_SUBST(GSETTINGS_RULES)
10811
dnl _GSETTINGS_SUBST(VARIABLE)
10812
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
10813
AC_DEFUN([_GSETTINGS_SUBST],
10816
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
10820
dnl -*- mode: autoconf -*-
10825
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
10826
AC_DEFUN([GTK_DOC_CHECK],
10828
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
10829
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10830
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
10832
dnl check for tools we added during development
10833
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
10834
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
10835
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
10837
dnl for overriding the documentation installation directory
10838
AC_ARG_WITH([html-dir],
10839
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
10840
[with_html_dir='${datadir}/gtk-doc/html'])
10841
HTML_DIR="$with_html_dir"
10842
AC_SUBST([HTML_DIR])
10844
dnl enable/disable documentation building
10845
AC_ARG_ENABLE([gtk-doc],
10846
AS_HELP_STRING([--enable-gtk-doc],
10847
[use gtk-doc to build documentation [[default=no]]]),,
10848
[enable_gtk_doc=no])
10850
if test x$enable_gtk_doc = xyes; then
10852
[PKG_CHECK_EXISTS([gtk-doc],,
10853
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
10854
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
10855
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
10856
dnl don't check for glib if we build glib
10857
if test "x$PACKAGE_NAME" != "xglib"; then
10858
dnl don't fail if someone does not have glib
10859
PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,[:])
10863
AC_MSG_CHECKING([whether to build gtk-doc documentation])
10864
AC_MSG_RESULT($enable_gtk_doc)
10866
dnl enable/disable output formats
10867
AC_ARG_ENABLE([gtk-doc-html],
10868
AS_HELP_STRING([--enable-gtk-doc-html],
10869
[build documentation in html format [[default=yes]]]),,
10870
[enable_gtk_doc_html=yes])
10871
AC_ARG_ENABLE([gtk-doc-pdf],
10872
AS_HELP_STRING([--enable-gtk-doc-pdf],
10873
[build documentation in pdf format [[default=no]]]),,
10874
[enable_gtk_doc_pdf=no])
10876
if test -z "$GTKDOC_MKPDF"; then
10877
enable_gtk_doc_pdf=no
10880
if test -z "$AM_DEFAULT_VERBOSITY"; then
10881
AM_DEFAULT_VERBOSITY=1
10883
AC_SUBST([AM_DEFAULT_VERBOSITY])
10885
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
10886
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
10887
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
10888
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
10889
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
9898
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9899
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9900
# -------------------------------------------
9901
# Retrieves the value of the pkg-config variable for the given module.
9902
AC_DEFUN([PKG_CHECK_VAR],
9903
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9904
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
9906
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
9907
AS_VAR_COPY([$1], [pkg_cv_][$1])
9909
AS_VAR_IF([$1], [""], [$5], [$4])dnl
10892
9912
AC_DEFUN([YELP_HELP_INIT],
11084
10105
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
10108
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
10110
# This file is free software; the Free Software Foundation
10111
# gives unlimited permission to copy and/or distribute it,
10112
# with or without modifications, as long as this notice is preserved.
10114
# AM_AUTOMAKE_VERSION(VERSION)
10115
# ----------------------------
10116
# Automake X.Y traces this macro to ensure aclocal.m4 has been
10117
# generated from the m4 files accompanying Automake X.Y.
10118
# (This private macro should not be called outside this file.)
10119
AC_DEFUN([AM_AUTOMAKE_VERSION],
10120
[am__api_version='1.13'
10121
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
10122
dnl require some minimum version. Point them to the right macro.
10123
m4_if([$1], [1.13.4], [],
10124
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
10127
# _AM_AUTOCONF_VERSION(VERSION)
10128
# -----------------------------
10129
# aclocal traces this macro to find the Autoconf version.
10130
# This is a private macro too. Using m4_define simplifies
10131
# the logic in aclocal, which can simply ignore this definition.
10132
m4_define([_AM_AUTOCONF_VERSION], [])
10134
# AM_SET_CURRENT_AUTOMAKE_VERSION
10135
# -------------------------------
10136
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
10137
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
10138
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
10139
[AM_AUTOMAKE_VERSION([1.13.4])dnl
10140
m4_ifndef([AC_AUTOCONF_VERSION],
10141
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
10142
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
10144
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
10146
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10148
# This file is free software; the Free Software Foundation
10149
# gives unlimited permission to copy and/or distribute it,
10150
# with or without modifications, as long as this notice is preserved.
10152
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
10153
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
10154
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
10156
# Of course, Automake must honor this variable whenever it calls a
10157
# tool from the auxiliary directory. The problem is that $srcdir (and
10158
# therefore $ac_aux_dir as well) can be either absolute or relative,
10159
# depending on how configure is run. This is pretty annoying, since
10160
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
10161
# source directory, any form will work fine, but in subdirectories a
10162
# relative path needs to be adjusted first.
10164
# $ac_aux_dir/missing
10165
# fails when called from a subdirectory if $ac_aux_dir is relative
10166
# $top_srcdir/$ac_aux_dir/missing
10167
# fails if $ac_aux_dir is absolute,
10168
# fails when called from a subdirectory in a VPATH build with
10169
# a relative $ac_aux_dir
10171
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
10172
# are both prefixed by $srcdir. In an in-source build this is usually
10173
# harmless because $srcdir is '.', but things will broke when you
10174
# start a VPATH build or use an absolute $srcdir.
10176
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
10177
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
10178
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
10179
# and then we would define $MISSING as
10180
# MISSING="\${SHELL} $am_aux_dir/missing"
10181
# This will work as long as MISSING is not called from configure, because
10182
# unfortunately $(top_srcdir) has no meaning in configure.
10183
# However there are other variables, like CC, which are often used in
10184
# configure, and could therefore not use this "fixed" $ac_aux_dir.
10186
# Another solution, used here, is to always expand $ac_aux_dir to an
10187
# absolute PATH. The drawback is that using absolute paths prevent a
10188
# configured tree to be moved without reconfiguration.
10190
AC_DEFUN([AM_AUX_DIR_EXPAND],
10191
[dnl Rely on autoconf to set up CDPATH properly.
10192
AC_PREREQ([2.50])dnl
10193
# expand $ac_aux_dir to an absolute path
10194
am_aux_dir=`cd $ac_aux_dir && pwd`
10197
# AM_CONDITIONAL -*- Autoconf -*-
10199
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
10201
# This file is free software; the Free Software Foundation
10202
# gives unlimited permission to copy and/or distribute it,
10203
# with or without modifications, as long as this notice is preserved.
10205
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
10206
# -------------------------------------
10207
# Define a conditional.
10208
AC_DEFUN([AM_CONDITIONAL],
10209
[AC_PREREQ([2.52])dnl
10210
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
10211
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
10212
AC_SUBST([$1_TRUE])dnl
10213
AC_SUBST([$1_FALSE])dnl
10214
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
10215
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
10216
m4_define([_AM_COND_VALUE_$1], [$2])dnl
10224
AC_CONFIG_COMMANDS_PRE(
10225
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
10226
AC_MSG_ERROR([[conditional "$1" was never defined.
10227
Usually this means the macro was only invoked conditionally.]])
10230
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10232
# This file is free software; the Free Software Foundation
10233
# gives unlimited permission to copy and/or distribute it,
10234
# with or without modifications, as long as this notice is preserved.
10237
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
10238
# written in clear, in which case automake, when reading aclocal.m4,
10239
# will think it sees a *use*, and therefore will trigger all it's
10240
# C support machinery. Also note that it means that autoscan, seeing
10241
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
10244
# _AM_DEPENDENCIES(NAME)
10245
# ----------------------
10246
# See how the compiler implements dependency checking.
10247
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
10248
# We try a few techniques and use that to set a single cache variable.
10250
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
10251
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
10252
# dependency, and given that the user is not expected to run this macro,
10253
# just rely on AC_PROG_CC.
10254
AC_DEFUN([_AM_DEPENDENCIES],
10255
[AC_REQUIRE([AM_SET_DEPDIR])dnl
10256
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
10257
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
10258
AC_REQUIRE([AM_DEP_TRACK])dnl
10260
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
10261
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
10262
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
10263
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
10264
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
10265
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
10266
[depcc="$$1" am_compiler_list=])
10268
AC_CACHE_CHECK([dependency style of $depcc],
10269
[am_cv_$1_dependencies_compiler_type],
10270
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10271
# We make a subdir and do the tests there. Otherwise we can end up
10272
# making bogus files that we don't know about and never remove. For
10273
# instance it was reported that on HP-UX the gcc test will end up
10274
# making a dummy file named 'D' -- because '-MD' means "put the output
10276
rm -rf conftest.dir
10278
# Copy depcomp to subdir because otherwise we won't find it if we're
10279
# using a relative directory.
10280
cp "$am_depcomp" conftest.dir
10282
# We will build objects and dependencies in a subdirectory because
10283
# it helps to detect inapplicable dependency modes. For instance
10284
# both Tru64's cc and ICC support -MD to output dependencies as a
10285
# side effect of compilation, but ICC will put the dependencies in
10286
# the current directory while Tru64 will put them in the object
10290
am_cv_$1_dependencies_compiler_type=none
10291
if test "$am_compiler_list" = ""; then
10292
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
10294
am__universal=false
10295
m4_case([$1], [CC],
10296
[case " $depcc " in #(
10297
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10300
[case " $depcc " in #(
10301
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10304
for depmode in $am_compiler_list; do
10305
# Setup a source with many dependencies, because some compilers
10306
# like to wrap large dependency lists on column 80 (with \), and
10307
# we should not choose a depcomp mode which is confused by this.
10309
# We need to recreate these files for each test, as the compiler may
10310
# overwrite some of them when testing with obscure command lines.
10311
# This happens at least with the AIX C compiler.
10313
for i in 1 2 3 4 5 6; do
10314
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10315
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
10316
# Solaris 10 /bin/sh.
10317
echo '/* dummy */' > sub/conftst$i.h
10319
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10321
# We check with '-c' and '-o' for the sake of the "dashmstdout"
10322
# mode. It turns out that the SunPro C++ compiler does not properly
10323
# handle '-M -o', and we need to detect this. Also, some Intel
10324
# versions had trouble with output in subdirs.
10325
am__obj=sub/conftest.${OBJEXT-o}
10326
am__minus_obj="-o $am__obj"
10329
# This depmode causes a compiler race in universal mode.
10330
test "$am__universal" = false || continue
10333
# After this tag, mechanisms are not by side-effect, so they'll
10334
# only be used when explicitly requested.
10335
if test "x$enable_dependency_tracking" = xyes; then
10341
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10342
# This compiler won't grok '-c -o', but also, the minuso test has
10343
# not run yet. These depmodes are late enough in the game, and
10344
# so weak that their functioning should not be impacted.
10345
am__obj=conftest.${OBJEXT-o}
10350
if depmode=$depmode \
10351
source=sub/conftest.c object=$am__obj \
10352
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10353
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10354
>/dev/null 2>conftest.err &&
10355
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10356
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10357
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10358
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10359
# icc doesn't choke on unknown options, it will just issue warnings
10360
# or remarks (even with -Werror). So we grep stderr for any message
10361
# that says an option was ignored or not supported.
10362
# When given -MP, icc 7.0 and 7.1 complain thusly:
10363
# icc: Command line warning: ignoring option '-M'; no argument required
10364
# The diagnosis changed in icc 8.0:
10365
# icc: Command line remark: option '-MP' not supported
10366
if (grep 'ignoring option' conftest.err ||
10367
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10368
am_cv_$1_dependencies_compiler_type=$depmode
10375
rm -rf conftest.dir
10377
am_cv_$1_dependencies_compiler_type=none
10380
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
10381
AM_CONDITIONAL([am__fastdep$1], [
10382
test "x$enable_dependency_tracking" != xno \
10383
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
10389
# Choose a directory name for dependency files.
10390
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
10391
AC_DEFUN([AM_SET_DEPDIR],
10392
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10393
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
10399
AC_DEFUN([AM_DEP_TRACK],
10400
[AC_ARG_ENABLE([dependency-tracking], [dnl
10402
[--enable-dependency-tracking],
10403
[do not reject slow dependency extractors])
10405
[--disable-dependency-tracking],
10406
[speeds up one-time build])])
10407
if test "x$enable_dependency_tracking" != xno; then
10408
am_depcomp="$ac_aux_dir/depcomp"
10412
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
10413
AC_SUBST([AMDEPBACKSLASH])dnl
10414
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
10415
AC_SUBST([am__nodep])dnl
10416
_AM_SUBST_NOTMAKE([am__nodep])dnl
10419
# Generate code to set up dependency tracking. -*- Autoconf -*-
10421
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10423
# This file is free software; the Free Software Foundation
10424
# gives unlimited permission to copy and/or distribute it,
10425
# with or without modifications, as long as this notice is preserved.
10428
# _AM_OUTPUT_DEPENDENCY_COMMANDS
10429
# ------------------------------
10430
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
10432
# Older Autoconf quotes --file arguments for eval, but not when files
10433
# are listed without --file. Let's play safe and only enable the eval
10434
# if we detect the quoting.
10435
case $CONFIG_FILES in
10436
*\'*) eval set x "$CONFIG_FILES" ;;
10437
*) set x $CONFIG_FILES ;;
10442
# Strip MF so we end up with the name of the file.
10443
mf=`echo "$mf" | sed -e 's/:.*$//'`
10444
# Check whether this is an Automake generated Makefile or not.
10445
# We used to match only the files named 'Makefile.in', but
10446
# some people rename them; so instead we look at the file content.
10447
# Grep'ing the first line is not enough: some people post-process
10448
# each Makefile.in and add a new line on top of each file to say so.
10449
# Grep'ing the whole file is not good either: AIX grep has a line
10450
# limit of 2048, but all sed's we know have understand at least 4000.
10451
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10452
dirpart=`AS_DIRNAME("$mf")`
10456
# Extract the definition of DEPDIR, am__include, and am__quote
10457
# from the Makefile without running 'make'.
10458
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10459
test -z "$DEPDIR" && continue
10460
am__include=`sed -n 's/^am__include = //p' < "$mf"`
10461
test -z "$am__include" && continue
10462
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10463
# Find all dependency output files, they are included files with
10464
# $(DEPDIR) in their names. We invoke sed twice because it is the
10465
# simplest approach to changing $(DEPDIR) to its actual value in the
10467
for file in `sed -n "
10468
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10469
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10470
# Make sure the directory exists.
10471
test -f "$dirpart/$file" && continue
10472
fdir=`AS_DIRNAME(["$file"])`
10473
AS_MKDIR_P([$dirpart/$fdir])
10474
# echo "creating $dirpart/$file"
10475
echo '# dummy' > "$dirpart/$file"
10479
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
10482
# AM_OUTPUT_DEPENDENCY_COMMANDS
10483
# -----------------------------
10484
# This macro should only be invoked once -- use via AC_REQUIRE.
10486
# This code is only required when automatic dependency tracking
10487
# is enabled. FIXME. This creates each '.P' file that we will
10488
# need in order to bootstrap the dependency handling code.
10489
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
10490
[AC_CONFIG_COMMANDS([depfiles],
10491
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
10492
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
10495
# Do all the work for Automake. -*- Autoconf -*-
10497
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10499
# This file is free software; the Free Software Foundation
10500
# gives unlimited permission to copy and/or distribute it,
10501
# with or without modifications, as long as this notice is preserved.
10503
# This macro actually does too much. Some checks are only needed if
10504
# your package does certain things. But this isn't really a big deal.
10506
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
10507
# AM_INIT_AUTOMAKE([OPTIONS])
10508
# -----------------------------------------------
10509
# The call with PACKAGE and VERSION arguments is the old style
10510
# call (pre autoconf-2.50), which is being phased out. PACKAGE
10511
# and VERSION should now be passed to AC_INIT and removed from
10512
# the call to AM_INIT_AUTOMAKE.
10513
# We support both call styles for the transition. After
10514
# the next Automake release, Autoconf can make the AC_INIT
10515
# arguments mandatory, and then we can depend on a new Autoconf
10516
# release and drop the old call support.
10517
AC_DEFUN([AM_INIT_AUTOMAKE],
10518
[AC_PREREQ([2.65])dnl
10519
dnl Autoconf wants to disallow AM_ names. We explicitly allow
10520
dnl the ones we care about.
10521
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
10522
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
10523
AC_REQUIRE([AC_PROG_INSTALL])dnl
10524
if test "`cd $srcdir && pwd`" != "`pwd`"; then
10525
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10526
# is not polluted with repeated "-I."
10527
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
10528
# test to see if srcdir already configured
10529
if test -f $srcdir/config.status; then
10530
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
10534
# test whether we have cygpath
10535
if test -z "$CYGPATH_W"; then
10536
if (cygpath --version) >/dev/null 2>/dev/null; then
10537
CYGPATH_W='cygpath -w'
10542
AC_SUBST([CYGPATH_W])
10544
# Define the identity of the package.
10545
dnl Distinguish between old-style and new-style calls.
10547
[AC_DIAGNOSE([obsolete],
10548
[$0: two- and three-arguments forms are deprecated.])
10549
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
10550
AC_SUBST([PACKAGE], [$1])dnl
10551
AC_SUBST([VERSION], [$2])],
10552
[_AM_SET_OPTIONS([$1])dnl
10553
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
10555
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
10557
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
10558
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
10559
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
10561
_AM_IF_OPTION([no-define],,
10562
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
10563
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
10565
# Some tools Automake needs.
10566
AC_REQUIRE([AM_SANITY_CHECK])dnl
10567
AC_REQUIRE([AC_ARG_PROGRAM])dnl
10568
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
10569
AM_MISSING_PROG([AUTOCONF], [autoconf])
10570
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
10571
AM_MISSING_PROG([AUTOHEADER], [autoheader])
10572
AM_MISSING_PROG([MAKEINFO], [makeinfo])
10573
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10574
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
10575
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10576
# For better backward compatibility. To be removed once Automake 1.9.x
10577
# dies out for good. For more background, see:
10578
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
10579
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
10580
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
10581
# We need awk for the "check" target. The system "awk" is bad on
10583
AC_REQUIRE([AC_PROG_AWK])dnl
10584
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
10585
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
10586
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
10587
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
10588
[_AM_PROG_TAR([v7])])])
10589
_AM_IF_OPTION([no-dependencies],,
10590
[AC_PROVIDE_IFELSE([AC_PROG_CC],
10591
[_AM_DEPENDENCIES([CC])],
10592
[m4_define([AC_PROG_CC],
10593
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
10594
AC_PROVIDE_IFELSE([AC_PROG_CXX],
10595
[_AM_DEPENDENCIES([CXX])],
10596
[m4_define([AC_PROG_CXX],
10597
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
10598
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
10599
[_AM_DEPENDENCIES([OBJC])],
10600
[m4_define([AC_PROG_OBJC],
10601
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
10602
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
10603
[_AM_DEPENDENCIES([OBJCXX])],
10604
[m4_define([AC_PROG_OBJCXX],
10605
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
10607
AC_REQUIRE([AM_SILENT_RULES])dnl
10608
dnl The testsuite driver may need to know about EXEEXT, so add the
10609
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
10610
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
10611
AC_CONFIG_COMMANDS_PRE(dnl
10612
[m4_provide_if([_AM_COMPILER_EXEEXT],
10613
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10616
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10617
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10618
dnl mangled by Autoconf and run in a shell conditional statement.
10619
m4_define([_AC_COMPILER_EXEEXT],
10620
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10623
# When config.status generates a header, we must update the stamp-h file.
10624
# This file resides in the same directory as the config header
10625
# that is generated. The stamp files are numbered to have different names.
10627
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
10628
# loop where config.status creates the headers, so we can generate
10629
# our stamp files there.
10630
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
10631
[# Compute $1's index in $config_headers.
10634
for _am_header in $config_headers :; do
10635
case $_am_header in
10636
$_am_arg | $_am_arg:* )
10639
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
10642
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
10644
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10646
# This file is free software; the Free Software Foundation
10647
# gives unlimited permission to copy and/or distribute it,
10648
# with or without modifications, as long as this notice is preserved.
10650
# AM_PROG_INSTALL_SH
10651
# ------------------
10652
# Define $install_sh.
10653
AC_DEFUN([AM_PROG_INSTALL_SH],
10654
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10655
if test x"${install_sh}" != xset; then
10656
case $am_aux_dir in
10658
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10660
install_sh="\${SHELL} $am_aux_dir/install-sh"
10663
AC_SUBST([install_sh])])
10665
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
10667
# This file is free software; the Free Software Foundation
10668
# gives unlimited permission to copy and/or distribute it,
10669
# with or without modifications, as long as this notice is preserved.
10671
# Check whether the underlying file-system supports filenames
10672
# with a leading dot. For instance MS-DOS doesn't.
10673
AC_DEFUN([AM_SET_LEADING_DOT],
10674
[rm -rf .tst 2>/dev/null
10675
mkdir .tst 2>/dev/null
10676
if test -d .tst; then
10681
rmdir .tst 2>/dev/null
10682
AC_SUBST([am__leading_dot])])
10684
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
10685
# From Jim Meyering
10687
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10689
# This file is free software; the Free Software Foundation
10690
# gives unlimited permission to copy and/or distribute it,
10691
# with or without modifications, as long as this notice is preserved.
10693
# AM_MAINTAINER_MODE([DEFAULT-MODE])
10694
# ----------------------------------
10695
# Control maintainer-specific portions of Makefiles.
10696
# Default is to disable them, unless 'enable' is passed literally.
10697
# For symmetry, 'disable' may be passed as well. Anyway, the user
10698
# can override the default with the --enable/--disable switch.
10699
AC_DEFUN([AM_MAINTAINER_MODE],
10700
[m4_case(m4_default([$1], [disable]),
10701
[enable], [m4_define([am_maintainer_other], [disable])],
10702
[disable], [m4_define([am_maintainer_other], [enable])],
10703
[m4_define([am_maintainer_other], [enable])
10704
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
10705
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
10706
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
10707
AC_ARG_ENABLE([maintainer-mode],
10708
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
10709
am_maintainer_other[ make rules and dependencies not useful
10710
(and sometimes confusing) to the casual installer])],
10711
[USE_MAINTAINER_MODE=$enableval],
10712
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
10713
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
10714
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
10715
MAINT=$MAINTAINER_MODE_TRUE
10716
AC_SUBST([MAINT])dnl
10720
# Check to see how 'make' treats includes. -*- Autoconf -*-
10722
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10724
# This file is free software; the Free Software Foundation
10725
# gives unlimited permission to copy and/or distribute it,
10726
# with or without modifications, as long as this notice is preserved.
10728
# AM_MAKE_INCLUDE()
10729
# -----------------
10730
# Check to see how make treats includes.
10731
AC_DEFUN([AM_MAKE_INCLUDE],
10732
[am_make=${MAKE-make}
10733
cat > confinc << 'END'
10735
@echo this is the am__doit target
10738
# If we don't find an include directive, just comment out the code.
10739
AC_MSG_CHECKING([for style of include used by $am_make])
10743
# First try GNU make style include.
10744
echo "include confinc" > confmf
10745
# Ignore all kinds of additional output from 'make'.
10746
case `$am_make -s -f confmf 2> /dev/null` in #(
10747
*the\ am__doit\ target*)
10748
am__include=include
10753
# Now try BSD make style include.
10754
if test "$am__include" = "#"; then
10755
echo '.include "confinc"' > confmf
10756
case `$am_make -s -f confmf 2> /dev/null` in #(
10757
*the\ am__doit\ target*)
10758
am__include=.include
10764
AC_SUBST([am__include])
10765
AC_SUBST([am__quote])
10766
AC_MSG_RESULT([$_am_result])
10767
rm -f confinc confmf
10770
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10772
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
10774
# This file is free software; the Free Software Foundation
10775
# gives unlimited permission to copy and/or distribute it,
10776
# with or without modifications, as long as this notice is preserved.
10778
# AM_MISSING_PROG(NAME, PROGRAM)
10779
# ------------------------------
10780
AC_DEFUN([AM_MISSING_PROG],
10781
[AC_REQUIRE([AM_MISSING_HAS_RUN])
10782
$1=${$1-"${am_missing_run}$2"}
10785
# AM_MISSING_HAS_RUN
10786
# ------------------
10787
# Define MISSING if not defined so far and test if it is modern enough.
10788
# If it is, set am_missing_run to use it, otherwise, to nothing.
10789
AC_DEFUN([AM_MISSING_HAS_RUN],
10790
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10791
AC_REQUIRE_AUX_FILE([missing])dnl
10792
if test x"${MISSING+set}" != xset; then
10793
case $am_aux_dir in
10795
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10797
MISSING="\${SHELL} $am_aux_dir/missing" ;;
10800
# Use eval to expand $SHELL
10801
if eval "$MISSING --is-lightweight"; then
10802
am_missing_run="$MISSING "
10805
AC_MSG_WARN(['missing' script is too old or missing])
10809
# Helper functions for option handling. -*- Autoconf -*-
10811
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10813
# This file is free software; the Free Software Foundation
10814
# gives unlimited permission to copy and/or distribute it,
10815
# with or without modifications, as long as this notice is preserved.
10817
# _AM_MANGLE_OPTION(NAME)
10818
# -----------------------
10819
AC_DEFUN([_AM_MANGLE_OPTION],
10820
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10822
# _AM_SET_OPTION(NAME)
10823
# --------------------
10824
# Set option NAME. Presently that only means defining a flag for this option.
10825
AC_DEFUN([_AM_SET_OPTION],
10826
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
10828
# _AM_SET_OPTIONS(OPTIONS)
10829
# ------------------------
10830
# OPTIONS is a space-separated list of Automake options.
10831
AC_DEFUN([_AM_SET_OPTIONS],
10832
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10834
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10835
# -------------------------------------------
10836
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10837
AC_DEFUN([_AM_IF_OPTION],
10838
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10840
# Check to make sure that the build environment is sane. -*- Autoconf -*-
10842
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
10844
# This file is free software; the Free Software Foundation
10845
# gives unlimited permission to copy and/or distribute it,
10846
# with or without modifications, as long as this notice is preserved.
10850
AC_DEFUN([AM_SANITY_CHECK],
10851
[AC_MSG_CHECKING([whether build environment is sane])
10852
# Reject unsafe characters in $srcdir or the absolute working directory
10853
# name. Accept space and tab only in the latter.
10857
*[[\\\"\#\$\&\'\`$am_lf]]*)
10858
AC_MSG_ERROR([unsafe absolute working directory name]);;
10861
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10862
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
10865
# Do 'set' in a subshell so we don't clobber the current shell's
10866
# arguments. Must try -L first in case configure is actually a
10867
# symlink; some systems play weird games with the mod time of symlinks
10868
# (eg FreeBSD returns the mod time of the symlink's containing
10872
for am_try in 1 2; do
10873
echo "timestamp, slept: $am_has_slept" > conftest.file
10874
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10875
if test "$[*]" = "X"; then
10877
set X `ls -t "$srcdir/configure" conftest.file`
10879
if test "$[*]" != "X $srcdir/configure conftest.file" \
10880
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10882
# If neither matched, then we have a broken ls. This can happen
10883
# if, for instance, CONFIG_SHELL is bash and it inherits a
10884
# broken ls alias from the environment. This has actually
10885
# happened. Such a system could not be considered "sane".
10886
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10887
alias in your environment])
10889
if test "$[2]" = conftest.file || test $am_try -eq 2; then
10896
test "$[2]" = conftest.file
10902
AC_MSG_ERROR([newly created file is older than distributed files!
10903
Check your system clock])
10905
AC_MSG_RESULT([yes])
10906
# If we didn't sleep, we still need to ensure time stamps of config.status and
10907
# generated files are strictly newer.
10909
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10913
AC_CONFIG_COMMANDS_PRE(
10914
[AC_MSG_CHECKING([that generated files are newer than configure])
10915
if test -n "$am_sleep_pid"; then
10916
# Hide warnings about reused PIDs.
10917
wait $am_sleep_pid 2>/dev/null
10919
AC_MSG_RESULT([done])])
10920
rm -f conftest.file
10923
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
10925
# This file is free software; the Free Software Foundation
10926
# gives unlimited permission to copy and/or distribute it,
10927
# with or without modifications, as long as this notice is preserved.
10929
# AM_SILENT_RULES([DEFAULT])
10930
# --------------------------
10931
# Enable less verbose build rules; with the default set to DEFAULT
10932
# ("yes" being less verbose, "no" or empty being verbose).
10933
AC_DEFUN([AM_SILENT_RULES],
10934
[AC_ARG_ENABLE([silent-rules], [dnl
10936
[--enable-silent-rules],
10937
[less verbose build output (undo: "make V=1")])
10939
[--disable-silent-rules],
10940
[verbose build output (undo: "make V=0")])dnl
10942
case $enable_silent_rules in @%:@ (((
10943
yes) AM_DEFAULT_VERBOSITY=0;;
10944
no) AM_DEFAULT_VERBOSITY=1;;
10945
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10948
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10949
dnl do not support nested variable expansions.
10950
dnl See automake bug#9928 and bug#10237.
10951
am_make=${MAKE-make}
10952
AC_CACHE_CHECK([whether $am_make supports nested variables],
10953
[am_cv_make_support_nested_variables],
10954
[if AS_ECHO([['TRUE=$(BAR$(V))
10960
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10961
am_cv_make_support_nested_variables=yes
10963
am_cv_make_support_nested_variables=no
10965
if test $am_cv_make_support_nested_variables = yes; then
10966
dnl Using '$V' instead of '$(V)' breaks IRIX make.
10968
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10970
AM_V=$AM_DEFAULT_VERBOSITY
10971
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10973
AC_SUBST([AM_V])dnl
10974
AM_SUBST_NOTMAKE([AM_V])dnl
10975
AC_SUBST([AM_DEFAULT_V])dnl
10976
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10977
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10979
AC_SUBST([AM_BACKSLASH])dnl
10980
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10983
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10985
# This file is free software; the Free Software Foundation
10986
# gives unlimited permission to copy and/or distribute it,
10987
# with or without modifications, as long as this notice is preserved.
10989
# AM_PROG_INSTALL_STRIP
10990
# ---------------------
10991
# One issue with vendor 'install' (even GNU) is that you can't
10992
# specify the program used to strip binaries. This is especially
10993
# annoying in cross-compiling environments, where the build's strip
10994
# is unlikely to handle the host's binaries.
10995
# Fortunately install-sh will honor a STRIPPROG variable, so we
10996
# always use install-sh in "make install-strip", and initialize
10997
# STRIPPROG with the value of the STRIP variable (set by the user).
10998
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10999
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
11000
# Installed binaries are usually stripped using 'strip' when the user
11001
# run "make install-strip". However 'strip' might not be the right
11002
# tool to use in cross-compilation environments, therefore Automake
11003
# will honor the 'STRIP' environment variable to overrule this program.
11004
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
11005
if test "$cross_compiling" != no; then
11006
AC_CHECK_TOOL([STRIP], [strip], :)
11008
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11009
AC_SUBST([INSTALL_STRIP_PROGRAM])])
11011
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
11013
# This file is free software; the Free Software Foundation
11014
# gives unlimited permission to copy and/or distribute it,
11015
# with or without modifications, as long as this notice is preserved.
11017
# _AM_SUBST_NOTMAKE(VARIABLE)
11018
# ---------------------------
11019
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
11020
# This macro is traced by Automake.
11021
AC_DEFUN([_AM_SUBST_NOTMAKE])
11023
# AM_SUBST_NOTMAKE(VARIABLE)
11024
# --------------------------
11025
# Public sister of _AM_SUBST_NOTMAKE.
11026
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
11028
# Check how to create a tarball. -*- Autoconf -*-
11030
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
11032
# This file is free software; the Free Software Foundation
11033
# gives unlimited permission to copy and/or distribute it,
11034
# with or without modifications, as long as this notice is preserved.
11036
# _AM_PROG_TAR(FORMAT)
11037
# --------------------
11038
# Check how to create a tarball in format FORMAT.
11039
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
11041
# Substitute a variable $(am__tar) that is a command
11042
# writing to stdout a FORMAT-tarball containing the directory
11044
# tardir=directory && $(am__tar) > result.tar
11046
# Substitute a variable $(am__untar) that extract such
11047
# a tarball read from stdin.
11048
# $(am__untar) < result.tar
11050
AC_DEFUN([_AM_PROG_TAR],
11051
[# Always define AMTAR for backward compatibility. Yes, it's still used
11052
# in the wild :-( We should find a proper way to deprecate it ...
11053
AC_SUBST([AMTAR], ['$${TAR-tar}'])
11055
# We'll loop over all known methods to create a tar archive until one works.
11056
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
11059
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
11063
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
11064
# There is notably a 21 bits limit for the UID and the GID. In fact,
11065
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
11067
am_max_uid=2097151 # 2^21 - 1
11068
am_max_gid=$am_max_uid
11069
# The $UID and $GID variables are not portable, so we need to resort
11070
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
11071
# below are definitely unexpected, so allow the users to see them
11072
# (that is, avoid stderr redirection).
11073
am_uid=`id -u || echo unknown`
11074
am_gid=`id -g || echo unknown`
11075
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
11076
if test $am_uid -le $am_max_uid; then
11077
AC_MSG_RESULT([yes])
11079
AC_MSG_RESULT([no])
11082
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
11083
if test $am_gid -le $am_max_gid; then
11084
AC_MSG_RESULT([yes])
11086
AC_MSG_RESULT([no])
11093
[m4_fatal([Unknown tar format])])
11095
AC_MSG_CHECKING([how to create a $1 tar archive])
11097
# Go ahead even if we have the value already cached. We do so because we
11098
# need to set the values for the 'am__tar' and 'am__untar' variables.
11099
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
11101
for _am_tool in $_am_tools; do
11104
for _am_tar in tar gnutar gtar; do
11105
AM_RUN_LOG([$_am_tar --version]) && break
11107
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
11108
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
11109
am__untar="$_am_tar -xf -"
11112
# Must skip GNU tar: if it does not support --format= it doesn't create
11113
# ustar tarball either.
11114
(tar --version) >/dev/null 2>&1 && continue
11115
am__tar='tar chf - "$$tardir"'
11116
am__tar_='tar chf - "$tardir"'
11117
am__untar='tar xf -'
11120
am__tar='pax -L -x $1 -w "$$tardir"'
11121
am__tar_='pax -L -x $1 -w "$tardir"'
11125
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
11126
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
11127
am__untar='cpio -i -H $1 -d'
11136
# If the value was cached, stop now. We just wanted to have am__tar
11137
# and am__untar set.
11138
test -n "${am_cv_prog_tar_$1}" && break
11140
# tar/untar a dummy directory, and stop if the command works.
11141
rm -rf conftest.dir
11143
echo GrepMe > conftest.dir/file
11144
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
11145
rm -rf conftest.dir
11146
if test -s conftest.tar; then
11147
AM_RUN_LOG([$am__untar <conftest.tar])
11148
AM_RUN_LOG([cat conftest.dir/file])
11149
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
11152
rm -rf conftest.dir
11154
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
11155
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
11157
AC_SUBST([am__tar])
11158
AC_SUBST([am__untar])