11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
15
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
17
# This file is free software, distributed under the terms of the GNU
18
# General Public License. As a special exception to the GNU General
19
# Public License, this file may be distributed as part of a program
20
# that contains a configuration script generated by Autoconf, under
21
# the same distribution terms as the rest of that program.
23
# This file can be copied and used freely without restrictions. It can
24
# be used in projects which are not available under the GNU Public License
25
# but which still want to provide support for the GNU gettext functionality.
27
# Macro to add for using GNU gettext.
28
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
30
# Modified to never use included libintl.
31
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
33
# Major rework to remove unused code
34
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
36
# Added better handling of ALL_LINGUAS from GNU gettext version
37
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
39
# Modified to require ngettext
40
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
42
# We need this here as well, since someone might use autoconf-2.5x
43
# to configure GLib then an older version to configure a package
44
# using AM_GLIB_GNU_GETTEXT
48
dnl We go to great lengths to make sure that aclocal won't
49
dnl try to pull in the installed version of these macros
50
dnl when running aclocal in the glib directory.
52
m4_copy([AC_DEFUN],[glib_DEFUN])
53
m4_copy([AC_REQUIRE],[glib_REQUIRE])
55
dnl At the end, if we're not within glib, we'll define the public
56
dnl definitions in terms of our private definitions.
61
glib_DEFUN([GLIB_LC_MESSAGES],
62
[AC_CHECK_HEADERS([locale.h])
63
if test $ac_cv_header_locale_h = yes; then
64
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
65
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
66
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
67
if test $am_cv_val_LC_MESSAGES = yes; then
68
AC_DEFINE(HAVE_LC_MESSAGES, 1,
69
[Define if your <locale.h> file defines LC_MESSAGES.])
73
# GLIB_PATH_PROG_WITH_TEST
74
#----------------------------
75
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
76
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
77
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
78
[# Extract the first word of "$2", so it can be a program name with args.
79
set dummy $2; ac_word=[$]2
80
AC_MSG_CHECKING([for $ac_word])
81
AC_CACHE_VAL(ac_cv_path_$1,
84
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
87
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
88
for ac_dir in ifelse([$5], , $PATH, [$5]); do
89
test -z "$ac_dir" && ac_dir=.
90
if test -f $ac_dir/$ac_word; then
92
ac_cv_path_$1="$ac_dir/$ac_word"
14
# Do all the work for Automake. -*- Autoconf -*-
16
# This macro actually does too much some checks are only needed if
17
# your package does certain things. But this isn't really a big deal.
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
# Free Software Foundation, Inc.
22
# This program is free software; you can redistribute it and/or modify
23
# it under the terms of the GNU General Public License as published by
24
# the Free Software Foundation; either version 2, or (at your option)
27
# This program is distributed in the hope that it will be useful,
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
# GNU General Public License for more details.
32
# You should have received a copy of the GNU General Public License
33
# along with this program; if not, write to the Free Software
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
42
# the ones we care about.
43
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
45
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
# AM_INIT_AUTOMAKE([OPTIONS])
47
# -----------------------------------------------
48
# The call with PACKAGE and VERSION arguments is the old style
49
# call (pre autoconf-2.50), which is being phased out. PACKAGE
50
# and VERSION should now be passed to AC_INIT and removed from
51
# the call to AM_INIT_AUTOMAKE.
52
# We support both call styles for the transition. After
53
# the next Automake release, Autoconf can make the AC_INIT
54
# arguments mandatory, and then we can depend on a new Autoconf
55
# release and drop the old call support.
56
AC_DEFUN([AM_INIT_AUTOMAKE],
57
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
AC_REQUIRE([AC_PROG_INSTALL])dnl
59
# test to see if srcdir already configured
60
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
test -f $srcdir/config.status; then
62
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
65
# test whether we have cygpath
66
if test -z "$CYGPATH_W"; then
67
if (cygpath --version) >/dev/null 2>/dev/null; then
68
CYGPATH_W='cygpath -w'
75
# Define the identity of the package.
76
dnl Distinguish between old-style and new-style calls.
78
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
AC_SUBST([PACKAGE], [$1])dnl
80
AC_SUBST([VERSION], [$2])],
81
[_AM_SET_OPTIONS([$1])dnl
82
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
85
_AM_IF_OPTION([no-define],,
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
89
# Some tools Automake needs.
90
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
AM_MISSING_PROG(AUTOCONF, autoconf)
94
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
AM_MISSING_PROG(AMTAR, tar)
100
# We need awk for the "check" target. The system "awk" is bad on
102
AC_REQUIRE([AC_PROG_AWK])dnl
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
106
_AM_IF_OPTION([no-dependencies],,
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
[_AM_DEPENDENCIES(CC)],
109
[define([AC_PROG_CC],
110
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
[_AM_DEPENDENCIES(CXX)],
113
[define([AC_PROG_CXX],
114
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
119
# When config.status generates a header, we must update the stamp-h file.
120
# This file resides in the same directory as the config header
121
# that is generated. The stamp files are numbered to have different names.
123
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
# loop where config.status creates the headers, so we can generate
125
# our stamp files there.
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
[# Compute $1's index in $config_headers.
129
for _am_header in $config_headers :; do
134
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
139
# Copyright 2002 Free Software Foundation, Inc.
141
# This program is free software; you can redistribute it and/or modify
142
# it under the terms of the GNU General Public License as published by
143
# the Free Software Foundation; either version 2, or (at your option)
146
# This program is distributed in the hope that it will be useful,
147
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
149
# GNU General Public License for more details.
151
# You should have received a copy of the GNU General Public License
152
# along with this program; if not, write to the Free Software
153
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
155
# AM_AUTOMAKE_VERSION(VERSION)
156
# ----------------------------
157
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
# generated from the m4 files accompanying Automake X.Y.
159
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
161
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
# -------------------------------
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
[AM_AUTOMAKE_VERSION([1.7.9])])
168
# Helper functions for option handling. -*- Autoconf -*-
170
# Copyright 2001, 2002 Free Software Foundation, Inc.
172
# This program is free software; you can redistribute it and/or modify
173
# it under the terms of the GNU General Public License as published by
174
# the Free Software Foundation; either version 2, or (at your option)
177
# This program is distributed in the hope that it will be useful,
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180
# GNU General Public License for more details.
182
# You should have received a copy of the GNU General Public License
183
# along with this program; if not, write to the Free Software
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
189
# _AM_MANGLE_OPTION(NAME)
190
# -----------------------
191
AC_DEFUN([_AM_MANGLE_OPTION],
192
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
194
# _AM_SET_OPTION(NAME)
195
# ------------------------------
196
# Set option NAME. Presently that only means defining a flag for this option.
197
AC_DEFUN([_AM_SET_OPTION],
198
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
200
# _AM_SET_OPTIONS(OPTIONS)
201
# ----------------------------------
202
# OPTIONS is a space-separated list of Automake options.
203
AC_DEFUN([_AM_SET_OPTIONS],
204
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
206
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
# -------------------------------------------
208
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
AC_DEFUN([_AM_IF_OPTION],
210
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
213
# Check to make sure that the build environment is sane.
216
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
218
# This program is free software; you can redistribute it and/or modify
219
# it under the terms of the GNU General Public License as published by
220
# the Free Software Foundation; either version 2, or (at your option)
223
# This program is distributed in the hope that it will be useful,
224
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
226
# GNU General Public License for more details.
228
# You should have received a copy of the GNU General Public License
229
# along with this program; if not, write to the Free Software
230
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
237
AC_DEFUN([AM_SANITY_CHECK],
238
[AC_MSG_CHECKING([whether build environment is sane])
241
echo timestamp > conftest.file
242
# Do `set' in a subshell so we don't clobber the current shell's
243
# arguments. Must try -L first in case configure is actually a
244
# symlink; some systems play weird games with the mod time of symlinks
245
# (eg FreeBSD returns the mod time of the symlink's containing
248
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
if test "$[*]" = "X"; then
251
set X `ls -t $srcdir/configure conftest.file`
254
if test "$[*]" != "X $srcdir/configure conftest.file" \
255
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
257
# If neither matched, then we have a broken ls. This can happen
258
# if, for instance, CONFIG_SHELL is bash and it inherits a
259
# broken ls alias from the environment. This has actually
260
# happened. Such a system could not be considered "sane".
261
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
262
alias in your environment])
265
test "$[2]" = conftest.file
271
AC_MSG_ERROR([newly created file is older than distributed files!
272
Check your system clock])
279
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
281
# This program is free software; you can redistribute it and/or modify
282
# it under the terms of the GNU General Public License as published by
283
# the Free Software Foundation; either version 2, or (at your option)
286
# This program is distributed in the hope that it will be useful,
287
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
289
# GNU General Public License for more details.
291
# You should have received a copy of the GNU General Public License
292
# along with this program; if not, write to the Free Software
293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
298
# AM_MISSING_PROG(NAME, PROGRAM)
299
# ------------------------------
300
AC_DEFUN([AM_MISSING_PROG],
301
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
$1=${$1-"${am_missing_run}$2"}
308
# Define MISSING if not defined so far and test if it supports --run.
309
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
AC_DEFUN([AM_MISSING_HAS_RUN],
311
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
# Use eval to expand $SHELL
314
if eval "$MISSING --run true"; then
315
am_missing_run="$MISSING --run "
318
AC_MSG_WARN([`missing' script is too old or missing])
324
# Copyright 2001 Free Software Foundation, Inc.
326
# This program is free software; you can redistribute it and/or modify
327
# it under the terms of the GNU General Public License as published by
328
# the Free Software Foundation; either version 2, or (at your option)
331
# This program is distributed in the hope that it will be useful,
332
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
334
# GNU General Public License for more details.
336
# You should have received a copy of the GNU General Public License
337
# along with this program; if not, write to the Free Software
338
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
343
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
345
# Of course, Automake must honor this variable whenever it calls a
346
# tool from the auxiliary directory. The problem is that $srcdir (and
347
# therefore $ac_aux_dir as well) can be either absolute or relative,
348
# depending on how configure is run. This is pretty annoying, since
349
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
350
# source directory, any form will work fine, but in subdirectories a
351
# relative path needs to be adjusted first.
353
# $ac_aux_dir/missing
354
# fails when called from a subdirectory if $ac_aux_dir is relative
355
# $top_srcdir/$ac_aux_dir/missing
356
# fails if $ac_aux_dir is absolute,
357
# fails when called from a subdirectory in a VPATH build with
358
# a relative $ac_aux_dir
360
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
361
# are both prefixed by $srcdir. In an in-source build this is usually
362
# harmless because $srcdir is `.', but things will broke when you
363
# start a VPATH build or use an absolute $srcdir.
365
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
366
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
367
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
368
# and then we would define $MISSING as
369
# MISSING="\${SHELL} $am_aux_dir/missing"
370
# This will work as long as MISSING is not called from configure, because
371
# unfortunately $(top_srcdir) has no meaning in configure.
372
# However there are other variables, like CC, which are often used in
373
# configure, and could therefore not use this "fixed" $ac_aux_dir.
375
# Another solution, used here, is to always expand $ac_aux_dir to an
376
# absolute PATH. The drawback is that using absolute paths prevent a
377
# configured tree to be moved without reconfiguration.
379
# Rely on autoconf to set up CDPATH properly.
382
AC_DEFUN([AM_AUX_DIR_EXPAND], [
383
# expand $ac_aux_dir to an absolute path
384
am_aux_dir=`cd $ac_aux_dir && pwd`
389
# Define $install_sh.
391
# Copyright 2001 Free Software Foundation, Inc.
393
# This program is free software; you can redistribute it and/or modify
394
# it under the terms of the GNU General Public License as published by
395
# the Free Software Foundation; either version 2, or (at your option)
398
# This program is distributed in the hope that it will be useful,
399
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
401
# GNU General Public License for more details.
403
# You should have received a copy of the GNU General Public License
404
# along with this program; if not, write to the Free Software
405
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
408
AC_DEFUN([AM_PROG_INSTALL_SH],
409
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
AC_SUBST(install_sh)])
413
# AM_PROG_INSTALL_STRIP
415
# Copyright 2001 Free Software Foundation, Inc.
417
# This program is free software; you can redistribute it and/or modify
418
# it under the terms of the GNU General Public License as published by
419
# the Free Software Foundation; either version 2, or (at your option)
422
# This program is distributed in the hope that it will be useful,
423
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
425
# GNU General Public License for more details.
427
# You should have received a copy of the GNU General Public License
428
# along with this program; if not, write to the Free Software
429
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432
# One issue with vendor `install' (even GNU) is that you can't
433
# specify the program used to strip binaries. This is especially
434
# annoying in cross-compiling environments, where the build's strip
435
# is unlikely to handle the host's binaries.
436
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
# always use install-sh in `make install-strip', and initialize
438
# STRIPPROG with the value of the STRIP variable (set by the user).
439
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
# Installed binaries are usually stripped using `strip' when the user
442
# run `make install-strip'. However `strip' might not be the right
443
# tool to use in cross-compilation environments, therefore Automake
444
# will honor the `STRIP' environment variable to overrule this program.
445
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
if test "$cross_compiling" != no; then
447
AC_CHECK_TOOL([STRIP], [strip], :)
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
453
# Copyright (C) 2003 Free Software Foundation, Inc.
455
# This program is free software; you can redistribute it and/or modify
456
# it under the terms of the GNU General Public License as published by
457
# the Free Software Foundation; either version 2, or (at your option)
460
# This program is distributed in the hope that it will be useful,
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
463
# GNU General Public License for more details.
465
# You should have received a copy of the GNU General Public License
466
# along with this program; if not, write to the Free Software
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
472
# Check whether the underlying file-system supports filenames
473
# with a leading dot. For instance MS-DOS doesn't.
474
AC_DEFUN([AM_SET_LEADING_DOT],
475
[rm -rf .tst 2>/dev/null
476
mkdir .tst 2>/dev/null
477
if test -d .tst; then
482
rmdir .tst 2>/dev/null
483
AC_SUBST([am__leading_dot])])
485
# serial 5 -*- Autoconf -*-
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
489
# This program is free software; you can redistribute it and/or modify
490
# it under the terms of the GNU General Public License as published by
491
# the Free Software Foundation; either version 2, or (at your option)
494
# This program is distributed in the hope that it will be useful,
495
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
497
# GNU General Public License for more details.
499
# You should have received a copy of the GNU General Public License
500
# along with this program; if not, write to the Free Software
501
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
505
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
# written in clear, in which case automake, when reading aclocal.m4,
507
# will think it sees a *use*, and therefore will trigger all it's
508
# C support machinery. Also note that it means that autoscan, seeing
509
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
513
# _AM_DEPENDENCIES(NAME)
514
# ----------------------
515
# See how the compiler implements dependency checking.
516
# NAME is "CC", "CXX", "GCJ", or "OBJC".
517
# We try a few techniques and use that to set a single cache variable.
519
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
520
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
521
# dependency, and given that the user is not expected to run this macro,
522
# just rely on AC_PROG_CC.
523
AC_DEFUN([_AM_DEPENDENCIES],
524
[AC_REQUIRE([AM_SET_DEPDIR])dnl
525
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
526
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
527
AC_REQUIRE([AM_DEP_TRACK])dnl
529
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
530
[$1], CXX, [depcc="$CXX" am_compiler_list=],
531
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
532
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
533
[depcc="$$1" am_compiler_list=])
535
AC_CACHE_CHECK([dependency style of $depcc],
536
[am_cv_$1_dependencies_compiler_type],
537
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
538
# We make a subdir and do the tests there. Otherwise we can end up
539
# making bogus files that we don't know about and never remove. For
540
# instance it was reported that on HP-UX the gcc test will end up
541
# making a dummy file named `D' -- because `-MD' means `put the output
544
# Copy depcomp to subdir because otherwise we won't find it if we're
545
# using a relative directory.
546
cp "$am_depcomp" conftest.dir
548
# We will build objects and dependencies in a subdirectory because
549
# it helps to detect inapplicable dependency modes. For instance
550
# both Tru64's cc and ICC support -MD to output dependencies as a
551
# side effect of compilation, but ICC will put the dependencies in
552
# the current directory while Tru64 will put them in the object
556
am_cv_$1_dependencies_compiler_type=none
557
if test "$am_compiler_list" = ""; then
558
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
560
for depmode in $am_compiler_list; do
561
# Setup a source with many dependencies, because some compilers
562
# like to wrap large dependency lists on column 80 (with \), and
563
# we should not choose a depcomp mode which is confused by this.
565
# We need to recreate these files for each test, as the compiler may
566
# overwrite some of them when testing with obscure command lines.
567
# This happens at least with the AIX C compiler.
569
for i in 1 2 3 4 5 6; do
570
echo '#include "conftst'$i'.h"' >> sub/conftest.c
573
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
577
# after this tag, mechanisms are not by side-effect, so they'll
578
# only be used when explicitly requested
579
if test "x$enable_dependency_tracking" = xyes; then
98
dnl If no 4th arg is given, leave the cache variable unset,
99
dnl so AC_PATH_PROGS will keep looking.
100
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
105
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
115
glib_DEFUN([GLIB_WITH_NLS],
116
dnl NLS is obligatory
120
gt_cv_have_gettext=no
126
AC_CHECK_HEADER(libintl.h,
127
[gt_cv_func_dgettext_libintl="no"
128
libintl_extra_libs=""
131
# First check in libc
133
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
137
[return !ngettext ("","", 1)],
138
gt_cv_func_ngettext_libc=yes,
139
gt_cv_func_ngettext_libc=no)
142
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
143
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
147
[return !dgettext ("","")],
148
gt_cv_func_dgettext_libc=yes,
149
gt_cv_func_dgettext_libc=no)
153
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
154
AC_CHECK_FUNCS(bind_textdomain_codeset)
158
# If we don't have everything we want, check in libintl
160
if test "$gt_cv_func_dgettext_libc" != "yes" \
161
|| test "$gt_cv_func_ngettext_libc" != "yes" \
162
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
164
AC_CHECK_LIB(intl, bindtextdomain,
165
[AC_CHECK_LIB(intl, ngettext,
166
[AC_CHECK_LIB(intl, dgettext,
167
gt_cv_func_dgettext_libintl=yes)])])
169
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
170
AC_MSG_CHECKING([if -liconv is needed to use gettext])
172
AC_CHECK_LIB(intl, ngettext,
173
[AC_CHECK_LIB(intl, dcgettext,
174
[gt_cv_func_dgettext_libintl=yes
175
libintl_extra_libs=-liconv],
181
# If we found libintl, then check in it for bind_textdomain_codeset();
182
# we'll prefer libc if neither have bind_textdomain_codeset(),
183
# and both have dgettext and ngettext
185
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
186
glib_save_LIBS="$LIBS"
187
LIBS="$LIBS -lintl $libintl_extra_libs"
188
unset ac_cv_func_bind_textdomain_codeset
189
AC_CHECK_FUNCS(bind_textdomain_codeset)
190
LIBS="$glib_save_LIBS"
192
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
193
gt_cv_func_dgettext_libc=no
195
if test "$gt_cv_func_dgettext_libc" = "yes" \
196
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
197
gt_cv_func_dgettext_libintl=no
203
if test "$gt_cv_func_dgettext_libc" = "yes" \
204
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
205
gt_cv_have_gettext=yes
208
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
209
INTLLIBS="-lintl $libintl_extra_libs"
212
if test "$gt_cv_have_gettext" = "yes"; then
213
AC_DEFINE(HAVE_GETTEXT,1,
214
[Define if the GNU gettext() function is already present or preinstalled.])
215
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
216
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
217
if test "$MSGFMT" != "no"; then
218
glib_save_LIBS="$LIBS"
219
LIBS="$LIBS $INTLLIBS"
220
AC_CHECK_FUNCS(dcgettext)
221
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
222
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
223
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
224
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
225
return _nl_msg_cat_cntr],
230
dnl On Solaris, if bind_textdomain_codeset is in libc,
231
dnl GNU format message catalog is always supported,
232
dnl since both are added to the libc all together.
233
dnl Hence, we'd like to go with DATADIRNAME=share and
234
dnl and CATOBJEXT=.gmo in this case.
235
AC_CHECK_FUNC(bind_textdomain_codeset,
246
LIBS="$glib_save_LIBS"
249
gt_cv_have_gettext=no
254
if test "$gt_cv_have_gettext" = "yes" ; then
255
AC_DEFINE(ENABLE_NLS, 1,
256
[always defined to indicate that i18n is enabled])
259
dnl Test whether we really found GNU xgettext.
260
if test "$XGETTEXT" != ":"; then
261
dnl If it is not GNU xgettext we define it as : so that the
262
dnl Makefiles still can work.
263
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
267
[found xgettext program is not GNU xgettext; ignore it])
272
# We need to process the po/ directory.
276
[case "$CONFIG_FILES" in *po/Makefile.in*)
277
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
280
dnl These rules are solely for the distribution goal. While doing this
281
dnl we only have to keep exactly one list of the available catalogs
283
for lang in $ALL_LINGUAS; do
284
GMOFILES="$GMOFILES $lang.gmo"
285
POFILES="$POFILES $lang.po"
288
dnl Make all variables we use known to autoconf.
291
AC_SUBST(DATADIRNAME)
295
AC_SUBST(PO_IN_DATADIR_TRUE)
296
AC_SUBST(PO_IN_DATADIR_FALSE)
301
# AM_GLIB_GNU_GETTEXT
302
# -------------------
303
# Do checks necessary for use of gettext. If a suitable implementation
304
# of gettext is found in either in libintl or in the C library,
305
# it will set INTLLIBS to the libraries needed for use of gettext
306
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
307
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
308
# on various variables needed by the Makefile.in.in installed by
311
glib_DEFUN([GLIB_GNU_GETTEXT],
312
[AC_REQUIRE([AC_PROG_CC])dnl
313
AC_REQUIRE([AC_HEADER_STDC])dnl
318
if test "$gt_cv_have_gettext" = "yes"; then
319
if test "x$ALL_LINGUAS" = "x"; then
322
AC_MSG_CHECKING(for catalogs to be installed)
324
for presentlang in $ALL_LINGUAS; do
326
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
327
desiredlanguages="$LINGUAS"
329
desiredlanguages="$ALL_LINGUAS"
331
for desiredlang in $desiredlanguages; do
332
# Use the presentlang catalog if desiredlang is
333
# a. equal to presentlang, or
334
# b. a variant of presentlang (because in this case,
335
# presentlang can be used as a fallback for messages
336
# which are not translated in the desiredlang catalog).
337
case "$desiredlang" in
338
"$presentlang"*) useit=yes;;
341
if test $useit = yes; then
342
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
346
AC_MSG_RESULT($LINGUAS)
349
dnl Construct list of names of catalog files to be constructed.
350
if test -n "$LINGUAS"; then
351
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
355
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
356
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
357
dnl Try to locate is.
359
if test -n "$ac_aux_dir"; then
360
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
362
if test -z "$MKINSTALLDIRS"; then
363
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
365
AC_SUBST(MKINSTALLDIRS)
367
dnl Generate list of files to be processed by xgettext which will
368
dnl be included in po/Makefile.
369
test -d po || mkdir po
370
if test "x$srcdir" != "x."; then
371
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
372
posrcprefix="$srcdir/"
374
posrcprefix="../$srcdir/"
380
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
381
< $srcdir/po/POTFILES.in > po/POTFILES
384
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
385
# -------------------------------
386
# Define VARIABLE to the location where catalog files will
387
# be installed by po/Makefile.
388
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
389
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
390
glib_save_prefix="$prefix"
391
glib_save_exec_prefix="$exec_prefix"
392
test "x$prefix" = xNONE && prefix=$ac_default_prefix
393
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
394
if test "x$CATOBJEXT" = "x.mo" ; then
395
localedir=`eval echo "${libdir}/locale"`
397
localedir=`eval echo "${datadir}/locale"`
399
prefix="$glib_save_prefix"
400
exec_prefix="$glib_save_exec_prefix"
401
AC_DEFINE_UNQUOTED($1, "$localedir",
402
[Define the location where the catalogs will be installed])
406
dnl Now the definitions that aclocal will find
408
ifdef(glib_configure_in,[],[
409
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
410
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
587
# We check with `-c' and `-o' for the sake of the "dashmstdout"
588
# mode. It turns out that the SunPro C++ compiler does not properly
589
# handle `-M -o', and we need to detect this.
590
if depmode=$depmode \
591
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
592
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
594
>/dev/null 2>conftest.err &&
595
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
597
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
# icc doesn't choke on unknown options, it will just issue warnings
599
# (even with -Werror). So we grep stderr for any message
600
# that says an option was ignored.
601
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
602
am_cv_$1_dependencies_compiler_type=$depmode
611
am_cv_$1_dependencies_compiler_type=none
614
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
615
AM_CONDITIONAL([am__fastdep$1], [
616
test "x$enable_dependency_tracking" != xno \
617
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
623
# Choose a directory name for dependency files.
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
625
AC_DEFUN([AM_SET_DEPDIR],
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
633
AC_DEFUN([AM_DEP_TRACK],
634
[AC_ARG_ENABLE(dependency-tracking,
635
[ --disable-dependency-tracking Speeds up one-time builds
636
--enable-dependency-tracking Do not reject slow dependency extractors])
637
if test "x$enable_dependency_tracking" != xno; then
638
am_depcomp="$ac_aux_dir/depcomp"
641
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
AC_SUBST([AMDEPBACKSLASH])
645
# Generate code to set up dependency tracking. -*- Autoconf -*-
647
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
649
# This program is free software; you can redistribute it and/or modify
650
# it under the terms of the GNU General Public License as published by
651
# the Free Software Foundation; either version 2, or (at your option)
654
# This program is distributed in the hope that it will be useful,
655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
657
# GNU General Public License for more details.
659
# You should have received a copy of the GNU General Public License
660
# along with this program; if not, write to the Free Software
661
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
# ------------------------------
668
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
[for mf in $CONFIG_FILES; do
670
# Strip MF so we end up with the name of the file.
671
mf=`echo "$mf" | sed -e 's/:.*$//'`
672
# Check whether this is an Automake generated Makefile or not.
673
# We used to match only the files named `Makefile.in', but
674
# some people rename them; so instead we look at the file content.
675
# Grep'ing the first line is not enough: some people post-process
676
# each Makefile.in and add a new line on top of each file to say so.
677
# So let's grep whole file.
678
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
dirpart=`AS_DIRNAME("$mf")`
683
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
# Extract the definition of DEP_FILES from the Makefile without
686
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
test -z "$DEPDIR" && continue
688
# When using ansi2knr, U may be empty or an underscore; expand it
689
U=`sed -n -e '/^U = / s///p' < "$mf"`
690
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
# We invoke sed twice because it is the simplest approach to
692
# changing $(DEPDIR) to its actual value in the expansion.
693
for file in `sed -n -e '
694
/^DEP_FILES = .*\\\\$/ {
703
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
# Make sure the directory exists.
706
test -f "$dirpart/$file" && continue
707
fdir=`AS_DIRNAME(["$file"])`
708
AS_MKDIR_P([$dirpart/$fdir])
709
# echo "creating $dirpart/$file"
710
echo '# dummy' > "$dirpart/$file"
713
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
716
# AM_OUTPUT_DEPENDENCY_COMMANDS
717
# -----------------------------
718
# This macro should only be invoked once -- use via AC_REQUIRE.
720
# This code is only required when automatic dependency tracking
721
# is enabled. FIXME. This creates each `.P' file that we will
722
# need in order to bootstrap the dependency handling code.
723
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
724
[AC_CONFIG_COMMANDS([depfiles],
725
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
726
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
729
# Check to see how 'make' treats includes. -*- Autoconf -*-
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
733
# This program is free software; you can redistribute it and/or modify
734
# it under the terms of the GNU General Public License as published by
735
# the Free Software Foundation; either version 2, or (at your option)
738
# This program is distributed in the hope that it will be useful,
739
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
741
# GNU General Public License for more details.
743
# You should have received a copy of the GNU General Public License
744
# along with this program; if not, write to the Free Software
745
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
752
# Check to see how make treats includes.
753
AC_DEFUN([AM_MAKE_INCLUDE],
754
[am_make=${MAKE-make}
755
cat > confinc << 'END'
760
# If we don't find an include directive, just comment out the code.
761
AC_MSG_CHECKING([for style of include used by $am_make])
765
# First try GNU make style include.
766
echo "include confinc" > confmf
767
# We grep out `Entering directory' and `Leaving directory'
768
# messages which can occur if `w' ends up in MAKEFLAGS.
769
# In particular we don't look at `^make:' because GNU make might
770
# be invoked under some other name (usually "gmake"), in which
771
# case it prints its new name instead of `make'.
772
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
777
# Now try BSD make style include.
778
if test "$am__include" = "#"; then
779
echo '.include "confinc"' > confmf
780
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
786
AC_SUBST([am__include])
787
AC_SUBST([am__quote])
788
AC_MSG_RESULT([$_am_result])
792
# AM_CONDITIONAL -*- Autoconf -*-
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
796
# This program is free software; you can redistribute it and/or modify
797
# it under the terms of the GNU General Public License as published by
798
# the Free Software Foundation; either version 2, or (at your option)
801
# This program is distributed in the hope that it will be useful,
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
804
# GNU General Public License for more details.
806
# You should have received a copy of the GNU General Public License
807
# along with this program; if not, write to the Free Software
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
# -------------------------------------
817
# Define a conditional.
818
AC_DEFUN([AM_CONDITIONAL],
819
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
820
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
830
AC_CONFIG_COMMANDS_PRE(
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
AC_MSG_ERROR([conditional "$1" was never defined.
833
Usually this means the macro was only invoked conditionally.])
836
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
838
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
840
# This program is free software; you can redistribute it and/or modify
841
# it under the terms of the GNU General Public License as published by
842
# the Free Software Foundation; either version 2, or (at your option)
845
# This program is distributed in the hope that it will be useful,
846
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
848
# GNU General Public License for more details.
850
# You should have received a copy of the GNU General Public License
851
# along with this program; if not, write to the Free Software
852
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
859
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
414
863
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
6488
7142
AC_MSG_RESULT([$SED])
7145
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7146
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7148
# This file is free software, distributed under the terms of the GNU
7149
# General Public License. As a special exception to the GNU General
7150
# Public License, this file may be distributed as part of a program
7151
# that contains a configuration script generated by Autoconf, under
7152
# the same distribution terms as the rest of that program.
7154
# This file can be copied and used freely without restrictions. It can
7155
# be used in projects which are not available under the GNU Public License
7156
# but which still want to provide support for the GNU gettext functionality.
7158
# Macro to add for using GNU gettext.
7159
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7161
# Modified to never use included libintl.
7162
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7164
# Major rework to remove unused code
7165
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7167
# Added better handling of ALL_LINGUAS from GNU gettext version
7168
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7170
# Modified to require ngettext
7171
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7173
# We need this here as well, since someone might use autoconf-2.5x
7174
# to configure GLib then an older version to configure a package
7175
# using AM_GLIB_GNU_GETTEXT
7179
dnl We go to great lengths to make sure that aclocal won't
7180
dnl try to pull in the installed version of these macros
7181
dnl when running aclocal in the glib directory.
7183
m4_copy([AC_DEFUN],[glib_DEFUN])
7184
m4_copy([AC_REQUIRE],[glib_REQUIRE])
7186
dnl At the end, if we're not within glib, we'll define the public
7187
dnl definitions in terms of our private definitions.
7191
#--------------------
7192
glib_DEFUN([GLIB_LC_MESSAGES],
7193
[AC_CHECK_HEADERS([locale.h])
7194
if test $ac_cv_header_locale_h = yes; then
7195
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
7196
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
7197
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
7198
if test $am_cv_val_LC_MESSAGES = yes; then
7199
AC_DEFINE(HAVE_LC_MESSAGES, 1,
7200
[Define if your <locale.h> file defines LC_MESSAGES.])
7204
# GLIB_PATH_PROG_WITH_TEST
7205
#----------------------------
7206
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7207
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7208
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
7209
[# Extract the first word of "$2", so it can be a program name with args.
7210
set dummy $2; ac_word=[$]2
7211
AC_MSG_CHECKING([for $ac_word])
7212
AC_CACHE_VAL(ac_cv_path_$1,
7215
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7218
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7219
for ac_dir in ifelse([$5], , $PATH, [$5]); do
7220
test -z "$ac_dir" && ac_dir=.
7221
if test -f $ac_dir/$ac_word; then
7223
ac_cv_path_$1="$ac_dir/$ac_word"
7229
dnl If no 4th arg is given, leave the cache variable unset,
7230
dnl so AC_PATH_PROGS will keep looking.
7231
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7236
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
7237
AC_MSG_RESULT([$]$1)
7246
glib_DEFUN([GLIB_WITH_NLS],
7247
dnl NLS is obligatory
7251
gt_cv_have_gettext=no
7257
AC_CHECK_HEADER(libintl.h,
7258
[gt_cv_func_dgettext_libintl="no"
7259
libintl_extra_libs=""
7262
# First check in libc
7264
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
7266
#include <libintl.h>
7268
[return !ngettext ("","", 1)],
7269
gt_cv_func_ngettext_libc=yes,
7270
gt_cv_func_ngettext_libc=no)
7273
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7274
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
7276
#include <libintl.h>
7278
[return !dgettext ("","")],
7279
gt_cv_func_dgettext_libc=yes,
7280
gt_cv_func_dgettext_libc=no)
7284
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7285
AC_CHECK_FUNCS(bind_textdomain_codeset)
7289
# If we don't have everything we want, check in libintl
7291
if test "$gt_cv_func_dgettext_libc" != "yes" \
7292
|| test "$gt_cv_func_ngettext_libc" != "yes" \
7293
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7295
AC_CHECK_LIB(intl, bindtextdomain,
7296
[AC_CHECK_LIB(intl, ngettext,
7297
[AC_CHECK_LIB(intl, dgettext,
7298
gt_cv_func_dgettext_libintl=yes)])])
7300
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7301
AC_MSG_CHECKING([if -liconv is needed to use gettext])
7303
AC_CHECK_LIB(intl, ngettext,
7304
[AC_CHECK_LIB(intl, dcgettext,
7305
[gt_cv_func_dgettext_libintl=yes
7306
libintl_extra_libs=-liconv],
7312
# If we found libintl, then check in it for bind_textdomain_codeset();
7313
# we'll prefer libc if neither have bind_textdomain_codeset(),
7314
# and both have dgettext and ngettext
7316
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7317
glib_save_LIBS="$LIBS"
7318
LIBS="$LIBS -lintl $libintl_extra_libs"
7319
unset ac_cv_func_bind_textdomain_codeset
7320
AC_CHECK_FUNCS(bind_textdomain_codeset)
7321
LIBS="$glib_save_LIBS"
7323
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
7324
gt_cv_func_dgettext_libc=no
7326
if test "$gt_cv_func_dgettext_libc" = "yes" \
7327
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
7328
gt_cv_func_dgettext_libintl=no
7334
if test "$gt_cv_func_dgettext_libc" = "yes" \
7335
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
7336
gt_cv_have_gettext=yes
7339
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7340
INTLLIBS="-lintl $libintl_extra_libs"
7343
if test "$gt_cv_have_gettext" = "yes"; then
7344
AC_DEFINE(HAVE_GETTEXT,1,
7345
[Define if the GNU gettext() function is already present or preinstalled.])
7346
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
7347
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
7348
if test "$MSGFMT" != "no"; then
7349
glib_save_LIBS="$LIBS"
7350
LIBS="$LIBS $INTLLIBS"
7351
AC_CHECK_FUNCS(dcgettext)
7352
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
7353
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
7354
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
7355
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
7356
return _nl_msg_cat_cntr],
7361
dnl On Solaris, if bind_textdomain_codeset is in libc,
7362
dnl GNU format message catalog is always supported,
7363
dnl since both are added to the libc all together.
7364
dnl Hence, we'd like to go with DATADIRNAME=share and
7365
dnl and CATOBJEXT=.gmo in this case.
7366
AC_CHECK_FUNC(bind_textdomain_codeset,
7377
LIBS="$glib_save_LIBS"
7380
gt_cv_have_gettext=no
7385
if test "$gt_cv_have_gettext" = "yes" ; then
7386
AC_DEFINE(ENABLE_NLS, 1,
7387
[always defined to indicate that i18n is enabled])
7390
dnl Test whether we really found GNU xgettext.
7391
if test "$XGETTEXT" != ":"; then
7392
dnl If it is not GNU xgettext we define it as : so that the
7393
dnl Makefiles still can work.
7394
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7398
[found xgettext program is not GNU xgettext; ignore it])
7403
# We need to process the po/ directory.
7407
[case "$CONFIG_FILES" in *po/Makefile.in*)
7408
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
7411
dnl These rules are solely for the distribution goal. While doing this
7412
dnl we only have to keep exactly one list of the available catalogs
7413
dnl in configure.in.
7414
for lang in $ALL_LINGUAS; do
7415
GMOFILES="$GMOFILES $lang.gmo"
7416
POFILES="$POFILES $lang.po"
7419
dnl Make all variables we use known to autoconf.
7422
AC_SUBST(DATADIRNAME)
7424
AC_SUBST(INSTOBJEXT)
7426
AC_SUBST(PO_IN_DATADIR_TRUE)
7427
AC_SUBST(PO_IN_DATADIR_FALSE)
7432
# AM_GLIB_GNU_GETTEXT
7433
# -------------------
7434
# Do checks necessary for use of gettext. If a suitable implementation
7435
# of gettext is found in either in libintl or in the C library,
7436
# it will set INTLLIBS to the libraries needed for use of gettext
7437
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
7438
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
7439
# on various variables needed by the Makefile.in.in installed by
7442
glib_DEFUN([GLIB_GNU_GETTEXT],
7443
[AC_REQUIRE([AC_PROG_CC])dnl
7444
AC_REQUIRE([AC_HEADER_STDC])dnl
7449
if test "$gt_cv_have_gettext" = "yes"; then
7450
if test "x$ALL_LINGUAS" = "x"; then
7453
AC_MSG_CHECKING(for catalogs to be installed)
7455
for presentlang in $ALL_LINGUAS; do
7457
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7458
desiredlanguages="$LINGUAS"
7460
desiredlanguages="$ALL_LINGUAS"
7462
for desiredlang in $desiredlanguages; do
7463
# Use the presentlang catalog if desiredlang is
7464
# a. equal to presentlang, or
7465
# b. a variant of presentlang (because in this case,
7466
# presentlang can be used as a fallback for messages
7467
# which are not translated in the desiredlang catalog).
7468
case "$desiredlang" in
7469
"$presentlang"*) useit=yes;;
7472
if test $useit = yes; then
7473
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7476
LINGUAS=$NEW_LINGUAS
7477
AC_MSG_RESULT($LINGUAS)
7480
dnl Construct list of names of catalog files to be constructed.
7481
if test -n "$LINGUAS"; then
7482
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7486
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
7487
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
7488
dnl Try to locate is.
7490
if test -n "$ac_aux_dir"; then
7491
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7493
if test -z "$MKINSTALLDIRS"; then
7494
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7496
AC_SUBST(MKINSTALLDIRS)
7498
dnl Generate list of files to be processed by xgettext which will
7499
dnl be included in po/Makefile.
7500
test -d po || mkdir po
7501
if test "x$srcdir" != "x."; then
7502
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7503
posrcprefix="$srcdir/"
7505
posrcprefix="../$srcdir/"
7511
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7512
< $srcdir/po/POTFILES.in > po/POTFILES
7515
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
7516
# -------------------------------
7517
# Define VARIABLE to the location where catalog files will
7518
# be installed by po/Makefile.
7519
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
7520
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
7521
glib_save_prefix="$prefix"
7522
glib_save_exec_prefix="$exec_prefix"
7523
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7524
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
7525
if test "x$CATOBJEXT" = "x.mo" ; then
7526
localedir=`eval echo "${libdir}/locale"`
7528
localedir=`eval echo "${datadir}/locale"`
7530
prefix="$glib_save_prefix"
7531
exec_prefix="$glib_save_exec_prefix"
7532
AC_DEFINE_UNQUOTED($1, "$localedir",
7533
[Define the location where the catalogs will be installed])
7537
dnl Now the definitions that aclocal will find
7539
ifdef(glib_configure_in,[],[
7540
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
7541
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
6491
7544
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6493
7546
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
6621
7674
])# PKG_CHECK_MODULES
6624
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
6625
# Generated from amversion.in; do not edit by hand.
6627
# This program is free software; you can redistribute it and/or modify
6628
# it under the terms of the GNU General Public License as published by
6629
# the Free Software Foundation; either version 2, or (at your option)
6630
# any later version.
6632
# This program is distributed in the hope that it will be useful,
6633
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6634
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6635
# GNU General Public License for more details.
6637
# You should have received a copy of the GNU General Public License
6638
# along with this program; if not, write to the Free Software
6639
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6641
# AM_AUTOMAKE_VERSION(VERSION)
6642
# ----------------------------
6643
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6644
# generated from the m4 files accompanying Automake X.Y.
6645
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
6647
# AM_SET_CURRENT_AUTOMAKE_VERSION
6648
# -------------------------------
6649
# Call AM_AUTOMAKE_VERSION so it can be traced.
6650
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6651
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6652
[AM_AUTOMAKE_VERSION([1.8.5])])
6654
# Figure out how to run the assembler. -*- Autoconf -*-
6658
# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
6660
# This program is free software; you can redistribute it and/or modify
6661
# it under the terms of the GNU General Public License as published by
6662
# the Free Software Foundation; either version 2, or (at your option)
6663
# any later version.
6665
# This program is distributed in the hope that it will be useful,
6666
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6667
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6668
# GNU General Public License for more details.
6670
# You should have received a copy of the GNU General Public License
6671
# along with this program; if not, write to the Free Software
6672
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6677
AC_DEFUN([AM_PROG_AS],
6678
[# By default we simply use the C compiler to build assembly code.
6679
AC_REQUIRE([AC_PROG_CC])
6680
test "${CCAS+set}" = set || CCAS=$CC
6681
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6682
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
6683
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
6688
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6690
# This program is free software; you can redistribute it and/or modify
6691
# it under the terms of the GNU General Public License as published by
6692
# the Free Software Foundation; either version 2, or (at your option)
6693
# any later version.
6695
# This program is distributed in the hope that it will be useful,
6696
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6697
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6698
# GNU General Public License for more details.
6700
# You should have received a copy of the GNU General Public License
6701
# along with this program; if not, write to the Free Software
6702
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6705
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6706
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6707
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6709
# Of course, Automake must honor this variable whenever it calls a
6710
# tool from the auxiliary directory. The problem is that $srcdir (and
6711
# therefore $ac_aux_dir as well) can be either absolute or relative,
6712
# depending on how configure is run. This is pretty annoying, since
6713
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6714
# source directory, any form will work fine, but in subdirectories a
6715
# relative path needs to be adjusted first.
6717
# $ac_aux_dir/missing
6718
# fails when called from a subdirectory if $ac_aux_dir is relative
6719
# $top_srcdir/$ac_aux_dir/missing
6720
# fails if $ac_aux_dir is absolute,
6721
# fails when called from a subdirectory in a VPATH build with
6722
# a relative $ac_aux_dir
6724
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6725
# are both prefixed by $srcdir. In an in-source build this is usually
6726
# harmless because $srcdir is `.', but things will broke when you
6727
# start a VPATH build or use an absolute $srcdir.
6729
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6730
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6731
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6732
# and then we would define $MISSING as
6733
# MISSING="\${SHELL} $am_aux_dir/missing"
6734
# This will work as long as MISSING is not called from configure, because
6735
# unfortunately $(top_srcdir) has no meaning in configure.
6736
# However there are other variables, like CC, which are often used in
6737
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6739
# Another solution, used here, is to always expand $ac_aux_dir to an
6740
# absolute PATH. The drawback is that using absolute paths prevent a
6741
# configured tree to be moved without reconfiguration.
6743
AC_DEFUN([AM_AUX_DIR_EXPAND],
6744
[dnl Rely on autoconf to set up CDPATH properly.
6745
AC_PREREQ([2.50])dnl
6746
# expand $ac_aux_dir to an absolute path
6747
am_aux_dir=`cd $ac_aux_dir && pwd`
6751
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
6752
# Free Software Foundation, Inc.
6754
# This program is free software; you can redistribute it and/or modify
6755
# it under the terms of the GNU General Public License as published by
6756
# the Free Software Foundation; either version 2, or (at your option)
6757
# any later version.
6759
# This program is distributed in the hope that it will be useful,
6760
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6761
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6762
# GNU General Public License for more details.
6764
# You should have received a copy of the GNU General Public License
6765
# along with this program; if not, write to the Free Software
6766
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6771
# This was merged into AC_PROG_CC in Autoconf.
6773
AU_DEFUN([AM_PROG_CC_STDC],
6775
AC_DIAGNOSE([obsolete], [$0:
6776
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
6777
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
6778
you adjust the code. You can also remove the above call to
6779
AC_PROG_CC if you already called it elsewhere.])
6780
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6782
AU_DEFUN([fp_PROG_CC_STDC])
6784
# AM_CONDITIONAL -*- Autoconf -*-
6786
# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6788
# This program is free software; you can redistribute it and/or modify
6789
# it under the terms of the GNU General Public License as published by
6790
# the Free Software Foundation; either version 2, or (at your option)
6791
# any later version.
6793
# This program is distributed in the hope that it will be useful,
6794
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6795
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6796
# GNU General Public License for more details.
6798
# You should have received a copy of the GNU General Public License
6799
# along with this program; if not, write to the Free Software
6800
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6805
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6806
# -------------------------------------
6807
# Define a conditional.
6808
AC_DEFUN([AM_CONDITIONAL],
6810
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6811
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6813
AC_SUBST([$1_FALSE])
6821
AC_CONFIG_COMMANDS_PRE(
6822
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6823
AC_MSG_ERROR([conditional "$1" was never defined.
6824
Usually this means the macro was only invoked conditionally.])
6827
# serial 7 -*- Autoconf -*-
6829
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6830
# Free Software Foundation, Inc.
6832
# This program is free software; you can redistribute it and/or modify
6833
# it under the terms of the GNU General Public License as published by
6834
# the Free Software Foundation; either version 2, or (at your option)
6835
# any later version.
6837
# This program is distributed in the hope that it will be useful,
6838
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6839
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6840
# GNU General Public License for more details.
6842
# You should have received a copy of the GNU General Public License
6843
# along with this program; if not, write to the Free Software
6844
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6848
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6849
# written in clear, in which case automake, when reading aclocal.m4,
6850
# will think it sees a *use*, and therefore will trigger all it's
6851
# C support machinery. Also note that it means that autoscan, seeing
6852
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6856
# _AM_DEPENDENCIES(NAME)
6857
# ----------------------
6858
# See how the compiler implements dependency checking.
6859
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6860
# We try a few techniques and use that to set a single cache variable.
6862
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6863
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6864
# dependency, and given that the user is not expected to run this macro,
6865
# just rely on AC_PROG_CC.
6866
AC_DEFUN([_AM_DEPENDENCIES],
6867
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6868
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6869
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6870
AC_REQUIRE([AM_DEP_TRACK])dnl
6872
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6873
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6874
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6875
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6876
[depcc="$$1" am_compiler_list=])
6878
AC_CACHE_CHECK([dependency style of $depcc],
6879
[am_cv_$1_dependencies_compiler_type],
6880
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6881
# We make a subdir and do the tests there. Otherwise we can end up
6882
# making bogus files that we don't know about and never remove. For
6883
# instance it was reported that on HP-UX the gcc test will end up
6884
# making a dummy file named `D' -- because `-MD' means `put the output
6887
# Copy depcomp to subdir because otherwise we won't find it if we're
6888
# using a relative directory.
6889
cp "$am_depcomp" conftest.dir
6891
# We will build objects and dependencies in a subdirectory because
6892
# it helps to detect inapplicable dependency modes. For instance
6893
# both Tru64's cc and ICC support -MD to output dependencies as a
6894
# side effect of compilation, but ICC will put the dependencies in
6895
# the current directory while Tru64 will put them in the object
6899
am_cv_$1_dependencies_compiler_type=none
6900
if test "$am_compiler_list" = ""; then
6901
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6903
for depmode in $am_compiler_list; do
6904
# Setup a source with many dependencies, because some compilers
6905
# like to wrap large dependency lists on column 80 (with \), and
6906
# we should not choose a depcomp mode which is confused by this.
6908
# We need to recreate these files for each test, as the compiler may
6909
# overwrite some of them when testing with obscure command lines.
6910
# This happens at least with the AIX C compiler.
6912
for i in 1 2 3 4 5 6; do
6913
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6914
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6915
# Solaris 8's {/usr,}/bin/sh.
6916
touch sub/conftst$i.h
6918
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6922
# after this tag, mechanisms are not by side-effect, so they'll
6923
# only be used when explicitly requested
6924
if test "x$enable_dependency_tracking" = xyes; then
6932
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6933
# mode. It turns out that the SunPro C++ compiler does not properly
6934
# handle `-M -o', and we need to detect this.
6935
if depmode=$depmode \
6936
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6937
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6938
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6939
>/dev/null 2>conftest.err &&
6940
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6941
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6942
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6943
# icc doesn't choke on unknown options, it will just issue warnings
6944
# or remarks (even with -Werror). So we grep stderr for any message
6945
# that says an option was ignored or not supported.
6946
# When given -MP, icc 7.0 and 7.1 complain thusly:
6947
# icc: Command line warning: ignoring option '-M'; no argument required
6948
# The diagnosis changed in icc 8.0:
6949
# icc: Command line remark: option '-MP' not supported
6950
if (grep 'ignoring option' conftest.err ||
6951
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6952
am_cv_$1_dependencies_compiler_type=$depmode
6961
am_cv_$1_dependencies_compiler_type=none
6964
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6965
AM_CONDITIONAL([am__fastdep$1], [
6966
test "x$enable_dependency_tracking" != xno \
6967
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6973
# Choose a directory name for dependency files.
6974
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6975
AC_DEFUN([AM_SET_DEPDIR],
6976
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6977
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6983
AC_DEFUN([AM_DEP_TRACK],
6984
[AC_ARG_ENABLE(dependency-tracking,
6985
[ --disable-dependency-tracking speeds up one-time build
6986
--enable-dependency-tracking do not reject slow dependency extractors])
6987
if test "x$enable_dependency_tracking" != xno; then
6988
am_depcomp="$ac_aux_dir/depcomp"
6991
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6992
AC_SUBST([AMDEPBACKSLASH])
6995
# Generate code to set up dependency tracking. -*- Autoconf -*-
6997
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
6999
# This program is free software; you can redistribute it and/or modify
7000
# it under the terms of the GNU General Public License as published by
7001
# the Free Software Foundation; either version 2, or (at your option)
7002
# any later version.
7004
# This program is distributed in the hope that it will be useful,
7005
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7006
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7007
# GNU General Public License for more details.
7009
# You should have received a copy of the GNU General Public License
7010
# along with this program; if not, write to the Free Software
7011
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7016
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7017
# ------------------------------
7018
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7019
[for mf in $CONFIG_FILES; do
7020
# Strip MF so we end up with the name of the file.
7021
mf=`echo "$mf" | sed -e 's/:.*$//'`
7022
# Check whether this is an Automake generated Makefile or not.
7023
# We used to match only the files named `Makefile.in', but
7024
# some people rename them; so instead we look at the file content.
7025
# Grep'ing the first line is not enough: some people post-process
7026
# each Makefile.in and add a new line on top of each file to say so.
7027
# So let's grep whole file.
7028
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7029
dirpart=`AS_DIRNAME("$mf")`
7033
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
7034
# Extract the definition of DEP_FILES from the Makefile without
7036
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7037
test -z "$DEPDIR" && continue
7038
# When using ansi2knr, U may be empty or an underscore; expand it
7039
U=`sed -n 's/^U = //p' < "$mf"`
7040
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7041
# We invoke sed twice because it is the simplest approach to
7042
# changing $(DEPDIR) to its actual value in the expansion.
7043
for file in `sed -n '
7044
/^DEP_FILES = .*\\\\$/ {
7053
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7054
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7055
# Make sure the directory exists.
7056
test -f "$dirpart/$file" && continue
7057
fdir=`AS_DIRNAME(["$file"])`
7058
AS_MKDIR_P([$dirpart/$fdir])
7059
# echo "creating $dirpart/$file"
7060
echo '# dummy' > "$dirpart/$file"
7063
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7066
# AM_OUTPUT_DEPENDENCY_COMMANDS
7067
# -----------------------------
7068
# This macro should only be invoked once -- use via AC_REQUIRE.
7070
# This code is only required when automatic dependency tracking
7071
# is enabled. FIXME. This creates each `.P' file that we will
7072
# need in order to bootstrap the dependency handling code.
7073
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7074
[AC_CONFIG_COMMANDS([depfiles],
7075
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7076
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7079
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
7081
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7083
# This program is free software; you can redistribute it and/or modify
7084
# it under the terms of the GNU General Public License as published by
7085
# the Free Software Foundation; either version 2, or (at your option)
7086
# any later version.
7088
# This program is distributed in the hope that it will be useful,
7089
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7090
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7091
# GNU General Public License for more details.
7093
# You should have received a copy of the GNU General Public License
7094
# along with this program; if not, write to the Free Software
7095
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7100
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7101
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7103
# Do all the work for Automake. -*- Autoconf -*-
7105
# This macro actually does too much some checks are only needed if
7106
# your package does certain things. But this isn't really a big deal.
7108
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
7109
# Free Software Foundation, Inc.
7111
# This program is free software; you can redistribute it and/or modify
7112
# it under the terms of the GNU General Public License as published by
7113
# the Free Software Foundation; either version 2, or (at your option)
7114
# any later version.
7116
# This program is distributed in the hope that it will be useful,
7117
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7118
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7119
# GNU General Public License for more details.
7121
# You should have received a copy of the GNU General Public License
7122
# along with this program; if not, write to the Free Software
7123
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7128
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7129
# AM_INIT_AUTOMAKE([OPTIONS])
7130
# -----------------------------------------------
7131
# The call with PACKAGE and VERSION arguments is the old style
7132
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7133
# and VERSION should now be passed to AC_INIT and removed from
7134
# the call to AM_INIT_AUTOMAKE.
7135
# We support both call styles for the transition. After
7136
# the next Automake release, Autoconf can make the AC_INIT
7137
# arguments mandatory, and then we can depend on a new Autoconf
7138
# release and drop the old call support.
7139
AC_DEFUN([AM_INIT_AUTOMAKE],
7140
[AC_PREREQ([2.58])dnl
7141
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7142
dnl the ones we care about.
7143
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7144
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7145
AC_REQUIRE([AC_PROG_INSTALL])dnl
7146
# test to see if srcdir already configured
7147
if test "`cd $srcdir && pwd`" != "`pwd`" &&
7148
test -f $srcdir/config.status; then
7149
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7152
# test whether we have cygpath
7153
if test -z "$CYGPATH_W"; then
7154
if (cygpath --version) >/dev/null 2>/dev/null; then
7155
CYGPATH_W='cygpath -w'
7160
AC_SUBST([CYGPATH_W])
7162
# Define the identity of the package.
7163
dnl Distinguish between old-style and new-style calls.
7165
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7166
AC_SUBST([PACKAGE], [$1])dnl
7167
AC_SUBST([VERSION], [$2])],
7168
[_AM_SET_OPTIONS([$1])dnl
7169
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7170
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7172
_AM_IF_OPTION([no-define],,
7173
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7174
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7176
# Some tools Automake needs.
7177
AC_REQUIRE([AM_SANITY_CHECK])dnl
7178
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7179
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7180
AM_MISSING_PROG(AUTOCONF, autoconf)
7181
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7182
AM_MISSING_PROG(AUTOHEADER, autoheader)
7183
AM_MISSING_PROG(MAKEINFO, makeinfo)
7184
AM_MISSING_PROG(AMTAR, tar)
7186
AM_PROG_INSTALL_STRIP
7187
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7188
# We need awk for the "check" target. The system "awk" is bad on
7190
AC_REQUIRE([AC_PROG_AWK])dnl
7191
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7192
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7194
_AM_IF_OPTION([no-dependencies],,
7195
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7196
[_AM_DEPENDENCIES(CC)],
7197
[define([AC_PROG_CC],
7198
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7199
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7200
[_AM_DEPENDENCIES(CXX)],
7201
[define([AC_PROG_CXX],
7202
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7207
# When config.status generates a header, we must update the stamp-h file.
7208
# This file resides in the same directory as the config header
7209
# that is generated. The stamp files are numbered to have different names.
7211
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7212
# loop where config.status creates the headers, so we can generate
7213
# our stamp files there.
7214
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7215
[# Compute $1's index in $config_headers.
7217
for _am_header in $config_headers :; do
7222
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7225
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7227
# AM_PROG_INSTALL_SH
7228
# ------------------
7229
# Define $install_sh.
7231
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7233
# This program is free software; you can redistribute it and/or modify
7234
# it under the terms of the GNU General Public License as published by
7235
# the Free Software Foundation; either version 2, or (at your option)
7236
# any later version.
7238
# This program is distributed in the hope that it will be useful,
7239
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7240
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7241
# GNU General Public License for more details.
7243
# You should have received a copy of the GNU General Public License
7244
# along with this program; if not, write to the Free Software
7245
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7248
AC_DEFUN([AM_PROG_INSTALL_SH],
7249
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7250
install_sh=${install_sh-"$am_aux_dir/install-sh"}
7251
AC_SUBST(install_sh)])
7254
# Copyright (C) 2003 Free Software Foundation, Inc.
7256
# This program is free software; you can redistribute it and/or modify
7257
# it under the terms of the GNU General Public License as published by
7258
# the Free Software Foundation; either version 2, or (at your option)
7259
# any later version.
7261
# This program is distributed in the hope that it will be useful,
7262
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7263
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7264
# GNU General Public License for more details.
7266
# You should have received a copy of the GNU General Public License
7267
# along with this program; if not, write to the Free Software
7268
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7273
# Check whether the underlying file-system supports filenames
7274
# with a leading dot. For instance MS-DOS doesn't.
7275
AC_DEFUN([AM_SET_LEADING_DOT],
7276
[rm -rf .tst 2>/dev/null
7277
mkdir .tst 2>/dev/null
7278
if test -d .tst; then
7283
rmdir .tst 2>/dev/null
7284
AC_SUBST([am__leading_dot])])
7286
# Check to see how 'make' treats includes. -*- Autoconf -*-
7288
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7290
# This program is free software; you can redistribute it and/or modify
7291
# it under the terms of the GNU General Public License as published by
7292
# the Free Software Foundation; either version 2, or (at your option)
7293
# any later version.
7295
# This program is distributed in the hope that it will be useful,
7296
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7297
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7298
# GNU General Public License for more details.
7300
# You should have received a copy of the GNU General Public License
7301
# along with this program; if not, write to the Free Software
7302
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7309
# Check to see how make treats includes.
7310
AC_DEFUN([AM_MAKE_INCLUDE],
7311
[am_make=${MAKE-make}
7312
cat > confinc << 'END'
7317
# If we don't find an include directive, just comment out the code.
7318
AC_MSG_CHECKING([for style of include used by $am_make])
7322
# First try GNU make style include.
7323
echo "include confinc" > confmf
7324
# We grep out `Entering directory' and `Leaving directory'
7325
# messages which can occur if `w' ends up in MAKEFLAGS.
7326
# In particular we don't look at `^make:' because GNU make might
7327
# be invoked under some other name (usually "gmake"), in which
7328
# case it prints its new name instead of `make'.
7329
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7334
# Now try BSD make style include.
7335
if test "$am__include" = "#"; then
7336
echo '.include "confinc"' > confmf
7337
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7338
am__include=.include
7343
AC_SUBST([am__include])
7344
AC_SUBST([am__quote])
7345
AC_MSG_RESULT([$_am_result])
7346
rm -f confinc confmf
7353
# Like AC_PROG_CC_C_O, but changed for automake.
7355
# Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7357
# This program is free software; you can redistribute it and/or modify
7358
# it under the terms of the GNU General Public License as published by
7359
# the Free Software Foundation; either version 2, or (at your option)
7360
# any later version.
7362
# This program is distributed in the hope that it will be useful,
7363
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7364
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7365
# GNU General Public License for more details.
7367
# You should have received a copy of the GNU General Public License
7368
# along with this program; if not, write to the Free Software
7369
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7372
AC_DEFUN([AM_PROG_CC_C_O],
7373
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7374
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7375
# FIXME: we rely on the cache variable name because
7376
# there is no other way.
7378
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7379
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7380
# Losing compiler, so override with the script.
7381
# FIXME: It is wrong to rewrite CC.
7382
# But if we don't then we get into trouble of one sort or another.
7383
# A longer-term fix would be to have automake use am__CC in this case,
7384
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7385
CC="$am_aux_dir/compile $CC"
7392
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
7394
# This program is free software; you can redistribute it and/or modify
7395
# it under the terms of the GNU General Public License as published by
7396
# the Free Software Foundation; either version 2, or (at your option)
7397
# any later version.
7399
# This program is distributed in the hope that it will be useful,
7400
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7401
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7402
# GNU General Public License for more details.
7404
# You should have received a copy of the GNU General Public License
7405
# along with this program; if not, write to the Free Software
7406
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7411
# AM_MISSING_PROG(NAME, PROGRAM)
7412
# ------------------------------
7413
AC_DEFUN([AM_MISSING_PROG],
7414
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7415
$1=${$1-"${am_missing_run}$2"}
7419
# AM_MISSING_HAS_RUN
7420
# ------------------
7421
# Define MISSING if not defined so far and test if it supports --run.
7422
# If it does, set am_missing_run to use it, otherwise, to nothing.
7423
AC_DEFUN([AM_MISSING_HAS_RUN],
7424
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7425
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7426
# Use eval to expand $SHELL
7427
if eval "$MISSING --run true"; then
7428
am_missing_run="$MISSING --run "
7431
AC_MSG_WARN([`missing' script is too old or missing])
7437
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7439
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
7441
# This program is free software; you can redistribute it and/or modify
7442
# it under the terms of the GNU General Public License as published by
7443
# the Free Software Foundation; either version 2, or (at your option)
7444
# any later version.
7446
# This program is distributed in the hope that it will be useful,
7447
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7448
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7449
# GNU General Public License for more details.
7451
# You should have received a copy of the GNU General Public License
7452
# along with this program; if not, write to the Free Software
7453
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7456
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7457
# created by `make install' are always world readable, even if the
7458
# installer happens to have an overly restrictive umask (e.g. 077).
7459
# This was a mistake. There are at least two reasons why we must not
7461
# - it causes special bits like SGID to be ignored,
7462
# - it may be too restrictive (some setups expect 775 directories).
7464
# Do not use -m 0755 and let people choose whatever they expect by
7467
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7468
# Some implementations (such as Solaris 8's) are not thread-safe: if a
7469
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7470
# concurrently, both version can detect that a/ is missing, but only
7471
# one can create it and the other will error out. Consequently we
7472
# restrict ourselves to GNU make (using the --version option ensures
7474
AC_DEFUN([AM_PROG_MKDIR_P],
7475
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7476
# Keeping the `.' argument allows $(mkdir_p) to be used without
7477
# argument. Indeed, we sometimes output rules like
7478
# $(mkdir_p) $(somedir)
7479
# where $(somedir) is conditionally defined.
7480
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
7481
# expensive solution, as it forces Make to start a sub-shell.)
7482
mkdir_p='mkdir -p -- .'
7484
# On NextStep and OpenStep, the `mkdir' command does not
7485
# recognize any option. It will interpret all options as
7486
# directories to create, and then abort because `.' already
7488
for d in ./-p ./--version;
7490
test -d $d && rmdir $d
7492
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7493
if test -f "$ac_aux_dir/mkinstalldirs"; then
7494
mkdir_p='$(mkinstalldirs)'
7496
mkdir_p='$(install_sh) -d'
7499
AC_SUBST([mkdir_p])])
7501
# Helper functions for option handling. -*- Autoconf -*-
7503
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
7505
# This program is free software; you can redistribute it and/or modify
7506
# it under the terms of the GNU General Public License as published by
7507
# the Free Software Foundation; either version 2, or (at your option)
7508
# any later version.
7510
# This program is distributed in the hope that it will be useful,
7511
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7512
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7513
# GNU General Public License for more details.
7515
# You should have received a copy of the GNU General Public License
7516
# along with this program; if not, write to the Free Software
7517
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7522
# _AM_MANGLE_OPTION(NAME)
7523
# -----------------------
7524
AC_DEFUN([_AM_MANGLE_OPTION],
7525
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7527
# _AM_SET_OPTION(NAME)
7528
# ------------------------------
7529
# Set option NAME. Presently that only means defining a flag for this option.
7530
AC_DEFUN([_AM_SET_OPTION],
7531
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7533
# _AM_SET_OPTIONS(OPTIONS)
7534
# ----------------------------------
7535
# OPTIONS is a space-separated list of Automake options.
7536
AC_DEFUN([_AM_SET_OPTIONS],
7537
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7539
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7540
# -------------------------------------------
7541
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7542
AC_DEFUN([_AM_IF_OPTION],
7543
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7546
# Check to make sure that the build environment is sane.
7549
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7551
# This program is free software; you can redistribute it and/or modify
7552
# it under the terms of the GNU General Public License as published by
7553
# the Free Software Foundation; either version 2, or (at your option)
7554
# any later version.
7556
# This program is distributed in the hope that it will be useful,
7557
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7558
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7559
# GNU General Public License for more details.
7561
# You should have received a copy of the GNU General Public License
7562
# along with this program; if not, write to the Free Software
7563
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7570
AC_DEFUN([AM_SANITY_CHECK],
7571
[AC_MSG_CHECKING([whether build environment is sane])
7574
echo timestamp > conftest.file
7575
# Do `set' in a subshell so we don't clobber the current shell's
7576
# arguments. Must try -L first in case configure is actually a
7577
# symlink; some systems play weird games with the mod time of symlinks
7578
# (eg FreeBSD returns the mod time of the symlink's containing
7581
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7582
if test "$[*]" = "X"; then
7584
set X `ls -t $srcdir/configure conftest.file`
7587
if test "$[*]" != "X $srcdir/configure conftest.file" \
7588
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
7590
# If neither matched, then we have a broken ls. This can happen
7591
# if, for instance, CONFIG_SHELL is bash and it inherits a
7592
# broken ls alias from the environment. This has actually
7593
# happened. Such a system could not be considered "sane".
7594
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7595
alias in your environment])
7598
test "$[2]" = conftest.file
7604
AC_MSG_ERROR([newly created file is older than distributed files!
7605
Check your system clock])
7607
AC_MSG_RESULT(yes)])
7609
# AM_PROG_INSTALL_STRIP
7611
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7613
# This program is free software; you can redistribute it and/or modify
7614
# it under the terms of the GNU General Public License as published by
7615
# the Free Software Foundation; either version 2, or (at your option)
7616
# any later version.
7618
# This program is distributed in the hope that it will be useful,
7619
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7620
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7621
# GNU General Public License for more details.
7623
# You should have received a copy of the GNU General Public License
7624
# along with this program; if not, write to the Free Software
7625
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7628
# One issue with vendor `install' (even GNU) is that you can't
7629
# specify the program used to strip binaries. This is especially
7630
# annoying in cross-compiling environments, where the build's strip
7631
# is unlikely to handle the host's binaries.
7632
# Fortunately install-sh will honor a STRIPPROG variable, so we
7633
# always use install-sh in `make install-strip', and initialize
7634
# STRIPPROG with the value of the STRIP variable (set by the user).
7635
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7636
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7637
# Installed binaries are usually stripped using `strip' when the user
7638
# run `make install-strip'. However `strip' might not be the right
7639
# tool to use in cross-compilation environments, therefore Automake
7640
# will honor the `STRIP' environment variable to overrule this program.
7641
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7642
if test "$cross_compiling" != no; then
7643
AC_CHECK_TOOL([STRIP], [strip], :)
7645
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7646
AC_SUBST([INSTALL_STRIP_PROGRAM])])