TorK – anonymity manager for TDE
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.

aclocal.m4 36KB

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