~ubuntu-branches/ubuntu/vivid/mpich/vivid-proposed

« back to all changes in this revision

Viewing changes to src/pm/hydra/mpl/aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-04-01 20:24:20 UTC
  • mfrom: (5.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20140401202420-t5ey1ia2klt5dkq3
Tags: 3.1-4
* [c3e3398] Disable test_primitives, which is unreliable on some platforms.
            (Closes: #743047)
* [265a699] Add minimal autotest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.12.4 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.14 -*- 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],,
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22
 
22
 
# Copyright (C) 2002-2012 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.12'
 
35
[am__api_version='1.14'
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.12.4], [],
 
38
m4_if([$1], [1.14], [],
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.12.4])dnl
 
54
[AM_AUTOMAKE_VERSION([1.14])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
 
# Copyright (C) 2011-2012 Free Software Foundation, Inc.
 
59
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
59
60
#
60
61
# This file is free software; the Free Software Foundation
61
62
# gives unlimited permission to copy and/or distribute it,
75
76
: ${AR=ar}
76
77
 
77
78
AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
78
 
  [am_cv_ar_interface=ar
 
79
  [AC_LANG_PUSH([C])
 
80
   am_cv_ar_interface=ar
79
81
   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
80
82
     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
81
83
      AC_TRY_EVAL([am_ar_try])
92
94
      fi
93
95
      rm -f conftest.lib libconftest.a
94
96
     ])
95
 
   ])
 
97
   AC_LANG_POP([C])])
96
98
 
97
99
case $am_cv_ar_interface in
98
100
ar)
116
118
 
117
119
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
118
120
 
119
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
121
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
120
122
#
121
123
# This file is free software; the Free Software Foundation
122
124
# gives unlimited permission to copy and/or distribute it,
169
171
 
170
172
# AM_CONDITIONAL                                            -*- Autoconf -*-
171
173
 
172
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
174
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
173
175
#
174
176
# This file is free software; the Free Software Foundation
175
177
# gives unlimited permission to copy and/or distribute it,
200
202
Usually this means the macro was only invoked conditionally.]])
201
203
fi])])
202
204
 
203
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
205
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
204
206
#
205
207
# This file is free software; the Free Software Foundation
206
208
# gives unlimited permission to copy and/or distribute it,
391
393
 
392
394
# Generate code to set up dependency tracking.              -*- Autoconf -*-
393
395
 
394
 
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
396
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
395
397
#
396
398
# This file is free software; the Free Software Foundation
397
399
# gives unlimited permission to copy and/or distribute it,
402
404
# ------------------------------
403
405
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
404
406
[{
405
 
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
407
  # Older Autoconf quotes --file arguments for eval, but not when files
406
408
  # are listed without --file.  Let's play safe and only enable the eval
407
409
  # if we detect the quoting.
408
410
  case $CONFIG_FILES in
431
433
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
432
434
    test -z "$DEPDIR" && continue
433
435
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
434
 
    test -z "am__include" && continue
 
436
    test -z "$am__include" && continue
435
437
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
436
438
    # Find all dependency output files, they are included files with
437
439
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
467
469
 
468
470
# Do all the work for Automake.                             -*- Autoconf -*-
469
471
 
470
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
472
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
471
473
#
472
474
# This file is free software; the Free Software Foundation
473
475
# gives unlimited permission to copy and/or distribute it,
476
478
# This macro actually does too much.  Some checks are only needed if
477
479
# your package does certain things.  But this isn't really a big deal.
478
480
 
 
481
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
 
482
m4_define([AC_PROG_CC],
 
483
m4_defn([AC_PROG_CC])
 
484
[_AM_PROG_CC_C_O
 
485
])
 
486
 
479
487
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
480
488
# AM_INIT_AUTOMAKE([OPTIONS])
481
489
# -----------------------------------------------
488
496
# arguments mandatory, and then we can depend on a new Autoconf
489
497
# release and drop the old call support.
490
498
AC_DEFUN([AM_INIT_AUTOMAKE],
491
 
[AC_PREREQ([2.62])dnl
 
499
[AC_PREREQ([2.65])dnl
492
500
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
493
501
dnl the ones we care about.
494
502
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
518
526
dnl Distinguish between old-style and new-style calls.
519
527
m4_ifval([$2],
520
528
[AC_DIAGNOSE([obsolete],
521
 
[$0: two- and three-arguments forms are deprecated.  For more info, see:
522
 
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
 
529
             [$0: two- and three-arguments forms are deprecated.])
523
530
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
524
531
 AC_SUBST([PACKAGE], [$1])dnl
525
532
 AC_SUBST([VERSION], [$2])],
573
580
                  [_AM_DEPENDENCIES([OBJC])],
574
581
                  [m4_define([AC_PROG_OBJC],
575
582
                             m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
576
 
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
577
 
dnl but we still cater to Autoconf 2.62.
578
 
m4_ifdef([AC_PROG_OBJCXX],
579
 
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
 
583
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
580
584
                  [_AM_DEPENDENCIES([OBJCXX])],
581
585
                  [m4_define([AC_PROG_OBJCXX],
582
 
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
 
586
                             m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
583
587
])
584
 
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
585
 
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
586
 
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
587
 
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
588
AC_REQUIRE([AM_SILENT_RULES])dnl
 
589
dnl The testsuite driver may need to know about EXEEXT, so add the
 
590
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
 
591
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
588
592
AC_CONFIG_COMMANDS_PRE(dnl
589
593
[m4_provide_if([_AM_COMPILER_EXEEXT],
590
594
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
591
 
])
 
595
 
 
596
# POSIX will say in a future version that running "rm -f" with no argument
 
597
# is OK; and we want to be able to make that assumption in our Makefile
 
598
# recipes.  So use an aggressive probe to check that the usage we want is
 
599
# actually supported "in the wild" to an acceptable degree.
 
600
# See automake bug#10828.
 
601
# To make any issue more visible, cause the running configure to be aborted
 
602
# by default if the 'rm' program in use doesn't match our expectations; the
 
603
# user can still override this though.
 
604
if rm -f && rm -fr && rm -rf; then : OK; else
 
605
  cat >&2 <<'END'
 
606
Oops!
 
607
 
 
608
Your 'rm' program seems unable to run without file operands specified
 
609
on the command line, even when the '-f' option is present.  This is contrary
 
610
to the behaviour of most rm programs out there, and not conforming with
 
611
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 
612
 
 
613
Please tell bug-automake@gnu.org about your system, including the value
 
614
of your $PATH and any error possibly output before this message.  This
 
615
can help us improve future automake versions.
 
616
 
 
617
END
 
618
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 
619
    echo 'Configuration will proceed anyway, since you have set the' >&2
 
620
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 
621
    echo >&2
 
622
  else
 
623
    cat >&2 <<'END'
 
624
Aborting the configuration process, to ensure you take notice of the issue.
 
625
 
 
626
You can download and install GNU coreutils to get an 'rm' implementation
 
627
that behaves properly: <http://www.gnu.org/software/coreutils/>.
 
628
 
 
629
If you want to complete the configuration process using your problematic
 
630
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 
631
to "yes", and re-run configure.
 
632
 
 
633
END
 
634
    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
 
635
  fi
 
636
fi])
592
637
 
593
638
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
594
639
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
596
641
m4_define([_AC_COMPILER_EXEEXT],
597
642
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
598
643
 
599
 
 
600
644
# When config.status generates a header, we must update the stamp-h file.
601
645
# This file resides in the same directory as the config header
602
646
# that is generated.  The stamp files are numbered to have different names.
618
662
done
619
663
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
620
664
 
621
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
665
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
622
666
#
623
667
# This file is free software; the Free Software Foundation
624
668
# gives unlimited permission to copy and/or distribute it,
639
683
fi
640
684
AC_SUBST([install_sh])])
641
685
 
642
 
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
 
686
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
643
687
#
644
688
# This file is free software; the Free Software Foundation
645
689
# gives unlimited permission to copy and/or distribute it,
660
704
 
661
705
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
662
706
 
663
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
707
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
664
708
#
665
709
# This file is free software; the Free Software Foundation
666
710
# gives unlimited permission to copy and/or distribute it,
710
754
 
711
755
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
712
756
 
713
 
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
 
757
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
714
758
#
715
759
# This file is free software; the Free Software Foundation
716
760
# gives unlimited permission to copy and/or distribute it,
725
769
 
726
770
# AM_MISSING_HAS_RUN
727
771
# ------------------
728
 
# Define MISSING if not defined so far and test if it supports --run.
729
 
# If it does, set am_missing_run to use it, otherwise, to nothing.
 
772
# Define MISSING if not defined so far and test if it is modern enough.
 
773
# If it is, set am_missing_run to use it, otherwise, to nothing.
730
774
AC_DEFUN([AM_MISSING_HAS_RUN],
731
775
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
732
776
AC_REQUIRE_AUX_FILE([missing])dnl
739
783
  esac
740
784
fi
741
785
# Use eval to expand $SHELL
742
 
if eval "$MISSING --run true"; then
743
 
  am_missing_run="$MISSING --run "
 
786
if eval "$MISSING --is-lightweight"; then
 
787
  am_missing_run="$MISSING "
744
788
else
745
789
  am_missing_run=
746
790
  AC_MSG_WARN(['missing' script is too old or missing])
749
793
 
750
794
# Helper functions for option handling.                     -*- Autoconf -*-
751
795
 
752
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
796
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
753
797
#
754
798
# This file is free software; the Free Software Foundation
755
799
# gives unlimited permission to copy and/or distribute it,
778
822
AC_DEFUN([_AM_IF_OPTION],
779
823
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
780
824
 
 
825
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
 
826
#
 
827
# This file is free software; the Free Software Foundation
 
828
# gives unlimited permission to copy and/or distribute it,
 
829
# with or without modifications, as long as this notice is preserved.
 
830
 
 
831
# _AM_PROG_CC_C_O
 
832
# ---------------
 
833
# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
 
834
# to automatically call this.
 
835
AC_DEFUN([_AM_PROG_CC_C_O],
 
836
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
 
837
AC_REQUIRE_AUX_FILE([compile])dnl
 
838
AC_LANG_PUSH([C])dnl
 
839
AC_CACHE_CHECK(
 
840
  [whether $CC understands -c and -o together],
 
841
  [am_cv_prog_cc_c_o],
 
842
  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
 
843
  # Make sure it works both with $CC and with simple cc.
 
844
  # Following AC_PROG_CC_C_O, we do the test twice because some
 
845
  # compilers refuse to overwrite an existing .o file with -o,
 
846
  # though they will create one.
 
847
  am_cv_prog_cc_c_o=yes
 
848
  for am_i in 1 2; do
 
849
    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
 
850
         && test -f conftest2.$ac_objext; then
 
851
      : OK
 
852
    else
 
853
      am_cv_prog_cc_c_o=no
 
854
      break
 
855
    fi
 
856
  done
 
857
  rm -f core conftest*
 
858
  unset am_i])
 
859
if test "$am_cv_prog_cc_c_o" != yes; then
 
860
   # Losing compiler, so override with the script.
 
861
   # FIXME: It is wrong to rewrite CC.
 
862
   # But if we don't then we get into trouble of one sort or another.
 
863
   # A longer-term fix would be to have automake use am__CC in this case,
 
864
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
865
   CC="$am_aux_dir/compile $CC"
 
866
fi
 
867
AC_LANG_POP([C])])
 
868
 
 
869
# For backward compatibility.
 
870
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
 
871
 
 
872
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
 
873
#
 
874
# This file is free software; the Free Software Foundation
 
875
# gives unlimited permission to copy and/or distribute it,
 
876
# with or without modifications, as long as this notice is preserved.
 
877
 
 
878
# AM_RUN_LOG(COMMAND)
 
879
# -------------------
 
880
# Run COMMAND, save the exit status in ac_status, and log it.
 
881
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
 
882
AC_DEFUN([AM_RUN_LOG],
 
883
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
 
884
   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
 
885
   ac_status=$?
 
886
   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 
887
   (exit $ac_status); }])
 
888
 
781
889
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
782
890
 
783
 
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
 
891
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
784
892
#
785
893
# This file is free software; the Free Software Foundation
786
894
# gives unlimited permission to copy and/or distribute it,
861
969
rm -f conftest.file
862
970
])
863
971
 
864
 
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
 
972
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
865
973
#
866
974
# This file is free software; the Free Software Foundation
867
975
# gives unlimited permission to copy and/or distribute it,
921
1029
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
922
1030
])
923
1031
 
924
 
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
 
1032
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
925
1033
#
926
1034
# This file is free software; the Free Software Foundation
927
1035
# gives unlimited permission to copy and/or distribute it,
949
1057
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
950
1058
AC_SUBST([INSTALL_STRIP_PROGRAM])])
951
1059
 
952
 
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
 
1060
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
953
1061
#
954
1062
# This file is free software; the Free Software Foundation
955
1063
# gives unlimited permission to copy and/or distribute it,
968
1076
 
969
1077
# Check how to create a tarball.                            -*- Autoconf -*-
970
1078
 
971
 
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
 
1079
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
972
1080
#
973
1081
# This file is free software; the Free Software Foundation
974
1082
# gives unlimited permission to copy and/or distribute it,
987
1095
# Substitute a variable $(am__untar) that extract such
988
1096
# a tarball read from stdin.
989
1097
#     $(am__untar) < result.tar
 
1098
#
990
1099
AC_DEFUN([_AM_PROG_TAR],
991
1100
[# Always define AMTAR for backward compatibility.  Yes, it's still used
992
1101
# in the wild :-(  We should find a proper way to deprecate it ...
993
1102
AC_SUBST([AMTAR], ['$${TAR-tar}'])
 
1103
 
 
1104
# We'll loop over all known methods to create a tar archive until one works.
 
1105
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
 
1106
 
994
1107
m4_if([$1], [v7],
995
 
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
996
 
     [m4_case([$1], [ustar],, [pax],,
997
 
              [m4_fatal([Unknown tar format])])
998
 
AC_MSG_CHECKING([how to create a $1 tar archive])
999
 
# Loop over all known methods to create a tar archive until one works.
1000
 
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1001
 
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1002
 
# Do not fold the above two line into one, because Tru64 sh and
1003
 
# Solaris sh will not grok spaces in the rhs of '-'.
1004
 
for _am_tool in $_am_tools
1005
 
do
1006
 
  case $_am_tool in
1007
 
  gnutar)
1008
 
    for _am_tar in tar gnutar gtar;
1009
 
    do
1010
 
      AM_RUN_LOG([$_am_tar --version]) && break
1011
 
    done
1012
 
    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1013
 
    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1014
 
    am__untar="$_am_tar -xf -"
1015
 
    ;;
1016
 
  plaintar)
1017
 
    # Must skip GNU tar: if it does not support --format= it doesn't create
1018
 
    # ustar tarball either.
1019
 
    (tar --version) >/dev/null 2>&1 && continue
1020
 
    am__tar='tar chf - "$$tardir"'
1021
 
    am__tar_='tar chf - "$tardir"'
1022
 
    am__untar='tar xf -'
1023
 
    ;;
1024
 
  pax)
1025
 
    am__tar='pax -L -x $1 -w "$$tardir"'
1026
 
    am__tar_='pax -L -x $1 -w "$tardir"'
1027
 
    am__untar='pax -r'
1028
 
    ;;
1029
 
  cpio)
1030
 
    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1031
 
    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1032
 
    am__untar='cpio -i -H $1 -d'
1033
 
    ;;
1034
 
  none)
1035
 
    am__tar=false
1036
 
    am__tar_=false
1037
 
    am__untar=false
1038
 
    ;;
1039
 
  esac
1040
 
 
1041
 
  # If the value was cached, stop now.  We just wanted to have am__tar
1042
 
  # and am__untar set.
1043
 
  test -n "${am_cv_prog_tar_$1}" && break
1044
 
 
1045
 
  # tar/untar a dummy directory, and stop if the command works
1046
 
  rm -rf conftest.dir
1047
 
  mkdir conftest.dir
1048
 
  echo GrepMe > conftest.dir/file
1049
 
  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1050
 
  rm -rf conftest.dir
1051
 
  if test -s conftest.tar; then
1052
 
    AM_RUN_LOG([$am__untar <conftest.tar])
1053
 
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1054
 
  fi
1055
 
done
1056
 
rm -rf conftest.dir
1057
 
 
1058
 
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1059
 
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1108
  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
 
1109
 
 
1110
  [m4_case([$1],
 
1111
    [ustar],
 
1112
     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
 
1113
      # There is notably a 21 bits limit for the UID and the GID.  In fact,
 
1114
      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 
1115
      # and bug#13588).
 
1116
      am_max_uid=2097151 # 2^21 - 1
 
1117
      am_max_gid=$am_max_uid
 
1118
      # The $UID and $GID variables are not portable, so we need to resort
 
1119
      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 
1120
      # below are definitely unexpected, so allow the users to see them
 
1121
      # (that is, avoid stderr redirection).
 
1122
      am_uid=`id -u || echo unknown`
 
1123
      am_gid=`id -g || echo unknown`
 
1124
      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
 
1125
      if test $am_uid -le $am_max_uid; then
 
1126
         AC_MSG_RESULT([yes])
 
1127
      else
 
1128
         AC_MSG_RESULT([no])
 
1129
         _am_tools=none
 
1130
      fi
 
1131
      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
 
1132
      if test $am_gid -le $am_max_gid; then
 
1133
         AC_MSG_RESULT([yes])
 
1134
      else
 
1135
        AC_MSG_RESULT([no])
 
1136
        _am_tools=none
 
1137
      fi],
 
1138
 
 
1139
  [pax],
 
1140
    [],
 
1141
 
 
1142
  [m4_fatal([Unknown tar format])])
 
1143
 
 
1144
  AC_MSG_CHECKING([how to create a $1 tar archive])
 
1145
 
 
1146
  # Go ahead even if we have the value already cached.  We do so because we
 
1147
  # need to set the values for the 'am__tar' and 'am__untar' variables.
 
1148
  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
 
1149
 
 
1150
  for _am_tool in $_am_tools; do
 
1151
    case $_am_tool in
 
1152
    gnutar)
 
1153
      for _am_tar in tar gnutar gtar; do
 
1154
        AM_RUN_LOG([$_am_tar --version]) && break
 
1155
      done
 
1156
      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
 
1157
      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
 
1158
      am__untar="$_am_tar -xf -"
 
1159
      ;;
 
1160
    plaintar)
 
1161
      # Must skip GNU tar: if it does not support --format= it doesn't create
 
1162
      # ustar tarball either.
 
1163
      (tar --version) >/dev/null 2>&1 && continue
 
1164
      am__tar='tar chf - "$$tardir"'
 
1165
      am__tar_='tar chf - "$tardir"'
 
1166
      am__untar='tar xf -'
 
1167
      ;;
 
1168
    pax)
 
1169
      am__tar='pax -L -x $1 -w "$$tardir"'
 
1170
      am__tar_='pax -L -x $1 -w "$tardir"'
 
1171
      am__untar='pax -r'
 
1172
      ;;
 
1173
    cpio)
 
1174
      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
 
1175
      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
 
1176
      am__untar='cpio -i -H $1 -d'
 
1177
      ;;
 
1178
    none)
 
1179
      am__tar=false
 
1180
      am__tar_=false
 
1181
      am__untar=false
 
1182
      ;;
 
1183
    esac
 
1184
 
 
1185
    # If the value was cached, stop now.  We just wanted to have am__tar
 
1186
    # and am__untar set.
 
1187
    test -n "${am_cv_prog_tar_$1}" && break
 
1188
 
 
1189
    # tar/untar a dummy directory, and stop if the command works.
 
1190
    rm -rf conftest.dir
 
1191
    mkdir conftest.dir
 
1192
    echo GrepMe > conftest.dir/file
 
1193
    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
 
1194
    rm -rf conftest.dir
 
1195
    if test -s conftest.tar; then
 
1196
      AM_RUN_LOG([$am__untar <conftest.tar])
 
1197
      AM_RUN_LOG([cat conftest.dir/file])
 
1198
      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
1199
    fi
 
1200
  done
 
1201
  rm -rf conftest.dir
 
1202
 
 
1203
  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
 
1204
  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
 
1205
 
1060
1206
AC_SUBST([am__tar])
1061
1207
AC_SUBST([am__untar])
1062
1208
]) # _AM_PROG_TAR
1063
1209
 
1064
1210
m4_include([confdb/aclocal_cc.m4])
1065
1211
m4_include([confdb/aclocal_coverage.m4])
 
1212
m4_include([confdb/aclocal_runlog.m4])
1066
1213
m4_include([confdb/aclocal_util.m4])
1067
1214
m4_include([confdb/ax_prefix_config_h.m4])
1068
1215
m4_include([confdb/libtool.m4])