1
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# nls.m4 serial 3 (gettext-0.15)
23
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
24
dnl This file is free software; the Free Software Foundation
25
dnl gives unlimited permission to copy and/or distribute it,
26
dnl with or without modifications, as long as this notice is preserved.
28
dnl This file can can be used in projects which are not available under
29
dnl the GNU General Public License or the GNU Library General Public
30
dnl License but which still want to provide support for the GNU gettext
32
dnl Please note that the actual code of the GNU gettext library is covered
33
dnl by the GNU Library General Public License, and the rest of the GNU
34
dnl gettext package package is covered by the GNU General Public License.
35
dnl They are *not* in the public domain.
38
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
39
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
45
AC_MSG_CHECKING([whether NLS is requested])
46
dnl Default is enabled NLS
48
[ --disable-nls do not use Native Language Support],
49
USE_NLS=$enableval, USE_NLS=yes)
50
AC_MSG_RESULT($USE_NLS)
54
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
56
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
58
# This program is free software; you can redistribute it and/or modify
59
# it under the terms of the GNU General Public License as published by
60
# the Free Software Foundation; either version 2 of the License, or
61
# (at your option) any later version.
63
# This program is distributed in the hope that it will be useful, but
64
# WITHOUT ANY WARRANTY; without even the implied warranty of
65
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
66
# General Public License for more details.
68
# You should have received a copy of the GNU General Public License
69
# along with this program; if not, write to the Free Software
70
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
72
# As a special exception to the GNU General Public License, if you
73
# distribute this file as part of a program that contains a
74
# configuration script generated by Autoconf, you may include it under
75
# the same distribution terms that you use for the rest of that program.
77
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
78
# ----------------------------------
79
AC_DEFUN([PKG_PROG_PKG_CONFIG],
80
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
81
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
82
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
83
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
84
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
86
if test -n "$PKG_CONFIG"; then
87
_pkg_min_version=m4_default([$1], [0.9.0])
88
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
89
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
97
])# PKG_PROG_PKG_CONFIG
99
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
101
# Check to see whether a particular set of modules exists. Similar
102
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
105
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
106
# this or PKG_CHECK_MODULES is called, or make sure to call
107
# PKG_CHECK_EXISTS manually
108
# --------------------------------------------------------------
109
AC_DEFUN([PKG_CHECK_EXISTS],
110
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
111
if test -n "$PKG_CONFIG" && \
112
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
113
m4_ifval([$2], [$2], [:])
114
m4_ifvaln([$3], [else
119
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
120
# ---------------------------------------------
121
m4_define([_PKG_CONFIG],
122
[if test -n "$PKG_CONFIG"; then
123
if test -n "$$1"; then
126
PKG_CHECK_EXISTS([$3],
127
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
135
# _PKG_SHORT_ERRORS_SUPPORTED
136
# -----------------------------
137
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
138
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
139
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
140
_pkg_short_errors_supported=yes
142
_pkg_short_errors_supported=no
144
])# _PKG_SHORT_ERRORS_SUPPORTED
147
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
148
# [ACTION-IF-NOT-FOUND])
151
# Note that if there is a possibility the first call to
152
# PKG_CHECK_MODULES might not happen, you should be sure to include an
153
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
156
# --------------------------------------------------------------
157
AC_DEFUN([PKG_CHECK_MODULES],
158
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
159
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
160
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
163
AC_MSG_CHECKING([for $1])
165
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
166
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
168
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
169
and $1[]_LIBS to avoid the need to call pkg-config.
170
See the pkg-config man page for more details.])
172
if test $pkg_failed = yes; then
173
_PKG_SHORT_ERRORS_SUPPORTED
174
if test $_pkg_short_errors_supported = yes; then
175
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
177
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
179
# Put the nasty error message in config.log where it belongs
180
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
182
ifelse([$4], , [AC_MSG_ERROR(dnl
183
[Package requirements ($2) were not met:
187
Consider adjusting the PKG_CONFIG_PATH environment variable if you
188
installed software in a non-standard prefix.
194
elif test $pkg_failed = untried; then
195
ifelse([$4], , [AC_MSG_FAILURE(dnl
196
[The pkg-config script could not be found or is too old. Make sure it
197
is in your PATH or set the PKG_CONFIG environment variable to the full
202
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
205
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
206
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
208
ifelse([$3], , :, [$3])
210
])# PKG_CHECK_MODULES
212
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
214
# This file is free software; the Free Software Foundation
215
# gives unlimited permission to copy and/or distribute it,
216
# with or without modifications, as long as this notice is preserved.
218
# AM_AUTOMAKE_VERSION(VERSION)
219
# ----------------------------
220
# Automake X.Y traces this macro to ensure aclocal.m4 has been
221
# generated from the m4 files accompanying Automake X.Y.
222
# (This private macro should not be called outside this file.)
223
AC_DEFUN([AM_AUTOMAKE_VERSION],
224
[am__api_version='1.10'
225
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
226
dnl require some minimum version. Point them to the right macro.
227
m4_if([$1], [1.10.2], [],
228
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
231
# _AM_AUTOCONF_VERSION(VERSION)
232
# -----------------------------
233
# aclocal traces this macro to find the Autoconf version.
234
# This is a private macro too. Using m4_define simplifies
235
# the logic in aclocal, which can simply ignore this definition.
236
m4_define([_AM_AUTOCONF_VERSION], [])
238
# AM_SET_CURRENT_AUTOMAKE_VERSION
239
# -------------------------------
240
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
241
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
242
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
243
[AM_AUTOMAKE_VERSION([1.10.2])dnl
244
m4_ifndef([AC_AUTOCONF_VERSION],
245
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
246
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
248
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
250
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
252
# This file is free software; the Free Software Foundation
253
# gives unlimited permission to copy and/or distribute it,
254
# with or without modifications, as long as this notice is preserved.
256
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
257
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
258
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
260
# Of course, Automake must honor this variable whenever it calls a
261
# tool from the auxiliary directory. The problem is that $srcdir (and
262
# therefore $ac_aux_dir as well) can be either absolute or relative,
263
# depending on how configure is run. This is pretty annoying, since
264
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
265
# source directory, any form will work fine, but in subdirectories a
266
# relative path needs to be adjusted first.
268
# $ac_aux_dir/missing
269
# fails when called from a subdirectory if $ac_aux_dir is relative
270
# $top_srcdir/$ac_aux_dir/missing
271
# fails if $ac_aux_dir is absolute,
272
# fails when called from a subdirectory in a VPATH build with
273
# a relative $ac_aux_dir
275
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
276
# are both prefixed by $srcdir. In an in-source build this is usually
277
# harmless because $srcdir is `.', but things will broke when you
278
# start a VPATH build or use an absolute $srcdir.
280
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
281
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
282
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
283
# and then we would define $MISSING as
284
# MISSING="\${SHELL} $am_aux_dir/missing"
285
# This will work as long as MISSING is not called from configure, because
286
# unfortunately $(top_srcdir) has no meaning in configure.
287
# However there are other variables, like CC, which are often used in
288
# configure, and could therefore not use this "fixed" $ac_aux_dir.
290
# Another solution, used here, is to always expand $ac_aux_dir to an
291
# absolute PATH. The drawback is that using absolute paths prevent a
292
# configured tree to be moved without reconfiguration.
294
AC_DEFUN([AM_AUX_DIR_EXPAND],
295
[dnl Rely on autoconf to set up CDPATH properly.
297
# expand $ac_aux_dir to an absolute path
298
am_aux_dir=`cd $ac_aux_dir && pwd`
301
# AM_CONDITIONAL -*- Autoconf -*-
303
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
304
# Free Software Foundation, Inc.
306
# This file is free software; the Free Software Foundation
307
# gives unlimited permission to copy and/or distribute it,
308
# with or without modifications, as long as this notice is preserved.
312
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
313
# -------------------------------------
314
# Define a conditional.
315
AC_DEFUN([AM_CONDITIONAL],
317
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
318
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
319
AC_SUBST([$1_TRUE])dnl
320
AC_SUBST([$1_FALSE])dnl
321
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
322
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
330
AC_CONFIG_COMMANDS_PRE(
331
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
332
AC_MSG_ERROR([[conditional "$1" was never defined.
333
Usually this means the macro was only invoked conditionally.]])
336
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
337
# Free Software Foundation, Inc.
339
# This file is free software; the Free Software Foundation
340
# gives unlimited permission to copy and/or distribute it,
341
# with or without modifications, as long as this notice is preserved.
345
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
346
# written in clear, in which case automake, when reading aclocal.m4,
347
# will think it sees a *use*, and therefore will trigger all it's
348
# C support machinery. Also note that it means that autoscan, seeing
349
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
352
# _AM_DEPENDENCIES(NAME)
353
# ----------------------
354
# See how the compiler implements dependency checking.
355
# NAME is "CC", "CXX", "GCJ", or "OBJC".
356
# We try a few techniques and use that to set a single cache variable.
358
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
359
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
360
# dependency, and given that the user is not expected to run this macro,
361
# just rely on AC_PROG_CC.
362
AC_DEFUN([_AM_DEPENDENCIES],
363
[AC_REQUIRE([AM_SET_DEPDIR])dnl
364
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
365
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
366
AC_REQUIRE([AM_DEP_TRACK])dnl
368
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
369
[$1], CXX, [depcc="$CXX" am_compiler_list=],
370
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
371
[$1], UPC, [depcc="$UPC" am_compiler_list=],
372
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
373
[depcc="$$1" am_compiler_list=])
375
AC_CACHE_CHECK([dependency style of $depcc],
376
[am_cv_$1_dependencies_compiler_type],
377
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
378
# We make a subdir and do the tests there. Otherwise we can end up
379
# making bogus files that we don't know about and never remove. For
380
# instance it was reported that on HP-UX the gcc test will end up
381
# making a dummy file named `D' -- because `-MD' means `put the output
384
# Copy depcomp to subdir because otherwise we won't find it if we're
385
# using a relative directory.
386
cp "$am_depcomp" conftest.dir
388
# We will build objects and dependencies in a subdirectory because
389
# it helps to detect inapplicable dependency modes. For instance
390
# both Tru64's cc and ICC support -MD to output dependencies as a
391
# side effect of compilation, but ICC will put the dependencies in
392
# the current directory while Tru64 will put them in the object
396
am_cv_$1_dependencies_compiler_type=none
397
if test "$am_compiler_list" = ""; then
398
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
400
for depmode in $am_compiler_list; do
401
# Setup a source with many dependencies, because some compilers
402
# like to wrap large dependency lists on column 80 (with \), and
403
# we should not choose a depcomp mode which is confused by this.
405
# We need to recreate these files for each test, as the compiler may
406
# overwrite some of them when testing with obscure command lines.
407
# This happens at least with the AIX C compiler.
409
for i in 1 2 3 4 5 6; do
410
echo '#include "conftst'$i'.h"' >> sub/conftest.c
411
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
412
# Solaris 8's {/usr,}/bin/sh.
413
touch sub/conftst$i.h
415
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
419
# after this tag, mechanisms are not by side-effect, so they'll
420
# only be used when explicitly requested
421
if test "x$enable_dependency_tracking" = xyes; then
429
# We check with `-c' and `-o' for the sake of the "dashmstdout"
430
# mode. It turns out that the SunPro C++ compiler does not properly
431
# handle `-M -o', and we need to detect this.
432
if depmode=$depmode \
433
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
434
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
435
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
436
>/dev/null 2>conftest.err &&
437
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
438
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
439
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
440
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
441
# icc doesn't choke on unknown options, it will just issue warnings
442
# or remarks (even with -Werror). So we grep stderr for any message
443
# that says an option was ignored or not supported.
444
# When given -MP, icc 7.0 and 7.1 complain thusly:
445
# icc: Command line warning: ignoring option '-M'; no argument required
446
# The diagnosis changed in icc 8.0:
447
# icc: Command line remark: option '-MP' not supported
448
if (grep 'ignoring option' conftest.err ||
449
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
450
am_cv_$1_dependencies_compiler_type=$depmode
459
am_cv_$1_dependencies_compiler_type=none
462
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
463
AM_CONDITIONAL([am__fastdep$1], [
464
test "x$enable_dependency_tracking" != xno \
465
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
471
# Choose a directory name for dependency files.
472
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
473
AC_DEFUN([AM_SET_DEPDIR],
474
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
475
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
481
AC_DEFUN([AM_DEP_TRACK],
482
[AC_ARG_ENABLE(dependency-tracking,
483
[ --disable-dependency-tracking speeds up one-time build
484
--enable-dependency-tracking do not reject slow dependency extractors])
485
if test "x$enable_dependency_tracking" != xno; then
486
am_depcomp="$ac_aux_dir/depcomp"
489
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
490
AC_SUBST([AMDEPBACKSLASH])dnl
491
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
494
# Generate code to set up dependency tracking. -*- Autoconf -*-
496
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
497
# Free Software Foundation, Inc.
499
# This file is free software; the Free Software Foundation
500
# gives unlimited permission to copy and/or distribute it,
501
# with or without modifications, as long as this notice is preserved.
505
# _AM_OUTPUT_DEPENDENCY_COMMANDS
506
# ------------------------------
507
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
509
# Autoconf 2.62 quotes --file arguments for eval, but not when files
510
# are listed without --file. Let's play safe and only enable the eval
511
# if we detect the quoting.
512
case $CONFIG_FILES in
513
*\'*) eval set x "$CONFIG_FILES" ;;
514
*) set x $CONFIG_FILES ;;
519
# Strip MF so we end up with the name of the file.
520
mf=`echo "$mf" | sed -e 's/:.*$//'`
521
# Check whether this is an Automake generated Makefile or not.
522
# We used to match only the files named `Makefile.in', but
523
# some people rename them; so instead we look at the file content.
524
# Grep'ing the first line is not enough: some people post-process
525
# each Makefile.in and add a new line on top of each file to say so.
526
# Grep'ing the whole file is not good either: AIX grep has a line
527
# limit of 2048, but all sed's we know have understand at least 4000.
528
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
529
dirpart=`AS_DIRNAME("$mf")`
533
# Extract the definition of DEPDIR, am__include, and am__quote
534
# from the Makefile without running `make'.
535
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
536
test -z "$DEPDIR" && continue
537
am__include=`sed -n 's/^am__include = //p' < "$mf"`
538
test -z "am__include" && continue
539
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
540
# When using ansi2knr, U may be empty or an underscore; expand it
541
U=`sed -n 's/^U = //p' < "$mf"`
542
# Find all dependency output files, they are included files with
543
# $(DEPDIR) in their names. We invoke sed twice because it is the
544
# simplest approach to changing $(DEPDIR) to its actual value in the
546
for file in `sed -n "
547
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
548
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
549
# Make sure the directory exists.
550
test -f "$dirpart/$file" && continue
551
fdir=`AS_DIRNAME(["$file"])`
552
AS_MKDIR_P([$dirpart/$fdir])
553
# echo "creating $dirpart/$file"
554
echo '# dummy' > "$dirpart/$file"
558
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
561
# AM_OUTPUT_DEPENDENCY_COMMANDS
562
# -----------------------------
563
# This macro should only be invoked once -- use via AC_REQUIRE.
565
# This code is only required when automatic dependency tracking
566
# is enabled. FIXME. This creates each `.P' file that we will
567
# need in order to bootstrap the dependency handling code.
568
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
569
[AC_CONFIG_COMMANDS([depfiles],
570
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
571
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
574
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
575
# Free Software Foundation, Inc.
577
# This file is free software; the Free Software Foundation
578
# gives unlimited permission to copy and/or distribute it,
579
# with or without modifications, as long as this notice is preserved.
583
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
584
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
586
# Do all the work for Automake. -*- Autoconf -*-
588
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
589
# 2005, 2006, 2008 Free Software Foundation, Inc.
591
# This file is free software; the Free Software Foundation
592
# gives unlimited permission to copy and/or distribute it,
593
# with or without modifications, as long as this notice is preserved.
597
# This macro actually does too much. Some checks are only needed if
598
# your package does certain things. But this isn't really a big deal.
600
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
601
# AM_INIT_AUTOMAKE([OPTIONS])
602
# -----------------------------------------------
603
# The call with PACKAGE and VERSION arguments is the old style
604
# call (pre autoconf-2.50), which is being phased out. PACKAGE
605
# and VERSION should now be passed to AC_INIT and removed from
606
# the call to AM_INIT_AUTOMAKE.
607
# We support both call styles for the transition. After
608
# the next Automake release, Autoconf can make the AC_INIT
609
# arguments mandatory, and then we can depend on a new Autoconf
610
# release and drop the old call support.
611
AC_DEFUN([AM_INIT_AUTOMAKE],
612
[AC_PREREQ([2.60])dnl
613
dnl Autoconf wants to disallow AM_ names. We explicitly allow
614
dnl the ones we care about.
615
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
616
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
617
AC_REQUIRE([AC_PROG_INSTALL])dnl
618
if test "`cd $srcdir && pwd`" != "`pwd`"; then
619
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
620
# is not polluted with repeated "-I."
621
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
622
# test to see if srcdir already configured
623
if test -f $srcdir/config.status; then
624
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
628
# test whether we have cygpath
629
if test -z "$CYGPATH_W"; then
630
if (cygpath --version) >/dev/null 2>/dev/null; then
631
CYGPATH_W='cygpath -w'
636
AC_SUBST([CYGPATH_W])
638
# Define the identity of the package.
639
dnl Distinguish between old-style and new-style calls.
641
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
642
AC_SUBST([PACKAGE], [$1])dnl
643
AC_SUBST([VERSION], [$2])],
644
[_AM_SET_OPTIONS([$1])dnl
645
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
646
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
647
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
648
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
649
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
651
_AM_IF_OPTION([no-define],,
652
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
653
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
655
# Some tools Automake needs.
656
AC_REQUIRE([AM_SANITY_CHECK])dnl
657
AC_REQUIRE([AC_ARG_PROGRAM])dnl
658
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
659
AM_MISSING_PROG(AUTOCONF, autoconf)
660
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
661
AM_MISSING_PROG(AUTOHEADER, autoheader)
662
AM_MISSING_PROG(MAKEINFO, makeinfo)
664
AM_PROG_INSTALL_STRIP
665
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
666
# We need awk for the "check" target. The system "awk" is bad on
668
AC_REQUIRE([AC_PROG_AWK])dnl
669
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
670
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
671
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
672
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
673
[_AM_PROG_TAR([v7])])])
674
_AM_IF_OPTION([no-dependencies],,
675
[AC_PROVIDE_IFELSE([AC_PROG_CC],
676
[_AM_DEPENDENCIES(CC)],
677
[define([AC_PROG_CC],
678
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
679
AC_PROVIDE_IFELSE([AC_PROG_CXX],
680
[_AM_DEPENDENCIES(CXX)],
681
[define([AC_PROG_CXX],
682
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
683
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
684
[_AM_DEPENDENCIES(OBJC)],
685
[define([AC_PROG_OBJC],
686
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
691
# When config.status generates a header, we must update the stamp-h file.
692
# This file resides in the same directory as the config header
693
# that is generated. The stamp files are numbered to have different names.
695
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
696
# loop where config.status creates the headers, so we can generate
697
# our stamp files there.
698
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
699
[# Compute $1's index in $config_headers.
702
for _am_header in $config_headers :; do
704
$_am_arg | $_am_arg:* )
707
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
710
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
712
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
714
# This file is free software; the Free Software Foundation
715
# gives unlimited permission to copy and/or distribute it,
716
# with or without modifications, as long as this notice is preserved.
720
# Define $install_sh.
721
AC_DEFUN([AM_PROG_INSTALL_SH],
722
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
723
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
724
AC_SUBST(install_sh)])
726
# Copyright (C) 2003, 2005 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.
734
# Check whether the underlying file-system supports filenames
735
# with a leading dot. For instance MS-DOS doesn't.
736
AC_DEFUN([AM_SET_LEADING_DOT],
737
[rm -rf .tst 2>/dev/null
738
mkdir .tst 2>/dev/null
739
if test -d .tst; then
744
rmdir .tst 2>/dev/null
745
AC_SUBST([am__leading_dot])])
747
# Check to see how 'make' treats includes. -*- Autoconf -*-
749
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
751
# This file is free software; the Free Software Foundation
752
# gives unlimited permission to copy and/or distribute it,
753
# with or without modifications, as long as this notice is preserved.
759
# Check to see how make treats includes.
760
AC_DEFUN([AM_MAKE_INCLUDE],
761
[am_make=${MAKE-make}
762
cat > confinc << 'END'
767
# If we don't find an include directive, just comment out the code.
768
AC_MSG_CHECKING([for style of include used by $am_make])
772
# First try GNU make style include.
773
echo "include confinc" > confmf
774
# We grep out `Entering directory' and `Leaving directory'
775
# messages which can occur if `w' ends up in MAKEFLAGS.
776
# In particular we don't look at `^make:' because GNU make might
777
# be invoked under some other name (usually "gmake"), in which
778
# case it prints its new name instead of `make'.
779
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
784
# Now try BSD make style include.
785
if test "$am__include" = "#"; then
786
echo '.include "confinc"' > confmf
787
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
793
AC_SUBST([am__include])
794
AC_SUBST([am__quote])
795
AC_MSG_RESULT([$_am_result])
799
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
801
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
802
# Free Software Foundation, Inc.
804
# This file is free software; the Free Software Foundation
805
# gives unlimited permission to copy and/or distribute it,
806
# with or without modifications, as long as this notice is preserved.
810
# AM_MISSING_PROG(NAME, PROGRAM)
811
# ------------------------------
812
AC_DEFUN([AM_MISSING_PROG],
813
[AC_REQUIRE([AM_MISSING_HAS_RUN])
814
$1=${$1-"${am_missing_run}$2"}
820
# Define MISSING if not defined so far and test if it supports --run.
821
# If it does, set am_missing_run to use it, otherwise, to nothing.
822
AC_DEFUN([AM_MISSING_HAS_RUN],
823
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
824
AC_REQUIRE_AUX_FILE([missing])dnl
825
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
826
# Use eval to expand $SHELL
827
if eval "$MISSING --run true"; then
828
am_missing_run="$MISSING --run "
831
AC_MSG_WARN([`missing' script is too old or missing])
835
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
837
# This file is free software; the Free Software Foundation
838
# gives unlimited permission to copy and/or distribute it,
839
# with or without modifications, as long as this notice is preserved.
843
# Check for `mkdir -p'.
844
AC_DEFUN([AM_PROG_MKDIR_P],
845
[AC_PREREQ([2.60])dnl
846
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
847
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
848
dnl while keeping a definition of mkdir_p for backward compatibility.
849
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
850
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
851
dnl Makefile.ins that do not define MKDIR_P, so we do our own
852
dnl adjustment using top_builddir (which is defined more often than
854
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
856
[[\\/$]]* | ?:[[\\/]]*) ;;
857
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
861
# Helper functions for option handling. -*- Autoconf -*-
863
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
865
# This file is free software; the Free Software Foundation
866
# gives unlimited permission to copy and/or distribute it,
867
# with or without modifications, as long as this notice is preserved.
871
# _AM_MANGLE_OPTION(NAME)
872
# -----------------------
873
AC_DEFUN([_AM_MANGLE_OPTION],
874
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
876
# _AM_SET_OPTION(NAME)
877
# ------------------------------
878
# Set option NAME. Presently that only means defining a flag for this option.
879
AC_DEFUN([_AM_SET_OPTION],
880
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
882
# _AM_SET_OPTIONS(OPTIONS)
883
# ----------------------------------
884
# OPTIONS is a space-separated list of Automake options.
885
AC_DEFUN([_AM_SET_OPTIONS],
886
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
888
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
889
# -------------------------------------------
890
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
891
AC_DEFUN([_AM_IF_OPTION],
892
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
894
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
895
# Free Software Foundation, Inc.
897
# This file is free software; the Free Software Foundation
898
# gives unlimited permission to copy and/or distribute it,
899
# with or without modifications, as long as this notice is preserved.
901
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
902
# ---------------------------------------------------------------------------
903
# Adds support for distributing Python modules and packages. To
904
# install modules, copy them to $(pythondir), using the python_PYTHON
905
# automake variable. To install a package with the same name as the
906
# automake package, install to $(pkgpythondir), or use the
907
# pkgpython_PYTHON automake variable.
909
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
910
# locations to install python extension modules (shared libraries).
911
# Another macro is required to find the appropriate flags to compile
914
# If your package is configured with a different prefix to python,
915
# users will have to add the install directory to the PYTHONPATH
916
# environment variable, or create a .pth file (see the python
917
# documentation for details).
919
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
920
# cause an error if the version of python installed on the system
921
# doesn't meet the requirement. MINIMUM-VERSION should consist of
922
# numbers and dots only.
923
AC_DEFUN([AM_PATH_PYTHON],
925
dnl Find a Python interpreter. Python versions prior to 1.5 are not
926
dnl supported because the default installation locations changed from
927
dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
929
m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
930
[python python2 python2.5 python2.4 python2.3 python2.2 dnl
931
python2.1 python2.0 python1.6 python1.5])
934
dnl No version check is needed.
935
# Find any Python interpreter.
936
if test -z "$PYTHON"; then
937
AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
939
am_display_PYTHON=python
941
dnl A version check is needed.
942
if test -n "$PYTHON"; then
943
# If the user set $PYTHON, use it and don't search something else.
944
AC_MSG_CHECKING([whether $PYTHON version >= $1])
945
AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
946
[AC_MSG_RESULT(yes)],
947
[AC_MSG_ERROR(too old)])
948
am_display_PYTHON=$PYTHON
950
# Otherwise, try each interpreter until we find one that satisfies
952
AC_CACHE_CHECK([for a Python interpreter with version >= $1],
953
[am_cv_pathless_PYTHON],[
954
for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
955
test "$am_cv_pathless_PYTHON" = none && break
956
AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
958
# Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
959
if test "$am_cv_pathless_PYTHON" = none; then
962
AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
964
am_display_PYTHON=$am_cv_pathless_PYTHON
968
if test "$PYTHON" = :; then
969
dnl Run any user-specified action, or abort.
970
m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
973
dnl Query Python for its version number. Getting [:3] seems to be
974
dnl the best way to do this; it's what "site.py" does in the standard
977
AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
978
[am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
979
AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
981
dnl Use the values of $prefix and $exec_prefix for the corresponding
982
dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
983
dnl distinct variables so they can be overridden if need be. However,
984
dnl general consensus is that you shouldn't need this ability.
986
AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
987
AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
989
dnl At times (like when building shared libraries) you may want
990
dnl to know which OS platform Python thinks this is.
992
AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
993
[am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
994
AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
997
dnl Set up 4 directories:
999
dnl pythondir -- where to install python scripts. This is the
1000
dnl site-packages directory, not the python standard library
1001
dnl directory like in previous automake betas. This behavior
1002
dnl is more consistent with lispdir.m4 for example.
1003
dnl Query distutils for this directory. distutils does not exist in
1004
dnl Python 1.5, so we fall back to the hardcoded directory if it
1006
AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1007
[am_cv_python_pythondir],
1008
[if test "x$prefix" = xNONE
1012
py_prefix_arg=",prefix='$prefix'"
1014
am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null ||
1015
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
1016
AC_SUBST([pythondir], [$am_cv_python_pythondir])
1018
dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
1019
dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
1020
dnl more consistent with the rest of automake.
1022
AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
1024
dnl pyexecdir -- directory for installing python extension modules
1025
dnl (shared libraries)
1026
dnl Query distutils for this directory. distutils does not exist in
1027
dnl Python 1.5, so we fall back to the hardcoded directory if it
1029
AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1030
[am_cv_python_pyexecdir],
1031
[if test "x$exec_prefix" = xNONE
1033
py_exec_prefix_arg=$py_prefix_arg
1035
py_exec_prefix_arg=",prefix='$exec_prefix'"
1037
am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null ||
1038
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
1039
AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1041
dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1043
AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
1045
dnl Run any user-specified action.
1052
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1053
# ---------------------------------------------------------------------------
1054
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1055
# Run ACTION-IF-FALSE otherwise.
1056
# This test uses sys.hexversion instead of the string equivalent (first
1057
# word of sys.version), in order to cope with versions such as 2.2c1.
1058
# hexversion has been introduced in Python 1.5.2; it's probably not
1059
# worth to support older versions (1.5.1 was released on October 31, 1998).
1060
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1061
[prog="import sys, string
1062
# split strings by '.' and convert to numeric. Append some zeros
1063
# because we need at least 4 digits for the hex conversion.
1064
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
1066
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
1067
sys.exit(sys.hexversion < minverhex)"
1068
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1070
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1072
# This file is free software; the Free Software Foundation
1073
# gives unlimited permission to copy and/or distribute it,
1074
# with or without modifications, as long as this notice is preserved.
1076
# AM_RUN_LOG(COMMAND)
1077
# -------------------
1078
# Run COMMAND, save the exit status in ac_status, and log it.
1079
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1080
AC_DEFUN([AM_RUN_LOG],
1081
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1082
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1084
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1085
(exit $ac_status); }])
1087
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1089
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1090
# Free Software Foundation, Inc.
1092
# This file is free software; the Free Software Foundation
1093
# gives unlimited permission to copy and/or distribute it,
1094
# with or without modifications, as long as this notice is preserved.
1100
AC_DEFUN([AM_SANITY_CHECK],
1101
[AC_MSG_CHECKING([whether build environment is sane])
1104
echo timestamp > conftest.file
1105
# Do `set' in a subshell so we don't clobber the current shell's
1106
# arguments. Must try -L first in case configure is actually a
1107
# symlink; some systems play weird games with the mod time of symlinks
1108
# (eg FreeBSD returns the mod time of the symlink's containing
1111
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1112
if test "$[*]" = "X"; then
1114
set X `ls -t $srcdir/configure conftest.file`
1117
if test "$[*]" != "X $srcdir/configure conftest.file" \
1118
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1120
# If neither matched, then we have a broken ls. This can happen
1121
# if, for instance, CONFIG_SHELL is bash and it inherits a
1122
# broken ls alias from the environment. This has actually
1123
# happened. Such a system could not be considered "sane".
1124
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1125
alias in your environment])
1128
test "$[2]" = conftest.file
1134
AC_MSG_ERROR([newly created file is older than distributed files!
1135
Check your system clock])
1137
AC_MSG_RESULT(yes)])
1139
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1141
# This file is free software; the Free Software Foundation
1142
# gives unlimited permission to copy and/or distribute it,
1143
# with or without modifications, as long as this notice is preserved.
1145
# AM_PROG_INSTALL_STRIP
1146
# ---------------------
1147
# One issue with vendor `install' (even GNU) is that you can't
1148
# specify the program used to strip binaries. This is especially
1149
# annoying in cross-compiling environments, where the build's strip
1150
# is unlikely to handle the host's binaries.
1151
# Fortunately install-sh will honor a STRIPPROG variable, so we
1152
# always use install-sh in `make install-strip', and initialize
1153
# STRIPPROG with the value of the STRIP variable (set by the user).
1154
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1155
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1156
# Installed binaries are usually stripped using `strip' when the user
1157
# run `make install-strip'. However `strip' might not be the right
1158
# tool to use in cross-compilation environments, therefore Automake
1159
# will honor the `STRIP' environment variable to overrule this program.
1160
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1161
if test "$cross_compiling" != no; then
1162
AC_CHECK_TOOL([STRIP], [strip], :)
1164
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1165
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1167
# Copyright (C) 2006 Free Software Foundation, Inc.
1169
# This file is free software; the Free Software Foundation
1170
# gives unlimited permission to copy and/or distribute it,
1171
# with or without modifications, as long as this notice is preserved.
1173
# _AM_SUBST_NOTMAKE(VARIABLE)
1174
# ---------------------------
1175
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1176
# This macro is traced by Automake.
1177
AC_DEFUN([_AM_SUBST_NOTMAKE])
1179
# Check how to create a tarball. -*- Autoconf -*-
1181
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1183
# This file is free software; the Free Software Foundation
1184
# gives unlimited permission to copy and/or distribute it,
1185
# with or without modifications, as long as this notice is preserved.
1189
# _AM_PROG_TAR(FORMAT)
1190
# --------------------
1191
# Check how to create a tarball in format FORMAT.
1192
# FORMAT should be one of `v7', `ustar', or `pax'.
1194
# Substitute a variable $(am__tar) that is a command
1195
# writing to stdout a FORMAT-tarball containing the directory
1197
# tardir=directory && $(am__tar) > result.tar
1199
# Substitute a variable $(am__untar) that extract such
1200
# a tarball read from stdin.
1201
# $(am__untar) < result.tar
1202
AC_DEFUN([_AM_PROG_TAR],
1203
[# Always define AMTAR for backward compatibility.
1204
AM_MISSING_PROG([AMTAR], [tar])
1206
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1207
[m4_case([$1], [ustar],, [pax],,
1208
[m4_fatal([Unknown tar format])])
1209
AC_MSG_CHECKING([how to create a $1 tar archive])
1210
# Loop over all known methods to create a tar archive until one works.
1211
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1212
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1213
# Do not fold the above two line into one, because Tru64 sh and
1214
# Solaris sh will not grok spaces in the rhs of `-'.
1215
for _am_tool in $_am_tools
1219
for _am_tar in tar gnutar gtar;
1221
AM_RUN_LOG([$_am_tar --version]) && break
1223
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1224
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1225
am__untar="$_am_tar -xf -"
1228
# Must skip GNU tar: if it does not support --format= it doesn't create
1229
# ustar tarball either.
1230
(tar --version) >/dev/null 2>&1 && continue
1231
am__tar='tar chf - "$$tardir"'
1232
am__tar_='tar chf - "$tardir"'
1233
am__untar='tar xf -'
1236
am__tar='pax -L -x $1 -w "$$tardir"'
1237
am__tar_='pax -L -x $1 -w "$tardir"'
1241
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1242
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1243
am__untar='cpio -i -H $1 -d'
1252
# If the value was cached, stop now. We just wanted to have am__tar
1253
# and am__untar set.
1254
test -n "${am_cv_prog_tar_$1}" && break
1256
# tar/untar a dummy directory, and stop if the command works
1259
echo GrepMe > conftest.dir/file
1260
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1262
if test -s conftest.tar; then
1263
AM_RUN_LOG([$am__untar <conftest.tar])
1264
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1269
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1270
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1272
AC_SUBST([am__untar])
1275
m4_include([m4/intltool.m4])
1276
m4_include([m4/libtool.m4])
1277
m4_include([m4/ltoptions.m4])
1278
m4_include([m4/ltsugar.m4])
1279
m4_include([m4/ltversion.m4])
1280
m4_include([m4/lt~obsolete.m4])