~ubuntu-branches/ubuntu/vivid/util-linux/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-08-18 15:43:56 UTC
  • mfrom: (1.6.5) (4.1.16 experimental)
  • Revision ID: package-import@ubuntu.com-20140818154356-sqn436j3vndc62qb
Tags: 2.25-8ubuntu1
* Merge with Debian experimental.
  - This is now a non-ancient version. (LP: #1012081)
  - No longer uses /etc/blkid.tab by default, but a file in /run/.
    (LP: #1244595)
  - mkswap wipes fs signatures (LP: #1047666)
  - Fix "reatime" manpage typo (LP: #1047666)
  - wipefs properly cleans up fs signatures (LP: #1059872)
  Remaining Ubuntu changes:
  - Regularly trim SSDs automatically (core-1311-ssd-trimming):
    + Add debian/fstrim-all: Script to detect which mounted partitions
      need/support trimming, and call fstrim(8) on all of them.
      Install into /usr/sbin/.
    + Add debian/fstrim-all.8: Manpage for the above.
    + Add debian/fstrim-all.cron: Trivial shell script to call fstrim-all,
      so that admins can easily adjust/disable it. Installed as
      /etc/cron.weekly/fstrim.
  - Upstart support:
    + Add hwclock{-save}.upstart, and install them in debian/rules.
    + Drop initscripts dependency.
    + Drop debian/hwclock.rules and hwclock.default.
  - Add mountall-options.patch, see patch header.
  - uuid-runtime.postinst: Due to the way the uuidd account is created, it
    will get a uid/gid allocation for userns use. This isn't needed and is a
    waste of uid/gid so always clear uuidd from subuid/subgid.
* Drop /lib/init/fstab parsing fallback in mount. Patch does not apply at
  all any more, is specific to mountall (and thus should not be relied
  upon), and not very useful; all init systems, schroot, debootstrap etc.
  mount /sys, /proc/ and friends by themselves already.

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.
 
1
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
 
2
 
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
 
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
13
13
 
 
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [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.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
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
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
23
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
23
24
# serial 1 (pkg-config-0.24)
179
180
fi[]dnl
180
181
])# PKG_CHECK_MODULES
181
182
 
182
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
183
 
 
184
# PKG_INSTALLDIR(DIRECTORY)
 
185
# -------------------------
 
186
# Substitutes the variable pkgconfigdir as the location where a module
 
187
# should install pkg-config .pc files. By default the directory is
 
188
# $libdir/pkgconfig, but the default can be changed by passing
 
189
# DIRECTORY. The user can override through the --with-pkgconfigdir
 
190
# parameter.
 
191
AC_DEFUN([PKG_INSTALLDIR],
 
192
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
 
193
m4_pushdef([pkg_description],
 
194
    [pkg-config installation directory @<:@]pkg_default[@:>@])
 
195
AC_ARG_WITH([pkgconfigdir],
 
196
    [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
 
197
    [with_pkgconfigdir=]pkg_default)
 
198
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
 
199
m4_popdef([pkg_default])
 
200
m4_popdef([pkg_description])
 
201
]) dnl PKG_INSTALLDIR
 
202
 
 
203
 
 
204
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
 
205
# -------------------------
 
206
# Substitutes the variable noarch_pkgconfigdir as the location where a
 
207
# module should install arch-independent pkg-config .pc files. By
 
208
# default the directory is $datadir/pkgconfig, but the default can be
 
209
# changed by passing DIRECTORY. The user can override through the
 
210
# --with-noarch-pkgconfigdir parameter.
 
211
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
 
212
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
 
213
m4_pushdef([pkg_description],
 
214
    [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
 
215
AC_ARG_WITH([noarch-pkgconfigdir],
 
216
    [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
 
217
    [with_noarch_pkgconfigdir=]pkg_default)
 
218
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
 
219
m4_popdef([pkg_default])
 
220
m4_popdef([pkg_description])
 
221
]) dnl PKG_NOARCH_INSTALLDIR
 
222
 
 
223
 
 
224
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
225
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
226
# -------------------------------------------
 
227
# Retrieves the value of the pkg-config variable for the given module.
 
228
AC_DEFUN([PKG_CHECK_VAR],
 
229
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
230
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
231
 
 
232
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
233
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
234
 
 
235
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
236
])# PKG_CHECK_VAR
 
237
 
 
238
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
183
239
#
184
240
# This file is free software; the Free Software Foundation
185
241
# gives unlimited permission to copy and/or distribute it,
191
247
# generated from the m4 files accompanying Automake X.Y.
192
248
# (This private macro should not be called outside this file.)
193
249
AC_DEFUN([AM_AUTOMAKE_VERSION],
194
 
[am__api_version='1.11'
 
250
[am__api_version='1.13'
195
251
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
196
252
dnl require some minimum version.  Point them to the right macro.
197
 
m4_if([$1], [1.11.1], [],
 
253
m4_if([$1], [1.13.4], [],
198
254
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
199
255
])
200
256
 
210
266
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
211
267
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
212
268
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
213
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
269
[AM_AUTOMAKE_VERSION([1.13.4])dnl
214
270
m4_ifndef([AC_AUTOCONF_VERSION],
215
271
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
216
272
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
217
273
 
218
274
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
219
275
 
220
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
276
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
221
277
#
222
278
# This file is free software; the Free Software Foundation
223
279
# gives unlimited permission to copy and/or distribute it,
224
280
# with or without modifications, as long as this notice is preserved.
225
281
 
226
282
# 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/../..'.
 
283
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
284
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
229
285
#
230
286
# Of course, Automake must honor this variable whenever it calls a
231
287
# tool from the auxiliary directory.  The problem is that $srcdir (and
244
300
#
245
301
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
246
302
# are both prefixed by $srcdir.  In an in-source build this is usually
247
 
# harmless because $srcdir is `.', but things will broke when you
 
303
# harmless because $srcdir is '.', but things will broke when you
248
304
# start a VPATH build or use an absolute $srcdir.
249
305
#
250
306
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
270
326
 
271
327
# AM_CONDITIONAL                                            -*- Autoconf -*-
272
328
 
273
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
274
 
# Free Software Foundation, Inc.
 
329
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
275
330
#
276
331
# This file is free software; the Free Software Foundation
277
332
# gives unlimited permission to copy and/or distribute it,
278
333
# with or without modifications, as long as this notice is preserved.
279
334
 
280
 
# serial 9
281
 
 
282
335
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
283
336
# -------------------------------------
284
337
# Define a conditional.
285
338
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
 
339
[AC_PREREQ([2.52])dnl
 
340
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
341
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
289
342
AC_SUBST([$1_TRUE])dnl
290
343
AC_SUBST([$1_FALSE])dnl
291
344
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
304
357
Usually this means the macro was only invoked conditionally.]])
305
358
fi])])
306
359
 
307
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
308
 
# Free Software Foundation, Inc.
 
360
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
309
361
#
310
362
# This file is free software; the Free Software Foundation
311
363
# gives unlimited permission to copy and/or distribute it,
312
364
# with or without modifications, as long as this notice is preserved.
313
365
 
314
 
# serial 10
315
366
 
316
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
367
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
317
368
# written in clear, in which case automake, when reading aclocal.m4,
318
369
# will think it sees a *use*, and therefore will trigger all it's
319
370
# C support machinery.  Also note that it means that autoscan, seeing
323
374
# _AM_DEPENDENCIES(NAME)
324
375
# ----------------------
325
376
# See how the compiler implements dependency checking.
326
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
377
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
327
378
# We try a few techniques and use that to set a single cache variable.
328
379
#
329
380
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
336
387
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
337
388
AC_REQUIRE([AM_DEP_TRACK])dnl
338
389
 
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=])
 
390
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
391
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
392
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
393
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
394
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
395
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
396
                    [depcc="$$1"   am_compiler_list=])
345
397
 
346
398
AC_CACHE_CHECK([dependency style of $depcc],
347
399
               [am_cv_$1_dependencies_compiler_type],
349
401
  # We make a subdir and do the tests there.  Otherwise we can end up
350
402
  # making bogus files that we don't know about and never remove.  For
351
403
  # 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'.
 
404
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
405
  # in D".
 
406
  rm -rf conftest.dir
354
407
  mkdir conftest.dir
355
408
  # Copy depcomp to subdir because otherwise we won't find it if we're
356
409
  # using a relative directory.
389
442
    : > sub/conftest.c
390
443
    for i in 1 2 3 4 5 6; do
391
444
      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
 
445
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
446
      # Solaris 10 /bin/sh.
 
447
      echo '/* dummy */' > sub/conftst$i.h
395
448
    done
396
449
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
397
450
 
398
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
451
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
399
452
    # 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
 
453
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
454
    # versions had trouble with output in subdirs.
402
455
    am__obj=sub/conftest.${OBJEXT-o}
403
456
    am__minus_obj="-o $am__obj"
404
457
    case $depmode in
407
460
      test "$am__universal" = false || continue
408
461
      ;;
409
462
    nosideeffect)
410
 
      # after this tag, mechanisms are not by side-effect, so they'll
411
 
      # only be used when explicitly requested
 
463
      # After this tag, mechanisms are not by side-effect, so they'll
 
464
      # only be used when explicitly requested.
412
465
      if test "x$enable_dependency_tracking" = xyes; then
413
466
        continue
414
467
      else
415
468
        break
416
469
      fi
417
470
      ;;
418
 
    msvisualcpp | msvcmsys)
419
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
471
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
472
      # This compiler won't grok '-c -o', but also, the minuso test has
420
473
      # not run yet.  These depmodes are late enough in the game, and
421
474
      # so weak that their functioning should not be impacted.
422
475
      am__obj=conftest.${OBJEXT-o}
464
517
# AM_SET_DEPDIR
465
518
# -------------
466
519
# Choose a directory name for dependency files.
467
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
520
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
468
521
AC_DEFUN([AM_SET_DEPDIR],
469
522
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
470
523
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
474
527
# AM_DEP_TRACK
475
528
# ------------
476
529
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])
 
530
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
531
AS_HELP_STRING(
 
532
  [--enable-dependency-tracking],
 
533
  [do not reject slow dependency extractors])
 
534
AS_HELP_STRING(
 
535
  [--disable-dependency-tracking],
 
536
  [speeds up one-time build])])
480
537
if test "x$enable_dependency_tracking" != xno; then
481
538
  am_depcomp="$ac_aux_dir/depcomp"
482
539
  AMDEPBACKSLASH='\'
 
540
  am__nodep='_no'
483
541
fi
484
542
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
485
543
AC_SUBST([AMDEPBACKSLASH])dnl
486
544
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
545
AC_SUBST([am__nodep])dnl
 
546
_AM_SUBST_NOTMAKE([am__nodep])dnl
487
547
])
488
548
 
489
549
# Generate code to set up dependency tracking.              -*- Autoconf -*-
490
550
 
491
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
492
 
# Free Software Foundation, Inc.
 
551
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
493
552
#
494
553
# This file is free software; the Free Software Foundation
495
554
# gives unlimited permission to copy and/or distribute it,
496
555
# with or without modifications, as long as this notice is preserved.
497
556
 
498
 
#serial 5
499
557
 
500
558
# _AM_OUTPUT_DEPENDENCY_COMMANDS
501
559
# ------------------------------
502
560
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
503
561
[{
504
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
562
  # Older Autoconf quotes --file arguments for eval, but not when files
505
563
  # are listed without --file.  Let's play safe and only enable the eval
506
564
  # if we detect the quoting.
507
565
  case $CONFIG_FILES in
514
572
    # Strip MF so we end up with the name of the file.
515
573
    mf=`echo "$mf" | sed -e 's/:.*$//'`
516
574
    # Check whether this is an Automake generated Makefile or not.
517
 
    # We used to match only the files named `Makefile.in', but
 
575
    # We used to match only the files named 'Makefile.in', but
518
576
    # some people rename them; so instead we look at the file content.
519
577
    # Grep'ing the first line is not enough: some people post-process
520
578
    # each Makefile.in and add a new line on top of each file to say so.
526
584
      continue
527
585
    fi
528
586
    # Extract the definition of DEPDIR, am__include, and am__quote
529
 
    # from the Makefile without running `make'.
 
587
    # from the Makefile without running 'make'.
530
588
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
531
589
    test -z "$DEPDIR" && continue
532
590
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
533
 
    test -z "am__include" && continue
 
591
    test -z "$am__include" && continue
534
592
    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
593
    # Find all dependency output files, they are included files with
538
594
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
539
595
    # simplest approach to changing $(DEPDIR) to its actual value in the
540
596
    # expansion.
541
597
    for file in `sed -n "
542
598
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
543
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
599
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
544
600
      # Make sure the directory exists.
545
601
      test -f "$dirpart/$file" && continue
546
602
      fdir=`AS_DIRNAME(["$file"])`
558
614
# This macro should only be invoked once -- use via AC_REQUIRE.
559
615
#
560
616
# This code is only required when automatic dependency tracking
561
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
617
# is enabled.  FIXME.  This creates each '.P' file that we will
562
618
# need in order to bootstrap the dependency handling code.
563
619
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
564
620
[AC_CONFIG_COMMANDS([depfiles],
568
624
 
569
625
# Do all the work for Automake.                             -*- Autoconf -*-
570
626
 
571
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
572
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
627
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
573
628
#
574
629
# This file is free software; the Free Software Foundation
575
630
# gives unlimited permission to copy and/or distribute it,
576
631
# with or without modifications, as long as this notice is preserved.
577
632
 
578
 
# serial 16
579
 
 
580
633
# This macro actually does too much.  Some checks are only needed if
581
634
# your package does certain things.  But this isn't really a big deal.
582
635
 
592
645
# arguments mandatory, and then we can depend on a new Autoconf
593
646
# release and drop the old call support.
594
647
AC_DEFUN([AM_INIT_AUTOMAKE],
595
 
[AC_PREREQ([2.62])dnl
 
648
[AC_PREREQ([2.65])dnl
596
649
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
597
650
dnl the ones we care about.
598
651
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
621
674
# Define the identity of the package.
622
675
dnl Distinguish between old-style and new-style calls.
623
676
m4_ifval([$2],
624
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
677
[AC_DIAGNOSE([obsolete],
 
678
             [$0: two- and three-arguments forms are deprecated.])
 
679
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
625
680
 AC_SUBST([PACKAGE], [$1])dnl
626
681
 AC_SUBST([VERSION], [$2])],
627
682
[_AM_SET_OPTIONS([$1])dnl
628
683
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
629
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
684
m4_if(
 
685
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
686
  [ok:ok],,
630
687
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
631
688
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
632
689
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
633
690
 
634
691
_AM_IF_OPTION([no-define],,
635
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
636
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
692
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
693
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
637
694
 
638
695
# Some tools Automake needs.
639
696
AC_REQUIRE([AM_SANITY_CHECK])dnl
640
697
AC_REQUIRE([AC_ARG_PROGRAM])dnl
641
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
642
 
AM_MISSING_PROG(AUTOCONF, autoconf)
643
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
644
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
645
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
698
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
699
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
700
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
701
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
702
AM_MISSING_PROG([MAKEINFO], [makeinfo])
646
703
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
647
704
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
648
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
705
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
706
# For better backward compatibility.  To be removed once Automake 1.9.x
 
707
# dies out for good.  For more background, see:
 
708
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
709
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
710
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
649
711
# We need awk for the "check" target.  The system "awk" is bad on
650
712
# some platforms.
651
713
AC_REQUIRE([AC_PROG_AWK])dnl
656
718
                             [_AM_PROG_TAR([v7])])])
657
719
_AM_IF_OPTION([no-dependencies],,
658
720
[AC_PROVIDE_IFELSE([AC_PROG_CC],
659
 
                  [_AM_DEPENDENCIES(CC)],
660
 
                  [define([AC_PROG_CC],
661
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
721
                  [_AM_DEPENDENCIES([CC])],
 
722
                  [m4_define([AC_PROG_CC],
 
723
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
662
724
AC_PROVIDE_IFELSE([AC_PROG_CXX],
663
 
                  [_AM_DEPENDENCIES(CXX)],
664
 
                  [define([AC_PROG_CXX],
665
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
725
                  [_AM_DEPENDENCIES([CXX])],
 
726
                  [m4_define([AC_PROG_CXX],
 
727
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
666
728
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
667
 
                  [_AM_DEPENDENCIES(OBJC)],
668
 
                  [define([AC_PROG_OBJC],
669
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
729
                  [_AM_DEPENDENCIES([OBJC])],
 
730
                  [m4_define([AC_PROG_OBJC],
 
731
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
732
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
733
                  [_AM_DEPENDENCIES([OBJCXX])],
 
734
                  [m4_define([AC_PROG_OBJCXX],
 
735
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
670
736
])
671
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
672
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
673
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
674
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
737
AC_REQUIRE([AM_SILENT_RULES])dnl
 
738
dnl The testsuite driver may need to know about EXEEXT, so add the
 
739
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
740
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
675
741
AC_CONFIG_COMMANDS_PRE(dnl
676
742
[m4_provide_if([_AM_COMPILER_EXEEXT],
677
743
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
678
744
])
679
745
 
680
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
746
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
681
747
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
682
748
dnl mangled by Autoconf and run in a shell conditional statement.
683
749
m4_define([_AC_COMPILER_EXEEXT],
705
771
done
706
772
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
707
773
 
708
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
774
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
709
775
#
710
776
# This file is free software; the Free Software Foundation
711
777
# gives unlimited permission to copy and/or distribute it,
724
790
    install_sh="\${SHELL} $am_aux_dir/install-sh"
725
791
  esac
726
792
fi
727
 
AC_SUBST(install_sh)])
 
793
AC_SUBST([install_sh])])
728
794
 
729
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
795
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
730
796
#
731
797
# This file is free software; the Free Software Foundation
732
798
# gives unlimited permission to copy and/or distribute it,
733
799
# with or without modifications, as long as this notice is preserved.
734
800
 
735
 
# serial 2
736
 
 
737
801
# Check whether the underlying file-system supports filenames
738
802
# with a leading dot.  For instance MS-DOS doesn't.
739
803
AC_DEFUN([AM_SET_LEADING_DOT],
749
813
 
750
814
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
751
815
 
752
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
816
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
753
817
#
754
818
# This file is free software; the Free Software Foundation
755
819
# gives unlimited permission to copy and/or distribute it,
756
820
# with or without modifications, as long as this notice is preserved.
757
821
 
758
 
# serial 4
759
 
 
760
822
# AM_MAKE_INCLUDE()
761
823
# -----------------
762
824
# Check to see how make treats includes.
774
836
_am_result=none
775
837
# First try GNU make style include.
776
838
echo "include confinc" > confmf
777
 
# Ignore all kinds of additional output from `make'.
 
839
# Ignore all kinds of additional output from 'make'.
778
840
case `$am_make -s -f confmf 2> /dev/null` in #(
779
841
*the\ am__doit\ target*)
780
842
  am__include=include
799
861
rm -f confinc confmf
800
862
])
801
863
 
802
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
803
 
# Free Software Foundation, Inc.
 
864
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
804
865
#
805
866
# This file is free software; the Free Software Foundation
806
867
# gives unlimited permission to copy and/or distribute it,
807
868
# with or without modifications, as long as this notice is preserved.
808
869
 
809
 
# serial 6
810
 
 
811
870
# AM_PROG_CC_C_O
812
871
# --------------
813
872
# Like AC_PROG_CC_C_O, but changed for automake.
836
895
 
837
896
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
838
897
 
839
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
840
 
# Free Software Foundation, Inc.
 
898
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
841
899
#
842
900
# This file is free software; the Free Software Foundation
843
901
# gives unlimited permission to copy and/or distribute it,
844
902
# with or without modifications, as long as this notice is preserved.
845
903
 
846
 
# serial 6
847
 
 
848
904
# AM_MISSING_PROG(NAME, PROGRAM)
849
905
# ------------------------------
850
906
AC_DEFUN([AM_MISSING_PROG],
852
908
$1=${$1-"${am_missing_run}$2"}
853
909
AC_SUBST($1)])
854
910
 
855
 
 
856
911
# AM_MISSING_HAS_RUN
857
912
# ------------------
858
 
# Define MISSING if not defined so far and test if it supports --run.
859
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
913
# Define MISSING if not defined so far and test if it is modern enough.
 
914
# If it is, set am_missing_run to use it, otherwise, to nothing.
860
915
AC_DEFUN([AM_MISSING_HAS_RUN],
861
916
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
862
917
AC_REQUIRE_AUX_FILE([missing])dnl
869
924
  esac
870
925
fi
871
926
# Use eval to expand $SHELL
872
 
if eval "$MISSING --run true"; then
873
 
  am_missing_run="$MISSING --run "
 
927
if eval "$MISSING --is-lightweight"; then
 
928
  am_missing_run="$MISSING "
874
929
else
875
930
  am_missing_run=
876
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
931
  AC_MSG_WARN(['missing' script is too old or missing])
877
932
fi
878
933
])
879
934
 
880
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
881
 
#
882
 
# This file is free software; the Free Software Foundation
883
 
# gives unlimited permission to copy and/or distribute it,
884
 
# with or without modifications, as long as this notice is preserved.
885
 
 
886
 
# AM_PROG_MKDIR_P
887
 
# ---------------
888
 
# Check for `mkdir -p'.
889
 
AC_DEFUN([AM_PROG_MKDIR_P],
890
 
[AC_PREREQ([2.60])dnl
891
 
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
892
 
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
893
 
dnl while keeping a definition of mkdir_p for backward compatibility.
894
 
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
895
 
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
896
 
dnl Makefile.ins that do not define MKDIR_P, so we do our own
897
 
dnl adjustment using top_builddir (which is defined more often than
898
 
dnl MKDIR_P).
899
 
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
900
 
case $mkdir_p in
901
 
  [[\\/$]]* | ?:[[\\/]]*) ;;
902
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
903
 
esac
904
 
])
905
 
 
906
935
# Helper functions for option handling.                     -*- Autoconf -*-
907
936
 
908
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
937
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
909
938
#
910
939
# This file is free software; the Free Software Foundation
911
940
# gives unlimited permission to copy and/or distribute it,
912
941
# with or without modifications, as long as this notice is preserved.
913
942
 
914
 
# serial 4
915
 
 
916
943
# _AM_MANGLE_OPTION(NAME)
917
944
# -----------------------
918
945
AC_DEFUN([_AM_MANGLE_OPTION],
919
946
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
920
947
 
921
948
# _AM_SET_OPTION(NAME)
922
 
# ------------------------------
 
949
# --------------------
923
950
# Set option NAME.  Presently that only means defining a flag for this option.
924
951
AC_DEFUN([_AM_SET_OPTION],
925
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
952
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
926
953
 
927
954
# _AM_SET_OPTIONS(OPTIONS)
928
 
# ----------------------------------
 
955
# ------------------------
929
956
# OPTIONS is a space-separated list of Automake options.
930
957
AC_DEFUN([_AM_SET_OPTIONS],
931
958
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
936
963
AC_DEFUN([_AM_IF_OPTION],
937
964
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
938
965
 
 
966
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
967
#
 
968
# This file is free software; the Free Software Foundation
 
969
# gives unlimited permission to copy and/or distribute it,
 
970
# with or without modifications, as long as this notice is preserved.
 
971
 
 
972
 
 
973
# AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
974
# ---------------------------------------------------------------------------
 
975
# Adds support for distributing Python modules and packages.  To
 
976
# install modules, copy them to $(pythondir), using the python_PYTHON
 
977
# automake variable.  To install a package with the same name as the
 
978
# automake package, install to $(pkgpythondir), or use the
 
979
# pkgpython_PYTHON automake variable.
 
980
#
 
981
# The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
 
982
# locations to install python extension modules (shared libraries).
 
983
# Another macro is required to find the appropriate flags to compile
 
984
# extension modules.
 
985
#
 
986
# If your package is configured with a different prefix to python,
 
987
# users will have to add the install directory to the PYTHONPATH
 
988
# environment variable, or create a .pth file (see the python
 
989
# documentation for details).
 
990
#
 
991
# If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
 
992
# cause an error if the version of python installed on the system
 
993
# doesn't meet the requirement.  MINIMUM-VERSION should consist of
 
994
# numbers and dots only.
 
995
AC_DEFUN([AM_PATH_PYTHON],
 
996
 [
 
997
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
998
  dnl supported. (2.0 was released on October 16, 2000).
 
999
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
 
1000
[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
 
1001
 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
 
1002
 
 
1003
  AC_ARG_VAR([PYTHON], [the Python interpreter])
 
1004
 
 
1005
  m4_if([$1],[],[
 
1006
    dnl No version check is needed.
 
1007
    # Find any Python interpreter.
 
1008
    if test -z "$PYTHON"; then
 
1009
      AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
 
1010
    fi
 
1011
    am_display_PYTHON=python
 
1012
  ], [
 
1013
    dnl A version check is needed.
 
1014
    if test -n "$PYTHON"; then
 
1015
      # If the user set $PYTHON, use it and don't search something else.
 
1016
      AC_MSG_CHECKING([whether $PYTHON version is >= $1])
 
1017
      AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
 
1018
                              [AC_MSG_RESULT([yes])],
 
1019
                              [AC_MSG_RESULT([no])
 
1020
                               AC_MSG_ERROR([Python interpreter is too old])])
 
1021
      am_display_PYTHON=$PYTHON
 
1022
    else
 
1023
      # Otherwise, try each interpreter until we find one that satisfies
 
1024
      # VERSION.
 
1025
      AC_CACHE_CHECK([for a Python interpreter with version >= $1],
 
1026
        [am_cv_pathless_PYTHON],[
 
1027
        for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
 
1028
          test "$am_cv_pathless_PYTHON" = none && break
 
1029
          AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
 
1030
        done])
 
1031
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
1032
      if test "$am_cv_pathless_PYTHON" = none; then
 
1033
        PYTHON=:
 
1034
      else
 
1035
        AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
 
1036
      fi
 
1037
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
1038
    fi
 
1039
  ])
 
1040
 
 
1041
  if test "$PYTHON" = :; then
 
1042
  dnl Run any user-specified action, or abort.
 
1043
    m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
 
1044
  else
 
1045
 
 
1046
  dnl Query Python for its version number.  Getting [:3] seems to be
 
1047
  dnl the best way to do this; it's what "site.py" does in the standard
 
1048
  dnl library.
 
1049
 
 
1050
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
 
1051
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
 
1052
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
 
1053
 
 
1054
  dnl Use the values of $prefix and $exec_prefix for the corresponding
 
1055
  dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX.  These are made
 
1056
  dnl distinct variables so they can be overridden if need be.  However,
 
1057
  dnl general consensus is that you shouldn't need this ability.
 
1058
 
 
1059
  AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
 
1060
  AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
 
1061
 
 
1062
  dnl At times (like when building shared libraries) you may want
 
1063
  dnl to know which OS platform Python thinks this is.
 
1064
 
 
1065
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
 
1066
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
 
1067
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
 
1068
 
 
1069
  # Just factor out some code duplication.
 
1070
  am_python_setup_sysconfig="\
 
1071
import sys
 
1072
# Prefer sysconfig over distutils.sysconfig, for better compatibility
 
1073
# with python 3.x.  See automake bug#10227.
 
1074
try:
 
1075
    import sysconfig
 
1076
except ImportError:
 
1077
    can_use_sysconfig = 0
 
1078
else:
 
1079
    can_use_sysconfig = 1
 
1080
# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
 
1081
# <https://github.com/pypa/virtualenv/issues/118>
 
1082
try:
 
1083
    from platform import python_implementation
 
1084
    if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
 
1085
        can_use_sysconfig = 0
 
1086
except ImportError:
 
1087
    pass"
 
1088
 
 
1089
  dnl Set up 4 directories:
 
1090
 
 
1091
  dnl pythondir -- where to install python scripts.  This is the
 
1092
  dnl   site-packages directory, not the python standard library
 
1093
  dnl   directory like in previous automake betas.  This behavior
 
1094
  dnl   is more consistent with lispdir.m4 for example.
 
1095
  dnl Query distutils for this directory.
 
1096
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
 
1097
    [am_cv_python_pythondir],
 
1098
    [if test "x$prefix" = xNONE
 
1099
     then
 
1100
       am_py_prefix=$ac_default_prefix
 
1101
     else
 
1102
       am_py_prefix=$prefix
 
1103
     fi
 
1104
     am_cv_python_pythondir=`$PYTHON -c "
 
1105
$am_python_setup_sysconfig
 
1106
if can_use_sysconfig:
 
1107
    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
 
1108
else:
 
1109
    from distutils import sysconfig
 
1110
    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
 
1111
sys.stdout.write(sitedir)"`
 
1112
     case $am_cv_python_pythondir in
 
1113
     $am_py_prefix*)
 
1114
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
1115
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
1116
       ;;
 
1117
     *)
 
1118
       case $am_py_prefix in
 
1119
         /usr|/System*) ;;
 
1120
         *)
 
1121
          am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1122
          ;;
 
1123
       esac
 
1124
       ;;
 
1125
     esac
 
1126
    ])
 
1127
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
 
1128
 
 
1129
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
 
1130
  dnl   PYTHON_SITE_PACKAGE in previous betas, but this naming is
 
1131
  dnl   more consistent with the rest of automake.
 
1132
 
 
1133
  AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
 
1134
 
 
1135
  dnl pyexecdir -- directory for installing python extension modules
 
1136
  dnl   (shared libraries)
 
1137
  dnl Query distutils for this directory.
 
1138
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
 
1139
    [am_cv_python_pyexecdir],
 
1140
    [if test "x$exec_prefix" = xNONE
 
1141
     then
 
1142
       am_py_exec_prefix=$am_py_prefix
 
1143
     else
 
1144
       am_py_exec_prefix=$exec_prefix
 
1145
     fi
 
1146
     am_cv_python_pyexecdir=`$PYTHON -c "
 
1147
$am_python_setup_sysconfig
 
1148
if can_use_sysconfig:
 
1149
    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
 
1150
else:
 
1151
    from distutils import sysconfig
 
1152
    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
 
1153
sys.stdout.write(sitedir)"`
 
1154
     case $am_cv_python_pyexecdir in
 
1155
     $am_py_exec_prefix*)
 
1156
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
1157
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
1158
       ;;
 
1159
     *)
 
1160
       case $am_py_exec_prefix in
 
1161
         /usr|/System*) ;;
 
1162
         *)
 
1163
           am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
 
1164
           ;;
 
1165
       esac
 
1166
       ;;
 
1167
     esac
 
1168
    ])
 
1169
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
 
1170
 
 
1171
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
 
1172
 
 
1173
  AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
 
1174
 
 
1175
  dnl Run any user-specified action.
 
1176
  $2
 
1177
  fi
 
1178
 
 
1179
])
 
1180
 
 
1181
 
 
1182
# AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
 
1183
# ---------------------------------------------------------------------------
 
1184
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
 
1185
# Run ACTION-IF-FALSE otherwise.
 
1186
# This test uses sys.hexversion instead of the string equivalent (first
 
1187
# word of sys.version), in order to cope with versions such as 2.2c1.
 
1188
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
 
1189
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
 
1190
 [prog="import sys
 
1191
# split strings by '.' and convert to numeric.  Append some zeros
 
1192
# because we need at least 4 digits for the hex conversion.
 
1193
# map returns an iterator in Python 3.0 and a list in 2.x
 
1194
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
 
1195
minverhex = 0
 
1196
# xrange is not present in Python 3.0 and range returns an iterator
 
1197
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
 
1198
sys.exit(sys.hexversion < minverhex)"
 
1199
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
 
1200
 
 
1201
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
1202
#
 
1203
# This file is free software; the Free Software Foundation
 
1204
# gives unlimited permission to copy and/or distribute it,
 
1205
# with or without modifications, as long as this notice is preserved.
 
1206
 
 
1207
# AM_RUN_LOG(COMMAND)
 
1208
# -------------------
 
1209
# Run COMMAND, save the exit status in ac_status, and log it.
 
1210
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
1211
AC_DEFUN([AM_RUN_LOG],
 
1212
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
1213
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
1214
   ac_status=$?
 
1215
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
1216
   (exit $ac_status); }])
 
1217
 
939
1218
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
940
1219
 
941
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
942
 
# Free Software Foundation, Inc.
 
1220
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
943
1221
#
944
1222
# This file is free software; the Free Software Foundation
945
1223
# gives unlimited permission to copy and/or distribute it,
946
1224
# with or without modifications, as long as this notice is preserved.
947
1225
 
948
 
# serial 5
949
 
 
950
1226
# AM_SANITY_CHECK
951
1227
# ---------------
952
1228
AC_DEFUN([AM_SANITY_CHECK],
953
1229
[AC_MSG_CHECKING([whether build environment is sane])
954
 
# Just in case
955
 
sleep 1
956
 
echo timestamp > conftest.file
957
1230
# Reject unsafe characters in $srcdir or the absolute working directory
958
1231
# name.  Accept space and tab only in the latter.
959
1232
am_lf='
964
1237
esac
965
1238
case $srcdir in
966
1239
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
967
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1240
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
968
1241
esac
969
1242
 
970
 
# Do `set' in a subshell so we don't clobber the current shell's
 
1243
# Do 'set' in a subshell so we don't clobber the current shell's
971
1244
# arguments.  Must try -L first in case configure is actually a
972
1245
# symlink; some systems play weird games with the mod time of symlinks
973
1246
# (eg FreeBSD returns the mod time of the symlink's containing
974
1247
# directory).
975
1248
if (
976
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
977
 
   if test "$[*]" = "X"; then
978
 
      # -L didn't work.
979
 
      set X `ls -t "$srcdir/configure" conftest.file`
980
 
   fi
981
 
   rm -f conftest.file
982
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
983
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
984
 
 
985
 
      # If neither matched, then we have a broken ls.  This can happen
986
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
987
 
      # broken ls alias from the environment.  This has actually
988
 
      # happened.  Such a system could not be considered "sane".
989
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
990
 
alias in your environment])
991
 
   fi
992
 
 
 
1249
   am_has_slept=no
 
1250
   for am_try in 1 2; do
 
1251
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
1252
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
1253
     if test "$[*]" = "X"; then
 
1254
        # -L didn't work.
 
1255
        set X `ls -t "$srcdir/configure" conftest.file`
 
1256
     fi
 
1257
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
1258
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
1259
 
 
1260
        # If neither matched, then we have a broken ls.  This can happen
 
1261
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1262
        # broken ls alias from the environment.  This has actually
 
1263
        # happened.  Such a system could not be considered "sane".
 
1264
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
1265
  alias in your environment])
 
1266
     fi
 
1267
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
1268
       break
 
1269
     fi
 
1270
     # Just in case.
 
1271
     sleep 1
 
1272
     am_has_slept=yes
 
1273
   done
993
1274
   test "$[2]" = conftest.file
994
1275
   )
995
1276
then
999
1280
   AC_MSG_ERROR([newly created file is older than distributed files!
1000
1281
Check your system clock])
1001
1282
fi
1002
 
AC_MSG_RESULT(yes)])
 
1283
AC_MSG_RESULT([yes])
 
1284
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
1285
# generated files are strictly newer.
 
1286
am_sleep_pid=
 
1287
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
1288
  ( sleep 1 ) &
 
1289
  am_sleep_pid=$!
 
1290
fi
 
1291
AC_CONFIG_COMMANDS_PRE(
 
1292
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
1293
   if test -n "$am_sleep_pid"; then
 
1294
     # Hide warnings about reused PIDs.
 
1295
     wait $am_sleep_pid 2>/dev/null
 
1296
   fi
 
1297
   AC_MSG_RESULT([done])])
 
1298
rm -f conftest.file
 
1299
])
1003
1300
 
1004
 
# Copyright (C) 2009  Free Software Foundation, Inc.
 
1301
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1005
1302
#
1006
1303
# This file is free software; the Free Software Foundation
1007
1304
# gives unlimited permission to copy and/or distribute it,
1008
1305
# with or without modifications, as long as this notice is preserved.
1009
1306
 
1010
 
# serial 1
1011
 
 
1012
1307
# AM_SILENT_RULES([DEFAULT])
1013
1308
# --------------------------
1014
1309
# Enable less verbose build rules; with the default set to DEFAULT
1015
 
# (`yes' being less verbose, `no' or empty being verbose).
 
1310
# ("yes" being less verbose, "no" or empty being verbose).
1016
1311
AC_DEFUN([AM_SILENT_RULES],
1017
 
[AC_ARG_ENABLE([silent-rules],
1018
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1019
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
1020
 
case $enable_silent_rules in
1021
 
yes) AM_DEFAULT_VERBOSITY=0;;
1022
 
no)  AM_DEFAULT_VERBOSITY=1;;
1023
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
1312
[AC_ARG_ENABLE([silent-rules], [dnl
 
1313
AS_HELP_STRING(
 
1314
  [--enable-silent-rules],
 
1315
  [less verbose build output (undo: "make V=1")])
 
1316
AS_HELP_STRING(
 
1317
  [--disable-silent-rules],
 
1318
  [verbose build output (undo: "make V=0")])dnl
 
1319
])
 
1320
case $enable_silent_rules in @%:@ (((
 
1321
  yes) AM_DEFAULT_VERBOSITY=0;;
 
1322
   no) AM_DEFAULT_VERBOSITY=1;;
 
1323
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1024
1324
esac
 
1325
dnl
 
1326
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
1327
dnl do not support nested variable expansions.
 
1328
dnl See automake bug#9928 and bug#10237.
 
1329
am_make=${MAKE-make}
 
1330
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
1331
   [am_cv_make_support_nested_variables],
 
1332
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
1333
BAR0=false
 
1334
BAR1=true
 
1335
V=1
 
1336
am__doit:
 
1337
        @$(TRUE)
 
1338
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
1339
  am_cv_make_support_nested_variables=yes
 
1340
else
 
1341
  am_cv_make_support_nested_variables=no
 
1342
fi])
 
1343
if test $am_cv_make_support_nested_variables = yes; then
 
1344
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
1345
  AM_V='$(V)'
 
1346
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
1347
else
 
1348
  AM_V=$AM_DEFAULT_VERBOSITY
 
1349
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
1350
fi
 
1351
AC_SUBST([AM_V])dnl
 
1352
AM_SUBST_NOTMAKE([AM_V])dnl
 
1353
AC_SUBST([AM_DEFAULT_V])dnl
 
1354
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1025
1355
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1026
1356
AM_BACKSLASH='\'
1027
1357
AC_SUBST([AM_BACKSLASH])dnl
1028
1358
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1029
1359
])
1030
1360
 
1031
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
1361
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1032
1362
#
1033
1363
# This file is free software; the Free Software Foundation
1034
1364
# gives unlimited permission to copy and/or distribute it,
1036
1366
 
1037
1367
# AM_PROG_INSTALL_STRIP
1038
1368
# ---------------------
1039
 
# One issue with vendor `install' (even GNU) is that you can't
 
1369
# One issue with vendor 'install' (even GNU) is that you can't
1040
1370
# specify the program used to strip binaries.  This is especially
1041
1371
# annoying in cross-compiling environments, where the build's strip
1042
1372
# is unlikely to handle the host's binaries.
1043
1373
# Fortunately install-sh will honor a STRIPPROG variable, so we
1044
 
# always use install-sh in `make install-strip', and initialize
 
1374
# always use install-sh in "make install-strip", and initialize
1045
1375
# STRIPPROG with the value of the STRIP variable (set by the user).
1046
1376
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1047
1377
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1048
 
# Installed binaries are usually stripped using `strip' when the user
1049
 
# run `make install-strip'.  However `strip' might not be the right
 
1378
# Installed binaries are usually stripped using 'strip' when the user
 
1379
# run "make install-strip".  However 'strip' might not be the right
1050
1380
# tool to use in cross-compilation environments, therefore Automake
1051
 
# will honor the `STRIP' environment variable to overrule this program.
1052
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
1381
# will honor the 'STRIP' environment variable to overrule this program.
 
1382
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1053
1383
if test "$cross_compiling" != no; then
1054
1384
  AC_CHECK_TOOL([STRIP], [strip], :)
1055
1385
fi
1056
1386
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1057
1387
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1058
1388
 
1059
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
1389
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1060
1390
#
1061
1391
# This file is free software; the Free Software Foundation
1062
1392
# gives unlimited permission to copy and/or distribute it,
1063
1393
# with or without modifications, as long as this notice is preserved.
1064
1394
 
1065
 
# serial 2
1066
 
 
1067
1395
# _AM_SUBST_NOTMAKE(VARIABLE)
1068
1396
# ---------------------------
1069
1397
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1071
1399
AC_DEFUN([_AM_SUBST_NOTMAKE])
1072
1400
 
1073
1401
# AM_SUBST_NOTMAKE(VARIABLE)
1074
 
# ---------------------------
 
1402
# --------------------------
1075
1403
# Public sister of _AM_SUBST_NOTMAKE.
1076
1404
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1077
1405
 
1078
1406
# Check how to create a tarball.                            -*- Autoconf -*-
1079
1407
 
1080
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1408
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1081
1409
#
1082
1410
# This file is free software; the Free Software Foundation
1083
1411
# gives unlimited permission to copy and/or distribute it,
1084
1412
# with or without modifications, as long as this notice is preserved.
1085
1413
 
1086
 
# serial 2
1087
 
 
1088
1414
# _AM_PROG_TAR(FORMAT)
1089
1415
# --------------------
1090
1416
# Check how to create a tarball in format FORMAT.
1091
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1417
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1092
1418
#
1093
1419
# Substitute a variable $(am__tar) that is a command
1094
1420
# writing to stdout a FORMAT-tarball containing the directory
1098
1424
# Substitute a variable $(am__untar) that extract such
1099
1425
# a tarball read from stdin.
1100
1426
#     $(am__untar) < result.tar
 
1427
#
1101
1428
AC_DEFUN([_AM_PROG_TAR],
1102
 
[# Always define AMTAR for backward compatibility.
1103
 
AM_MISSING_PROG([AMTAR], [tar])
 
1429
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1430
# in the wild :-(  We should find a proper way to deprecate it ...
 
1431
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1432
 
 
1433
# We'll loop over all known methods to create a tar archive until one works.
 
1434
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1435
 
1104
1436
m4_if([$1], [v7],
1105
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1106
 
     [m4_case([$1], [ustar],, [pax],,
1107
 
              [m4_fatal([Unknown tar format])])
1108
 
AC_MSG_CHECKING([how to create a $1 tar archive])
1109
 
# Loop over all known methods to create a tar archive until one works.
1110
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1111
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1112
 
# Do not fold the above two line into one, because Tru64 sh and
1113
 
# Solaris sh will not grok spaces in the rhs of `-'.
1114
 
for _am_tool in $_am_tools
1115
 
do
1116
 
  case $_am_tool in
1117
 
  gnutar)
1118
 
    for _am_tar in tar gnutar gtar;
1119
 
    do
1120
 
      AM_RUN_LOG([$_am_tar --version]) && break
1121
 
    done
1122
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1123
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1124
 
    am__untar="$_am_tar -xf -"
1125
 
    ;;
1126
 
  plaintar)
1127
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1128
 
    # ustar tarball either.
1129
 
    (tar --version) >/dev/null 2>&1 && continue
1130
 
    am__tar='tar chf - "$$tardir"'
1131
 
    am__tar_='tar chf - "$tardir"'
1132
 
    am__untar='tar xf -'
1133
 
    ;;
1134
 
  pax)
1135
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1136
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1137
 
    am__untar='pax -r'
1138
 
    ;;
1139
 
  cpio)
1140
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1141
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1142
 
    am__untar='cpio -i -H $1 -d'
1143
 
    ;;
1144
 
  none)
1145
 
    am__tar=false
1146
 
    am__tar_=false
1147
 
    am__untar=false
1148
 
    ;;
1149
 
  esac
1150
 
 
1151
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1152
 
  # and am__untar set.
1153
 
  test -n "${am_cv_prog_tar_$1}" && break
1154
 
 
1155
 
  # tar/untar a dummy directory, and stop if the command works
1156
 
  rm -rf conftest.dir
1157
 
  mkdir conftest.dir
1158
 
  echo GrepMe > conftest.dir/file
1159
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1160
 
  rm -rf conftest.dir
1161
 
  if test -s conftest.tar; then
1162
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1163
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1164
 
  fi
1165
 
done
1166
 
rm -rf conftest.dir
1167
 
 
1168
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1169
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1437
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1438
 
 
1439
  [m4_case([$1],
 
1440
    [ustar],
 
1441
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1442
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1443
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1444
      # and bug#13588).
 
1445
      am_max_uid=2097151 # 2^21 - 1
 
1446
      am_max_gid=$am_max_uid
 
1447
      # The $UID and $GID variables are not portable, so we need to resort
 
1448
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1449
      # below are definitely unexpected, so allow the users to see them
 
1450
      # (that is, avoid stderr redirection).
 
1451
      am_uid=`id -u || echo unknown`
 
1452
      am_gid=`id -g || echo unknown`
 
1453
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1454
      if test $am_uid -le $am_max_uid; then
 
1455
         AC_MSG_RESULT([yes])
 
1456
      else
 
1457
         AC_MSG_RESULT([no])
 
1458
         _am_tools=none
 
1459
      fi
 
1460
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1461
      if test $am_gid -le $am_max_gid; then
 
1462
         AC_MSG_RESULT([yes])
 
1463
      else
 
1464
        AC_MSG_RESULT([no])
 
1465
        _am_tools=none
 
1466
      fi],
 
1467
 
 
1468
  [pax],
 
1469
    [],
 
1470
 
 
1471
  [m4_fatal([Unknown tar format])])
 
1472
 
 
1473
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1474
 
 
1475
  # Go ahead even if we have the value already cached.  We do so because we
 
1476
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1477
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1478
 
 
1479
  for _am_tool in $_am_tools; do
 
1480
    case $_am_tool in
 
1481
    gnutar)
 
1482
      for _am_tar in tar gnutar gtar; do
 
1483
        AM_RUN_LOG([$_am_tar --version]) && break
 
1484
      done
 
1485
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1486
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1487
      am__untar="$_am_tar -xf -"
 
1488
      ;;
 
1489
    plaintar)
 
1490
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1491
      # ustar tarball either.
 
1492
      (tar --version) >/dev/null 2>&1 && continue
 
1493
      am__tar='tar chf - "$$tardir"'
 
1494
      am__tar_='tar chf - "$tardir"'
 
1495
      am__untar='tar xf -'
 
1496
      ;;
 
1497
    pax)
 
1498
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1499
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1500
      am__untar='pax -r'
 
1501
      ;;
 
1502
    cpio)
 
1503
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1504
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1505
      am__untar='cpio -i -H $1 -d'
 
1506
      ;;
 
1507
    none)
 
1508
      am__tar=false
 
1509
      am__tar_=false
 
1510
      am__untar=false
 
1511
      ;;
 
1512
    esac
 
1513
 
 
1514
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1515
    # and am__untar set.
 
1516
    test -n "${am_cv_prog_tar_$1}" && break
 
1517
 
 
1518
    # tar/untar a dummy directory, and stop if the command works.
 
1519
    rm -rf conftest.dir
 
1520
    mkdir conftest.dir
 
1521
    echo GrepMe > conftest.dir/file
 
1522
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1523
    rm -rf conftest.dir
 
1524
    if test -s conftest.tar; then
 
1525
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1526
      AM_RUN_LOG([cat conftest.dir/file])
 
1527
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1528
    fi
 
1529
  done
 
1530
  rm -rf conftest.dir
 
1531
 
 
1532
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1533
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1534
 
1170
1535
AC_SUBST([am__tar])
1171
1536
AC_SUBST([am__untar])
1172
1537
]) # _AM_PROG_TAR
1173
1538
 
 
1539
m4_include([m4/compiler.m4])
1174
1540
m4_include([m4/gettext.m4])
1175
1541
m4_include([m4/gtk-doc.m4])
1176
1542
m4_include([m4/iconv.m4])
 
1543
m4_include([m4/intlmacosx.m4])
1177
1544
m4_include([m4/lib-ld.m4])
1178
1545
m4_include([m4/lib-link.m4])
1179
1546
m4_include([m4/lib-prefix.m4])
1186
1553
m4_include([m4/po.m4])
1187
1554
m4_include([m4/progtest.m4])
1188
1555
m4_include([m4/tls.m4])
 
1556
m4_include([m4/ul.m4])