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

aclocal.m4 58 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617
  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. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  19. # serial 1 (pkg-config-0.24)
  20. #
  21. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  22. #
  23. # This program is free software; you can redistribute it and/or modify
  24. # it under the terms of the GNU General Public License as published by
  25. # the Free Software Foundation; either version 2 of the License, or
  26. # (at your option) any later version.
  27. #
  28. # This program is distributed in the hope that it will be useful, but
  29. # WITHOUT ANY WARRANTY; without even the implied warranty of
  30. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  31. # General Public License for more details.
  32. #
  33. # You should have received a copy of the GNU General Public License
  34. # along with this program; if not, write to the Free Software
  35. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  36. #
  37. # As a special exception to the GNU General Public License, if you
  38. # distribute this file as part of a program that contains a
  39. # configuration script generated by Autoconf, you may include it under
  40. # the same distribution terms that you use for the rest of that program.
  41. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  42. # ----------------------------------
  43. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  44. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  45. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  46. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  47. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  48. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  49. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  50. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  51. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  52. fi
  53. if test -n "$PKG_CONFIG"; then
  54. _pkg_min_version=m4_default([$1], [0.9.0])
  55. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  56. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  57. AC_MSG_RESULT([yes])
  58. else
  59. AC_MSG_RESULT([no])
  60. PKG_CONFIG=""
  61. fi
  62. fi[]dnl
  63. ])# PKG_PROG_PKG_CONFIG
  64. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  65. #
  66. # Check to see whether a particular set of modules exists. Similar
  67. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  68. #
  69. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  70. # only at the first occurence in configure.ac, so if the first place
  71. # it's called might be skipped (such as if it is within an "if", you
  72. # have to call PKG_CHECK_EXISTS manually
  73. # --------------------------------------------------------------
  74. AC_DEFUN([PKG_CHECK_EXISTS],
  75. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  76. if test -n "$PKG_CONFIG" && \
  77. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  78. m4_default([$2], [:])
  79. m4_ifvaln([$3], [else
  80. $3])dnl
  81. fi])
  82. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  83. # ---------------------------------------------
  84. m4_define([_PKG_CONFIG],
  85. [if test -n "$$1"; then
  86. pkg_cv_[]$1="$$1"
  87. elif test -n "$PKG_CONFIG"; then
  88. PKG_CHECK_EXISTS([$3],
  89. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  90. test "x$?" != "x0" && pkg_failed=yes ],
  91. [pkg_failed=yes])
  92. else
  93. pkg_failed=untried
  94. fi[]dnl
  95. ])# _PKG_CONFIG
  96. # _PKG_SHORT_ERRORS_SUPPORTED
  97. # -----------------------------
  98. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  99. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  100. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  101. _pkg_short_errors_supported=yes
  102. else
  103. _pkg_short_errors_supported=no
  104. fi[]dnl
  105. ])# _PKG_SHORT_ERRORS_SUPPORTED
  106. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  107. # [ACTION-IF-NOT-FOUND])
  108. #
  109. #
  110. # Note that if there is a possibility the first call to
  111. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  112. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  113. #
  114. #
  115. # --------------------------------------------------------------
  116. AC_DEFUN([PKG_CHECK_MODULES],
  117. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  118. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  119. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  120. pkg_failed=no
  121. AC_MSG_CHECKING([for $1])
  122. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  123. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  124. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  125. and $1[]_LIBS to avoid the need to call pkg-config.
  126. See the pkg-config man page for more details.])
  127. if test $pkg_failed = yes; then
  128. AC_MSG_RESULT([no])
  129. _PKG_SHORT_ERRORS_SUPPORTED
  130. if test $_pkg_short_errors_supported = yes; then
  131. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  132. else
  133. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  134. fi
  135. # Put the nasty error message in config.log where it belongs
  136. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  137. m4_default([$4], [AC_MSG_ERROR(
  138. [Package requirements ($2) were not met:
  139. $$1_PKG_ERRORS
  140. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  141. installed software in a non-standard prefix.
  142. _PKG_TEXT])[]dnl
  143. ])
  144. elif test $pkg_failed = untried; then
  145. AC_MSG_RESULT([no])
  146. m4_default([$4], [AC_MSG_FAILURE(
  147. [The pkg-config script could not be found or is too old. Make sure it
  148. is in your PATH or set the PKG_CONFIG environment variable to the full
  149. path to pkg-config.
  150. _PKG_TEXT
  151. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  152. ])
  153. else
  154. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  155. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  156. AC_MSG_RESULT([yes])
  157. $3
  158. fi[]dnl
  159. ])# PKG_CHECK_MODULES
  160. # PKG_INSTALLDIR(DIRECTORY)
  161. # -------------------------
  162. # Substitutes the variable pkgconfigdir as the location where a module
  163. # should install pkg-config .pc files. By default the directory is
  164. # $libdir/pkgconfig, but the default can be changed by passing
  165. # DIRECTORY. The user can override through the --with-pkgconfigdir
  166. # parameter.
  167. AC_DEFUN([PKG_INSTALLDIR],
  168. [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
  169. m4_pushdef([pkg_description],
  170. [pkg-config installation directory @<:@]pkg_default[@:>@])
  171. AC_ARG_WITH([pkgconfigdir],
  172. [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
  173. [with_pkgconfigdir=]pkg_default)
  174. AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
  175. m4_popdef([pkg_default])
  176. m4_popdef([pkg_description])
  177. ]) dnl PKG_INSTALLDIR
  178. # PKG_NOARCH_INSTALLDIR(DIRECTORY)
  179. # -------------------------
  180. # Substitutes the variable noarch_pkgconfigdir as the location where a
  181. # module should install arch-independent pkg-config .pc files. By
  182. # default the directory is $datadir/pkgconfig, but the default can be
  183. # changed by passing DIRECTORY. The user can override through the
  184. # --with-noarch-pkgconfigdir parameter.
  185. AC_DEFUN([PKG_NOARCH_INSTALLDIR],
  186. [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
  187. m4_pushdef([pkg_description],
  188. [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
  189. AC_ARG_WITH([noarch-pkgconfigdir],
  190. [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
  191. [with_noarch_pkgconfigdir=]pkg_default)
  192. AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
  193. m4_popdef([pkg_default])
  194. m4_popdef([pkg_description])
  195. ]) dnl PKG_NOARCH_INSTALLDIR
  196. # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
  197. # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  198. # -------------------------------------------
  199. # Retrieves the value of the pkg-config variable for the given module.
  200. AC_DEFUN([PKG_CHECK_VAR],
  201. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  202. AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
  203. _PKG_CONFIG([$1], [variable="][$3]["], [$2])
  204. AS_VAR_COPY([$1], [pkg_cv_][$1])
  205. AS_VAR_IF([$1], [""], [$5], [$4])dnl
  206. ])# PKG_CHECK_VAR
  207. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  208. #
  209. # This file is free software; the Free Software Foundation
  210. # gives unlimited permission to copy and/or distribute it,
  211. # with or without modifications, as long as this notice is preserved.
  212. # AM_AUTOMAKE_VERSION(VERSION)
  213. # ----------------------------
  214. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  215. # generated from the m4 files accompanying Automake X.Y.
  216. # (This private macro should not be called outside this file.)
  217. AC_DEFUN([AM_AUTOMAKE_VERSION],
  218. [am__api_version='1.14'
  219. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  220. dnl require some minimum version. Point them to the right macro.
  221. m4_if([$1], [1.14.1], [],
  222. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  223. ])
  224. # _AM_AUTOCONF_VERSION(VERSION)
  225. # -----------------------------
  226. # aclocal traces this macro to find the Autoconf version.
  227. # This is a private macro too. Using m4_define simplifies
  228. # the logic in aclocal, which can simply ignore this definition.
  229. m4_define([_AM_AUTOCONF_VERSION], [])
  230. # AM_SET_CURRENT_AUTOMAKE_VERSION
  231. # -------------------------------
  232. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  233. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  234. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  235. [AM_AUTOMAKE_VERSION([1.14.1])dnl
  236. m4_ifndef([AC_AUTOCONF_VERSION],
  237. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  238. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  239. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  240. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  241. #
  242. # This file is free software; the Free Software Foundation
  243. # gives unlimited permission to copy and/or distribute it,
  244. # with or without modifications, as long as this notice is preserved.
  245. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  246. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  247. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  248. #
  249. # Of course, Automake must honor this variable whenever it calls a
  250. # tool from the auxiliary directory. The problem is that $srcdir (and
  251. # therefore $ac_aux_dir as well) can be either absolute or relative,
  252. # depending on how configure is run. This is pretty annoying, since
  253. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  254. # source directory, any form will work fine, but in subdirectories a
  255. # relative path needs to be adjusted first.
  256. #
  257. # $ac_aux_dir/missing
  258. # fails when called from a subdirectory if $ac_aux_dir is relative
  259. # $top_srcdir/$ac_aux_dir/missing
  260. # fails if $ac_aux_dir is absolute,
  261. # fails when called from a subdirectory in a VPATH build with
  262. # a relative $ac_aux_dir
  263. #
  264. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  265. # are both prefixed by $srcdir. In an in-source build this is usually
  266. # harmless because $srcdir is '.', but things will broke when you
  267. # start a VPATH build or use an absolute $srcdir.
  268. #
  269. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  270. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  271. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  272. # and then we would define $MISSING as
  273. # MISSING="\${SHELL} $am_aux_dir/missing"
  274. # This will work as long as MISSING is not called from configure, because
  275. # unfortunately $(top_srcdir) has no meaning in configure.
  276. # However there are other variables, like CC, which are often used in
  277. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  278. #
  279. # Another solution, used here, is to always expand $ac_aux_dir to an
  280. # absolute PATH. The drawback is that using absolute paths prevent a
  281. # configured tree to be moved without reconfiguration.
  282. AC_DEFUN([AM_AUX_DIR_EXPAND],
  283. [dnl Rely on autoconf to set up CDPATH properly.
  284. AC_PREREQ([2.50])dnl
  285. # expand $ac_aux_dir to an absolute path
  286. am_aux_dir=`cd $ac_aux_dir && pwd`
  287. ])
  288. # AM_CONDITIONAL -*- Autoconf -*-
  289. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  290. #
  291. # This file is free software; the Free Software Foundation
  292. # gives unlimited permission to copy and/or distribute it,
  293. # with or without modifications, as long as this notice is preserved.
  294. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  295. # -------------------------------------
  296. # Define a conditional.
  297. AC_DEFUN([AM_CONDITIONAL],
  298. [AC_PREREQ([2.52])dnl
  299. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  300. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  301. AC_SUBST([$1_TRUE])dnl
  302. AC_SUBST([$1_FALSE])dnl
  303. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  304. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  305. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  306. if $2; then
  307. $1_TRUE=
  308. $1_FALSE='#'
  309. else
  310. $1_TRUE='#'
  311. $1_FALSE=
  312. fi
  313. AC_CONFIG_COMMANDS_PRE(
  314. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  315. AC_MSG_ERROR([[conditional "$1" was never defined.
  316. Usually this means the macro was only invoked conditionally.]])
  317. fi])])
  318. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  319. #
  320. # This file is free software; the Free Software Foundation
  321. # gives unlimited permission to copy and/or distribute it,
  322. # with or without modifications, as long as this notice is preserved.
  323. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  324. # written in clear, in which case automake, when reading aclocal.m4,
  325. # will think it sees a *use*, and therefore will trigger all it's
  326. # C support machinery. Also note that it means that autoscan, seeing
  327. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  328. # _AM_DEPENDENCIES(NAME)
  329. # ----------------------
  330. # See how the compiler implements dependency checking.
  331. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  332. # We try a few techniques and use that to set a single cache variable.
  333. #
  334. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  335. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  336. # dependency, and given that the user is not expected to run this macro,
  337. # just rely on AC_PROG_CC.
  338. AC_DEFUN([_AM_DEPENDENCIES],
  339. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  340. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  341. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  342. AC_REQUIRE([AM_DEP_TRACK])dnl
  343. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  344. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  345. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  346. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  347. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  348. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  349. [depcc="$$1" am_compiler_list=])
  350. AC_CACHE_CHECK([dependency style of $depcc],
  351. [am_cv_$1_dependencies_compiler_type],
  352. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  353. # We make a subdir and do the tests there. Otherwise we can end up
  354. # making bogus files that we don't know about and never remove. For
  355. # instance it was reported that on HP-UX the gcc test will end up
  356. # making a dummy file named 'D' -- because '-MD' means "put the output
  357. # in D".
  358. rm -rf conftest.dir
  359. mkdir conftest.dir
  360. # Copy depcomp to subdir because otherwise we won't find it if we're
  361. # using a relative directory.
  362. cp "$am_depcomp" conftest.dir
  363. cd conftest.dir
  364. # We will build objects and dependencies in a subdirectory because
  365. # it helps to detect inapplicable dependency modes. For instance
  366. # both Tru64's cc and ICC support -MD to output dependencies as a
  367. # side effect of compilation, but ICC will put the dependencies in
  368. # the current directory while Tru64 will put them in the object
  369. # directory.
  370. mkdir sub
  371. am_cv_$1_dependencies_compiler_type=none
  372. if test "$am_compiler_list" = ""; then
  373. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  374. fi
  375. am__universal=false
  376. m4_case([$1], [CC],
  377. [case " $depcc " in #(
  378. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  379. esac],
  380. [CXX],
  381. [case " $depcc " in #(
  382. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  383. esac])
  384. for depmode in $am_compiler_list; do
  385. # Setup a source with many dependencies, because some compilers
  386. # like to wrap large dependency lists on column 80 (with \), and
  387. # we should not choose a depcomp mode which is confused by this.
  388. #
  389. # We need to recreate these files for each test, as the compiler may
  390. # overwrite some of them when testing with obscure command lines.
  391. # This happens at least with the AIX C compiler.
  392. : > sub/conftest.c
  393. for i in 1 2 3 4 5 6; do
  394. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  395. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  396. # Solaris 10 /bin/sh.
  397. echo '/* dummy */' > sub/conftst$i.h
  398. done
  399. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  400. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  401. # mode. It turns out that the SunPro C++ compiler does not properly
  402. # handle '-M -o', and we need to detect this. Also, some Intel
  403. # versions had trouble with output in subdirs.
  404. am__obj=sub/conftest.${OBJEXT-o}
  405. am__minus_obj="-o $am__obj"
  406. case $depmode in
  407. gcc)
  408. # This depmode causes a compiler race in universal mode.
  409. test "$am__universal" = false || continue
  410. ;;
  411. nosideeffect)
  412. # After this tag, mechanisms are not by side-effect, so they'll
  413. # only be used when explicitly requested.
  414. if test "x$enable_dependency_tracking" = xyes; then
  415. continue
  416. else
  417. break
  418. fi
  419. ;;
  420. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  421. # This compiler won't grok '-c -o', but also, the minuso test has
  422. # not run yet. These depmodes are late enough in the game, and
  423. # so weak that their functioning should not be impacted.
  424. am__obj=conftest.${OBJEXT-o}
  425. am__minus_obj=
  426. ;;
  427. none) break ;;
  428. esac
  429. if depmode=$depmode \
  430. source=sub/conftest.c object=$am__obj \
  431. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  432. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  433. >/dev/null 2>conftest.err &&
  434. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  435. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  436. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  437. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  438. # icc doesn't choke on unknown options, it will just issue warnings
  439. # or remarks (even with -Werror). So we grep stderr for any message
  440. # that says an option was ignored or not supported.
  441. # When given -MP, icc 7.0 and 7.1 complain thusly:
  442. # icc: Command line warning: ignoring option '-M'; no argument required
  443. # The diagnosis changed in icc 8.0:
  444. # icc: Command line remark: option '-MP' not supported
  445. if (grep 'ignoring option' conftest.err ||
  446. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  447. am_cv_$1_dependencies_compiler_type=$depmode
  448. break
  449. fi
  450. fi
  451. done
  452. cd ..
  453. rm -rf conftest.dir
  454. else
  455. am_cv_$1_dependencies_compiler_type=none
  456. fi
  457. ])
  458. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  459. AM_CONDITIONAL([am__fastdep$1], [
  460. test "x$enable_dependency_tracking" != xno \
  461. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  462. ])
  463. # AM_SET_DEPDIR
  464. # -------------
  465. # Choose a directory name for dependency files.
  466. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  467. AC_DEFUN([AM_SET_DEPDIR],
  468. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  469. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  470. ])
  471. # AM_DEP_TRACK
  472. # ------------
  473. AC_DEFUN([AM_DEP_TRACK],
  474. [AC_ARG_ENABLE([dependency-tracking], [dnl
  475. AS_HELP_STRING(
  476. [--enable-dependency-tracking],
  477. [do not reject slow dependency extractors])
  478. AS_HELP_STRING(
  479. [--disable-dependency-tracking],
  480. [speeds up one-time build])])
  481. if test "x$enable_dependency_tracking" != xno; then
  482. am_depcomp="$ac_aux_dir/depcomp"
  483. AMDEPBACKSLASH='\'
  484. am__nodep='_no'
  485. fi
  486. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  487. AC_SUBST([AMDEPBACKSLASH])dnl
  488. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  489. AC_SUBST([am__nodep])dnl
  490. _AM_SUBST_NOTMAKE([am__nodep])dnl
  491. ])
  492. # Generate code to set up dependency tracking. -*- Autoconf -*-
  493. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  494. #
  495. # This file is free software; the Free Software Foundation
  496. # gives unlimited permission to copy and/or distribute it,
  497. # with or without modifications, as long as this notice is preserved.
  498. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  499. # ------------------------------
  500. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  501. [{
  502. # Older Autoconf quotes --file arguments for eval, but not when files
  503. # are listed without --file. Let's play safe and only enable the eval
  504. # if we detect the quoting.
  505. case $CONFIG_FILES in
  506. *\'*) eval set x "$CONFIG_FILES" ;;
  507. *) set x $CONFIG_FILES ;;
  508. esac
  509. shift
  510. for mf
  511. do
  512. # Strip MF so we end up with the name of the file.
  513. mf=`echo "$mf" | sed -e 's/:.*$//'`
  514. # Check whether this is an Automake generated Makefile or not.
  515. # We used to match only the files named 'Makefile.in', but
  516. # some people rename them; so instead we look at the file content.
  517. # Grep'ing the first line is not enough: some people post-process
  518. # each Makefile.in and add a new line on top of each file to say so.
  519. # Grep'ing the whole file is not good either: AIX grep has a line
  520. # limit of 2048, but all sed's we know have understand at least 4000.
  521. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  522. dirpart=`AS_DIRNAME("$mf")`
  523. else
  524. continue
  525. fi
  526. # Extract the definition of DEPDIR, am__include, and am__quote
  527. # from the Makefile without running 'make'.
  528. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  529. test -z "$DEPDIR" && continue
  530. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  531. test -z "$am__include" && continue
  532. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  533. # Find all dependency output files, they are included files with
  534. # $(DEPDIR) in their names. We invoke sed twice because it is the
  535. # simplest approach to changing $(DEPDIR) to its actual value in the
  536. # expansion.
  537. for file in `sed -n "
  538. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  539. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  540. # Make sure the directory exists.
  541. test -f "$dirpart/$file" && continue
  542. fdir=`AS_DIRNAME(["$file"])`
  543. AS_MKDIR_P([$dirpart/$fdir])
  544. # echo "creating $dirpart/$file"
  545. echo '# dummy' > "$dirpart/$file"
  546. done
  547. done
  548. }
  549. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  550. # AM_OUTPUT_DEPENDENCY_COMMANDS
  551. # -----------------------------
  552. # This macro should only be invoked once -- use via AC_REQUIRE.
  553. #
  554. # This code is only required when automatic dependency tracking
  555. # is enabled. FIXME. This creates each '.P' file that we will
  556. # need in order to bootstrap the dependency handling code.
  557. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  558. [AC_CONFIG_COMMANDS([depfiles],
  559. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  560. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  561. ])
  562. # Do all the work for Automake. -*- Autoconf -*-
  563. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  564. #
  565. # This file is free software; the Free Software Foundation
  566. # gives unlimited permission to copy and/or distribute it,
  567. # with or without modifications, as long as this notice is preserved.
  568. # This macro actually does too much. Some checks are only needed if
  569. # your package does certain things. But this isn't really a big deal.
  570. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  571. m4_define([AC_PROG_CC],
  572. m4_defn([AC_PROG_CC])
  573. [_AM_PROG_CC_C_O
  574. ])
  575. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  576. # AM_INIT_AUTOMAKE([OPTIONS])
  577. # -----------------------------------------------
  578. # The call with PACKAGE and VERSION arguments is the old style
  579. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  580. # and VERSION should now be passed to AC_INIT and removed from
  581. # the call to AM_INIT_AUTOMAKE.
  582. # We support both call styles for the transition. After
  583. # the next Automake release, Autoconf can make the AC_INIT
  584. # arguments mandatory, and then we can depend on a new Autoconf
  585. # release and drop the old call support.
  586. AC_DEFUN([AM_INIT_AUTOMAKE],
  587. [AC_PREREQ([2.65])dnl
  588. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  589. dnl the ones we care about.
  590. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  591. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  592. AC_REQUIRE([AC_PROG_INSTALL])dnl
  593. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  594. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  595. # is not polluted with repeated "-I."
  596. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  597. # test to see if srcdir already configured
  598. if test -f $srcdir/config.status; then
  599. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  600. fi
  601. fi
  602. # test whether we have cygpath
  603. if test -z "$CYGPATH_W"; then
  604. if (cygpath --version) >/dev/null 2>/dev/null; then
  605. CYGPATH_W='cygpath -w'
  606. else
  607. CYGPATH_W=echo
  608. fi
  609. fi
  610. AC_SUBST([CYGPATH_W])
  611. # Define the identity of the package.
  612. dnl Distinguish between old-style and new-style calls.
  613. m4_ifval([$2],
  614. [AC_DIAGNOSE([obsolete],
  615. [$0: two- and three-arguments forms are deprecated.])
  616. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  617. AC_SUBST([PACKAGE], [$1])dnl
  618. AC_SUBST([VERSION], [$2])],
  619. [_AM_SET_OPTIONS([$1])dnl
  620. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  621. m4_if(
  622. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  623. [ok:ok],,
  624. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  625. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  626. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  627. _AM_IF_OPTION([no-define],,
  628. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  629. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  630. # Some tools Automake needs.
  631. AC_REQUIRE([AM_SANITY_CHECK])dnl
  632. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  633. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  634. AM_MISSING_PROG([AUTOCONF], [autoconf])
  635. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  636. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  637. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  638. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  639. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  640. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  641. # For better backward compatibility. To be removed once Automake 1.9.x
  642. # dies out for good. For more background, see:
  643. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  644. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  645. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  646. # We need awk for the "check" target. The system "awk" is bad on
  647. # some platforms.
  648. AC_REQUIRE([AC_PROG_AWK])dnl
  649. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  650. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  651. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  652. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  653. [_AM_PROG_TAR([v7])])])
  654. _AM_IF_OPTION([no-dependencies],,
  655. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  656. [_AM_DEPENDENCIES([CC])],
  657. [m4_define([AC_PROG_CC],
  658. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  659. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  660. [_AM_DEPENDENCIES([CXX])],
  661. [m4_define([AC_PROG_CXX],
  662. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  663. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  664. [_AM_DEPENDENCIES([OBJC])],
  665. [m4_define([AC_PROG_OBJC],
  666. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  667. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  668. [_AM_DEPENDENCIES([OBJCXX])],
  669. [m4_define([AC_PROG_OBJCXX],
  670. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  671. ])
  672. AC_REQUIRE([AM_SILENT_RULES])dnl
  673. dnl The testsuite driver may need to know about EXEEXT, so add the
  674. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  675. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  676. AC_CONFIG_COMMANDS_PRE(dnl
  677. [m4_provide_if([_AM_COMPILER_EXEEXT],
  678. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  679. # POSIX will say in a future version that running "rm -f" with no argument
  680. # is OK; and we want to be able to make that assumption in our Makefile
  681. # recipes. So use an aggressive probe to check that the usage we want is
  682. # actually supported "in the wild" to an acceptable degree.
  683. # See automake bug#10828.
  684. # To make any issue more visible, cause the running configure to be aborted
  685. # by default if the 'rm' program in use doesn't match our expectations; the
  686. # user can still override this though.
  687. if rm -f && rm -fr && rm -rf; then : OK; else
  688. cat >&2 <<'END'
  689. Oops!
  690. Your 'rm' program seems unable to run without file operands specified
  691. on the command line, even when the '-f' option is present. This is contrary
  692. to the behaviour of most rm programs out there, and not conforming with
  693. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  694. Please tell bug-automake@gnu.org about your system, including the value
  695. of your $PATH and any error possibly output before this message. This
  696. can help us improve future automake versions.
  697. END
  698. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  699. echo 'Configuration will proceed anyway, since you have set the' >&2
  700. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  701. echo >&2
  702. else
  703. cat >&2 <<'END'
  704. Aborting the configuration process, to ensure you take notice of the issue.
  705. You can download and install GNU coreutils to get an 'rm' implementation
  706. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  707. If you want to complete the configuration process using your problematic
  708. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  709. to "yes", and re-run configure.
  710. END
  711. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  712. fi
  713. fi])
  714. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  715. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  716. dnl mangled by Autoconf and run in a shell conditional statement.
  717. m4_define([_AC_COMPILER_EXEEXT],
  718. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  719. # When config.status generates a header, we must update the stamp-h file.
  720. # This file resides in the same directory as the config header
  721. # that is generated. The stamp files are numbered to have different names.
  722. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  723. # loop where config.status creates the headers, so we can generate
  724. # our stamp files there.
  725. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  726. [# Compute $1's index in $config_headers.
  727. _am_arg=$1
  728. _am_stamp_count=1
  729. for _am_header in $config_headers :; do
  730. case $_am_header in
  731. $_am_arg | $_am_arg:* )
  732. break ;;
  733. * )
  734. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  735. esac
  736. done
  737. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  738. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  739. #
  740. # This file is free software; the Free Software Foundation
  741. # gives unlimited permission to copy and/or distribute it,
  742. # with or without modifications, as long as this notice is preserved.
  743. # AM_PROG_INSTALL_SH
  744. # ------------------
  745. # Define $install_sh.
  746. AC_DEFUN([AM_PROG_INSTALL_SH],
  747. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  748. if test x"${install_sh}" != xset; then
  749. case $am_aux_dir in
  750. *\ * | *\ *)
  751. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  752. *)
  753. install_sh="\${SHELL} $am_aux_dir/install-sh"
  754. esac
  755. fi
  756. AC_SUBST([install_sh])])
  757. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  758. #
  759. # This file is free software; the Free Software Foundation
  760. # gives unlimited permission to copy and/or distribute it,
  761. # with or without modifications, as long as this notice is preserved.
  762. # Check whether the underlying file-system supports filenames
  763. # with a leading dot. For instance MS-DOS doesn't.
  764. AC_DEFUN([AM_SET_LEADING_DOT],
  765. [rm -rf .tst 2>/dev/null
  766. mkdir .tst 2>/dev/null
  767. if test -d .tst; then
  768. am__leading_dot=.
  769. else
  770. am__leading_dot=_
  771. fi
  772. rmdir .tst 2>/dev/null
  773. AC_SUBST([am__leading_dot])])
  774. # Check to see how 'make' treats includes. -*- Autoconf -*-
  775. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  776. #
  777. # This file is free software; the Free Software Foundation
  778. # gives unlimited permission to copy and/or distribute it,
  779. # with or without modifications, as long as this notice is preserved.
  780. # AM_MAKE_INCLUDE()
  781. # -----------------
  782. # Check to see how make treats includes.
  783. AC_DEFUN([AM_MAKE_INCLUDE],
  784. [am_make=${MAKE-make}
  785. cat > confinc << 'END'
  786. am__doit:
  787. @echo this is the am__doit target
  788. .PHONY: am__doit
  789. END
  790. # If we don't find an include directive, just comment out the code.
  791. AC_MSG_CHECKING([for style of include used by $am_make])
  792. am__include="#"
  793. am__quote=
  794. _am_result=none
  795. # First try GNU make style include.
  796. echo "include confinc" > confmf
  797. # Ignore all kinds of additional output from 'make'.
  798. case `$am_make -s -f confmf 2> /dev/null` in #(
  799. *the\ am__doit\ target*)
  800. am__include=include
  801. am__quote=
  802. _am_result=GNU
  803. ;;
  804. esac
  805. # Now try BSD make style include.
  806. if test "$am__include" = "#"; then
  807. echo '.include "confinc"' > confmf
  808. case `$am_make -s -f confmf 2> /dev/null` in #(
  809. *the\ am__doit\ target*)
  810. am__include=.include
  811. am__quote="\""
  812. _am_result=BSD
  813. ;;
  814. esac
  815. fi
  816. AC_SUBST([am__include])
  817. AC_SUBST([am__quote])
  818. AC_MSG_RESULT([$_am_result])
  819. rm -f confinc confmf
  820. ])
  821. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  822. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  823. #
  824. # This file is free software; the Free Software Foundation
  825. # gives unlimited permission to copy and/or distribute it,
  826. # with or without modifications, as long as this notice is preserved.
  827. # AM_MISSING_PROG(NAME, PROGRAM)
  828. # ------------------------------
  829. AC_DEFUN([AM_MISSING_PROG],
  830. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  831. $1=${$1-"${am_missing_run}$2"}
  832. AC_SUBST($1)])
  833. # AM_MISSING_HAS_RUN
  834. # ------------------
  835. # Define MISSING if not defined so far and test if it is modern enough.
  836. # If it is, set am_missing_run to use it, otherwise, to nothing.
  837. AC_DEFUN([AM_MISSING_HAS_RUN],
  838. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  839. AC_REQUIRE_AUX_FILE([missing])dnl
  840. if test x"${MISSING+set}" != xset; then
  841. case $am_aux_dir in
  842. *\ * | *\ *)
  843. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  844. *)
  845. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  846. esac
  847. fi
  848. # Use eval to expand $SHELL
  849. if eval "$MISSING --is-lightweight"; then
  850. am_missing_run="$MISSING "
  851. else
  852. am_missing_run=
  853. AC_MSG_WARN(['missing' script is too old or missing])
  854. fi
  855. ])
  856. # Helper functions for option handling. -*- Autoconf -*-
  857. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  858. #
  859. # This file is free software; the Free Software Foundation
  860. # gives unlimited permission to copy and/or distribute it,
  861. # with or without modifications, as long as this notice is preserved.
  862. # _AM_MANGLE_OPTION(NAME)
  863. # -----------------------
  864. AC_DEFUN([_AM_MANGLE_OPTION],
  865. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  866. # _AM_SET_OPTION(NAME)
  867. # --------------------
  868. # Set option NAME. Presently that only means defining a flag for this option.
  869. AC_DEFUN([_AM_SET_OPTION],
  870. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  871. # _AM_SET_OPTIONS(OPTIONS)
  872. # ------------------------
  873. # OPTIONS is a space-separated list of Automake options.
  874. AC_DEFUN([_AM_SET_OPTIONS],
  875. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  876. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  877. # -------------------------------------------
  878. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  879. AC_DEFUN([_AM_IF_OPTION],
  880. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  881. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  882. #
  883. # This file is free software; the Free Software Foundation
  884. # gives unlimited permission to copy and/or distribute it,
  885. # with or without modifications, as long as this notice is preserved.
  886. # _AM_PROG_CC_C_O
  887. # ---------------
  888. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  889. # to automatically call this.
  890. AC_DEFUN([_AM_PROG_CC_C_O],
  891. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  892. AC_REQUIRE_AUX_FILE([compile])dnl
  893. AC_LANG_PUSH([C])dnl
  894. AC_CACHE_CHECK(
  895. [whether $CC understands -c and -o together],
  896. [am_cv_prog_cc_c_o],
  897. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  898. # Make sure it works both with $CC and with simple cc.
  899. # Following AC_PROG_CC_C_O, we do the test twice because some
  900. # compilers refuse to overwrite an existing .o file with -o,
  901. # though they will create one.
  902. am_cv_prog_cc_c_o=yes
  903. for am_i in 1 2; do
  904. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  905. && test -f conftest2.$ac_objext; then
  906. : OK
  907. else
  908. am_cv_prog_cc_c_o=no
  909. break
  910. fi
  911. done
  912. rm -f core conftest*
  913. unset am_i])
  914. if test "$am_cv_prog_cc_c_o" != yes; then
  915. # Losing compiler, so override with the script.
  916. # FIXME: It is wrong to rewrite CC.
  917. # But if we don't then we get into trouble of one sort or another.
  918. # A longer-term fix would be to have automake use am__CC in this case,
  919. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  920. CC="$am_aux_dir/compile $CC"
  921. fi
  922. AC_LANG_POP([C])])
  923. # For backward compatibility.
  924. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  925. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  926. #
  927. # This file is free software; the Free Software Foundation
  928. # gives unlimited permission to copy and/or distribute it,
  929. # with or without modifications, as long as this notice is preserved.
  930. # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  931. # ---------------------------------------------------------------------------
  932. # Adds support for distributing Python modules and packages. To
  933. # install modules, copy them to $(pythondir), using the python_PYTHON
  934. # automake variable. To install a package with the same name as the
  935. # automake package, install to $(pkgpythondir), or use the
  936. # pkgpython_PYTHON automake variable.
  937. #
  938. # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
  939. # locations to install python extension modules (shared libraries).
  940. # Another macro is required to find the appropriate flags to compile
  941. # extension modules.
  942. #
  943. # If your package is configured with a different prefix to python,
  944. # users will have to add the install directory to the PYTHONPATH
  945. # environment variable, or create a .pth file (see the python
  946. # documentation for details).
  947. #
  948. # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
  949. # cause an error if the version of python installed on the system
  950. # doesn't meet the requirement. MINIMUM-VERSION should consist of
  951. # numbers and dots only.
  952. AC_DEFUN([AM_PATH_PYTHON],
  953. [
  954. dnl Find a Python interpreter. Python versions prior to 2.0 are not
  955. dnl supported. (2.0 was released on October 16, 2000).
  956. m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
  957. [python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
  958. python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
  959. AC_ARG_VAR([PYTHON], [the Python interpreter])
  960. m4_if([$1],[],[
  961. dnl No version check is needed.
  962. # Find any Python interpreter.
  963. if test -z "$PYTHON"; then
  964. AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
  965. fi
  966. am_display_PYTHON=python
  967. ], [
  968. dnl A version check is needed.
  969. if test -n "$PYTHON"; then
  970. # If the user set $PYTHON, use it and don't search something else.
  971. AC_MSG_CHECKING([whether $PYTHON version is >= $1])
  972. AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
  973. [AC_MSG_RESULT([yes])],
  974. [AC_MSG_RESULT([no])
  975. AC_MSG_ERROR([Python interpreter is too old])])
  976. am_display_PYTHON=$PYTHON
  977. else
  978. # Otherwise, try each interpreter until we find one that satisfies
  979. # VERSION.
  980. AC_CACHE_CHECK([for a Python interpreter with version >= $1],
  981. [am_cv_pathless_PYTHON],[
  982. for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
  983. test "$am_cv_pathless_PYTHON" = none && break
  984. AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
  985. done])
  986. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  987. if test "$am_cv_pathless_PYTHON" = none; then
  988. PYTHON=:
  989. else
  990. AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
  991. fi
  992. am_display_PYTHON=$am_cv_pathless_PYTHON
  993. fi
  994. ])
  995. if test "$PYTHON" = :; then
  996. dnl Run any user-specified action, or abort.
  997. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
  998. else
  999. dnl Query Python for its version number. Getting [:3] seems to be
  1000. dnl the best way to do this; it's what "site.py" does in the standard
  1001. dnl library.
  1002. AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
  1003. [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
  1004. AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
  1005. dnl Use the values of $prefix and $exec_prefix for the corresponding
  1006. dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
  1007. dnl distinct variables so they can be overridden if need be. However,
  1008. dnl general consensus is that you shouldn't need this ability.
  1009. AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
  1010. AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
  1011. dnl At times (like when building shared libraries) you may want
  1012. dnl to know which OS platform Python thinks this is.
  1013. AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
  1014. [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
  1015. AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
  1016. # Just factor out some code duplication.
  1017. am_python_setup_sysconfig="\
  1018. import sys
  1019. # Prefer sysconfig over distutils.sysconfig, for better compatibility
  1020. # with python 3.x. See automake bug#10227.
  1021. try:
  1022. import sysconfig
  1023. except ImportError:
  1024. can_use_sysconfig = 0
  1025. else:
  1026. can_use_sysconfig = 1
  1027. # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
  1028. # <https://github.com/pypa/virtualenv/issues/118>
  1029. try:
  1030. from platform import python_implementation
  1031. if python_implementation() == 'CPython' and sys.version[[:3]] == '2.7':
  1032. can_use_sysconfig = 0
  1033. except ImportError:
  1034. pass"
  1035. dnl Set up 4 directories:
  1036. dnl pythondir -- where to install python scripts. This is the
  1037. dnl site-packages directory, not the python standard library
  1038. dnl directory like in previous automake betas. This behavior
  1039. dnl is more consistent with lispdir.m4 for example.
  1040. dnl Query distutils for this directory.
  1041. AC_CACHE_CHECK([for $am_display_PYTHON script directory],
  1042. [am_cv_python_pythondir],
  1043. [if test "x$prefix" = xNONE
  1044. then
  1045. am_py_prefix=$ac_default_prefix
  1046. else
  1047. am_py_prefix=$prefix
  1048. fi
  1049. am_cv_python_pythondir=`$PYTHON -c "
  1050. $am_python_setup_sysconfig
  1051. if can_use_sysconfig:
  1052. sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
  1053. else:
  1054. from distutils import sysconfig
  1055. sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
  1056. sys.stdout.write(sitedir)"`
  1057. case $am_cv_python_pythondir in
  1058. $am_py_prefix*)
  1059. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  1060. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  1061. ;;
  1062. *)
  1063. case $am_py_prefix in
  1064. /usr|/System*) ;;
  1065. *)
  1066. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  1067. ;;
  1068. esac
  1069. ;;
  1070. esac
  1071. ])
  1072. AC_SUBST([pythondir], [$am_cv_python_pythondir])
  1073. dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
  1074. dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
  1075. dnl more consistent with the rest of automake.
  1076. AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
  1077. dnl pyexecdir -- directory for installing python extension modules
  1078. dnl (shared libraries)
  1079. dnl Query distutils for this directory.
  1080. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
  1081. [am_cv_python_pyexecdir],
  1082. [if test "x$exec_prefix" = xNONE
  1083. then
  1084. am_py_exec_prefix=$am_py_prefix
  1085. else
  1086. am_py_exec_prefix=$exec_prefix
  1087. fi
  1088. am_cv_python_pyexecdir=`$PYTHON -c "
  1089. $am_python_setup_sysconfig
  1090. if can_use_sysconfig:
  1091. sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
  1092. else:
  1093. from distutils import sysconfig
  1094. sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
  1095. sys.stdout.write(sitedir)"`
  1096. case $am_cv_python_pyexecdir in
  1097. $am_py_exec_prefix*)
  1098. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  1099. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  1100. ;;
  1101. *)
  1102. case $am_py_exec_prefix in
  1103. /usr|/System*) ;;
  1104. *)
  1105. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  1106. ;;
  1107. esac
  1108. ;;
  1109. esac
  1110. ])
  1111. AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
  1112. dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
  1113. AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
  1114. dnl Run any user-specified action.
  1115. $2
  1116. fi
  1117. ])
  1118. # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
  1119. # ---------------------------------------------------------------------------
  1120. # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
  1121. # Run ACTION-IF-FALSE otherwise.
  1122. # This test uses sys.hexversion instead of the string equivalent (first
  1123. # word of sys.version), in order to cope with versions such as 2.2c1.
  1124. # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
  1125. AC_DEFUN([AM_PYTHON_CHECK_VERSION],
  1126. [prog="import sys
  1127. # split strings by '.' and convert to numeric. Append some zeros
  1128. # because we need at least 4 digits for the hex conversion.
  1129. # map returns an iterator in Python 3.0 and a list in 2.x
  1130. minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
  1131. minverhex = 0
  1132. # xrange is not present in Python 3.0 and range returns an iterator
  1133. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
  1134. sys.exit(sys.hexversion < minverhex)"
  1135. AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
  1136. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1137. #
  1138. # This file is free software; the Free Software Foundation
  1139. # gives unlimited permission to copy and/or distribute it,
  1140. # with or without modifications, as long as this notice is preserved.
  1141. # AM_RUN_LOG(COMMAND)
  1142. # -------------------
  1143. # Run COMMAND, save the exit status in ac_status, and log it.
  1144. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  1145. AC_DEFUN([AM_RUN_LOG],
  1146. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  1147. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  1148. ac_status=$?
  1149. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1150. (exit $ac_status); }])
  1151. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  1152. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  1153. #
  1154. # This file is free software; the Free Software Foundation
  1155. # gives unlimited permission to copy and/or distribute it,
  1156. # with or without modifications, as long as this notice is preserved.
  1157. # AM_SANITY_CHECK
  1158. # ---------------
  1159. AC_DEFUN([AM_SANITY_CHECK],
  1160. [AC_MSG_CHECKING([whether build environment is sane])
  1161. # Reject unsafe characters in $srcdir or the absolute working directory
  1162. # name. Accept space and tab only in the latter.
  1163. am_lf='
  1164. '
  1165. case `pwd` in
  1166. *[[\\\"\#\$\&\'\`$am_lf]]*)
  1167. AC_MSG_ERROR([unsafe absolute working directory name]);;
  1168. esac
  1169. case $srcdir in
  1170. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1171. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  1172. esac
  1173. # Do 'set' in a subshell so we don't clobber the current shell's
  1174. # arguments. Must try -L first in case configure is actually a
  1175. # symlink; some systems play weird games with the mod time of symlinks
  1176. # (eg FreeBSD returns the mod time of the symlink's containing
  1177. # directory).
  1178. if (
  1179. am_has_slept=no
  1180. for am_try in 1 2; do
  1181. echo "timestamp, slept: $am_has_slept" > conftest.file
  1182. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1183. if test "$[*]" = "X"; then
  1184. # -L didn't work.
  1185. set X `ls -t "$srcdir/configure" conftest.file`
  1186. fi
  1187. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1188. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1189. # If neither matched, then we have a broken ls. This can happen
  1190. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1191. # broken ls alias from the environment. This has actually
  1192. # happened. Such a system could not be considered "sane".
  1193. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1194. alias in your environment])
  1195. fi
  1196. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  1197. break
  1198. fi
  1199. # Just in case.
  1200. sleep 1
  1201. am_has_slept=yes
  1202. done
  1203. test "$[2]" = conftest.file
  1204. )
  1205. then
  1206. # Ok.
  1207. :
  1208. else
  1209. AC_MSG_ERROR([newly created file is older than distributed files!
  1210. Check your system clock])
  1211. fi
  1212. AC_MSG_RESULT([yes])
  1213. # If we didn't sleep, we still need to ensure time stamps of config.status and
  1214. # generated files are strictly newer.
  1215. am_sleep_pid=
  1216. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  1217. ( sleep 1 ) &
  1218. am_sleep_pid=$!
  1219. fi
  1220. AC_CONFIG_COMMANDS_PRE(
  1221. [AC_MSG_CHECKING([that generated files are newer than configure])
  1222. if test -n "$am_sleep_pid"; then
  1223. # Hide warnings about reused PIDs.
  1224. wait $am_sleep_pid 2>/dev/null
  1225. fi
  1226. AC_MSG_RESULT([done])])
  1227. rm -f conftest.file
  1228. ])
  1229. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  1230. #
  1231. # This file is free software; the Free Software Foundation
  1232. # gives unlimited permission to copy and/or distribute it,
  1233. # with or without modifications, as long as this notice is preserved.
  1234. # AM_SILENT_RULES([DEFAULT])
  1235. # --------------------------
  1236. # Enable less verbose build rules; with the default set to DEFAULT
  1237. # ("yes" being less verbose, "no" or empty being verbose).
  1238. AC_DEFUN([AM_SILENT_RULES],
  1239. [AC_ARG_ENABLE([silent-rules], [dnl
  1240. AS_HELP_STRING(
  1241. [--enable-silent-rules],
  1242. [less verbose build output (undo: "make V=1")])
  1243. AS_HELP_STRING(
  1244. [--disable-silent-rules],
  1245. [verbose build output (undo: "make V=0")])dnl
  1246. ])
  1247. case $enable_silent_rules in @%:@ (((
  1248. yes) AM_DEFAULT_VERBOSITY=0;;
  1249. no) AM_DEFAULT_VERBOSITY=1;;
  1250. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  1251. esac
  1252. dnl
  1253. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  1254. dnl do not support nested variable expansions.
  1255. dnl See automake bug#9928 and bug#10237.
  1256. am_make=${MAKE-make}
  1257. AC_CACHE_CHECK([whether $am_make supports nested variables],
  1258. [am_cv_make_support_nested_variables],
  1259. [if AS_ECHO([['TRUE=$(BAR$(V))
  1260. BAR0=false
  1261. BAR1=true
  1262. V=1
  1263. am__doit:
  1264. @$(TRUE)
  1265. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  1266. am_cv_make_support_nested_variables=yes
  1267. else
  1268. am_cv_make_support_nested_variables=no
  1269. fi])
  1270. if test $am_cv_make_support_nested_variables = yes; then
  1271. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  1272. AM_V='$(V)'
  1273. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  1274. else
  1275. AM_V=$AM_DEFAULT_VERBOSITY
  1276. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  1277. fi
  1278. AC_SUBST([AM_V])dnl
  1279. AM_SUBST_NOTMAKE([AM_V])dnl
  1280. AC_SUBST([AM_DEFAULT_V])dnl
  1281. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  1282. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  1283. AM_BACKSLASH='\'
  1284. AC_SUBST([AM_BACKSLASH])dnl
  1285. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  1286. ])
  1287. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  1288. #
  1289. # This file is free software; the Free Software Foundation
  1290. # gives unlimited permission to copy and/or distribute it,
  1291. # with or without modifications, as long as this notice is preserved.
  1292. # AM_PROG_INSTALL_STRIP
  1293. # ---------------------
  1294. # One issue with vendor 'install' (even GNU) is that you can't
  1295. # specify the program used to strip binaries. This is especially
  1296. # annoying in cross-compiling environments, where the build's strip
  1297. # is unlikely to handle the host's binaries.
  1298. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1299. # always use install-sh in "make install-strip", and initialize
  1300. # STRIPPROG with the value of the STRIP variable (set by the user).
  1301. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1302. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1303. # Installed binaries are usually stripped using 'strip' when the user
  1304. # run "make install-strip". However 'strip' might not be the right
  1305. # tool to use in cross-compilation environments, therefore Automake
  1306. # will honor the 'STRIP' environment variable to overrule this program.
  1307. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  1308. if test "$cross_compiling" != no; then
  1309. AC_CHECK_TOOL([STRIP], [strip], :)
  1310. fi
  1311. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1312. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1313. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  1314. #
  1315. # This file is free software; the Free Software Foundation
  1316. # gives unlimited permission to copy and/or distribute it,
  1317. # with or without modifications, as long as this notice is preserved.
  1318. # _AM_SUBST_NOTMAKE(VARIABLE)
  1319. # ---------------------------
  1320. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1321. # This macro is traced by Automake.
  1322. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1323. # AM_SUBST_NOTMAKE(VARIABLE)
  1324. # --------------------------
  1325. # Public sister of _AM_SUBST_NOTMAKE.
  1326. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1327. # Check how to create a tarball. -*- Autoconf -*-
  1328. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  1329. #
  1330. # This file is free software; the Free Software Foundation
  1331. # gives unlimited permission to copy and/or distribute it,
  1332. # with or without modifications, as long as this notice is preserved.
  1333. # _AM_PROG_TAR(FORMAT)
  1334. # --------------------
  1335. # Check how to create a tarball in format FORMAT.
  1336. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  1337. #
  1338. # Substitute a variable $(am__tar) that is a command
  1339. # writing to stdout a FORMAT-tarball containing the directory
  1340. # $tardir.
  1341. # tardir=directory && $(am__tar) > result.tar
  1342. #
  1343. # Substitute a variable $(am__untar) that extract such
  1344. # a tarball read from stdin.
  1345. # $(am__untar) < result.tar
  1346. #
  1347. AC_DEFUN([_AM_PROG_TAR],
  1348. [# Always define AMTAR for backward compatibility. Yes, it's still used
  1349. # in the wild :-( We should find a proper way to deprecate it ...
  1350. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  1351. # We'll loop over all known methods to create a tar archive until one works.
  1352. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1353. m4_if([$1], [v7],
  1354. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  1355. [m4_case([$1],
  1356. [ustar],
  1357. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  1358. # There is notably a 21 bits limit for the UID and the GID. In fact,
  1359. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  1360. # and bug#13588).
  1361. am_max_uid=2097151 # 2^21 - 1
  1362. am_max_gid=$am_max_uid
  1363. # The $UID and $GID variables are not portable, so we need to resort
  1364. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  1365. # below are definitely unexpected, so allow the users to see them
  1366. # (that is, avoid stderr redirection).
  1367. am_uid=`id -u || echo unknown`
  1368. am_gid=`id -g || echo unknown`
  1369. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  1370. if test $am_uid -le $am_max_uid; then
  1371. AC_MSG_RESULT([yes])
  1372. else
  1373. AC_MSG_RESULT([no])
  1374. _am_tools=none
  1375. fi
  1376. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  1377. if test $am_gid -le $am_max_gid; then
  1378. AC_MSG_RESULT([yes])
  1379. else
  1380. AC_MSG_RESULT([no])
  1381. _am_tools=none
  1382. fi],
  1383. [pax],
  1384. [],
  1385. [m4_fatal([Unknown tar format])])
  1386. AC_MSG_CHECKING([how to create a $1 tar archive])
  1387. # Go ahead even if we have the value already cached. We do so because we
  1388. # need to set the values for the 'am__tar' and 'am__untar' variables.
  1389. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1390. for _am_tool in $_am_tools; do
  1391. case $_am_tool in
  1392. gnutar)
  1393. for _am_tar in tar gnutar gtar; do
  1394. AM_RUN_LOG([$_am_tar --version]) && break
  1395. done
  1396. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1397. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1398. am__untar="$_am_tar -xf -"
  1399. ;;
  1400. plaintar)
  1401. # Must skip GNU tar: if it does not support --format= it doesn't create
  1402. # ustar tarball either.
  1403. (tar --version) >/dev/null 2>&1 && continue
  1404. am__tar='tar chf - "$$tardir"'
  1405. am__tar_='tar chf - "$tardir"'
  1406. am__untar='tar xf -'
  1407. ;;
  1408. pax)
  1409. am__tar='pax -L -x $1 -w "$$tardir"'
  1410. am__tar_='pax -L -x $1 -w "$tardir"'
  1411. am__untar='pax -r'
  1412. ;;
  1413. cpio)
  1414. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1415. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1416. am__untar='cpio -i -H $1 -d'
  1417. ;;
  1418. none)
  1419. am__tar=false
  1420. am__tar_=false
  1421. am__untar=false
  1422. ;;
  1423. esac
  1424. # If the value was cached, stop now. We just wanted to have am__tar
  1425. # and am__untar set.
  1426. test -n "${am_cv_prog_tar_$1}" && break
  1427. # tar/untar a dummy directory, and stop if the command works.
  1428. rm -rf conftest.dir
  1429. mkdir conftest.dir
  1430. echo GrepMe > conftest.dir/file
  1431. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1432. rm -rf conftest.dir
  1433. if test -s conftest.tar; then
  1434. AM_RUN_LOG([$am__untar <conftest.tar])
  1435. AM_RUN_LOG([cat conftest.dir/file])
  1436. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1437. fi
  1438. done
  1439. rm -rf conftest.dir
  1440. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1441. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1442. AC_SUBST([am__tar])
  1443. AC_SUBST([am__untar])
  1444. ]) # _AM_PROG_TAR
  1445. m4_include([m4/compiler.m4])
  1446. m4_include([m4/gettext.m4])
  1447. m4_include([m4/gtk-doc.m4])
  1448. m4_include([m4/iconv.m4])
  1449. m4_include([m4/intlmacosx.m4])
  1450. m4_include([m4/lib-ld.m4])
  1451. m4_include([m4/lib-link.m4])
  1452. m4_include([m4/lib-prefix.m4])
  1453. m4_include([m4/libtool.m4])
  1454. m4_include([m4/ltoptions.m4])
  1455. m4_include([m4/ltsugar.m4])
  1456. m4_include([m4/ltversion.m4])
  1457. m4_include([m4/lt~obsolete.m4])
  1458. m4_include([m4/nls.m4])
  1459. m4_include([m4/po.m4])
  1460. m4_include([m4/progtest.m4])
  1461. m4_include([m4/tls.m4])
  1462. m4_include([m4/ul.m4])