~m-grant-prg/mget/focal-trunk

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Mark Grant
  • Date: 2015-06-26 14:04:54 UTC
  • Revision ID: m.grant.prg@gmail.com-20150626140454-ic5qk4mhb3136egx
Tags: upstream-1.1.5
ImportĀ upstreamĀ versionĀ 1.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# generated automatically by aclocal 1.14.1 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
4
 
 
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_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
 
15
m4_ifndef([AC_AUTOCONF_VERSION],
 
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
 
19
You have another version of autoconf.  It may work, but is not guaranteed to.
 
20
If you have problems, you may need to regenerate the build system entirely.
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
 
22
 
 
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
 
24
#
 
25
# This file is free software; the Free Software Foundation
 
26
# gives unlimited permission to copy and/or distribute it,
 
27
# with or without modifications, as long as this notice is preserved.
 
28
 
 
29
# AM_AUTOMAKE_VERSION(VERSION)
 
30
# ----------------------------
 
31
# Automake X.Y traces this macro to ensure aclocal.m4 has been
 
32
# generated from the m4 files accompanying Automake X.Y.
 
33
# (This private macro should not be called outside this file.)
 
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
 
35
[am__api_version='1.14'
 
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
 
37
dnl require some minimum version.  Point them to the right macro.
 
38
m4_if([$1], [1.14.1], [],
 
39
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
 
40
])
 
41
 
 
42
# _AM_AUTOCONF_VERSION(VERSION)
 
43
# -----------------------------
 
44
# aclocal traces this macro to find the Autoconf version.
 
45
# This is a private macro too.  Using m4_define simplifies
 
46
# the logic in aclocal, which can simply ignore this definition.
 
47
m4_define([_AM_AUTOCONF_VERSION], [])
 
48
 
 
49
# AM_SET_CURRENT_AUTOMAKE_VERSION
 
50
# -------------------------------
 
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
 
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
 
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
 
54
[AM_AUTOMAKE_VERSION([1.14.1])dnl
 
55
m4_ifndef([AC_AUTOCONF_VERSION],
 
56
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
 
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
 
58
 
 
59
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
 
60
 
 
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
62
#
 
63
# This file is free software; the Free Software Foundation
 
64
# gives unlimited permission to copy and/or distribute it,
 
65
# with or without modifications, as long as this notice is preserved.
 
66
 
 
67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
 
68
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
 
70
#
 
71
# Of course, Automake must honor this variable whenever it calls a
 
72
# tool from the auxiliary directory.  The problem is that $srcdir (and
 
73
# therefore $ac_aux_dir as well) can be either absolute or relative,
 
74
# depending on how configure is run.  This is pretty annoying, since
 
75
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
 
76
# source directory, any form will work fine, but in subdirectories a
 
77
# relative path needs to be adjusted first.
 
78
#
 
79
# $ac_aux_dir/missing
 
80
#    fails when called from a subdirectory if $ac_aux_dir is relative
 
81
# $top_srcdir/$ac_aux_dir/missing
 
82
#    fails if $ac_aux_dir is absolute,
 
83
#    fails when called from a subdirectory in a VPATH build with
 
84
#          a relative $ac_aux_dir
 
85
#
 
86
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
 
87
# are both prefixed by $srcdir.  In an in-source build this is usually
 
88
# harmless because $srcdir is '.', but things will broke when you
 
89
# start a VPATH build or use an absolute $srcdir.
 
90
#
 
91
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
 
92
# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
 
93
#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
 
94
# and then we would define $MISSING as
 
95
#   MISSING="\${SHELL} $am_aux_dir/missing"
 
96
# This will work as long as MISSING is not called from configure, because
 
97
# unfortunately $(top_srcdir) has no meaning in configure.
 
98
# However there are other variables, like CC, which are often used in
 
99
# configure, and could therefore not use this "fixed" $ac_aux_dir.
 
100
#
 
101
# Another solution, used here, is to always expand $ac_aux_dir to an
 
102
# absolute PATH.  The drawback is that using absolute paths prevent a
 
103
# configured tree to be moved without reconfiguration.
 
104
 
 
105
AC_DEFUN([AM_AUX_DIR_EXPAND],
 
106
[dnl Rely on autoconf to set up CDPATH properly.
 
107
AC_PREREQ([2.50])dnl
 
108
# expand $ac_aux_dir to an absolute path
 
109
am_aux_dir=`cd $ac_aux_dir && pwd`
 
110
])
 
111
 
 
112
# Do all the work for Automake.                             -*- Autoconf -*-
 
113
 
 
114
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
115
#
 
116
# This file is free software; the Free Software Foundation
 
117
# gives unlimited permission to copy and/or distribute it,
 
118
# with or without modifications, as long as this notice is preserved.
 
119
 
 
120
# This macro actually does too much.  Some checks are only needed if
 
121
# your package does certain things.  But this isn't really a big deal.
 
122
 
 
123
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
124
m4_define([AC_PROG_CC],
 
125
m4_defn([AC_PROG_CC])
 
126
[_AM_PROG_CC_C_O
 
127
])
 
128
 
 
129
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
 
130
# AM_INIT_AUTOMAKE([OPTIONS])
 
131
# -----------------------------------------------
 
132
# The call with PACKAGE and VERSION arguments is the old style
 
133
# call (pre autoconf-2.50), which is being phased out.  PACKAGE
 
134
# and VERSION should now be passed to AC_INIT and removed from
 
135
# the call to AM_INIT_AUTOMAKE.
 
136
# We support both call styles for the transition.  After
 
137
# the next Automake release, Autoconf can make the AC_INIT
 
138
# arguments mandatory, and then we can depend on a new Autoconf
 
139
# release and drop the old call support.
 
140
AC_DEFUN([AM_INIT_AUTOMAKE],
 
141
[AC_PREREQ([2.65])dnl
 
142
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
 
143
dnl the ones we care about.
 
144
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
 
145
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
 
146
AC_REQUIRE([AC_PROG_INSTALL])dnl
 
147
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
148
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
149
  # is not polluted with repeated "-I."
 
150
  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
 
151
  # test to see if srcdir already configured
 
152
  if test -f $srcdir/config.status; then
 
153
    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
 
154
  fi
 
155
fi
 
156
 
 
157
# test whether we have cygpath
 
158
if test -z "$CYGPATH_W"; then
 
159
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
160
    CYGPATH_W='cygpath -w'
 
161
  else
 
162
    CYGPATH_W=echo
 
163
  fi
 
164
fi
 
165
AC_SUBST([CYGPATH_W])
 
166
 
 
167
# Define the identity of the package.
 
168
dnl Distinguish between old-style and new-style calls.
 
169
m4_ifval([$2],
 
170
[AC_DIAGNOSE([obsolete],
 
171
             [$0: two- and three-arguments forms are deprecated.])
 
172
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
173
 AC_SUBST([PACKAGE], [$1])dnl
 
174
 AC_SUBST([VERSION], [$2])],
 
175
[_AM_SET_OPTIONS([$1])dnl
 
176
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
 
177
m4_if(
 
178
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
179
  [ok:ok],,
 
180
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
 
181
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
 
182
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
 
183
 
 
184
_AM_IF_OPTION([no-define],,
 
185
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
186
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
 
187
 
 
188
# Some tools Automake needs.
 
189
AC_REQUIRE([AM_SANITY_CHECK])dnl
 
190
AC_REQUIRE([AC_ARG_PROGRAM])dnl
 
191
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
192
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
193
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
194
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
195
AM_MISSING_PROG([MAKEINFO], [makeinfo])
 
196
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
197
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
 
198
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
199
# For better backward compatibility.  To be removed once Automake 1.9.x
 
200
# dies out for good.  For more background, see:
 
201
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
202
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
203
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
 
204
# We need awk for the "check" target.  The system "awk" is bad on
 
205
# some platforms.
 
206
AC_REQUIRE([AC_PROG_AWK])dnl
 
207
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
 
208
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
 
209
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
 
210
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
211
                             [_AM_PROG_TAR([v7])])])
 
212
_AM_IF_OPTION([no-dependencies],,
 
213
[AC_PROVIDE_IFELSE([AC_PROG_CC],
 
214
                  [_AM_DEPENDENCIES([CC])],
 
215
                  [m4_define([AC_PROG_CC],
 
216
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
 
217
AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
218
                  [_AM_DEPENDENCIES([CXX])],
 
219
                  [m4_define([AC_PROG_CXX],
 
220
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
 
221
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
 
222
                  [_AM_DEPENDENCIES([OBJC])],
 
223
                  [m4_define([AC_PROG_OBJC],
 
224
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
225
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
226
                  [_AM_DEPENDENCIES([OBJCXX])],
 
227
                  [m4_define([AC_PROG_OBJCXX],
 
228
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
 
229
])
 
230
AC_REQUIRE([AM_SILENT_RULES])dnl
 
231
dnl The testsuite driver may need to know about EXEEXT, so add the
 
232
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
233
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
234
AC_CONFIG_COMMANDS_PRE(dnl
 
235
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
236
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
237
 
 
238
# POSIX will say in a future version that running "rm -f" with no argument
 
239
# is OK; and we want to be able to make that assumption in our Makefile
 
240
# recipes.  So use an aggressive probe to check that the usage we want is
 
241
# actually supported "in the wild" to an acceptable degree.
 
242
# See automake bug#10828.
 
243
# To make any issue more visible, cause the running configure to be aborted
 
244
# by default if the 'rm' program in use doesn't match our expectations; the
 
245
# user can still override this though.
 
246
if rm -f && rm -fr && rm -rf; then : OK; else
 
247
  cat >&2 <<'END'
 
248
Oops!
 
249
 
 
250
Your 'rm' program seems unable to run without file operands specified
 
251
on the command line, even when the '-f' option is present.  This is contrary
 
252
to the behaviour of most rm programs out there, and not conforming with
 
253
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
254
 
 
255
Please tell bug-automake@gnu.org about your system, including the value
 
256
of your $PATH and any error possibly output before this message.  This
 
257
can help us improve future automake versions.
 
258
 
 
259
END
 
260
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
261
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
262
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
263
    echo >&2
 
264
  else
 
265
    cat >&2 <<'END'
 
266
Aborting the configuration process, to ensure you take notice of the issue.
 
267
 
 
268
You can download and install GNU coreutils to get an 'rm' implementation
 
269
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
270
 
 
271
If you want to complete the configuration process using your problematic
 
272
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
273
to "yes", and re-run configure.
 
274
 
 
275
END
 
276
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
277
  fi
 
278
fi
 
279
])
 
280
 
 
281
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
282
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
283
dnl mangled by Autoconf and run in a shell conditional statement.
 
284
m4_define([_AC_COMPILER_EXEEXT],
 
285
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
 
286
 
 
287
# When config.status generates a header, we must update the stamp-h file.
 
288
# This file resides in the same directory as the config header
 
289
# that is generated.  The stamp files are numbered to have different names.
 
290
 
 
291
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
 
292
# loop where config.status creates the headers, so we can generate
 
293
# our stamp files there.
 
294
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
 
295
[# Compute $1's index in $config_headers.
 
296
_am_arg=$1
 
297
_am_stamp_count=1
 
298
for _am_header in $config_headers :; do
 
299
  case $_am_header in
 
300
    $_am_arg | $_am_arg:* )
 
301
      break ;;
 
302
    * )
 
303
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
304
  esac
 
305
done
 
306
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
 
307
 
 
308
# Copyright (C) 2001-2013 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
# AM_PROG_INSTALL_SH
 
315
# ------------------
 
316
# Define $install_sh.
 
317
AC_DEFUN([AM_PROG_INSTALL_SH],
 
318
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
319
if test x"${install_sh}" != xset; then
 
320
  case $am_aux_dir in
 
321
  *\ * | *\     *)
 
322
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
323
  *)
 
324
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
325
  esac
 
326
fi
 
327
AC_SUBST([install_sh])])
 
328
 
 
329
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
 
330
#
 
331
# This file is free software; the Free Software Foundation
 
332
# gives unlimited permission to copy and/or distribute it,
 
333
# with or without modifications, as long as this notice is preserved.
 
334
 
 
335
# Check whether the underlying file-system supports filenames
 
336
# with a leading dot.  For instance MS-DOS doesn't.
 
337
AC_DEFUN([AM_SET_LEADING_DOT],
 
338
[rm -rf .tst 2>/dev/null
 
339
mkdir .tst 2>/dev/null
 
340
if test -d .tst; then
 
341
  am__leading_dot=.
 
342
else
 
343
  am__leading_dot=_
 
344
fi
 
345
rmdir .tst 2>/dev/null
 
346
AC_SUBST([am__leading_dot])])
 
347
 
 
348
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
 
349
 
 
350
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
 
351
#
 
352
# This file is free software; the Free Software Foundation
 
353
# gives unlimited permission to copy and/or distribute it,
 
354
# with or without modifications, as long as this notice is preserved.
 
355
 
 
356
# AM_MISSING_PROG(NAME, PROGRAM)
 
357
# ------------------------------
 
358
AC_DEFUN([AM_MISSING_PROG],
 
359
[AC_REQUIRE([AM_MISSING_HAS_RUN])
 
360
$1=${$1-"${am_missing_run}$2"}
 
361
AC_SUBST($1)])
 
362
 
 
363
# AM_MISSING_HAS_RUN
 
364
# ------------------
 
365
# Define MISSING if not defined so far and test if it is modern enough.
 
366
# If it is, set am_missing_run to use it, otherwise, to nothing.
 
367
AC_DEFUN([AM_MISSING_HAS_RUN],
 
368
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
369
AC_REQUIRE_AUX_FILE([missing])dnl
 
370
if test x"${MISSING+set}" != xset; then
 
371
  case $am_aux_dir in
 
372
  *\ * | *\     *)
 
373
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
374
  *)
 
375
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
376
  esac
 
377
fi
 
378
# Use eval to expand $SHELL
 
379
if eval "$MISSING --is-lightweight"; then
 
380
  am_missing_run="$MISSING "
 
381
else
 
382
  am_missing_run=
 
383
  AC_MSG_WARN(['missing' script is too old or missing])
 
384
fi
 
385
])
 
386
 
 
387
# Helper functions for option handling.                     -*- Autoconf -*-
 
388
 
 
389
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
390
#
 
391
# This file is free software; the Free Software Foundation
 
392
# gives unlimited permission to copy and/or distribute it,
 
393
# with or without modifications, as long as this notice is preserved.
 
394
 
 
395
# _AM_MANGLE_OPTION(NAME)
 
396
# -----------------------
 
397
AC_DEFUN([_AM_MANGLE_OPTION],
 
398
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
 
399
 
 
400
# _AM_SET_OPTION(NAME)
 
401
# --------------------
 
402
# Set option NAME.  Presently that only means defining a flag for this option.
 
403
AC_DEFUN([_AM_SET_OPTION],
 
404
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
 
405
 
 
406
# _AM_SET_OPTIONS(OPTIONS)
 
407
# ------------------------
 
408
# OPTIONS is a space-separated list of Automake options.
 
409
AC_DEFUN([_AM_SET_OPTIONS],
 
410
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
411
 
 
412
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
 
413
# -------------------------------------------
 
414
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
 
415
AC_DEFUN([_AM_IF_OPTION],
 
416
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
417
 
 
418
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
 
419
 
 
420
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
421
#
 
422
# This file is free software; the Free Software Foundation
 
423
# gives unlimited permission to copy and/or distribute it,
 
424
# with or without modifications, as long as this notice is preserved.
 
425
 
 
426
# AM_SANITY_CHECK
 
427
# ---------------
 
428
AC_DEFUN([AM_SANITY_CHECK],
 
429
[AC_MSG_CHECKING([whether build environment is sane])
 
430
# Reject unsafe characters in $srcdir or the absolute working directory
 
431
# name.  Accept space and tab only in the latter.
 
432
am_lf='
 
433
'
 
434
case `pwd` in
 
435
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
436
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
437
esac
 
438
case $srcdir in
 
439
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
440
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
 
441
esac
 
442
 
 
443
# Do 'set' in a subshell so we don't clobber the current shell's
 
444
# arguments.  Must try -L first in case configure is actually a
 
445
# symlink; some systems play weird games with the mod time of symlinks
 
446
# (eg FreeBSD returns the mod time of the symlink's containing
 
447
# directory).
 
448
if (
 
449
   am_has_slept=no
 
450
   for am_try in 1 2; do
 
451
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
452
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
453
     if test "$[*]" = "X"; then
 
454
        # -L didn't work.
 
455
        set X `ls -t "$srcdir/configure" conftest.file`
 
456
     fi
 
457
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
458
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
459
 
 
460
        # If neither matched, then we have a broken ls.  This can happen
 
461
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
462
        # broken ls alias from the environment.  This has actually
 
463
        # happened.  Such a system could not be considered "sane".
 
464
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
465
  alias in your environment])
 
466
     fi
 
467
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
468
       break
 
469
     fi
 
470
     # Just in case.
 
471
     sleep 1
 
472
     am_has_slept=yes
 
473
   done
 
474
   test "$[2]" = conftest.file
 
475
   )
 
476
then
 
477
   # Ok.
 
478
   :
 
479
else
 
480
   AC_MSG_ERROR([newly created file is older than distributed files!
 
481
Check your system clock])
 
482
fi
 
483
AC_MSG_RESULT([yes])
 
484
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
485
# generated files are strictly newer.
 
486
am_sleep_pid=
 
487
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
488
  ( sleep 1 ) &
 
489
  am_sleep_pid=$!
 
490
fi
 
491
AC_CONFIG_COMMANDS_PRE(
 
492
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
493
   if test -n "$am_sleep_pid"; then
 
494
     # Hide warnings about reused PIDs.
 
495
     wait $am_sleep_pid 2>/dev/null
 
496
   fi
 
497
   AC_MSG_RESULT([done])])
 
498
rm -f conftest.file
 
499
])
 
500
 
 
501
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
502
#
 
503
# This file is free software; the Free Software Foundation
 
504
# gives unlimited permission to copy and/or distribute it,
 
505
# with or without modifications, as long as this notice is preserved.
 
506
 
 
507
# AM_SILENT_RULES([DEFAULT])
 
508
# --------------------------
 
509
# Enable less verbose build rules; with the default set to DEFAULT
 
510
# ("yes" being less verbose, "no" or empty being verbose).
 
511
AC_DEFUN([AM_SILENT_RULES],
 
512
[AC_ARG_ENABLE([silent-rules], [dnl
 
513
AS_HELP_STRING(
 
514
  [--enable-silent-rules],
 
515
  [less verbose build output (undo: "make V=1")])
 
516
AS_HELP_STRING(
 
517
  [--disable-silent-rules],
 
518
  [verbose build output (undo: "make V=0")])dnl
 
519
])
 
520
case $enable_silent_rules in @%:@ (((
 
521
  yes) AM_DEFAULT_VERBOSITY=0;;
 
522
   no) AM_DEFAULT_VERBOSITY=1;;
 
523
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
524
esac
 
525
dnl
 
526
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
527
dnl do not support nested variable expansions.
 
528
dnl See automake bug#9928 and bug#10237.
 
529
am_make=${MAKE-make}
 
530
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
531
   [am_cv_make_support_nested_variables],
 
532
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
533
BAR0=false
 
534
BAR1=true
 
535
V=1
 
536
am__doit:
 
537
        @$(TRUE)
 
538
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
539
  am_cv_make_support_nested_variables=yes
 
540
else
 
541
  am_cv_make_support_nested_variables=no
 
542
fi])
 
543
if test $am_cv_make_support_nested_variables = yes; then
 
544
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
545
  AM_V='$(V)'
 
546
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
547
else
 
548
  AM_V=$AM_DEFAULT_VERBOSITY
 
549
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
550
fi
 
551
AC_SUBST([AM_V])dnl
 
552
AM_SUBST_NOTMAKE([AM_V])dnl
 
553
AC_SUBST([AM_DEFAULT_V])dnl
 
554
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
555
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
556
AM_BACKSLASH='\'
 
557
AC_SUBST([AM_BACKSLASH])dnl
 
558
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
559
])
 
560
 
 
561
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
562
#
 
563
# This file is free software; the Free Software Foundation
 
564
# gives unlimited permission to copy and/or distribute it,
 
565
# with or without modifications, as long as this notice is preserved.
 
566
 
 
567
# AM_PROG_INSTALL_STRIP
 
568
# ---------------------
 
569
# One issue with vendor 'install' (even GNU) is that you can't
 
570
# specify the program used to strip binaries.  This is especially
 
571
# annoying in cross-compiling environments, where the build's strip
 
572
# is unlikely to handle the host's binaries.
 
573
# Fortunately install-sh will honor a STRIPPROG variable, so we
 
574
# always use install-sh in "make install-strip", and initialize
 
575
# STRIPPROG with the value of the STRIP variable (set by the user).
 
576
AC_DEFUN([AM_PROG_INSTALL_STRIP],
 
577
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
578
# Installed binaries are usually stripped using 'strip' when the user
 
579
# run "make install-strip".  However 'strip' might not be the right
 
580
# tool to use in cross-compilation environments, therefore Automake
 
581
# will honor the 'STRIP' environment variable to overrule this program.
 
582
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
 
583
if test "$cross_compiling" != no; then
 
584
  AC_CHECK_TOOL([STRIP], [strip], :)
 
585
fi
 
586
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
587
AC_SUBST([INSTALL_STRIP_PROGRAM])])
 
588
 
 
589
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
 
590
#
 
591
# This file is free software; the Free Software Foundation
 
592
# gives unlimited permission to copy and/or distribute it,
 
593
# with or without modifications, as long as this notice is preserved.
 
594
 
 
595
# _AM_SUBST_NOTMAKE(VARIABLE)
 
596
# ---------------------------
 
597
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
 
598
# This macro is traced by Automake.
 
599
AC_DEFUN([_AM_SUBST_NOTMAKE])
 
600
 
 
601
# AM_SUBST_NOTMAKE(VARIABLE)
 
602
# --------------------------
 
603
# Public sister of _AM_SUBST_NOTMAKE.
 
604
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
605
 
 
606
# Check how to create a tarball.                            -*- Autoconf -*-
 
607
 
 
608
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
 
609
#
 
610
# This file is free software; the Free Software Foundation
 
611
# gives unlimited permission to copy and/or distribute it,
 
612
# with or without modifications, as long as this notice is preserved.
 
613
 
 
614
# _AM_PROG_TAR(FORMAT)
 
615
# --------------------
 
616
# Check how to create a tarball in format FORMAT.
 
617
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
 
618
#
 
619
# Substitute a variable $(am__tar) that is a command
 
620
# writing to stdout a FORMAT-tarball containing the directory
 
621
# $tardir.
 
622
#     tardir=directory && $(am__tar) > result.tar
 
623
#
 
624
# Substitute a variable $(am__untar) that extract such
 
625
# a tarball read from stdin.
 
626
#     $(am__untar) < result.tar
 
627
#
 
628
AC_DEFUN([_AM_PROG_TAR],
 
629
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
630
# in the wild :-(  We should find a proper way to deprecate it ...
 
631
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
632
 
 
633
# We'll loop over all known methods to create a tar archive until one works.
 
634
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
635
 
 
636
m4_if([$1], [v7],
 
637
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
638
 
 
639
  [m4_case([$1],
 
640
    [ustar],
 
641
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
642
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
643
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
644
      # and bug#13588).
 
645
      am_max_uid=2097151 # 2^21 - 1
 
646
      am_max_gid=$am_max_uid
 
647
      # The $UID and $GID variables are not portable, so we need to resort
 
648
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
649
      # below are definitely unexpected, so allow the users to see them
 
650
      # (that is, avoid stderr redirection).
 
651
      am_uid=`id -u || echo unknown`
 
652
      am_gid=`id -g || echo unknown`
 
653
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
654
      if test $am_uid -le $am_max_uid; then
 
655
         AC_MSG_RESULT([yes])
 
656
      else
 
657
         AC_MSG_RESULT([no])
 
658
         _am_tools=none
 
659
      fi
 
660
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
661
      if test $am_gid -le $am_max_gid; then
 
662
         AC_MSG_RESULT([yes])
 
663
      else
 
664
        AC_MSG_RESULT([no])
 
665
        _am_tools=none
 
666
      fi],
 
667
 
 
668
  [pax],
 
669
    [],
 
670
 
 
671
  [m4_fatal([Unknown tar format])])
 
672
 
 
673
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
674
 
 
675
  # Go ahead even if we have the value already cached.  We do so because we
 
676
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
677
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
678
 
 
679
  for _am_tool in $_am_tools; do
 
680
    case $_am_tool in
 
681
    gnutar)
 
682
      for _am_tar in tar gnutar gtar; do
 
683
        AM_RUN_LOG([$_am_tar --version]) && break
 
684
      done
 
685
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
686
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
687
      am__untar="$_am_tar -xf -"
 
688
      ;;
 
689
    plaintar)
 
690
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
691
      # ustar tarball either.
 
692
      (tar --version) >/dev/null 2>&1 && continue
 
693
      am__tar='tar chf - "$$tardir"'
 
694
      am__tar_='tar chf - "$tardir"'
 
695
      am__untar='tar xf -'
 
696
      ;;
 
697
    pax)
 
698
      am__tar='pax -L -x $1 -w "$$tardir"'
 
699
      am__tar_='pax -L -x $1 -w "$tardir"'
 
700
      am__untar='pax -r'
 
701
      ;;
 
702
    cpio)
 
703
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
704
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
705
      am__untar='cpio -i -H $1 -d'
 
706
      ;;
 
707
    none)
 
708
      am__tar=false
 
709
      am__tar_=false
 
710
      am__untar=false
 
711
      ;;
 
712
    esac
 
713
 
 
714
    # If the value was cached, stop now.  We just wanted to have am__tar
 
715
    # and am__untar set.
 
716
    test -n "${am_cv_prog_tar_$1}" && break
 
717
 
 
718
    # tar/untar a dummy directory, and stop if the command works.
 
719
    rm -rf conftest.dir
 
720
    mkdir conftest.dir
 
721
    echo GrepMe > conftest.dir/file
 
722
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
723
    rm -rf conftest.dir
 
724
    if test -s conftest.tar; then
 
725
      AM_RUN_LOG([$am__untar <conftest.tar])
 
726
      AM_RUN_LOG([cat conftest.dir/file])
 
727
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
728
    fi
 
729
  done
 
730
  rm -rf conftest.dir
 
731
 
 
732
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
733
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
734
 
 
735
AC_SUBST([am__tar])
 
736
AC_SUBST([am__untar])
 
737
]) # _AM_PROG_TAR
 
738