aclocal.m4 37 KB

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