~ubuntu-branches/ubuntu/precise/ntrack/precise

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Alexander Sack, Mathieu Trudel-Lapierre, Felix Geyer, Scott Kitterman
  • Date: 2011-11-13 14:30:30 UTC
  • mfrom: (1.1.5) (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111113143030-p3qc9v2yoltejfvk
Tags: 016-1
Package upstream release 016

Packaging:
* debian/rules: use -c4 for all C libraries and -c1 for C++ qt4 binding
* debian/control: add ntrack-module-rtnetlink-0 package to ship new
  rtnetlink backend.
* debian/control: fix lintian warning; move Homepage URL from libntrack0
  package Description: to Homepage: field of source package (Closes: 615320)
* debian/rules: add --enable-backend=libnl,rtnetlink to
  DEB_CONFIGURE_EXTRA_FLAGS so that we build both backends in one batch
* debian/control: improve package description for qt4 binding (Closes: 642422)

Fixed Bugs 012:
* lp:694823 - fails to ./configure with gobject if pygobject depends are not
              installed
* lp:736058 - ntrack 011 does not compile with libnl2 final
* lp:694477 - new plugin API: introduce modules function table and macros to
              implement modules

Fixed Bugs 013:
* lp:743636 - ntrack 012 fails to build on 64 bit archs

Fixed Bugs 014:
* lp:743881 - h2def configure test should consider installs that have .pyc
              without .py
* lp:748988 - ntrack should handle "no backend" status gracefully
* lp:743879 - ntrack 013 doesn't build with libnl 3.0
* lp:749608 - ntrack API should provide runtime info: version, author,
              copyright, backend

Fixed Bugs 015:
* lp:750554 - nl modules are not linked with libntrack even if they use
              symbols from it
* lp:755608 - Ntrack dead loop in function get_nl_link_by_index
* lp:834639 - Build failure with -Werror=strict-aliasing
* lp:774690 - Build error in a fresh environment
* lp:785119 - ntrack can get into endless poll loop if no backend modules
              found
* lp:801407 - ntrack-014 compilation fails if all libnl[123] are present
              together
* lp:448400 - add pure rtnetlink backend for linux
* lp:879141 - support libnl 3.1

Fixed Bugs 016:
* lp:889820 - ftbfs in 'recv_msgs': 'link.ifla_name' may be used uninitialized
* lp:889822 - rtnetlink configure check not portable across linux flavours

Ack Debian NMUs:
* Upload to unstable. This version builds with gcc-4.5. Closes: #615681.
  - fixed upstream
* Add dead-loop-fix.patch from Kubuntu to fix infinite loop with kded.
  - fixed upstream lp:755608

Ack Ubuntu fixes:
[ Mathieu Trudel-Lapierre <mathieu-tl@ubuntu.com> ]
* debian/control: replace libnl-dev Build-Depends with libnl3-dev
* debian/libntrack0.symbols: add missing ntrack_info_human_banner symbol
  - both changes adopted in maintainer package

[ Felix Geyer <debfx-pkg@fobos.de> ]
* Add link_ntrack-libnl_to_libntrack.patch: Link ntrack-libnl to libntrack
  as it uses symbols from that library. This caused kded4 to be unable to
  load the module and enter an infinite loop. (LP: #750554)
  - fixed upstream in 015 release

[ Scott Kitterman <scott@kitterman.com> ]
* Add debian/patches/dead-loop-fix.patch to fix infinite loop if route
  oif/nhopif is NULL (LP: #755608)
  - One source of high/100% CPU usage in KDE
  - fixed upstream in 015 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
4
# 2005, 2006, 2007, 2008, 2009  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.
 
8
 
 
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
 
12
# PARTICULAR PURPOSE.
 
13
 
 
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.68],,
 
17
[m4_warning([this file was generated for autoconf 2.68.
 
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'.])])
 
21
 
 
22
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
 
23
# serial 1 (pkg-config-0.24)
 
24
 
25
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
 
26
#
 
27
# This program is free software; you can redistribute it and/or modify
 
28
# it under the terms of the GNU General Public License as published by
 
29
# the Free Software Foundation; either version 2 of the License, or
 
30
# (at your option) any later version.
 
31
#
 
32
# This program is distributed in the hope that it will be useful, but
 
33
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
34
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
35
# General Public License for more details.
 
36
#
 
37
# You should have received a copy of the GNU General Public License
 
38
# along with this program; if not, write to the Free Software
 
39
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
40
#
 
41
# As a special exception to the GNU General Public License, if you
 
42
# distribute this file as part of a program that contains a
 
43
# configuration script generated by Autoconf, you may include it under
 
44
# the same distribution terms that you use for the rest of that program.
 
45
 
 
46
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
 
47
# ----------------------------------
 
48
AC_DEFUN([PKG_PROG_PKG_CONFIG],
 
49
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
 
50
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
 
51
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
 
52
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
 
53
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
 
54
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
 
55
 
 
56
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
57
        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
 
58
fi
 
59
if test -n "$PKG_CONFIG"; then
 
60
        _pkg_min_version=m4_default([$1], [0.9.0])
 
61
        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
 
62
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
63
                AC_MSG_RESULT([yes])
 
64
        else
 
65
                AC_MSG_RESULT([no])
 
66
                PKG_CONFIG=""
 
67
        fi
 
68
fi[]dnl
 
69
])# PKG_PROG_PKG_CONFIG
 
70
 
 
71
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
72
#
 
73
# Check to see whether a particular set of modules exists.  Similar
 
74
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
 
75
#
 
76
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
77
# only at the first occurence in configure.ac, so if the first place
 
78
# it's called might be skipped (such as if it is within an "if", you
 
79
# have to call PKG_CHECK_EXISTS manually
 
80
# --------------------------------------------------------------
 
81
AC_DEFUN([PKG_CHECK_EXISTS],
 
82
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
83
if test -n "$PKG_CONFIG" && \
 
84
    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
 
85
  m4_default([$2], [:])
 
86
m4_ifvaln([$3], [else
 
87
  $3])dnl
 
88
fi])
 
89
 
 
90
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
 
91
# ---------------------------------------------
 
92
m4_define([_PKG_CONFIG],
 
93
[if test -n "$$1"; then
 
94
    pkg_cv_[]$1="$$1"
 
95
 elif test -n "$PKG_CONFIG"; then
 
96
    PKG_CHECK_EXISTS([$3],
 
97
                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
 
98
                      test "x$?" != "x0" && pkg_failed=yes ],
 
99
                     [pkg_failed=yes])
 
100
 else
 
101
    pkg_failed=untried
 
102
fi[]dnl
 
103
])# _PKG_CONFIG
 
104
 
 
105
# _PKG_SHORT_ERRORS_SUPPORTED
 
106
# -----------------------------
 
107
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
 
108
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
109
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
110
        _pkg_short_errors_supported=yes
 
111
else
 
112
        _pkg_short_errors_supported=no
 
113
fi[]dnl
 
114
])# _PKG_SHORT_ERRORS_SUPPORTED
 
115
 
 
116
 
 
117
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
 
118
# [ACTION-IF-NOT-FOUND])
 
119
#
 
120
#
 
121
# Note that if there is a possibility the first call to
 
122
# PKG_CHECK_MODULES might not happen, you should be sure to include an
 
123
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
 
124
#
 
125
#
 
126
# --------------------------------------------------------------
 
127
AC_DEFUN([PKG_CHECK_MODULES],
 
128
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
129
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
 
130
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
 
131
 
 
132
pkg_failed=no
 
133
AC_MSG_CHECKING([for $1])
 
134
 
 
135
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
 
136
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
 
137
 
 
138
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
 
139
and $1[]_LIBS to avoid the need to call pkg-config.
 
140
See the pkg-config man page for more details.])
 
141
 
 
142
if test $pkg_failed = yes; then
 
143
        AC_MSG_RESULT([no])
 
144
        _PKG_SHORT_ERRORS_SUPPORTED
 
145
        if test $_pkg_short_errors_supported = yes; then
 
146
                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
 
147
        else 
 
148
                $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
 
149
        fi
 
150
        # Put the nasty error message in config.log where it belongs
 
151
        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
 
152
 
 
153
        m4_default([$4], [AC_MSG_ERROR(
 
154
[Package requirements ($2) were not met:
 
155
 
 
156
$$1_PKG_ERRORS
 
157
 
 
158
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
159
installed software in a non-standard prefix.
 
160
 
 
161
_PKG_TEXT])[]dnl
 
162
        ])
 
163
elif test $pkg_failed = untried; then
 
164
        AC_MSG_RESULT([no])
 
165
        m4_default([$4], [AC_MSG_FAILURE(
 
166
[The pkg-config script could not be found or is too old.  Make sure it
 
167
is in your PATH or set the PKG_CONFIG environment variable to the full
 
168
path to pkg-config.
 
169
 
 
170
_PKG_TEXT
 
171
 
 
172
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
 
173
        ])
 
174
else
 
175
        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
 
176
        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
 
177
        AC_MSG_RESULT([yes])
 
178
        $3
 
179
fi[]dnl
 
180
])# PKG_CHECK_MODULES
 
181
 
 
182
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
183
#
 
184
# This file is free software; the Free Software Foundation
 
185
# gives unlimited permission to copy and/or distribute it,
 
186
# with or without modifications, as long as this notice is preserved.
 
187
 
 
188
# AM_AUTOMAKE_VERSION(VERSION)
 
189
# ----------------------------
 
190
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
191
# generated from the m4 files accompanying Automake X.Y.
 
192
# (This private macro should not be called outside this file.)
 
193
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
194
[am__api_version='1.11'
 
195
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
196
dnl require some minimum version.  Point them to the right macro.
 
197
m4_if([$1], [1.11.1], [],
 
198
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
199
])
 
200
 
 
201
# _AM_AUTOCONF_VERSION(VERSION)
 
202
# -----------------------------
 
203
# aclocal traces this macro to find the Autoconf version.
 
204
# This is a private macro too.  Using m4_define simplifies
 
205
# the logic in aclocal, which can simply ignore this definition.
 
206
m4_define([_AM_AUTOCONF_VERSION], [])
 
207
 
 
208
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
209
# -------------------------------
 
210
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
211
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
212
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
213
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
214
m4_ifndef([AC_AUTOCONF_VERSION],
 
215
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
216
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
217
 
 
218
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
219
 
 
220
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
221
#
 
222
# This file is free software; the Free Software Foundation
 
223
# gives unlimited permission to copy and/or distribute it,
 
224
# with or without modifications, as long as this notice is preserved.
 
225
 
 
226
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
227
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
 
228
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
229
#
 
230
# Of course, Automake must honor this variable whenever it calls a
 
231
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
232
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
233
# depending on how configure is run.  This is pretty annoying, since
 
234
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
235
# source directory, any form will work fine, but in subdirectories a
 
236
# relative path needs to be adjusted first.
 
237
#
 
238
# $ac_aux_dir/missing
 
239
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
240
# $top_srcdir/$ac_aux_dir/missing
 
241
#    fails if $ac_aux_dir is absolute,
 
242
#    fails when called from a subdirectory in a VPATH build with
 
243
#          a relative $ac_aux_dir
 
244
#
 
245
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
246
# are both prefixed by $srcdir.  In an in-source build this is usually
 
247
# harmless because $srcdir is `.', but things will broke when you
 
248
# start a VPATH build or use an absolute $srcdir.
 
249
#
 
250
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
251
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
252
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
253
# and then we would define $MISSING as
 
254
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
255
# This will work as long as MISSING is not called from configure, because
 
256
# unfortunately $(top_srcdir) has no meaning in configure.
 
257
# However there are other variables, like CC, which are often used in
 
258
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
259
#
 
260
# Another solution, used here, is to always expand $ac_aux_dir to an
 
261
# absolute PATH.  The drawback is that using absolute paths prevent a
 
262
# configured tree to be moved without reconfiguration.
 
263
 
 
264
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
265
[dnl Rely on autoconf to set up CDPATH properly.
 
266
AC_PREREQ([2.50])dnl
 
267
# expand $ac_aux_dir to an absolute path
 
268
am_aux_dir=`cd $ac_aux_dir && pwd`
 
269
])
 
270
 
 
271
# AM_CONDITIONAL                                            -*- Autoconf -*-
 
272
 
 
273
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
 
274
# Free Software Foundation, Inc.
 
275
#
 
276
# This file is free software; the Free Software Foundation
 
277
# gives unlimited permission to copy and/or distribute it,
 
278
# with or without modifications, as long as this notice is preserved.
 
279
 
 
280
# serial 9
 
281
 
 
282
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
 
283
# -------------------------------------
 
284
# Define a conditional.
 
285
AC_DEFUN([AM_CONDITIONAL],
 
286
[AC_PREREQ(2.52)dnl
 
287
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
288
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
289
AC_SUBST([$1_TRUE])dnl
 
290
AC_SUBST([$1_FALSE])dnl
 
291
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
 
292
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
293
m4_define([_AM_COND_VALUE_$1], [$2])dnl
 
294
if $2; then
 
295
  $1_TRUE=
 
296
  $1_FALSE='#'
 
297
else
 
298
  $1_TRUE='#'
 
299
  $1_FALSE=
 
300
fi
 
301
AC_CONFIG_COMMANDS_PRE(
 
302
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
 
303
  AC_MSG_ERROR([[conditional "$1" was never defined.
 
304
Usually this means the macro was only invoked conditionally.]])
 
305
fi])])
 
306
 
 
307
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
 
308
# Free Software Foundation, Inc.
 
309
#
 
310
# This file is free software; the Free Software Foundation
 
311
# gives unlimited permission to copy and/or distribute it,
 
312
# with or without modifications, as long as this notice is preserved.
 
313
 
 
314
# serial 10
 
315
 
 
316
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
317
# written in clear, in which case automake, when reading aclocal.m4,
 
318
# will think it sees a *use*, and therefore will trigger all it's
 
319
# C support machinery.  Also note that it means that autoscan, seeing
 
320
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
 
321
 
 
322
 
 
323
# _AM_DEPENDENCIES(NAME)
 
324
# ----------------------
 
325
# See how the compiler implements dependency checking.
 
326
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
327
# We try a few techniques and use that to set a single cache variable.
 
328
#
 
329
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
 
330
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
 
331
# dependency, and given that the user is not expected to run this macro,
 
332
# just rely on AC_PROG_CC.
 
333
AC_DEFUN([_AM_DEPENDENCIES],
 
334
[AC_REQUIRE([AM_SET_DEPDIR])dnl
 
335
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
 
336
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
 
337
AC_REQUIRE([AM_DEP_TRACK])dnl
 
338
 
 
339
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
 
340
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
 
341
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
342
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
 
343
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
344
                   [depcc="$$1"   am_compiler_list=])
 
345
 
 
346
AC_CACHE_CHECK([dependency style of $depcc],
 
347
               [am_cv_$1_dependencies_compiler_type],
 
348
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
349
  # We make a subdir and do the tests there.  Otherwise we can end up
 
350
  # making bogus files that we don't know about and never remove.  For
 
351
  # instance it was reported that on HP-UX the gcc test will end up
 
352
  # making a dummy file named `D' -- because `-MD' means `put the output
 
353
  # in D'.
 
354
  mkdir conftest.dir
 
355
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
356
  # using a relative directory.
 
357
  cp "$am_depcomp" conftest.dir
 
358
  cd conftest.dir
 
359
  # We will build objects and dependencies in a subdirectory because
 
360
  # it helps to detect inapplicable dependency modes.  For instance
 
361
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
362
  # side effect of compilation, but ICC will put the dependencies in
 
363
  # the current directory while Tru64 will put them in the object
 
364
  # directory.
 
365
  mkdir sub
 
366
 
 
367
  am_cv_$1_dependencies_compiler_type=none
 
368
  if test "$am_compiler_list" = ""; then
 
369
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
 
370
  fi
 
371
  am__universal=false
 
372
  m4_case([$1], [CC],
 
373
    [case " $depcc " in #(
 
374
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
375
     esac],
 
376
    [CXX],
 
377
    [case " $depcc " in #(
 
378
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
379
     esac])
 
380
 
 
381
  for depmode in $am_compiler_list; do
 
382
    # Setup a source with many dependencies, because some compilers
 
383
    # like to wrap large dependency lists on column 80 (with \), and
 
384
    # we should not choose a depcomp mode which is confused by this.
 
385
    #
 
386
    # We need to recreate these files for each test, as the compiler may
 
387
    # overwrite some of them when testing with obscure command lines.
 
388
    # This happens at least with the AIX C compiler.
 
389
    : > sub/conftest.c
 
390
    for i in 1 2 3 4 5 6; do
 
391
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
392
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
393
      # Solaris 8's {/usr,}/bin/sh.
 
394
      touch sub/conftst$i.h
 
395
    done
 
396
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
397
 
 
398
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
399
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
400
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
401
    # versions had trouble with output in subdirs
 
402
    am__obj=sub/conftest.${OBJEXT-o}
 
403
    am__minus_obj="-o $am__obj"
 
404
    case $depmode in
 
405
    gcc)
 
406
      # This depmode causes a compiler race in universal mode.
 
407
      test "$am__universal" = false || continue
 
408
      ;;
 
409
    nosideeffect)
 
410
      # after this tag, mechanisms are not by side-effect, so they'll
 
411
      # only be used when explicitly requested
 
412
      if test "x$enable_dependency_tracking" = xyes; then
 
413
        continue
 
414
      else
 
415
        break
 
416
      fi
 
417
      ;;
 
418
    msvisualcpp | msvcmsys)
 
419
      # This compiler won't grok `-c -o', but also, the minuso test has
 
420
      # not run yet.  These depmodes are late enough in the game, and
 
421
      # so weak that their functioning should not be impacted.
 
422
      am__obj=conftest.${OBJEXT-o}
 
423
      am__minus_obj=
 
424
      ;;
 
425
    none) break ;;
 
426
    esac
 
427
    if depmode=$depmode \
 
428
       source=sub/conftest.c object=$am__obj \
 
429
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
430
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
431
         >/dev/null 2>conftest.err &&
 
432
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
433
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
434
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
435
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
436
      # icc doesn't choke on unknown options, it will just issue warnings
 
437
      # or remarks (even with -Werror).  So we grep stderr for any message
 
438
      # that says an option was ignored or not supported.
 
439
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
440
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
441
      # The diagnosis changed in icc 8.0:
 
442
      #   icc: Command line remark: option '-MP' not supported
 
443
      if (grep 'ignoring option' conftest.err ||
 
444
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
445
        am_cv_$1_dependencies_compiler_type=$depmode
 
446
        break
 
447
      fi
 
448
    fi
 
449
  done
 
450
 
 
451
  cd ..
 
452
  rm -rf conftest.dir
 
453
else
 
454
  am_cv_$1_dependencies_compiler_type=none
 
455
fi
 
456
])
 
457
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
 
458
AM_CONDITIONAL([am__fastdep$1], [
 
459
  test "x$enable_dependency_tracking" != xno \
 
460
  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
 
461
])
 
462
 
 
463
 
 
464
# AM_SET_DEPDIR
 
465
# -------------
 
466
# Choose a directory name for dependency files.
 
467
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
468
AC_DEFUN([AM_SET_DEPDIR],
 
469
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
470
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
 
471
])
 
472
 
 
473
 
 
474
# AM_DEP_TRACK
 
475
# ------------
 
476
AC_DEFUN([AM_DEP_TRACK],
 
477
[AC_ARG_ENABLE(dependency-tracking,
 
478
[  --disable-dependency-tracking  speeds up one-time build
 
479
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
480
if test "x$enable_dependency_tracking" != xno; then
 
481
  am_depcomp="$ac_aux_dir/depcomp"
 
482
  AMDEPBACKSLASH='\'
 
483
fi
 
484
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
 
485
AC_SUBST([AMDEPBACKSLASH])dnl
 
486
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
487
])
 
488
 
 
489
# Generate code to set up dependency tracking.              -*- Autoconf -*-
 
490
 
 
491
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
492
# Free Software Foundation, Inc.
 
493
#
 
494
# This file is free software; the Free Software Foundation
 
495
# gives unlimited permission to copy and/or distribute it,
 
496
# with or without modifications, as long as this notice is preserved.
 
497
 
 
498
#serial 5
 
499
 
 
500
# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
501
# ------------------------------
 
502
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
 
503
[{
 
504
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
505
  # are listed without --file.  Let's play safe and only enable the eval
 
506
  # if we detect the quoting.
 
507
  case $CONFIG_FILES in
 
508
  *\'*) eval set x "$CONFIG_FILES" ;;
 
509
  *)   set x $CONFIG_FILES ;;
 
510
  esac
 
511
  shift
 
512
  for mf
 
513
  do
 
514
    # Strip MF so we end up with the name of the file.
 
515
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
516
    # Check whether this is an Automake generated Makefile or not.
 
517
    # We used to match only the files named `Makefile.in', but
 
518
    # some people rename them; so instead we look at the file content.
 
519
    # Grep'ing the first line is not enough: some people post-process
 
520
    # each Makefile.in and add a new line on top of each file to say so.
 
521
    # Grep'ing the whole file is not good either: AIX grep has a line
 
522
    # limit of 2048, but all sed's we know have understand at least 4000.
 
523
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
524
      dirpart=`AS_DIRNAME("$mf")`
 
525
    else
 
526
      continue
 
527
    fi
 
528
    # Extract the definition of DEPDIR, am__include, and am__quote
 
529
    # from the Makefile without running `make'.
 
530
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
531
    test -z "$DEPDIR" && continue
 
532
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
533
    test -z "am__include" && continue
 
534
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
535
    # When using ansi2knr, U may be empty or an underscore; expand it
 
536
    U=`sed -n 's/^U = //p' < "$mf"`
 
537
    # Find all dependency output files, they are included files with
 
538
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
539
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
540
    # expansion.
 
541
    for file in `sed -n "
 
542
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
543
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
544
      # Make sure the directory exists.
 
545
      test -f "$dirpart/$file" && continue
 
546
      fdir=`AS_DIRNAME(["$file"])`
 
547
      AS_MKDIR_P([$dirpart/$fdir])
 
548
      # echo "creating $dirpart/$file"
 
549
      echo '# dummy' > "$dirpart/$file"
 
550
    done
 
551
  done
 
552
}
 
553
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
 
554
 
 
555
 
 
556
# AM_OUTPUT_DEPENDENCY_COMMANDS
 
557
# -----------------------------
 
558
# This macro should only be invoked once -- use via AC_REQUIRE.
 
559
#
 
560
# This code is only required when automatic dependency tracking
 
561
# is enabled.  FIXME.  This creates each `.P' file that we will
 
562
# need in order to bootstrap the dependency handling code.
 
563
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
 
564
[AC_CONFIG_COMMANDS([depfiles],
 
565
     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
 
566
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
 
567
])
 
568
 
 
569
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
570
# Free Software Foundation, Inc.
 
571
#
 
572
# This file is free software; the Free Software Foundation
 
573
# gives unlimited permission to copy and/or distribute it,
 
574
# with or without modifications, as long as this notice is preserved.
 
575
 
 
576
# serial 8
 
577
 
 
578
# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
 
579
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
 
580
 
 
581
# Do all the work for Automake.                             -*- Autoconf -*-
 
582
 
 
583
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 
584
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
585
#
 
586
# This file is free software; the Free Software Foundation
 
587
# gives unlimited permission to copy and/or distribute it,
 
588
# with or without modifications, as long as this notice is preserved.
 
589
 
 
590
# serial 16
 
591
 
 
592
# This macro actually does too much.  Some checks are only needed if
 
593
# your package does certain things.  But this isn't really a big deal.
 
594
 
 
595
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
596
# AM_INIT_AUTOMAKE([OPTIONS])
 
597
# -----------------------------------------------
 
598
# The call with PACKAGE and VERSION arguments is the old style
 
599
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
600
# and VERSION should now be passed to AC_INIT and removed from
 
601
# the call to AM_INIT_AUTOMAKE.
 
602
# We support both call styles for the transition.  After
 
603
# the next Automake release, Autoconf can make the AC_INIT
 
604
# arguments mandatory, and then we can depend on a new Autoconf
 
605
# release and drop the old call support.
 
606
AC_DEFUN([AM_INIT_AUTOMAKE],
 
607
[AC_PREREQ([2.62])dnl
 
608
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
609
dnl the ones we care about.
 
610
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
611
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
612
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
613
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
614
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
615
  # is not polluted with repeated "-I."
 
616
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
617
  # test to see if srcdir already configured
 
618
  if test -f $srcdir/config.status; then
 
619
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
620
  fi
 
621
fi
 
622
 
 
623
# test whether we have cygpath
 
624
if test -z "$CYGPATH_W"; then
 
625
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
626
    CYGPATH_W='cygpath -w'
 
627
  else
 
628
    CYGPATH_W=echo
 
629
  fi
 
630
fi
 
631
AC_SUBST([CYGPATH_W])
 
632
 
 
633
# Define the identity of the package.
 
634
dnl Distinguish between old-style and new-style calls.
 
635
m4_ifval([$2],
 
636
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
637
 AC_SUBST([PACKAGE], [$1])dnl
 
638
 AC_SUBST([VERSION], [$2])],
 
639
[_AM_SET_OPTIONS([$1])dnl
 
640
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
641
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
642
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
643
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
644
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
645
 
 
646
_AM_IF_OPTION([no-define],,
 
647
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
 
648
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
649
 
 
650
# Some tools Automake needs.
 
651
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
652
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
653
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
 
654
AM_MISSING_PROG(AUTOCONF, autoconf)
 
655
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
 
656
AM_MISSING_PROG(AUTOHEADER, autoheader)
 
657
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
658
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
659
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
660
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
661
# We need awk for the "check" target.  The system "awk" is bad on
 
662
# some platforms.
 
663
AC_REQUIRE([AC_PROG_AWK])dnl
 
664
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
665
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
666
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
667
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
668
                             [_AM_PROG_TAR([v7])])])
 
669
_AM_IF_OPTION([no-dependencies],,
 
670
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
671
                  [_AM_DEPENDENCIES(CC)],
 
672
                  [define([AC_PROG_CC],
 
673
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
674
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
675
                  [_AM_DEPENDENCIES(CXX)],
 
676
                  [define([AC_PROG_CXX],
 
677
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
678
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
679
                  [_AM_DEPENDENCIES(OBJC)],
 
680
                  [define([AC_PROG_OBJC],
 
681
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
682
])
 
683
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
684
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
685
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
686
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
687
AC_CONFIG_COMMANDS_PRE(dnl
 
688
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
689
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
690
])
 
691
 
 
692
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
693
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
694
dnl mangled by Autoconf and run in a shell conditional statement.
 
695
m4_define([_AC_COMPILER_EXEEXT],
 
696
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
697
 
 
698
 
 
699
# When config.status generates a header, we must update the stamp-h file.
 
700
# This file resides in the same directory as the config header
 
701
# that is generated.  The stamp files are numbered to have different names.
 
702
 
 
703
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
704
# loop where config.status creates the headers, so we can generate
 
705
# our stamp files there.
 
706
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
707
[# Compute $1's index in $config_headers.
 
708
_am_arg=$1
 
709
_am_stamp_count=1
 
710
for _am_header in $config_headers :; do
 
711
  case $_am_header in
 
712
    $_am_arg | $_am_arg:* )
 
713
      break ;;
 
714
    * )
 
715
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
716
  esac
 
717
done
 
718
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
719
 
 
720
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
721
#
 
722
# This file is free software; the Free Software Foundation
 
723
# gives unlimited permission to copy and/or distribute it,
 
724
# with or without modifications, as long as this notice is preserved.
 
725
 
 
726
# AM_PROG_INSTALL_SH
 
727
# ------------------
 
728
# Define $install_sh.
 
729
AC_DEFUN([AM_PROG_INSTALL_SH],
 
730
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
731
if test x"${install_sh}" != xset; then
 
732
  case $am_aux_dir in
 
733
  *\ * | *\     *)
 
734
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
735
  *)
 
736
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
737
  esac
 
738
fi
 
739
AC_SUBST(install_sh)])
 
740
 
 
741
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
742
#
 
743
# This file is free software; the Free Software Foundation
 
744
# gives unlimited permission to copy and/or distribute it,
 
745
# with or without modifications, as long as this notice is preserved.
 
746
 
 
747
# serial 2
 
748
 
 
749
# Check whether the underlying file-system supports filenames
 
750
# with a leading dot.  For instance MS-DOS doesn't.
 
751
AC_DEFUN([AM_SET_LEADING_DOT],
 
752
[rm -rf .tst 2>/dev/null
 
753
mkdir .tst 2>/dev/null
 
754
if test -d .tst; then
 
755
  am__leading_dot=.
 
756
else
 
757
  am__leading_dot=_
 
758
fi
 
759
rmdir .tst 2>/dev/null
 
760
AC_SUBST([am__leading_dot])])
 
761
 
 
762
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
 
763
# From Jim Meyering
 
764
 
 
765
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
 
766
# Free Software Foundation, Inc.
 
767
#
 
768
# This file is free software; the Free Software Foundation
 
769
# gives unlimited permission to copy and/or distribute it,
 
770
# with or without modifications, as long as this notice is preserved.
 
771
 
 
772
# serial 5
 
773
 
 
774
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
775
# ----------------------------------
 
776
# Control maintainer-specific portions of Makefiles.
 
777
# Default is to disable them, unless `enable' is passed literally.
 
778
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
779
# can override the default with the --enable/--disable switch.
 
780
AC_DEFUN([AM_MAINTAINER_MODE],
 
781
[m4_case(m4_default([$1], [disable]),
 
782
       [enable], [m4_define([am_maintainer_other], [disable])],
 
783
       [disable], [m4_define([am_maintainer_other], [enable])],
 
784
       [m4_define([am_maintainer_other], [enable])
 
785
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
786
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
787
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
788
  AC_ARG_ENABLE([maintainer-mode],
 
789
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
 
790
                          (and sometimes confusing) to the casual installer],
 
791
      [USE_MAINTAINER_MODE=$enableval],
 
792
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
793
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
 
794
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
 
795
  MAINT=$MAINTAINER_MODE_TRUE
 
796
  AC_SUBST([MAINT])dnl
 
797
]
 
798
)
 
799
 
 
800
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
 
801
 
 
802
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
 
803
 
 
804
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
805
#
 
806
# This file is free software; the Free Software Foundation
 
807
# gives unlimited permission to copy and/or distribute it,
 
808
# with or without modifications, as long as this notice is preserved.
 
809
 
 
810
# serial 4
 
811
 
 
812
# AM_MAKE_INCLUDE()
 
813
# -----------------
 
814
# Check to see how make treats includes.
 
815
AC_DEFUN([AM_MAKE_INCLUDE],
 
816
[am_make=${MAKE-make}
 
817
cat > confinc << 'END'
 
818
am__doit:
 
819
        @echo this is the am__doit target
 
820
.PHONY: am__doit
 
821
END
 
822
# If we don't find an include directive, just comment out the code.
 
823
AC_MSG_CHECKING([for style of include used by $am_make])
 
824
am__include="#"
 
825
am__quote=
 
826
_am_result=none
 
827
# First try GNU make style include.
 
828
echo "include confinc" > confmf
 
829
# Ignore all kinds of additional output from `make'.
 
830
case `$am_make -s -f confmf 2> /dev/null` in #(
 
831
*the\ am__doit\ target*)
 
832
  am__include=include
 
833
  am__quote=
 
834
  _am_result=GNU
 
835
  ;;
 
836
esac
 
837
# Now try BSD make style include.
 
838
if test "$am__include" = "#"; then
 
839
   echo '.include "confinc"' > confmf
 
840
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
841
   *the\ am__doit\ target*)
 
842
     am__include=.include
 
843
     am__quote="\""
 
844
     _am_result=BSD
 
845
     ;;
 
846
   esac
 
847
fi
 
848
AC_SUBST([am__include])
 
849
AC_SUBST([am__quote])
 
850
AC_MSG_RESULT([$_am_result])
 
851
rm -f confinc confmf
 
852
])
 
853
 
 
854
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
855
 
 
856
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
 
857
# Free Software Foundation, Inc.
 
858
#
 
859
# This file is free software; the Free Software Foundation
 
860
# gives unlimited permission to copy and/or distribute it,
 
861
# with or without modifications, as long as this notice is preserved.
 
862
 
 
863
# serial 6
 
864
 
 
865
# AM_MISSING_PROG(NAME, PROGRAM)
 
866
# ------------------------------
 
867
AC_DEFUN([AM_MISSING_PROG],
 
868
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
869
$1=${$1-"${am_missing_run}$2"}
 
870
AC_SUBST($1)])
 
871
 
 
872
 
 
873
# AM_MISSING_HAS_RUN
 
874
# ------------------
 
875
# Define MISSING if not defined so far and test if it supports --run.
 
876
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
877
AC_DEFUN([AM_MISSING_HAS_RUN],
 
878
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
879
AC_REQUIRE_AUX_FILE([missing])dnl
 
880
if test x"${MISSING+set}" != xset; then
 
881
  case $am_aux_dir in
 
882
  *\ * | *\     *)
 
883
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
884
  *)
 
885
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
886
  esac
 
887
fi
 
888
# Use eval to expand $SHELL
 
889
if eval "$MISSING --run true"; then
 
890
  am_missing_run="$MISSING --run "
 
891
else
 
892
  am_missing_run=
 
893
  AC_MSG_WARN([`missing' script is too old or missing])
 
894
fi
 
895
])
 
896
 
 
897
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
898
#
 
899
# This file is free software; the Free Software Foundation
 
900
# gives unlimited permission to copy and/or distribute it,
 
901
# with or without modifications, as long as this notice is preserved.
 
902
 
 
903
# AM_PROG_MKDIR_P
 
904
# ---------------
 
905
# Check for `mkdir -p'.
 
906
AC_DEFUN([AM_PROG_MKDIR_P],
 
907
[AC_PREREQ([2.60])dnl
 
908
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
909
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
 
910
dnl while keeping a definition of mkdir_p for backward compatibility.
 
911
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
 
912
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
 
913
dnl Makefile.ins that do not define MKDIR_P, so we do our own
 
914
dnl adjustment using top_builddir (which is defined more often than
 
915
dnl MKDIR_P).
 
916
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
 
917
case $mkdir_p in
 
918
  [[\\/$]]* | ?:[[\\/]]*) ;;
 
919
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
920
esac
 
921
])
 
922
 
 
923
# Helper functions for option handling.                     -*- Autoconf -*-
 
924
 
 
925
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
926
#
 
927
# This file is free software; the Free Software Foundation
 
928
# gives unlimited permission to copy and/or distribute it,
 
929
# with or without modifications, as long as this notice is preserved.
 
930
 
 
931
# serial 4
 
932
 
 
933
# _AM_MANGLE_OPTION(NAME)
 
934
# -----------------------
 
935
AC_DEFUN([_AM_MANGLE_OPTION],
 
936
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
937
 
 
938
# _AM_SET_OPTION(NAME)
 
939
# ------------------------------
 
940
# Set option NAME.  Presently that only means defining a flag for this option.
 
941
AC_DEFUN([_AM_SET_OPTION],
 
942
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
943
 
 
944
# _AM_SET_OPTIONS(OPTIONS)
 
945
# ----------------------------------
 
946
# OPTIONS is a space-separated list of Automake options.
 
947
AC_DEFUN([_AM_SET_OPTIONS],
 
948
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
949
 
 
950
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
951
# -------------------------------------------
 
952
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
953
AC_DEFUN([_AM_IF_OPTION],
 
954
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
955
 
 
956
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
 
957
# Free Software Foundation, Inc.
 
958
#
 
959
# This file is free software; the Free Software Foundation
 
960
# gives unlimited permission to copy and/or distribute it,
 
961
# with or without modifications, as long as this notice is preserved.
 
962
 
 
963
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
964
# ---------------------------------------------------------------------------
 
965
# Adds support for distributing Python modules and packages.  To
 
966
# install modules, copy them to $(pythondir), using the python_PYTHON
 
967
# automake variable.  To install a package with the same name as the
 
968
# automake package, install to $(pkgpythondir), or use the
 
969
# pkgpython_PYTHON automake variable.
 
970
#
 
971
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 
972
# locations to install python extension modules (shared libraries).
 
973
# Another macro is required to find the appropriate flags to compile
 
974
# extension modules.
 
975
#
 
976
# If your package is configured with a different prefix to python,
 
977
# users will have to add the install directory to the PYTHONPATH
 
978
# environment variable, or create a .pth file (see the python
 
979
# documentation for details).
 
980
#
 
981
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
982
# cause an error if the version of python installed on the system
 
983
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 
984
# numbers and dots only.
 
985
AC_DEFUN([AM_PATH_PYTHON],
 
986
 [
 
987
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
988
  dnl supported. (2.0 was released on October 16, 2000).
 
989
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
990
                    [python python2 python3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 dnl
 
991
python2.1 python2.0])
 
992
 
 
993
  m4_if([$1],[],[
 
994
    dnl No version check is needed.
 
995
    # Find any Python interpreter.
 
996
    if test -z "$PYTHON"; then
 
997
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 
998
    fi
 
999
    am_display_PYTHON=python
 
1000
  ], [
 
1001
    dnl A version check is needed.
 
1002
    if test -n "$PYTHON"; then
 
1003
      # If the user set $PYTHON, use it and don't search something else.
 
1004
      AC_MSG_CHECKING([whether $PYTHON version >= $1])
 
1005
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 
1006
                              [AC_MSG_RESULT(yes)],
 
1007
                              [AC_MSG_ERROR(too old)])
 
1008
      am_display_PYTHON=$PYTHON
 
1009
    else
 
1010
      # Otherwise, try each interpreter until we find one that satisfies
 
1011
      # VERSION.
 
1012
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 
1013
        [am_cv_pathless_PYTHON],[
 
1014
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
1015
          test "$am_cv_pathless_PYTHON" = none && break
 
1016
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
1017
        done])
 
1018
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
1019
      if test "$am_cv_pathless_PYTHON" = none; then
 
1020
        PYTHON=:
 
1021
      else
 
1022
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
1023
      fi
 
1024
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
1025
    fi
 
1026
  ])
 
1027
 
 
1028
  if test "$PYTHON" = :; then
 
1029
  dnl Run any user-specified action, or abort.
 
1030
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
1031
  else
 
1032
 
 
1033
  dnl Query Python for its version number.  Getting [:3] seems to be
 
1034
  dnl the best way to do this; it's what "site.py" does in the standard
 
1035
  dnl library.
 
1036
 
 
1037
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 
1038
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
 
1039
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 
1040
 
 
1041
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 
1042
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 
1043
  dnl distinct variables so they can be overridden if need be.  However,
 
1044
  dnl general consensus is that you shouldn't need this ability.
 
1045
 
 
1046
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 
1047
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 
1048
 
 
1049
  dnl At times (like when building shared libraries) you may want
 
1050
  dnl to know which OS platform Python thinks this is.
 
1051
 
 
1052
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 
1053
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
 
1054
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 
1055
 
 
1056
 
 
1057
  dnl Set up 4 directories:
 
1058
 
 
1059
  dnl pythondir -- where to install python scripts.  This is the
 
1060
  dnl   site-packages directory, not the python standard library
 
1061
  dnl   directory like in previous automake betas.  This behavior
 
1062
  dnl   is more consistent with lispdir.m4 for example.
 
1063
  dnl Query distutils for this directory.  distutils does not exist in
 
1064
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
1065
  dnl doesn't work.
 
1066
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 
1067
    [am_cv_python_pythondir],
 
1068
    [if test "x$prefix" = xNONE
 
1069
     then
 
1070
       am_py_prefix=$ac_default_prefix
 
1071
     else
 
1072
       am_py_prefix=$prefix
 
1073
     fi
 
1074
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
1075
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1076
     case $am_cv_python_pythondir in
 
1077
     $am_py_prefix*)
 
1078
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
1079
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
1080
       ;;
 
1081
     *)
 
1082
       case $am_py_prefix in
 
1083
         /usr|/System*) ;;
 
1084
         *)
 
1085
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1086
          ;;
 
1087
       esac
 
1088
       ;;
 
1089
     esac
 
1090
    ])
 
1091
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 
1092
 
 
1093
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 
1094
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 
1095
  dnl   more consistent with the rest of automake.
 
1096
 
 
1097
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 
1098
 
 
1099
  dnl pyexecdir -- directory for installing python extension modules
 
1100
  dnl   (shared libraries)
 
1101
  dnl Query distutils for this directory.  distutils does not exist in
 
1102
  dnl Python 1.5, so we fall back to the hardcoded directory if it
 
1103
  dnl doesn't work.
 
1104
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 
1105
    [am_cv_python_pyexecdir],
 
1106
    [if test "x$exec_prefix" = xNONE
 
1107
     then
 
1108
       am_py_exec_prefix=$am_py_prefix
 
1109
     else
 
1110
       am_py_exec_prefix=$exec_prefix
 
1111
     fi
 
1112
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
1113
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1114
     case $am_cv_python_pyexecdir in
 
1115
     $am_py_exec_prefix*)
 
1116
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
1117
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
1118
       ;;
 
1119
     *)
 
1120
       case $am_py_exec_prefix in
 
1121
         /usr|/System*) ;;
 
1122
         *)
 
1123
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1124
           ;;
 
1125
       esac
 
1126
       ;;
 
1127
     esac
 
1128
    ])
 
1129
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 
1130
 
 
1131
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 
1132
 
 
1133
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
1134
 
 
1135
  dnl Run any user-specified action.
 
1136
  $2
 
1137
  fi
 
1138
 
 
1139
])
 
1140
 
 
1141
 
 
1142
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 
1143
# ---------------------------------------------------------------------------
 
1144
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 
1145
# Run ACTION-IF-FALSE otherwise.
 
1146
# This test uses sys.hexversion instead of the string equivalent (first
 
1147
# word of sys.version), in order to cope with versions such as 2.2c1.
 
1148
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
 
1149
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 
1150
 [prog="import sys
 
1151
# split strings by '.' and convert to numeric.  Append some zeros
 
1152
# because we need at least 4 digits for the hex conversion.
 
1153
# map returns an iterator in Python 3.0 and a list in 2.x
 
1154
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
 
1155
minverhex = 0
 
1156
# xrange is not present in Python 3.0 and range returns an iterator
 
1157
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
 
1158
sys.exit(sys.hexversion < minverhex)"
 
1159
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 
1160
 
 
1161
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1162
#
 
1163
# This file is free software; the Free Software Foundation
 
1164
# gives unlimited permission to copy and/or distribute it,
 
1165
# with or without modifications, as long as this notice is preserved.
 
1166
 
 
1167
# AM_RUN_LOG(COMMAND)
 
1168
# -------------------
 
1169
# Run COMMAND, save the exit status in ac_status, and log it.
 
1170
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
1171
AC_DEFUN([AM_RUN_LOG],
 
1172
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
1173
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
1174
   ac_status=$?
 
1175
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1176
   (exit $ac_status); }])
 
1177
 
 
1178
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
1179
 
 
1180
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
 
1181
# Free Software Foundation, Inc.
 
1182
#
 
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.
 
1186
 
 
1187
# serial 5
 
1188
 
 
1189
# AM_SANITY_CHECK
 
1190
# ---------------
 
1191
AC_DEFUN([AM_SANITY_CHECK],
 
1192
[AC_MSG_CHECKING([whether build environment is sane])
 
1193
# Just in case
 
1194
sleep 1
 
1195
echo timestamp > conftest.file
 
1196
# Reject unsafe characters in $srcdir or the absolute working directory
 
1197
# name.  Accept space and tab only in the latter.
 
1198
am_lf='
 
1199
'
 
1200
case `pwd` in
 
1201
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1202
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1203
esac
 
1204
case $srcdir in
 
1205
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1206
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1207
esac
 
1208
 
 
1209
# Do `set' in a subshell so we don't clobber the current shell's
 
1210
# arguments.  Must try -L first in case configure is actually a
 
1211
# symlink; some systems play weird games with the mod time of symlinks
 
1212
# (eg FreeBSD returns the mod time of the symlink's containing
 
1213
# directory).
 
1214
if (
 
1215
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1216
   if test "$[*]" = "X"; then
 
1217
      # -L didn't work.
 
1218
      set X `ls -t "$srcdir/configure" conftest.file`
 
1219
   fi
 
1220
   rm -f conftest.file
 
1221
   if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1222
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1223
 
 
1224
      # If neither matched, then we have a broken ls.  This can happen
 
1225
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1226
      # broken ls alias from the environment.  This has actually
 
1227
      # happened.  Such a system could not be considered "sane".
 
1228
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1229
alias in your environment])
 
1230
   fi
 
1231
 
 
1232
   test "$[2]" = conftest.file
 
1233
   )
 
1234
then
 
1235
   # Ok.
 
1236
   :
 
1237
else
 
1238
   AC_MSG_ERROR([newly created file is older than distributed files!
 
1239
Check your system clock])
 
1240
fi
 
1241
AC_MSG_RESULT(yes)])
 
1242
 
 
1243
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1244
#
 
1245
# This file is free software; the Free Software Foundation
 
1246
# gives unlimited permission to copy and/or distribute it,
 
1247
# with or without modifications, as long as this notice is preserved.
 
1248
 
 
1249
# AM_PROG_INSTALL_STRIP
 
1250
# ---------------------
 
1251
# One issue with vendor `install' (even GNU) is that you can't
 
1252
# specify the program used to strip binaries.  This is especially
 
1253
# annoying in cross-compiling environments, where the build's strip
 
1254
# is unlikely to handle the host's binaries.
 
1255
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
1256
# always use install-sh in `make install-strip', and initialize
 
1257
# STRIPPROG with the value of the STRIP variable (set by the user).
 
1258
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
1259
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
1260
# Installed binaries are usually stripped using `strip' when the user
 
1261
# run `make install-strip'.  However `strip' might not be the right
 
1262
# tool to use in cross-compilation environments, therefore Automake
 
1263
# will honor the `STRIP' environment variable to overrule this program.
 
1264
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1265
if test "$cross_compiling" != no; then
 
1266
  AC_CHECK_TOOL([STRIP], [strip], :)
 
1267
fi
 
1268
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
1269
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
1270
 
 
1271
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
1272
#
 
1273
# This file is free software; the Free Software Foundation
 
1274
# gives unlimited permission to copy and/or distribute it,
 
1275
# with or without modifications, as long as this notice is preserved.
 
1276
 
 
1277
# serial 2
 
1278
 
 
1279
# _AM_SUBST_NOTMAKE(VARIABLE)
 
1280
# ---------------------------
 
1281
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
1282
# This macro is traced by Automake.
 
1283
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
1284
 
 
1285
# AM_SUBST_NOTMAKE(VARIABLE)
 
1286
# ---------------------------
 
1287
# Public sister of _AM_SUBST_NOTMAKE.
 
1288
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1289
 
 
1290
# Check how to create a tarball.                            -*- Autoconf -*-
 
1291
 
 
1292
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1293
#
 
1294
# This file is free software; the Free Software Foundation
 
1295
# gives unlimited permission to copy and/or distribute it,
 
1296
# with or without modifications, as long as this notice is preserved.
 
1297
 
 
1298
# serial 2
 
1299
 
 
1300
# _AM_PROG_TAR(FORMAT)
 
1301
# --------------------
 
1302
# Check how to create a tarball in format FORMAT.
 
1303
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1304
#
 
1305
# Substitute a variable $(am__tar) that is a command
 
1306
# writing to stdout a FORMAT-tarball containing the directory
 
1307
# $tardir.
 
1308
#     tardir=directory && $(am__tar) > result.tar
 
1309
#
 
1310
# Substitute a variable $(am__untar) that extract such
 
1311
# a tarball read from stdin.
 
1312
#     $(am__untar) < result.tar
 
1313
AC_DEFUN([_AM_PROG_TAR],
 
1314
[# Always define AMTAR for backward compatibility.
 
1315
AM_MISSING_PROG([AMTAR], [tar])
 
1316
m4_if([$1], [v7],
 
1317
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
1318
     [m4_case([$1], [ustar],, [pax],,
 
1319
              [m4_fatal([Unknown tar format])])
 
1320
AC_MSG_CHECKING([how to create a $1 tar archive])
 
1321
# Loop over all known methods to create a tar archive until one works.
 
1322
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1323
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1324
# Do not fold the above two line into one, because Tru64 sh and
 
1325
# Solaris sh will not grok spaces in the rhs of `-'.
 
1326
for _am_tool in $_am_tools
 
1327
do
 
1328
  case $_am_tool in
 
1329
  gnutar)
 
1330
    for _am_tar in tar gnutar gtar;
 
1331
    do
 
1332
      AM_RUN_LOG([$_am_tar --version]) && break
 
1333
    done
 
1334
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1335
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1336
    am__untar="$_am_tar -xf -"
 
1337
    ;;
 
1338
  plaintar)
 
1339
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
1340
    # ustar tarball either.
 
1341
    (tar --version) >/dev/null 2>&1 && continue
 
1342
    am__tar='tar chf - "$$tardir"'
 
1343
    am__tar_='tar chf - "$tardir"'
 
1344
    am__untar='tar xf -'
 
1345
    ;;
 
1346
  pax)
 
1347
    am__tar='pax -L -x $1 -w "$$tardir"'
 
1348
    am__tar_='pax -L -x $1 -w "$tardir"'
 
1349
    am__untar='pax -r'
 
1350
    ;;
 
1351
  cpio)
 
1352
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1353
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1354
    am__untar='cpio -i -H $1 -d'
 
1355
    ;;
 
1356
  none)
 
1357
    am__tar=false
 
1358
    am__tar_=false
 
1359
    am__untar=false
 
1360
    ;;
 
1361
  esac
 
1362
 
 
1363
  # If the value was cached, stop now.  We just wanted to have am__tar
 
1364
  # and am__untar set.
 
1365
  test -n "${am_cv_prog_tar_$1}" && break
 
1366
 
 
1367
  # tar/untar a dummy directory, and stop if the command works
 
1368
  rm -rf conftest.dir
 
1369
  mkdir conftest.dir
 
1370
  echo GrepMe > conftest.dir/file
 
1371
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1372
  rm -rf conftest.dir
 
1373
  if test -s conftest.tar; then
 
1374
    AM_RUN_LOG([$am__untar <conftest.tar])
 
1375
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1376
  fi
 
1377
done
 
1378
rm -rf conftest.dir
 
1379
 
 
1380
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1381
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1382
AC_SUBST([am__tar])
 
1383
AC_SUBST([am__untar])
 
1384
]) # _AM_PROG_TAR
 
1385
 
 
1386
m4_include([m4/libtool.m4])
 
1387
m4_include([m4/ltoptions.m4])
 
1388
m4_include([m4/ltsugar.m4])
 
1389
m4_include([m4/ltversion.m4])
 
1390
m4_include([m4/lt~obsolete.m4])