11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
15
dnl autostars m4 macro for versioning
16
dnl thomas@apestaart.org
18
dnl AS_VERSION(PACKAGE, PREFIX, MAJOR, MINOR, MICRO, NANO, ACTION_IF_NO_NANO, ACTION_IF_NANO)
20
dnl AS_VERSION(gstreamer, GST_VERSION, 0, 3, 2,)
21
dnl for a 0.3.2 release version
24
dnl - defines [$PREFIX]_MAJOR, MINOR and MICRO
25
dnl - if NANO is empty, then we're in release mode, else in cvs/dev mode
26
dnl - defines [$PREFIX], VERSION, and [$PREFIX]_RELEASE
27
dnl - executes the relevant action
28
dnl - AC_SUBST's PACKAGE, VERSION, [$PREFIX] and [$PREFIX]_RELEASE
29
dnl as well as the little ones
30
dnl - doesn't call AM_INIT_AUTOMAKE anymore because it prevents
31
dnl maintainer mode from running ok
33
dnl don't forget to put #undef [$2] and [$2]_RELEASE in acconfig.h
42
if test "x$NANO" = "x" || test "x$NANO" = "x0";
44
AC_MSG_NOTICE(configuring [$1] for release)
45
VERSION=[$3].[$4].[$5]
48
ifelse([$7], , :, [$7])
50
AC_MSG_NOTICE(configuring [$1] for development with nano $NANO)
51
VERSION=[$3].[$4].[$5].$NANO
52
[$2]_RELEASE=`date +%Y%m%d_%H%M%S`
54
ifelse([$8], , :, [$8])
58
AC_DEFINE_UNQUOTED([$2], "$[$2]", [Define the version])
60
AC_DEFINE_UNQUOTED([$2]_RELEASE, "$[$2]_RELEASE", [Define the release version])
61
AC_SUBST([$2]_RELEASE)
66
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define the package name])
68
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Define the version])
72
# Do all the work for Automake. -*- Autoconf -*-
74
# This macro actually does too much some checks are only needed if
75
# your package does certain things. But this isn't really a big deal.
77
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
78
# Free Software Foundation, Inc.
80
# This program is free software; you can redistribute it and/or modify
81
# it under the terms of the GNU General Public License as published by
82
# the Free Software Foundation; either version 2, or (at your option)
85
# This program is distributed in the hope that it will be useful,
86
# but WITHOUT ANY WARRANTY; without even the implied warranty of
87
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
88
# GNU General Public License for more details.
90
# You should have received a copy of the GNU General Public License
91
# along with this program; if not, write to the Free Software
92
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
99
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
100
# the ones we care about.
101
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
103
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
104
# AM_INIT_AUTOMAKE([OPTIONS])
105
# -----------------------------------------------
106
# The call with PACKAGE and VERSION arguments is the old style
107
# call (pre autoconf-2.50), which is being phased out. PACKAGE
108
# and VERSION should now be passed to AC_INIT and removed from
109
# the call to AM_INIT_AUTOMAKE.
110
# We support both call styles for the transition. After
111
# the next Automake release, Autoconf can make the AC_INIT
112
# arguments mandatory, and then we can depend on a new Autoconf
113
# release and drop the old call support.
114
AC_DEFUN([AM_INIT_AUTOMAKE],
115
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
116
AC_REQUIRE([AC_PROG_INSTALL])dnl
117
# test to see if srcdir already configured
118
if test "`cd $srcdir && pwd`" != "`pwd`" &&
119
test -f $srcdir/config.status; then
120
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
123
# test whether we have cygpath
124
if test -z "$CYGPATH_W"; then
125
if (cygpath --version) >/dev/null 2>/dev/null; then
126
CYGPATH_W='cygpath -w'
131
AC_SUBST([CYGPATH_W])
133
# Define the identity of the package.
134
dnl Distinguish between old-style and new-style calls.
136
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
137
AC_SUBST([PACKAGE], [$1])dnl
138
AC_SUBST([VERSION], [$2])],
139
[_AM_SET_OPTIONS([$1])dnl
140
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
141
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
143
_AM_IF_OPTION([no-define],,
144
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
145
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
147
# Some tools Automake needs.
148
AC_REQUIRE([AM_SANITY_CHECK])dnl
149
AC_REQUIRE([AC_ARG_PROGRAM])dnl
150
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
151
AM_MISSING_PROG(AUTOCONF, autoconf)
152
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
153
AM_MISSING_PROG(AUTOHEADER, autoheader)
154
AM_MISSING_PROG(MAKEINFO, makeinfo)
155
AM_MISSING_PROG(AMTAR, tar)
157
AM_PROG_INSTALL_STRIP
158
# We need awk for the "check" target. The system "awk" is bad on
160
AC_REQUIRE([AC_PROG_AWK])dnl
161
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
162
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
164
_AM_IF_OPTION([no-dependencies],,
165
[AC_PROVIDE_IFELSE([AC_PROG_CC],
166
[_AM_DEPENDENCIES(CC)],
167
[define([AC_PROG_CC],
168
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
169
AC_PROVIDE_IFELSE([AC_PROG_CXX],
170
[_AM_DEPENDENCIES(CXX)],
171
[define([AC_PROG_CXX],
172
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
177
# When config.status generates a header, we must update the stamp-h file.
178
# This file resides in the same directory as the config header
179
# that is generated. The stamp files are numbered to have different names.
181
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
182
# loop where config.status creates the headers, so we can generate
183
# our stamp files there.
184
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
185
[# Compute $1's index in $config_headers.
187
for _am_header in $config_headers :; do
192
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
195
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
197
# Copyright 2002 Free Software Foundation, Inc.
199
# This program is free software; you can redistribute it and/or modify
200
# it under the terms of the GNU General Public License as published by
201
# the Free Software Foundation; either version 2, or (at your option)
204
# This program is distributed in the hope that it will be useful,
205
# but WITHOUT ANY WARRANTY; without even the implied warranty of
206
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
207
# GNU General Public License for more details.
209
# You should have received a copy of the GNU General Public License
210
# along with this program; if not, write to the Free Software
211
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
213
# AM_AUTOMAKE_VERSION(VERSION)
214
# ----------------------------
215
# Automake X.Y traces this macro to ensure aclocal.m4 has been
216
# generated from the m4 files accompanying Automake X.Y.
217
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
219
# AM_SET_CURRENT_AUTOMAKE_VERSION
220
# -------------------------------
221
# Call AM_AUTOMAKE_VERSION so it can be traced.
222
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
223
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
224
[AM_AUTOMAKE_VERSION([1.7.6])])
226
# Helper functions for option handling. -*- Autoconf -*-
228
# Copyright 2001, 2002 Free Software Foundation, Inc.
230
# This program is free software; you can redistribute it and/or modify
231
# it under the terms of the GNU General Public License as published by
232
# the Free Software Foundation; either version 2, or (at your option)
235
# This program is distributed in the hope that it will be useful,
236
# but WITHOUT ANY WARRANTY; without even the implied warranty of
237
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
238
# GNU General Public License for more details.
240
# You should have received a copy of the GNU General Public License
241
# along with this program; if not, write to the Free Software
242
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
247
# _AM_MANGLE_OPTION(NAME)
248
# -----------------------
249
AC_DEFUN([_AM_MANGLE_OPTION],
250
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
252
# _AM_SET_OPTION(NAME)
253
# ------------------------------
254
# Set option NAME. Presently that only means defining a flag for this option.
255
AC_DEFUN([_AM_SET_OPTION],
256
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
258
# _AM_SET_OPTIONS(OPTIONS)
259
# ----------------------------------
260
# OPTIONS is a space-separated list of Automake options.
261
AC_DEFUN([_AM_SET_OPTIONS],
262
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
264
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
265
# -------------------------------------------
266
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
267
AC_DEFUN([_AM_IF_OPTION],
268
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
271
# Check to make sure that the build environment is sane.
274
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
276
# This program is free software; you can redistribute it and/or modify
277
# it under the terms of the GNU General Public License as published by
278
# the Free Software Foundation; either version 2, or (at your option)
281
# This program is distributed in the hope that it will be useful,
282
# but WITHOUT ANY WARRANTY; without even the implied warranty of
283
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
284
# GNU General Public License for more details.
286
# You should have received a copy of the GNU General Public License
287
# along with this program; if not, write to the Free Software
288
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
295
AC_DEFUN([AM_SANITY_CHECK],
296
[AC_MSG_CHECKING([whether build environment is sane])
299
echo timestamp > conftest.file
300
# Do `set' in a subshell so we don't clobber the current shell's
301
# arguments. Must try -L first in case configure is actually a
302
# symlink; some systems play weird games with the mod time of symlinks
303
# (eg FreeBSD returns the mod time of the symlink's containing
306
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
307
if test "$[*]" = "X"; then
309
set X `ls -t $srcdir/configure conftest.file`
312
if test "$[*]" != "X $srcdir/configure conftest.file" \
313
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
315
# If neither matched, then we have a broken ls. This can happen
316
# if, for instance, CONFIG_SHELL is bash and it inherits a
317
# broken ls alias from the environment. This has actually
318
# happened. Such a system could not be considered "sane".
319
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
320
alias in your environment])
323
test "$[2]" = conftest.file
329
AC_MSG_ERROR([newly created file is older than distributed files!
330
Check your system clock])
337
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
339
# This program is free software; you can redistribute it and/or modify
340
# it under the terms of the GNU General Public License as published by
341
# the Free Software Foundation; either version 2, or (at your option)
344
# This program is distributed in the hope that it will be useful,
345
# but WITHOUT ANY WARRANTY; without even the implied warranty of
346
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
347
# GNU General Public License for more details.
349
# You should have received a copy of the GNU General Public License
350
# along with this program; if not, write to the Free Software
351
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
356
# AM_MISSING_PROG(NAME, PROGRAM)
357
# ------------------------------
358
AC_DEFUN([AM_MISSING_PROG],
359
[AC_REQUIRE([AM_MISSING_HAS_RUN])
360
$1=${$1-"${am_missing_run}$2"}
366
# Define MISSING if not defined so far and test if it supports --run.
367
# If it does, set am_missing_run to use it, otherwise, to nothing.
368
AC_DEFUN([AM_MISSING_HAS_RUN],
369
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
370
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
371
# Use eval to expand $SHELL
372
if eval "$MISSING --run true"; then
373
am_missing_run="$MISSING --run "
376
AC_MSG_WARN([`missing' script is too old or missing])
382
# Copyright 2001 Free Software Foundation, Inc.
384
# This program is free software; you can redistribute it and/or modify
385
# it under the terms of the GNU General Public License as published by
386
# the Free Software Foundation; either version 2, or (at your option)
389
# This program is distributed in the hope that it will be useful,
390
# but WITHOUT ANY WARRANTY; without even the implied warranty of
391
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
392
# GNU General Public License for more details.
394
# You should have received a copy of the GNU General Public License
395
# along with this program; if not, write to the Free Software
396
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
399
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
400
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
401
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
403
# Of course, Automake must honor this variable whenever it calls a
404
# tool from the auxiliary directory. The problem is that $srcdir (and
405
# therefore $ac_aux_dir as well) can be either absolute or relative,
406
# depending on how configure is run. This is pretty annoying, since
407
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
408
# source directory, any form will work fine, but in subdirectories a
409
# relative path needs to be adjusted first.
411
# $ac_aux_dir/missing
412
# fails when called from a subdirectory if $ac_aux_dir is relative
413
# $top_srcdir/$ac_aux_dir/missing
414
# fails if $ac_aux_dir is absolute,
415
# fails when called from a subdirectory in a VPATH build with
416
# a relative $ac_aux_dir
418
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
419
# are both prefixed by $srcdir. In an in-source build this is usually
420
# harmless because $srcdir is `.', but things will broke when you
421
# start a VPATH build or use an absolute $srcdir.
423
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
424
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
425
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
426
# and then we would define $MISSING as
427
# MISSING="\${SHELL} $am_aux_dir/missing"
428
# This will work as long as MISSING is not called from configure, because
429
# unfortunately $(top_srcdir) has no meaning in configure.
430
# However there are other variables, like CC, which are often used in
431
# configure, and could therefore not use this "fixed" $ac_aux_dir.
433
# Another solution, used here, is to always expand $ac_aux_dir to an
434
# absolute PATH. The drawback is that using absolute paths prevent a
435
# configured tree to be moved without reconfiguration.
437
# Rely on autoconf to set up CDPATH properly.
440
AC_DEFUN([AM_AUX_DIR_EXPAND], [
441
# expand $ac_aux_dir to an absolute path
442
am_aux_dir=`cd $ac_aux_dir && pwd`
447
# Define $install_sh.
449
# Copyright 2001 Free Software Foundation, Inc.
451
# This program is free software; you can redistribute it and/or modify
452
# it under the terms of the GNU General Public License as published by
453
# the Free Software Foundation; either version 2, or (at your option)
456
# This program is distributed in the hope that it will be useful,
457
# but WITHOUT ANY WARRANTY; without even the implied warranty of
458
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
459
# GNU General Public License for more details.
461
# You should have received a copy of the GNU General Public License
462
# along with this program; if not, write to the Free Software
463
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
466
AC_DEFUN([AM_PROG_INSTALL_SH],
467
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
469
AC_SUBST(install_sh)])
471
# AM_PROG_INSTALL_STRIP
473
# Copyright 2001 Free Software Foundation, Inc.
475
# This program is free software; you can redistribute it and/or modify
476
# it under the terms of the GNU General Public License as published by
477
# the Free Software Foundation; either version 2, or (at your option)
480
# This program is distributed in the hope that it will be useful,
481
# but WITHOUT ANY WARRANTY; without even the implied warranty of
482
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
483
# GNU General Public License for more details.
485
# You should have received a copy of the GNU General Public License
486
# along with this program; if not, write to the Free Software
487
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
490
# One issue with vendor `install' (even GNU) is that you can't
491
# specify the program used to strip binaries. This is especially
492
# annoying in cross-compiling environments, where the build's strip
493
# is unlikely to handle the host's binaries.
494
# Fortunately install-sh will honor a STRIPPROG variable, so we
495
# always use install-sh in `make install-strip', and initialize
496
# STRIPPROG with the value of the STRIP variable (set by the user).
497
AC_DEFUN([AM_PROG_INSTALL_STRIP],
498
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
499
# Installed binaries are usually stripped using `strip' when the user
500
# run `make install-strip'. However `strip' might not be the right
501
# tool to use in cross-compilation environments, therefore Automake
502
# will honor the `STRIP' environment variable to overrule this program.
503
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
504
if test "$cross_compiling" != no; then
505
AC_CHECK_TOOL([STRIP], [strip], :)
507
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
508
AC_SUBST([INSTALL_STRIP_PROGRAM])])
511
# Copyright (C) 2003 Free Software Foundation, Inc.
513
# This program is free software; you can redistribute it and/or modify
514
# it under the terms of the GNU General Public License as published by
515
# the Free Software Foundation; either version 2, or (at your option)
518
# This program is distributed in the hope that it will be useful,
519
# but WITHOUT ANY WARRANTY; without even the implied warranty of
520
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
521
# GNU General Public License for more details.
523
# You should have received a copy of the GNU General Public License
524
# along with this program; if not, write to the Free Software
525
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
530
# Check whether the underlying file-system supports filenames
531
# with a leading dot. For instance MS-DOS doesn't.
532
AC_DEFUN([AM_SET_LEADING_DOT],
533
[rm -rf .tst 2>/dev/null
534
mkdir .tst 2>/dev/null
535
if test -d .tst; then
540
rmdir .tst 2>/dev/null
541
AC_SUBST([am__leading_dot])])
543
# serial 5 -*- Autoconf -*-
545
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
547
# This program is free software; you can redistribute it and/or modify
548
# it under the terms of the GNU General Public License as published by
549
# the Free Software Foundation; either version 2, or (at your option)
552
# This program is distributed in the hope that it will be useful,
553
# but WITHOUT ANY WARRANTY; without even the implied warranty of
554
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
555
# GNU General Public License for more details.
557
# You should have received a copy of the GNU General Public License
558
# along with this program; if not, write to the Free Software
559
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
563
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
564
# written in clear, in which case automake, when reading aclocal.m4,
565
# will think it sees a *use*, and therefore will trigger all it's
566
# C support machinery. Also note that it means that autoscan, seeing
567
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
571
# _AM_DEPENDENCIES(NAME)
572
# ----------------------
573
# See how the compiler implements dependency checking.
574
# NAME is "CC", "CXX", "GCJ", or "OBJC".
575
# We try a few techniques and use that to set a single cache variable.
577
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
578
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
579
# dependency, and given that the user is not expected to run this macro,
580
# just rely on AC_PROG_CC.
581
AC_DEFUN([_AM_DEPENDENCIES],
582
[AC_REQUIRE([AM_SET_DEPDIR])dnl
583
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
584
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
585
AC_REQUIRE([AM_DEP_TRACK])dnl
587
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
588
[$1], CXX, [depcc="$CXX" am_compiler_list=],
589
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
590
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
591
[depcc="$$1" am_compiler_list=])
593
AC_CACHE_CHECK([dependency style of $depcc],
594
[am_cv_$1_dependencies_compiler_type],
595
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
596
# We make a subdir and do the tests there. Otherwise we can end up
597
# making bogus files that we don't know about and never remove. For
598
# instance it was reported that on HP-UX the gcc test will end up
599
# making a dummy file named `D' -- because `-MD' means `put the output
602
# Copy depcomp to subdir because otherwise we won't find it if we're
603
# using a relative directory.
604
cp "$am_depcomp" conftest.dir
606
# We will build objects and dependencies in a subdirectory because
607
# it helps to detect inapplicable dependency modes. For instance
608
# both Tru64's cc and ICC support -MD to output dependencies as a
609
# side effect of compilation, but ICC will put the dependencies in
610
# the current directory while Tru64 will put them in the object
614
am_cv_$1_dependencies_compiler_type=none
615
if test "$am_compiler_list" = ""; then
616
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
618
for depmode in $am_compiler_list; do
619
# Setup a source with many dependencies, because some compilers
620
# like to wrap large dependency lists on column 80 (with \), and
621
# we should not choose a depcomp mode which is confused by this.
623
# We need to recreate these files for each test, as the compiler may
624
# overwrite some of them when testing with obscure command lines.
625
# This happens at least with the AIX C compiler.
627
for i in 1 2 3 4 5 6; do
628
echo '#include "conftst'$i'.h"' >> sub/conftest.c
631
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
635
# after this tag, mechanisms are not by side-effect, so they'll
636
# only be used when explicitly requested
637
if test "x$enable_dependency_tracking" = xyes; then
645
# We check with `-c' and `-o' for the sake of the "dashmstdout"
646
# mode. It turns out that the SunPro C++ compiler does not properly
647
# handle `-M -o', and we need to detect this.
648
if depmode=$depmode \
649
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
650
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
651
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
652
>/dev/null 2>conftest.err &&
653
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
654
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
655
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
656
# icc doesn't choke on unknown options, it will just issue warnings
657
# (even with -Werror). So we grep stderr for any message
658
# that says an option was ignored.
659
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
660
am_cv_$1_dependencies_compiler_type=$depmode
669
am_cv_$1_dependencies_compiler_type=none
672
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
673
AM_CONDITIONAL([am__fastdep$1], [
674
test "x$enable_dependency_tracking" != xno \
675
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
681
# Choose a directory name for dependency files.
682
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
683
AC_DEFUN([AM_SET_DEPDIR],
684
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
685
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
691
AC_DEFUN([AM_DEP_TRACK],
692
[AC_ARG_ENABLE(dependency-tracking,
693
[ --disable-dependency-tracking Speeds up one-time builds
694
--enable-dependency-tracking Do not reject slow dependency extractors])
695
if test "x$enable_dependency_tracking" != xno; then
696
am_depcomp="$ac_aux_dir/depcomp"
699
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
700
AC_SUBST([AMDEPBACKSLASH])
703
# Generate code to set up dependency tracking. -*- Autoconf -*-
705
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
707
# This program is free software; you can redistribute it and/or modify
708
# it under the terms of the GNU General Public License as published by
709
# the Free Software Foundation; either version 2, or (at your option)
712
# This program is distributed in the hope that it will be useful,
713
# but WITHOUT ANY WARRANTY; without even the implied warranty of
714
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
715
# GNU General Public License for more details.
717
# You should have received a copy of the GNU General Public License
718
# along with this program; if not, write to the Free Software
719
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
724
# _AM_OUTPUT_DEPENDENCY_COMMANDS
725
# ------------------------------
726
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
727
[for mf in $CONFIG_FILES; do
728
# Strip MF so we end up with the name of the file.
729
mf=`echo "$mf" | sed -e 's/:.*$//'`
730
# Check whether this is an Automake generated Makefile or not.
731
# We used to match only the files named `Makefile.in', but
732
# some people rename them; so instead we look at the file content.
733
# Grep'ing the first line is not enough: some people post-process
734
# each Makefile.in and add a new line on top of each file to say so.
735
# So let's grep whole file.
736
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
737
dirpart=`AS_DIRNAME("$mf")`
741
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
742
# Extract the definition of DEP_FILES from the Makefile without
744
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
745
test -z "$DEPDIR" && continue
746
# When using ansi2knr, U may be empty or an underscore; expand it
747
U=`sed -n -e '/^U = / s///p' < "$mf"`
748
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
749
# We invoke sed twice because it is the simplest approach to
750
# changing $(DEPDIR) to its actual value in the expansion.
751
for file in `sed -n -e '
752
/^DEP_FILES = .*\\\\$/ {
761
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
762
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
763
# Make sure the directory exists.
764
test -f "$dirpart/$file" && continue
765
fdir=`AS_DIRNAME(["$file"])`
766
AS_MKDIR_P([$dirpart/$fdir])
767
# echo "creating $dirpart/$file"
768
echo '# dummy' > "$dirpart/$file"
771
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
774
# AM_OUTPUT_DEPENDENCY_COMMANDS
775
# -----------------------------
776
# This macro should only be invoked once -- use via AC_REQUIRE.
778
# This code is only required when automatic dependency tracking
779
# is enabled. FIXME. This creates each `.P' file that we will
780
# need in order to bootstrap the dependency handling code.
781
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
782
[AC_CONFIG_COMMANDS([depfiles],
783
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
784
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
787
# Check to see how 'make' treats includes. -*- Autoconf -*-
789
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
791
# This program is free software; you can redistribute it and/or modify
792
# it under the terms of the GNU General Public License as published by
793
# the Free Software Foundation; either version 2, or (at your option)
796
# This program is distributed in the hope that it will be useful,
797
# but WITHOUT ANY WARRANTY; without even the implied warranty of
798
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
799
# GNU General Public License for more details.
801
# You should have received a copy of the GNU General Public License
802
# along with this program; if not, write to the Free Software
803
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
810
# Check to see how make treats includes.
811
AC_DEFUN([AM_MAKE_INCLUDE],
812
[am_make=${MAKE-make}
813
cat > confinc << 'END'
818
# If we don't find an include directive, just comment out the code.
819
AC_MSG_CHECKING([for style of include used by $am_make])
823
# First try GNU make style include.
824
echo "include confinc" > confmf
825
# We grep out `Entering directory' and `Leaving directory'
826
# messages which can occur if `w' ends up in MAKEFLAGS.
827
# In particular we don't look at `^make:' because GNU make might
828
# be invoked under some other name (usually "gmake"), in which
829
# case it prints its new name instead of `make'.
830
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
835
# Now try BSD make style include.
836
if test "$am__include" = "#"; then
837
echo '.include "confinc"' > confmf
838
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
844
AC_SUBST([am__include])
845
AC_SUBST([am__quote])
846
AC_MSG_RESULT([$_am_result])
850
# AM_CONDITIONAL -*- Autoconf -*-
852
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
854
# This program is free software; you can redistribute it and/or modify
855
# it under the terms of the GNU General Public License as published by
856
# the Free Software Foundation; either version 2, or (at your option)
859
# This program is distributed in the hope that it will be useful,
860
# but WITHOUT ANY WARRANTY; without even the implied warranty of
861
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
862
# GNU General Public License for more details.
864
# You should have received a copy of the GNU General Public License
865
# along with this program; if not, write to the Free Software
866
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
873
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
874
# -------------------------------------
875
# Define a conditional.
876
AC_DEFUN([AM_CONDITIONAL],
877
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
878
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
888
AC_CONFIG_COMMANDS_PRE(
889
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
890
AC_MSG_ERROR([conditional "$1" was never defined.
891
Usually this means the macro was only invoked conditionally.])
894
dnl as-libtool.m4 0.0.2
895
dnl autostars m4 macro for libtool versioning
896
dnl thomas@apestaart.org
898
dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, USE_RELEASE)
900
dnl AS_VERSION(GST, 2, 0, 0)
903
dnl - defines [$PREFIX]_CURRENT, REVISION AND AGE
904
dnl - defines [$PREFIX]_LIBVERSION
905
dnl - defines [$PREFIX]_LT_LDFLAGS to set versioning
906
dnl - AC_SUBST's them all
908
dnl if USE_RELEASE = yes, then add a -release option to the LDFLAGS
909
dnl with the (pre-defined) [$PREFIX]_VERSION
910
dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's
917
[$1]_LIBVERSION=[$2]:[$3]:[$4]
918
AC_SUBST([$1]_CURRENT)
919
AC_SUBST([$1]_REVISION)
921
AC_SUBST([$1]_LIBVERSION)
923
dnl [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -version-info $[$1]_LIBVERSION"
926
[$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -release $[$1]_VERSION"
928
AC_SUBST([$1]_LT_LDFLAGS)
934
14
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
936
16
# serial 47 AC_PROG_LIBTOOL
940
20
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6842
5927
AC_MSG_RESULT([$SED])
5931
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5932
# Generated from amversion.in; do not edit by hand.
5934
# This program is free software; you can redistribute it and/or modify
5935
# it under the terms of the GNU General Public License as published by
5936
# the Free Software Foundation; either version 2, or (at your option)
5937
# any later version.
5939
# This program is distributed in the hope that it will be useful,
5940
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5941
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5942
# GNU General Public License for more details.
5944
# You should have received a copy of the GNU General Public License
5945
# along with this program; if not, write to the Free Software
5946
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5948
# AM_AUTOMAKE_VERSION(VERSION)
5949
# ----------------------------
5950
# Automake X.Y traces this macro to ensure aclocal.m4 has been
5951
# generated from the m4 files accompanying Automake X.Y.
5952
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
5954
# AM_SET_CURRENT_AUTOMAKE_VERSION
5955
# -------------------------------
5956
# Call AM_AUTOMAKE_VERSION so it can be traced.
5957
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5958
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5959
[AM_AUTOMAKE_VERSION([1.9.2])])
5963
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5965
# This program is free software; you can redistribute it and/or modify
5966
# it under the terms of the GNU General Public License as published by
5967
# the Free Software Foundation; either version 2, or (at your option)
5968
# any later version.
5970
# This program is distributed in the hope that it will be useful,
5971
# but WITHOUT ANY WARRANTY; without even the implied warranty of
5972
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5973
# GNU General Public License for more details.
5975
# You should have received a copy of the GNU General Public License
5976
# along with this program; if not, write to the Free Software
5977
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5980
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
5981
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
5982
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
5984
# Of course, Automake must honor this variable whenever it calls a
5985
# tool from the auxiliary directory. The problem is that $srcdir (and
5986
# therefore $ac_aux_dir as well) can be either absolute or relative,
5987
# depending on how configure is run. This is pretty annoying, since
5988
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
5989
# source directory, any form will work fine, but in subdirectories a
5990
# relative path needs to be adjusted first.
5992
# $ac_aux_dir/missing
5993
# fails when called from a subdirectory if $ac_aux_dir is relative
5994
# $top_srcdir/$ac_aux_dir/missing
5995
# fails if $ac_aux_dir is absolute,
5996
# fails when called from a subdirectory in a VPATH build with
5997
# a relative $ac_aux_dir
5999
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6000
# are both prefixed by $srcdir. In an in-source build this is usually
6001
# harmless because $srcdir is `.', but things will broke when you
6002
# start a VPATH build or use an absolute $srcdir.
6004
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6005
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6006
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6007
# and then we would define $MISSING as
6008
# MISSING="\${SHELL} $am_aux_dir/missing"
6009
# This will work as long as MISSING is not called from configure, because
6010
# unfortunately $(top_srcdir) has no meaning in configure.
6011
# However there are other variables, like CC, which are often used in
6012
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6014
# Another solution, used here, is to always expand $ac_aux_dir to an
6015
# absolute PATH. The drawback is that using absolute paths prevent a
6016
# configured tree to be moved without reconfiguration.
6018
AC_DEFUN([AM_AUX_DIR_EXPAND],
6019
[dnl Rely on autoconf to set up CDPATH properly.
6020
AC_PREREQ([2.50])dnl
6021
# expand $ac_aux_dir to an absolute path
6022
am_aux_dir=`cd $ac_aux_dir && pwd`
6026
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003
6027
# Free Software Foundation, Inc.
6029
# This program is free software; you can redistribute it and/or modify
6030
# it under the terms of the GNU General Public License as published by
6031
# the Free Software Foundation; either version 2, or (at your option)
6032
# any later version.
6034
# This program is distributed in the hope that it will be useful,
6035
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6036
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6037
# GNU General Public License for more details.
6039
# You should have received a copy of the GNU General Public License
6040
# along with this program; if not, write to the Free Software
6041
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6046
# This was merged into AC_PROG_CC in Autoconf.
6048
AU_DEFUN([AM_PROG_CC_STDC],
6050
AC_DIAGNOSE([obsolete], [$0:
6051
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
6052
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
6053
you adjust the code. You can also remove the above call to
6054
AC_PROG_CC if you already called it elsewhere.])
6055
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6057
AU_DEFUN([fp_PROG_CC_STDC])
6059
# AM_CONDITIONAL -*- Autoconf -*-
6061
# Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
6063
# This program is free software; you can redistribute it and/or modify
6064
# it under the terms of the GNU General Public License as published by
6065
# the Free Software Foundation; either version 2, or (at your option)
6066
# any later version.
6068
# This program is distributed in the hope that it will be useful,
6069
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6070
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6071
# GNU General Public License for more details.
6073
# You should have received a copy of the GNU General Public License
6074
# along with this program; if not, write to the Free Software
6075
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6080
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6081
# -------------------------------------
6082
# Define a conditional.
6083
AC_DEFUN([AM_CONDITIONAL],
6085
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6086
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6088
AC_SUBST([$1_FALSE])
6096
AC_CONFIG_COMMANDS_PRE(
6097
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6098
AC_MSG_ERROR([[conditional "$1" was never defined.
6099
Usually this means the macro was only invoked conditionally.]])
6102
# serial 7 -*- Autoconf -*-
6104
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6105
# Free Software Foundation, Inc.
6107
# This program is free software; you can redistribute it and/or modify
6108
# it under the terms of the GNU General Public License as published by
6109
# the Free Software Foundation; either version 2, or (at your option)
6110
# any later version.
6112
# This program is distributed in the hope that it will be useful,
6113
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6114
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6115
# GNU General Public License for more details.
6117
# You should have received a copy of the GNU General Public License
6118
# along with this program; if not, write to the Free Software
6119
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6123
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6124
# written in clear, in which case automake, when reading aclocal.m4,
6125
# will think it sees a *use*, and therefore will trigger all it's
6126
# C support machinery. Also note that it means that autoscan, seeing
6127
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6131
# _AM_DEPENDENCIES(NAME)
6132
# ----------------------
6133
# See how the compiler implements dependency checking.
6134
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6135
# We try a few techniques and use that to set a single cache variable.
6137
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6138
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6139
# dependency, and given that the user is not expected to run this macro,
6140
# just rely on AC_PROG_CC.
6141
AC_DEFUN([_AM_DEPENDENCIES],
6142
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6143
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6144
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6145
AC_REQUIRE([AM_DEP_TRACK])dnl
6147
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6148
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6149
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6150
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6151
[depcc="$$1" am_compiler_list=])
6153
AC_CACHE_CHECK([dependency style of $depcc],
6154
[am_cv_$1_dependencies_compiler_type],
6155
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6156
# We make a subdir and do the tests there. Otherwise we can end up
6157
# making bogus files that we don't know about and never remove. For
6158
# instance it was reported that on HP-UX the gcc test will end up
6159
# making a dummy file named `D' -- because `-MD' means `put the output
6162
# Copy depcomp to subdir because otherwise we won't find it if we're
6163
# using a relative directory.
6164
cp "$am_depcomp" conftest.dir
6166
# We will build objects and dependencies in a subdirectory because
6167
# it helps to detect inapplicable dependency modes. For instance
6168
# both Tru64's cc and ICC support -MD to output dependencies as a
6169
# side effect of compilation, but ICC will put the dependencies in
6170
# the current directory while Tru64 will put them in the object
6174
am_cv_$1_dependencies_compiler_type=none
6175
if test "$am_compiler_list" = ""; then
6176
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6178
for depmode in $am_compiler_list; do
6179
# Setup a source with many dependencies, because some compilers
6180
# like to wrap large dependency lists on column 80 (with \), and
6181
# we should not choose a depcomp mode which is confused by this.
6183
# We need to recreate these files for each test, as the compiler may
6184
# overwrite some of them when testing with obscure command lines.
6185
# This happens at least with the AIX C compiler.
6187
for i in 1 2 3 4 5 6; do
6188
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6189
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6190
# Solaris 8's {/usr,}/bin/sh.
6191
touch sub/conftst$i.h
6193
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6197
# after this tag, mechanisms are not by side-effect, so they'll
6198
# only be used when explicitly requested
6199
if test "x$enable_dependency_tracking" = xyes; then
6207
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6208
# mode. It turns out that the SunPro C++ compiler does not properly
6209
# handle `-M -o', and we need to detect this.
6210
if depmode=$depmode \
6211
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6212
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6213
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6214
>/dev/null 2>conftest.err &&
6215
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6216
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6217
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6218
# icc doesn't choke on unknown options, it will just issue warnings
6219
# or remarks (even with -Werror). So we grep stderr for any message
6220
# that says an option was ignored or not supported.
6221
# When given -MP, icc 7.0 and 7.1 complain thusly:
6222
# icc: Command line warning: ignoring option '-M'; no argument required
6223
# The diagnosis changed in icc 8.0:
6224
# icc: Command line remark: option '-MP' not supported
6225
if (grep 'ignoring option' conftest.err ||
6226
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6227
am_cv_$1_dependencies_compiler_type=$depmode
6236
am_cv_$1_dependencies_compiler_type=none
6239
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6240
AM_CONDITIONAL([am__fastdep$1], [
6241
test "x$enable_dependency_tracking" != xno \
6242
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6248
# Choose a directory name for dependency files.
6249
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6250
AC_DEFUN([AM_SET_DEPDIR],
6251
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6252
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6258
AC_DEFUN([AM_DEP_TRACK],
6259
[AC_ARG_ENABLE(dependency-tracking,
6260
[ --disable-dependency-tracking speeds up one-time build
6261
--enable-dependency-tracking do not reject slow dependency extractors])
6262
if test "x$enable_dependency_tracking" != xno; then
6263
am_depcomp="$ac_aux_dir/depcomp"
6266
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6267
AC_SUBST([AMDEPBACKSLASH])
6270
# Generate code to set up dependency tracking. -*- Autoconf -*-
6272
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6273
# Free Software Foundation, Inc.
6275
# This program is free software; you can redistribute it and/or modify
6276
# it under the terms of the GNU General Public License as published by
6277
# the Free Software Foundation; either version 2, or (at your option)
6278
# any later version.
6280
# This program is distributed in the hope that it will be useful,
6281
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6282
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6283
# GNU General Public License for more details.
6285
# You should have received a copy of the GNU General Public License
6286
# along with this program; if not, write to the Free Software
6287
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6292
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6293
# ------------------------------
6294
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6295
[for mf in $CONFIG_FILES; do
6296
# Strip MF so we end up with the name of the file.
6297
mf=`echo "$mf" | sed -e 's/:.*$//'`
6298
# Check whether this is an Automake generated Makefile or not.
6299
# We used to match only the files named `Makefile.in', but
6300
# some people rename them; so instead we look at the file content.
6301
# Grep'ing the first line is not enough: some people post-process
6302
# each Makefile.in and add a new line on top of each file to say so.
6303
# So let's grep whole file.
6304
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6305
dirpart=`AS_DIRNAME("$mf")`
6309
# Extract the definition of DEPDIR, am__include, and am__quote
6310
# from the Makefile without running `make'.
6311
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6312
test -z "$DEPDIR" && continue
6313
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6314
test -z "am__include" && continue
6315
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6316
# When using ansi2knr, U may be empty or an underscore; expand it
6317
U=`sed -n 's/^U = //p' < "$mf"`
6318
# Find all dependency output files, they are included files with
6319
# $(DEPDIR) in their names. We invoke sed twice because it is the
6320
# simplest approach to changing $(DEPDIR) to its actual value in the
6322
for file in `sed -n "
6323
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6324
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6325
# Make sure the directory exists.
6326
test -f "$dirpart/$file" && continue
6327
fdir=`AS_DIRNAME(["$file"])`
6328
AS_MKDIR_P([$dirpart/$fdir])
6329
# echo "creating $dirpart/$file"
6330
echo '# dummy' > "$dirpart/$file"
6333
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6336
# AM_OUTPUT_DEPENDENCY_COMMANDS
6337
# -----------------------------
6338
# This macro should only be invoked once -- use via AC_REQUIRE.
6340
# This code is only required when automatic dependency tracking
6341
# is enabled. FIXME. This creates each `.P' file that we will
6342
# need in order to bootstrap the dependency handling code.
6343
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6344
[AC_CONFIG_COMMANDS([depfiles],
6345
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6346
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6845
6349
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6847
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
6351
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6849
6353
# This program is free software; you can redistribute it and/or modify
6850
6354
# it under the terms of the GNU General Public License as published by
6861
6365
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6862
6366
# 02111-1307, USA.
6868
6370
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6869
6371
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6373
# Do all the work for Automake. -*- Autoconf -*-
6375
# This macro actually does too much some checks are only needed if
6376
# your package does certain things. But this isn't really a big deal.
6378
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
6379
# Free Software Foundation, Inc.
6381
# This program is free software; you can redistribute it and/or modify
6382
# it under the terms of the GNU General Public License as published by
6383
# the Free Software Foundation; either version 2, or (at your option)
6384
# any later version.
6386
# This program is distributed in the hope that it will be useful,
6387
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6388
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6389
# GNU General Public License for more details.
6391
# You should have received a copy of the GNU General Public License
6392
# along with this program; if not, write to the Free Software
6393
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6398
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6399
# AM_INIT_AUTOMAKE([OPTIONS])
6400
# -----------------------------------------------
6401
# The call with PACKAGE and VERSION arguments is the old style
6402
# call (pre autoconf-2.50), which is being phased out. PACKAGE
6403
# and VERSION should now be passed to AC_INIT and removed from
6404
# the call to AM_INIT_AUTOMAKE.
6405
# We support both call styles for the transition. After
6406
# the next Automake release, Autoconf can make the AC_INIT
6407
# arguments mandatory, and then we can depend on a new Autoconf
6408
# release and drop the old call support.
6409
AC_DEFUN([AM_INIT_AUTOMAKE],
6410
[AC_PREREQ([2.58])dnl
6411
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6412
dnl the ones we care about.
6413
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6414
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6415
AC_REQUIRE([AC_PROG_INSTALL])dnl
6416
# test to see if srcdir already configured
6417
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6418
test -f $srcdir/config.status; then
6419
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6422
# test whether we have cygpath
6423
if test -z "$CYGPATH_W"; then
6424
if (cygpath --version) >/dev/null 2>/dev/null; then
6425
CYGPATH_W='cygpath -w'
6430
AC_SUBST([CYGPATH_W])
6432
# Define the identity of the package.
6433
dnl Distinguish between old-style and new-style calls.
6435
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6436
AC_SUBST([PACKAGE], [$1])dnl
6437
AC_SUBST([VERSION], [$2])],
6438
[_AM_SET_OPTIONS([$1])dnl
6439
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6440
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6442
_AM_IF_OPTION([no-define],,
6443
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6444
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6446
# Some tools Automake needs.
6447
AC_REQUIRE([AM_SANITY_CHECK])dnl
6448
AC_REQUIRE([AC_ARG_PROGRAM])dnl
6449
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6450
AM_MISSING_PROG(AUTOCONF, autoconf)
6451
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6452
AM_MISSING_PROG(AUTOHEADER, autoheader)
6453
AM_MISSING_PROG(MAKEINFO, makeinfo)
6455
AM_PROG_INSTALL_STRIP
6456
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6457
# We need awk for the "check" target. The system "awk" is bad on
6459
AC_REQUIRE([AC_PROG_AWK])dnl
6460
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6461
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6462
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6463
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6464
[_AM_PROG_TAR([v7])])])
6465
_AM_IF_OPTION([no-dependencies],,
6466
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6467
[_AM_DEPENDENCIES(CC)],
6468
[define([AC_PROG_CC],
6469
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6470
AC_PROVIDE_IFELSE([AC_PROG_CXX],
6471
[_AM_DEPENDENCIES(CXX)],
6472
[define([AC_PROG_CXX],
6473
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6478
# When config.status generates a header, we must update the stamp-h file.
6479
# This file resides in the same directory as the config header
6480
# that is generated. The stamp files are numbered to have different names.
6482
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6483
# loop where config.status creates the headers, so we can generate
6484
# our stamp files there.
6485
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6486
[# Compute $1's index in $config_headers.
6488
for _am_header in $config_headers :; do
6493
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6496
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6498
# AM_PROG_INSTALL_SH
6499
# ------------------
6500
# Define $install_sh.
6502
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6504
# This program is free software; you can redistribute it and/or modify
6505
# it under the terms of the GNU General Public License as published by
6506
# the Free Software Foundation; either version 2, or (at your option)
6507
# any later version.
6509
# This program is distributed in the hope that it will be useful,
6510
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6511
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6512
# GNU General Public License for more details.
6514
# You should have received a copy of the GNU General Public License
6515
# along with this program; if not, write to the Free Software
6516
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6519
AC_DEFUN([AM_PROG_INSTALL_SH],
6520
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6521
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6522
AC_SUBST(install_sh)])
6525
# Copyright (C) 2003 Free Software Foundation, Inc.
6527
# This program is free software; you can redistribute it and/or modify
6528
# it under the terms of the GNU General Public License as published by
6529
# the Free Software Foundation; either version 2, or (at your option)
6530
# any later version.
6532
# This program is distributed in the hope that it will be useful,
6533
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6534
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6535
# GNU General Public License for more details.
6537
# You should have received a copy of the GNU General Public License
6538
# along with this program; if not, write to the Free Software
6539
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6544
# Check whether the underlying file-system supports filenames
6545
# with a leading dot. For instance MS-DOS doesn't.
6546
AC_DEFUN([AM_SET_LEADING_DOT],
6547
[rm -rf .tst 2>/dev/null
6548
mkdir .tst 2>/dev/null
6549
if test -d .tst; then
6554
rmdir .tst 2>/dev/null
6555
AC_SUBST([am__leading_dot])])
6558
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
6559
# Free Software Foundation, Inc.
6561
# This program is free software; you can redistribute it and/or modify
6562
# it under the terms of the GNU General Public License as published by
6563
# the Free Software Foundation; either version 2, or (at your option)
6564
# any later version.
6566
# This program is distributed in the hope that it will be useful,
6567
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6568
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6569
# GNU General Public License for more details.
6571
# You should have received a copy of the GNU General Public License
6572
# along with this program; if not, write to the Free Software
6573
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6580
# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
6581
# "missing" invocation, for better error output.
6582
AC_DEFUN([AM_PROG_LEX],
6584
AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
6585
AC_REQUIRE([AC_PROG_LEX])dnl
6586
if test "$LEX" = :; then
6587
LEX=${am_missing_run}flex
6871
6590
# Add --enable-maintainer-mode option to configure.
6872
6591
# From Jim Meyering
6874
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
6593
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
6594
# Free Software Foundation, Inc.
6876
6596
# This program is free software; you can redistribute it and/or modify
6877
6597
# it under the terms of the GNU General Public License as published by
7069
# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
7070
# "missing" invocation, for better error output.
7071
AC_DEFUN([AM_PROG_LEX],
7072
[AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
7073
AC_REQUIRE([AC_PROG_LEX])dnl
7074
if test "$LEX" = :; then
7075
LEX=${am_missing_run}flex
7079
# Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
7081
# This program is free software; you can redistribute it and/or modify
7082
# it under the terms of the GNU General Public License as published by
7083
# the Free Software Foundation; either version 2, or (at your option)
7084
# any later version.
7086
# This program is distributed in the hope that it will be useful,
7087
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7088
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7089
# GNU General Public License for more details.
7091
# You should have received a copy of the GNU General Public License
7092
# along with this program; if not, write to the Free Software
7093
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7096
# AM_PATH_PYTHON([MINIMUM-VERSION])
6715
# AM_MISSING_PROG(NAME, PROGRAM)
6716
# ------------------------------
6717
AC_DEFUN([AM_MISSING_PROG],
6718
[AC_REQUIRE([AM_MISSING_HAS_RUN])
6719
$1=${$1-"${am_missing_run}$2"}
6723
# AM_MISSING_HAS_RUN
6724
# ------------------
6725
# Define MISSING if not defined so far and test if it supports --run.
6726
# If it does, set am_missing_run to use it, otherwise, to nothing.
6727
AC_DEFUN([AM_MISSING_HAS_RUN],
6728
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6729
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6730
# Use eval to expand $SHELL
6731
if eval "$MISSING --run true"; then
6732
am_missing_run="$MISSING --run "
6735
AC_MSG_WARN([`missing' script is too old or missing])
6741
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6743
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6745
# This program is free software; you can redistribute it and/or modify
6746
# it under the terms of the GNU General Public License as published by
6747
# the Free Software Foundation; either version 2, or (at your option)
6748
# any later version.
6750
# This program is distributed in the hope that it will be useful,
6751
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6752
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6753
# GNU General Public License for more details.
6755
# You should have received a copy of the GNU General Public License
6756
# along with this program; if not, write to the Free Software
6757
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6760
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6761
# created by `make install' are always world readable, even if the
6762
# installer happens to have an overly restrictive umask (e.g. 077).
6763
# This was a mistake. There are at least two reasons why we must not
6765
# - it causes special bits like SGID to be ignored,
6766
# - it may be too restrictive (some setups expect 775 directories).
6768
# Do not use -m 0755 and let people choose whatever they expect by
6771
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6772
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6773
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6774
# concurrently, both version can detect that a/ is missing, but only
6775
# one can create it and the other will error out. Consequently we
6776
# restrict ourselves to GNU make (using the --version option ensures
6778
AC_DEFUN([AM_PROG_MKDIR_P],
6779
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6780
# We used to keeping the `.' as first argument, in order to
6781
# allow $(mkdir_p) to be used without argument. As in
6782
# $(mkdir_p) $(somedir)
6783
# where $(somedir) is conditionally defined. However this is wrong
6785
# 1. if the package is installed by a user who cannot write `.'
6786
# make install will fail,
6787
# 2. the above comment should most certainly read
6788
# $(mkdir_p) $(DESTDIR)$(somedir)
6789
# so it does not work when $(somedir) is undefined and
6790
# $(DESTDIR) is not.
6791
# To support the latter case, we have to write
6792
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6793
# so the `.' trick is pointless.
6794
mkdir_p='mkdir -p --'
6796
# On NextStep and OpenStep, the `mkdir' command does not
6797
# recognize any option. It will interpret all options as
6798
# directories to create, and then abort because `.' already
6800
for d in ./-p ./--version;
6802
test -d $d && rmdir $d
6804
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6805
if test -f "$ac_aux_dir/mkinstalldirs"; then
6806
mkdir_p='$(mkinstalldirs)'
6808
mkdir_p='$(install_sh) -d'
6811
AC_SUBST([mkdir_p])])
6813
# Helper functions for option handling. -*- Autoconf -*-
6815
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6817
# This program is free software; you can redistribute it and/or modify
6818
# it under the terms of the GNU General Public License as published by
6819
# the Free Software Foundation; either version 2, or (at your option)
6820
# any later version.
6822
# This program is distributed in the hope that it will be useful,
6823
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6824
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6825
# GNU General Public License for more details.
6827
# You should have received a copy of the GNU General Public License
6828
# along with this program; if not, write to the Free Software
6829
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6834
# _AM_MANGLE_OPTION(NAME)
6835
# -----------------------
6836
AC_DEFUN([_AM_MANGLE_OPTION],
6837
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6839
# _AM_SET_OPTION(NAME)
6840
# ------------------------------
6841
# Set option NAME. Presently that only means defining a flag for this option.
6842
AC_DEFUN([_AM_SET_OPTION],
6843
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6845
# _AM_SET_OPTIONS(OPTIONS)
6846
# ----------------------------------
6847
# OPTIONS is a space-separated list of Automake options.
6848
AC_DEFUN([_AM_SET_OPTIONS],
6849
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6851
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6852
# -------------------------------------------
6853
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6854
AC_DEFUN([_AM_IF_OPTION],
6855
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6858
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
6859
# Free Software Foundation, Inc.
6861
# This program is free software; you can redistribute it and/or modify
6862
# it under the terms of the GNU General Public License as published by
6863
# the Free Software Foundation; either version 2, or (at your option)
6864
# any later version.
6866
# This program is distributed in the hope that it will be useful,
6867
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6868
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6869
# GNU General Public License for more details.
6871
# You should have received a copy of the GNU General Public License
6872
# along with this program; if not, write to the Free Software
6873
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6876
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7098
6878
# Adds support for distributing Python modules and packages. To
7099
6879
# install modules, copy them to $(pythondir), using the python_PYTHON
7235
7032
sys.exit(sys.hexversion < minverhex)"
7236
7033
AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
7238
# Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
7240
# This program is free software; you can redistribute it and/or modify
7241
# it under the terms of the GNU General Public License as published by
7242
# the Free Software Foundation; either version 2, or (at your option)
7243
# any later version.
7245
# This program is distributed in the hope that it will be useful,
7246
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7247
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7248
# GNU General Public License for more details.
7250
# You should have received a copy of the GNU General Public License
7251
# along with this program; if not, write to the Free Software
7252
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7255
# AM_RUN_LOG(COMMAND)
7256
# -------------------
7257
# Run COMMAND, save the exit status in ac_status, and log it.
7258
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
7259
AC_DEFUN([AM_RUN_LOG],
7260
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
7261
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
7263
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
7264
(exit $ac_status); }])
7266
dnl a macro to check for ability to create python extensions
7267
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
7268
dnl function also defines PYTHON_INCLUDES
7269
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
7270
[AC_REQUIRE([AM_PATH_PYTHON])
7271
AC_MSG_CHECKING(for headers required to compile python extensions)
7272
dnl deduce PYTHON_INCLUDES
7273
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
7274
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
7275
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
7276
if test "$py_prefix" != "$py_exec_prefix"; then
7277
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
7279
AC_SUBST(PYTHON_INCLUDES)
7280
dnl check if the headers exist:
7281
save_CPPFLAGS="$CPPFLAGS"
7282
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
7283
AC_TRY_CPP([#include <Python.h>],dnl
7284
[AC_MSG_RESULT(found)
7286
[AC_MSG_RESULT(not found)
7288
CPPFLAGS="$save_CPPFLAGS"
7291
dnl as-compiler-flag.m4 0.0.1
7292
dnl autostars m4 macro for detection of compiler flags
7296
AC_DEFUN(AS_COMPILER_FLAG,
7298
AC_MSG_CHECKING(to see if compiler understands $1)
7300
save_CFLAGS="$CFLAGS"
7303
AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
7304
CFLAGS="$save_CFLAGS"
7306
if test "X$flag_ok" = Xyes; then
7036
# Check to make sure that the build environment is sane.
7039
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7041
# This program is free software; you can redistribute it and/or modify
7042
# it under the terms of the GNU General Public License as published by
7043
# the Free Software Foundation; either version 2, or (at your option)
7044
# any later version.
7046
# This program is distributed in the hope that it will be useful,
7047
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7048
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7049
# GNU General Public License for more details.
7051
# You should have received a copy of the GNU General Public License
7052
# along with this program; if not, write to the Free Software
7053
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7060
AC_DEFUN([AM_SANITY_CHECK],
7061
[AC_MSG_CHECKING([whether build environment is sane])
7064
echo timestamp > conftest.file
7065
# Do `set' in a subshell so we don't clobber the current shell's
7066
# arguments. Must try -L first in case configure is actually a
7067
# symlink; some systems play weird games with the mod time of symlinks
7068
# (eg FreeBSD returns the mod time of the symlink's containing
7071
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7072
if test "$[*]" = "X"; then
7074
set X `ls -t $srcdir/configure conftest.file`
7077
if test "$[*]" != "X $srcdir/configure conftest.file" \
7078
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
7080
# If neither matched, then we have a broken ls. This can happen
7081
# if, for instance, CONFIG_SHELL is bash and it inherits a
7082
# broken ls alias from the environment. This has actually
7083
# happened. Such a system could not be considered "sane".
7084
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7085
alias in your environment])
7088
test "$[2]" = conftest.file
7094
AC_MSG_ERROR([newly created file is older than distributed files!
7095
Check your system clock])
7097
AC_MSG_RESULT(yes)])
7099
# AM_PROG_INSTALL_STRIP
7101
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7103
# This program is free software; you can redistribute it and/or modify
7104
# it under the terms of the GNU General Public License as published by
7105
# the Free Software Foundation; either version 2, or (at your option)
7106
# any later version.
7108
# This program is distributed in the hope that it will be useful,
7109
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7110
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7111
# GNU General Public License for more details.
7113
# You should have received a copy of the GNU General Public License
7114
# along with this program; if not, write to the Free Software
7115
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7118
# One issue with vendor `install' (even GNU) is that you can't
7119
# specify the program used to strip binaries. This is especially
7120
# annoying in cross-compiling environments, where the build's strip
7121
# is unlikely to handle the host's binaries.
7122
# Fortunately install-sh will honor a STRIPPROG variable, so we
7123
# always use install-sh in `make install-strip', and initialize
7124
# STRIPPROG with the value of the STRIP variable (set by the user).
7125
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7126
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7127
# Installed binaries are usually stripped using `strip' when the user
7128
# run `make install-strip'. However `strip' might not be the right
7129
# tool to use in cross-compilation environments, therefore Automake
7130
# will honor the `STRIP' environment variable to overrule this program.
7131
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7132
if test "$cross_compiling" != no; then
7133
AC_CHECK_TOOL([STRIP], [strip], :)
7135
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7136
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7138
# Check how to create a tarball. -*- Autoconf -*-
7140
# Copyright (C) 2004 Free Software Foundation, Inc.
7142
# This program is free software; you can redistribute it and/or modify
7143
# it under the terms of the GNU General Public License as published by
7144
# the Free Software Foundation; either version 2, or (at your option)
7145
# any later version.
7147
# This program is distributed in the hope that it will be useful,
7148
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7149
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7150
# GNU General Public License for more details.
7152
# You should have received a copy of the GNU General Public License
7153
# along with this program; if not, write to the Free Software
7154
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7160
# _AM_PROG_TAR(FORMAT)
7161
# --------------------
7162
# Check how to create a tarball in format FORMAT.
7163
# FORMAT should be one of `v7', `ustar', or `pax'.
7165
# Substitute a variable $(am__tar) that is a command
7166
# writing to stdout a FORMAT-tarball containing the directory
7168
# tardir=directory && $(am__tar) > result.tar
7170
# Substitute a variable $(am__untar) that extract such
7171
# a tarball read from stdin.
7172
# $(am__untar) < result.tar
7173
AC_DEFUN([_AM_PROG_TAR],
7174
[# Always define AMTAR for backward compatibility.
7175
AM_MISSING_PROG([AMTAR], [tar])
7177
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7178
[m4_case([$1], [ustar],, [pax],,
7179
[m4_fatal([Unknown tar format])])
7180
AC_MSG_CHECKING([how to create a $1 tar archive])
7181
# Loop over all known methods to create a tar archive until one works.
7182
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7183
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7184
# Do not fold the above two line into one, because Tru64 sh and
7185
# Solaris sh will not grok spaces in the rhs of `-'.
7186
for _am_tool in $_am_tools
7190
for _am_tar in tar gnutar gtar;
7192
AM_RUN_LOG([$_am_tar --version]) && break
7194
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7195
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7196
am__untar="$_am_tar -xf -"
7199
# Must skip GNU tar: if it does not support --format= it doesn't create
7200
# ustar tarball either.
7201
(tar --version) >/dev/null 2>&1 && continue
7202
am__tar='tar chf - "$$tardir"'
7203
am__tar_='tar chf - "$tardir"'
7204
am__untar='tar xf -'
7207
am__tar='pax -L -x $1 -w "$$tardir"'
7208
am__tar_='pax -L -x $1 -w "$tardir"'
7212
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7213
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7214
am__untar='cpio -i -H $1 -d'
7223
# If the value was cached, stop now. We just wanted to have am__tar
7224
# and am__untar set.
7225
test -n "${am_cv_prog_tar_$1}" && break
7227
# tar/untar a dummy directory, and stop if the command works
7230
echo GrepMe > conftest.dir/file
7231
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7233
if test -s conftest.tar; then
7234
AM_RUN_LOG([$am__untar <conftest.tar])
7235
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7311
AC_MSG_RESULT([$flag_ok])
7240
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7241
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7243
AC_SUBST([am__untar])
7246
m4_include([m4/am-check-python-headers.m4])
7247
m4_include([m4/as-compiler-flag.m4])
7248
m4_include([m4/as-libtool.m4])
7249
m4_include([m4/as-version.m4])