KDirStat – a graphical disk usage utility
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.
 
 
 

1046 lines
39 KiB

  1. # generated automatically by aclocal 1.9.1 -*- 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., 51 Franklin Street, Fifth Floor, 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.9"])
  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.9.1])])
  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., 51 Franklin Street, Fifth Floor, Boston, MA
  49. # 02110-1301, 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, 2004 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., 51 Franklin Street, Fifth Floor, Boston, MA
  106. # 02110-1301, 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., 51 Franklin Street, Fifth Floor, Boston, MA
  143. # 02110-1301, 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
  280. # Free Software Foundation, Inc.
  281. # This program is free software; you can redistribute it and/or modify
  282. # it under the terms of the GNU General Public License as published by
  283. # the Free Software Foundation; either version 2, or (at your option)
  284. # any later version.
  285. # This program is distributed in the hope that it will be useful,
  286. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  287. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  288. # GNU General Public License for more details.
  289. # You should have received a copy of the GNU General Public License
  290. # along with this program; if not, write to the Free Software
  291. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  292. # 02110-1301, USA.
  293. #serial 2
  294. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  295. # ------------------------------
  296. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  297. [for mf in $CONFIG_FILES; do
  298. # Strip MF so we end up with the name of the file.
  299. mf=`echo "$mf" | sed -e 's/:.*$//'`
  300. # Check whether this is an Automake generated Makefile or not.
  301. # We used to match only the files named `Makefile.in', but
  302. # some people rename them; so instead we look at the file content.
  303. # Grep'ing the first line is not enough: some people post-process
  304. # each Makefile.in and add a new line on top of each file to say so.
  305. # So let's grep whole file.
  306. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  307. dirpart=`AS_DIRNAME("$mf")`
  308. else
  309. continue
  310. fi
  311. # Extract the definition of DEPDIR, am__include, and am__quote
  312. # from the Makefile without running `make'.
  313. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  314. test -z "$DEPDIR" && continue
  315. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  316. test -z "am__include" && continue
  317. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  318. # When using ansi2knr, U may be empty or an underscore; expand it
  319. U=`sed -n 's/^U = //p' < "$mf"`
  320. # Find all dependency output files, they are included files with
  321. # $(DEPDIR) in their names. We invoke sed twice because it is the
  322. # simplest approach to changing $(DEPDIR) to its actual value in the
  323. # expansion.
  324. for file in `sed -n "
  325. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  326. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  327. # Make sure the directory exists.
  328. test -f "$dirpart/$file" && continue
  329. fdir=`AS_DIRNAME(["$file"])`
  330. AS_MKDIR_P([$dirpart/$fdir])
  331. # echo "creating $dirpart/$file"
  332. echo '# dummy' > "$dirpart/$file"
  333. done
  334. done
  335. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  336. # AM_OUTPUT_DEPENDENCY_COMMANDS
  337. # -----------------------------
  338. # This macro should only be invoked once -- use via AC_REQUIRE.
  339. #
  340. # This code is only required when automatic dependency tracking
  341. # is enabled. FIXME. This creates each `.P' file that we will
  342. # need in order to bootstrap the dependency handling code.
  343. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  344. [AC_CONFIG_COMMANDS([depfiles],
  345. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  346. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  347. ])
  348. # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  349. # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  350. # This program is free software; you can redistribute it and/or modify
  351. # it under the terms of the GNU General Public License as published by
  352. # the Free Software Foundation; either version 2, or (at your option)
  353. # any later version.
  354. # This program is distributed in the hope that it will be useful,
  355. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  356. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  357. # GNU General Public License for more details.
  358. # You should have received a copy of the GNU General Public License
  359. # along with this program; if not, write to the Free Software
  360. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  361. # 02110-1301, USA.
  362. # serial 7
  363. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  364. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  365. # Do all the work for Automake. -*- Autoconf -*-
  366. # This macro actually does too much some checks are only needed if
  367. # your package does certain things. But this isn't really a big deal.
  368. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  369. # Free Software Foundation, Inc.
  370. # This program is free software; you can redistribute it and/or modify
  371. # it under the terms of the GNU General Public License as published by
  372. # the Free Software Foundation; either version 2, or (at your option)
  373. # any later version.
  374. # This program is distributed in the hope that it will be useful,
  375. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  376. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  377. # GNU General Public License for more details.
  378. # You should have received a copy of the GNU General Public License
  379. # along with this program; if not, write to the Free Software
  380. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  381. # 02110-1301, USA.
  382. # serial 11
  383. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  384. # AM_INIT_AUTOMAKE([OPTIONS])
  385. # -----------------------------------------------
  386. # The call with PACKAGE and VERSION arguments is the old style
  387. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  388. # and VERSION should now be passed to AC_INIT and removed from
  389. # the call to AM_INIT_AUTOMAKE.
  390. # We support both call styles for the transition. After
  391. # the next Automake release, Autoconf can make the AC_INIT
  392. # arguments mandatory, and then we can depend on a new Autoconf
  393. # release and drop the old call support.
  394. AC_DEFUN([AM_INIT_AUTOMAKE],
  395. [AC_PREREQ([2.58])dnl
  396. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  397. dnl the ones we care about.
  398. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  399. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  400. AC_REQUIRE([AC_PROG_INSTALL])dnl
  401. # test to see if srcdir already configured
  402. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  403. test -f $srcdir/config.status; then
  404. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  405. fi
  406. # test whether we have cygpath
  407. if test -z "$CYGPATH_W"; then
  408. if (cygpath --version) >/dev/null 2>/dev/null; then
  409. CYGPATH_W='cygpath -w'
  410. else
  411. CYGPATH_W=echo
  412. fi
  413. fi
  414. AC_SUBST([CYGPATH_W])
  415. # Define the identity of the package.
  416. dnl Distinguish between old-style and new-style calls.
  417. m4_ifval([$2],
  418. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  419. AC_SUBST([PACKAGE], [$1])dnl
  420. AC_SUBST([VERSION], [$2])],
  421. [_AM_SET_OPTIONS([$1])dnl
  422. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  423. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  424. _AM_IF_OPTION([no-define],,
  425. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  426. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  427. # Some tools Automake needs.
  428. AC_REQUIRE([AM_SANITY_CHECK])dnl
  429. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  430. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  431. AM_MISSING_PROG(AUTOCONF, autoconf)
  432. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  433. AM_MISSING_PROG(AUTOHEADER, autoheader)
  434. AM_MISSING_PROG(MAKEINFO, makeinfo)
  435. AM_PROG_INSTALL_SH
  436. AM_PROG_INSTALL_STRIP
  437. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  438. # We need awk for the "check" target. The system "awk" is bad on
  439. # some platforms.
  440. AC_REQUIRE([AC_PROG_AWK])dnl
  441. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  442. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  443. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  444. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  445. [_AM_PROG_TAR([v7])])])
  446. _AM_IF_OPTION([no-dependencies],,
  447. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  448. [_AM_DEPENDENCIES(CC)],
  449. [define([AC_PROG_CC],
  450. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  451. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  452. [_AM_DEPENDENCIES(CXX)],
  453. [define([AC_PROG_CXX],
  454. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  455. ])
  456. ])
  457. # When config.status generates a header, we must update the stamp-h file.
  458. # This file resides in the same directory as the config header
  459. # that is generated. The stamp files are numbered to have different names.
  460. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  461. # loop where config.status creates the headers, so we can generate
  462. # our stamp files there.
  463. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  464. [# Compute $1's index in $config_headers.
  465. _am_stamp_count=1
  466. for _am_header in $config_headers :; do
  467. case $_am_header in
  468. $1 | $1:* )
  469. break ;;
  470. * )
  471. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  472. esac
  473. done
  474. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  475. # AM_PROG_INSTALL_SH
  476. # ------------------
  477. # Define $install_sh.
  478. # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  479. # This program is free software; you can redistribute it and/or modify
  480. # it under the terms of the GNU General Public License as published by
  481. # the Free Software Foundation; either version 2, or (at your option)
  482. # any later version.
  483. # This program is distributed in the hope that it will be useful,
  484. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  485. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  486. # GNU General Public License for more details.
  487. # You should have received a copy of the GNU General Public License
  488. # along with this program; if not, write to the Free Software
  489. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  490. # 02110-1301, USA.
  491. AC_DEFUN([AM_PROG_INSTALL_SH],
  492. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  493. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  494. AC_SUBST(install_sh)])
  495. # -*- Autoconf -*-
  496. # Copyright (C) 2003 Free Software Foundation, Inc.
  497. # This program is free software; you can redistribute it and/or modify
  498. # it under the terms of the GNU General Public License as published by
  499. # the Free Software Foundation; either version 2, or (at your option)
  500. # any later version.
  501. # This program is distributed in the hope that it will be useful,
  502. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  503. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  504. # GNU General Public License for more details.
  505. # You should have received a copy of the GNU General Public License
  506. # along with this program; if not, write to the Free Software
  507. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  508. # 02110-1301, USA.
  509. # serial 1
  510. # Check whether the underlying file-system supports filenames
  511. # with a leading dot. For instance MS-DOS doesn't.
  512. AC_DEFUN([AM_SET_LEADING_DOT],
  513. [rm -rf .tst 2>/dev/null
  514. mkdir .tst 2>/dev/null
  515. if test -d .tst; then
  516. am__leading_dot=.
  517. else
  518. am__leading_dot=_
  519. fi
  520. rmdir .tst 2>/dev/null
  521. AC_SUBST([am__leading_dot])])
  522. # Check to see how 'make' treats includes. -*- Autoconf -*-
  523. # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  524. # This program is free software; you can redistribute it and/or modify
  525. # it under the terms of the GNU General Public License as published by
  526. # the Free Software Foundation; either version 2, or (at your option)
  527. # any later version.
  528. # This program is distributed in the hope that it will be useful,
  529. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  530. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  531. # GNU General Public License for more details.
  532. # You should have received a copy of the GNU General Public License
  533. # along with this program; if not, write to the Free Software
  534. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  535. # 02110-1301, USA.
  536. # serial 2
  537. # AM_MAKE_INCLUDE()
  538. # -----------------
  539. # Check to see how make treats includes.
  540. AC_DEFUN([AM_MAKE_INCLUDE],
  541. [am_make=${MAKE-make}
  542. cat > confinc << 'END'
  543. am__doit:
  544. @echo done
  545. .PHONY: am__doit
  546. END
  547. # If we don't find an include directive, just comment out the code.
  548. AC_MSG_CHECKING([for style of include used by $am_make])
  549. am__include="#"
  550. am__quote=
  551. _am_result=none
  552. # First try GNU make style include.
  553. echo "include confinc" > confmf
  554. # We grep out `Entering directory' and `Leaving directory'
  555. # messages which can occur if `w' ends up in MAKEFLAGS.
  556. # In particular we don't look at `^make:' because GNU make might
  557. # be invoked under some other name (usually "gmake"), in which
  558. # case it prints its new name instead of `make'.
  559. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  560. am__include=include
  561. am__quote=
  562. _am_result=GNU
  563. fi
  564. # Now try BSD make style include.
  565. if test "$am__include" = "#"; then
  566. echo '.include "confinc"' > confmf
  567. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  568. am__include=.include
  569. am__quote="\""
  570. _am_result=BSD
  571. fi
  572. fi
  573. AC_SUBST([am__include])
  574. AC_SUBST([am__quote])
  575. AC_MSG_RESULT([$_am_result])
  576. rm -f confinc confmf
  577. ])
  578. # -*- Autoconf -*-
  579. # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  580. # This program is free software; you can redistribute it and/or modify
  581. # it under the terms of the GNU General Public License as published by
  582. # the Free Software Foundation; either version 2, or (at your option)
  583. # any later version.
  584. # This program is distributed in the hope that it will be useful,
  585. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  586. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  587. # GNU General Public License for more details.
  588. # You should have received a copy of the GNU General Public License
  589. # along with this program; if not, write to the Free Software
  590. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  591. # 02110-1301, USA.
  592. # serial 3
  593. # AM_MISSING_PROG(NAME, PROGRAM)
  594. # ------------------------------
  595. AC_DEFUN([AM_MISSING_PROG],
  596. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  597. $1=${$1-"${am_missing_run}$2"}
  598. AC_SUBST($1)])
  599. # AM_MISSING_HAS_RUN
  600. # ------------------
  601. # Define MISSING if not defined so far and test if it supports --run.
  602. # If it does, set am_missing_run to use it, otherwise, to nothing.
  603. AC_DEFUN([AM_MISSING_HAS_RUN],
  604. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  605. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  606. # Use eval to expand $SHELL
  607. if eval "$MISSING --run true"; then
  608. am_missing_run="$MISSING --run "
  609. else
  610. am_missing_run=
  611. AC_MSG_WARN([`missing' script is too old or missing])
  612. fi
  613. ])
  614. # AM_PROG_MKDIR_P
  615. # ---------------
  616. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  617. # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  618. # This program is free software; you can redistribute it and/or modify
  619. # it under the terms of the GNU General Public License as published by
  620. # the Free Software Foundation; either version 2, or (at your option)
  621. # any later version.
  622. # This program is distributed in the hope that it will be useful,
  623. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  624. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  625. # GNU General Public License for more details.
  626. # You should have received a copy of the GNU General Public License
  627. # along with this program; if not, write to the Free Software
  628. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  629. # 02110-1301, USA.
  630. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  631. # created by `make install' are always world readable, even if the
  632. # installer happens to have an overly restrictive umask (e.g. 077).
  633. # This was a mistake. There are at least two reasons why we must not
  634. # use `-m 0755':
  635. # - it causes special bits like SGID to be ignored,
  636. # - it may be too restrictive (some setups expect 775 directories).
  637. #
  638. # Do not use -m 0755 and let people choose whatever they expect by
  639. # setting umask.
  640. #
  641. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  642. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  643. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  644. # concurrently, both version can detect that a/ is missing, but only
  645. # one can create it and the other will error out. Consequently we
  646. # restrict ourselves to GNU make (using the --version option ensures
  647. # this.)
  648. AC_DEFUN([AM_PROG_MKDIR_P],
  649. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  650. # We used to keeping the `.' as first argument, in order to
  651. # allow $(mkdir_p) to be used without argument. As in
  652. # $(mkdir_p) $(somedir)
  653. # where $(somedir) is conditionally defined. However this is wrong
  654. # for two reasons:
  655. # 1. if the package is installed by a user who cannot write `.'
  656. # make install will fail,
  657. # 2. the above comment should most certainly read
  658. # $(mkdir_p) $(DESTDIR)$(somedir)
  659. # so it does not work when $(somedir) is undefined and
  660. # $(DESTDIR) is not.
  661. # To support the latter case, we have to write
  662. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  663. # so the `.' trick is pointless.
  664. mkdir_p='mkdir -p --'
  665. else
  666. # On NextStep and OpenStep, the `mkdir' command does not
  667. # recognize any option. It will interpret all options as
  668. # directories to create, and then abort because `.' already
  669. # exists.
  670. for d in ./-p ./--version;
  671. do
  672. test -d $d && rmdir $d
  673. done
  674. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  675. if test -f "$ac_aux_dir/mkinstalldirs"; then
  676. mkdir_p='$(mkinstalldirs)'
  677. else
  678. mkdir_p='$(install_sh) -d'
  679. fi
  680. fi
  681. AC_SUBST([mkdir_p])])
  682. # Helper functions for option handling. -*- Autoconf -*-
  683. # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  684. # This program is free software; you can redistribute it and/or modify
  685. # it under the terms of the GNU General Public License as published by
  686. # the Free Software Foundation; either version 2, or (at your option)
  687. # any later version.
  688. # This program is distributed in the hope that it will be useful,
  689. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  690. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  691. # GNU General Public License for more details.
  692. # You should have received a copy of the GNU General Public License
  693. # along with this program; if not, write to the Free Software
  694. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  695. # 02110-1301, USA.
  696. # serial 2
  697. # _AM_MANGLE_OPTION(NAME)
  698. # -----------------------
  699. AC_DEFUN([_AM_MANGLE_OPTION],
  700. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  701. # _AM_SET_OPTION(NAME)
  702. # ------------------------------
  703. # Set option NAME. Presently that only means defining a flag for this option.
  704. AC_DEFUN([_AM_SET_OPTION],
  705. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  706. # _AM_SET_OPTIONS(OPTIONS)
  707. # ----------------------------------
  708. # OPTIONS is a space-separated list of Automake options.
  709. AC_DEFUN([_AM_SET_OPTIONS],
  710. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  711. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  712. # -------------------------------------------
  713. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  714. AC_DEFUN([_AM_IF_OPTION],
  715. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  716. #
  717. # Check to make sure that the build environment is sane.
  718. #
  719. # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  720. # This program is free software; you can redistribute it and/or modify
  721. # it under the terms of the GNU General Public License as published by
  722. # the Free Software Foundation; either version 2, or (at your option)
  723. # any later version.
  724. # This program is distributed in the hope that it will be useful,
  725. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  726. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  727. # GNU General Public License for more details.
  728. # You should have received a copy of the GNU General Public License
  729. # along with this program; if not, write to the Free Software
  730. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  731. # 02110-1301, USA.
  732. # serial 3
  733. # AM_SANITY_CHECK
  734. # ---------------
  735. AC_DEFUN([AM_SANITY_CHECK],
  736. [AC_MSG_CHECKING([whether build environment is sane])
  737. # Just in case
  738. sleep 1
  739. echo timestamp > conftest.file
  740. # Do `set' in a subshell so we don't clobber the current shell's
  741. # arguments. Must try -L first in case configure is actually a
  742. # symlink; some systems play weird games with the mod time of symlinks
  743. # (eg FreeBSD returns the mod time of the symlink's containing
  744. # directory).
  745. if (
  746. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  747. if test "$[*]" = "X"; then
  748. # -L didn't work.
  749. set X `ls -t $srcdir/configure conftest.file`
  750. fi
  751. rm -f conftest.file
  752. if test "$[*]" != "X $srcdir/configure conftest.file" \
  753. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  754. # If neither matched, then we have a broken ls. This can happen
  755. # if, for instance, CONFIG_SHELL is bash and it inherits a
  756. # broken ls alias from the environment. This has actually
  757. # happened. Such a system could not be considered "sane".
  758. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  759. alias in your environment])
  760. fi
  761. test "$[2]" = conftest.file
  762. )
  763. then
  764. # Ok.
  765. :
  766. else
  767. AC_MSG_ERROR([newly created file is older than distributed files!
  768. Check your system clock])
  769. fi
  770. AC_MSG_RESULT(yes)])
  771. # AM_PROG_INSTALL_STRIP
  772. # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  773. # This program is free software; you can redistribute it and/or modify
  774. # it under the terms of the GNU General Public License as published by
  775. # the Free Software Foundation; either version 2, or (at your option)
  776. # any later version.
  777. # This program is distributed in the hope that it will be useful,
  778. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  779. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  780. # GNU General Public License for more details.
  781. # You should have received a copy of the GNU General Public License
  782. # along with this program; if not, write to the Free Software
  783. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  784. # 02110-1301, USA.
  785. # One issue with vendor `install' (even GNU) is that you can't
  786. # specify the program used to strip binaries. This is especially
  787. # annoying in cross-compiling environments, where the build's strip
  788. # is unlikely to handle the host's binaries.
  789. # Fortunately install-sh will honor a STRIPPROG variable, so we
  790. # always use install-sh in `make install-strip', and initialize
  791. # STRIPPROG with the value of the STRIP variable (set by the user).
  792. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  793. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  794. # Installed binaries are usually stripped using `strip' when the user
  795. # run `make install-strip'. However `strip' might not be the right
  796. # tool to use in cross-compilation environments, therefore Automake
  797. # will honor the `STRIP' environment variable to overrule this program.
  798. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  799. if test "$cross_compiling" != no; then
  800. AC_CHECK_TOOL([STRIP], [strip], :)
  801. fi
  802. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  803. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  804. # Check how to create a tarball. -*- Autoconf -*-
  805. # Copyright (C) 2004 Free Software Foundation, Inc.
  806. # This program is free software; you can redistribute it and/or modify
  807. # it under the terms of the GNU General Public License as published by
  808. # the Free Software Foundation; either version 2, or (at your option)
  809. # any later version.
  810. # This program is distributed in the hope that it will be useful,
  811. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  812. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  813. # GNU General Public License for more details.
  814. # You should have received a copy of the GNU General Public License
  815. # along with this program; if not, write to the Free Software
  816. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  817. # 02110-1301, USA.
  818. # serial 1
  819. # _AM_PROG_TAR(FORMAT)
  820. # --------------------
  821. # Check how to create a tarball in format FORMAT.
  822. # FORMAT should be one of `v7', `ustar', or `pax'.
  823. #
  824. # Substitute a variable $(am__tar) that is a command
  825. # writing to stdout a FORMAT-tarball containing the directory
  826. # $tardir.
  827. # tardir=directory && $(am__tar) > result.tar
  828. #
  829. # Substitute a variable $(am__untar) that extract such
  830. # a tarball read from stdin.
  831. # $(am__untar) < result.tar
  832. AC_DEFUN([_AM_PROG_TAR],
  833. [# Always define AMTAR for backward compatibility.
  834. AM_MISSING_PROG([AMTAR], [tar])
  835. m4_if([$1], [v7],
  836. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  837. [m4_case([$1], [ustar],, [pax],,
  838. [m4_fatal([Unknown tar format])])
  839. AC_MSG_CHECKING([how to create a $1 tar archive])
  840. # Loop over all known methods to create a tar archive until one works.
  841. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  842. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  843. # Do not fold the above two line into one, because Tru64 sh and
  844. # Solaris sh will not grok spaces in the rhs of `-'.
  845. for _am_tool in $_am_tools
  846. do
  847. case $_am_tool in
  848. gnutar)
  849. for _am_tar in tar gnutar gtar;
  850. do
  851. AM_RUN_LOG([$_am_tar --version]) && break
  852. done
  853. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  854. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  855. am__untar="$_am_tar -xf -"
  856. ;;
  857. plaintar)
  858. # Must skip GNU tar: if it does not support --format= it doesn't create
  859. # ustar tarball either.
  860. (tar --version) >/dev/null 2>&1 && continue
  861. am__tar='tar chf - "$$tardir"'
  862. am__tar_='tar chf - "$tardir"'
  863. am__untar='tar xf -'
  864. ;;
  865. pax)
  866. am__tar='pax -L -x $1 -w "$$tardir"'
  867. am__tar_='pax -L -x $1 -w "$tardir"'
  868. am__untar='pax -r'
  869. ;;
  870. cpio)
  871. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  872. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  873. am__untar='cpio -i -H $1 -d'
  874. ;;
  875. none)
  876. am__tar=false
  877. am__tar_=false
  878. am__untar=false
  879. ;;
  880. esac
  881. # If the value was cached, stop now. We just wanted to have am__tar
  882. # and am__untar set.
  883. test -n "${am_cv_prog_tar_$1}" && break
  884. # tar/untar a dummy directory, and stop if the command works
  885. rm -rf conftest.dir
  886. mkdir conftest.dir
  887. echo GrepMe > conftest.dir/file
  888. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  889. rm -rf conftest.dir
  890. if test -s conftest.tar; then
  891. AM_RUN_LOG([$am__untar <conftest.tar])
  892. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  893. fi
  894. done
  895. rm -rf conftest.dir
  896. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  897. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  898. AC_SUBST([am__tar])
  899. AC_SUBST([am__untar])
  900. ]) # _AM_PROG_TAR
  901. m4_include([acinclude.m4])