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

aclocal.m4 58KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
  14. [m4_warning([this file was generated for autoconf 2.67.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # Helper functions for option handling. -*- Autoconf -*-
  19. #
  20. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  21. # Written by Gary V. Vaughan, 2004
  22. #
  23. # This file is free software; the Free Software Foundation gives
  24. # unlimited permission to copy and/or distribute it, with or without
  25. # modifications, as long as this notice is preserved.
  26. # serial 6 ltoptions.m4
  27. # This is to help aclocal find these macros, as it can't see m4_define.
  28. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  29. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  30. # ------------------------------------------
  31. m4_define([_LT_MANGLE_OPTION],
  32. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  33. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  34. # ---------------------------------------
  35. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  36. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  37. # saved as a flag.
  38. m4_define([_LT_SET_OPTION],
  39. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  40. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  41. _LT_MANGLE_DEFUN([$1], [$2]),
  42. [m4_warning([Unknown $1 option `$2'])])[]dnl
  43. ])
  44. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  45. # ------------------------------------------------------------
  46. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  47. m4_define([_LT_IF_OPTION],
  48. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  49. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  50. # -------------------------------------------------------
  51. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  52. # are set.
  53. m4_define([_LT_UNLESS_OPTIONS],
  54. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  55. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  56. [m4_define([$0_found])])])[]dnl
  57. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  58. ])[]dnl
  59. ])
  60. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  61. # ----------------------------------------
  62. # OPTION-LIST is a space-separated list of Libtool options associated
  63. # with MACRO-NAME. If any OPTION has a matching handler declared with
  64. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  65. # the unknown option and exit.
  66. m4_defun([_LT_SET_OPTIONS],
  67. [# Set options
  68. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  69. [_LT_SET_OPTION([$1], _LT_Option)])
  70. m4_if([$1],[LT_INIT],[
  71. dnl
  72. dnl Simply set some default values (i.e off) if boolean options were not
  73. dnl specified:
  74. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  75. ])
  76. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  77. ])
  78. dnl
  79. dnl If no reference was made to various pairs of opposing options, then
  80. dnl we run the default mode handler for the pair. For example, if neither
  81. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  82. dnl archives by default:
  83. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  84. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  85. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  86. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  87. [_LT_ENABLE_FAST_INSTALL])
  88. ])
  89. ])# _LT_SET_OPTIONS
  90. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  91. # -----------------------------------------
  92. m4_define([_LT_MANGLE_DEFUN],
  93. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  94. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  95. # -----------------------------------------------
  96. m4_define([LT_OPTION_DEFINE],
  97. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  98. ])# LT_OPTION_DEFINE
  99. # dlopen
  100. # ------
  101. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  102. ])
  103. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  104. [_LT_SET_OPTION([LT_INIT], [dlopen])
  105. AC_DIAGNOSE([obsolete],
  106. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  107. put the `dlopen' option into LT_INIT's first parameter.])
  108. ])
  109. dnl aclocal-1.4 backwards compatibility:
  110. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  111. # win32-dll
  112. # ---------
  113. # Declare package support for building win32 dll's.
  114. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  115. [enable_win32_dll=yes
  116. case $host in
  117. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  118. AC_CHECK_TOOL(AS, as, false)
  119. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  120. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  121. ;;
  122. esac
  123. test -z "$AS" && AS=as
  124. _LT_DECL([], [AS], [0], [Assembler program])dnl
  125. test -z "$DLLTOOL" && DLLTOOL=dlltool
  126. _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  127. test -z "$OBJDUMP" && OBJDUMP=objdump
  128. _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  129. ])# win32-dll
  130. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  131. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  132. _LT_SET_OPTION([LT_INIT], [win32-dll])
  133. AC_DIAGNOSE([obsolete],
  134. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  135. put the `win32-dll' option into LT_INIT's first parameter.])
  136. ])
  137. dnl aclocal-1.4 backwards compatibility:
  138. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  139. # _LT_ENABLE_SHARED([DEFAULT])
  140. # ----------------------------
  141. # implement the --enable-shared flag, and supports the `shared' and
  142. # `disable-shared' LT_INIT options.
  143. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  144. m4_define([_LT_ENABLE_SHARED],
  145. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  146. AC_ARG_ENABLE([shared],
  147. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  148. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  149. [p=${PACKAGE-default}
  150. case $enableval in
  151. yes) enable_shared=yes ;;
  152. no) enable_shared=no ;;
  153. *)
  154. enable_shared=no
  155. # Look at the argument we got. We use all the common list separators.
  156. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  157. for pkg in $enableval; do
  158. IFS="$lt_save_ifs"
  159. if test "X$pkg" = "X$p"; then
  160. enable_shared=yes
  161. fi
  162. done
  163. IFS="$lt_save_ifs"
  164. ;;
  165. esac],
  166. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  167. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  168. [Whether or not to build shared libraries])
  169. ])# _LT_ENABLE_SHARED
  170. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  171. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  172. # Old names:
  173. AC_DEFUN([AC_ENABLE_SHARED],
  174. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  175. ])
  176. AC_DEFUN([AC_DISABLE_SHARED],
  177. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  178. ])
  179. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  180. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  181. dnl aclocal-1.4 backwards compatibility:
  182. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  183. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  184. # _LT_ENABLE_STATIC([DEFAULT])
  185. # ----------------------------
  186. # implement the --enable-static flag, and support the `static' and
  187. # `disable-static' LT_INIT options.
  188. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  189. m4_define([_LT_ENABLE_STATIC],
  190. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  191. AC_ARG_ENABLE([static],
  192. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  193. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  194. [p=${PACKAGE-default}
  195. case $enableval in
  196. yes) enable_static=yes ;;
  197. no) enable_static=no ;;
  198. *)
  199. enable_static=no
  200. # Look at the argument we got. We use all the common list separators.
  201. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  202. for pkg in $enableval; do
  203. IFS="$lt_save_ifs"
  204. if test "X$pkg" = "X$p"; then
  205. enable_static=yes
  206. fi
  207. done
  208. IFS="$lt_save_ifs"
  209. ;;
  210. esac],
  211. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  212. _LT_DECL([build_old_libs], [enable_static], [0],
  213. [Whether or not to build static libraries])
  214. ])# _LT_ENABLE_STATIC
  215. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  216. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  217. # Old names:
  218. AC_DEFUN([AC_ENABLE_STATIC],
  219. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  220. ])
  221. AC_DEFUN([AC_DISABLE_STATIC],
  222. [_LT_SET_OPTION([LT_INIT], [disable-static])
  223. ])
  224. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  225. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  226. dnl aclocal-1.4 backwards compatibility:
  227. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  228. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  229. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  230. # ----------------------------------
  231. # implement the --enable-fast-install flag, and support the `fast-install'
  232. # and `disable-fast-install' LT_INIT options.
  233. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  234. m4_define([_LT_ENABLE_FAST_INSTALL],
  235. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  236. AC_ARG_ENABLE([fast-install],
  237. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  238. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  239. [p=${PACKAGE-default}
  240. case $enableval in
  241. yes) enable_fast_install=yes ;;
  242. no) enable_fast_install=no ;;
  243. *)
  244. enable_fast_install=no
  245. # Look at the argument we got. We use all the common list separators.
  246. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  247. for pkg in $enableval; do
  248. IFS="$lt_save_ifs"
  249. if test "X$pkg" = "X$p"; then
  250. enable_fast_install=yes
  251. fi
  252. done
  253. IFS="$lt_save_ifs"
  254. ;;
  255. esac],
  256. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  257. _LT_DECL([fast_install], [enable_fast_install], [0],
  258. [Whether or not to optimize for fast installation])dnl
  259. ])# _LT_ENABLE_FAST_INSTALL
  260. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  261. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  262. # Old names:
  263. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  264. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  265. AC_DIAGNOSE([obsolete],
  266. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  267. the `fast-install' option into LT_INIT's first parameter.])
  268. ])
  269. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  270. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  271. AC_DIAGNOSE([obsolete],
  272. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  273. the `disable-fast-install' option into LT_INIT's first parameter.])
  274. ])
  275. dnl aclocal-1.4 backwards compatibility:
  276. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  277. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  278. # _LT_WITH_PIC([MODE])
  279. # --------------------
  280. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  281. # LT_INIT options.
  282. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  283. m4_define([_LT_WITH_PIC],
  284. [AC_ARG_WITH([pic],
  285. [AS_HELP_STRING([--with-pic],
  286. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  287. [pic_mode="$withval"],
  288. [pic_mode=default])
  289. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  290. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  291. ])# _LT_WITH_PIC
  292. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  293. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  294. # Old name:
  295. AU_DEFUN([AC_LIBTOOL_PICMODE],
  296. [_LT_SET_OPTION([LT_INIT], [pic-only])
  297. AC_DIAGNOSE([obsolete],
  298. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  299. put the `pic-only' option into LT_INIT's first parameter.])
  300. ])
  301. dnl aclocal-1.4 backwards compatibility:
  302. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  303. m4_define([_LTDL_MODE], [])
  304. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  305. [m4_define([_LTDL_MODE], [nonrecursive])])
  306. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  307. [m4_define([_LTDL_MODE], [recursive])])
  308. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  309. [m4_define([_LTDL_MODE], [subproject])])
  310. m4_define([_LTDL_TYPE], [])
  311. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  312. [m4_define([_LTDL_TYPE], [installable])])
  313. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  314. [m4_define([_LTDL_TYPE], [convenience])])
  315. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  316. #
  317. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  318. # Written by Gary V. Vaughan, 2004
  319. #
  320. # This file is free software; the Free Software Foundation gives
  321. # unlimited permission to copy and/or distribute it, with or without
  322. # modifications, as long as this notice is preserved.
  323. # serial 6 ltsugar.m4
  324. # This is to help aclocal find these macros, as it can't see m4_define.
  325. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  326. # lt_join(SEP, ARG1, [ARG2...])
  327. # -----------------------------
  328. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  329. # associated separator.
  330. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  331. # versions in m4sugar had bugs.
  332. m4_define([lt_join],
  333. [m4_if([$#], [1], [],
  334. [$#], [2], [[$2]],
  335. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  336. m4_define([_lt_join],
  337. [m4_if([$#$2], [2], [],
  338. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  339. # lt_car(LIST)
  340. # lt_cdr(LIST)
  341. # ------------
  342. # Manipulate m4 lists.
  343. # These macros are necessary as long as will still need to support
  344. # Autoconf-2.59 which quotes differently.
  345. m4_define([lt_car], [[$1]])
  346. m4_define([lt_cdr],
  347. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  348. [$#], 1, [],
  349. [m4_dquote(m4_shift($@))])])
  350. m4_define([lt_unquote], $1)
  351. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  352. # ------------------------------------------
  353. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  354. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  355. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  356. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  357. # than defined and empty).
  358. #
  359. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  360. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  361. m4_define([lt_append],
  362. [m4_define([$1],
  363. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  364. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  365. # ----------------------------------------------------------
  366. # Produce a SEP delimited list of all paired combinations of elements of
  367. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  368. # has the form PREFIXmINFIXSUFFIXn.
  369. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  370. m4_define([lt_combine],
  371. [m4_if(m4_eval([$# > 3]), [1],
  372. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  373. [[m4_foreach([_Lt_prefix], [$2],
  374. [m4_foreach([_Lt_suffix],
  375. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  376. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  377. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  378. # -----------------------------------------------------------------------
  379. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  380. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  381. m4_define([lt_if_append_uniq],
  382. [m4_ifdef([$1],
  383. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  384. [lt_append([$1], [$2], [$3])$4],
  385. [$5])],
  386. [lt_append([$1], [$2], [$3])$4])])
  387. # lt_dict_add(DICT, KEY, VALUE)
  388. # -----------------------------
  389. m4_define([lt_dict_add],
  390. [m4_define([$1($2)], [$3])])
  391. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  392. # --------------------------------------------
  393. m4_define([lt_dict_add_subkey],
  394. [m4_define([$1($2:$3)], [$4])])
  395. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  396. # ----------------------------------
  397. m4_define([lt_dict_fetch],
  398. [m4_ifval([$3],
  399. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  400. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  401. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  402. # -----------------------------------------------------------------
  403. m4_define([lt_if_dict_fetch],
  404. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  405. [$5],
  406. [$6])])
  407. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  408. # --------------------------------------------------------------
  409. m4_define([lt_dict_filter],
  410. [m4_if([$5], [], [],
  411. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  412. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  413. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  414. ])
  415. # ltversion.m4 -- version numbers -*- Autoconf -*-
  416. #
  417. # Copyright (C) 2004 Free Software Foundation, Inc.
  418. # Written by Scott James Remnant, 2004
  419. #
  420. # This file is free software; the Free Software Foundation gives
  421. # unlimited permission to copy and/or distribute it, with or without
  422. # modifications, as long as this notice is preserved.
  423. # Generated from ltversion.in.
  424. # serial 3017 ltversion.m4
  425. # This file is part of GNU Libtool
  426. m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  427. m4_define([LT_PACKAGE_REVISION], [1.3017])
  428. AC_DEFUN([LTVERSION_VERSION],
  429. [macro_version='2.2.6b'
  430. macro_revision='1.3017'
  431. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  432. _LT_DECL(, macro_revision, 0)
  433. ])
  434. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  435. #
  436. # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  437. # Written by Scott James Remnant, 2004.
  438. #
  439. # This file is free software; the Free Software Foundation gives
  440. # unlimited permission to copy and/or distribute it, with or without
  441. # modifications, as long as this notice is preserved.
  442. # serial 4 lt~obsolete.m4
  443. # These exist entirely to fool aclocal when bootstrapping libtool.
  444. #
  445. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  446. # which have later been changed to m4_define as they aren't part of the
  447. # exported API, or moved to Autoconf or Automake where they belong.
  448. #
  449. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  450. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  451. # using a macro with the same name in our local m4/libtool.m4 it'll
  452. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  453. # and doesn't know about Autoconf macros at all.)
  454. #
  455. # So we provide this file, which has a silly filename so it's always
  456. # included after everything else. This provides aclocal with the
  457. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  458. # because those macros already exist, or will be overwritten later.
  459. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  460. #
  461. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  462. # Yes, that means every name once taken will need to remain here until
  463. # we give up compatibility with versions before 1.7, at which point
  464. # we need to keep only those names which we still refer to.
  465. # This is to help aclocal find these macros, as it can't see m4_define.
  466. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  467. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  468. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  469. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  470. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  471. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  472. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  473. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  474. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  475. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  476. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  477. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  478. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  479. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  480. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  481. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  482. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  483. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  484. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  485. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  486. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  487. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  488. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  489. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  490. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  491. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  492. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  493. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  494. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  495. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  496. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  497. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  498. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  499. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  500. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  501. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  502. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  503. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  504. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  505. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  506. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  507. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  508. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  509. m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  510. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  511. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  512. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  513. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  514. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  515. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  516. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  517. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  518. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  519. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  520. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  521. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  522. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  523. #
  524. # This file is free software; the Free Software Foundation
  525. # gives unlimited permission to copy and/or distribute it,
  526. # with or without modifications, as long as this notice is preserved.
  527. # AM_AUTOMAKE_VERSION(VERSION)
  528. # ----------------------------
  529. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  530. # generated from the m4 files accompanying Automake X.Y.
  531. # (This private macro should not be called outside this file.)
  532. AC_DEFUN([AM_AUTOMAKE_VERSION],
  533. [am__api_version='1.11'
  534. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  535. dnl require some minimum version. Point them to the right macro.
  536. m4_if([$1], [1.11.1], [],
  537. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  538. ])
  539. # _AM_AUTOCONF_VERSION(VERSION)
  540. # -----------------------------
  541. # aclocal traces this macro to find the Autoconf version.
  542. # This is a private macro too. Using m4_define simplifies
  543. # the logic in aclocal, which can simply ignore this definition.
  544. m4_define([_AM_AUTOCONF_VERSION], [])
  545. # AM_SET_CURRENT_AUTOMAKE_VERSION
  546. # -------------------------------
  547. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  548. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  549. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  550. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  551. m4_ifndef([AC_AUTOCONF_VERSION],
  552. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  553. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  554. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  555. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  556. #
  557. # This file is free software; the Free Software Foundation
  558. # gives unlimited permission to copy and/or distribute it,
  559. # with or without modifications, as long as this notice is preserved.
  560. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  561. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  562. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  563. #
  564. # Of course, Automake must honor this variable whenever it calls a
  565. # tool from the auxiliary directory. The problem is that $srcdir (and
  566. # therefore $ac_aux_dir as well) can be either absolute or relative,
  567. # depending on how configure is run. This is pretty annoying, since
  568. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  569. # source directory, any form will work fine, but in subdirectories a
  570. # relative path needs to be adjusted first.
  571. #
  572. # $ac_aux_dir/missing
  573. # fails when called from a subdirectory if $ac_aux_dir is relative
  574. # $top_srcdir/$ac_aux_dir/missing
  575. # fails if $ac_aux_dir is absolute,
  576. # fails when called from a subdirectory in a VPATH build with
  577. # a relative $ac_aux_dir
  578. #
  579. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  580. # are both prefixed by $srcdir. In an in-source build this is usually
  581. # harmless because $srcdir is `.', but things will broke when you
  582. # start a VPATH build or use an absolute $srcdir.
  583. #
  584. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  585. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  586. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  587. # and then we would define $MISSING as
  588. # MISSING="\${SHELL} $am_aux_dir/missing"
  589. # This will work as long as MISSING is not called from configure, because
  590. # unfortunately $(top_srcdir) has no meaning in configure.
  591. # However there are other variables, like CC, which are often used in
  592. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  593. #
  594. # Another solution, used here, is to always expand $ac_aux_dir to an
  595. # absolute PATH. The drawback is that using absolute paths prevent a
  596. # configured tree to be moved without reconfiguration.
  597. AC_DEFUN([AM_AUX_DIR_EXPAND],
  598. [dnl Rely on autoconf to set up CDPATH properly.
  599. AC_PREREQ([2.50])dnl
  600. # expand $ac_aux_dir to an absolute path
  601. am_aux_dir=`cd $ac_aux_dir && pwd`
  602. ])
  603. # AM_CONDITIONAL -*- Autoconf -*-
  604. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  605. # Free Software Foundation, Inc.
  606. #
  607. # This file is free software; the Free Software Foundation
  608. # gives unlimited permission to copy and/or distribute it,
  609. # with or without modifications, as long as this notice is preserved.
  610. # serial 9
  611. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  612. # -------------------------------------
  613. # Define a conditional.
  614. AC_DEFUN([AM_CONDITIONAL],
  615. [AC_PREREQ(2.52)dnl
  616. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  617. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  618. AC_SUBST([$1_TRUE])dnl
  619. AC_SUBST([$1_FALSE])dnl
  620. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  621. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  622. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  623. if $2; then
  624. $1_TRUE=
  625. $1_FALSE='#'
  626. else
  627. $1_TRUE='#'
  628. $1_FALSE=
  629. fi
  630. AC_CONFIG_COMMANDS_PRE(
  631. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  632. AC_MSG_ERROR([[conditional "$1" was never defined.
  633. Usually this means the macro was only invoked conditionally.]])
  634. fi])])
  635. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  636. # Free Software Foundation, Inc.
  637. #
  638. # This file is free software; the Free Software Foundation
  639. # gives unlimited permission to copy and/or distribute it,
  640. # with or without modifications, as long as this notice is preserved.
  641. # serial 10
  642. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  643. # written in clear, in which case automake, when reading aclocal.m4,
  644. # will think it sees a *use*, and therefore will trigger all it's
  645. # C support machinery. Also note that it means that autoscan, seeing
  646. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  647. # _AM_DEPENDENCIES(NAME)
  648. # ----------------------
  649. # See how the compiler implements dependency checking.
  650. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  651. # We try a few techniques and use that to set a single cache variable.
  652. #
  653. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  654. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  655. # dependency, and given that the user is not expected to run this macro,
  656. # just rely on AC_PROG_CC.
  657. AC_DEFUN([_AM_DEPENDENCIES],
  658. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  659. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  660. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  661. AC_REQUIRE([AM_DEP_TRACK])dnl
  662. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  663. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  664. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  665. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  666. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  667. [depcc="$$1" am_compiler_list=])
  668. AC_CACHE_CHECK([dependency style of $depcc],
  669. [am_cv_$1_dependencies_compiler_type],
  670. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  671. # We make a subdir and do the tests there. Otherwise we can end up
  672. # making bogus files that we don't know about and never remove. For
  673. # instance it was reported that on HP-UX the gcc test will end up
  674. # making a dummy file named `D' -- because `-MD' means `put the output
  675. # in D'.
  676. mkdir conftest.dir
  677. # Copy depcomp to subdir because otherwise we won't find it if we're
  678. # using a relative directory.
  679. cp "$am_depcomp" conftest.dir
  680. cd conftest.dir
  681. # We will build objects and dependencies in a subdirectory because
  682. # it helps to detect inapplicable dependency modes. For instance
  683. # both Tru64's cc and ICC support -MD to output dependencies as a
  684. # side effect of compilation, but ICC will put the dependencies in
  685. # the current directory while Tru64 will put them in the object
  686. # directory.
  687. mkdir sub
  688. am_cv_$1_dependencies_compiler_type=none
  689. if test "$am_compiler_list" = ""; then
  690. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  691. fi
  692. am__universal=false
  693. m4_case([$1], [CC],
  694. [case " $depcc " in #(
  695. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  696. esac],
  697. [CXX],
  698. [case " $depcc " in #(
  699. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  700. esac])
  701. for depmode in $am_compiler_list; do
  702. # Setup a source with many dependencies, because some compilers
  703. # like to wrap large dependency lists on column 80 (with \), and
  704. # we should not choose a depcomp mode which is confused by this.
  705. #
  706. # We need to recreate these files for each test, as the compiler may
  707. # overwrite some of them when testing with obscure command lines.
  708. # This happens at least with the AIX C compiler.
  709. : > sub/conftest.c
  710. for i in 1 2 3 4 5 6; do
  711. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  712. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  713. # Solaris 8's {/usr,}/bin/sh.
  714. touch sub/conftst$i.h
  715. done
  716. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  717. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  718. # mode. It turns out that the SunPro C++ compiler does not properly
  719. # handle `-M -o', and we need to detect this. Also, some Intel
  720. # versions had trouble with output in subdirs
  721. am__obj=sub/conftest.${OBJEXT-o}
  722. am__minus_obj="-o $am__obj"
  723. case $depmode in
  724. gcc)
  725. # This depmode causes a compiler race in universal mode.
  726. test "$am__universal" = false || continue
  727. ;;
  728. nosideeffect)
  729. # after this tag, mechanisms are not by side-effect, so they'll
  730. # only be used when explicitly requested
  731. if test "x$enable_dependency_tracking" = xyes; then
  732. continue
  733. else
  734. break
  735. fi
  736. ;;
  737. msvisualcpp | msvcmsys)
  738. # This compiler won't grok `-c -o', but also, the minuso test has
  739. # not run yet. These depmodes are late enough in the game, and
  740. # so weak that their functioning should not be impacted.
  741. am__obj=conftest.${OBJEXT-o}
  742. am__minus_obj=
  743. ;;
  744. none) break ;;
  745. esac
  746. if depmode=$depmode \
  747. source=sub/conftest.c object=$am__obj \
  748. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  749. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  750. >/dev/null 2>conftest.err &&
  751. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  752. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  753. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  754. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  755. # icc doesn't choke on unknown options, it will just issue warnings
  756. # or remarks (even with -Werror). So we grep stderr for any message
  757. # that says an option was ignored or not supported.
  758. # When given -MP, icc 7.0 and 7.1 complain thusly:
  759. # icc: Command line warning: ignoring option '-M'; no argument required
  760. # The diagnosis changed in icc 8.0:
  761. # icc: Command line remark: option '-MP' not supported
  762. if (grep 'ignoring option' conftest.err ||
  763. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  764. am_cv_$1_dependencies_compiler_type=$depmode
  765. break
  766. fi
  767. fi
  768. done
  769. cd ..
  770. rm -rf conftest.dir
  771. else
  772. am_cv_$1_dependencies_compiler_type=none
  773. fi
  774. ])
  775. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  776. AM_CONDITIONAL([am__fastdep$1], [
  777. test "x$enable_dependency_tracking" != xno \
  778. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  779. ])
  780. # AM_SET_DEPDIR
  781. # -------------
  782. # Choose a directory name for dependency files.
  783. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  784. AC_DEFUN([AM_SET_DEPDIR],
  785. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  786. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  787. ])
  788. # AM_DEP_TRACK
  789. # ------------
  790. AC_DEFUN([AM_DEP_TRACK],
  791. [AC_ARG_ENABLE(dependency-tracking,
  792. [ --disable-dependency-tracking speeds up one-time build
  793. --enable-dependency-tracking do not reject slow dependency extractors])
  794. if test "x$enable_dependency_tracking" != xno; then
  795. am_depcomp="$ac_aux_dir/depcomp"
  796. AMDEPBACKSLASH='\'
  797. fi
  798. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  799. AC_SUBST([AMDEPBACKSLASH])dnl
  800. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  801. ])
  802. # Generate code to set up dependency tracking. -*- Autoconf -*-
  803. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  804. # Free Software Foundation, Inc.
  805. #
  806. # This file is free software; the Free Software Foundation
  807. # gives unlimited permission to copy and/or distribute it,
  808. # with or without modifications, as long as this notice is preserved.
  809. #serial 5
  810. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  811. # ------------------------------
  812. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  813. [{
  814. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  815. # are listed without --file. Let's play safe and only enable the eval
  816. # if we detect the quoting.
  817. case $CONFIG_FILES in
  818. *\'*) eval set x "$CONFIG_FILES" ;;
  819. *) set x $CONFIG_FILES ;;
  820. esac
  821. shift
  822. for mf
  823. do
  824. # Strip MF so we end up with the name of the file.
  825. mf=`echo "$mf" | sed -e 's/:.*$//'`
  826. # Check whether this is an Automake generated Makefile or not.
  827. # We used to match only the files named `Makefile.in', but
  828. # some people rename them; so instead we look at the file content.
  829. # Grep'ing the first line is not enough: some people post-process
  830. # each Makefile.in and add a new line on top of each file to say so.
  831. # Grep'ing the whole file is not good either: AIX grep has a line
  832. # limit of 2048, but all sed's we know have understand at least 4000.
  833. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  834. dirpart=`AS_DIRNAME("$mf")`
  835. else
  836. continue
  837. fi
  838. # Extract the definition of DEPDIR, am__include, and am__quote
  839. # from the Makefile without running `make'.
  840. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  841. test -z "$DEPDIR" && continue
  842. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  843. test -z "am__include" && continue
  844. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  845. # When using ansi2knr, U may be empty or an underscore; expand it
  846. U=`sed -n 's/^U = //p' < "$mf"`
  847. # Find all dependency output files, they are included files with
  848. # $(DEPDIR) in their names. We invoke sed twice because it is the
  849. # simplest approach to changing $(DEPDIR) to its actual value in the
  850. # expansion.
  851. for file in `sed -n "
  852. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  853. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  854. # Make sure the directory exists.
  855. test -f "$dirpart/$file" && continue
  856. fdir=`AS_DIRNAME(["$file"])`
  857. AS_MKDIR_P([$dirpart/$fdir])
  858. # echo "creating $dirpart/$file"
  859. echo '# dummy' > "$dirpart/$file"
  860. done
  861. done
  862. }
  863. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  864. # AM_OUTPUT_DEPENDENCY_COMMANDS
  865. # -----------------------------
  866. # This macro should only be invoked once -- use via AC_REQUIRE.
  867. #
  868. # This code is only required when automatic dependency tracking
  869. # is enabled. FIXME. This creates each `.P' file that we will
  870. # need in order to bootstrap the dependency handling code.
  871. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  872. [AC_CONFIG_COMMANDS([depfiles],
  873. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  874. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  875. ])
  876. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  877. # Free Software Foundation, Inc.
  878. #
  879. # This file is free software; the Free Software Foundation
  880. # gives unlimited permission to copy and/or distribute it,
  881. # with or without modifications, as long as this notice is preserved.
  882. # serial 8
  883. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  884. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  885. # Do all the work for Automake. -*- Autoconf -*-
  886. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  887. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  888. #
  889. # This file is free software; the Free Software Foundation
  890. # gives unlimited permission to copy and/or distribute it,
  891. # with or without modifications, as long as this notice is preserved.
  892. # serial 16
  893. # This macro actually does too much. Some checks are only needed if
  894. # your package does certain things. But this isn't really a big deal.
  895. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  896. # AM_INIT_AUTOMAKE([OPTIONS])
  897. # -----------------------------------------------
  898. # The call with PACKAGE and VERSION arguments is the old style
  899. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  900. # and VERSION should now be passed to AC_INIT and removed from
  901. # the call to AM_INIT_AUTOMAKE.
  902. # We support both call styles for the transition. After
  903. # the next Automake release, Autoconf can make the AC_INIT
  904. # arguments mandatory, and then we can depend on a new Autoconf
  905. # release and drop the old call support.
  906. AC_DEFUN([AM_INIT_AUTOMAKE],
  907. [AC_PREREQ([2.62])dnl
  908. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  909. dnl the ones we care about.
  910. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  911. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  912. AC_REQUIRE([AC_PROG_INSTALL])dnl
  913. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  914. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  915. # is not polluted with repeated "-I."
  916. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  917. # test to see if srcdir already configured
  918. if test -f $srcdir/config.status; then
  919. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  920. fi
  921. fi
  922. # test whether we have cygpath
  923. if test -z "$CYGPATH_W"; then
  924. if (cygpath --version) >/dev/null 2>/dev/null; then
  925. CYGPATH_W='cygpath -w'
  926. else
  927. CYGPATH_W=echo
  928. fi
  929. fi
  930. AC_SUBST([CYGPATH_W])
  931. # Define the identity of the package.
  932. dnl Distinguish between old-style and new-style calls.
  933. m4_ifval([$2],
  934. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  935. AC_SUBST([PACKAGE], [$1])dnl
  936. AC_SUBST([VERSION], [$2])],
  937. [_AM_SET_OPTIONS([$1])dnl
  938. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  939. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  940. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  941. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  942. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  943. _AM_IF_OPTION([no-define],,
  944. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  945. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  946. # Some tools Automake needs.
  947. AC_REQUIRE([AM_SANITY_CHECK])dnl
  948. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  949. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  950. AM_MISSING_PROG(AUTOCONF, autoconf)
  951. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  952. AM_MISSING_PROG(AUTOHEADER, autoheader)
  953. AM_MISSING_PROG(MAKEINFO, makeinfo)
  954. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  955. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  956. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  957. # We need awk for the "check" target. The system "awk" is bad on
  958. # some platforms.
  959. AC_REQUIRE([AC_PROG_AWK])dnl
  960. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  961. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  962. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  963. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  964. [_AM_PROG_TAR([v7])])])
  965. _AM_IF_OPTION([no-dependencies],,
  966. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  967. [_AM_DEPENDENCIES(CC)],
  968. [define([AC_PROG_CC],
  969. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  970. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  971. [_AM_DEPENDENCIES(CXX)],
  972. [define([AC_PROG_CXX],
  973. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  974. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  975. [_AM_DEPENDENCIES(OBJC)],
  976. [define([AC_PROG_OBJC],
  977. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  978. ])
  979. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  980. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  981. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  982. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  983. AC_CONFIG_COMMANDS_PRE(dnl
  984. [m4_provide_if([_AM_COMPILER_EXEEXT],
  985. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  986. ])
  987. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  988. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  989. dnl mangled by Autoconf and run in a shell conditional statement.
  990. m4_define([_AC_COMPILER_EXEEXT],
  991. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  992. # When config.status generates a header, we must update the stamp-h file.
  993. # This file resides in the same directory as the config header
  994. # that is generated. The stamp files are numbered to have different names.
  995. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  996. # loop where config.status creates the headers, so we can generate
  997. # our stamp files there.
  998. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  999. [# Compute $1's index in $config_headers.
  1000. _am_arg=$1
  1001. _am_stamp_count=1
  1002. for _am_header in $config_headers :; do
  1003. case $_am_header in
  1004. $_am_arg | $_am_arg:* )
  1005. break ;;
  1006. * )
  1007. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  1008. esac
  1009. done
  1010. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  1011. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  1012. #
  1013. # This file is free software; the Free Software Foundation
  1014. # gives unlimited permission to copy and/or distribute it,
  1015. # with or without modifications, as long as this notice is preserved.
  1016. # AM_PROG_INSTALL_SH
  1017. # ------------------
  1018. # Define $install_sh.
  1019. AC_DEFUN([AM_PROG_INSTALL_SH],
  1020. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1021. if test x"${install_sh}" != xset; then
  1022. case $am_aux_dir in
  1023. *\ * | *\ *)
  1024. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  1025. *)
  1026. install_sh="\${SHELL} $am_aux_dir/install-sh"
  1027. esac
  1028. fi
  1029. AC_SUBST(install_sh)])
  1030. # Copyright (C) 2003, 2005 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 2
  1036. # Check whether the underlying file-system supports filenames
  1037. # with a leading dot. For instance MS-DOS doesn't.
  1038. AC_DEFUN([AM_SET_LEADING_DOT],
  1039. [rm -rf .tst 2>/dev/null
  1040. mkdir .tst 2>/dev/null
  1041. if test -d .tst; then
  1042. am__leading_dot=.
  1043. else
  1044. am__leading_dot=_
  1045. fi
  1046. rmdir .tst 2>/dev/null
  1047. AC_SUBST([am__leading_dot])])
  1048. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  1049. # From Jim Meyering
  1050. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  1051. # Free Software Foundation, Inc.
  1052. #
  1053. # This file is free software; the Free Software Foundation
  1054. # gives unlimited permission to copy and/or distribute it,
  1055. # with or without modifications, as long as this notice is preserved.
  1056. # serial 5
  1057. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  1058. # ----------------------------------
  1059. # Control maintainer-specific portions of Makefiles.
  1060. # Default is to disable them, unless `enable' is passed literally.
  1061. # For symmetry, `disable' may be passed as well. Anyway, the user
  1062. # can override the default with the --enable/--disable switch.
  1063. AC_DEFUN([AM_MAINTAINER_MODE],
  1064. [m4_case(m4_default([$1], [disable]),
  1065. [enable], [m4_define([am_maintainer_other], [disable])],
  1066. [disable], [m4_define([am_maintainer_other], [enable])],
  1067. [m4_define([am_maintainer_other], [enable])
  1068. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  1069. AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  1070. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  1071. AC_ARG_ENABLE([maintainer-mode],
  1072. [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  1073. (and sometimes confusing) to the casual installer],
  1074. [USE_MAINTAINER_MODE=$enableval],
  1075. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  1076. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  1077. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  1078. MAINT=$MAINTAINER_MODE_TRUE
  1079. AC_SUBST([MAINT])dnl
  1080. ]
  1081. )
  1082. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  1083. # Check to see how 'make' treats includes. -*- Autoconf -*-
  1084. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  1085. #
  1086. # This file is free software; the Free Software Foundation
  1087. # gives unlimited permission to copy and/or distribute it,
  1088. # with or without modifications, as long as this notice is preserved.
  1089. # serial 4
  1090. # AM_MAKE_INCLUDE()
  1091. # -----------------
  1092. # Check to see how make treats includes.
  1093. AC_DEFUN([AM_MAKE_INCLUDE],
  1094. [am_make=${MAKE-make}
  1095. cat > confinc << 'END'
  1096. am__doit:
  1097. @echo this is the am__doit target
  1098. .PHONY: am__doit
  1099. END
  1100. # If we don't find an include directive, just comment out the code.
  1101. AC_MSG_CHECKING([for style of include used by $am_make])
  1102. am__include="#"
  1103. am__quote=
  1104. _am_result=none
  1105. # First try GNU make style include.
  1106. echo "include confinc" > confmf
  1107. # Ignore all kinds of additional output from `make'.
  1108. case `$am_make -s -f confmf 2> /dev/null` in #(
  1109. *the\ am__doit\ target*)
  1110. am__include=include
  1111. am__quote=
  1112. _am_result=GNU
  1113. ;;
  1114. esac
  1115. # Now try BSD make style include.
  1116. if test "$am__include" = "#"; then
  1117. echo '.include "confinc"' > confmf
  1118. case `$am_make -s -f confmf 2> /dev/null` in #(
  1119. *the\ am__doit\ target*)
  1120. am__include=.include
  1121. am__quote="\""
  1122. _am_result=BSD
  1123. ;;
  1124. esac
  1125. fi
  1126. AC_SUBST([am__include])
  1127. AC_SUBST([am__quote])
  1128. AC_MSG_RESULT([$_am_result])
  1129. rm -f confinc confmf
  1130. ])
  1131. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  1132. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  1133. # Free Software Foundation, Inc.
  1134. #
  1135. # This file is free software; the Free Software Foundation
  1136. # gives unlimited permission to copy and/or distribute it,
  1137. # with or without modifications, as long as this notice is preserved.
  1138. # serial 6
  1139. # AM_MISSING_PROG(NAME, PROGRAM)
  1140. # ------------------------------
  1141. AC_DEFUN([AM_MISSING_PROG],
  1142. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  1143. $1=${$1-"${am_missing_run}$2"}
  1144. AC_SUBST($1)])
  1145. # AM_MISSING_HAS_RUN
  1146. # ------------------
  1147. # Define MISSING if not defined so far and test if it supports --run.
  1148. # If it does, set am_missing_run to use it, otherwise, to nothing.
  1149. AC_DEFUN([AM_MISSING_HAS_RUN],
  1150. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  1151. AC_REQUIRE_AUX_FILE([missing])dnl
  1152. if test x"${MISSING+set}" != xset; then
  1153. case $am_aux_dir in
  1154. *\ * | *\ *)
  1155. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  1156. *)
  1157. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  1158. esac
  1159. fi
  1160. # Use eval to expand $SHELL
  1161. if eval "$MISSING --run true"; then
  1162. am_missing_run="$MISSING --run "
  1163. else
  1164. am_missing_run=
  1165. AC_MSG_WARN([`missing' script is too old or missing])
  1166. fi
  1167. ])
  1168. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1169. #
  1170. # This file is free software; the Free Software Foundation
  1171. # gives unlimited permission to copy and/or distribute it,
  1172. # with or without modifications, as long as this notice is preserved.
  1173. # AM_PROG_MKDIR_P
  1174. # ---------------
  1175. # Check for `mkdir -p'.
  1176. AC_DEFUN([AM_PROG_MKDIR_P],
  1177. [AC_PREREQ([2.60])dnl
  1178. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  1179. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  1180. dnl while keeping a definition of mkdir_p for backward compatibility.
  1181. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  1182. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  1183. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  1184. dnl adjustment using top_builddir (which is defined more often than
  1185. dnl MKDIR_P).
  1186. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  1187. case $mkdir_p in
  1188. [[\\/$]]* | ?:[[\\/]]*) ;;
  1189. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1190. esac
  1191. ])
  1192. # Helper functions for option handling. -*- Autoconf -*-
  1193. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  1194. #
  1195. # This file is free software; the Free Software Foundation
  1196. # gives unlimited permission to copy and/or distribute it,
  1197. # with or without modifications, as long as this notice is preserved.
  1198. # serial 4
  1199. # _AM_MANGLE_OPTION(NAME)
  1200. # -----------------------
  1201. AC_DEFUN([_AM_MANGLE_OPTION],
  1202. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  1203. # _AM_SET_OPTION(NAME)
  1204. # ------------------------------
  1205. # Set option NAME. Presently that only means defining a flag for this option.
  1206. AC_DEFUN([_AM_SET_OPTION],
  1207. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  1208. # _AM_SET_OPTIONS(OPTIONS)
  1209. # ----------------------------------
  1210. # OPTIONS is a space-separated list of Automake options.
  1211. AC_DEFUN([_AM_SET_OPTIONS],
  1212. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  1213. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  1214. # -------------------------------------------
  1215. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  1216. AC_DEFUN([_AM_IF_OPTION],
  1217. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  1218. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  1219. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  1220. # Free Software Foundation, Inc.
  1221. #
  1222. # This file is free software; the Free Software Foundation
  1223. # gives unlimited permission to copy and/or distribute it,
  1224. # with or without modifications, as long as this notice is preserved.
  1225. # serial 5
  1226. # AM_SANITY_CHECK
  1227. # ---------------
  1228. AC_DEFUN([AM_SANITY_CHECK],
  1229. [AC_MSG_CHECKING([whether build environment is sane])
  1230. # Just in case
  1231. sleep 1
  1232. echo timestamp > conftest.file
  1233. # Reject unsafe characters in $srcdir or the absolute working directory
  1234. # name. Accept space and tab only in the latter.
  1235. am_lf='
  1236. '
  1237. case `pwd` in
  1238. *[[\\\"\#\$\&\'\`$am_lf]]*)
  1239. AC_MSG_ERROR([unsafe absolute working directory name]);;
  1240. esac
  1241. case $srcdir in
  1242. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  1243. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  1244. esac
  1245. # Do `set' in a subshell so we don't clobber the current shell's
  1246. # arguments. Must try -L first in case configure is actually a
  1247. # symlink; some systems play weird games with the mod time of symlinks
  1248. # (eg FreeBSD returns the mod time of the symlink's containing
  1249. # directory).
  1250. if (
  1251. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  1252. if test "$[*]" = "X"; then
  1253. # -L didn't work.
  1254. set X `ls -t "$srcdir/configure" conftest.file`
  1255. fi
  1256. rm -f conftest.file
  1257. if test "$[*]" != "X $srcdir/configure conftest.file" \
  1258. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  1259. # If neither matched, then we have a broken ls. This can happen
  1260. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1261. # broken ls alias from the environment. This has actually
  1262. # happened. Such a system could not be considered "sane".
  1263. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  1264. alias in your environment])
  1265. fi
  1266. test "$[2]" = conftest.file
  1267. )
  1268. then
  1269. # Ok.
  1270. :
  1271. else
  1272. AC_MSG_ERROR([newly created file is older than distributed files!
  1273. Check your system clock])
  1274. fi
  1275. AC_MSG_RESULT(yes)])
  1276. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  1277. #
  1278. # This file is free software; the Free Software Foundation
  1279. # gives unlimited permission to copy and/or distribute it,
  1280. # with or without modifications, as long as this notice is preserved.
  1281. # AM_PROG_INSTALL_STRIP
  1282. # ---------------------
  1283. # One issue with vendor `install' (even GNU) is that you can't
  1284. # specify the program used to strip binaries. This is especially
  1285. # annoying in cross-compiling environments, where the build's strip
  1286. # is unlikely to handle the host's binaries.
  1287. # Fortunately install-sh will honor a STRIPPROG variable, so we
  1288. # always use install-sh in `make install-strip', and initialize
  1289. # STRIPPROG with the value of the STRIP variable (set by the user).
  1290. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  1291. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  1292. # Installed binaries are usually stripped using `strip' when the user
  1293. # run `make install-strip'. However `strip' might not be the right
  1294. # tool to use in cross-compilation environments, therefore Automake
  1295. # will honor the `STRIP' environment variable to overrule this program.
  1296. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  1297. if test "$cross_compiling" != no; then
  1298. AC_CHECK_TOOL([STRIP], [strip], :)
  1299. fi
  1300. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  1301. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  1302. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  1303. #
  1304. # This file is free software; the Free Software Foundation
  1305. # gives unlimited permission to copy and/or distribute it,
  1306. # with or without modifications, as long as this notice is preserved.
  1307. # serial 2
  1308. # _AM_SUBST_NOTMAKE(VARIABLE)
  1309. # ---------------------------
  1310. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  1311. # This macro is traced by Automake.
  1312. AC_DEFUN([_AM_SUBST_NOTMAKE])
  1313. # AM_SUBST_NOTMAKE(VARIABLE)
  1314. # ---------------------------
  1315. # Public sister of _AM_SUBST_NOTMAKE.
  1316. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  1317. # Check how to create a tarball. -*- Autoconf -*-
  1318. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  1319. #
  1320. # This file is free software; the Free Software Foundation
  1321. # gives unlimited permission to copy and/or distribute it,
  1322. # with or without modifications, as long as this notice is preserved.
  1323. # serial 2
  1324. # _AM_PROG_TAR(FORMAT)
  1325. # --------------------
  1326. # Check how to create a tarball in format FORMAT.
  1327. # FORMAT should be one of `v7', `ustar', or `pax'.
  1328. #
  1329. # Substitute a variable $(am__tar) that is a command
  1330. # writing to stdout a FORMAT-tarball containing the directory
  1331. # $tardir.
  1332. # tardir=directory && $(am__tar) > result.tar
  1333. #
  1334. # Substitute a variable $(am__untar) that extract such
  1335. # a tarball read from stdin.
  1336. # $(am__untar) < result.tar
  1337. AC_DEFUN([_AM_PROG_TAR],
  1338. [# Always define AMTAR for backward compatibility.
  1339. AM_MISSING_PROG([AMTAR], [tar])
  1340. m4_if([$1], [v7],
  1341. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  1342. [m4_case([$1], [ustar],, [pax],,
  1343. [m4_fatal([Unknown tar format])])
  1344. AC_MSG_CHECKING([how to create a $1 tar archive])
  1345. # Loop over all known methods to create a tar archive until one works.
  1346. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  1347. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  1348. # Do not fold the above two line into one, because Tru64 sh and
  1349. # Solaris sh will not grok spaces in the rhs of `-'.
  1350. for _am_tool in $_am_tools
  1351. do
  1352. case $_am_tool in
  1353. gnutar)
  1354. for _am_tar in tar gnutar gtar;
  1355. do
  1356. AM_RUN_LOG([$_am_tar --version]) && break
  1357. done
  1358. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  1359. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  1360. am__untar="$_am_tar -xf -"
  1361. ;;
  1362. plaintar)
  1363. # Must skip GNU tar: if it does not support --format= it doesn't create
  1364. # ustar tarball either.
  1365. (tar --version) >/dev/null 2>&1 && continue
  1366. am__tar='tar chf - "$$tardir"'
  1367. am__tar_='tar chf - "$tardir"'
  1368. am__untar='tar xf -'
  1369. ;;
  1370. pax)
  1371. am__tar='pax -L -x $1 -w "$$tardir"'
  1372. am__tar_='pax -L -x $1 -w "$tardir"'
  1373. am__untar='pax -r'
  1374. ;;
  1375. cpio)
  1376. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  1377. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  1378. am__untar='cpio -i -H $1 -d'
  1379. ;;
  1380. none)
  1381. am__tar=false
  1382. am__tar_=false
  1383. am__untar=false
  1384. ;;
  1385. esac
  1386. # If the value was cached, stop now. We just wanted to have am__tar
  1387. # and am__untar set.
  1388. test -n "${am_cv_prog_tar_$1}" && break
  1389. # tar/untar a dummy directory, and stop if the command works
  1390. rm -rf conftest.dir
  1391. mkdir conftest.dir
  1392. echo GrepMe > conftest.dir/file
  1393. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  1394. rm -rf conftest.dir
  1395. if test -s conftest.tar; then
  1396. AM_RUN_LOG([$am__untar <conftest.tar])
  1397. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  1398. fi
  1399. done
  1400. rm -rf conftest.dir
  1401. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  1402. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  1403. AC_SUBST([am__tar])
  1404. AC_SUBST([am__untar])
  1405. ]) # _AM_PROG_TAR
  1406. m4_include([acinclude.m4])