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.

1297 lines
49 KiB

  1. # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
  4. # Inc.
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. # PARTICULAR PURPOSE.
  12. m4_ifndef([AC_AUTOCONF_VERSION],
  13. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  15. [m4_warning([this file was generated for autoconf 2.68.
  16. You have another version of autoconf. It may work, but is not guaranteed to.
  17. If you have problems, you may need to regenerate the build system entirely.
  18. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  19. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  20. #
  21. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  22. # Written by Scott James Remnant, 2004.
  23. #
  24. # This file is free software; the Free Software Foundation gives
  25. # unlimited permission to copy and/or distribute it, with or without
  26. # modifications, as long as this notice is preserved.
  27. # serial 5 lt~obsolete.m4
  28. # These exist entirely to fool aclocal when bootstrapping libtool.
  29. #
  30. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  31. # which have later been changed to m4_define as they aren't part of the
  32. # exported API, or moved to Autoconf or Automake where they belong.
  33. #
  34. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  35. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  36. # using a macro with the same name in our local m4/libtool.m4 it'll
  37. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  38. # and doesn't know about Autoconf macros at all.)
  39. #
  40. # So we provide this file, which has a silly filename so it's always
  41. # included after everything else. This provides aclocal with the
  42. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  43. # because those macros already exist, or will be overwritten later.
  44. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  45. #
  46. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  47. # Yes, that means every name once taken will need to remain here until
  48. # we give up compatibility with versions before 1.7, at which point
  49. # we need to keep only those names which we still refer to.
  50. # This is to help aclocal find these macros, as it can't see m4_define.
  51. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  52. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  53. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  54. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  55. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  56. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  57. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  58. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  59. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  60. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  61. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  62. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  63. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  64. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  65. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  66. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  67. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  68. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  69. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  70. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  71. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  72. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  73. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  74. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  75. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  76. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  77. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  78. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  79. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  80. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  81. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  82. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  83. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  84. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  85. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  86. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  87. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  88. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  89. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  90. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  91. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  92. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  93. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  94. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  95. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  96. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  97. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  98. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  99. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  100. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  101. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  102. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  103. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  104. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  105. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  106. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  107. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  108. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  109. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  110. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  111. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  112. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  113. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
  114. # Foundation, Inc.
  115. #
  116. # This file is free software; the Free Software Foundation
  117. # gives unlimited permission to copy and/or distribute it,
  118. # with or without modifications, as long as this notice is preserved.
  119. # serial 1
  120. # AM_AUTOMAKE_VERSION(VERSION)
  121. # ----------------------------
  122. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  123. # generated from the m4 files accompanying Automake X.Y.
  124. # (This private macro should not be called outside this file.)
  125. AC_DEFUN([AM_AUTOMAKE_VERSION],
  126. [am__api_version='1.11'
  127. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  128. dnl require some minimum version. Point them to the right macro.
  129. m4_if([$1], [1.11.3], [],
  130. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  131. ])
  132. # _AM_AUTOCONF_VERSION(VERSION)
  133. # -----------------------------
  134. # aclocal traces this macro to find the Autoconf version.
  135. # This is a private macro too. Using m4_define simplifies
  136. # the logic in aclocal, which can simply ignore this definition.
  137. m4_define([_AM_AUTOCONF_VERSION], [])
  138. # AM_SET_CURRENT_AUTOMAKE_VERSION
  139. # -------------------------------
  140. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  141. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  142. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  143. [AM_AUTOMAKE_VERSION([1.11.3])dnl
  144. m4_ifndef([AC_AUTOCONF_VERSION],
  145. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  146. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  147. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  148. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  149. #
  150. # This file is free software; the Free Software Foundation
  151. # gives unlimited permission to copy and/or distribute it,
  152. # with or without modifications, as long as this notice is preserved.
  153. # serial 1
  154. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  155. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  156. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  157. #
  158. # Of course, Automake must honor this variable whenever it calls a
  159. # tool from the auxiliary directory. The problem is that $srcdir (and
  160. # therefore $ac_aux_dir as well) can be either absolute or relative,
  161. # depending on how configure is run. This is pretty annoying, since
  162. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  163. # source directory, any form will work fine, but in subdirectories a
  164. # relative path needs to be adjusted first.
  165. #
  166. # $ac_aux_dir/missing
  167. # fails when called from a subdirectory if $ac_aux_dir is relative
  168. # $top_srcdir/$ac_aux_dir/missing
  169. # fails if $ac_aux_dir is absolute,
  170. # fails when called from a subdirectory in a VPATH build with
  171. # a relative $ac_aux_dir
  172. #
  173. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  174. # are both prefixed by $srcdir. In an in-source build this is usually
  175. # harmless because $srcdir is `.', but things will broke when you
  176. # start a VPATH build or use an absolute $srcdir.
  177. #
  178. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  179. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  180. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  181. # and then we would define $MISSING as
  182. # MISSING="\${SHELL} $am_aux_dir/missing"
  183. # This will work as long as MISSING is not called from configure, because
  184. # unfortunately $(top_srcdir) has no meaning in configure.
  185. # However there are other variables, like CC, which are often used in
  186. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  187. #
  188. # Another solution, used here, is to always expand $ac_aux_dir to an
  189. # absolute PATH. The drawback is that using absolute paths prevent a
  190. # configured tree to be moved without reconfiguration.
  191. AC_DEFUN([AM_AUX_DIR_EXPAND],
  192. [dnl Rely on autoconf to set up CDPATH properly.
  193. AC_PREREQ([2.50])dnl
  194. # expand $ac_aux_dir to an absolute path
  195. am_aux_dir=`cd $ac_aux_dir && pwd`
  196. ])
  197. # AM_CONDITIONAL -*- Autoconf -*-
  198. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  199. # Free Software Foundation, Inc.
  200. #
  201. # This file is free software; the Free Software Foundation
  202. # gives unlimited permission to copy and/or distribute it,
  203. # with or without modifications, as long as this notice is preserved.
  204. # serial 9
  205. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  206. # -------------------------------------
  207. # Define a conditional.
  208. AC_DEFUN([AM_CONDITIONAL],
  209. [AC_PREREQ(2.52)dnl
  210. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  211. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  212. AC_SUBST([$1_TRUE])dnl
  213. AC_SUBST([$1_FALSE])dnl
  214. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  215. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  216. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  217. if $2; then
  218. $1_TRUE=
  219. $1_FALSE='#'
  220. else
  221. $1_TRUE='#'
  222. $1_FALSE=
  223. fi
  224. AC_CONFIG_COMMANDS_PRE(
  225. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  226. AC_MSG_ERROR([[conditional "$1" was never defined.
  227. Usually this means the macro was only invoked conditionally.]])
  228. fi])])
  229. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  230. # 2010, 2011 Free Software Foundation, Inc.
  231. #
  232. # This file is free software; the Free Software Foundation
  233. # gives unlimited permission to copy and/or distribute it,
  234. # with or without modifications, as long as this notice is preserved.
  235. # serial 12
  236. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  237. # written in clear, in which case automake, when reading aclocal.m4,
  238. # will think it sees a *use*, and therefore will trigger all it's
  239. # C support machinery. Also note that it means that autoscan, seeing
  240. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  241. # _AM_DEPENDENCIES(NAME)
  242. # ----------------------
  243. # See how the compiler implements dependency checking.
  244. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  245. # We try a few techniques and use that to set a single cache variable.
  246. #
  247. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  248. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  249. # dependency, and given that the user is not expected to run this macro,
  250. # just rely on AC_PROG_CC.
  251. AC_DEFUN([_AM_DEPENDENCIES],
  252. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  253. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  254. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  255. AC_REQUIRE([AM_DEP_TRACK])dnl
  256. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  257. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  258. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  259. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  260. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  261. [depcc="$$1" am_compiler_list=])
  262. AC_CACHE_CHECK([dependency style of $depcc],
  263. [am_cv_$1_dependencies_compiler_type],
  264. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  265. # We make a subdir and do the tests there. Otherwise we can end up
  266. # making bogus files that we don't know about and never remove. For
  267. # instance it was reported that on HP-UX the gcc test will end up
  268. # making a dummy file named `D' -- because `-MD' means `put the output
  269. # in D'.
  270. rm -rf conftest.dir
  271. mkdir conftest.dir
  272. # Copy depcomp to subdir because otherwise we won't find it if we're
  273. # using a relative directory.
  274. cp "$am_depcomp" conftest.dir
  275. cd conftest.dir
  276. # We will build objects and dependencies in a subdirectory because
  277. # it helps to detect inapplicable dependency modes. For instance
  278. # both Tru64's cc and ICC support -MD to output dependencies as a
  279. # side effect of compilation, but ICC will put the dependencies in
  280. # the current directory while Tru64 will put them in the object
  281. # directory.
  282. mkdir sub
  283. am_cv_$1_dependencies_compiler_type=none
  284. if test "$am_compiler_list" = ""; then
  285. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  286. fi
  287. am__universal=false
  288. m4_case([$1], [CC],
  289. [case " $depcc " in #(
  290. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  291. esac],
  292. [CXX],
  293. [case " $depcc " in #(
  294. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  295. esac])
  296. for depmode in $am_compiler_list; do
  297. # Setup a source with many dependencies, because some compilers
  298. # like to wrap large dependency lists on column 80 (with \), and
  299. # we should not choose a depcomp mode which is confused by this.
  300. #
  301. # We need to recreate these files for each test, as the compiler may
  302. # overwrite some of them when testing with obscure command lines.
  303. # This happens at least with the AIX C compiler.
  304. : > sub/conftest.c
  305. for i in 1 2 3 4 5 6; do
  306. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  307. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  308. # Solaris 8's {/usr,}/bin/sh.
  309. touch sub/conftst$i.h
  310. done
  311. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  312. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  313. # mode. It turns out that the SunPro C++ compiler does not properly
  314. # handle `-M -o', and we need to detect this. Also, some Intel
  315. # versions had trouble with output in subdirs
  316. am__obj=sub/conftest.${OBJEXT-o}
  317. am__minus_obj="-o $am__obj"
  318. case $depmode in
  319. gcc)
  320. # This depmode causes a compiler race in universal mode.
  321. test "$am__universal" = false || continue
  322. ;;
  323. nosideeffect)
  324. # after this tag, mechanisms are not by side-effect, so they'll
  325. # only be used when explicitly requested
  326. if test "x$enable_dependency_tracking" = xyes; then
  327. continue
  328. else
  329. break
  330. fi
  331. ;;
  332. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  333. # This compiler won't grok `-c -o', but also, the minuso test has
  334. # not run yet. These depmodes are late enough in the game, and
  335. # so weak that their functioning should not be impacted.
  336. am__obj=conftest.${OBJEXT-o}
  337. am__minus_obj=
  338. ;;
  339. none) break ;;
  340. esac
  341. if depmode=$depmode \
  342. source=sub/conftest.c object=$am__obj \
  343. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  344. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  345. >/dev/null 2>conftest.err &&
  346. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  347. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  348. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  349. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  350. # icc doesn't choke on unknown options, it will just issue warnings
  351. # or remarks (even with -Werror). So we grep stderr for any message
  352. # that says an option was ignored or not supported.
  353. # When given -MP, icc 7.0 and 7.1 complain thusly:
  354. # icc: Command line warning: ignoring option '-M'; no argument required
  355. # The diagnosis changed in icc 8.0:
  356. # icc: Command line remark: option '-MP' not supported
  357. if (grep 'ignoring option' conftest.err ||
  358. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  359. am_cv_$1_dependencies_compiler_type=$depmode
  360. break
  361. fi
  362. fi
  363. done
  364. cd ..
  365. rm -rf conftest.dir
  366. else
  367. am_cv_$1_dependencies_compiler_type=none
  368. fi
  369. ])
  370. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  371. AM_CONDITIONAL([am__fastdep$1], [
  372. test "x$enable_dependency_tracking" != xno \
  373. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  374. ])
  375. # AM_SET_DEPDIR
  376. # -------------
  377. # Choose a directory name for dependency files.
  378. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  379. AC_DEFUN([AM_SET_DEPDIR],
  380. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  381. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  382. ])
  383. # AM_DEP_TRACK
  384. # ------------
  385. AC_DEFUN([AM_DEP_TRACK],
  386. [AC_ARG_ENABLE(dependency-tracking,
  387. [ --disable-dependency-tracking speeds up one-time build
  388. --enable-dependency-tracking do not reject slow dependency extractors])
  389. if test "x$enable_dependency_tracking" != xno; then
  390. am_depcomp="$ac_aux_dir/depcomp"
  391. AMDEPBACKSLASH='\'
  392. am__nodep='_no'
  393. fi
  394. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  395. AC_SUBST([AMDEPBACKSLASH])dnl
  396. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  397. AC_SUBST([am__nodep])dnl
  398. _AM_SUBST_NOTMAKE([am__nodep])dnl
  399. ])
  400. # Generate code to set up dependency tracking. -*- Autoconf -*-
  401. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  402. # Free Software Foundation, Inc.
  403. #
  404. # This file is free software; the Free Software Foundation
  405. # gives unlimited permission to copy and/or distribute it,
  406. # with or without modifications, as long as this notice is preserved.
  407. #serial 5
  408. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  409. # ------------------------------
  410. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  411. [{
  412. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  413. # are listed without --file. Let's play safe and only enable the eval
  414. # if we detect the quoting.
  415. case $CONFIG_FILES in
  416. *\'*) eval set x "$CONFIG_FILES" ;;
  417. *) set x $CONFIG_FILES ;;
  418. esac
  419. shift
  420. for mf
  421. do
  422. # Strip MF so we end up with the name of the file.
  423. mf=`echo "$mf" | sed -e 's/:.*$//'`
  424. # Check whether this is an Automake generated Makefile or not.
  425. # We used to match only the files named `Makefile.in', but
  426. # some people rename them; so instead we look at the file content.
  427. # Grep'ing the first line is not enough: some people post-process
  428. # each Makefile.in and add a new line on top of each file to say so.
  429. # Grep'ing the whole file is not good either: AIX grep has a line
  430. # limit of 2048, but all sed's we know have understand at least 4000.
  431. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  432. dirpart=`AS_DIRNAME("$mf")`
  433. else
  434. continue
  435. fi
  436. # Extract the definition of DEPDIR, am__include, and am__quote
  437. # from the Makefile without running `make'.
  438. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  439. test -z "$DEPDIR" && continue
  440. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  441. test -z "am__include" && continue
  442. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  443. # When using ansi2knr, U may be empty or an underscore; expand it
  444. U=`sed -n 's/^U = //p' < "$mf"`
  445. # Find all dependency output files, they are included files with
  446. # $(DEPDIR) in their names. We invoke sed twice because it is the
  447. # simplest approach to changing $(DEPDIR) to its actual value in the
  448. # expansion.
  449. for file in `sed -n "
  450. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  451. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  452. # Make sure the directory exists.
  453. test -f "$dirpart/$file" && continue
  454. fdir=`AS_DIRNAME(["$file"])`
  455. AS_MKDIR_P([$dirpart/$fdir])
  456. # echo "creating $dirpart/$file"
  457. echo '# dummy' > "$dirpart/$file"
  458. done
  459. done
  460. }
  461. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  462. # AM_OUTPUT_DEPENDENCY_COMMANDS
  463. # -----------------------------
  464. # This macro should only be invoked once -- use via AC_REQUIRE.
  465. #
  466. # This code is only required when automatic dependency tracking
  467. # is enabled. FIXME. This creates each `.P' file that we will
  468. # need in order to bootstrap the dependency handling code.
  469. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  470. [AC_CONFIG_COMMANDS([depfiles],
  471. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  472. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  473. ])
  474. # Do all the work for Automake. -*- Autoconf -*-
  475. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  476. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  477. #
  478. # This file is free software; the Free Software Foundation
  479. # gives unlimited permission to copy and/or distribute it,
  480. # with or without modifications, as long as this notice is preserved.
  481. # serial 16
  482. # This macro actually does too much. Some checks are only needed if
  483. # your package does certain things. But this isn't really a big deal.
  484. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  485. # AM_INIT_AUTOMAKE([OPTIONS])
  486. # -----------------------------------------------
  487. # The call with PACKAGE and VERSION arguments is the old style
  488. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  489. # and VERSION should now be passed to AC_INIT and removed from
  490. # the call to AM_INIT_AUTOMAKE.
  491. # We support both call styles for the transition. After
  492. # the next Automake release, Autoconf can make the AC_INIT
  493. # arguments mandatory, and then we can depend on a new Autoconf
  494. # release and drop the old call support.
  495. AC_DEFUN([AM_INIT_AUTOMAKE],
  496. [AC_PREREQ([2.62])dnl
  497. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  498. dnl the ones we care about.
  499. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  500. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  501. AC_REQUIRE([AC_PROG_INSTALL])dnl
  502. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  503. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  504. # is not polluted with repeated "-I."
  505. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  506. # test to see if srcdir already configured
  507. if test -f $srcdir/config.status; then
  508. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  509. fi
  510. fi
  511. # test whether we have cygpath
  512. if test -z "$CYGPATH_W"; then
  513. if (cygpath --version) >/dev/null 2>/dev/null; then
  514. CYGPATH_W='cygpath -w'
  515. else
  516. CYGPATH_W=echo
  517. fi
  518. fi
  519. AC_SUBST([CYGPATH_W])
  520. # Define the identity of the package.
  521. dnl Distinguish between old-style and new-style calls.
  522. m4_ifval([$2],
  523. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  524. AC_SUBST([PACKAGE], [$1])dnl
  525. AC_SUBST([VERSION], [$2])],
  526. [_AM_SET_OPTIONS([$1])dnl
  527. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  528. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  529. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  530. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  531. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  532. _AM_IF_OPTION([no-define],,
  533. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  534. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  535. # Some tools Automake needs.
  536. AC_REQUIRE([AM_SANITY_CHECK])dnl
  537. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  538. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  539. AM_MISSING_PROG(AUTOCONF, autoconf)
  540. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  541. AM_MISSING_PROG(AUTOHEADER, autoheader)
  542. AM_MISSING_PROG(MAKEINFO, makeinfo)
  543. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  544. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  545. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  546. # We need awk for the "check" target. The system "awk" is bad on
  547. # some platforms.
  548. AC_REQUIRE([AC_PROG_AWK])dnl
  549. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  550. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  551. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  552. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  553. [_AM_PROG_TAR([v7])])])
  554. _AM_IF_OPTION([no-dependencies],,
  555. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  556. [_AM_DEPENDENCIES(CC)],
  557. [define([AC_PROG_CC],
  558. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  559. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  560. [_AM_DEPENDENCIES(CXX)],
  561. [define([AC_PROG_CXX],
  562. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  563. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  564. [_AM_DEPENDENCIES(OBJC)],
  565. [define([AC_PROG_OBJC],
  566. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  567. ])
  568. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  569. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  570. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  571. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  572. AC_CONFIG_COMMANDS_PRE(dnl
  573. [m4_provide_if([_AM_COMPILER_EXEEXT],
  574. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  575. ])
  576. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  577. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  578. dnl mangled by Autoconf and run in a shell conditional statement.
  579. m4_define([_AC_COMPILER_EXEEXT],
  580. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  581. # When config.status generates a header, we must update the stamp-h file.
  582. # This file resides in the same directory as the config header
  583. # that is generated. The stamp files are numbered to have different names.
  584. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  585. # loop where config.status creates the headers, so we can generate
  586. # our stamp files there.
  587. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  588. [# Compute $1's index in $config_headers.
  589. _am_arg=$1
  590. _am_stamp_count=1
  591. for _am_header in $config_headers :; do
  592. case $_am_header in
  593. $_am_arg | $_am_arg:* )
  594. break ;;
  595. * )
  596. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  597. esac
  598. done
  599. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  600. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  601. # Inc.
  602. #
  603. # This file is free software; the Free Software Foundation
  604. # gives unlimited permission to copy and/or distribute it,
  605. # with or without modifications, as long as this notice is preserved.
  606. # serial 1
  607. # AM_PROG_INSTALL_SH
  608. # ------------------
  609. # Define $install_sh.
  610. AC_DEFUN([AM_PROG_INSTALL_SH],
  611. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  612. if test x"${install_sh}" != xset; then
  613. case $am_aux_dir in
  614. *\ * | *\ *)
  615. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  616. *)
  617. install_sh="\${SHELL} $am_aux_dir/install-sh"
  618. esac
  619. fi
  620. AC_SUBST(install_sh)])
  621. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  622. #
  623. # This file is free software; the Free Software Foundation
  624. # gives unlimited permission to copy and/or distribute it,
  625. # with or without modifications, as long as this notice is preserved.
  626. # serial 2
  627. # Check whether the underlying file-system supports filenames
  628. # with a leading dot. For instance MS-DOS doesn't.
  629. AC_DEFUN([AM_SET_LEADING_DOT],
  630. [rm -rf .tst 2>/dev/null
  631. mkdir .tst 2>/dev/null
  632. if test -d .tst; then
  633. am__leading_dot=.
  634. else
  635. am__leading_dot=_
  636. fi
  637. rmdir .tst 2>/dev/null
  638. AC_SUBST([am__leading_dot])])
  639. # Check to see how 'make' treats includes. -*- Autoconf -*-
  640. # Copyright (C) 2001, 2002, 2003, 2005, 2009 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. # serial 4
  646. # AM_MAKE_INCLUDE()
  647. # -----------------
  648. # Check to see how make treats includes.
  649. AC_DEFUN([AM_MAKE_INCLUDE],
  650. [am_make=${MAKE-make}
  651. cat > confinc << 'END'
  652. am__doit:
  653. @echo this is the am__doit target
  654. .PHONY: am__doit
  655. END
  656. # If we don't find an include directive, just comment out the code.
  657. AC_MSG_CHECKING([for style of include used by $am_make])
  658. am__include="#"
  659. am__quote=
  660. _am_result=none
  661. # First try GNU make style include.
  662. echo "include confinc" > confmf
  663. # Ignore all kinds of additional output from `make'.
  664. case `$am_make -s -f confmf 2> /dev/null` in #(
  665. *the\ am__doit\ target*)
  666. am__include=include
  667. am__quote=
  668. _am_result=GNU
  669. ;;
  670. esac
  671. # Now try BSD make style include.
  672. if test "$am__include" = "#"; then
  673. echo '.include "confinc"' > confmf
  674. case `$am_make -s -f confmf 2> /dev/null` in #(
  675. *the\ am__doit\ target*)
  676. am__include=.include
  677. am__quote="\""
  678. _am_result=BSD
  679. ;;
  680. esac
  681. fi
  682. AC_SUBST([am__include])
  683. AC_SUBST([am__quote])
  684. AC_MSG_RESULT([$_am_result])
  685. rm -f confinc confmf
  686. ])
  687. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  688. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  689. # Free Software Foundation, Inc.
  690. #
  691. # This file is free software; the Free Software Foundation
  692. # gives unlimited permission to copy and/or distribute it,
  693. # with or without modifications, as long as this notice is preserved.
  694. # serial 6
  695. # AM_MISSING_PROG(NAME, PROGRAM)
  696. # ------------------------------
  697. AC_DEFUN([AM_MISSING_PROG],
  698. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  699. $1=${$1-"${am_missing_run}$2"}
  700. AC_SUBST($1)])
  701. # AM_MISSING_HAS_RUN
  702. # ------------------
  703. # Define MISSING if not defined so far and test if it supports --run.
  704. # If it does, set am_missing_run to use it, otherwise, to nothing.
  705. AC_DEFUN([AM_MISSING_HAS_RUN],
  706. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  707. AC_REQUIRE_AUX_FILE([missing])dnl
  708. if test x"${MISSING+set}" != xset; then
  709. case $am_aux_dir in
  710. *\ * | *\ *)
  711. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  712. *)
  713. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  714. esac
  715. fi
  716. # Use eval to expand $SHELL
  717. if eval "$MISSING --run true"; then
  718. am_missing_run="$MISSING --run "
  719. else
  720. am_missing_run=
  721. AC_MSG_WARN([`missing' script is too old or missing])
  722. fi
  723. ])
  724. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  725. # Inc.
  726. #
  727. # This file is free software; the Free Software Foundation
  728. # gives unlimited permission to copy and/or distribute it,
  729. # with or without modifications, as long as this notice is preserved.
  730. # serial 1
  731. # AM_PROG_MKDIR_P
  732. # ---------------
  733. # Check for `mkdir -p'.
  734. AC_DEFUN([AM_PROG_MKDIR_P],
  735. [AC_PREREQ([2.60])dnl
  736. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  737. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  738. dnl while keeping a definition of mkdir_p for backward compatibility.
  739. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  740. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  741. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  742. dnl adjustment using top_builddir (which is defined more often than
  743. dnl MKDIR_P).
  744. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  745. case $mkdir_p in
  746. [[\\/$]]* | ?:[[\\/]]*) ;;
  747. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  748. esac
  749. ])
  750. # Helper functions for option handling. -*- Autoconf -*-
  751. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  752. # Foundation, Inc.
  753. #
  754. # This file is free software; the Free Software Foundation
  755. # gives unlimited permission to copy and/or distribute it,
  756. # with or without modifications, as long as this notice is preserved.
  757. # serial 5
  758. # _AM_MANGLE_OPTION(NAME)
  759. # -----------------------
  760. AC_DEFUN([_AM_MANGLE_OPTION],
  761. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  762. # _AM_SET_OPTION(NAME)
  763. # --------------------
  764. # Set option NAME. Presently that only means defining a flag for this option.
  765. AC_DEFUN([_AM_SET_OPTION],
  766. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  767. # _AM_SET_OPTIONS(OPTIONS)
  768. # ------------------------
  769. # OPTIONS is a space-separated list of Automake options.
  770. AC_DEFUN([_AM_SET_OPTIONS],
  771. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  772. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  773. # -------------------------------------------
  774. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  775. AC_DEFUN([_AM_IF_OPTION],
  776. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  777. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009,
  778. # 2011 Free Software Foundation, Inc.
  779. #
  780. # This file is free software; the Free Software Foundation
  781. # gives unlimited permission to copy and/or distribute it,
  782. # with or without modifications, as long as this notice is preserved.
  783. # serial 2
  784. # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  785. # ---------------------------------------------------------------------------
  786. # Adds support for distributing Python modules and packages. To
  787. # install modules, copy them to $(pythondir), using the python_PYTHON
  788. # automake variable. To install a package with the same name as the
  789. # automake package, install to $(pkgpythondir), or use the
  790. # pkgpython_PYTHON automake variable.
  791. #
  792. # The variables $(pyexecdir) and $(pkgpyexecdir) are provided as
  793. # locations to install python extension modules (shared libraries).
  794. # Another macro is required to find the appropriate flags to compile
  795. # extension modules.
  796. #
  797. # If your package is configured with a different prefix to python,
  798. # users will have to add the install directory to the PYTHONPATH
  799. # environment variable, or create a .pth file (see the python
  800. # documentation for details).
  801. #
  802. # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
  803. # cause an error if the version of python installed on the system
  804. # doesn't meet the requirement. MINIMUM-VERSION should consist of
  805. # numbers and dots only.
  806. AC_DEFUN([AM_PATH_PYTHON],
  807. [
  808. dnl Find a Python interpreter. Python versions prior to 2.0 are not
  809. dnl supported. (2.0 was released on October 16, 2000).
  810. m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
  811. [python python2 python3 python3.2 python3.1 python3.0 python2.7 dnl
  812. python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
  813. AC_ARG_VAR([PYTHON], [the Python interpreter])
  814. m4_if([$1],[],[
  815. dnl No version check is needed.
  816. # Find any Python interpreter.
  817. if test -z "$PYTHON"; then
  818. AC_PATH_PROGS([PYTHON], _AM_PYTHON_INTERPRETER_LIST, :)
  819. fi
  820. am_display_PYTHON=python
  821. ], [
  822. dnl A version check is needed.
  823. if test -n "$PYTHON"; then
  824. # If the user set $PYTHON, use it and don't search something else.
  825. AC_MSG_CHECKING([whether $PYTHON version >= $1])
  826. AM_PYTHON_CHECK_VERSION([$PYTHON], [$1],
  827. [AC_MSG_RESULT(yes)],
  828. [AC_MSG_ERROR(too old)])
  829. am_display_PYTHON=$PYTHON
  830. else
  831. # Otherwise, try each interpreter until we find one that satisfies
  832. # VERSION.
  833. AC_CACHE_CHECK([for a Python interpreter with version >= $1],
  834. [am_cv_pathless_PYTHON],[
  835. for am_cv_pathless_PYTHON in _AM_PYTHON_INTERPRETER_LIST none; do
  836. test "$am_cv_pathless_PYTHON" = none && break
  837. AM_PYTHON_CHECK_VERSION([$am_cv_pathless_PYTHON], [$1], [break])
  838. done])
  839. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  840. if test "$am_cv_pathless_PYTHON" = none; then
  841. PYTHON=:
  842. else
  843. AC_PATH_PROG([PYTHON], [$am_cv_pathless_PYTHON])
  844. fi
  845. am_display_PYTHON=$am_cv_pathless_PYTHON
  846. fi
  847. ])
  848. if test "$PYTHON" = :; then
  849. dnl Run any user-specified action, or abort.
  850. m4_default([$3], [AC_MSG_ERROR([no suitable Python interpreter found])])
  851. else
  852. dnl Query Python for its version number. Getting [:3] seems to be
  853. dnl the best way to do this; it's what "site.py" does in the standard
  854. dnl library.
  855. AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
  856. [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
  857. AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
  858. dnl Use the values of $prefix and $exec_prefix for the corresponding
  859. dnl values of PYTHON_PREFIX and PYTHON_EXEC_PREFIX. These are made
  860. dnl distinct variables so they can be overridden if need be. However,
  861. dnl general consensus is that you shouldn't need this ability.
  862. AC_SUBST([PYTHON_PREFIX], ['${prefix}'])
  863. AC_SUBST([PYTHON_EXEC_PREFIX], ['${exec_prefix}'])
  864. dnl At times (like when building shared libraries) you may want
  865. dnl to know which OS platform Python thinks this is.
  866. AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
  867. [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
  868. AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
  869. dnl Set up 4 directories:
  870. dnl pythondir -- where to install python scripts. This is the
  871. dnl site-packages directory, not the python standard library
  872. dnl directory like in previous automake betas. This behavior
  873. dnl is more consistent with lispdir.m4 for example.
  874. dnl Query distutils for this directory.
  875. AC_CACHE_CHECK([for $am_display_PYTHON script directory],
  876. [am_cv_python_pythondir],
  877. [if test "x$prefix" = xNONE
  878. then
  879. am_py_prefix=$ac_default_prefix
  880. else
  881. am_py_prefix=$prefix
  882. fi
  883. am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
  884. case $am_cv_python_pythondir in
  885. $am_py_prefix*)
  886. am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
  887. am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
  888. ;;
  889. *)
  890. case $am_py_prefix in
  891. /usr|/System*) ;;
  892. *)
  893. am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
  894. ;;
  895. esac
  896. ;;
  897. esac
  898. ])
  899. AC_SUBST([pythondir], [$am_cv_python_pythondir])
  900. dnl pkgpythondir -- $PACKAGE directory under pythondir. Was
  901. dnl PYTHON_SITE_PACKAGE in previous betas, but this naming is
  902. dnl more consistent with the rest of automake.
  903. AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE])
  904. dnl pyexecdir -- directory for installing python extension modules
  905. dnl (shared libraries)
  906. dnl Query distutils for this directory.
  907. AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
  908. [am_cv_python_pyexecdir],
  909. [if test "x$exec_prefix" = xNONE
  910. then
  911. am_py_exec_prefix=$am_py_prefix
  912. else
  913. am_py_exec_prefix=$exec_prefix
  914. fi
  915. am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
  916. case $am_cv_python_pyexecdir in
  917. $am_py_exec_prefix*)
  918. am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
  919. am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
  920. ;;
  921. *)
  922. case $am_py_exec_prefix in
  923. /usr|/System*) ;;
  924. *)
  925. am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
  926. ;;
  927. esac
  928. ;;
  929. esac
  930. ])
  931. AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
  932. dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
  933. AC_SUBST([pkgpyexecdir], [\${pyexecdir}/$PACKAGE])
  934. dnl Run any user-specified action.
  935. $2
  936. fi
  937. ])
  938. # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
  939. # ---------------------------------------------------------------------------
  940. # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
  941. # Run ACTION-IF-FALSE otherwise.
  942. # This test uses sys.hexversion instead of the string equivalent (first
  943. # word of sys.version), in order to cope with versions such as 2.2c1.
  944. # This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
  945. AC_DEFUN([AM_PYTHON_CHECK_VERSION],
  946. [prog="import sys
  947. # split strings by '.' and convert to numeric. Append some zeros
  948. # because we need at least 4 digits for the hex conversion.
  949. # map returns an iterator in Python 3.0 and a list in 2.x
  950. minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
  951. minverhex = 0
  952. # xrange is not present in Python 3.0 and range returns an iterator
  953. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
  954. sys.exit(sys.hexversion < minverhex)"
  955. AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
  956. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  957. #
  958. # This file is free software; the Free Software Foundation
  959. # gives unlimited permission to copy and/or distribute it,
  960. # with or without modifications, as long as this notice is preserved.
  961. # serial 1
  962. # AM_RUN_LOG(COMMAND)
  963. # -------------------
  964. # Run COMMAND, save the exit status in ac_status, and log it.
  965. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  966. AC_DEFUN([AM_RUN_LOG],
  967. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  968. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  969. ac_status=$?
  970. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  971. (exit $ac_status); }])
  972. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  973. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  974. # Free Software Foundation, Inc.
  975. #
  976. # This file is free software; the Free Software Foundation
  977. # gives unlimited permission to copy and/or distribute it,
  978. # with or without modifications, as long as this notice is preserved.
  979. # serial 5
  980. # AM_SANITY_CHECK
  981. # ---------------
  982. AC_DEFUN([AM_SANITY_CHECK],
  983. [AC_MSG_CHECKING([whether build environment is sane])
  984. # Just in case
  985. sleep 1
  986. echo timestamp > conftest.file
  987. # Reject unsafe characters in $srcdir or the absolute working directory
  988. # name. Accept space and tab only in the latter.
  989. am_lf='
  990. '
  991. case `pwd` in
  992. *[[\\\"\#\$\&\'\`$am_lf]]*)
  993. AC_MSG_ERROR([unsafe absolute working directory name]);;
  994. esac
  995. case $srcdir in
  996. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  997. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  998. esac
  999. # Do `set' in a subshell so we don't clobber the current shell's
  1000. # arguments. Must try -L first in case configure is actually a
  1001. # symlink; some systems play weird games with the mod time of symlinks
  1002. # (eg FreeBSD returns the mod time of the symlink's containing
  1003. # directory).
  1004. if (
  1005. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1006. if test "$[*]" = "X"; then
  1007. # -L didn't work.
  1008. set X `ls -t "$srcdir/configure" conftest.file`
  1009. fi
  1010. rm -f conftest.file
  1011. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1012. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1013. # If neither matched, then we have a broken ls. This can happen
  1014. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1015. # broken ls alias from the environment. This has actually
  1016. # happened. Such a system could not be considered "sane".
  1017. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1018. alias in your environment])
  1019. fi
  1020. test "$[2]" = conftest.file
  1021. )
  1022. then
  1023. # Ok.
  1024. :
  1025. else
  1026. AC_MSG_ERROR([newly created file is older than distributed files!
  1027. Check your system clock])
  1028. fi
  1029. AC_MSG_RESULT(yes)])
  1030. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  1031. #
  1032. # This file is free software; the Free Software Foundation
  1033. # gives unlimited permission to copy and/or distribute it,
  1034. # with or without modifications, as long as this notice is preserved.
  1035. # serial 1
  1036. # AM_PROG_INSTALL_STRIP
  1037. # ---------------------
  1038. # One issue with vendor `install' (even GNU) is that you can't
  1039. # specify the program used to strip binaries. This is especially
  1040. # annoying in cross-compiling environments, where the build's strip
  1041. # is unlikely to handle the host's binaries.
  1042. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1043. # always use install-sh in `make install-strip', and initialize
  1044. # STRIPPROG with the value of the STRIP variable (set by the user).
  1045. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1046. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1047. # Installed binaries are usually stripped using `strip' when the user
  1048. # run `make install-strip'. However `strip' might not be the right
  1049. # tool to use in cross-compilation environments, therefore Automake
  1050. # will honor the `STRIP' environment variable to overrule this program.
  1051. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1052. if test "$cross_compiling" != no; then
  1053. AC_CHECK_TOOL([STRIP], [strip], :)
  1054. fi
  1055. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1056. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1057. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  1058. #
  1059. # This file is free software; the Free Software Foundation
  1060. # gives unlimited permission to copy and/or distribute it,
  1061. # with or without modifications, as long as this notice is preserved.
  1062. # serial 3
  1063. # _AM_SUBST_NOTMAKE(VARIABLE)
  1064. # ---------------------------
  1065. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1066. # This macro is traced by Automake.
  1067. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1068. # AM_SUBST_NOTMAKE(VARIABLE)
  1069. # --------------------------
  1070. # Public sister of _AM_SUBST_NOTMAKE.
  1071. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1072. # Check how to create a tarball. -*- Autoconf -*-
  1073. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  1074. #
  1075. # This file is free software; the Free Software Foundation
  1076. # gives unlimited permission to copy and/or distribute it,
  1077. # with or without modifications, as long as this notice is preserved.
  1078. # serial 2
  1079. # _AM_PROG_TAR(FORMAT)
  1080. # --------------------
  1081. # Check how to create a tarball in format FORMAT.
  1082. # FORMAT should be one of `v7', `ustar', or `pax'.
  1083. #
  1084. # Substitute a variable $(am__tar) that is a command
  1085. # writing to stdout a FORMAT-tarball containing the directory
  1086. # $tardir.
  1087. # tardir=directory && $(am__tar) > result.tar
  1088. #
  1089. # Substitute a variable $(am__untar) that extract such
  1090. # a tarball read from stdin.
  1091. # $(am__untar) < result.tar
  1092. AC_DEFUN([_AM_PROG_TAR],
  1093. [# Always define AMTAR for backward compatibility. Yes, it's still used
  1094. # in the wild :-( We should find a proper way to deprecate it ...
  1095. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  1096. m4_if([$1], [v7],
  1097. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  1098. [m4_case([$1], [ustar],, [pax],,
  1099. [m4_fatal([Unknown tar format])])
  1100. AC_MSG_CHECKING([how to create a $1 tar archive])
  1101. # Loop over all known methods to create a tar archive until one works.
  1102. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1103. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1104. # Do not fold the above two line into one, because Tru64 sh and
  1105. # Solaris sh will not grok spaces in the rhs of `-'.
  1106. for _am_tool in $_am_tools
  1107. do
  1108. case $_am_tool in
  1109. gnutar)
  1110. for _am_tar in tar gnutar gtar;
  1111. do
  1112. AM_RUN_LOG([$_am_tar --version]) && break
  1113. done
  1114. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1115. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1116. am__untar="$_am_tar -xf -"
  1117. ;;
  1118. plaintar)
  1119. # Must skip GNU tar: if it does not support --format= it doesn't create
  1120. # ustar tarball either.
  1121. (tar --version) >/dev/null 2>&1 && continue
  1122. am__tar='tar chf - "$$tardir"'
  1123. am__tar_='tar chf - "$tardir"'
  1124. am__untar='tar xf -'
  1125. ;;
  1126. pax)
  1127. am__tar='pax -L -x $1 -w "$$tardir"'
  1128. am__tar_='pax -L -x $1 -w "$tardir"'
  1129. am__untar='pax -r'
  1130. ;;
  1131. cpio)
  1132. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1133. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1134. am__untar='cpio -i -H $1 -d'
  1135. ;;
  1136. none)
  1137. am__tar=false
  1138. am__tar_=false
  1139. am__untar=false
  1140. ;;
  1141. esac
  1142. # If the value was cached, stop now. We just wanted to have am__tar
  1143. # and am__untar set.
  1144. test -n "${am_cv_prog_tar_$1}" && break
  1145. # tar/untar a dummy directory, and stop if the command works
  1146. rm -rf conftest.dir
  1147. mkdir conftest.dir
  1148. echo GrepMe > conftest.dir/file
  1149. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1150. rm -rf conftest.dir
  1151. if test -s conftest.tar; then
  1152. AM_RUN_LOG([$am__untar <conftest.tar])
  1153. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1154. fi
  1155. done
  1156. rm -rf conftest.dir
  1157. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1158. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1159. AC_SUBST([am__tar])
  1160. AC_SUBST([am__untar])
  1161. ]) # _AM_PROG_TAR
  1162. m4_include([m4/libtool.m4])
  1163. m4_include([m4/ltoptions.m4])
  1164. m4_include([m4/ltsugar.m4])
  1165. m4_include([m4/ltversion.m4])
  1166. m4_include([m4/lt~obsolete.m4])