aclocal.m4 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. # aclocal.m4 generated automatically by aclocal 1.6.1 -*- Autoconf -*-
  2. # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
  3. # 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. # Do all the work for Automake. -*- Autoconf -*-
  12. # This macro actually does too much some checks are only needed if
  13. # your package does certain things. But this isn't really a big deal.
  14. # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
  15. # Free Software Foundation, Inc.
  16. # This program is free software; you can redistribute it and/or modify
  17. # it under the terms of the GNU General Public License as published by
  18. # the Free Software Foundation; either version 2, or (at your option)
  19. # any later version.
  20. # This program is distributed in the hope that it will be useful,
  21. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. # GNU General Public License for more details.
  24. # You should have received a copy of the GNU General Public License
  25. # along with this program; if not, write to the Free Software
  26. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  27. # 02111-1307, USA.
  28. # serial 8
  29. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  30. # written in clear, in which case automake, when reading aclocal.m4,
  31. # will think it sees a *use*, and therefore will trigger all it's
  32. # C support machinery. Also note that it means that autoscan, seeing
  33. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  34. AC_PREREQ([2.52])
  35. # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
  36. # the ones we care about.
  37. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  38. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  39. # AM_INIT_AUTOMAKE([OPTIONS])
  40. # -----------------------------------------------
  41. # The call with PACKAGE and VERSION arguments is the old style
  42. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  43. # and VERSION should now be passed to AC_INIT and removed from
  44. # the call to AM_INIT_AUTOMAKE.
  45. # We support both call styles for the transition. After
  46. # the next Automake release, Autoconf can make the AC_INIT
  47. # arguments mandatory, and then we can depend on a new Autoconf
  48. # release and drop the old call support.
  49. AC_DEFUN([AM_INIT_AUTOMAKE],
  50. [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  51. AC_REQUIRE([AC_PROG_INSTALL])dnl
  52. # test to see if srcdir already configured
  53. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  54. test -f $srcdir/config.status; then
  55. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  56. fi
  57. # Define the identity of the package.
  58. dnl Distinguish between old-style and new-style calls.
  59. m4_ifval([$2],
  60. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  61. AC_SUBST([PACKAGE], [$1])dnl
  62. AC_SUBST([VERSION], [$2])],
  63. [_AM_SET_OPTIONS([$1])dnl
  64. AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
  65. AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
  66. _AM_IF_OPTION([no-define],,
  67. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  68. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  69. # Some tools Automake needs.
  70. AC_REQUIRE([AM_SANITY_CHECK])dnl
  71. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  72. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  73. AM_MISSING_PROG(AUTOCONF, autoconf)
  74. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  75. AM_MISSING_PROG(AUTOHEADER, autoheader)
  76. AM_MISSING_PROG(MAKEINFO, makeinfo)
  77. AM_MISSING_PROG(AMTAR, tar)
  78. AM_PROG_INSTALL_SH
  79. AM_PROG_INSTALL_STRIP
  80. # We need awk for the "check" target. The system "awk" is bad on
  81. # some platforms.
  82. AC_REQUIRE([AC_PROG_AWK])dnl
  83. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  84. _AM_IF_OPTION([no-dependencies],,
  85. [AC_PROVIDE_IFELSE([AC_PROG_][CC],
  86. [_AM_DEPENDENCIES(CC)],
  87. [define([AC_PROG_][CC],
  88. defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
  89. AC_PROVIDE_IFELSE([AC_PROG_][CXX],
  90. [_AM_DEPENDENCIES(CXX)],
  91. [define([AC_PROG_][CXX],
  92. defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  93. ])
  94. ])
  95. # Copyright 2002 Free Software Foundation, Inc.
  96. # This program is free software; you can redistribute it and/or modify
  97. # it under the terms of the GNU General Public License as published by
  98. # the Free Software Foundation; either version 2, or (at your option)
  99. # any later version.
  100. # This program is distributed in the hope that it will be useful,
  101. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  102. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  103. # GNU General Public License for more details.
  104. # You should have received a copy of the GNU General Public License
  105. # along with this program; if not, write to the Free Software
  106. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  107. # AM_AUTOMAKE_VERSION(VERSION)
  108. # ----------------------------
  109. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  110. # generated from the m4 files accompanying Automake X.Y.
  111. AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
  112. # AM_SET_CURRENT_AUTOMAKE_VERSION
  113. # -------------------------------
  114. # Call AM_AUTOMAKE_VERSION so it can be traced.
  115. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  116. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  117. [AM_AUTOMAKE_VERSION([1.6.1])])
  118. # Helper functions for option handling. -*- Autoconf -*-
  119. # Copyright 2001, 2002 Free Software Foundation, Inc.
  120. # This program is free software; you can redistribute it and/or modify
  121. # it under the terms of the GNU General Public License as published by
  122. # the Free Software Foundation; either version 2, or (at your option)
  123. # any later version.
  124. # This program is distributed in the hope that it will be useful,
  125. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  126. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  127. # GNU General Public License for more details.
  128. # You should have received a copy of the GNU General Public License
  129. # along with this program; if not, write to the Free Software
  130. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  131. # 02111-1307, USA.
  132. # serial 2
  133. # _AM_MANGLE_OPTION(NAME)
  134. # -----------------------
  135. AC_DEFUN([_AM_MANGLE_OPTION],
  136. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  137. # _AM_SET_OPTION(NAME)
  138. # ------------------------------
  139. # Set option NAME. Presently that only means defining a flag for this option.
  140. AC_DEFUN([_AM_SET_OPTION],
  141. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  142. # _AM_SET_OPTIONS(OPTIONS)
  143. # ----------------------------------
  144. # OPTIONS is a space-separated list of Automake options.
  145. AC_DEFUN([_AM_SET_OPTIONS],
  146. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  147. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  148. # -------------------------------------------
  149. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  150. AC_DEFUN([_AM_IF_OPTION],
  151. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  152. #
  153. # Check to make sure that the build environment is sane.
  154. #
  155. # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
  156. # This program is free software; you can redistribute it and/or modify
  157. # it under the terms of the GNU General Public License as published by
  158. # the Free Software Foundation; either version 2, or (at your option)
  159. # any later version.
  160. # This program is distributed in the hope that it will be useful,
  161. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  162. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  163. # GNU General Public License for more details.
  164. # You should have received a copy of the GNU General Public License
  165. # along with this program; if not, write to the Free Software
  166. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  167. # 02111-1307, USA.
  168. # serial 3
  169. # AM_SANITY_CHECK
  170. # ---------------
  171. AC_DEFUN([AM_SANITY_CHECK],
  172. [AC_MSG_CHECKING([whether build environment is sane])
  173. # Just in case
  174. sleep 1
  175. echo timestamp > conftest.file
  176. # Do `set' in a subshell so we don't clobber the current shell's
  177. # arguments. Must try -L first in case configure is actually a
  178. # symlink; some systems play weird games with the mod time of symlinks
  179. # (eg FreeBSD returns the mod time of the symlink's containing
  180. # directory).
  181. if (
  182. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  183. if test "$[*]" = "X"; then
  184. # -L didn't work.
  185. set X `ls -t $srcdir/configure conftest.file`
  186. fi
  187. rm -f conftest.file
  188. if test "$[*]" != "X $srcdir/configure conftest.file" \
  189. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  190. # If neither matched, then we have a broken ls. This can happen
  191. # if, for instance, CONFIG_SHELL is bash and it inherits a
  192. # broken ls alias from the environment. This has actually
  193. # happened. Such a system could not be considered "sane".
  194. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  195. alias in your environment])
  196. fi
  197. test "$[2]" = conftest.file
  198. )
  199. then
  200. # Ok.
  201. :
  202. else
  203. AC_MSG_ERROR([newly created file is older than distributed files!
  204. Check your system clock])
  205. fi
  206. AC_MSG_RESULT(yes)])
  207. # -*- Autoconf -*-
  208. # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
  209. # This program is free software; you can redistribute it and/or modify
  210. # it under the terms of the GNU General Public License as published by
  211. # the Free Software Foundation; either version 2, or (at your option)
  212. # any later version.
  213. # This program is distributed in the hope that it will be useful,
  214. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  215. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  216. # GNU General Public License for more details.
  217. # You should have received a copy of the GNU General Public License
  218. # along with this program; if not, write to the Free Software
  219. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  220. # 02111-1307, USA.
  221. # serial 3
  222. # AM_MISSING_PROG(NAME, PROGRAM)
  223. # ------------------------------
  224. AC_DEFUN([AM_MISSING_PROG],
  225. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  226. $1=${$1-"${am_missing_run}$2"}
  227. AC_SUBST($1)])
  228. # AM_MISSING_HAS_RUN
  229. # ------------------
  230. # Define MISSING if not defined so far and test if it supports --run.
  231. # If it does, set am_missing_run to use it, otherwise, to nothing.
  232. AC_DEFUN([AM_MISSING_HAS_RUN],
  233. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  234. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  235. # Use eval to expand $SHELL
  236. if eval "$MISSING --run true"; then
  237. am_missing_run="$MISSING --run "
  238. else
  239. am_missing_run=
  240. AC_MSG_WARN([`missing' script is too old or missing])
  241. fi
  242. ])
  243. # AM_AUX_DIR_EXPAND
  244. # Copyright 2001 Free Software Foundation, Inc.
  245. # This program is free software; you can redistribute it and/or modify
  246. # it under the terms of the GNU General Public License as published by
  247. # the Free Software Foundation; either version 2, or (at your option)
  248. # any later version.
  249. # This program is distributed in the hope that it will be useful,
  250. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  251. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  252. # GNU General Public License for more details.
  253. # You should have received a copy of the GNU General Public License
  254. # along with this program; if not, write to the Free Software
  255. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  256. # 02111-1307, USA.
  257. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  258. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  259. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  260. #
  261. # Of course, Automake must honor this variable whenever it calls a
  262. # tool from the auxiliary directory. The problem is that $srcdir (and
  263. # therefore $ac_aux_dir as well) can be either absolute or relative,
  264. # depending on how configure is run. This is pretty annoying, since
  265. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  266. # source directory, any form will work fine, but in subdirectories a
  267. # relative path needs to be adjusted first.
  268. #
  269. # $ac_aux_dir/missing
  270. # fails when called from a subdirectory if $ac_aux_dir is relative
  271. # $top_srcdir/$ac_aux_dir/missing
  272. # fails if $ac_aux_dir is absolute,
  273. # fails when called from a subdirectory in a VPATH build with
  274. # a relative $ac_aux_dir
  275. #
  276. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  277. # are both prefixed by $srcdir. In an in-source build this is usually
  278. # harmless because $srcdir is `.', but things will broke when you
  279. # start a VPATH build or use an absolute $srcdir.
  280. #
  281. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  282. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  283. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  284. # and then we would define $MISSING as
  285. # MISSING="\${SHELL} $am_aux_dir/missing"
  286. # This will work as long as MISSING is not called from configure, because
  287. # unfortunately $(top_srcdir) has no meaning in configure.
  288. # However there are other variables, like CC, which are often used in
  289. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  290. #
  291. # Another solution, used here, is to always expand $ac_aux_dir to an
  292. # absolute PATH. The drawback is that using absolute paths prevent a
  293. # configured tree to be moved without reconfiguration.
  294. # Rely on autoconf to set up CDPATH properly.
  295. AC_PREREQ([2.50])
  296. AC_DEFUN([AM_AUX_DIR_EXPAND], [
  297. # expand $ac_aux_dir to an absolute path
  298. am_aux_dir=`cd $ac_aux_dir && pwd`
  299. ])
  300. # AM_PROG_INSTALL_SH
  301. # ------------------
  302. # Define $install_sh.
  303. # Copyright 2001 Free Software Foundation, Inc.
  304. # This program is free software; you can redistribute it and/or modify
  305. # it under the terms of the GNU General Public License as published by
  306. # the Free Software Foundation; either version 2, or (at your option)
  307. # any later version.
  308. # This program is distributed in the hope that it will be useful,
  309. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  310. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  311. # GNU General Public License for more details.
  312. # You should have received a copy of the GNU General Public License
  313. # along with this program; if not, write to the Free Software
  314. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  315. # 02111-1307, USA.
  316. AC_DEFUN([AM_PROG_INSTALL_SH],
  317. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  318. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  319. AC_SUBST(install_sh)])
  320. # AM_PROG_INSTALL_STRIP
  321. # Copyright 2001 Free Software Foundation, Inc.
  322. # This program is free software; you can redistribute it and/or modify
  323. # it under the terms of the GNU General Public License as published by
  324. # the Free Software Foundation; either version 2, or (at your option)
  325. # any later version.
  326. # This program is distributed in the hope that it will be useful,
  327. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  328. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  329. # GNU General Public License for more details.
  330. # You should have received a copy of the GNU General Public License
  331. # along with this program; if not, write to the Free Software
  332. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  333. # 02111-1307, USA.
  334. # One issue with vendor `install' (even GNU) is that you can't
  335. # specify the program used to strip binaries. This is especially
  336. # annoying in cross-compiling environments, where the build's strip
  337. # is unlikely to handle the host's binaries.
  338. # Fortunately install-sh will honor a STRIPPROG variable, so we
  339. # always use install-sh in `make install-strip', and initialize
  340. # STRIPPROG with the value of the STRIP variable (set by the user).
  341. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  342. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  343. # Installed binaries are usually stripped using `strip' when the user
  344. # run `make install-strip'. However `strip' might not be the right
  345. # tool to use in cross-compilation environments, therefore Automake
  346. # will honor the `STRIP' environment variable to overrule this program.
  347. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  348. if test "$cross_compiling" != no; then
  349. AC_CHECK_TOOL([STRIP], [strip], :)
  350. fi
  351. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  352. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  353. # serial 4 -*- Autoconf -*-
  354. # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
  355. # This program is free software; you can redistribute it and/or modify
  356. # it under the terms of the GNU General Public License as published by
  357. # the Free Software Foundation; either version 2, or (at your option)
  358. # any later version.
  359. # This program is distributed in the hope that it will be useful,
  360. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  361. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  362. # GNU General Public License for more details.
  363. # You should have received a copy of the GNU General Public License
  364. # along with this program; if not, write to the Free Software
  365. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  366. # 02111-1307, USA.
  367. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  368. # written in clear, in which case automake, when reading aclocal.m4,
  369. # will think it sees a *use*, and therefore will trigger all it's
  370. # C support machinery. Also note that it means that autoscan, seeing
  371. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  372. # _AM_DEPENDENCIES(NAME)
  373. # ----------------------
  374. # See how the compiler implements dependency checking.
  375. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  376. # We try a few techniques and use that to set a single cache variable.
  377. #
  378. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  379. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  380. # dependency, and given that the user is not expected to run this macro,
  381. # just rely on AC_PROG_CC.
  382. AC_DEFUN([_AM_DEPENDENCIES],
  383. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  384. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  385. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  386. AC_REQUIRE([AM_DEP_TRACK])dnl
  387. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  388. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  389. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
  390. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  391. [depcc="$$1" am_compiler_list=])
  392. AC_CACHE_CHECK([dependency style of $depcc],
  393. [am_cv_$1_dependencies_compiler_type],
  394. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  395. # We make a subdir and do the tests there. Otherwise we can end up
  396. # making bogus files that we don't know about and never remove. For
  397. # instance it was reported that on HP-UX the gcc test will end up
  398. # making a dummy file named `D' -- because `-MD' means `put the output
  399. # in D'.
  400. mkdir conftest.dir
  401. # Copy depcomp to subdir because otherwise we won't find it if we're
  402. # using a relative directory.
  403. cp "$am_depcomp" conftest.dir
  404. cd conftest.dir
  405. am_cv_$1_dependencies_compiler_type=none
  406. if test "$am_compiler_list" = ""; then
  407. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  408. fi
  409. for depmode in $am_compiler_list; do
  410. # We need to recreate these files for each test, as the compiler may
  411. # overwrite some of them when testing with obscure command lines.
  412. # This happens at least with the AIX C compiler.
  413. echo '#include "conftest.h"' > conftest.c
  414. echo 'int i;' > conftest.h
  415. echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
  416. case $depmode in
  417. nosideeffect)
  418. # after this tag, mechanisms are not by side-effect, so they'll
  419. # only be used when explicitly requested
  420. if test "x$enable_dependency_tracking" = xyes; then
  421. continue
  422. else
  423. break
  424. fi
  425. ;;
  426. none) break ;;
  427. esac
  428. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  429. # mode. It turns out that the SunPro C++ compiler does not properly
  430. # handle `-M -o', and we need to detect this.
  431. if depmode=$depmode \
  432. source=conftest.c object=conftest.o \
  433. depfile=conftest.Po tmpdepfile=conftest.TPo \
  434. $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
  435. grep conftest.h conftest.Po > /dev/null 2>&1 &&
  436. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  437. am_cv_$1_dependencies_compiler_type=$depmode
  438. break
  439. fi
  440. done
  441. cd ..
  442. rm -rf conftest.dir
  443. else
  444. am_cv_$1_dependencies_compiler_type=none
  445. fi
  446. ])
  447. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  448. ])
  449. # AM_SET_DEPDIR
  450. # -------------
  451. # Choose a directory name for dependency files.
  452. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  453. AC_DEFUN([AM_SET_DEPDIR],
  454. [rm -f .deps 2>/dev/null
  455. mkdir .deps 2>/dev/null
  456. if test -d .deps; then
  457. DEPDIR=.deps
  458. else
  459. # MS-DOS does not allow filenames that begin with a dot.
  460. DEPDIR=_deps
  461. fi
  462. rmdir .deps 2>/dev/null
  463. AC_SUBST([DEPDIR])
  464. ])
  465. # AM_DEP_TRACK
  466. # ------------
  467. AC_DEFUN([AM_DEP_TRACK],
  468. [AC_ARG_ENABLE(dependency-tracking,
  469. [ --disable-dependency-tracking Speeds up one-time builds
  470. --enable-dependency-tracking Do not reject slow dependency extractors])
  471. if test "x$enable_dependency_tracking" != xno; then
  472. am_depcomp="$ac_aux_dir/depcomp"
  473. AMDEPBACKSLASH='\'
  474. fi
  475. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  476. AC_SUBST([AMDEPBACKSLASH])
  477. ])
  478. # Generate code to set up dependency tracking. -*- Autoconf -*-
  479. # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
  480. # This program is free software; you can redistribute it and/or modify
  481. # it under the terms of the GNU General Public License as published by
  482. # the Free Software Foundation; either version 2, or (at your option)
  483. # any later version.
  484. # This program is distributed in the hope that it will be useful,
  485. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  486. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  487. # GNU General Public License for more details.
  488. # You should have received a copy of the GNU General Public License
  489. # along with this program; if not, write to the Free Software
  490. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  491. # 02111-1307, USA.
  492. #serial 2
  493. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  494. # ------------------------------
  495. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  496. [for mf in $CONFIG_FILES; do
  497. # Strip MF so we end up with the name of the file.
  498. mf=`echo "$mf" | sed -e 's/:.*$//'`
  499. if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
  500. dirpart=`AS_DIRNAME("$mf")`
  501. else
  502. continue
  503. fi
  504. grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  505. # Extract the definition of DEP_FILES from the Makefile without
  506. # running `make'.
  507. DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  508. test -z "$DEPDIR" && continue
  509. # When using ansi2knr, U may be empty or an underscore; expand it
  510. U=`sed -n -e '/^U = / s///p' < "$mf"`
  511. test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  512. # We invoke sed twice because it is the simplest approach to
  513. # changing $(DEPDIR) to its actual value in the expansion.
  514. for file in `sed -n -e '
  515. /^DEP_FILES = .*\\\\$/ {
  516. s/^DEP_FILES = //
  517. :loop
  518. s/\\\\$//
  519. p
  520. n
  521. /\\\\$/ b loop
  522. p
  523. }
  524. /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  525. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  526. # Make sure the directory exists.
  527. test -f "$dirpart/$file" && continue
  528. fdir=`AS_DIRNAME(["$file"])`
  529. AS_MKDIR_P([$dirpart/$fdir])
  530. # echo "creating $dirpart/$file"
  531. echo '# dummy' > "$dirpart/$file"
  532. done
  533. done
  534. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  535. # AM_OUTPUT_DEPENDENCY_COMMANDS
  536. # -----------------------------
  537. # This macro should only be invoked once -- use via AC_REQUIRE.
  538. #
  539. # This code is only required when automatic dependency tracking
  540. # is enabled. FIXME. This creates each `.P' file that we will
  541. # need in order to bootstrap the dependency handling code.
  542. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  543. [AC_CONFIG_COMMANDS([depfiles],
  544. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  545. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  546. ])
  547. # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
  548. # This program is free software; you can redistribute it and/or modify
  549. # it under the terms of the GNU General Public License as published by
  550. # the Free Software Foundation; either version 2, or (at your option)
  551. # any later version.
  552. # This program is distributed in the hope that it will be useful,
  553. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  554. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  555. # GNU General Public License for more details.
  556. # You should have received a copy of the GNU General Public License
  557. # along with this program; if not, write to the Free Software
  558. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  559. # 02111-1307, USA.
  560. # serial 2
  561. # AM_MAKE_INCLUDE()
  562. # -----------------
  563. # Check to see how make treats includes.
  564. AC_DEFUN([AM_MAKE_INCLUDE],
  565. [am_make=${MAKE-make}
  566. cat > confinc << 'END'
  567. doit:
  568. @echo done
  569. END
  570. # If we don't find an include directive, just comment out the code.
  571. AC_MSG_CHECKING([for style of include used by $am_make])
  572. am__include="#"
  573. am__quote=
  574. _am_result=none
  575. # First try GNU make style include.
  576. echo "include confinc" > confmf
  577. # We grep out `Entering directory' and `Leaving directory'
  578. # messages which can occur if `w' ends up in MAKEFLAGS.
  579. # In particular we don't look at `^make:' because GNU make might
  580. # be invoked under some other name (usually "gmake"), in which
  581. # case it prints its new name instead of `make'.
  582. if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
  583. am__include=include
  584. am__quote=
  585. _am_result=GNU
  586. fi
  587. # Now try BSD make style include.
  588. if test "$am__include" = "#"; then
  589. echo '.include "confinc"' > confmf
  590. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  591. am__include=.include
  592. am__quote="\""
  593. _am_result=BSD
  594. fi
  595. fi
  596. AC_SUBST(am__include)
  597. AC_SUBST(am__quote)
  598. AC_MSG_RESULT($_am_result)
  599. rm -f confinc confmf
  600. ])
  601. # AM_CONDITIONAL -*- Autoconf -*-
  602. # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
  603. # This program is free software; you can redistribute it and/or modify
  604. # it under the terms of the GNU General Public License as published by
  605. # the Free Software Foundation; either version 2, or (at your option)
  606. # any later version.
  607. # This program is distributed in the hope that it will be useful,
  608. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  609. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  610. # GNU General Public License for more details.
  611. # You should have received a copy of the GNU General Public License
  612. # along with this program; if not, write to the Free Software
  613. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  614. # 02111-1307, USA.
  615. # serial 5
  616. AC_PREREQ(2.52)
  617. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  618. # -------------------------------------
  619. # Define a conditional.
  620. AC_DEFUN([AM_CONDITIONAL],
  621. [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  622. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  623. AC_SUBST([$1_TRUE])
  624. AC_SUBST([$1_FALSE])
  625. if $2; then
  626. $1_TRUE=
  627. $1_FALSE='#'
  628. else
  629. $1_TRUE='#'
  630. $1_FALSE=
  631. fi
  632. AC_CONFIG_COMMANDS_PRE(
  633. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  634. AC_MSG_ERROR([conditional \"$1\" was never defined.
  635. Usually this means the macro was only invoked conditionally.])
  636. fi])])
  637. # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  638. # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
  639. # This program is free software; you can redistribute it and/or modify
  640. # it under the terms of the GNU General Public License as published by
  641. # the Free Software Foundation; either version 2, or (at your option)
  642. # any later version.
  643. # This program is distributed in the hope that it will be useful,
  644. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  645. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  646. # GNU General Public License for more details.
  647. # You should have received a copy of the GNU General Public License
  648. # along with this program; if not, write to the Free Software
  649. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  650. # 02111-1307, USA.
  651. AC_PREREQ([2.52])
  652. # serial 6
  653. # When config.status generates a header, we must update the stamp-h file.
  654. # This file resides in the same directory as the config header
  655. # that is generated. We must strip everything past the first ":",
  656. # and everything past the last "/".
  657. # _AM_DIRNAME(PATH)
  658. # -----------------
  659. # Like AS_DIRNAME, only do it during macro expansion
  660. AC_DEFUN([_AM_DIRNAME],
  661. [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
  662. m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
  663. m4_if(regexp([$1], [^/.*]), -1,
  664. [.],
  665. patsubst([$1], [^\(/\).*], [\1])),
  666. patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
  667. patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
  668. ])# _AM_DIRNAME
  669. # The stamp files are numbered to have different names.
  670. # We could number them on a directory basis, but that's additional
  671. # complications, let's have a unique counter.
  672. m4_define([_AM_STAMP_Count], [0])
  673. # _AM_STAMP(HEADER)
  674. # -----------------
  675. # The name of the stamp file for HEADER.
  676. AC_DEFUN([_AM_STAMP],
  677. [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
  678. AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
  679. [:.*])))/stamp-h[]_AM_STAMP_Count])
  680. # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
  681. # ------------------------------------------------------------
  682. # We used to try to get a real timestamp in stamp-h. But the fear is that
  683. # that will cause unnecessary cvs conflicts.
  684. AC_DEFUN([_AM_CONFIG_HEADER],
  685. [# Add the stamp file to the list of files AC keeps track of,
  686. # along with our hook.
  687. AC_CONFIG_HEADERS([$1],
  688. [# update the timestamp
  689. echo 'timestamp for $1' >"_AM_STAMP([$1])"
  690. $2],
  691. [$3])
  692. ])# _AM_CONFIG_HEADER
  693. # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
  694. # --------------------------------------------------------------
  695. AC_DEFUN([AM_CONFIG_HEADER],
  696. [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
  697. ])# AM_CONFIG_HEADER