~ubuntu-branches/ubuntu/vivid/trousers/vivid

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2014-06-29 17:45:25 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140629174525-3bumeiu42woiem8l
Tags: 0.3.13-1
* Imported Upstream version 0.3.13
* Refreshed quilt patches
* Include utmp.h, should fix FTBFS on Hurd (Closes: #729179)
* Try to workaround systemd/udev names when reloading rules (Closes: #739485)
* Update symbols
* Bump Standards Version to 3.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.13.4 -*- Autoconf -*-
2
2
 
3
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
3
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
4
4
 
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
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
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
1325
1326
  rm -rf conftest*
1326
1327
  ;;
1327
1328
 
1328
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
1329
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1329
1330
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1330
1331
  # Find out which ABI we are using.
1331
1332
  echo 'int i;' > conftest.$ac_ext
1339
1340
          x86_64-*linux*)
1340
1341
            LD="${LD-ld} -m elf_i386"
1341
1342
            ;;
1342
 
          ppc64-*linux*|powerpc64-*linux*)
 
1343
          powerpc64le-*linux*)
 
1344
            LD="${LD-ld} -m elf32lppclinux"
 
1345
            ;;
 
1346
          powerpc64-*linux*)
1343
1347
            LD="${LD-ld} -m elf32ppclinux"
1344
1348
            ;;
1345
1349
          s390x-*linux*)
1358
1362
          x86_64-*linux*)
1359
1363
            LD="${LD-ld} -m elf_x86_64"
1360
1364
            ;;
1361
 
          ppc*-*linux*|powerpc*-*linux*)
 
1365
          powerpcle-*linux*)
 
1366
            LD="${LD-ld} -m elf64lppc"
 
1367
            ;;
 
1368
          powerpc-*linux*)
1362
1369
            LD="${LD-ld} -m elf64ppc"
1363
1370
            ;;
1364
1371
          s390*-*linux*|s390*-*tpf*)
8810
8817
m4_popdef([pkg_description])
8811
8818
]) dnl PKG_NOARCH_INSTALLDIR
8812
8819
 
8813
 
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 
8820
 
 
8821
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
 
8822
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
 
8823
# -------------------------------------------
 
8824
# Retrieves the value of the pkg-config variable for the given module.
 
8825
AC_DEFUN([PKG_CHECK_VAR],
 
8826
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
 
8827
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
 
8828
 
 
8829
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
 
8830
AS_VAR_COPY([$1], [pkg_cv_][$1])
 
8831
 
 
8832
AS_VAR_IF([$1], [""], [$5], [$4])dnl
 
8833
])# PKG_CHECK_VAR
 
8834
 
 
8835
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
8814
8836
#
8815
8837
# This file is free software; the Free Software Foundation
8816
8838
# gives unlimited permission to copy and/or distribute it,
8817
8839
# with or without modifications, as long as this notice is preserved.
8818
8840
 
8819
 
# serial 8
8820
 
 
8821
8841
# AM_AUTOMAKE_VERSION(VERSION)
8822
8842
# ----------------------------
8823
8843
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8824
8844
# generated from the m4 files accompanying Automake X.Y.
8825
8845
# (This private macro should not be called outside this file.)
8826
8846
AC_DEFUN([AM_AUTOMAKE_VERSION],
8827
 
[am__api_version='1.12'
 
8847
[am__api_version='1.13'
8828
8848
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8829
8849
dnl require some minimum version.  Point them to the right macro.
8830
 
m4_if([$1], [1.12.2], [],
 
8850
m4_if([$1], [1.13.4], [],
8831
8851
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8832
8852
])
8833
8853
 
8843
8863
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8844
8864
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8845
8865
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8846
 
[AM_AUTOMAKE_VERSION([1.12.2])dnl
 
8866
[AM_AUTOMAKE_VERSION([1.13.4])dnl
8847
8867
m4_ifndef([AC_AUTOCONF_VERSION],
8848
8868
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8849
8869
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8850
8870
 
8851
8871
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8852
8872
 
8853
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
8873
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
8854
8874
#
8855
8875
# This file is free software; the Free Software Foundation
8856
8876
# gives unlimited permission to copy and/or distribute it,
8857
8877
# with or without modifications, as long as this notice is preserved.
8858
8878
 
8859
 
# serial 2
8860
 
 
8861
8879
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8862
8880
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
8863
8881
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
8905
8923
 
8906
8924
# AM_CONDITIONAL                                            -*- Autoconf -*-
8907
8925
 
8908
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
8926
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
8909
8927
#
8910
8928
# This file is free software; the Free Software Foundation
8911
8929
# gives unlimited permission to copy and/or distribute it,
8912
8930
# with or without modifications, as long as this notice is preserved.
8913
8931
 
8914
 
# serial 10
8915
 
 
8916
8932
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8917
8933
# -------------------------------------
8918
8934
# Define a conditional.
8938
8954
Usually this means the macro was only invoked conditionally.]])
8939
8955
fi])])
8940
8956
 
8941
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
8957
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
8942
8958
#
8943
8959
# This file is free software; the Free Software Foundation
8944
8960
# gives unlimited permission to copy and/or distribute it,
8945
8961
# with or without modifications, as long as this notice is preserved.
8946
8962
 
8947
 
# serial 17
8948
8963
 
8949
8964
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
8950
8965
# written in clear, in which case automake, when reading aclocal.m4,
9130
9145
 
9131
9146
# Generate code to set up dependency tracking.              -*- Autoconf -*-
9132
9147
 
9133
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
9148
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
9134
9149
#
9135
9150
# This file is free software; the Free Software Foundation
9136
9151
# gives unlimited permission to copy and/or distribute it,
9137
9152
# with or without modifications, as long as this notice is preserved.
9138
9153
 
9139
 
# serial 6
9140
9154
 
9141
9155
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9142
9156
# ------------------------------
9143
9157
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9144
9158
[{
9145
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
9159
  # Older Autoconf quotes --file arguments for eval, but not when files
9146
9160
  # are listed without --file.  Let's play safe and only enable the eval
9147
9161
  # if we detect the quoting.
9148
9162
  case $CONFIG_FILES in
9171
9185
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9172
9186
    test -z "$DEPDIR" && continue
9173
9187
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9174
 
    test -z "am__include" && continue
 
9188
    test -z "$am__include" && continue
9175
9189
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9176
9190
    # Find all dependency output files, they are included files with
9177
9191
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9207
9221
 
9208
9222
# Do all the work for Automake.                             -*- Autoconf -*-
9209
9223
 
9210
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9224
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9211
9225
#
9212
9226
# This file is free software; the Free Software Foundation
9213
9227
# gives unlimited permission to copy and/or distribute it,
9214
9228
# with or without modifications, as long as this notice is preserved.
9215
9229
 
9216
 
# serial 19
9217
 
 
9218
9230
# This macro actually does too much.  Some checks are only needed if
9219
9231
# your package does certain things.  But this isn't really a big deal.
9220
9232
 
9230
9242
# arguments mandatory, and then we can depend on a new Autoconf
9231
9243
# release and drop the old call support.
9232
9244
AC_DEFUN([AM_INIT_AUTOMAKE],
9233
 
[AC_PREREQ([2.62])dnl
 
9245
[AC_PREREQ([2.65])dnl
9234
9246
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9235
9247
dnl the ones we care about.
9236
9248
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9260
9272
dnl Distinguish between old-style and new-style calls.
9261
9273
m4_ifval([$2],
9262
9274
[AC_DIAGNOSE([obsolete],
9263
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
9264
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
9275
             [$0: two- and three-arguments forms are deprecated.])
9265
9276
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9266
9277
 AC_SUBST([PACKAGE], [$1])dnl
9267
9278
 AC_SUBST([VERSION], [$2])],
9315
9326
                  [_AM_DEPENDENCIES([OBJC])],
9316
9327
                  [m4_define([AC_PROG_OBJC],
9317
9328
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9318
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
9319
 
dnl but we still cater to Autoconf 2.62.
9320
 
m4_ifdef([AC_PROG_OBJCXX],
9321
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
9329
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9322
9330
                  [_AM_DEPENDENCIES([OBJCXX])],
9323
9331
                  [m4_define([AC_PROG_OBJCXX],
9324
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
9332
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
9325
9333
])
9326
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9327
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
9328
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9329
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
9334
AC_REQUIRE([AM_SILENT_RULES])dnl
 
9335
dnl The testsuite driver may need to know about EXEEXT, so add the
 
9336
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
9337
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
9330
9338
AC_CONFIG_COMMANDS_PRE(dnl
9331
9339
[m4_provide_if([_AM_COMPILER_EXEEXT],
9332
9340
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9360
9368
done
9361
9369
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9362
9370
 
9363
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9371
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9364
9372
#
9365
9373
# This file is free software; the Free Software Foundation
9366
9374
# gives unlimited permission to copy and/or distribute it,
9367
9375
# with or without modifications, as long as this notice is preserved.
9368
9376
 
9369
 
# serial 8
9370
 
 
9371
9377
# AM_PROG_INSTALL_SH
9372
9378
# ------------------
9373
9379
# Define $install_sh.
9383
9389
fi
9384
9390
AC_SUBST([install_sh])])
9385
9391
 
9386
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
9392
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
9387
9393
#
9388
9394
# This file is free software; the Free Software Foundation
9389
9395
# gives unlimited permission to copy and/or distribute it,
9390
9396
# with or without modifications, as long as this notice is preserved.
9391
9397
 
9392
 
# serial 2
9393
 
 
9394
9398
# Check whether the underlying file-system supports filenames
9395
9399
# with a leading dot.  For instance MS-DOS doesn't.
9396
9400
AC_DEFUN([AM_SET_LEADING_DOT],
9406
9410
 
9407
9411
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
9408
9412
 
9409
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9413
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9410
9414
#
9411
9415
# This file is free software; the Free Software Foundation
9412
9416
# gives unlimited permission to copy and/or distribute it,
9413
9417
# with or without modifications, as long as this notice is preserved.
9414
9418
 
9415
 
# serial 5
9416
 
 
9417
9419
# AM_MAKE_INCLUDE()
9418
9420
# -----------------
9419
9421
# Check to see how make treats includes.
9458
9460
 
9459
9461
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9460
9462
 
9461
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
9463
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
9462
9464
#
9463
9465
# This file is free software; the Free Software Foundation
9464
9466
# gives unlimited permission to copy and/or distribute it,
9465
9467
# with or without modifications, as long as this notice is preserved.
9466
9468
 
9467
 
# serial 7
9468
 
 
9469
9469
# AM_MISSING_PROG(NAME, PROGRAM)
9470
9470
# ------------------------------
9471
9471
AC_DEFUN([AM_MISSING_PROG],
9473
9473
$1=${$1-"${am_missing_run}$2"}
9474
9474
AC_SUBST($1)])
9475
9475
 
9476
 
 
9477
9476
# AM_MISSING_HAS_RUN
9478
9477
# ------------------
9479
 
# Define MISSING if not defined so far and test if it supports --run.
9480
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
9478
# Define MISSING if not defined so far and test if it is modern enough.
 
9479
# If it is, set am_missing_run to use it, otherwise, to nothing.
9481
9480
AC_DEFUN([AM_MISSING_HAS_RUN],
9482
9481
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9483
9482
AC_REQUIRE_AUX_FILE([missing])dnl
9490
9489
  esac
9491
9490
fi
9492
9491
# Use eval to expand $SHELL
9493
 
if eval "$MISSING --run true"; then
9494
 
  am_missing_run="$MISSING --run "
 
9492
if eval "$MISSING --is-lightweight"; then
 
9493
  am_missing_run="$MISSING "
9495
9494
else
9496
9495
  am_missing_run=
9497
9496
  AC_MSG_WARN(['missing' script is too old or missing])
9500
9499
 
9501
9500
# Helper functions for option handling.                     -*- Autoconf -*-
9502
9501
 
9503
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
9502
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
9504
9503
#
9505
9504
# This file is free software; the Free Software Foundation
9506
9505
# gives unlimited permission to copy and/or distribute it,
9507
9506
# with or without modifications, as long as this notice is preserved.
9508
9507
 
9509
 
# serial 6
9510
 
 
9511
9508
# _AM_MANGLE_OPTION(NAME)
9512
9509
# -----------------------
9513
9510
AC_DEFUN([_AM_MANGLE_OPTION],
9533
9530
 
9534
9531
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
9535
9532
 
9536
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
9533
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
9537
9534
#
9538
9535
# This file is free software; the Free Software Foundation
9539
9536
# gives unlimited permission to copy and/or distribute it,
9540
9537
# with or without modifications, as long as this notice is preserved.
9541
9538
 
9542
 
# serial 9
9543
 
 
9544
9539
# AM_SANITY_CHECK
9545
9540
# ---------------
9546
9541
AC_DEFUN([AM_SANITY_CHECK],
9616
9611
rm -f conftest.file
9617
9612
])
9618
9613
 
9619
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
9620
 
#
9621
 
# This file is free software; the Free Software Foundation
9622
 
# gives unlimited permission to copy and/or distribute it,
9623
 
# with or without modifications, as long as this notice is preserved.
9624
 
 
9625
 
# serial 2
 
9614
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
 
9615
#
 
9616
# This file is free software; the Free Software Foundation
 
9617
# gives unlimited permission to copy and/or distribute it,
 
9618
# with or without modifications, as long as this notice is preserved.
 
9619
 
 
9620
# AM_SILENT_RULES([DEFAULT])
 
9621
# --------------------------
 
9622
# Enable less verbose build rules; with the default set to DEFAULT
 
9623
# ("yes" being less verbose, "no" or empty being verbose).
 
9624
AC_DEFUN([AM_SILENT_RULES],
 
9625
[AC_ARG_ENABLE([silent-rules], [dnl
 
9626
AS_HELP_STRING(
 
9627
  [--enable-silent-rules],
 
9628
  [less verbose build output (undo: "make V=1")])
 
9629
AS_HELP_STRING(
 
9630
  [--disable-silent-rules],
 
9631
  [verbose build output (undo: "make V=0")])dnl
 
9632
])
 
9633
case $enable_silent_rules in @%:@ (((
 
9634
  yes) AM_DEFAULT_VERBOSITY=0;;
 
9635
   no) AM_DEFAULT_VERBOSITY=1;;
 
9636
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
9637
esac
 
9638
dnl
 
9639
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
9640
dnl do not support nested variable expansions.
 
9641
dnl See automake bug#9928 and bug#10237.
 
9642
am_make=${MAKE-make}
 
9643
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
9644
   [am_cv_make_support_nested_variables],
 
9645
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
9646
BAR0=false
 
9647
BAR1=true
 
9648
V=1
 
9649
am__doit:
 
9650
        @$(TRUE)
 
9651
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
9652
  am_cv_make_support_nested_variables=yes
 
9653
else
 
9654
  am_cv_make_support_nested_variables=no
 
9655
fi])
 
9656
if test $am_cv_make_support_nested_variables = yes; then
 
9657
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
9658
  AM_V='$(V)'
 
9659
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
9660
else
 
9661
  AM_V=$AM_DEFAULT_VERBOSITY
 
9662
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
9663
fi
 
9664
AC_SUBST([AM_V])dnl
 
9665
AM_SUBST_NOTMAKE([AM_V])dnl
 
9666
AC_SUBST([AM_DEFAULT_V])dnl
 
9667
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
 
9668
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
 
9669
AM_BACKSLASH='\'
 
9670
AC_SUBST([AM_BACKSLASH])dnl
 
9671
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
 
9672
])
 
9673
 
 
9674
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
9675
#
 
9676
# This file is free software; the Free Software Foundation
 
9677
# gives unlimited permission to copy and/or distribute it,
 
9678
# with or without modifications, as long as this notice is preserved.
9626
9679
 
9627
9680
# AM_PROG_INSTALL_STRIP
9628
9681
# ---------------------
9646
9699
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9647
9700
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9648
9701
 
9649
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
9702
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
9650
9703
#
9651
9704
# This file is free software; the Free Software Foundation
9652
9705
# gives unlimited permission to copy and/or distribute it,
9653
9706
# with or without modifications, as long as this notice is preserved.
9654
9707
 
9655
 
# serial 3
9656
 
 
9657
9708
# _AM_SUBST_NOTMAKE(VARIABLE)
9658
9709
# ---------------------------
9659
9710
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9667
9718
 
9668
9719
# Check how to create a tarball.                            -*- Autoconf -*-
9669
9720
 
9670
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
9721
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
9671
9722
#
9672
9723
# This file is free software; the Free Software Foundation
9673
9724
# gives unlimited permission to copy and/or distribute it,
9674
9725
# with or without modifications, as long as this notice is preserved.
9675
9726
 
9676
 
# serial 3
9677
 
 
9678
9727
# _AM_PROG_TAR(FORMAT)
9679
9728
# --------------------
9680
9729
# Check how to create a tarball in format FORMAT.
9688
9737
# Substitute a variable $(am__untar) that extract such
9689
9738
# a tarball read from stdin.
9690
9739
#     $(am__untar) < result.tar
 
9740
#
9691
9741
AC_DEFUN([_AM_PROG_TAR],
9692
9742
[# Always define AMTAR for backward compatibility.  Yes, it's still used
9693
9743
# in the wild :-(  We should find a proper way to deprecate it ...
9694
9744
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
9745
 
 
9746
# We'll loop over all known methods to create a tar archive until one works.
 
9747
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
9748
 
9695
9749
m4_if([$1], [v7],
9696
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9697
 
     [m4_case([$1], [ustar],, [pax],,
9698
 
              [m4_fatal([Unknown tar format])])
9699
 
AC_MSG_CHECKING([how to create a $1 tar archive])
9700
 
# Loop over all known methods to create a tar archive until one works.
9701
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9702
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9703
 
# Do not fold the above two line into one, because Tru64 sh and
9704
 
# Solaris sh will not grok spaces in the rhs of '-'.
9705
 
for _am_tool in $_am_tools
9706
 
do
9707
 
  case $_am_tool in
9708
 
  gnutar)
9709
 
    for _am_tar in tar gnutar gtar;
9710
 
    do
9711
 
      AM_RUN_LOG([$_am_tar --version]) && break
9712
 
    done
9713
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9714
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9715
 
    am__untar="$_am_tar -xf -"
9716
 
    ;;
9717
 
  plaintar)
9718
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
9719
 
    # ustar tarball either.
9720
 
    (tar --version) >/dev/null 2>&1 && continue
9721
 
    am__tar='tar chf - "$$tardir"'
9722
 
    am__tar_='tar chf - "$tardir"'
9723
 
    am__untar='tar xf -'
9724
 
    ;;
9725
 
  pax)
9726
 
    am__tar='pax -L -x $1 -w "$$tardir"'
9727
 
    am__tar_='pax -L -x $1 -w "$tardir"'
9728
 
    am__untar='pax -r'
9729
 
    ;;
9730
 
  cpio)
9731
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9732
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9733
 
    am__untar='cpio -i -H $1 -d'
9734
 
    ;;
9735
 
  none)
9736
 
    am__tar=false
9737
 
    am__tar_=false
9738
 
    am__untar=false
9739
 
    ;;
9740
 
  esac
9741
 
 
9742
 
  # If the value was cached, stop now.  We just wanted to have am__tar
9743
 
  # and am__untar set.
9744
 
  test -n "${am_cv_prog_tar_$1}" && break
9745
 
 
9746
 
  # tar/untar a dummy directory, and stop if the command works
9747
 
  rm -rf conftest.dir
9748
 
  mkdir conftest.dir
9749
 
  echo GrepMe > conftest.dir/file
9750
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9751
 
  rm -rf conftest.dir
9752
 
  if test -s conftest.tar; then
9753
 
    AM_RUN_LOG([$am__untar <conftest.tar])
9754
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9755
 
  fi
9756
 
done
9757
 
rm -rf conftest.dir
9758
 
 
9759
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9760
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
9750
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
9751
 
 
9752
  [m4_case([$1],
 
9753
    [ustar],
 
9754
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
9755
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
9756
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
9757
      # and bug#13588).
 
9758
      am_max_uid=2097151 # 2^21 - 1
 
9759
      am_max_gid=$am_max_uid
 
9760
      # The $UID and $GID variables are not portable, so we need to resort
 
9761
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
9762
      # below are definitely unexpected, so allow the users to see them
 
9763
      # (that is, avoid stderr redirection).
 
9764
      am_uid=`id -u || echo unknown`
 
9765
      am_gid=`id -g || echo unknown`
 
9766
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
9767
      if test $am_uid -le $am_max_uid; then
 
9768
         AC_MSG_RESULT([yes])
 
9769
      else
 
9770
         AC_MSG_RESULT([no])
 
9771
         _am_tools=none
 
9772
      fi
 
9773
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
9774
      if test $am_gid -le $am_max_gid; then
 
9775
         AC_MSG_RESULT([yes])
 
9776
      else
 
9777
        AC_MSG_RESULT([no])
 
9778
        _am_tools=none
 
9779
      fi],
 
9780
 
 
9781
  [pax],
 
9782
    [],
 
9783
 
 
9784
  [m4_fatal([Unknown tar format])])
 
9785
 
 
9786
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
9787
 
 
9788
  # Go ahead even if we have the value already cached.  We do so because we
 
9789
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
9790
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
9791
 
 
9792
  for _am_tool in $_am_tools; do
 
9793
    case $_am_tool in
 
9794
    gnutar)
 
9795
      for _am_tar in tar gnutar gtar; do
 
9796
        AM_RUN_LOG([$_am_tar --version]) && break
 
9797
      done
 
9798
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
9799
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
9800
      am__untar="$_am_tar -xf -"
 
9801
      ;;
 
9802
    plaintar)
 
9803
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
9804
      # ustar tarball either.
 
9805
      (tar --version) >/dev/null 2>&1 && continue
 
9806
      am__tar='tar chf - "$$tardir"'
 
9807
      am__tar_='tar chf - "$tardir"'
 
9808
      am__untar='tar xf -'
 
9809
      ;;
 
9810
    pax)
 
9811
      am__tar='pax -L -x $1 -w "$$tardir"'
 
9812
      am__tar_='pax -L -x $1 -w "$tardir"'
 
9813
      am__untar='pax -r'
 
9814
      ;;
 
9815
    cpio)
 
9816
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
9817
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
9818
      am__untar='cpio -i -H $1 -d'
 
9819
      ;;
 
9820
    none)
 
9821
      am__tar=false
 
9822
      am__tar_=false
 
9823
      am__untar=false
 
9824
      ;;
 
9825
    esac
 
9826
 
 
9827
    # If the value was cached, stop now.  We just wanted to have am__tar
 
9828
    # and am__untar set.
 
9829
    test -n "${am_cv_prog_tar_$1}" && break
 
9830
 
 
9831
    # tar/untar a dummy directory, and stop if the command works.
 
9832
    rm -rf conftest.dir
 
9833
    mkdir conftest.dir
 
9834
    echo GrepMe > conftest.dir/file
 
9835
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
9836
    rm -rf conftest.dir
 
9837
    if test -s conftest.tar; then
 
9838
      AM_RUN_LOG([$am__untar <conftest.tar])
 
9839
      AM_RUN_LOG([cat conftest.dir/file])
 
9840
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
9841
    fi
 
9842
  done
 
9843
  rm -rf conftest.dir
 
9844
 
 
9845
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
9846
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
9847
 
9761
9848
AC_SUBST([am__tar])
9762
9849
AC_SUBST([am__untar])
9763
9850
]) # _AM_PROG_TAR