~ubuntu-branches/ubuntu/vivid/yelp-xsl/vivid-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-11-29 10:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20101129100013-1fxze8fm1fegxl8w
Tags: upstream-2.31.6
ImportĀ upstreamĀ versionĀ 2.31.6

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