Changeset ee51534 for aclocal.m4
- Timestamp:
- Jun 14, 2016, 2:33:23 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ca26509
- Parents:
- 7ff30d07
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal.m4
r7ff30d07 ree51534 1 # generated automatically by aclocal 1.14.1 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 4 1 # generated automatically by aclocal 1.11.3 -*- Autoconf -*- 2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5 # Inc. 5 6 # This file is free software; the Free Software Foundation 6 7 # gives unlimited permission to copy and/or distribute it, … … 12 13 # PARTICULAR PURPOSE. 13 14 14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])15 15 m4_ifndef([AC_AUTOCONF_VERSION], 16 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 9],,18 [m4_warning([this file was generated for autoconf 2.6 9.17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 18 [m4_warning([this file was generated for autoconf 2.68. 19 19 You have another version of autoconf. It may work, but is not guaranteed to. 20 20 If you have problems, you may need to regenerate the build system entirely. 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23 # Copyright (C) 2002-2013 Free Software Foundation, Inc. 24 # 25 # This file is free software; the Free Software Foundation 26 # gives unlimited permission to copy and/or distribute it, 27 # with or without modifications, as long as this notice is preserved. 21 To do so, use the procedure documented by the package, typically `autoreconf'.])]) 22 23 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software 24 # Foundation, Inc. 25 # 26 # This file is free software; the Free Software Foundation 27 # gives unlimited permission to copy and/or distribute it, 28 # with or without modifications, as long as this notice is preserved. 29 30 # serial 1 28 31 29 32 # AM_AUTOMAKE_VERSION(VERSION) … … 33 36 # (This private macro should not be called outside this file.) 34 37 AC_DEFUN([AM_AUTOMAKE_VERSION], 35 [am__api_version='1.1 4'38 [am__api_version='1.11' 36 39 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37 40 dnl require some minimum version. Point them to the right macro. 38 m4_if([$1], [1.1 4.1], [],41 m4_if([$1], [1.11.3], [], 39 42 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40 43 ]) … … 52 55 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53 56 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54 [AM_AUTOMAKE_VERSION([1.1 4.1])dnl57 [AM_AUTOMAKE_VERSION([1.11.3])dnl 55 58 m4_ifndef([AC_AUTOCONF_VERSION], 56 59 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 59 62 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 60 63 61 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 62 # 63 # This file is free software; the Free Software Foundation 64 # gives unlimited permission to copy and/or distribute it, 65 # with or without modifications, as long as this notice is preserved. 64 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 65 # 66 # This file is free software; the Free Software Foundation 67 # gives unlimited permission to copy and/or distribute it, 68 # with or without modifications, as long as this notice is preserved. 69 70 # serial 1 66 71 67 72 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.73 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 74 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 70 75 # 71 76 # Of course, Automake must honor this variable whenever it calls a … … 86 91 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 87 92 # are both prefixed by $srcdir. In an in-source build this is usually 88 # harmless because $srcdir is '.', but things will broke when you93 # harmless because $srcdir is `.', but things will broke when you 89 94 # start a VPATH build or use an absolute $srcdir. 90 95 # … … 112 117 # AM_CONDITIONAL -*- Autoconf -*- 113 118 114 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 115 # 116 # This file is free software; the Free Software Foundation 117 # gives unlimited permission to copy and/or distribute it, 118 # with or without modifications, as long as this notice is preserved. 119 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 120 # Free Software Foundation, Inc. 121 # 122 # This file is free software; the Free Software Foundation 123 # gives unlimited permission to copy and/or distribute it, 124 # with or without modifications, as long as this notice is preserved. 125 126 # serial 9 119 127 120 128 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 122 130 # Define a conditional. 123 131 AC_DEFUN([AM_CONDITIONAL], 124 [AC_PREREQ( [2.52])dnl125 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],126 132 [AC_PREREQ(2.52)dnl 133 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 134 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 127 135 AC_SUBST([$1_TRUE])dnl 128 136 AC_SUBST([$1_FALSE])dnl … … 143 151 fi])]) 144 152 145 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 146 # 147 # This file is free software; the Free Software Foundation 148 # gives unlimited permission to copy and/or distribute it, 149 # with or without modifications, as long as this notice is preserved. 150 151 152 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 153 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 154 # 2010, 2011 Free Software Foundation, Inc. 155 # 156 # This file is free software; the Free Software Foundation 157 # gives unlimited permission to copy and/or distribute it, 158 # with or without modifications, as long as this notice is preserved. 159 160 # serial 12 161 162 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 153 163 # written in clear, in which case automake, when reading aclocal.m4, 154 164 # will think it sees a *use*, and therefore will trigger all it's … … 160 170 # ---------------------- 161 171 # See how the compiler implements dependency checking. 162 # NAME is "CC", "CXX", " OBJC", "OBJCXX", "UPC", or "GJC".172 # NAME is "CC", "CXX", "GCJ", or "OBJC". 163 173 # We try a few techniques and use that to set a single cache variable. 164 174 # … … 173 183 AC_REQUIRE([AM_DEP_TRACK])dnl 174 184 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 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 186 [$1], CXX, [depcc="$CXX" am_compiler_list=], 187 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 188 [$1], UPC, [depcc="$UPC" am_compiler_list=], 189 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 190 [depcc="$$1" am_compiler_list=]) 182 191 183 192 AC_CACHE_CHECK([dependency style of $depcc], … … 187 196 # making bogus files that we don't know about and never remove. For 188 197 # instance it was reported that on HP-UX the gcc test will end up 189 # making a dummy file named 'D' -- because '-MD' means "put the output190 # in D ".198 # making a dummy file named `D' -- because `-MD' means `put the output 199 # in D'. 191 200 rm -rf conftest.dir 192 201 mkdir conftest.dir … … 228 237 for i in 1 2 3 4 5 6; do 229 238 echo '#include "conftst'$i'.h"' >> sub/conftest.c 230 # Using ": > sub/conftst$i.h"creates only sub/conftst1.h with231 # Solaris 10/bin/sh.232 echo '/* dummy */' >sub/conftst$i.h239 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 240 # Solaris 8's {/usr,}/bin/sh. 241 touch sub/conftst$i.h 233 242 done 234 243 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 235 244 236 # We check with '-c' and '-o' for the sake of the "dashmstdout"245 # We check with `-c' and `-o' for the sake of the "dashmstdout" 237 246 # mode. It turns out that the SunPro C++ compiler does not properly 238 # handle '-M -o', and we need to detect this. Also, some Intel239 # versions had trouble with output in subdirs .247 # handle `-M -o', and we need to detect this. Also, some Intel 248 # versions had trouble with output in subdirs 240 249 am__obj=sub/conftest.${OBJEXT-o} 241 250 am__minus_obj="-o $am__obj" … … 246 255 ;; 247 256 nosideeffect) 248 # After this tag, mechanisms are not by side-effect, so they'll249 # only be used when explicitly requested .257 # after this tag, mechanisms are not by side-effect, so they'll 258 # only be used when explicitly requested 250 259 if test "x$enable_dependency_tracking" = xyes; then 251 260 continue … … 255 264 ;; 256 265 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 257 # This compiler won't grok '-c -o', but also, the minuso test has266 # This compiler won't grok `-c -o', but also, the minuso test has 258 267 # not run yet. These depmodes are late enough in the game, and 259 268 # so weak that their functioning should not be impacted. … … 303 312 # ------------- 304 313 # Choose a directory name for dependency files. 305 # This macro is AC_REQUIREd in _AM_DEPENDENCIES .314 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 306 315 AC_DEFUN([AM_SET_DEPDIR], 307 316 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl … … 313 322 # ------------ 314 323 AC_DEFUN([AM_DEP_TRACK], 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])]) 324 [AC_ARG_ENABLE(dependency-tracking, 325 [ --disable-dependency-tracking speeds up one-time build 326 --enable-dependency-tracking do not reject slow dependency extractors]) 322 327 if test "x$enable_dependency_tracking" != xno; then 323 328 am_depcomp="$ac_aux_dir/depcomp" … … 334 339 # Generate code to set up dependency tracking. -*- Autoconf -*- 335 340 336 # Copyright (C) 1999-2013 Free Software Foundation, Inc. 337 # 338 # This file is free software; the Free Software Foundation 339 # gives unlimited permission to copy and/or distribute it, 340 # with or without modifications, as long as this notice is preserved. 341 341 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 342 # Free Software Foundation, Inc. 343 # 344 # This file is free software; the Free Software Foundation 345 # gives unlimited permission to copy and/or distribute it, 346 # with or without modifications, as long as this notice is preserved. 347 348 #serial 5 342 349 343 350 # _AM_OUTPUT_DEPENDENCY_COMMANDS … … 345 352 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 346 353 [{ 347 # Older Autoconfquotes --file arguments for eval, but not when files354 # Autoconf 2.62 quotes --file arguments for eval, but not when files 348 355 # are listed without --file. Let's play safe and only enable the eval 349 356 # if we detect the quoting. … … 358 365 mf=`echo "$mf" | sed -e 's/:.*$//'` 359 366 # Check whether this is an Automake generated Makefile or not. 360 # We used to match only the files named 'Makefile.in', but367 # We used to match only the files named `Makefile.in', but 361 368 # some people rename them; so instead we look at the file content. 362 369 # Grep'ing the first line is not enough: some people post-process … … 370 377 fi 371 378 # Extract the definition of DEPDIR, am__include, and am__quote 372 # from the Makefile without running 'make'.379 # from the Makefile without running `make'. 373 380 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 374 381 test -z "$DEPDIR" && continue 375 382 am__include=`sed -n 's/^am__include = //p' < "$mf"` 376 test -z " $am__include" && continue383 test -z "am__include" && continue 377 384 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 385 # When using ansi2knr, U may be empty or an underscore; expand it 386 U=`sed -n 's/^U = //p' < "$mf"` 378 387 # Find all dependency output files, they are included files with 379 388 # $(DEPDIR) in their names. We invoke sed twice because it is the … … 382 391 for file in `sed -n " 383 392 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 384 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' `; do393 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 385 394 # Make sure the directory exists. 386 395 test -f "$dirpart/$file" && continue … … 400 409 # 401 410 # This code is only required when automatic dependency tracking 402 # is enabled. FIXME. This creates each '.P' file that we will411 # is enabled. FIXME. This creates each `.P' file that we will 403 412 # need in order to bootstrap the dependency handling code. 404 413 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], … … 410 419 # Do all the work for Automake. -*- Autoconf -*- 411 420 412 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 413 # 414 # This file is free software; the Free Software Foundation 415 # gives unlimited permission to copy and/or distribute it, 416 # with or without modifications, as long as this notice is preserved. 421 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 422 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 423 # 424 # This file is free software; the Free Software Foundation 425 # gives unlimited permission to copy and/or distribute it, 426 # with or without modifications, as long as this notice is preserved. 427 428 # serial 16 417 429 418 430 # This macro actually does too much. Some checks are only needed if 419 431 # your package does certain things. But this isn't really a big deal. 420 421 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.422 m4_define([AC_PROG_CC],423 m4_defn([AC_PROG_CC])424 [_AM_PROG_CC_C_O425 ])426 432 427 433 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) … … 437 443 # release and drop the old call support. 438 444 AC_DEFUN([AM_INIT_AUTOMAKE], 439 [AC_PREREQ([2.6 5])dnl445 [AC_PREREQ([2.62])dnl 440 446 dnl Autoconf wants to disallow AM_ names. We explicitly allow 441 447 dnl the ones we care about. … … 466 472 dnl Distinguish between old-style and new-style calls. 467 473 m4_ifval([$2], 468 [AC_DIAGNOSE([obsolete], 469 [$0: two- and three-arguments forms are deprecated.]) 470 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 474 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 471 475 AC_SUBST([PACKAGE], [$1])dnl 472 476 AC_SUBST([VERSION], [$2])], 473 477 [_AM_SET_OPTIONS([$1])dnl 474 478 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 475 m4_if( 476 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 477 [ok:ok],, 479 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 478 480 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 479 481 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl … … 481 483 482 484 _AM_IF_OPTION([no-define],, 483 [AC_DEFINE_UNQUOTED( [PACKAGE], ["$PACKAGE"], [Name of package])484 AC_DEFINE_UNQUOTED( [VERSION], ["$VERSION"], [Version number of package])])dnl485 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 486 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 485 487 486 488 # Some tools Automake needs. 487 489 AC_REQUIRE([AM_SANITY_CHECK])dnl 488 490 AC_REQUIRE([AC_ARG_PROGRAM])dnl 489 AM_MISSING_PROG( [ACLOCAL], [aclocal-${am__api_version}])490 AM_MISSING_PROG( [AUTOCONF], [autoconf])491 AM_MISSING_PROG( [AUTOMAKE], [automake-${am__api_version}])492 AM_MISSING_PROG( [AUTOHEADER], [autoheader])493 AM_MISSING_PROG( [MAKEINFO], [makeinfo])491 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 492 AM_MISSING_PROG(AUTOCONF, autoconf) 493 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 494 AM_MISSING_PROG(AUTOHEADER, autoheader) 495 AM_MISSING_PROG(MAKEINFO, makeinfo) 494 496 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 495 497 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 496 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 497 # For better backward compatibility. To be removed once Automake 1.9.x 498 # dies out for good. For more background, see: 499 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 500 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 501 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 498 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 502 499 # We need awk for the "check" target. The system "awk" is bad on 503 500 # some platforms. … … 510 507 _AM_IF_OPTION([no-dependencies],, 511 508 [AC_PROVIDE_IFELSE([AC_PROG_CC], 512 [_AM_DEPENDENCIES( [CC])],513 [ m4_define([AC_PROG_CC],514 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl509 [_AM_DEPENDENCIES(CC)], 510 [define([AC_PROG_CC], 511 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 515 512 AC_PROVIDE_IFELSE([AC_PROG_CXX], 516 [_AM_DEPENDENCIES( [CXX])],517 [ m4_define([AC_PROG_CXX],518 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl513 [_AM_DEPENDENCIES(CXX)], 514 [define([AC_PROG_CXX], 515 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 519 516 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 520 [_AM_DEPENDENCIES([OBJC])], 521 [m4_define([AC_PROG_OBJC], 522 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 523 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 524 [_AM_DEPENDENCIES([OBJCXX])], 525 [m4_define([AC_PROG_OBJCXX], 526 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 527 ]) 528 AC_REQUIRE([AM_SILENT_RULES])dnl 529 dnl The testsuite driver may need to know about EXEEXT, so add the 530 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 531 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 517 [_AM_DEPENDENCIES(OBJC)], 518 [define([AC_PROG_OBJC], 519 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 520 ]) 521 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 522 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 523 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 524 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 532 525 AC_CONFIG_COMMANDS_PRE(dnl 533 526 [m4_provide_if([_AM_COMPILER_EXEEXT], 534 527 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 535 536 # POSIX will say in a future version that running "rm -f" with no argument 537 # is OK; and we want to be able to make that assumption in our Makefile 538 # recipes. So use an aggressive probe to check that the usage we want is 539 # actually supported "in the wild" to an acceptable degree. 540 # See automake bug#10828. 541 # To make any issue more visible, cause the running configure to be aborted 542 # by default if the 'rm' program in use doesn't match our expectations; the 543 # user can still override this though. 544 if rm -f && rm -fr && rm -rf; then : OK; else 545 cat >&2 <<'END' 546 Oops! 547 548 Your 'rm' program seems unable to run without file operands specified 549 on the command line, even when the '-f' option is present. This is contrary 550 to the behaviour of most rm programs out there, and not conforming with 551 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 552 553 Please tell bug-automake@gnu.org about your system, including the value 554 of your $PATH and any error possibly output before this message. This 555 can help us improve future automake versions. 556 557 END 558 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 559 echo 'Configuration will proceed anyway, since you have set the' >&2 560 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 561 echo >&2 562 else 563 cat >&2 <<'END' 564 Aborting the configuration process, to ensure you take notice of the issue. 565 566 You can download and install GNU coreutils to get an 'rm' implementation 567 that behaves properly: <http://www.gnu.org/software/coreutils/>. 568 569 If you want to complete the configuration process using your problematic 570 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 571 to "yes", and re-run configure. 572 573 END 574 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 575 fi 576 fi]) 577 578 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 528 ]) 529 530 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 579 531 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 580 532 dnl mangled by Autoconf and run in a shell conditional statement. 581 533 m4_define([_AC_COMPILER_EXEEXT], 582 534 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 535 583 536 584 537 # When config.status generates a header, we must update the stamp-h file. … … 603 556 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 604 557 605 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 606 # 607 # This file is free software; the Free Software Foundation 608 # gives unlimited permission to copy and/or distribute it, 609 # with or without modifications, as long as this notice is preserved. 558 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, 559 # Inc. 560 # 561 # This file is free software; the Free Software Foundation 562 # gives unlimited permission to copy and/or distribute it, 563 # with or without modifications, as long as this notice is preserved. 564 565 # serial 1 610 566 611 567 # AM_PROG_INSTALL_SH … … 622 578 esac 623 579 fi 624 AC_SUBST([install_sh])]) 625 626 # Copyright (C) 2003-2013 Free Software Foundation, Inc. 627 # 628 # This file is free software; the Free Software Foundation 629 # gives unlimited permission to copy and/or distribute it, 630 # with or without modifications, as long as this notice is preserved. 580 AC_SUBST(install_sh)]) 581 582 # Copyright (C) 2003, 2005 Free Software Foundation, Inc. 583 # 584 # This file is free software; the Free Software Foundation 585 # gives unlimited permission to copy and/or distribute it, 586 # with or without modifications, as long as this notice is preserved. 587 588 # serial 2 631 589 632 590 # Check whether the underlying file-system supports filenames … … 646 604 # From Jim Meyering 647 605 648 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 649 # 650 # This file is free software; the Free Software Foundation 651 # gives unlimited permission to copy and/or distribute it, 652 # with or without modifications, as long as this notice is preserved. 606 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 607 # 2011 Free Software Foundation, Inc. 608 # 609 # This file is free software; the Free Software Foundation 610 # gives unlimited permission to copy and/or distribute it, 611 # with or without modifications, as long as this notice is preserved. 612 613 # serial 5 653 614 654 615 # AM_MAINTAINER_MODE([DEFAULT-MODE]) 655 616 # ---------------------------------- 656 617 # Control maintainer-specific portions of Makefiles. 657 # Default is to disable them, unless 'enable' is passed literally.658 # For symmetry, 'disable' may be passed as well. Anyway, the user618 # Default is to disable them, unless `enable' is passed literally. 619 # For symmetry, `disable' may be passed as well. Anyway, the user 659 620 # can override the default with the --enable/--disable switch. 660 621 AC_DEFUN([AM_MAINTAINER_MODE], … … 667 628 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 668 629 AC_ARG_ENABLE([maintainer-mode], 669 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 670 am_maintainer_other[ make rules and dependencies not useful 671 (and sometimes confusing) to the casual installer])], 672 [USE_MAINTAINER_MODE=$enableval], 673 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 630 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 631 (and sometimes confusing) to the casual installer], 632 [USE_MAINTAINER_MODE=$enableval], 633 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 674 634 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 675 635 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) … … 679 639 ) 680 640 641 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 642 681 643 # Check to see how 'make' treats includes. -*- Autoconf -*- 682 644 683 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 684 # 685 # This file is free software; the Free Software Foundation 686 # gives unlimited permission to copy and/or distribute it, 687 # with or without modifications, as long as this notice is preserved. 645 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 646 # 647 # This file is free software; the Free Software Foundation 648 # gives unlimited permission to copy and/or distribute it, 649 # with or without modifications, as long as this notice is preserved. 650 651 # serial 4 688 652 689 653 # AM_MAKE_INCLUDE() … … 704 668 # First try GNU make style include. 705 669 echo "include confinc" > confmf 706 # Ignore all kinds of additional output from 'make'.670 # Ignore all kinds of additional output from `make'. 707 671 case `$am_make -s -f confmf 2> /dev/null` in #( 708 672 *the\ am__doit\ target*) … … 729 693 ]) 730 694 695 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 696 # Free Software Foundation, Inc. 697 # 698 # This file is free software; the Free Software Foundation 699 # gives unlimited permission to copy and/or distribute it, 700 # with or without modifications, as long as this notice is preserved. 701 702 # serial 6 703 704 # AM_PROG_CC_C_O 705 # -------------- 706 # Like AC_PROG_CC_C_O, but changed for automake. 707 AC_DEFUN([AM_PROG_CC_C_O], 708 [AC_REQUIRE([AC_PROG_CC_C_O])dnl 709 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 710 AC_REQUIRE_AUX_FILE([compile])dnl 711 # FIXME: we rely on the cache variable name because 712 # there is no other way. 713 set dummy $CC 714 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 715 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 716 if test "$am_t" != yes; then 717 # Losing compiler, so override with the script. 718 # FIXME: It is wrong to rewrite CC. 719 # But if we don't then we get into trouble of one sort or another. 720 # A longer-term fix would be to have automake use am__CC in this case, 721 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 722 CC="$am_aux_dir/compile $CC" 723 fi 724 dnl Make sure AC_PROG_CC is never called again, or it will override our 725 dnl setting of CC. 726 m4_define([AC_PROG_CC], 727 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 728 ]) 729 731 730 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 732 731 733 # Copyright (C) 1997-2013 Free Software Foundation, Inc. 734 # 735 # This file is free software; the Free Software Foundation 736 # gives unlimited permission to copy and/or distribute it, 737 # with or without modifications, as long as this notice is preserved. 732 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 733 # Free Software Foundation, Inc. 734 # 735 # This file is free software; the Free Software Foundation 736 # gives unlimited permission to copy and/or distribute it, 737 # with or without modifications, as long as this notice is preserved. 738 739 # serial 6 738 740 739 741 # AM_MISSING_PROG(NAME, PROGRAM) … … 744 746 AC_SUBST($1)]) 745 747 748 746 749 # AM_MISSING_HAS_RUN 747 750 # ------------------ 748 # Define MISSING if not defined so far and test if it is modern enough.749 # If it is, set am_missing_run to use it, otherwise, to nothing.751 # Define MISSING if not defined so far and test if it supports --run. 752 # If it does, set am_missing_run to use it, otherwise, to nothing. 750 753 AC_DEFUN([AM_MISSING_HAS_RUN], 751 754 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl … … 760 763 fi 761 764 # Use eval to expand $SHELL 762 if eval "$MISSING -- is-lightweight"; then763 am_missing_run="$MISSING "765 if eval "$MISSING --run true"; then 766 am_missing_run="$MISSING --run " 764 767 else 765 768 am_missing_run= 766 AC_MSG_WARN(['missing' script is too old or missing]) 767 fi 769 AC_MSG_WARN([`missing' script is too old or missing]) 770 fi 771 ]) 772 773 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, 774 # Inc. 775 # 776 # This file is free software; the Free Software Foundation 777 # gives unlimited permission to copy and/or distribute it, 778 # with or without modifications, as long as this notice is preserved. 779 780 # serial 1 781 782 # AM_PROG_MKDIR_P 783 # --------------- 784 # Check for `mkdir -p'. 785 AC_DEFUN([AM_PROG_MKDIR_P], 786 [AC_PREREQ([2.60])dnl 787 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 788 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 789 dnl while keeping a definition of mkdir_p for backward compatibility. 790 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 791 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 792 dnl Makefile.ins that do not define MKDIR_P, so we do our own 793 dnl adjustment using top_builddir (which is defined more often than 794 dnl MKDIR_P). 795 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 796 case $mkdir_p in 797 [[\\/$]]* | ?:[[\\/]]*) ;; 798 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 799 esac 768 800 ]) 769 801 770 802 # Helper functions for option handling. -*- Autoconf -*- 771 803 772 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 773 # 774 # This file is free software; the Free Software Foundation 775 # gives unlimited permission to copy and/or distribute it, 776 # with or without modifications, as long as this notice is preserved. 804 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software 805 # Foundation, Inc. 806 # 807 # This file is free software; the Free Software Foundation 808 # gives unlimited permission to copy and/or distribute it, 809 # with or without modifications, as long as this notice is preserved. 810 811 # serial 5 777 812 778 813 # _AM_MANGLE_OPTION(NAME) … … 785 820 # Set option NAME. Presently that only means defining a flag for this option. 786 821 AC_DEFUN([_AM_SET_OPTION], 787 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])822 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 788 823 789 824 # _AM_SET_OPTIONS(OPTIONS) … … 799 834 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 800 835 801 # Copyright (C) 1999-2013 Free Software Foundation, Inc.802 #803 # This file is free software; the Free Software Foundation804 # gives unlimited permission to copy and/or distribute it,805 # with or without modifications, as long as this notice is preserved.806 807 # _AM_PROG_CC_C_O808 # ---------------809 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC810 # to automatically call this.811 AC_DEFUN([_AM_PROG_CC_C_O],812 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl813 AC_REQUIRE_AUX_FILE([compile])dnl814 AC_LANG_PUSH([C])dnl815 AC_CACHE_CHECK(816 [whether $CC understands -c and -o together],817 [am_cv_prog_cc_c_o],818 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])819 # Make sure it works both with $CC and with simple cc.820 # Following AC_PROG_CC_C_O, we do the test twice because some821 # compilers refuse to overwrite an existing .o file with -o,822 # though they will create one.823 am_cv_prog_cc_c_o=yes824 for am_i in 1 2; do825 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \826 && test -f conftest2.$ac_objext; then827 : OK828 else829 am_cv_prog_cc_c_o=no830 break831 fi832 done833 rm -f core conftest*834 unset am_i])835 if test "$am_cv_prog_cc_c_o" != yes; then836 # Losing compiler, so override with the script.837 # FIXME: It is wrong to rewrite CC.838 # But if we don't then we get into trouble of one sort or another.839 # A longer-term fix would be to have automake use am__CC in this case,840 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"841 CC="$am_aux_dir/compile $CC"842 fi843 AC_LANG_POP([C])])844 845 # For backward compatibility.846 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])847 848 # Copyright (C) 2001-2013 Free Software Foundation, Inc.849 #850 # This file is free software; the Free Software Foundation851 # gives unlimited permission to copy and/or distribute it,852 # with or without modifications, as long as this notice is preserved.853 854 # AM_RUN_LOG(COMMAND)855 # -------------------856 # Run COMMAND, save the exit status in ac_status, and log it.857 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)858 AC_DEFUN([AM_RUN_LOG],859 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD860 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD861 ac_status=$?862 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD863 (exit $ac_status); }])864 865 836 # Check to make sure that the build environment is sane. -*- Autoconf -*- 866 837 867 # Copyright (C) 1996-2013 Free Software Foundation, Inc. 868 # 869 # This file is free software; the Free Software Foundation 870 # gives unlimited permission to copy and/or distribute it, 871 # with or without modifications, as long as this notice is preserved. 838 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 839 # Free Software Foundation, Inc. 840 # 841 # This file is free software; the Free Software Foundation 842 # gives unlimited permission to copy and/or distribute it, 843 # with or without modifications, as long as this notice is preserved. 844 845 # serial 5 872 846 873 847 # AM_SANITY_CHECK … … 875 849 AC_DEFUN([AM_SANITY_CHECK], 876 850 [AC_MSG_CHECKING([whether build environment is sane]) 851 # Just in case 852 sleep 1 853 echo timestamp > conftest.file 877 854 # Reject unsafe characters in $srcdir or the absolute working directory 878 855 # name. Accept space and tab only in the latter. … … 885 862 case $srcdir in 886 863 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 887 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;864 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 888 865 esac 889 866 890 # Do 'set' in a subshell so we don't clobber the current shell's867 # Do `set' in a subshell so we don't clobber the current shell's 891 868 # arguments. Must try -L first in case configure is actually a 892 869 # symlink; some systems play weird games with the mod time of symlinks … … 894 871 # directory). 895 872 if ( 896 am_has_slept=no 897 for am_try in 1 2; do 898 echo "timestamp, slept: $am_has_slept" > conftest.file 899 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 900 if test "$[*]" = "X"; then 901 # -L didn't work. 902 set X `ls -t "$srcdir/configure" conftest.file` 903 fi 904 if test "$[*]" != "X $srcdir/configure conftest.file" \ 905 && test "$[*]" != "X conftest.file $srcdir/configure"; then 906 907 # If neither matched, then we have a broken ls. This can happen 908 # if, for instance, CONFIG_SHELL is bash and it inherits a 909 # broken ls alias from the environment. This has actually 910 # happened. Such a system could not be considered "sane". 911 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 912 alias in your environment]) 913 fi 914 if test "$[2]" = conftest.file || test $am_try -eq 2; then 915 break 916 fi 917 # Just in case. 918 sleep 1 919 am_has_slept=yes 920 done 873 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 874 if test "$[*]" = "X"; then 875 # -L didn't work. 876 set X `ls -t "$srcdir/configure" conftest.file` 877 fi 878 rm -f conftest.file 879 if test "$[*]" != "X $srcdir/configure conftest.file" \ 880 && test "$[*]" != "X conftest.file $srcdir/configure"; then 881 882 # If neither matched, then we have a broken ls. This can happen 883 # if, for instance, CONFIG_SHELL is bash and it inherits a 884 # broken ls alias from the environment. This has actually 885 # happened. Such a system could not be considered "sane". 886 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 887 alias in your environment]) 888 fi 889 921 890 test "$[2]" = conftest.file 922 891 ) … … 928 897 Check your system clock]) 929 898 fi 930 AC_MSG_RESULT([yes]) 931 # If we didn't sleep, we still need to ensure time stamps of config.status and 932 # generated files are strictly newer. 933 am_sleep_pid= 934 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 935 ( sleep 1 ) & 936 am_sleep_pid=$! 937 fi 938 AC_CONFIG_COMMANDS_PRE( 939 [AC_MSG_CHECKING([that generated files are newer than configure]) 940 if test -n "$am_sleep_pid"; then 941 # Hide warnings about reused PIDs. 942 wait $am_sleep_pid 2>/dev/null 943 fi 944 AC_MSG_RESULT([done])]) 945 rm -f conftest.file 946 ]) 947 948 # Copyright (C) 2009-2013 Free Software Foundation, Inc. 949 # 950 # This file is free software; the Free Software Foundation 951 # gives unlimited permission to copy and/or distribute it, 952 # with or without modifications, as long as this notice is preserved. 899 AC_MSG_RESULT(yes)]) 900 901 # Copyright (C) 2009, 2011 Free Software Foundation, Inc. 902 # 903 # This file is free software; the Free Software Foundation 904 # gives unlimited permission to copy and/or distribute it, 905 # with or without modifications, as long as this notice is preserved. 906 907 # serial 2 953 908 954 909 # AM_SILENT_RULES([DEFAULT]) 955 910 # -------------------------- 956 911 # Enable less verbose build rules; with the default set to DEFAULT 957 # ( "yes" being less verbose, "no"or empty being verbose).912 # (`yes' being less verbose, `no' or empty being verbose). 958 913 AC_DEFUN([AM_SILENT_RULES], 959 [AC_ARG_ENABLE([silent-rules], [dnl 960 AS_HELP_STRING( 961 [--enable-silent-rules], 962 [less verbose build output (undo: "make V=1")]) 963 AS_HELP_STRING( 964 [--disable-silent-rules], 965 [verbose build output (undo: "make V=0")])dnl 966 ]) 967 case $enable_silent_rules in @%:@ ((( 968 yes) AM_DEFAULT_VERBOSITY=0;; 969 no) AM_DEFAULT_VERBOSITY=1;; 970 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 914 [AC_ARG_ENABLE([silent-rules], 915 [ --enable-silent-rules less verbose build output (undo: `make V=1') 916 --disable-silent-rules verbose build output (undo: `make V=0')]) 917 case $enable_silent_rules in 918 yes) AM_DEFAULT_VERBOSITY=0;; 919 no) AM_DEFAULT_VERBOSITY=1;; 920 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 971 921 esac 972 922 dnl 973 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)923 dnl A few `make' implementations (e.g., NonStop OS and NextStep) 974 924 dnl do not support nested variable expansions. 975 925 dnl See automake bug#9928 and bug#10237. … … 989 939 fi]) 990 940 if test $am_cv_make_support_nested_variables = yes; then 991 dnl Using '$V' instead of '$(V)' breaks IRIX make.941 dnl Using `$V' instead of `$(V)' breaks IRIX make. 992 942 AM_V='$(V)' 993 943 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' … … 1006 956 ]) 1007 957 1008 # Copyright (C) 2001-2013 Free Software Foundation, Inc. 1009 # 1010 # This file is free software; the Free Software Foundation 1011 # gives unlimited permission to copy and/or distribute it, 1012 # with or without modifications, as long as this notice is preserved. 958 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. 959 # 960 # This file is free software; the Free Software Foundation 961 # gives unlimited permission to copy and/or distribute it, 962 # with or without modifications, as long as this notice is preserved. 963 964 # serial 1 1013 965 1014 966 # AM_PROG_INSTALL_STRIP 1015 967 # --------------------- 1016 # One issue with vendor 'install' (even GNU) is that you can't968 # One issue with vendor `install' (even GNU) is that you can't 1017 969 # specify the program used to strip binaries. This is especially 1018 970 # annoying in cross-compiling environments, where the build's strip 1019 971 # is unlikely to handle the host's binaries. 1020 972 # Fortunately install-sh will honor a STRIPPROG variable, so we 1021 # always use install-sh in "make install-strip", and initialize973 # always use install-sh in `make install-strip', and initialize 1022 974 # STRIPPROG with the value of the STRIP variable (set by the user). 1023 975 AC_DEFUN([AM_PROG_INSTALL_STRIP], 1024 976 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1025 # Installed binaries are usually stripped using 'strip' when the user1026 # run "make install-strip". However 'strip' might not be the right977 # Installed binaries are usually stripped using `strip' when the user 978 # run `make install-strip'. However `strip' might not be the right 1027 979 # tool to use in cross-compilation environments, therefore Automake 1028 # will honor the 'STRIP' environment variable to overrule this program.1029 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.980 # will honor the `STRIP' environment variable to overrule this program. 981 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1030 982 if test "$cross_compiling" != no; then 1031 983 AC_CHECK_TOOL([STRIP], [strip], :) … … 1034 986 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1035 987 1036 # Copyright (C) 2006-2013 Free Software Foundation, Inc. 1037 # 1038 # This file is free software; the Free Software Foundation 1039 # gives unlimited permission to copy and/or distribute it, 1040 # with or without modifications, as long as this notice is preserved. 988 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. 989 # 990 # This file is free software; the Free Software Foundation 991 # gives unlimited permission to copy and/or distribute it, 992 # with or without modifications, as long as this notice is preserved. 993 994 # serial 3 1041 995 1042 996 # _AM_SUBST_NOTMAKE(VARIABLE) … … 1053 1007 # Check how to create a tarball. -*- Autoconf -*- 1054 1008 1055 # Copyright (C) 2004-2013 Free Software Foundation, Inc. 1056 # 1057 # This file is free software; the Free Software Foundation 1058 # gives unlimited permission to copy and/or distribute it, 1059 # with or without modifications, as long as this notice is preserved. 1009 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. 1010 # 1011 # This file is free software; the Free Software Foundation 1012 # gives unlimited permission to copy and/or distribute it, 1013 # with or without modifications, as long as this notice is preserved. 1014 1015 # serial 2 1060 1016 1061 1017 # _AM_PROG_TAR(FORMAT) 1062 1018 # -------------------- 1063 1019 # Check how to create a tarball in format FORMAT. 1064 # FORMAT should be one of 'v7', 'ustar', or 'pax'.1020 # FORMAT should be one of `v7', `ustar', or `pax'. 1065 1021 # 1066 1022 # Substitute a variable $(am__tar) that is a command … … 1072 1028 # a tarball read from stdin. 1073 1029 # $(am__untar) < result.tar 1074 #1075 1030 AC_DEFUN([_AM_PROG_TAR], 1076 1031 [# Always define AMTAR for backward compatibility. Yes, it's still used 1077 1032 # in the wild :-( We should find a proper way to deprecate it ... 1078 1033 AC_SUBST([AMTAR], ['$${TAR-tar}']) 1079 1080 # We'll loop over all known methods to create a tar archive until one works. 1034 m4_if([$1], [v7], 1035 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1036 [m4_case([$1], [ustar],, [pax],, 1037 [m4_fatal([Unknown tar format])]) 1038 AC_MSG_CHECKING([how to create a $1 tar archive]) 1039 # Loop over all known methods to create a tar archive until one works. 1081 1040 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1082 1083 m4_if([$1], [v7], 1084 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1085 1086 [m4_case([$1], 1087 [ustar], 1088 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1089 # There is notably a 21 bits limit for the UID and the GID. In fact, 1090 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1091 # and bug#13588). 1092 am_max_uid=2097151 # 2^21 - 1 1093 am_max_gid=$am_max_uid 1094 # The $UID and $GID variables are not portable, so we need to resort 1095 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1096 # below are definitely unexpected, so allow the users to see them 1097 # (that is, avoid stderr redirection). 1098 am_uid=`id -u || echo unknown` 1099 am_gid=`id -g || echo unknown` 1100 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1101 if test $am_uid -le $am_max_uid; then 1102 AC_MSG_RESULT([yes]) 1103 else 1104 AC_MSG_RESULT([no]) 1105 _am_tools=none 1106 fi 1107 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1108 if test $am_gid -le $am_max_gid; then 1109 AC_MSG_RESULT([yes]) 1110 else 1111 AC_MSG_RESULT([no]) 1112 _am_tools=none 1113 fi], 1114 1115 [pax], 1116 [], 1117 1118 [m4_fatal([Unknown tar format])]) 1119 1120 AC_MSG_CHECKING([how to create a $1 tar archive]) 1121 1122 # Go ahead even if we have the value already cached. We do so because we 1123 # need to set the values for the 'am__tar' and 'am__untar' variables. 1124 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1125 1126 for _am_tool in $_am_tools; do 1127 case $_am_tool in 1128 gnutar) 1129 for _am_tar in tar gnutar gtar; do 1130 AM_RUN_LOG([$_am_tar --version]) && break 1131 done 1132 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1133 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1134 am__untar="$_am_tar -xf -" 1135 ;; 1136 plaintar) 1137 # Must skip GNU tar: if it does not support --format= it doesn't create 1138 # ustar tarball either. 1139 (tar --version) >/dev/null 2>&1 && continue 1140 am__tar='tar chf - "$$tardir"' 1141 am__tar_='tar chf - "$tardir"' 1142 am__untar='tar xf -' 1143 ;; 1144 pax) 1145 am__tar='pax -L -x $1 -w "$$tardir"' 1146 am__tar_='pax -L -x $1 -w "$tardir"' 1147 am__untar='pax -r' 1148 ;; 1149 cpio) 1150 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1151 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1152 am__untar='cpio -i -H $1 -d' 1153 ;; 1154 none) 1155 am__tar=false 1156 am__tar_=false 1157 am__untar=false 1158 ;; 1159 esac 1160 1161 # If the value was cached, stop now. We just wanted to have am__tar 1162 # and am__untar set. 1163 test -n "${am_cv_prog_tar_$1}" && break 1164 1165 # tar/untar a dummy directory, and stop if the command works. 1166 rm -rf conftest.dir 1167 mkdir conftest.dir 1168 echo GrepMe > conftest.dir/file 1169 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1170 rm -rf conftest.dir 1171 if test -s conftest.tar; then 1172 AM_RUN_LOG([$am__untar <conftest.tar]) 1173 AM_RUN_LOG([cat conftest.dir/file]) 1174 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1175 fi 1176 done 1041 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1042 # Do not fold the above two line into one, because Tru64 sh and 1043 # Solaris sh will not grok spaces in the rhs of `-'. 1044 for _am_tool in $_am_tools 1045 do 1046 case $_am_tool in 1047 gnutar) 1048 for _am_tar in tar gnutar gtar; 1049 do 1050 AM_RUN_LOG([$_am_tar --version]) && break 1051 done 1052 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1053 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1054 am__untar="$_am_tar -xf -" 1055 ;; 1056 plaintar) 1057 # Must skip GNU tar: if it does not support --format= it doesn't create 1058 # ustar tarball either. 1059 (tar --version) >/dev/null 2>&1 && continue 1060 am__tar='tar chf - "$$tardir"' 1061 am__tar_='tar chf - "$tardir"' 1062 am__untar='tar xf -' 1063 ;; 1064 pax) 1065 am__tar='pax -L -x $1 -w "$$tardir"' 1066 am__tar_='pax -L -x $1 -w "$tardir"' 1067 am__untar='pax -r' 1068 ;; 1069 cpio) 1070 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1071 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1072 am__untar='cpio -i -H $1 -d' 1073 ;; 1074 none) 1075 am__tar=false 1076 am__tar_=false 1077 am__untar=false 1078 ;; 1079 esac 1080 1081 # If the value was cached, stop now. We just wanted to have am__tar 1082 # and am__untar set. 1083 test -n "${am_cv_prog_tar_$1}" && break 1084 1085 # tar/untar a dummy directory, and stop if the command works 1177 1086 rm -rf conftest.dir 1178 1179 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1180 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1181 1087 mkdir conftest.dir 1088 echo GrepMe > conftest.dir/file 1089 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1090 rm -rf conftest.dir 1091 if test -s conftest.tar; then 1092 AM_RUN_LOG([$am__untar <conftest.tar]) 1093 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1094 fi 1095 done 1096 rm -rf conftest.dir 1097 1098 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1099 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1182 1100 AC_SUBST([am__tar]) 1183 1101 AC_SUBST([am__untar])
Note: See TracChangeset
for help on using the changeset viewer.