aclocal.m4 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005 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. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  12. #
  13. # This file is free software; the Free Software Foundation
  14. # gives unlimited permission to copy and/or distribute it,
  15. # with or without modifications, as long as this notice is preserved.
  16. # AM_AUTOMAKE_VERSION(VERSION)
  17. # ----------------------------
  18. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  19. # generated from the m4 files accompanying Automake X.Y.
  20. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  21. # AM_SET_CURRENT_AUTOMAKE_VERSION
  22. # -------------------------------
  23. # Call AM_AUTOMAKE_VERSION so it can be traced.
  24. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  25. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  26. [AM_AUTOMAKE_VERSION([1.9.6])])
  27. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  28. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  29. #
  30. # This file is free software; the Free Software Foundation
  31. # gives unlimited permission to copy and/or distribute it,
  32. # with or without modifications, as long as this notice is preserved.
  33. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  34. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  35. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  36. #
  37. # Of course, Automake must honor this variable whenever it calls a
  38. # tool from the auxiliary directory. The problem is that $srcdir (and
  39. # therefore $ac_aux_dir as well) can be either absolute or relative,
  40. # depending on how configure is run. This is pretty annoying, since
  41. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  42. # source directory, any form will work fine, but in subdirectories a
  43. # relative path needs to be adjusted first.
  44. #
  45. # $ac_aux_dir/missing
  46. # fails when called from a subdirectory if $ac_aux_dir is relative
  47. # $top_srcdir/$ac_aux_dir/missing
  48. # fails if $ac_aux_dir is absolute,
  49. # fails when called from a subdirectory in a VPATH build with
  50. # a relative $ac_aux_dir
  51. #
  52. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  53. # are both prefixed by $srcdir. In an in-source build this is usually
  54. # harmless because $srcdir is `.', but things will broke when you
  55. # start a VPATH build or use an absolute $srcdir.
  56. #
  57. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  58. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  59. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  60. # and then we would define $MISSING as
  61. # MISSING="\${SHELL} $am_aux_dir/missing"
  62. # This will work as long as MISSING is not called from configure, because
  63. # unfortunately $(top_srcdir) has no meaning in configure.
  64. # However there are other variables, like CC, which are often used in
  65. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  66. #
  67. # Another solution, used here, is to always expand $ac_aux_dir to an
  68. # absolute PATH. The drawback is that using absolute paths prevent a
  69. # configured tree to be moved without reconfiguration.
  70. AC_DEFUN([AM_AUX_DIR_EXPAND],
  71. [dnl Rely on autoconf to set up CDPATH properly.
  72. AC_PREREQ([2.50])dnl
  73. # expand $ac_aux_dir to an absolute path
  74. am_aux_dir=`cd $ac_aux_dir && pwd`
  75. ])
  76. # Do all the work for Automake. -*- Autoconf -*-
  77. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  78. # Free Software Foundation, Inc.
  79. #
  80. # This file is free software; the Free Software Foundation
  81. # gives unlimited permission to copy and/or distribute it,
  82. # with or without modifications, as long as this notice is preserved.
  83. # serial 12
  84. # This macro actually does too much. Some checks are only needed if
  85. # your package does certain things. But this isn't really a big deal.
  86. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  87. # AM_INIT_AUTOMAKE([OPTIONS])
  88. # -----------------------------------------------
  89. # The call with PACKAGE and VERSION arguments is the old style
  90. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  91. # and VERSION should now be passed to AC_INIT and removed from
  92. # the call to AM_INIT_AUTOMAKE.
  93. # We support both call styles for the transition. After
  94. # the next Automake release, Autoconf can make the AC_INIT
  95. # arguments mandatory, and then we can depend on a new Autoconf
  96. # release and drop the old call support.
  97. AC_DEFUN([AM_INIT_AUTOMAKE],
  98. [AC_PREREQ([2.58])dnl
  99. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  100. dnl the ones we care about.
  101. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  102. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  103. AC_REQUIRE([AC_PROG_INSTALL])dnl
  104. # test to see if srcdir already configured
  105. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  106. test -f $srcdir/config.status; then
  107. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  108. fi
  109. # test whether we have cygpath
  110. if test -z "$CYGPATH_W"; then
  111. if (cygpath --version) >/dev/null 2>/dev/null; then
  112. CYGPATH_W='cygpath -w'
  113. else
  114. CYGPATH_W=echo
  115. fi
  116. fi
  117. AC_SUBST([CYGPATH_W])
  118. # Define the identity of the package.
  119. dnl Distinguish between old-style and new-style calls.
  120. m4_ifval([$2],
  121. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  122. AC_SUBST([PACKAGE], [$1])dnl
  123. AC_SUBST([VERSION], [$2])],
  124. [_AM_SET_OPTIONS([$1])dnl
  125. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  126. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  127. _AM_IF_OPTION([no-define],,
  128. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  129. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  130. # Some tools Automake needs.
  131. AC_REQUIRE([AM_SANITY_CHECK])dnl
  132. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  133. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  134. AM_MISSING_PROG(AUTOCONF, autoconf)
  135. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  136. AM_MISSING_PROG(AUTOHEADER, autoheader)
  137. AM_MISSING_PROG(MAKEINFO, makeinfo)
  138. AM_PROG_INSTALL_SH
  139. AM_PROG_INSTALL_STRIP
  140. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  141. # We need awk for the "check" target. The system "awk" is bad on
  142. # some platforms.
  143. AC_REQUIRE([AC_PROG_AWK])dnl
  144. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  145. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  146. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  147. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  148. [_AM_PROG_TAR([v7])])])
  149. _AM_IF_OPTION([no-dependencies],,
  150. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  151. [_AM_DEPENDENCIES(CC)],
  152. [define([AC_PROG_CC],
  153. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  154. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  155. [_AM_DEPENDENCIES(CXX)],
  156. [define([AC_PROG_CXX],
  157. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  158. ])
  159. ])
  160. # When config.status generates a header, we must update the stamp-h file.
  161. # This file resides in the same directory as the config header
  162. # that is generated. The stamp files are numbered to have different names.
  163. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  164. # loop where config.status creates the headers, so we can generate
  165. # our stamp files there.
  166. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  167. [# Compute $1's index in $config_headers.
  168. _am_stamp_count=1
  169. for _am_header in $config_headers :; do
  170. case $_am_header in
  171. $1 | $1:* )
  172. break ;;
  173. * )
  174. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  175. esac
  176. done
  177. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  178. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  179. #
  180. # This file is free software; the Free Software Foundation
  181. # gives unlimited permission to copy and/or distribute it,
  182. # with or without modifications, as long as this notice is preserved.
  183. # AM_PROG_INSTALL_SH
  184. # ------------------
  185. # Define $install_sh.
  186. AC_DEFUN([AM_PROG_INSTALL_SH],
  187. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  188. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  189. AC_SUBST(install_sh)])
  190. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  191. #
  192. # This file is free software; the Free Software Foundation
  193. # gives unlimited permission to copy and/or distribute it,
  194. # with or without modifications, as long as this notice is preserved.
  195. # serial 2
  196. # Check whether the underlying file-system supports filenames
  197. # with a leading dot. For instance MS-DOS doesn't.
  198. AC_DEFUN([AM_SET_LEADING_DOT],
  199. [rm -rf .tst 2>/dev/null
  200. mkdir .tst 2>/dev/null
  201. if test -d .tst; then
  202. am__leading_dot=.
  203. else
  204. am__leading_dot=_
  205. fi
  206. rmdir .tst 2>/dev/null
  207. AC_SUBST([am__leading_dot])])
  208. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  209. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  210. # Free Software Foundation, Inc.
  211. #
  212. # This file is free software; the Free Software Foundation
  213. # gives unlimited permission to copy and/or distribute it,
  214. # with or without modifications, as long as this notice is preserved.
  215. # serial 4
  216. # AM_MISSING_PROG(NAME, PROGRAM)
  217. # ------------------------------
  218. AC_DEFUN([AM_MISSING_PROG],
  219. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  220. $1=${$1-"${am_missing_run}$2"}
  221. AC_SUBST($1)])
  222. # AM_MISSING_HAS_RUN
  223. # ------------------
  224. # Define MISSING if not defined so far and test if it supports --run.
  225. # If it does, set am_missing_run to use it, otherwise, to nothing.
  226. AC_DEFUN([AM_MISSING_HAS_RUN],
  227. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  228. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  229. # Use eval to expand $SHELL
  230. if eval "$MISSING --run true"; then
  231. am_missing_run="$MISSING --run "
  232. else
  233. am_missing_run=
  234. AC_MSG_WARN([`missing' script is too old or missing])
  235. fi
  236. ])
  237. # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  238. #
  239. # This file is free software; the Free Software Foundation
  240. # gives unlimited permission to copy and/or distribute it,
  241. # with or without modifications, as long as this notice is preserved.
  242. # AM_PROG_MKDIR_P
  243. # ---------------
  244. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  245. #
  246. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  247. # created by `make install' are always world readable, even if the
  248. # installer happens to have an overly restrictive umask (e.g. 077).
  249. # This was a mistake. There are at least two reasons why we must not
  250. # use `-m 0755':
  251. # - it causes special bits like SGID to be ignored,
  252. # - it may be too restrictive (some setups expect 775 directories).
  253. #
  254. # Do not use -m 0755 and let people choose whatever they expect by
  255. # setting umask.
  256. #
  257. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  258. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  259. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  260. # concurrently, both version can detect that a/ is missing, but only
  261. # one can create it and the other will error out. Consequently we
  262. # restrict ourselves to GNU make (using the --version option ensures
  263. # this.)
  264. AC_DEFUN([AM_PROG_MKDIR_P],
  265. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  266. # We used to keeping the `.' as first argument, in order to
  267. # allow $(mkdir_p) to be used without argument. As in
  268. # $(mkdir_p) $(somedir)
  269. # where $(somedir) is conditionally defined. However this is wrong
  270. # for two reasons:
  271. # 1. if the package is installed by a user who cannot write `.'
  272. # make install will fail,
  273. # 2. the above comment should most certainly read
  274. # $(mkdir_p) $(DESTDIR)$(somedir)
  275. # so it does not work when $(somedir) is undefined and
  276. # $(DESTDIR) is not.
  277. # To support the latter case, we have to write
  278. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  279. # so the `.' trick is pointless.
  280. mkdir_p='mkdir -p --'
  281. else
  282. # On NextStep and OpenStep, the `mkdir' command does not
  283. # recognize any option. It will interpret all options as
  284. # directories to create, and then abort because `.' already
  285. # exists.
  286. for d in ./-p ./--version;
  287. do
  288. test -d $d && rmdir $d
  289. done
  290. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  291. if test -f "$ac_aux_dir/mkinstalldirs"; then
  292. mkdir_p='$(mkinstalldirs)'
  293. else
  294. mkdir_p='$(SHELL) $(install_sh) -d'
  295. fi
  296. fi
  297. AC_SUBST([mkdir_p])])
  298. # Helper functions for option handling. -*- Autoconf -*-
  299. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  300. #
  301. # This file is free software; the Free Software Foundation
  302. # gives unlimited permission to copy and/or distribute it,
  303. # with or without modifications, as long as this notice is preserved.
  304. # serial 3
  305. # _AM_MANGLE_OPTION(NAME)
  306. # -----------------------
  307. AC_DEFUN([_AM_MANGLE_OPTION],
  308. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  309. # _AM_SET_OPTION(NAME)
  310. # ------------------------------
  311. # Set option NAME. Presently that only means defining a flag for this option.
  312. AC_DEFUN([_AM_SET_OPTION],
  313. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  314. # _AM_SET_OPTIONS(OPTIONS)
  315. # ----------------------------------
  316. # OPTIONS is a space-separated list of Automake options.
  317. AC_DEFUN([_AM_SET_OPTIONS],
  318. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  319. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  320. # -------------------------------------------
  321. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  322. AC_DEFUN([_AM_IF_OPTION],
  323. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  324. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  325. #
  326. # This file is free software; the Free Software Foundation
  327. # gives unlimited permission to copy and/or distribute it,
  328. # with or without modifications, as long as this notice is preserved.
  329. # AM_PROG_INSTALL_STRIP
  330. # ---------------------
  331. # One issue with vendor `install' (even GNU) is that you can't
  332. # specify the program used to strip binaries. This is especially
  333. # annoying in cross-compiling environments, where the build's strip
  334. # is unlikely to handle the host's binaries.
  335. # Fortunately install-sh will honor a STRIPPROG variable, so we
  336. # always use install-sh in `make install-strip', and initialize
  337. # STRIPPROG with the value of the STRIP variable (set by the user).
  338. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  339. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  340. # Installed binaries are usually stripped using `strip' when the user
  341. # run `make install-strip'. However `strip' might not be the right
  342. # tool to use in cross-compilation environments, therefore Automake
  343. # will honor the `STRIP' environment variable to overrule this program.
  344. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  345. if test "$cross_compiling" != no; then
  346. AC_CHECK_TOOL([STRIP], [strip], :)
  347. fi
  348. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  349. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  350. # Check how to create a tarball. -*- Autoconf -*-
  351. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  352. #
  353. # This file is free software; the Free Software Foundation
  354. # gives unlimited permission to copy and/or distribute it,
  355. # with or without modifications, as long as this notice is preserved.
  356. # serial 2
  357. # _AM_PROG_TAR(FORMAT)
  358. # --------------------
  359. # Check how to create a tarball in format FORMAT.
  360. # FORMAT should be one of `v7', `ustar', or `pax'.
  361. #
  362. # Substitute a variable $(am__tar) that is a command
  363. # writing to stdout a FORMAT-tarball containing the directory
  364. # $tardir.
  365. # tardir=directory && $(am__tar) > result.tar
  366. #
  367. # Substitute a variable $(am__untar) that extract such
  368. # a tarball read from stdin.
  369. # $(am__untar) < result.tar
  370. AC_DEFUN([_AM_PROG_TAR],
  371. [# Always define AMTAR for backward compatibility.
  372. AM_MISSING_PROG([AMTAR], [tar])
  373. m4_if([$1], [v7],
  374. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  375. [m4_case([$1], [ustar],, [pax],,
  376. [m4_fatal([Unknown tar format])])
  377. AC_MSG_CHECKING([how to create a $1 tar archive])
  378. # Loop over all known methods to create a tar archive until one works.
  379. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  380. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  381. # Do not fold the above two line into one, because Tru64 sh and
  382. # Solaris sh will not grok spaces in the rhs of `-'.
  383. for _am_tool in $_am_tools
  384. do
  385. case $_am_tool in
  386. gnutar)
  387. for _am_tar in tar gnutar gtar;
  388. do
  389. AM_RUN_LOG([$_am_tar --version]) && break
  390. done
  391. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  392. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  393. am__untar="$_am_tar -xf -"
  394. ;;
  395. plaintar)
  396. # Must skip GNU tar: if it does not support --format= it doesn't create
  397. # ustar tarball either.
  398. (tar --version) >/dev/null 2>&1 && continue
  399. am__tar='tar chf - "$$tardir"'
  400. am__tar_='tar chf - "$tardir"'
  401. am__untar='tar xf -'
  402. ;;
  403. pax)
  404. am__tar='pax -L -x $1 -w "$$tardir"'
  405. am__tar_='pax -L -x $1 -w "$tardir"'
  406. am__untar='pax -r'
  407. ;;
  408. cpio)
  409. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  410. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  411. am__untar='cpio -i -H $1 -d'
  412. ;;
  413. none)
  414. am__tar=false
  415. am__tar_=false
  416. am__untar=false
  417. ;;
  418. esac
  419. # If the value was cached, stop now. We just wanted to have am__tar
  420. # and am__untar set.
  421. test -n "${am_cv_prog_tar_$1}" && break
  422. # tar/untar a dummy directory, and stop if the command works
  423. rm -rf conftest.dir
  424. mkdir conftest.dir
  425. echo GrepMe > conftest.dir/file
  426. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  427. rm -rf conftest.dir
  428. if test -s conftest.tar; then
  429. AM_RUN_LOG([$am__untar <conftest.tar])
  430. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  431. fi
  432. done
  433. rm -rf conftest.dir
  434. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  435. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  436. AC_SUBST([am__tar])
  437. AC_SUBST([am__untar])
  438. ]) # _AM_PROG_TAR
  439. dnl Copyright 2005 Red Hat, Inc
  440. dnl
  441. dnl Permission to use, copy, modify, distribute, and sell this software and its
  442. dnl documentation for any purpose is hereby granted without fee, provided that
  443. dnl the above copyright notice appear in all copies and that both that
  444. dnl copyright notice and this permission notice appear in supporting
  445. dnl documentation.
  446. dnl
  447. dnl The above copyright notice and this permission notice shall be included
  448. dnl in all copies or substantial portions of the Software.
  449. dnl
  450. dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  451. dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  452. dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  453. dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  454. dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  455. dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  456. dnl OTHER DEALINGS IN THE SOFTWARE.
  457. dnl
  458. dnl Except as contained in this notice, the name of the copyright holders shall
  459. dnl not be used in advertising or otherwise to promote the sale, use or
  460. dnl other dealings in this Software without prior written authorization
  461. dnl from the copyright holders.
  462. dnl
  463. # XORG_RELEASE_VERSION
  464. # --------------------
  465. # Adds --with/without-release-string and changes the PACKAGE and
  466. # PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
  467. # no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
  468. # defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
  469. AC_DEFUN([XORG_RELEASE_VERSION],[
  470. AC_ARG_WITH(release-version,
  471. AC_HELP_STRING([--with-release-version=STRING],
  472. [Use release version string in package name]),
  473. [RELEASE_VERSION="$withval"],
  474. [RELEASE_VERSION=""])
  475. if test "x$RELEASE_VERSION" != "x"; then
  476. PACKAGE="$PACKAGE-$RELEASE_VERSION"
  477. PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  478. AC_MSG_NOTICE([Building with package name set to $PACKAGE])
  479. fi
  480. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
  481. [`echo $PACKAGE_VERSION | cut -d . -f 1`],
  482. [Major version of this package])
  483. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
  484. if test "x$PVM" = "x"; then
  485. PVM="0"
  486. fi
  487. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
  488. [$PVM],
  489. [Minor version of this package])
  490. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
  491. if test "x$PVP" = "x"; then
  492. PVP="0"
  493. fi
  494. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
  495. [$PVP],
  496. [Patch version of this package])
  497. ])