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.

1218 lines
43 KiB

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