KSquirrel – powerful image viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1056 lines
37 KiB

  1. # generated automatically by aclocal 1.10 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_if(m4_PACKAGE_VERSION, [2.61],,
  12. [m4_fatal([this file was generated for autoconf 2.61.
  13. You have another version of autoconf. If you want to use that,
  14. you should regenerate the build system entirely.], [63])])
  15. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  16. #
  17. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  18. #
  19. # This program is free software; you can redistribute it and/or modify
  20. # it under the terms of the GNU General Public License as published by
  21. # the Free Software Foundation; either version 2 of the License, or
  22. # (at your option) any later version.
  23. #
  24. # This program is distributed in the hope that it will be useful, but
  25. # WITHOUT ANY WARRANTY; without even the implied warranty of
  26. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27. # General Public License for more details.
  28. #
  29. # You should have received a copy of the GNU General Public License
  30. # along with this program; if not, write to the Free Software
  31. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  32. #
  33. # As a special exception to the GNU General Public License, if you
  34. # distribute this file as part of a program that contains a
  35. # configuration script generated by Autoconf, you may include it under
  36. # the same distribution terms that you use for the rest of that program.
  37. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  38. # ----------------------------------
  39. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  40. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  41. m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  42. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
  43. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  44. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  45. fi
  46. if test -n "$PKG_CONFIG"; then
  47. _pkg_min_version=m4_default([$1], [0.9.0])
  48. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  49. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  50. AC_MSG_RESULT([yes])
  51. else
  52. AC_MSG_RESULT([no])
  53. PKG_CONFIG=""
  54. fi
  55. fi[]dnl
  56. ])# PKG_PROG_PKG_CONFIG
  57. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  58. #
  59. # Check to see whether a particular set of modules exists. Similar
  60. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  61. #
  62. #
  63. # Similar to PKG_CHECK_MODULES, make sure that the first instance of
  64. # this or PKG_CHECK_MODULES is called, or make sure to call
  65. # PKG_CHECK_EXISTS manually
  66. # --------------------------------------------------------------
  67. AC_DEFUN([PKG_CHECK_EXISTS],
  68. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  69. if test -n "$PKG_CONFIG" && \
  70. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  71. m4_ifval([$2], [$2], [:])
  72. m4_ifvaln([$3], [else
  73. $3])dnl
  74. fi])
  75. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  76. # ---------------------------------------------
  77. m4_define([_PKG_CONFIG],
  78. [if test -n "$PKG_CONFIG"; then
  79. if test -n "$$1"; then
  80. pkg_cv_[]$1="$$1"
  81. else
  82. PKG_CHECK_EXISTS([$3],
  83. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  84. [pkg_failed=yes])
  85. fi
  86. else
  87. pkg_failed=untried
  88. fi[]dnl
  89. ])# _PKG_CONFIG
  90. # _PKG_SHORT_ERRORS_SUPPORTED
  91. # -----------------------------
  92. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  93. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  94. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  95. _pkg_short_errors_supported=yes
  96. else
  97. _pkg_short_errors_supported=no
  98. fi[]dnl
  99. ])# _PKG_SHORT_ERRORS_SUPPORTED
  100. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  101. # [ACTION-IF-NOT-FOUND])
  102. #
  103. #
  104. # Note that if there is a possibility the first call to
  105. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  106. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  107. #
  108. #
  109. # --------------------------------------------------------------
  110. AC_DEFUN([PKG_CHECK_MODULES],
  111. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  112. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  113. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  114. pkg_failed=no
  115. AC_MSG_CHECKING([for $1])
  116. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  117. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  118. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  119. and $1[]_LIBS to avoid the need to call pkg-config.
  120. See the pkg-config man page for more details.])
  121. if test $pkg_failed = yes; then
  122. _PKG_SHORT_ERRORS_SUPPORTED
  123. if test $_pkg_short_errors_supported = yes; then
  124. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
  125. else
  126. $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
  127. fi
  128. # Put the nasty error message in config.log where it belongs
  129. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  130. ifelse([$4], , [AC_MSG_ERROR(dnl
  131. [Package requirements ($2) were not met:
  132. $$1_PKG_ERRORS
  133. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  134. installed software in a non-standard prefix.
  135. _PKG_TEXT
  136. ])],
  137. [AC_MSG_RESULT([no])
  138. $4])
  139. elif test $pkg_failed = untried; then
  140. ifelse([$4], , [AC_MSG_FAILURE(dnl
  141. [The pkg-config script could not be found or is too old. Make sure it
  142. is in your PATH or set the PKG_CONFIG environment variable to the full
  143. path to pkg-config.
  144. _PKG_TEXT
  145. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  146. [$4])
  147. else
  148. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  149. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  150. AC_MSG_RESULT([yes])
  151. ifelse([$3], , :, [$3])
  152. fi[]dnl
  153. ])# PKG_CHECK_MODULES
  154. # Copyright (C) 2002, 2003, 2005, 2006 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. # AM_AUTOMAKE_VERSION(VERSION)
  160. # ----------------------------
  161. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  162. # generated from the m4 files accompanying Automake X.Y.
  163. # (This private macro should not be called outside this file.)
  164. AC_DEFUN([AM_AUTOMAKE_VERSION],
  165. [am__api_version='1.10'
  166. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  167. dnl require some minimum version. Point them to the right macro.
  168. m4_if([$1], [1.10], [],
  169. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  170. ])
  171. # _AM_AUTOCONF_VERSION(VERSION)
  172. # -----------------------------
  173. # aclocal traces this macro to find the Autoconf version.
  174. # This is a private macro too. Using m4_define simplifies
  175. # the logic in aclocal, which can simply ignore this definition.
  176. m4_define([_AM_AUTOCONF_VERSION], [])
  177. # AM_SET_CURRENT_AUTOMAKE_VERSION
  178. # -------------------------------
  179. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  180. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  181. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  182. [AM_AUTOMAKE_VERSION([1.10])dnl
  183. _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  184. # Figure out how to run the assembler. -*- Autoconf -*-
  185. # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  186. #
  187. # This file is free software; the Free Software Foundation
  188. # gives unlimited permission to copy and/or distribute it,
  189. # with or without modifications, as long as this notice is preserved.
  190. # serial 5
  191. # AM_PROG_AS
  192. # ----------
  193. AC_DEFUN([AM_PROG_AS],
  194. [# By default we simply use the C compiler to build assembly code.
  195. AC_REQUIRE([AC_PROG_CC])
  196. test "${CCAS+set}" = set || CCAS=$CC
  197. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  198. AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
  199. AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
  200. _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
  201. ])
  202. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  203. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  204. #
  205. # This file is free software; the Free Software Foundation
  206. # gives unlimited permission to copy and/or distribute it,
  207. # with or without modifications, as long as this notice is preserved.
  208. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  209. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  210. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  211. #
  212. # Of course, Automake must honor this variable whenever it calls a
  213. # tool from the auxiliary directory. The problem is that $srcdir (and
  214. # therefore $ac_aux_dir as well) can be either absolute or relative,
  215. # depending on how configure is run. This is pretty annoying, since
  216. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  217. # source directory, any form will work fine, but in subdirectories a
  218. # relative path needs to be adjusted first.
  219. #
  220. # $ac_aux_dir/missing
  221. # fails when called from a subdirectory if $ac_aux_dir is relative
  222. # $top_srcdir/$ac_aux_dir/missing
  223. # fails if $ac_aux_dir is absolute,
  224. # fails when called from a subdirectory in a VPATH build with
  225. # a relative $ac_aux_dir
  226. #
  227. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  228. # are both prefixed by $srcdir. In an in-source build this is usually
  229. # harmless because $srcdir is `.', but things will broke when you
  230. # start a VPATH build or use an absolute $srcdir.
  231. #
  232. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  233. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  234. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  235. # and then we would define $MISSING as
  236. # MISSING="\${SHELL} $am_aux_dir/missing"
  237. # This will work as long as MISSING is not called from configure, because
  238. # unfortunately $(top_srcdir) has no meaning in configure.
  239. # However there are other variables, like CC, which are often used in
  240. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  241. #
  242. # Another solution, used here, is to always expand $ac_aux_dir to an
  243. # absolute PATH. The drawback is that using absolute paths prevent a
  244. # configured tree to be moved without reconfiguration.
  245. AC_DEFUN([AM_AUX_DIR_EXPAND],
  246. [dnl Rely on autoconf to set up CDPATH properly.
  247. AC_PREREQ([2.50])dnl
  248. # expand $ac_aux_dir to an absolute path
  249. am_aux_dir=`cd $ac_aux_dir && pwd`
  250. ])
  251. # AM_CONDITIONAL -*- Autoconf -*-
  252. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  253. # Free Software Foundation, Inc.
  254. #
  255. # This file is free software; the Free Software Foundation
  256. # gives unlimited permission to copy and/or distribute it,
  257. # with or without modifications, as long as this notice is preserved.
  258. # serial 8
  259. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  260. # -------------------------------------
  261. # Define a conditional.
  262. AC_DEFUN([AM_CONDITIONAL],
  263. [AC_PREREQ(2.52)dnl
  264. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  265. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  266. AC_SUBST([$1_TRUE])dnl
  267. AC_SUBST([$1_FALSE])dnl
  268. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  269. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  270. if $2; then
  271. $1_TRUE=
  272. $1_FALSE='#'
  273. else
  274. $1_TRUE='#'
  275. $1_FALSE=
  276. fi
  277. AC_CONFIG_COMMANDS_PRE(
  278. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  279. AC_MSG_ERROR([[conditional "$1" was never defined.
  280. Usually this means the macro was only invoked conditionally.]])
  281. fi])])
  282. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  283. # Free Software Foundation, Inc.
  284. #
  285. # This file is free software; the Free Software Foundation
  286. # gives unlimited permission to copy and/or distribute it,
  287. # with or without modifications, as long as this notice is preserved.
  288. # serial 9
  289. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  290. # written in clear, in which case automake, when reading aclocal.m4,
  291. # will think it sees a *use*, and therefore will trigger all it's
  292. # C support machinery. Also note that it means that autoscan, seeing
  293. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  294. # _AM_DEPENDENCIES(NAME)
  295. # ----------------------
  296. # See how the compiler implements dependency checking.
  297. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  298. # We try a few techniques and use that to set a single cache variable.
  299. #
  300. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  301. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  302. # dependency, and given that the user is not expected to run this macro,
  303. # just rely on AC_PROG_CC.
  304. AC_DEFUN([_AM_DEPENDENCIES],
  305. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  306. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  307. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  308. AC_REQUIRE([AM_DEP_TRACK])dnl
  309. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  310. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  311. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  312. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  313. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  314. [depcc="$$1" am_compiler_list=])
  315. AC_CACHE_CHECK([dependency style of $depcc],
  316. [am_cv_$1_dependencies_compiler_type],
  317. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  318. # We make a subdir and do the tests there. Otherwise we can end up
  319. # making bogus files that we don't know about and never remove. For
  320. # instance it was reported that on HP-UX the gcc test will end up
  321. # making a dummy file named `D' -- because `-MD' means `put the output
  322. # in D'.
  323. mkdir conftest.dir
  324. # Copy depcomp to subdir because otherwise we won't find it if we're
  325. # using a relative directory.
  326. cp "$am_depcomp" conftest.dir
  327. cd conftest.dir
  328. # We will build objects and dependencies in a subdirectory because
  329. # it helps to detect inapplicable dependency modes. For instance
  330. # both Tru64's cc and ICC support -MD to output dependencies as a
  331. # side effect of compilation, but ICC will put the dependencies in
  332. # the current directory while Tru64 will put them in the object
  333. # directory.
  334. mkdir sub
  335. am_cv_$1_dependencies_compiler_type=none
  336. if test "$am_compiler_list" = ""; then
  337. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  338. fi
  339. for depmode in $am_compiler_list; do
  340. # Setup a source with many dependencies, because some compilers
  341. # like to wrap large dependency lists on column 80 (with \), and
  342. # we should not choose a depcomp mode which is confused by this.
  343. #
  344. # We need to recreate these files for each test, as the compiler may
  345. # overwrite some of them when testing with obscure command lines.
  346. # This happens at least with the AIX C compiler.
  347. : > sub/conftest.c
  348. for i in 1 2 3 4 5 6; do
  349. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  350. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  351. # Solaris 8's {/usr,}/bin/sh.
  352. touch sub/conftst$i.h
  353. done
  354. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  355. case $depmode in
  356. nosideeffect)
  357. # after this tag, mechanisms are not by side-effect, so they'll
  358. # only be used when explicitly requested
  359. if test "x$enable_dependency_tracking" = xyes; then
  360. continue
  361. else
  362. break
  363. fi
  364. ;;
  365. none) break ;;
  366. esac
  367. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  368. # mode. It turns out that the SunPro C++ compiler does not properly
  369. # handle `-M -o', and we need to detect this.
  370. if depmode=$depmode \
  371. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  372. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  373. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  374. >/dev/null 2>conftest.err &&
  375. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  376. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  377. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  378. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  379. # icc doesn't choke on unknown options, it will just issue warnings
  380. # or remarks (even with -Werror). So we grep stderr for any message
  381. # that says an option was ignored or not supported.
  382. # When given -MP, icc 7.0 and 7.1 complain thusly:
  383. # icc: Command line warning: ignoring option '-M'; no argument required
  384. # The diagnosis changed in icc 8.0:
  385. # icc: Command line remark: option '-MP' not supported
  386. if (grep 'ignoring option' conftest.err ||
  387. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  388. am_cv_$1_dependencies_compiler_type=$depmode
  389. break
  390. fi
  391. fi
  392. done
  393. cd ..
  394. rm -rf conftest.dir
  395. else
  396. am_cv_$1_dependencies_compiler_type=none
  397. fi
  398. ])
  399. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  400. AM_CONDITIONAL([am__fastdep$1], [
  401. test "x$enable_dependency_tracking" != xno \
  402. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  403. ])
  404. # AM_SET_DEPDIR
  405. # -------------
  406. # Choose a directory name for dependency files.
  407. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  408. AC_DEFUN([AM_SET_DEPDIR],
  409. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  410. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  411. ])
  412. # AM_DEP_TRACK
  413. # ------------
  414. AC_DEFUN([AM_DEP_TRACK],
  415. [AC_ARG_ENABLE(dependency-tracking,
  416. [ --disable-dependency-tracking speeds up one-time build
  417. --enable-dependency-tracking do not reject slow dependency extractors])
  418. if test "x$enable_dependency_tracking" != xno; then
  419. am_depcomp="$ac_aux_dir/depcomp"
  420. AMDEPBACKSLASH='\'
  421. fi
  422. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  423. AC_SUBST([AMDEPBACKSLASH])dnl
  424. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  425. ])
  426. # Generate code to set up dependency tracking. -*- Autoconf -*-
  427. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  428. # Free Software Foundation, Inc.
  429. #
  430. # This file is free software; the Free Software Foundation
  431. # gives unlimited permission to copy and/or distribute it,
  432. # with or without modifications, as long as this notice is preserved.
  433. #serial 3
  434. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  435. # ------------------------------
  436. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  437. [for mf in $CONFIG_FILES; do
  438. # Strip MF so we end up with the name of the file.
  439. mf=`echo "$mf" | sed -e 's/:.*$//'`
  440. # Check whether this is an Automake generated Makefile or not.
  441. # We used to match only the files named `Makefile.in', but
  442. # some people rename them; so instead we look at the file content.
  443. # Grep'ing the first line is not enough: some people post-process
  444. # each Makefile.in and add a new line on top of each file to say so.
  445. # Grep'ing the whole file is not good either: AIX grep has a line
  446. # limit of 2048, but all sed's we know have understand at least 4000.
  447. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  448. dirpart=`AS_DIRNAME("$mf")`
  449. else
  450. continue
  451. fi
  452. # Extract the definition of DEPDIR, am__include, and am__quote
  453. # from the Makefile without running `make'.
  454. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  455. test -z "$DEPDIR" && continue
  456. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  457. test -z "am__include" && continue
  458. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  459. # When using ansi2knr, U may be empty or an underscore; expand it
  460. U=`sed -n 's/^U = //p' < "$mf"`
  461. # Find all dependency output files, they are included files with
  462. # $(DEPDIR) in their names. We invoke sed twice because it is the
  463. # simplest approach to changing $(DEPDIR) to its actual value in the
  464. # expansion.
  465. for file in `sed -n "
  466. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  467. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  468. # Make sure the directory exists.
  469. test -f "$dirpart/$file" && continue
  470. fdir=`AS_DIRNAME(["$file"])`
  471. AS_MKDIR_P([$dirpart/$fdir])
  472. # echo "creating $dirpart/$file"
  473. echo '# dummy' > "$dirpart/$file"
  474. done
  475. done
  476. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  477. # AM_OUTPUT_DEPENDENCY_COMMANDS
  478. # -----------------------------
  479. # This macro should only be invoked once -- use via AC_REQUIRE.
  480. #
  481. # This code is only required when automatic dependency tracking
  482. # is enabled. FIXME. This creates each `.P' file that we will
  483. # need in order to bootstrap the dependency handling code.
  484. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  485. [AC_CONFIG_COMMANDS([depfiles],
  486. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  487. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  488. ])
  489. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  490. # Free Software Foundation, Inc.
  491. #
  492. # This file is free software; the Free Software Foundation
  493. # gives unlimited permission to copy and/or distribute it,
  494. # with or without modifications, as long as this notice is preserved.
  495. # serial 8
  496. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  497. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  498. # Do all the work for Automake. -*- Autoconf -*-
  499. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  500. # 2005, 2006 Free Software Foundation, Inc.
  501. #
  502. # This file is free software; the Free Software Foundation
  503. # gives unlimited permission to copy and/or distribute it,
  504. # with or without modifications, as long as this notice is preserved.
  505. # serial 12
  506. # This macro actually does too much. Some checks are only needed if
  507. # your package does certain things. But this isn't really a big deal.
  508. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  509. # AM_INIT_AUTOMAKE([OPTIONS])
  510. # -----------------------------------------------
  511. # The call with PACKAGE and VERSION arguments is the old style
  512. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  513. # and VERSION should now be passed to AC_INIT and removed from
  514. # the call to AM_INIT_AUTOMAKE.
  515. # We support both call styles for the transition. After
  516. # the next Automake release, Autoconf can make the AC_INIT
  517. # arguments mandatory, and then we can depend on a new Autoconf
  518. # release and drop the old call support.
  519. AC_DEFUN([AM_INIT_AUTOMAKE],
  520. [AC_PREREQ([2.60])dnl
  521. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  522. dnl the ones we care about.
  523. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  524. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  525. AC_REQUIRE([AC_PROG_INSTALL])dnl
  526. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  527. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  528. # is not polluted with repeated "-I."
  529. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  530. # test to see if srcdir already configured
  531. if test -f $srcdir/config.status; then
  532. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  533. fi
  534. fi
  535. # test whether we have cygpath
  536. if test -z "$CYGPATH_W"; then
  537. if (cygpath --version) >/dev/null 2>/dev/null; then
  538. CYGPATH_W='cygpath -w'
  539. else
  540. CYGPATH_W=echo
  541. fi
  542. fi
  543. AC_SUBST([CYGPATH_W])
  544. # Define the identity of the package.
  545. dnl Distinguish between old-style and new-style calls.
  546. m4_ifval([$2],
  547. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  548. AC_SUBST([PACKAGE], [$1])dnl
  549. AC_SUBST([VERSION], [$2])],
  550. [_AM_SET_OPTIONS([$1])dnl
  551. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  552. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  553. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  554. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  555. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  556. _AM_IF_OPTION([no-define],,
  557. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  558. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  559. # Some tools Automake needs.
  560. AC_REQUIRE([AM_SANITY_CHECK])dnl
  561. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  562. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  563. AM_MISSING_PROG(AUTOCONF, autoconf)
  564. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  565. AM_MISSING_PROG(AUTOHEADER, autoheader)
  566. AM_MISSING_PROG(MAKEINFO, makeinfo)
  567. AM_PROG_INSTALL_SH
  568. AM_PROG_INSTALL_STRIP
  569. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  570. # We need awk for the "check" target. The system "awk" is bad on
  571. # some platforms.
  572. AC_REQUIRE([AC_PROG_AWK])dnl
  573. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  574. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  575. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  576. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  577. [_AM_PROG_TAR([v7])])])
  578. _AM_IF_OPTION([no-dependencies],,
  579. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  580. [_AM_DEPENDENCIES(CC)],
  581. [define([AC_PROG_CC],
  582. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  583. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  584. [_AM_DEPENDENCIES(CXX)],
  585. [define([AC_PROG_CXX],
  586. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  587. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  588. [_AM_DEPENDENCIES(OBJC)],
  589. [define([AC_PROG_OBJC],
  590. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  591. ])
  592. ])
  593. # When config.status generates a header, we must update the stamp-h file.
  594. # This file resides in the same directory as the config header
  595. # that is generated. The stamp files are numbered to have different names.
  596. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  597. # loop where config.status creates the headers, so we can generate
  598. # our stamp files there.
  599. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  600. [# Compute $1's index in $config_headers.
  601. _am_stamp_count=1
  602. for _am_header in $config_headers :; do
  603. case $_am_header in
  604. $1 | $1:* )
  605. break ;;
  606. * )
  607. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  608. esac
  609. done
  610. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  611. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  612. #
  613. # This file is free software; the Free Software Foundation
  614. # gives unlimited permission to copy and/or distribute it,
  615. # with or without modifications, as long as this notice is preserved.
  616. # AM_PROG_INSTALL_SH
  617. # ------------------
  618. # Define $install_sh.
  619. AC_DEFUN([AM_PROG_INSTALL_SH],
  620. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  621. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  622. AC_SUBST(install_sh)])
  623. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  624. #
  625. # This file is free software; the Free Software Foundation
  626. # gives unlimited permission to copy and/or distribute it,
  627. # with or without modifications, as long as this notice is preserved.
  628. # serial 2
  629. # Check whether the underlying file-system supports filenames
  630. # with a leading dot. For instance MS-DOS doesn't.
  631. AC_DEFUN([AM_SET_LEADING_DOT],
  632. [rm -rf .tst 2>/dev/null
  633. mkdir .tst 2>/dev/null
  634. if test -d .tst; then
  635. am__leading_dot=.
  636. else
  637. am__leading_dot=_
  638. fi
  639. rmdir .tst 2>/dev/null
  640. AC_SUBST([am__leading_dot])])
  641. # Check to see how 'make' treats includes. -*- Autoconf -*-
  642. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  643. #
  644. # This file is free software; the Free Software Foundation
  645. # gives unlimited permission to copy and/or distribute it,
  646. # with or without modifications, as long as this notice is preserved.
  647. # serial 3
  648. # AM_MAKE_INCLUDE()
  649. # -----------------
  650. # Check to see how make treats includes.
  651. AC_DEFUN([AM_MAKE_INCLUDE],
  652. [am_make=${MAKE-make}
  653. cat > confinc << 'END'
  654. am__doit:
  655. @echo done
  656. .PHONY: am__doit
  657. END
  658. # If we don't find an include directive, just comment out the code.
  659. AC_MSG_CHECKING([for style of include used by $am_make])
  660. am__include="#"
  661. am__quote=
  662. _am_result=none
  663. # First try GNU make style include.
  664. echo "include confinc" > confmf
  665. # We grep out `Entering directory' and `Leaving directory'
  666. # messages which can occur if `w' ends up in MAKEFLAGS.
  667. # In particular we don't look at `^make:' because GNU make might
  668. # be invoked under some other name (usually "gmake"), in which
  669. # case it prints its new name instead of `make'.
  670. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  671. am__include=include
  672. am__quote=
  673. _am_result=GNU
  674. fi
  675. # Now try BSD make style include.
  676. if test "$am__include" = "#"; then
  677. echo '.include "confinc"' > confmf
  678. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  679. am__include=.include
  680. am__quote="\""
  681. _am_result=BSD
  682. fi
  683. fi
  684. AC_SUBST([am__include])
  685. AC_SUBST([am__quote])
  686. AC_MSG_RESULT([$_am_result])
  687. rm -f confinc confmf
  688. ])
  689. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  690. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  691. # Free Software Foundation, Inc.
  692. #
  693. # This file is free software; the Free Software Foundation
  694. # gives unlimited permission to copy and/or distribute it,
  695. # with or without modifications, as long as this notice is preserved.
  696. # serial 5
  697. # AM_MISSING_PROG(NAME, PROGRAM)
  698. # ------------------------------
  699. AC_DEFUN([AM_MISSING_PROG],
  700. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  701. $1=${$1-"${am_missing_run}$2"}
  702. AC_SUBST($1)])
  703. # AM_MISSING_HAS_RUN
  704. # ------------------
  705. # Define MISSING if not defined so far and test if it supports --run.
  706. # If it does, set am_missing_run to use it, otherwise, to nothing.
  707. AC_DEFUN([AM_MISSING_HAS_RUN],
  708. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  709. AC_REQUIRE_AUX_FILE([missing])dnl
  710. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  711. # Use eval to expand $SHELL
  712. if eval "$MISSING --run true"; then
  713. am_missing_run="$MISSING --run "
  714. else
  715. am_missing_run=
  716. AC_MSG_WARN([`missing' script is too old or missing])
  717. fi
  718. ])
  719. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  720. #
  721. # This file is free software; the Free Software Foundation
  722. # gives unlimited permission to copy and/or distribute it,
  723. # with or without modifications, as long as this notice is preserved.
  724. # AM_PROG_MKDIR_P
  725. # ---------------
  726. # Check for `mkdir -p'.
  727. AC_DEFUN([AM_PROG_MKDIR_P],
  728. [AC_PREREQ([2.60])dnl
  729. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  730. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  731. dnl while keeping a definition of mkdir_p for backward compatibility.
  732. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  733. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  734. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  735. dnl adjustment using top_builddir (which is defined more often than
  736. dnl MKDIR_P).
  737. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  738. case $mkdir_p in
  739. [[\\/$]]* | ?:[[\\/]]*) ;;
  740. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  741. esac
  742. ])
  743. # Helper functions for option handling. -*- Autoconf -*-
  744. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  745. #
  746. # This file is free software; the Free Software Foundation
  747. # gives unlimited permission to copy and/or distribute it,
  748. # with or without modifications, as long as this notice is preserved.
  749. # serial 3
  750. # _AM_MANGLE_OPTION(NAME)
  751. # -----------------------
  752. AC_DEFUN([_AM_MANGLE_OPTION],
  753. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  754. # _AM_SET_OPTION(NAME)
  755. # ------------------------------
  756. # Set option NAME. Presently that only means defining a flag for this option.
  757. AC_DEFUN([_AM_SET_OPTION],
  758. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  759. # _AM_SET_OPTIONS(OPTIONS)
  760. # ----------------------------------
  761. # OPTIONS is a space-separated list of Automake options.
  762. AC_DEFUN([_AM_SET_OPTIONS],
  763. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  764. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  765. # -------------------------------------------
  766. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  767. AC_DEFUN([_AM_IF_OPTION],
  768. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  769. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  770. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  771. # Free Software Foundation, Inc.
  772. #
  773. # This file is free software; the Free Software Foundation
  774. # gives unlimited permission to copy and/or distribute it,
  775. # with or without modifications, as long as this notice is preserved.
  776. # serial 4
  777. # AM_SANITY_CHECK
  778. # ---------------
  779. AC_DEFUN([AM_SANITY_CHECK],
  780. [AC_MSG_CHECKING([whether build environment is sane])
  781. # Just in case
  782. sleep 1
  783. echo timestamp > conftest.file
  784. # Do `set' in a subshell so we don't clobber the current shell's
  785. # arguments. Must try -L first in case configure is actually a
  786. # symlink; some systems play weird games with the mod time of symlinks
  787. # (eg FreeBSD returns the mod time of the symlink's containing
  788. # directory).
  789. if (
  790. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  791. if test "$[*]" = "X"; then
  792. # -L didn't work.
  793. set X `ls -t $srcdir/configure conftest.file`
  794. fi
  795. rm -f conftest.file
  796. if test "$[*]" != "X $srcdir/configure conftest.file" \
  797. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  798. # If neither matched, then we have a broken ls. This can happen
  799. # if, for instance, CONFIG_SHELL is bash and it inherits a
  800. # broken ls alias from the environment. This has actually
  801. # happened. Such a system could not be considered "sane".
  802. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  803. alias in your environment])
  804. fi
  805. test "$[2]" = conftest.file
  806. )
  807. then
  808. # Ok.
  809. :
  810. else
  811. AC_MSG_ERROR([newly created file is older than distributed files!
  812. Check your system clock])
  813. fi
  814. AC_MSG_RESULT(yes)])
  815. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  816. #
  817. # This file is free software; the Free Software Foundation
  818. # gives unlimited permission to copy and/or distribute it,
  819. # with or without modifications, as long as this notice is preserved.
  820. # AM_PROG_INSTALL_STRIP
  821. # ---------------------
  822. # One issue with vendor `install' (even GNU) is that you can't
  823. # specify the program used to strip binaries. This is especially
  824. # annoying in cross-compiling environments, where the build's strip
  825. # is unlikely to handle the host's binaries.
  826. # Fortunately install-sh will honor a STRIPPROG variable, so we
  827. # always use install-sh in `make install-strip', and initialize
  828. # STRIPPROG with the value of the STRIP variable (set by the user).
  829. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  830. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  831. # Installed binaries are usually stripped using `strip' when the user
  832. # run `make install-strip'. However `strip' might not be the right
  833. # tool to use in cross-compilation environments, therefore Automake
  834. # will honor the `STRIP' environment variable to overrule this program.
  835. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  836. if test "$cross_compiling" != no; then
  837. AC_CHECK_TOOL([STRIP], [strip], :)
  838. fi
  839. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  840. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  841. # Copyright (C) 2006 Free Software Foundation, Inc.
  842. #
  843. # This file is free software; the Free Software Foundation
  844. # gives unlimited permission to copy and/or distribute it,
  845. # with or without modifications, as long as this notice is preserved.
  846. # _AM_SUBST_NOTMAKE(VARIABLE)
  847. # ---------------------------
  848. # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  849. # This macro is traced by Automake.
  850. AC_DEFUN([_AM_SUBST_NOTMAKE])
  851. # Check how to create a tarball. -*- Autoconf -*-
  852. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  853. #
  854. # This file is free software; the Free Software Foundation
  855. # gives unlimited permission to copy and/or distribute it,
  856. # with or without modifications, as long as this notice is preserved.
  857. # serial 2
  858. # _AM_PROG_TAR(FORMAT)
  859. # --------------------
  860. # Check how to create a tarball in format FORMAT.
  861. # FORMAT should be one of `v7', `ustar', or `pax'.
  862. #
  863. # Substitute a variable $(am__tar) that is a command
  864. # writing to stdout a FORMAT-tarball containing the directory
  865. # $tardir.
  866. # tardir=directory && $(am__tar) > result.tar
  867. #
  868. # Substitute a variable $(am__untar) that extract such
  869. # a tarball read from stdin.
  870. # $(am__untar) < result.tar
  871. AC_DEFUN([_AM_PROG_TAR],
  872. [# Always define AMTAR for backward compatibility.
  873. AM_MISSING_PROG([AMTAR], [tar])
  874. m4_if([$1], [v7],
  875. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  876. [m4_case([$1], [ustar],, [pax],,
  877. [m4_fatal([Unknown tar format])])
  878. AC_MSG_CHECKING([how to create a $1 tar archive])
  879. # Loop over all known methods to create a tar archive until one works.
  880. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  881. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  882. # Do not fold the above two line into one, because Tru64 sh and
  883. # Solaris sh will not grok spaces in the rhs of `-'.
  884. for _am_tool in $_am_tools
  885. do
  886. case $_am_tool in
  887. gnutar)
  888. for _am_tar in tar gnutar gtar;
  889. do
  890. AM_RUN_LOG([$_am_tar --version]) && break
  891. done
  892. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  893. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  894. am__untar="$_am_tar -xf -"
  895. ;;
  896. plaintar)
  897. # Must skip GNU tar: if it does not support --format= it doesn't create
  898. # ustar tarball either.
  899. (tar --version) >/dev/null 2>&1 && continue
  900. am__tar='tar chf - "$$tardir"'
  901. am__tar_='tar chf - "$tardir"'
  902. am__untar='tar xf -'
  903. ;;
  904. pax)
  905. am__tar='pax -L -x $1 -w "$$tardir"'
  906. am__tar_='pax -L -x $1 -w "$tardir"'
  907. am__untar='pax -r'
  908. ;;
  909. cpio)
  910. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  911. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  912. am__untar='cpio -i -H $1 -d'
  913. ;;
  914. none)
  915. am__tar=false
  916. am__tar_=false
  917. am__untar=false
  918. ;;
  919. esac
  920. # If the value was cached, stop now. We just wanted to have am__tar
  921. # and am__untar set.
  922. test -n "${am_cv_prog_tar_$1}" && break
  923. # tar/untar a dummy directory, and stop if the command works
  924. rm -rf conftest.dir
  925. mkdir conftest.dir
  926. echo GrepMe > conftest.dir/file
  927. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  928. rm -rf conftest.dir
  929. if test -s conftest.tar; then
  930. AM_RUN_LOG([$am__untar <conftest.tar])
  931. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  932. fi
  933. done
  934. rm -rf conftest.dir
  935. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  936. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  937. AC_SUBST([am__tar])
  938. AC_SUBST([am__untar])
  939. ]) # _AM_PROG_TAR
  940. m4_include([acinclude.m4])