Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

aclocal.m4 35KB

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