aclocal.m4 46 KB

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