~ubuntu-branches/ubuntu/trusty/libnih/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Dmitrijs Ledkovs
  • Date: 2013-11-12 13:20:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1081.
  • Revision ID: dmitrijs.ledkovs@canonical.com-20131112132053-27y2f89g6whr5bna
releasing package libnih version 1.0.3-4ubuntu24

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.3 -*- 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.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
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
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
23
24
#
24
25
# This file is free software; the Free Software Foundation
25
26
# gives unlimited permission to copy and/or distribute it,
31
32
# generated from the m4 files accompanying Automake X.Y.
32
33
# (This private macro should not be called outside this file.)
33
34
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.11'
 
35
[am__api_version='1.13'
35
36
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
37
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.11.1], [],
 
38
m4_if([$1], [1.13.3], [],
38
39
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
40
])
40
41
 
50
51
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
52
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
53
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.11.1])dnl
 
54
[AM_AUTOMAKE_VERSION([1.13.3])dnl
54
55
m4_ifndef([AC_AUTOCONF_VERSION],
55
56
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
57
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
58
 
58
59
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
60
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
61
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
61
62
#
62
63
# This file is free software; the Free Software Foundation
63
64
# gives unlimited permission to copy and/or distribute it,
64
65
# with or without modifications, as long as this notice is preserved.
65
66
 
66
67
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
68
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
69
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69
70
#
70
71
# Of course, Automake must honor this variable whenever it calls a
71
72
# tool from the auxiliary directory.  The problem is that $srcdir (and
84
85
#
85
86
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
87
# are both prefixed by $srcdir.  In an in-source build this is usually
87
 
# harmless because $srcdir is `.', but things will broke when you
 
88
# harmless because $srcdir is '.', but things will broke when you
88
89
# start a VPATH build or use an absolute $srcdir.
89
90
#
90
91
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
110
111
 
111
112
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
113
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
 
# Free Software Foundation, Inc.
 
114
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
115
115
#
116
116
# This file is free software; the Free Software Foundation
117
117
# gives unlimited permission to copy and/or distribute it,
118
118
# with or without modifications, as long as this notice is preserved.
119
119
 
120
 
# serial 9
121
 
 
122
120
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
121
# -------------------------------------
124
122
# Define a conditional.
125
123
AC_DEFUN([AM_CONDITIONAL],
126
 
[AC_PREREQ(2.52)dnl
127
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
124
[AC_PREREQ([2.52])dnl
 
125
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
126
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
127
AC_SUBST([$1_TRUE])dnl
130
128
AC_SUBST([$1_FALSE])dnl
131
129
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
144
142
Usually this means the macro was only invoked conditionally.]])
145
143
fi])])
146
144
 
147
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148
 
# Free Software Foundation, Inc.
 
145
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
149
146
#
150
147
# This file is free software; the Free Software Foundation
151
148
# gives unlimited permission to copy and/or distribute it,
152
149
# with or without modifications, as long as this notice is preserved.
153
150
 
154
 
# serial 10
155
151
 
156
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
152
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
157
153
# written in clear, in which case automake, when reading aclocal.m4,
158
154
# will think it sees a *use*, and therefore will trigger all it's
159
155
# C support machinery.  Also note that it means that autoscan, seeing
163
159
# _AM_DEPENDENCIES(NAME)
164
160
# ----------------------
165
161
# See how the compiler implements dependency checking.
166
 
# NAME is "CC", "CXX", "GCJ", or "OBJC".
 
162
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
167
163
# We try a few techniques and use that to set a single cache variable.
168
164
#
169
165
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
176
172
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
177
173
AC_REQUIRE([AM_DEP_TRACK])dnl
178
174
 
179
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
180
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
181
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
183
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
184
 
                   [depcc="$$1"   am_compiler_list=])
 
175
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
176
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
177
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
178
      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
 
179
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
180
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
181
                    [depcc="$$1"   am_compiler_list=])
185
182
 
186
183
AC_CACHE_CHECK([dependency style of $depcc],
187
184
               [am_cv_$1_dependencies_compiler_type],
189
186
  # We make a subdir and do the tests there.  Otherwise we can end up
190
187
  # making bogus files that we don't know about and never remove.  For
191
188
  # instance it was reported that on HP-UX the gcc test will end up
192
 
  # making a dummy file named `D' -- because `-MD' means `put the output
193
 
  # in D'.
 
189
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
190
  # in D".
 
191
  rm -rf conftest.dir
194
192
  mkdir conftest.dir
195
193
  # Copy depcomp to subdir because otherwise we won't find it if we're
196
194
  # using a relative directory.
229
227
    : > sub/conftest.c
230
228
    for i in 1 2 3 4 5 6; do
231
229
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
232
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233
 
      # Solaris 8's {/usr,}/bin/sh.
234
 
      touch sub/conftst$i.h
 
230
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
231
      # Solaris 10 /bin/sh.
 
232
      echo '/* dummy */' > sub/conftst$i.h
235
233
    done
236
234
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237
235
 
238
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
236
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
239
237
    # mode.  It turns out that the SunPro C++ compiler does not properly
240
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
241
 
    # versions had trouble with output in subdirs
 
238
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
239
    # versions had trouble with output in subdirs.
242
240
    am__obj=sub/conftest.${OBJEXT-o}
243
241
    am__minus_obj="-o $am__obj"
244
242
    case $depmode in
247
245
      test "$am__universal" = false || continue
248
246
      ;;
249
247
    nosideeffect)
250
 
      # after this tag, mechanisms are not by side-effect, so they'll
251
 
      # only be used when explicitly requested
 
248
      # After this tag, mechanisms are not by side-effect, so they'll
 
249
      # only be used when explicitly requested.
252
250
      if test "x$enable_dependency_tracking" = xyes; then
253
251
        continue
254
252
      else
255
253
        break
256
254
      fi
257
255
      ;;
258
 
    msvisualcpp | msvcmsys)
259
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
256
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 
257
      # This compiler won't grok '-c -o', but also, the minuso test has
260
258
      # not run yet.  These depmodes are late enough in the game, and
261
259
      # so weak that their functioning should not be impacted.
262
260
      am__obj=conftest.${OBJEXT-o}
304
302
# AM_SET_DEPDIR
305
303
# -------------
306
304
# Choose a directory name for dependency files.
307
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
305
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
308
306
AC_DEFUN([AM_SET_DEPDIR],
309
307
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310
308
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
314
312
# AM_DEP_TRACK
315
313
# ------------
316
314
AC_DEFUN([AM_DEP_TRACK],
317
 
[AC_ARG_ENABLE(dependency-tracking,
318
 
[  --disable-dependency-tracking  speeds up one-time build
319
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
315
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
316
AS_HELP_STRING(
 
317
  [--enable-dependency-tracking],
 
318
  [do not reject slow dependency extractors])
 
319
AS_HELP_STRING(
 
320
  [--disable-dependency-tracking],
 
321
  [speeds up one-time build])])
320
322
if test "x$enable_dependency_tracking" != xno; then
321
323
  am_depcomp="$ac_aux_dir/depcomp"
322
324
  AMDEPBACKSLASH='\'
 
325
  am__nodep='_no'
323
326
fi
324
327
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325
328
AC_SUBST([AMDEPBACKSLASH])dnl
326
329
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
330
AC_SUBST([am__nodep])dnl
 
331
_AM_SUBST_NOTMAKE([am__nodep])dnl
327
332
])
328
333
 
329
334
# Generate code to set up dependency tracking.              -*- Autoconf -*-
330
335
 
331
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332
 
# Free Software Foundation, Inc.
 
336
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
333
337
#
334
338
# This file is free software; the Free Software Foundation
335
339
# gives unlimited permission to copy and/or distribute it,
336
340
# with or without modifications, as long as this notice is preserved.
337
341
 
338
 
#serial 5
339
342
 
340
343
# _AM_OUTPUT_DEPENDENCY_COMMANDS
341
344
# ------------------------------
342
345
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343
346
[{
344
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
347
  # Older Autoconf quotes --file arguments for eval, but not when files
345
348
  # are listed without --file.  Let's play safe and only enable the eval
346
349
  # if we detect the quoting.
347
350
  case $CONFIG_FILES in
354
357
    # Strip MF so we end up with the name of the file.
355
358
    mf=`echo "$mf" | sed -e 's/:.*$//'`
356
359
    # Check whether this is an Automake generated Makefile or not.
357
 
    # We used to match only the files named `Makefile.in', but
 
360
    # We used to match only the files named 'Makefile.in', but
358
361
    # some people rename them; so instead we look at the file content.
359
362
    # Grep'ing the first line is not enough: some people post-process
360
363
    # each Makefile.in and add a new line on top of each file to say so.
366
369
      continue
367
370
    fi
368
371
    # Extract the definition of DEPDIR, am__include, and am__quote
369
 
    # from the Makefile without running `make'.
 
372
    # from the Makefile without running 'make'.
370
373
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371
374
    test -z "$DEPDIR" && continue
372
375
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
373
 
    test -z "am__include" && continue
 
376
    test -z "$am__include" && continue
374
377
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375
 
    # When using ansi2knr, U may be empty or an underscore; expand it
376
 
    U=`sed -n 's/^U = //p' < "$mf"`
377
378
    # Find all dependency output files, they are included files with
378
379
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
379
380
    # simplest approach to changing $(DEPDIR) to its actual value in the
380
381
    # expansion.
381
382
    for file in `sed -n "
382
383
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
384
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
384
385
      # Make sure the directory exists.
385
386
      test -f "$dirpart/$file" && continue
386
387
      fdir=`AS_DIRNAME(["$file"])`
398
399
# This macro should only be invoked once -- use via AC_REQUIRE.
399
400
#
400
401
# This code is only required when automatic dependency tracking
401
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
402
# is enabled.  FIXME.  This creates each '.P' file that we will
402
403
# need in order to bootstrap the dependency handling code.
403
404
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404
405
[AC_CONFIG_COMMANDS([depfiles],
408
409
 
409
410
# Do all the work for Automake.                             -*- Autoconf -*-
410
411
 
411
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
412
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
413
413
#
414
414
# This file is free software; the Free Software Foundation
415
415
# gives unlimited permission to copy and/or distribute it,
416
416
# with or without modifications, as long as this notice is preserved.
417
417
 
418
 
# serial 16
419
 
 
420
418
# This macro actually does too much.  Some checks are only needed if
421
419
# your package does certain things.  But this isn't really a big deal.
422
420
 
432
430
# arguments mandatory, and then we can depend on a new Autoconf
433
431
# release and drop the old call support.
434
432
AC_DEFUN([AM_INIT_AUTOMAKE],
435
 
[AC_PREREQ([2.62])dnl
 
433
[AC_PREREQ([2.65])dnl
436
434
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
437
435
dnl the ones we care about.
438
436
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
461
459
# Define the identity of the package.
462
460
dnl Distinguish between old-style and new-style calls.
463
461
m4_ifval([$2],
464
 
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
 
462
[AC_DIAGNOSE([obsolete],
 
463
             [$0: two- and three-arguments forms are deprecated.])
 
464
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465
465
 AC_SUBST([PACKAGE], [$1])dnl
466
466
 AC_SUBST([VERSION], [$2])],
467
467
[_AM_SET_OPTIONS([$1])dnl
468
468
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
469
m4_if(
 
470
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
471
  [ok:ok],,
470
472
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471
473
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472
474
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
473
475
 
474
476
_AM_IF_OPTION([no-define],,
475
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
477
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
478
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
477
479
 
478
480
# Some tools Automake needs.
479
481
AC_REQUIRE([AM_SANITY_CHECK])dnl
480
482
AC_REQUIRE([AC_ARG_PROGRAM])dnl
481
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482
 
AM_MISSING_PROG(AUTOCONF, autoconf)
483
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
485
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
483
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
484
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
485
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
486
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
487
AM_MISSING_PROG([MAKEINFO], [makeinfo])
486
488
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487
489
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488
 
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
 
490
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
491
# For better backward compatibility.  To be removed once Automake 1.9.x
 
492
# dies out for good.  For more background, see:
 
493
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 
494
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 
495
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
489
496
# We need awk for the "check" target.  The system "awk" is bad on
490
497
# some platforms.
491
498
AC_REQUIRE([AC_PROG_AWK])dnl
496
503
                             [_AM_PROG_TAR([v7])])])
497
504
_AM_IF_OPTION([no-dependencies],,
498
505
[AC_PROVIDE_IFELSE([AC_PROG_CC],
499
 
                  [_AM_DEPENDENCIES(CC)],
500
 
                  [define([AC_PROG_CC],
501
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
506
                  [_AM_DEPENDENCIES([CC])],
 
507
                  [m4_define([AC_PROG_CC],
 
508
                             m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
502
509
AC_PROVIDE_IFELSE([AC_PROG_CXX],
503
 
                  [_AM_DEPENDENCIES(CXX)],
504
 
                  [define([AC_PROG_CXX],
505
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
510
                  [_AM_DEPENDENCIES([CXX])],
 
511
                  [m4_define([AC_PROG_CXX],
 
512
                             m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
506
513
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
507
 
                  [_AM_DEPENDENCIES(OBJC)],
508
 
                  [define([AC_PROG_OBJC],
509
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
514
                  [_AM_DEPENDENCIES([OBJC])],
 
515
                  [m4_define([AC_PROG_OBJC],
 
516
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
 
517
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
518
                  [_AM_DEPENDENCIES([OBJCXX])],
 
519
                  [m4_define([AC_PROG_OBJCXX],
 
520
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
510
521
])
511
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
514
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
522
AC_REQUIRE([AM_SILENT_RULES])dnl
 
523
dnl The testsuite driver may need to know about EXEEXT, so add the
 
524
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
525
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
515
526
AC_CONFIG_COMMANDS_PRE(dnl
516
527
[m4_provide_if([_AM_COMPILER_EXEEXT],
517
528
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
518
529
])
519
530
 
520
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
531
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
521
532
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522
533
dnl mangled by Autoconf and run in a shell conditional statement.
523
534
m4_define([_AC_COMPILER_EXEEXT],
545
556
done
546
557
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547
558
 
548
 
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
 
559
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
549
560
#
550
561
# This file is free software; the Free Software Foundation
551
562
# gives unlimited permission to copy and/or distribute it,
564
575
    install_sh="\${SHELL} $am_aux_dir/install-sh"
565
576
  esac
566
577
fi
567
 
AC_SUBST(install_sh)])
 
578
AC_SUBST([install_sh])])
568
579
 
569
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
580
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
570
581
#
571
582
# This file is free software; the Free Software Foundation
572
583
# gives unlimited permission to copy and/or distribute it,
573
584
# with or without modifications, as long as this notice is preserved.
574
585
 
575
 
# serial 2
576
 
 
577
586
# Check whether the underlying file-system supports filenames
578
587
# with a leading dot.  For instance MS-DOS doesn't.
579
588
AC_DEFUN([AM_SET_LEADING_DOT],
590
599
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
591
600
# From Jim Meyering
592
601
 
593
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
594
 
# Free Software Foundation, Inc.
 
602
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
595
603
#
596
604
# This file is free software; the Free Software Foundation
597
605
# gives unlimited permission to copy and/or distribute it,
598
606
# with or without modifications, as long as this notice is preserved.
599
607
 
600
 
# serial 5
601
 
 
602
608
# AM_MAINTAINER_MODE([DEFAULT-MODE])
603
609
# ----------------------------------
604
610
# Control maintainer-specific portions of Makefiles.
605
 
# Default is to disable them, unless `enable' is passed literally.
606
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
611
# Default is to disable them, unless 'enable' is passed literally.
 
612
# For symmetry, 'disable' may be passed as well.  Anyway, the user
607
613
# can override the default with the --enable/--disable switch.
608
614
AC_DEFUN([AM_MAINTAINER_MODE],
609
615
[m4_case(m4_default([$1], [disable]),
611
617
       [disable], [m4_define([am_maintainer_other], [enable])],
612
618
       [m4_define([am_maintainer_other], [enable])
613
619
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
614
 
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
620
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
615
621
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
616
622
  AC_ARG_ENABLE([maintainer-mode],
617
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
618
 
                          (and sometimes confusing) to the casual installer],
619
 
      [USE_MAINTAINER_MODE=$enableval],
620
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
623
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
624
      am_maintainer_other[ make rules and dependencies not useful
 
625
      (and sometimes confusing) to the casual installer])],
 
626
    [USE_MAINTAINER_MODE=$enableval],
 
627
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
621
628
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
622
629
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
623
630
  MAINT=$MAINTAINER_MODE_TRUE
625
632
]
626
633
)
627
634
 
628
 
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
629
 
 
630
635
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
631
636
 
632
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
637
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
633
638
#
634
639
# This file is free software; the Free Software Foundation
635
640
# gives unlimited permission to copy and/or distribute it,
636
641
# with or without modifications, as long as this notice is preserved.
637
642
 
638
 
# serial 4
639
 
 
640
643
# AM_MAKE_INCLUDE()
641
644
# -----------------
642
645
# Check to see how make treats includes.
654
657
_am_result=none
655
658
# First try GNU make style include.
656
659
echo "include confinc" > confmf
657
 
# Ignore all kinds of additional output from `make'.
 
660
# Ignore all kinds of additional output from 'make'.
658
661
case `$am_make -s -f confmf 2> /dev/null` in #(
659
662
*the\ am__doit\ target*)
660
663
  am__include=include
679
682
rm -f confinc confmf
680
683
])
681
684
 
682
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
683
 
# Free Software Foundation, Inc.
 
685
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
684
686
#
685
687
# This file is free software; the Free Software Foundation
686
688
# gives unlimited permission to copy and/or distribute it,
687
689
# with or without modifications, as long as this notice is preserved.
688
690
 
689
 
# serial 6
690
 
 
691
691
# AM_PROG_CC_C_O
692
692
# --------------
693
693
# Like AC_PROG_CC_C_O, but changed for automake.
716
716
 
717
717
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
718
718
 
719
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
720
 
# Free Software Foundation, Inc.
 
719
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
721
720
#
722
721
# This file is free software; the Free Software Foundation
723
722
# gives unlimited permission to copy and/or distribute it,
724
723
# with or without modifications, as long as this notice is preserved.
725
724
 
726
 
# serial 6
727
 
 
728
725
# AM_MISSING_PROG(NAME, PROGRAM)
729
726
# ------------------------------
730
727
AC_DEFUN([AM_MISSING_PROG],
732
729
$1=${$1-"${am_missing_run}$2"}
733
730
AC_SUBST($1)])
734
731
 
735
 
 
736
732
# AM_MISSING_HAS_RUN
737
733
# ------------------
738
 
# Define MISSING if not defined so far and test if it supports --run.
739
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
734
# Define MISSING if not defined so far and test if it is modern enough.
 
735
# If it is, set am_missing_run to use it, otherwise, to nothing.
740
736
AC_DEFUN([AM_MISSING_HAS_RUN],
741
737
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
742
738
AC_REQUIRE_AUX_FILE([missing])dnl
749
745
  esac
750
746
fi
751
747
# Use eval to expand $SHELL
752
 
if eval "$MISSING --run true"; then
753
 
  am_missing_run="$MISSING --run "
 
748
if eval "$MISSING --is-lightweight"; then
 
749
  am_missing_run="$MISSING "
754
750
else
755
751
  am_missing_run=
756
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
752
  AC_MSG_WARN(['missing' script is too old or missing])
757
753
fi
758
754
])
759
755
 
760
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
756
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
761
757
#
762
758
# This file is free software; the Free Software Foundation
763
759
# gives unlimited permission to copy and/or distribute it,
765
761
 
766
762
# AM_PROG_MKDIR_P
767
763
# ---------------
768
 
# Check for `mkdir -p'.
 
764
# Check for 'mkdir -p'.
769
765
AC_DEFUN([AM_PROG_MKDIR_P],
770
766
[AC_PREREQ([2.60])dnl
771
767
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
 
768
dnl FIXME we are no longer going to remove this! adjust warning
 
769
dnl FIXME message accordingly.
 
770
AC_DIAGNOSE([obsolete],
 
771
[$0: this macro is deprecated, and will soon be removed.
 
772
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
 
773
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
772
774
dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
773
775
dnl while keeping a definition of mkdir_p for backward compatibility.
774
776
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
785
787
 
786
788
# Helper functions for option handling.                     -*- Autoconf -*-
787
789
 
788
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
790
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
789
791
#
790
792
# This file is free software; the Free Software Foundation
791
793
# gives unlimited permission to copy and/or distribute it,
792
794
# with or without modifications, as long as this notice is preserved.
793
795
 
794
 
# serial 4
795
 
 
796
796
# _AM_MANGLE_OPTION(NAME)
797
797
# -----------------------
798
798
AC_DEFUN([_AM_MANGLE_OPTION],
799
799
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
800
800
 
801
801
# _AM_SET_OPTION(NAME)
802
 
# ------------------------------
 
802
# --------------------
803
803
# Set option NAME.  Presently that only means defining a flag for this option.
804
804
AC_DEFUN([_AM_SET_OPTION],
805
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
805
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
806
806
 
807
807
# _AM_SET_OPTIONS(OPTIONS)
808
 
# ----------------------------------
 
808
# ------------------------
809
809
# OPTIONS is a space-separated list of Automake options.
810
810
AC_DEFUN([_AM_SET_OPTIONS],
811
811
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
818
818
 
819
819
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
820
820
 
821
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
822
 
# Free Software Foundation, Inc.
 
821
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
823
822
#
824
823
# This file is free software; the Free Software Foundation
825
824
# gives unlimited permission to copy and/or distribute it,
826
825
# with or without modifications, as long as this notice is preserved.
827
826
 
828
 
# serial 5
829
 
 
830
827
# AM_SANITY_CHECK
831
828
# ---------------
832
829
AC_DEFUN([AM_SANITY_CHECK],
833
830
[AC_MSG_CHECKING([whether build environment is sane])
834
 
# Just in case
835
 
sleep 1
836
 
echo timestamp > conftest.file
837
831
# Reject unsafe characters in $srcdir or the absolute working directory
838
832
# name.  Accept space and tab only in the latter.
839
833
am_lf='
844
838
esac
845
839
case $srcdir in
846
840
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
847
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
841
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
848
842
esac
849
843
 
850
 
# Do `set' in a subshell so we don't clobber the current shell's
 
844
# Do 'set' in a subshell so we don't clobber the current shell's
851
845
# arguments.  Must try -L first in case configure is actually a
852
846
# symlink; some systems play weird games with the mod time of symlinks
853
847
# (eg FreeBSD returns the mod time of the symlink's containing
854
848
# directory).
855
849
if (
856
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
857
 
   if test "$[*]" = "X"; then
858
 
      # -L didn't work.
859
 
      set X `ls -t "$srcdir/configure" conftest.file`
860
 
   fi
861
 
   rm -f conftest.file
862
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
863
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
864
 
 
865
 
      # If neither matched, then we have a broken ls.  This can happen
866
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
867
 
      # broken ls alias from the environment.  This has actually
868
 
      # happened.  Such a system could not be considered "sane".
869
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
870
 
alias in your environment])
871
 
   fi
872
 
 
 
850
   am_has_slept=no
 
851
   for am_try in 1 2; do
 
852
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
853
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
854
     if test "$[*]" = "X"; then
 
855
        # -L didn't work.
 
856
        set X `ls -t "$srcdir/configure" conftest.file`
 
857
     fi
 
858
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
859
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
860
 
 
861
        # If neither matched, then we have a broken ls.  This can happen
 
862
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
863
        # broken ls alias from the environment.  This has actually
 
864
        # happened.  Such a system could not be considered "sane".
 
865
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
866
  alias in your environment])
 
867
     fi
 
868
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
869
       break
 
870
     fi
 
871
     # Just in case.
 
872
     sleep 1
 
873
     am_has_slept=yes
 
874
   done
873
875
   test "$[2]" = conftest.file
874
876
   )
875
877
then
879
881
   AC_MSG_ERROR([newly created file is older than distributed files!
880
882
Check your system clock])
881
883
fi
882
 
AC_MSG_RESULT(yes)])
 
884
AC_MSG_RESULT([yes])
 
885
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
886
# generated files are strictly newer.
 
887
am_sleep_pid=
 
888
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
889
  ( sleep 1 ) &
 
890
  am_sleep_pid=$!
 
891
fi
 
892
AC_CONFIG_COMMANDS_PRE(
 
893
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
894
   if test -n "$am_sleep_pid"; then
 
895
     # Hide warnings about reused PIDs.
 
896
     wait $am_sleep_pid 2>/dev/null
 
897
   fi
 
898
   AC_MSG_RESULT([done])])
 
899
rm -f conftest.file
 
900
])
883
901
 
884
 
# Copyright (C) 2009  Free Software Foundation, Inc.
 
902
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
885
903
#
886
904
# This file is free software; the Free Software Foundation
887
905
# gives unlimited permission to copy and/or distribute it,
888
906
# with or without modifications, as long as this notice is preserved.
889
907
 
890
 
# serial 1
891
 
 
892
908
# AM_SILENT_RULES([DEFAULT])
893
909
# --------------------------
894
910
# Enable less verbose build rules; with the default set to DEFAULT
895
 
# (`yes' being less verbose, `no' or empty being verbose).
 
911
# ("yes" being less verbose, "no" or empty being verbose).
896
912
AC_DEFUN([AM_SILENT_RULES],
897
 
[AC_ARG_ENABLE([silent-rules],
898
 
[  --enable-silent-rules          less verbose build output (undo: `make V=1')
899
 
  --disable-silent-rules         verbose build output (undo: `make V=0')])
900
 
case $enable_silent_rules in
901
 
yes) AM_DEFAULT_VERBOSITY=0;;
902
 
no)  AM_DEFAULT_VERBOSITY=1;;
903
 
*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
 
913
[AC_ARG_ENABLE([silent-rules], [dnl
 
914
AS_HELP_STRING(
 
915
  [--enable-silent-rules],
 
916
  [less verbose build output (undo: "make V=1")])
 
917
AS_HELP_STRING(
 
918
  [--disable-silent-rules],
 
919
  [verbose build output (undo: "make V=0")])dnl
 
920
])
 
921
case $enable_silent_rules in @%:@ (((
 
922
  yes) AM_DEFAULT_VERBOSITY=0;;
 
923
   no) AM_DEFAULT_VERBOSITY=1;;
 
924
    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
904
925
esac
 
926
dnl
 
927
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
 
928
dnl do not support nested variable expansions.
 
929
dnl See automake bug#9928 and bug#10237.
 
930
am_make=${MAKE-make}
 
931
AC_CACHE_CHECK([whether $am_make supports nested variables],
 
932
   [am_cv_make_support_nested_variables],
 
933
   [if AS_ECHO([['TRUE=$(BAR$(V))
 
934
BAR0=false
 
935
BAR1=true
 
936
V=1
 
937
am__doit:
 
938
        @$(TRUE)
 
939
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
 
940
  am_cv_make_support_nested_variables=yes
 
941
else
 
942
  am_cv_make_support_nested_variables=no
 
943
fi])
 
944
if test $am_cv_make_support_nested_variables = yes; then
 
945
  dnl Using '$V' instead of '$(V)' breaks IRIX make.
 
946
  AM_V='$(V)'
 
947
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 
948
else
 
949
  AM_V=$AM_DEFAULT_VERBOSITY
 
950
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 
951
fi
 
952
AC_SUBST([AM_V])dnl
 
953
AM_SUBST_NOTMAKE([AM_V])dnl
 
954
AC_SUBST([AM_DEFAULT_V])dnl
 
955
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
905
956
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
906
957
AM_BACKSLASH='\'
907
958
AC_SUBST([AM_BACKSLASH])dnl
908
959
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
909
960
])
910
961
 
911
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
962
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
912
963
#
913
964
# This file is free software; the Free Software Foundation
914
965
# gives unlimited permission to copy and/or distribute it,
916
967
 
917
968
# AM_PROG_INSTALL_STRIP
918
969
# ---------------------
919
 
# One issue with vendor `install' (even GNU) is that you can't
 
970
# One issue with vendor 'install' (even GNU) is that you can't
920
971
# specify the program used to strip binaries.  This is especially
921
972
# annoying in cross-compiling environments, where the build's strip
922
973
# is unlikely to handle the host's binaries.
923
974
# Fortunately install-sh will honor a STRIPPROG variable, so we
924
 
# always use install-sh in `make install-strip', and initialize
 
975
# always use install-sh in "make install-strip", and initialize
925
976
# STRIPPROG with the value of the STRIP variable (set by the user).
926
977
AC_DEFUN([AM_PROG_INSTALL_STRIP],
927
978
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
928
 
# Installed binaries are usually stripped using `strip' when the user
929
 
# run `make install-strip'.  However `strip' might not be the right
 
979
# Installed binaries are usually stripped using 'strip' when the user
 
980
# run "make install-strip".  However 'strip' might not be the right
930
981
# tool to use in cross-compilation environments, therefore Automake
931
 
# will honor the `STRIP' environment variable to overrule this program.
932
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
982
# will honor the 'STRIP' environment variable to overrule this program.
 
983
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
933
984
if test "$cross_compiling" != no; then
934
985
  AC_CHECK_TOOL([STRIP], [strip], :)
935
986
fi
936
987
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
937
988
AC_SUBST([INSTALL_STRIP_PROGRAM])])
938
989
 
939
 
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
 
990
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
940
991
#
941
992
# This file is free software; the Free Software Foundation
942
993
# gives unlimited permission to copy and/or distribute it,
943
994
# with or without modifications, as long as this notice is preserved.
944
995
 
945
 
# serial 2
946
 
 
947
996
# _AM_SUBST_NOTMAKE(VARIABLE)
948
997
# ---------------------------
949
998
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
951
1000
AC_DEFUN([_AM_SUBST_NOTMAKE])
952
1001
 
953
1002
# AM_SUBST_NOTMAKE(VARIABLE)
954
 
# ---------------------------
 
1003
# --------------------------
955
1004
# Public sister of _AM_SUBST_NOTMAKE.
956
1005
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
957
1006
 
958
1007
# Check how to create a tarball.                            -*- Autoconf -*-
959
1008
 
960
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
1009
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
961
1010
#
962
1011
# This file is free software; the Free Software Foundation
963
1012
# gives unlimited permission to copy and/or distribute it,
964
1013
# with or without modifications, as long as this notice is preserved.
965
1014
 
966
 
# serial 2
967
 
 
968
1015
# _AM_PROG_TAR(FORMAT)
969
1016
# --------------------
970
1017
# Check how to create a tarball in format FORMAT.
971
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
1018
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
972
1019
#
973
1020
# Substitute a variable $(am__tar) that is a command
974
1021
# writing to stdout a FORMAT-tarball containing the directory
978
1025
# Substitute a variable $(am__untar) that extract such
979
1026
# a tarball read from stdin.
980
1027
#     $(am__untar) < result.tar
 
1028
#
981
1029
AC_DEFUN([_AM_PROG_TAR],
982
 
[# Always define AMTAR for backward compatibility.
983
 
AM_MISSING_PROG([AMTAR], [tar])
 
1030
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
1031
# in the wild :-(  We should find a proper way to deprecate it ...
 
1032
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1033
 
 
1034
# We'll loop over all known methods to create a tar archive until one works.
 
1035
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1036
 
984
1037
m4_if([$1], [v7],
985
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
986
 
     [m4_case([$1], [ustar],, [pax],,
987
 
              [m4_fatal([Unknown tar format])])
988
 
AC_MSG_CHECKING([how to create a $1 tar archive])
989
 
# Loop over all known methods to create a tar archive until one works.
990
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
991
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
992
 
# Do not fold the above two line into one, because Tru64 sh and
993
 
# Solaris sh will not grok spaces in the rhs of `-'.
994
 
for _am_tool in $_am_tools
995
 
do
996
 
  case $_am_tool in
997
 
  gnutar)
998
 
    for _am_tar in tar gnutar gtar;
999
 
    do
1000
 
      AM_RUN_LOG([$_am_tar --version]) && break
1001
 
    done
1002
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1003
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1004
 
    am__untar="$_am_tar -xf -"
1005
 
    ;;
1006
 
  plaintar)
1007
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1008
 
    # ustar tarball either.
1009
 
    (tar --version) >/dev/null 2>&1 && continue
1010
 
    am__tar='tar chf - "$$tardir"'
1011
 
    am__tar_='tar chf - "$tardir"'
1012
 
    am__untar='tar xf -'
1013
 
    ;;
1014
 
  pax)
1015
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1016
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1017
 
    am__untar='pax -r'
1018
 
    ;;
1019
 
  cpio)
1020
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1021
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1022
 
    am__untar='cpio -i -H $1 -d'
1023
 
    ;;
1024
 
  none)
1025
 
    am__tar=false
1026
 
    am__tar_=false
1027
 
    am__untar=false
1028
 
    ;;
1029
 
  esac
1030
 
 
1031
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1032
 
  # and am__untar set.
1033
 
  test -n "${am_cv_prog_tar_$1}" && break
1034
 
 
1035
 
  # tar/untar a dummy directory, and stop if the command works
1036
 
  rm -rf conftest.dir
1037
 
  mkdir conftest.dir
1038
 
  echo GrepMe > conftest.dir/file
1039
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1040
 
  rm -rf conftest.dir
1041
 
  if test -s conftest.tar; then
1042
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1043
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1044
 
  fi
1045
 
done
1046
 
rm -rf conftest.dir
1047
 
 
1048
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1049
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1038
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1039
 
 
1040
  [m4_case([$1],
 
1041
    [ustar],
 
1042
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1043
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1044
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1045
      # and bug#13588).
 
1046
      am_max_uid=2097151 # 2^21 - 1
 
1047
      am_max_gid=$am_max_uid
 
1048
      # The $UID and $GID variables are not portable, so we need to resort
 
1049
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1050
      # below are definitely unexpected, so allow the users to see them
 
1051
      # (that is, avoid stderr redirection).
 
1052
      am_uid=`id -u || echo unknown`
 
1053
      am_gid=`id -g || echo unknown`
 
1054
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1055
      if test $am_uid -le $am_max_uid; then
 
1056
         AC_MSG_RESULT([yes])
 
1057
      else
 
1058
         AC_MSG_RESULT([no])
 
1059
         _am_tools=none
 
1060
      fi
 
1061
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1062
      if test $am_gid -le $am_max_gid; then
 
1063
         AC_MSG_RESULT([yes])
 
1064
      else
 
1065
        AC_MSG_RESULT([no])
 
1066
        _am_tools=none
 
1067
      fi],
 
1068
 
 
1069
  [pax],
 
1070
    [],
 
1071
 
 
1072
  [m4_fatal([Unknown tar format])])
 
1073
 
 
1074
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1075
 
 
1076
  # Go ahead even if we have the value already cached.  We do so because we
 
1077
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1078
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1079
 
 
1080
  for _am_tool in $_am_tools; do
 
1081
    case $_am_tool in
 
1082
    gnutar)
 
1083
      for _am_tar in tar gnutar gtar; do
 
1084
        AM_RUN_LOG([$_am_tar --version]) && break
 
1085
      done
 
1086
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1087
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1088
      am__untar="$_am_tar -xf -"
 
1089
      ;;
 
1090
    plaintar)
 
1091
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1092
      # ustar tarball either.
 
1093
      (tar --version) >/dev/null 2>&1 && continue
 
1094
      am__tar='tar chf - "$$tardir"'
 
1095
      am__tar_='tar chf - "$tardir"'
 
1096
      am__untar='tar xf -'
 
1097
      ;;
 
1098
    pax)
 
1099
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1100
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1101
      am__untar='pax -r'
 
1102
      ;;
 
1103
    cpio)
 
1104
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1105
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1106
      am__untar='cpio -i -H $1 -d'
 
1107
      ;;
 
1108
    none)
 
1109
      am__tar=false
 
1110
      am__tar_=false
 
1111
      am__untar=false
 
1112
      ;;
 
1113
    esac
 
1114
 
 
1115
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1116
    # and am__untar set.
 
1117
    test -n "${am_cv_prog_tar_$1}" && break
 
1118
 
 
1119
    # tar/untar a dummy directory, and stop if the command works.
 
1120
    rm -rf conftest.dir
 
1121
    mkdir conftest.dir
 
1122
    echo GrepMe > conftest.dir/file
 
1123
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1124
    rm -rf conftest.dir
 
1125
    if test -s conftest.tar; then
 
1126
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1127
      AM_RUN_LOG([cat conftest.dir/file])
 
1128
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1129
    fi
 
1130
  done
 
1131
  rm -rf conftest.dir
 
1132
 
 
1133
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1134
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1135
 
1050
1136
AC_SUBST([am__tar])
1051
1137
AC_SUBST([am__untar])
1052
1138
]) # _AM_PROG_TAR