aclocal.m4 43 KB

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