aclocal.m4 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  14. [m4_warning([this file was generated for autoconf 2.68.
  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. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  161. #
  162. # This file is free software; the Free Software Foundation
  163. # gives unlimited permission to copy and/or distribute it,
  164. # with or without modifications, as long as this notice is preserved.
  165. # AM_AUTOMAKE_VERSION(VERSION)
  166. # ----------------------------
  167. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  168. # generated from the m4 files accompanying Automake X.Y.
  169. # (This private macro should not be called outside this file.)
  170. AC_DEFUN([AM_AUTOMAKE_VERSION],
  171. [am__api_version='1.11'
  172. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  173. dnl require some minimum version. Point them to the right macro.
  174. m4_if([$1], [1.11.1], [],
  175. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  176. ])
  177. # _AM_AUTOCONF_VERSION(VERSION)
  178. # -----------------------------
  179. # aclocal traces this macro to find the Autoconf version.
  180. # This is a private macro too. Using m4_define simplifies
  181. # the logic in aclocal, which can simply ignore this definition.
  182. m4_define([_AM_AUTOCONF_VERSION], [])
  183. # AM_SET_CURRENT_AUTOMAKE_VERSION
  184. # -------------------------------
  185. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  186. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  187. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  188. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  189. m4_ifndef([AC_AUTOCONF_VERSION],
  190. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  191. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  192. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  193. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  194. #
  195. # This file is free software; the Free Software Foundation
  196. # gives unlimited permission to copy and/or distribute it,
  197. # with or without modifications, as long as this notice is preserved.
  198. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  199. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  200. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  201. #
  202. # Of course, Automake must honor this variable whenever it calls a
  203. # tool from the auxiliary directory. The problem is that $srcdir (and
  204. # therefore $ac_aux_dir as well) can be either absolute or relative,
  205. # depending on how configure is run. This is pretty annoying, since
  206. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  207. # source directory, any form will work fine, but in subdirectories a
  208. # relative path needs to be adjusted first.
  209. #
  210. # $ac_aux_dir/missing
  211. # fails when called from a subdirectory if $ac_aux_dir is relative
  212. # $top_srcdir/$ac_aux_dir/missing
  213. # fails if $ac_aux_dir is absolute,
  214. # fails when called from a subdirectory in a VPATH build with
  215. # a relative $ac_aux_dir
  216. #
  217. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  218. # are both prefixed by $srcdir. In an in-source build this is usually
  219. # harmless because $srcdir is `.', but things will broke when you
  220. # start a VPATH build or use an absolute $srcdir.
  221. #
  222. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  223. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  224. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  225. # and then we would define $MISSING as
  226. # MISSING="\${SHELL} $am_aux_dir/missing"
  227. # This will work as long as MISSING is not called from configure, because
  228. # unfortunately $(top_srcdir) has no meaning in configure.
  229. # However there are other variables, like CC, which are often used in
  230. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  231. #
  232. # Another solution, used here, is to always expand $ac_aux_dir to an
  233. # absolute PATH. The drawback is that using absolute paths prevent a
  234. # configured tree to be moved without reconfiguration.
  235. AC_DEFUN([AM_AUX_DIR_EXPAND],
  236. [dnl Rely on autoconf to set up CDPATH properly.
  237. AC_PREREQ([2.50])dnl
  238. # expand $ac_aux_dir to an absolute path
  239. am_aux_dir=`cd $ac_aux_dir && pwd`
  240. ])
  241. # AM_CONDITIONAL -*- Autoconf -*-
  242. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  243. # Free Software Foundation, Inc.
  244. #
  245. # This file is free software; the Free Software Foundation
  246. # gives unlimited permission to copy and/or distribute it,
  247. # with or without modifications, as long as this notice is preserved.
  248. # serial 9
  249. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  250. # -------------------------------------
  251. # Define a conditional.
  252. AC_DEFUN([AM_CONDITIONAL],
  253. [AC_PREREQ(2.52)dnl
  254. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  255. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  256. AC_SUBST([$1_TRUE])dnl
  257. AC_SUBST([$1_FALSE])dnl
  258. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  259. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  260. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  261. if $2; then
  262. $1_TRUE=
  263. $1_FALSE='#'
  264. else
  265. $1_TRUE='#'
  266. $1_FALSE=
  267. fi
  268. AC_CONFIG_COMMANDS_PRE(
  269. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  270. AC_MSG_ERROR([[conditional "$1" was never defined.
  271. Usually this means the macro was only invoked conditionally.]])
  272. fi])])
  273. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  274. # Free Software Foundation, Inc.
  275. #
  276. # This file is free software; the Free Software Foundation
  277. # gives unlimited permission to copy and/or distribute it,
  278. # with or without modifications, as long as this notice is preserved.
  279. # serial 10
  280. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  281. # written in clear, in which case automake, when reading aclocal.m4,
  282. # will think it sees a *use*, and therefore will trigger all it's
  283. # C support machinery. Also note that it means that autoscan, seeing
  284. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  285. # _AM_DEPENDENCIES(NAME)
  286. # ----------------------
  287. # See how the compiler implements dependency checking.
  288. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  289. # We try a few techniques and use that to set a single cache variable.
  290. #
  291. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  292. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  293. # dependency, and given that the user is not expected to run this macro,
  294. # just rely on AC_PROG_CC.
  295. AC_DEFUN([_AM_DEPENDENCIES],
  296. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  297. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  298. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  299. AC_REQUIRE([AM_DEP_TRACK])dnl
  300. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  301. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  302. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  303. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  304. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  305. [depcc="$$1" am_compiler_list=])
  306. AC_CACHE_CHECK([dependency style of $depcc],
  307. [am_cv_$1_dependencies_compiler_type],
  308. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  309. # We make a subdir and do the tests there. Otherwise we can end up
  310. # making bogus files that we don't know about and never remove. For
  311. # instance it was reported that on HP-UX the gcc test will end up
  312. # making a dummy file named `D' -- because `-MD' means `put the output
  313. # in D'.
  314. mkdir conftest.dir
  315. # Copy depcomp to subdir because otherwise we won't find it if we're
  316. # using a relative directory.
  317. cp "$am_depcomp" conftest.dir
  318. cd conftest.dir
  319. # We will build objects and dependencies in a subdirectory because
  320. # it helps to detect inapplicable dependency modes. For instance
  321. # both Tru64's cc and ICC support -MD to output dependencies as a
  322. # side effect of compilation, but ICC will put the dependencies in
  323. # the current directory while Tru64 will put them in the object
  324. # directory.
  325. mkdir sub
  326. am_cv_$1_dependencies_compiler_type=none
  327. if test "$am_compiler_list" = ""; then
  328. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  329. fi
  330. am__universal=false
  331. m4_case([$1], [CC],
  332. [case " $depcc " in #(
  333. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  334. esac],
  335. [CXX],
  336. [case " $depcc " in #(
  337. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  338. esac])
  339. for depmode in $am_compiler_list; do
  340. # Setup a source with many dependencies, because some compilers
  341. # like to wrap large dependency lists on column 80 (with \), and
  342. # we should not choose a depcomp mode which is confused by this.
  343. #
  344. # We need to recreate these files for each test, as the compiler may
  345. # overwrite some of them when testing with obscure command lines.
  346. # This happens at least with the AIX C compiler.
  347. : > sub/conftest.c
  348. for i in 1 2 3 4 5 6; do
  349. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  350. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  351. # Solaris 8's {/usr,}/bin/sh.
  352. touch sub/conftst$i.h
  353. done
  354. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  355. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  356. # mode. It turns out that the SunPro C++ compiler does not properly
  357. # handle `-M -o', and we need to detect this. Also, some Intel
  358. # versions had trouble with output in subdirs
  359. am__obj=sub/conftest.${OBJEXT-o}
  360. am__minus_obj="-o $am__obj"
  361. case $depmode in
  362. gcc)
  363. # This depmode causes a compiler race in universal mode.
  364. test "$am__universal" = false || continue
  365. ;;
  366. nosideeffect)
  367. # after this tag, mechanisms are not by side-effect, so they'll
  368. # only be used when explicitly requested
  369. if test "x$enable_dependency_tracking" = xyes; then
  370. continue
  371. else
  372. break
  373. fi
  374. ;;
  375. msvisualcpp | msvcmsys)
  376. # This compiler won't grok `-c -o', but also, the minuso test has
  377. # not run yet. These depmodes are late enough in the game, and
  378. # so weak that their functioning should not be impacted.
  379. am__obj=conftest.${OBJEXT-o}
  380. am__minus_obj=
  381. ;;
  382. none) break ;;
  383. esac
  384. if depmode=$depmode \
  385. source=sub/conftest.c object=$am__obj \
  386. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  387. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  388. >/dev/null 2>conftest.err &&
  389. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  390. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  391. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  392. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  393. # icc doesn't choke on unknown options, it will just issue warnings
  394. # or remarks (even with -Werror). So we grep stderr for any message
  395. # that says an option was ignored or not supported.
  396. # When given -MP, icc 7.0 and 7.1 complain thusly:
  397. # icc: Command line warning: ignoring option '-M'; no argument required
  398. # The diagnosis changed in icc 8.0:
  399. # icc: Command line remark: option '-MP' not supported
  400. if (grep 'ignoring option' conftest.err ||
  401. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  402. am_cv_$1_dependencies_compiler_type=$depmode
  403. break
  404. fi
  405. fi
  406. done
  407. cd ..
  408. rm -rf conftest.dir
  409. else
  410. am_cv_$1_dependencies_compiler_type=none
  411. fi
  412. ])
  413. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  414. AM_CONDITIONAL([am__fastdep$1], [
  415. test "x$enable_dependency_tracking" != xno \
  416. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  417. ])
  418. # AM_SET_DEPDIR
  419. # -------------
  420. # Choose a directory name for dependency files.
  421. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  422. AC_DEFUN([AM_SET_DEPDIR],
  423. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  424. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  425. ])
  426. # AM_DEP_TRACK
  427. # ------------
  428. AC_DEFUN([AM_DEP_TRACK],
  429. [AC_ARG_ENABLE(dependency-tracking,
  430. [ --disable-dependency-tracking speeds up one-time build
  431. --enable-dependency-tracking do not reject slow dependency extractors])
  432. if test "x$enable_dependency_tracking" != xno; then
  433. am_depcomp="$ac_aux_dir/depcomp"
  434. AMDEPBACKSLASH='\'
  435. fi
  436. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  437. AC_SUBST([AMDEPBACKSLASH])dnl
  438. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  439. ])
  440. # Generate code to set up dependency tracking. -*- Autoconf -*-
  441. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  442. # Free Software Foundation, Inc.
  443. #
  444. # This file is free software; the Free Software Foundation
  445. # gives unlimited permission to copy and/or distribute it,
  446. # with or without modifications, as long as this notice is preserved.
  447. #serial 5
  448. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  449. # ------------------------------
  450. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  451. [{
  452. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  453. # are listed without --file. Let's play safe and only enable the eval
  454. # if we detect the quoting.
  455. case $CONFIG_FILES in
  456. *\'*) eval set x "$CONFIG_FILES" ;;
  457. *) set x $CONFIG_FILES ;;
  458. esac
  459. shift
  460. for mf
  461. do
  462. # Strip MF so we end up with the name of the file.
  463. mf=`echo "$mf" | sed -e 's/:.*$//'`
  464. # Check whether this is an Automake generated Makefile or not.
  465. # We used to match only the files named `Makefile.in', but
  466. # some people rename them; so instead we look at the file content.
  467. # Grep'ing the first line is not enough: some people post-process
  468. # each Makefile.in and add a new line on top of each file to say so.
  469. # Grep'ing the whole file is not good either: AIX grep has a line
  470. # limit of 2048, but all sed's we know have understand at least 4000.
  471. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  472. dirpart=`AS_DIRNAME("$mf")`
  473. else
  474. continue
  475. fi
  476. # Extract the definition of DEPDIR, am__include, and am__quote
  477. # from the Makefile without running `make'.
  478. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  479. test -z "$DEPDIR" && continue
  480. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  481. test -z "am__include" && continue
  482. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  483. # When using ansi2knr, U may be empty or an underscore; expand it
  484. U=`sed -n 's/^U = //p' < "$mf"`
  485. # Find all dependency output files, they are included files with
  486. # $(DEPDIR) in their names. We invoke sed twice because it is the
  487. # simplest approach to changing $(DEPDIR) to its actual value in the
  488. # expansion.
  489. for file in `sed -n "
  490. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  491. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  492. # Make sure the directory exists.
  493. test -f "$dirpart/$file" && continue
  494. fdir=`AS_DIRNAME(["$file"])`
  495. AS_MKDIR_P([$dirpart/$fdir])
  496. # echo "creating $dirpart/$file"
  497. echo '# dummy' > "$dirpart/$file"
  498. done
  499. done
  500. }
  501. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  502. # AM_OUTPUT_DEPENDENCY_COMMANDS
  503. # -----------------------------
  504. # This macro should only be invoked once -- use via AC_REQUIRE.
  505. #
  506. # This code is only required when automatic dependency tracking
  507. # is enabled. FIXME. This creates each `.P' file that we will
  508. # need in order to bootstrap the dependency handling code.
  509. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  510. [AC_CONFIG_COMMANDS([depfiles],
  511. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  512. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  513. ])
  514. # Do all the work for Automake. -*- Autoconf -*-
  515. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  516. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  517. #
  518. # This file is free software; the Free Software Foundation
  519. # gives unlimited permission to copy and/or distribute it,
  520. # with or without modifications, as long as this notice is preserved.
  521. # serial 16
  522. # This macro actually does too much. Some checks are only needed if
  523. # your package does certain things. But this isn't really a big deal.
  524. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  525. # AM_INIT_AUTOMAKE([OPTIONS])
  526. # -----------------------------------------------
  527. # The call with PACKAGE and VERSION arguments is the old style
  528. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  529. # and VERSION should now be passed to AC_INIT and removed from
  530. # the call to AM_INIT_AUTOMAKE.
  531. # We support both call styles for the transition. After
  532. # the next Automake release, Autoconf can make the AC_INIT
  533. # arguments mandatory, and then we can depend on a new Autoconf
  534. # release and drop the old call support.
  535. AC_DEFUN([AM_INIT_AUTOMAKE],
  536. [AC_PREREQ([2.62])dnl
  537. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  538. dnl the ones we care about.
  539. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  540. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  541. AC_REQUIRE([AC_PROG_INSTALL])dnl
  542. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  543. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  544. # is not polluted with repeated "-I."
  545. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  546. # test to see if srcdir already configured
  547. if test -f $srcdir/config.status; then
  548. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  549. fi
  550. fi
  551. # test whether we have cygpath
  552. if test -z "$CYGPATH_W"; then
  553. if (cygpath --version) >/dev/null 2>/dev/null; then
  554. CYGPATH_W='cygpath -w'
  555. else
  556. CYGPATH_W=echo
  557. fi
  558. fi
  559. AC_SUBST([CYGPATH_W])
  560. # Define the identity of the package.
  561. dnl Distinguish between old-style and new-style calls.
  562. m4_ifval([$2],
  563. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  564. AC_SUBST([PACKAGE], [$1])dnl
  565. AC_SUBST([VERSION], [$2])],
  566. [_AM_SET_OPTIONS([$1])dnl
  567. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  568. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  569. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  570. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  571. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  572. _AM_IF_OPTION([no-define],,
  573. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  574. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  575. # Some tools Automake needs.
  576. AC_REQUIRE([AM_SANITY_CHECK])dnl
  577. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  578. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  579. AM_MISSING_PROG(AUTOCONF, autoconf)
  580. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  581. AM_MISSING_PROG(AUTOHEADER, autoheader)
  582. AM_MISSING_PROG(MAKEINFO, makeinfo)
  583. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  584. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  585. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  586. # We need awk for the "check" target. The system "awk" is bad on
  587. # some platforms.
  588. AC_REQUIRE([AC_PROG_AWK])dnl
  589. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  590. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  591. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  592. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  593. [_AM_PROG_TAR([v7])])])
  594. _AM_IF_OPTION([no-dependencies],,
  595. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  596. [_AM_DEPENDENCIES(CC)],
  597. [define([AC_PROG_CC],
  598. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  599. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  600. [_AM_DEPENDENCIES(CXX)],
  601. [define([AC_PROG_CXX],
  602. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  603. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  604. [_AM_DEPENDENCIES(OBJC)],
  605. [define([AC_PROG_OBJC],
  606. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  607. ])
  608. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  609. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  610. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  611. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  612. AC_CONFIG_COMMANDS_PRE(dnl
  613. [m4_provide_if([_AM_COMPILER_EXEEXT],
  614. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  615. ])
  616. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  617. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  618. dnl mangled by Autoconf and run in a shell conditional statement.
  619. m4_define([_AC_COMPILER_EXEEXT],
  620. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  621. # When config.status generates a header, we must update the stamp-h file.
  622. # This file resides in the same directory as the config header
  623. # that is generated. The stamp files are numbered to have different names.
  624. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  625. # loop where config.status creates the headers, so we can generate
  626. # our stamp files there.
  627. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  628. [# Compute $1's index in $config_headers.
  629. _am_arg=$1
  630. _am_stamp_count=1
  631. for _am_header in $config_headers :; do
  632. case $_am_header in
  633. $_am_arg | $_am_arg:* )
  634. break ;;
  635. * )
  636. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  637. esac
  638. done
  639. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  640. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  641. #
  642. # This file is free software; the Free Software Foundation
  643. # gives unlimited permission to copy and/or distribute it,
  644. # with or without modifications, as long as this notice is preserved.
  645. # AM_PROG_INSTALL_SH
  646. # ------------------
  647. # Define $install_sh.
  648. AC_DEFUN([AM_PROG_INSTALL_SH],
  649. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  650. if test x"${install_sh}" != xset; then
  651. case $am_aux_dir in
  652. *\ * | *\ *)
  653. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  654. *)
  655. install_sh="\${SHELL} $am_aux_dir/install-sh"
  656. esac
  657. fi
  658. AC_SUBST(install_sh)])
  659. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  660. #
  661. # This file is free software; the Free Software Foundation
  662. # gives unlimited permission to copy and/or distribute it,
  663. # with or without modifications, as long as this notice is preserved.
  664. # serial 2
  665. # Check whether the underlying file-system supports filenames
  666. # with a leading dot. For instance MS-DOS doesn't.
  667. AC_DEFUN([AM_SET_LEADING_DOT],
  668. [rm -rf .tst 2>/dev/null
  669. mkdir .tst 2>/dev/null
  670. if test -d .tst; then
  671. am__leading_dot=.
  672. else
  673. am__leading_dot=_
  674. fi
  675. rmdir .tst 2>/dev/null
  676. AC_SUBST([am__leading_dot])])
  677. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  678. # From Jim Meyering
  679. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  680. # Free Software Foundation, Inc.
  681. #
  682. # This file is free software; the Free Software Foundation
  683. # gives unlimited permission to copy and/or distribute it,
  684. # with or without modifications, as long as this notice is preserved.
  685. # serial 5
  686. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  687. # ----------------------------------
  688. # Control maintainer-specific portions of Makefiles.
  689. # Default is to disable them, unless `enable' is passed literally.
  690. # For symmetry, `disable' may be passed as well. Anyway, the user
  691. # can override the default with the --enable/--disable switch.
  692. AC_DEFUN([AM_MAINTAINER_MODE],
  693. [m4_case(m4_default([$1], [disable]),
  694. [enable], [m4_define([am_maintainer_other], [disable])],
  695. [disable], [m4_define([am_maintainer_other], [enable])],
  696. [m4_define([am_maintainer_other], [enable])
  697. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  698. AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  699. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  700. AC_ARG_ENABLE([maintainer-mode],
  701. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  702. (and sometimes confusing) to the casual installer],
  703. [USE_MAINTAINER_MODE=$enableval],
  704. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  705. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  706. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  707. MAINT=$MAINTAINER_MODE_TRUE
  708. AC_SUBST([MAINT])dnl
  709. ]
  710. )
  711. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  712. # Check to see how 'make' treats includes. -*- Autoconf -*-
  713. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  714. #
  715. # This file is free software; the Free Software Foundation
  716. # gives unlimited permission to copy and/or distribute it,
  717. # with or without modifications, as long as this notice is preserved.
  718. # serial 4
  719. # AM_MAKE_INCLUDE()
  720. # -----------------
  721. # Check to see how make treats includes.
  722. AC_DEFUN([AM_MAKE_INCLUDE],
  723. [am_make=${MAKE-make}
  724. cat > confinc << 'END'
  725. am__doit:
  726. @echo this is the am__doit target
  727. .PHONY: am__doit
  728. END
  729. # If we don't find an include directive, just comment out the code.
  730. AC_MSG_CHECKING([for style of include used by $am_make])
  731. am__include="#"
  732. am__quote=
  733. _am_result=none
  734. # First try GNU make style include.
  735. echo "include confinc" > confmf
  736. # Ignore all kinds of additional output from `make'.
  737. case `$am_make -s -f confmf 2> /dev/null` in #(
  738. *the\ am__doit\ target*)
  739. am__include=include
  740. am__quote=
  741. _am_result=GNU
  742. ;;
  743. esac
  744. # Now try BSD make style include.
  745. if test "$am__include" = "#"; then
  746. echo '.include "confinc"' > confmf
  747. case `$am_make -s -f confmf 2> /dev/null` in #(
  748. *the\ am__doit\ target*)
  749. am__include=.include
  750. am__quote="\""
  751. _am_result=BSD
  752. ;;
  753. esac
  754. fi
  755. AC_SUBST([am__include])
  756. AC_SUBST([am__quote])
  757. AC_MSG_RESULT([$_am_result])
  758. rm -f confinc confmf
  759. ])
  760. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  761. # Free Software Foundation, Inc.
  762. #
  763. # This file is free software; the Free Software Foundation
  764. # gives unlimited permission to copy and/or distribute it,
  765. # with or without modifications, as long as this notice is preserved.
  766. # serial 6
  767. # AM_PROG_CC_C_O
  768. # --------------
  769. # Like AC_PROG_CC_C_O, but changed for automake.
  770. AC_DEFUN([AM_PROG_CC_C_O],
  771. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  772. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  773. AC_REQUIRE_AUX_FILE([compile])dnl
  774. # FIXME: we rely on the cache variable name because
  775. # there is no other way.
  776. set dummy $CC
  777. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  778. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  779. if test "$am_t" != yes; then
  780. # Losing compiler, so override with the script.
  781. # FIXME: It is wrong to rewrite CC.
  782. # But if we don't then we get into trouble of one sort or another.
  783. # A longer-term fix would be to have automake use am__CC in this case,
  784. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  785. CC="$am_aux_dir/compile $CC"
  786. fi
  787. dnl Make sure AC_PROG_CC is never called again, or it will override our
  788. dnl setting of CC.
  789. m4_define([AC_PROG_CC],
  790. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  791. ])
  792. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  793. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  794. # Free Software Foundation, Inc.
  795. #
  796. # This file is free software; the Free Software Foundation
  797. # gives unlimited permission to copy and/or distribute it,
  798. # with or without modifications, as long as this notice is preserved.
  799. # serial 6
  800. # AM_MISSING_PROG(NAME, PROGRAM)
  801. # ------------------------------
  802. AC_DEFUN([AM_MISSING_PROG],
  803. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  804. $1=${$1-"${am_missing_run}$2"}
  805. AC_SUBST($1)])
  806. # AM_MISSING_HAS_RUN
  807. # ------------------
  808. # Define MISSING if not defined so far and test if it supports --run.
  809. # If it does, set am_missing_run to use it, otherwise, to nothing.
  810. AC_DEFUN([AM_MISSING_HAS_RUN],
  811. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  812. AC_REQUIRE_AUX_FILE([missing])dnl
  813. if test x"${MISSING+set}" != xset; then
  814. case $am_aux_dir in
  815. *\ * | *\ *)
  816. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  817. *)
  818. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  819. esac
  820. fi
  821. # Use eval to expand $SHELL
  822. if eval "$MISSING --run true"; then
  823. am_missing_run="$MISSING --run "
  824. else
  825. am_missing_run=
  826. AC_MSG_WARN([`missing' script is too old or missing])
  827. fi
  828. ])
  829. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  830. #
  831. # This file is free software; the Free Software Foundation
  832. # gives unlimited permission to copy and/or distribute it,
  833. # with or without modifications, as long as this notice is preserved.
  834. # AM_PROG_MKDIR_P
  835. # ---------------
  836. # Check for `mkdir -p'.
  837. AC_DEFUN([AM_PROG_MKDIR_P],
  838. [AC_PREREQ([2.60])dnl
  839. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  840. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  841. dnl while keeping a definition of mkdir_p for backward compatibility.
  842. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  843. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  844. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  845. dnl adjustment using top_builddir (which is defined more often than
  846. dnl MKDIR_P).
  847. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  848. case $mkdir_p in
  849. [[\\/$]]* | ?:[[\\/]]*) ;;
  850. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  851. esac
  852. ])
  853. # Helper functions for option handling. -*- Autoconf -*-
  854. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  855. #
  856. # This file is free software; the Free Software Foundation
  857. # gives unlimited permission to copy and/or distribute it,
  858. # with or without modifications, as long as this notice is preserved.
  859. # serial 4
  860. # _AM_MANGLE_OPTION(NAME)
  861. # -----------------------
  862. AC_DEFUN([_AM_MANGLE_OPTION],
  863. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  864. # _AM_SET_OPTION(NAME)
  865. # ------------------------------
  866. # Set option NAME. Presently that only means defining a flag for this option.
  867. AC_DEFUN([_AM_SET_OPTION],
  868. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  869. # _AM_SET_OPTIONS(OPTIONS)
  870. # ----------------------------------
  871. # OPTIONS is a space-separated list of Automake options.
  872. AC_DEFUN([_AM_SET_OPTIONS],
  873. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  874. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  875. # -------------------------------------------
  876. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  877. AC_DEFUN([_AM_IF_OPTION],
  878. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  879. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  880. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  881. # 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. # serial 5
  887. # AM_SANITY_CHECK
  888. # ---------------
  889. AC_DEFUN([AM_SANITY_CHECK],
  890. [AC_MSG_CHECKING([whether build environment is sane])
  891. # Just in case
  892. sleep 1
  893. echo timestamp > conftest.file
  894. # Reject unsafe characters in $srcdir or the absolute working directory
  895. # name. Accept space and tab only in the latter.
  896. am_lf='
  897. '
  898. case `pwd` in
  899. *[[\\\"\#\$\&\'\`$am_lf]]*)
  900. AC_MSG_ERROR([unsafe absolute working directory name]);;
  901. esac
  902. case $srcdir in
  903. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  904. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  905. esac
  906. # Do `set' in a subshell so we don't clobber the current shell's
  907. # arguments. Must try -L first in case configure is actually a
  908. # symlink; some systems play weird games with the mod time of symlinks
  909. # (eg FreeBSD returns the mod time of the symlink's containing
  910. # directory).
  911. if (
  912. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  913. if test "$[*]" = "X"; then
  914. # -L didn't work.
  915. set X `ls -t "$srcdir/configure" conftest.file`
  916. fi
  917. rm -f conftest.file
  918. if test "$[*]" != "X $srcdir/configure conftest.file" \
  919. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  920. # If neither matched, then we have a broken ls. This can happen
  921. # if, for instance, CONFIG_SHELL is bash and it inherits a
  922. # broken ls alias from the environment. This has actually
  923. # happened. Such a system could not be considered "sane".
  924. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  925. alias in your environment])
  926. fi
  927. test "$[2]" = conftest.file
  928. )
  929. then
  930. # Ok.
  931. :
  932. else
  933. AC_MSG_ERROR([newly created file is older than distributed files!
  934. Check your system clock])
  935. fi
  936. AC_MSG_RESULT(yes)])
  937. # Copyright (C) 2009 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. # serial 1
  943. # AM_SILENT_RULES([DEFAULT])
  944. # --------------------------
  945. # Enable less verbose build rules; with the default set to DEFAULT
  946. # (`yes' being less verbose, `no' or empty being verbose).
  947. AC_DEFUN([AM_SILENT_RULES],
  948. [AC_ARG_ENABLE([silent-rules],
  949. [ --enable-silent-rules less verbose build output (undo: `make V=1')
  950. --disable-silent-rules verbose build output (undo: `make V=0')])
  951. case $enable_silent_rules in
  952. yes) AM_DEFAULT_VERBOSITY=0;;
  953. no) AM_DEFAULT_VERBOSITY=1;;
  954. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  955. esac
  956. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  957. AM_BACKSLASH='\'
  958. AC_SUBST([AM_BACKSLASH])dnl
  959. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  960. ])
  961. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  962. #
  963. # This file is free software; the Free Software Foundation
  964. # gives unlimited permission to copy and/or distribute it,
  965. # with or without modifications, as long as this notice is preserved.
  966. # AM_PROG_INSTALL_STRIP
  967. # ---------------------
  968. # One issue with vendor `install' (even GNU) is that you can't
  969. # specify the program used to strip binaries. This is especially
  970. # annoying in cross-compiling environments, where the build's strip
  971. # is unlikely to handle the host's binaries.
  972. # Fortunately install-sh will honor a STRIPPROG variable, so we
  973. # always use install-sh in `make install-strip', and initialize
  974. # STRIPPROG with the value of the STRIP variable (set by the user).
  975. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  976. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  977. # Installed binaries are usually stripped using `strip' when the user
  978. # run `make install-strip'. However `strip' might not be the right
  979. # tool to use in cross-compilation environments, therefore Automake
  980. # will honor the `STRIP' environment variable to overrule this program.
  981. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  982. if test "$cross_compiling" != no; then
  983. AC_CHECK_TOOL([STRIP], [strip], :)
  984. fi
  985. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  986. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  987. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  988. #
  989. # This file is free software; the Free Software Foundation
  990. # gives unlimited permission to copy and/or distribute it,
  991. # with or without modifications, as long as this notice is preserved.
  992. # serial 2
  993. # _AM_SUBST_NOTMAKE(VARIABLE)
  994. # ---------------------------
  995. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  996. # This macro is traced by Automake.
  997. AC_DEFUN([_AM_SUBST_NOTMAKE])
  998. # AM_SUBST_NOTMAKE(VARIABLE)
  999. # ---------------------------
  1000. # Public sister of _AM_SUBST_NOTMAKE.
  1001. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1002. # Check how to create a tarball. -*- Autoconf -*-
  1003. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  1004. #
  1005. # This file is free software; the Free Software Foundation
  1006. # gives unlimited permission to copy and/or distribute it,
  1007. # with or without modifications, as long as this notice is preserved.
  1008. # serial 2
  1009. # _AM_PROG_TAR(FORMAT)
  1010. # --------------------
  1011. # Check how to create a tarball in format FORMAT.
  1012. # FORMAT should be one of `v7', `ustar', or `pax'.
  1013. #
  1014. # Substitute a variable $(am__tar) that is a command
  1015. # writing to stdout a FORMAT-tarball containing the directory
  1016. # $tardir.
  1017. # tardir=directory && $(am__tar) > result.tar
  1018. #
  1019. # Substitute a variable $(am__untar) that extract such
  1020. # a tarball read from stdin.
  1021. # $(am__untar) < result.tar
  1022. AC_DEFUN([_AM_PROG_TAR],
  1023. [# Always define AMTAR for backward compatibility.
  1024. AM_MISSING_PROG([AMTAR], [tar])
  1025. m4_if([$1], [v7],
  1026. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1027. [m4_case([$1], [ustar],, [pax],,
  1028. [m4_fatal([Unknown tar format])])
  1029. AC_MSG_CHECKING([how to create a $1 tar archive])
  1030. # Loop over all known methods to create a tar archive until one works.
  1031. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1032. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1033. # Do not fold the above two line into one, because Tru64 sh and
  1034. # Solaris sh will not grok spaces in the rhs of `-'.
  1035. for _am_tool in $_am_tools
  1036. do
  1037. case $_am_tool in
  1038. gnutar)
  1039. for _am_tar in tar gnutar gtar;
  1040. do
  1041. AM_RUN_LOG([$_am_tar --version]) && break
  1042. done
  1043. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1044. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1045. am__untar="$_am_tar -xf -"
  1046. ;;
  1047. plaintar)
  1048. # Must skip GNU tar: if it does not support --format= it doesn't create
  1049. # ustar tarball either.
  1050. (tar --version) >/dev/null 2>&1 && continue
  1051. am__tar='tar chf - "$$tardir"'
  1052. am__tar_='tar chf - "$tardir"'
  1053. am__untar='tar xf -'
  1054. ;;
  1055. pax)
  1056. am__tar='pax -L -x $1 -w "$$tardir"'
  1057. am__tar_='pax -L -x $1 -w "$tardir"'
  1058. am__untar='pax -r'
  1059. ;;
  1060. cpio)
  1061. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1062. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1063. am__untar='cpio -i -H $1 -d'
  1064. ;;
  1065. none)
  1066. am__tar=false
  1067. am__tar_=false
  1068. am__untar=false
  1069. ;;
  1070. esac
  1071. # If the value was cached, stop now. We just wanted to have am__tar
  1072. # and am__untar set.
  1073. test -n "${am_cv_prog_tar_$1}" && break
  1074. # tar/untar a dummy directory, and stop if the command works
  1075. rm -rf conftest.dir
  1076. mkdir conftest.dir
  1077. echo GrepMe > conftest.dir/file
  1078. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1079. rm -rf conftest.dir
  1080. if test -s conftest.tar; then
  1081. AM_RUN_LOG([$am__untar <conftest.tar])
  1082. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1083. fi
  1084. done
  1085. rm -rf conftest.dir
  1086. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1087. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1088. AC_SUBST([am__tar])
  1089. AC_SUBST([am__untar])
  1090. ]) # _AM_PROG_TAR
  1091. m4_include([m4/00gnulib.m4])
  1092. m4_include([m4/extensions.m4])
  1093. m4_include([m4/gnulib-common.m4])
  1094. m4_include([m4/gnulib-comp.m4])
  1095. m4_include([m4/include_next.m4])
  1096. m4_include([m4/libtool.m4])
  1097. m4_include([m4/longlong.m4])
  1098. m4_include([m4/ltoptions.m4])
  1099. m4_include([m4/ltsugar.m4])
  1100. m4_include([m4/ltversion.m4])
  1101. m4_include([m4/lt~obsolete.m4])
  1102. m4_include([m4/memchr.m4])
  1103. m4_include([m4/memmem.m4])
  1104. m4_include([m4/mmap-anon.m4])
  1105. m4_include([m4/multiarch.m4])
  1106. m4_include([m4/onceonly.m4])
  1107. m4_include([m4/sigaction.m4])
  1108. m4_include([m4/signal_h.m4])
  1109. m4_include([m4/signalblocking.m4])
  1110. m4_include([m4/stddef_h.m4])
  1111. m4_include([m4/stdint.m4])
  1112. m4_include([m4/string_h.m4])
  1113. m4_include([m4/warn-on-use.m4])
  1114. m4_include([m4/wchar_t.m4])