aclocal.m4 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  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. # AM_CONDITIONAL -*- Autoconf -*-
  77. # Copyright (C) 1997, 2000, 2001, 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 7
  84. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  85. # -------------------------------------
  86. # Define a conditional.
  87. AC_DEFUN([AM_CONDITIONAL],
  88. [AC_PREREQ(2.52)dnl
  89. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  90. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  91. AC_SUBST([$1_TRUE])
  92. AC_SUBST([$1_FALSE])
  93. if $2; then
  94. $1_TRUE=
  95. $1_FALSE='#'
  96. else
  97. $1_TRUE='#'
  98. $1_FALSE=
  99. fi
  100. AC_CONFIG_COMMANDS_PRE(
  101. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  102. AC_MSG_ERROR([[conditional "$1" was never defined.
  103. Usually this means the macro was only invoked conditionally.]])
  104. fi])])
  105. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  106. # Free Software Foundation, Inc.
  107. #
  108. # This file is free software; the Free Software Foundation
  109. # gives unlimited permission to copy and/or distribute it,
  110. # with or without modifications, as long as this notice is preserved.
  111. # serial 8
  112. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  113. # written in clear, in which case automake, when reading aclocal.m4,
  114. # will think it sees a *use*, and therefore will trigger all it's
  115. # C support machinery. Also note that it means that autoscan, seeing
  116. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  117. # _AM_DEPENDENCIES(NAME)
  118. # ----------------------
  119. # See how the compiler implements dependency checking.
  120. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  121. # We try a few techniques and use that to set a single cache variable.
  122. #
  123. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  124. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  125. # dependency, and given that the user is not expected to run this macro,
  126. # just rely on AC_PROG_CC.
  127. AC_DEFUN([_AM_DEPENDENCIES],
  128. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  129. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  130. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  131. AC_REQUIRE([AM_DEP_TRACK])dnl
  132. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  133. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  134. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  135. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  136. [depcc="$$1" am_compiler_list=])
  137. AC_CACHE_CHECK([dependency style of $depcc],
  138. [am_cv_$1_dependencies_compiler_type],
  139. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  140. # We make a subdir and do the tests there. Otherwise we can end up
  141. # making bogus files that we don't know about and never remove. For
  142. # instance it was reported that on HP-UX the gcc test will end up
  143. # making a dummy file named `D' -- because `-MD' means `put the output
  144. # in D'.
  145. mkdir conftest.dir
  146. # Copy depcomp to subdir because otherwise we won't find it if we're
  147. # using a relative directory.
  148. cp "$am_depcomp" conftest.dir
  149. cd conftest.dir
  150. # We will build objects and dependencies in a subdirectory because
  151. # it helps to detect inapplicable dependency modes. For instance
  152. # both Tru64's cc and ICC support -MD to output dependencies as a
  153. # side effect of compilation, but ICC will put the dependencies in
  154. # the current directory while Tru64 will put them in the object
  155. # directory.
  156. mkdir sub
  157. am_cv_$1_dependencies_compiler_type=none
  158. if test "$am_compiler_list" = ""; then
  159. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  160. fi
  161. for depmode in $am_compiler_list; do
  162. # Setup a source with many dependencies, because some compilers
  163. # like to wrap large dependency lists on column 80 (with \), and
  164. # we should not choose a depcomp mode which is confused by this.
  165. #
  166. # We need to recreate these files for each test, as the compiler may
  167. # overwrite some of them when testing with obscure command lines.
  168. # This happens at least with the AIX C compiler.
  169. : > sub/conftest.c
  170. for i in 1 2 3 4 5 6; do
  171. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  172. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  173. # Solaris 8's {/usr,}/bin/sh.
  174. touch sub/conftst$i.h
  175. done
  176. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  177. case $depmode in
  178. nosideeffect)
  179. # after this tag, mechanisms are not by side-effect, so they'll
  180. # only be used when explicitly requested
  181. if test "x$enable_dependency_tracking" = xyes; then
  182. continue
  183. else
  184. break
  185. fi
  186. ;;
  187. none) break ;;
  188. esac
  189. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  190. # mode. It turns out that the SunPro C++ compiler does not properly
  191. # handle `-M -o', and we need to detect this.
  192. if depmode=$depmode \
  193. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  194. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  195. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  196. >/dev/null 2>conftest.err &&
  197. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  198. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  199. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  200. # icc doesn't choke on unknown options, it will just issue warnings
  201. # or remarks (even with -Werror). So we grep stderr for any message
  202. # that says an option was ignored or not supported.
  203. # When given -MP, icc 7.0 and 7.1 complain thusly:
  204. # icc: Command line warning: ignoring option '-M'; no argument required
  205. # The diagnosis changed in icc 8.0:
  206. # icc: Command line remark: option '-MP' not supported
  207. if (grep 'ignoring option' conftest.err ||
  208. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  209. am_cv_$1_dependencies_compiler_type=$depmode
  210. break
  211. fi
  212. fi
  213. done
  214. cd ..
  215. rm -rf conftest.dir
  216. else
  217. am_cv_$1_dependencies_compiler_type=none
  218. fi
  219. ])
  220. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  221. AM_CONDITIONAL([am__fastdep$1], [
  222. test "x$enable_dependency_tracking" != xno \
  223. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  224. ])
  225. # AM_SET_DEPDIR
  226. # -------------
  227. # Choose a directory name for dependency files.
  228. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  229. AC_DEFUN([AM_SET_DEPDIR],
  230. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  231. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  232. ])
  233. # AM_DEP_TRACK
  234. # ------------
  235. AC_DEFUN([AM_DEP_TRACK],
  236. [AC_ARG_ENABLE(dependency-tracking,
  237. [ --disable-dependency-tracking speeds up one-time build
  238. --enable-dependency-tracking do not reject slow dependency extractors])
  239. if test "x$enable_dependency_tracking" != xno; then
  240. am_depcomp="$ac_aux_dir/depcomp"
  241. AMDEPBACKSLASH='\'
  242. fi
  243. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  244. AC_SUBST([AMDEPBACKSLASH])
  245. ])
  246. # Generate code to set up dependency tracking. -*- Autoconf -*-
  247. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  248. # Free Software Foundation, Inc.
  249. #
  250. # This file is free software; the Free Software Foundation
  251. # gives unlimited permission to copy and/or distribute it,
  252. # with or without modifications, as long as this notice is preserved.
  253. #serial 3
  254. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  255. # ------------------------------
  256. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  257. [for mf in $CONFIG_FILES; do
  258. # Strip MF so we end up with the name of the file.
  259. mf=`echo "$mf" | sed -e 's/:.*$//'`
  260. # Check whether this is an Automake generated Makefile or not.
  261. # We used to match only the files named `Makefile.in', but
  262. # some people rename them; so instead we look at the file content.
  263. # Grep'ing the first line is not enough: some people post-process
  264. # each Makefile.in and add a new line on top of each file to say so.
  265. # So let's grep whole file.
  266. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  267. dirpart=`AS_DIRNAME("$mf")`
  268. else
  269. continue
  270. fi
  271. # Extract the definition of DEPDIR, am__include, and am__quote
  272. # from the Makefile without running `make'.
  273. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  274. test -z "$DEPDIR" && continue
  275. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  276. test -z "am__include" && continue
  277. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  278. # When using ansi2knr, U may be empty or an underscore; expand it
  279. U=`sed -n 's/^U = //p' < "$mf"`
  280. # Find all dependency output files, they are included files with
  281. # $(DEPDIR) in their names. We invoke sed twice because it is the
  282. # simplest approach to changing $(DEPDIR) to its actual value in the
  283. # expansion.
  284. for file in `sed -n "
  285. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  286. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  287. # Make sure the directory exists.
  288. test -f "$dirpart/$file" && continue
  289. fdir=`AS_DIRNAME(["$file"])`
  290. AS_MKDIR_P([$dirpart/$fdir])
  291. # echo "creating $dirpart/$file"
  292. echo '# dummy' > "$dirpart/$file"
  293. done
  294. done
  295. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  296. # AM_OUTPUT_DEPENDENCY_COMMANDS
  297. # -----------------------------
  298. # This macro should only be invoked once -- use via AC_REQUIRE.
  299. #
  300. # This code is only required when automatic dependency tracking
  301. # is enabled. FIXME. This creates each `.P' file that we will
  302. # need in order to bootstrap the dependency handling code.
  303. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  304. [AC_CONFIG_COMMANDS([depfiles],
  305. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  306. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  307. ])
  308. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  309. # Free Software Foundation, Inc.
  310. #
  311. # This file is free software; the Free Software Foundation
  312. # gives unlimited permission to copy and/or distribute it,
  313. # with or without modifications, as long as this notice is preserved.
  314. # serial 8
  315. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  316. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  317. # Do all the work for Automake. -*- Autoconf -*-
  318. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  319. # Free Software Foundation, Inc.
  320. #
  321. # This file is free software; the Free Software Foundation
  322. # gives unlimited permission to copy and/or distribute it,
  323. # with or without modifications, as long as this notice is preserved.
  324. # serial 12
  325. # This macro actually does too much. Some checks are only needed if
  326. # your package does certain things. But this isn't really a big deal.
  327. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  328. # AM_INIT_AUTOMAKE([OPTIONS])
  329. # -----------------------------------------------
  330. # The call with PACKAGE and VERSION arguments is the old style
  331. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  332. # and VERSION should now be passed to AC_INIT and removed from
  333. # the call to AM_INIT_AUTOMAKE.
  334. # We support both call styles for the transition. After
  335. # the next Automake release, Autoconf can make the AC_INIT
  336. # arguments mandatory, and then we can depend on a new Autoconf
  337. # release and drop the old call support.
  338. AC_DEFUN([AM_INIT_AUTOMAKE],
  339. [AC_PREREQ([2.58])dnl
  340. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  341. dnl the ones we care about.
  342. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  343. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  344. AC_REQUIRE([AC_PROG_INSTALL])dnl
  345. # test to see if srcdir already configured
  346. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  347. test -f $srcdir/config.status; then
  348. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  349. fi
  350. # test whether we have cygpath
  351. if test -z "$CYGPATH_W"; then
  352. if (cygpath --version) >/dev/null 2>/dev/null; then
  353. CYGPATH_W='cygpath -w'
  354. else
  355. CYGPATH_W=echo
  356. fi
  357. fi
  358. AC_SUBST([CYGPATH_W])
  359. # Define the identity of the package.
  360. dnl Distinguish between old-style and new-style calls.
  361. m4_ifval([$2],
  362. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  363. AC_SUBST([PACKAGE], [$1])dnl
  364. AC_SUBST([VERSION], [$2])],
  365. [_AM_SET_OPTIONS([$1])dnl
  366. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  367. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  368. _AM_IF_OPTION([no-define],,
  369. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  370. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  371. # Some tools Automake needs.
  372. AC_REQUIRE([AM_SANITY_CHECK])dnl
  373. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  374. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  375. AM_MISSING_PROG(AUTOCONF, autoconf)
  376. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  377. AM_MISSING_PROG(AUTOHEADER, autoheader)
  378. AM_MISSING_PROG(MAKEINFO, makeinfo)
  379. AM_PROG_INSTALL_SH
  380. AM_PROG_INSTALL_STRIP
  381. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  382. # We need awk for the "check" target. The system "awk" is bad on
  383. # some platforms.
  384. AC_REQUIRE([AC_PROG_AWK])dnl
  385. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  386. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  387. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  388. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  389. [_AM_PROG_TAR([v7])])])
  390. _AM_IF_OPTION([no-dependencies],,
  391. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  392. [_AM_DEPENDENCIES(CC)],
  393. [define([AC_PROG_CC],
  394. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  395. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  396. [_AM_DEPENDENCIES(CXX)],
  397. [define([AC_PROG_CXX],
  398. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  399. ])
  400. ])
  401. # When config.status generates a header, we must update the stamp-h file.
  402. # This file resides in the same directory as the config header
  403. # that is generated. The stamp files are numbered to have different names.
  404. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  405. # loop where config.status creates the headers, so we can generate
  406. # our stamp files there.
  407. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  408. [# Compute $1's index in $config_headers.
  409. _am_stamp_count=1
  410. for _am_header in $config_headers :; do
  411. case $_am_header in
  412. $1 | $1:* )
  413. break ;;
  414. * )
  415. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  416. esac
  417. done
  418. echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  419. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  420. #
  421. # This file is free software; the Free Software Foundation
  422. # gives unlimited permission to copy and/or distribute it,
  423. # with or without modifications, as long as this notice is preserved.
  424. # AM_PROG_INSTALL_SH
  425. # ------------------
  426. # Define $install_sh.
  427. AC_DEFUN([AM_PROG_INSTALL_SH],
  428. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  429. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  430. AC_SUBST(install_sh)])
  431. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  432. #
  433. # This file is free software; the Free Software Foundation
  434. # gives unlimited permission to copy and/or distribute it,
  435. # with or without modifications, as long as this notice is preserved.
  436. # serial 2
  437. # Check whether the underlying file-system supports filenames
  438. # with a leading dot. For instance MS-DOS doesn't.
  439. AC_DEFUN([AM_SET_LEADING_DOT],
  440. [rm -rf .tst 2>/dev/null
  441. mkdir .tst 2>/dev/null
  442. if test -d .tst; then
  443. am__leading_dot=.
  444. else
  445. am__leading_dot=_
  446. fi
  447. rmdir .tst 2>/dev/null
  448. AC_SUBST([am__leading_dot])])
  449. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  450. # From Jim Meyering
  451. # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  452. # Free Software Foundation, Inc.
  453. #
  454. # This file is free software; the Free Software Foundation
  455. # gives unlimited permission to copy and/or distribute it,
  456. # with or without modifications, as long as this notice is preserved.
  457. # serial 4
  458. AC_DEFUN([AM_MAINTAINER_MODE],
  459. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  460. dnl maintainer-mode is disabled by default
  461. AC_ARG_ENABLE(maintainer-mode,
  462. [ --enable-maintainer-mode enable make rules and dependencies not useful
  463. (and sometimes confusing) to the casual installer],
  464. USE_MAINTAINER_MODE=$enableval,
  465. USE_MAINTAINER_MODE=no)
  466. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  467. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  468. MAINT=$MAINTAINER_MODE_TRUE
  469. AC_SUBST(MAINT)dnl
  470. ]
  471. )
  472. AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
  473. # Check to see how 'make' treats includes. -*- Autoconf -*-
  474. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  475. #
  476. # This file is free software; the Free Software Foundation
  477. # gives unlimited permission to copy and/or distribute it,
  478. # with or without modifications, as long as this notice is preserved.
  479. # serial 3
  480. # AM_MAKE_INCLUDE()
  481. # -----------------
  482. # Check to see how make treats includes.
  483. AC_DEFUN([AM_MAKE_INCLUDE],
  484. [am_make=${MAKE-make}
  485. cat > confinc << 'END'
  486. am__doit:
  487. @echo done
  488. .PHONY: am__doit
  489. END
  490. # If we don't find an include directive, just comment out the code.
  491. AC_MSG_CHECKING([for style of include used by $am_make])
  492. am__include="#"
  493. am__quote=
  494. _am_result=none
  495. # First try GNU make style include.
  496. echo "include confinc" > confmf
  497. # We grep out `Entering directory' and `Leaving directory'
  498. # messages which can occur if `w' ends up in MAKEFLAGS.
  499. # In particular we don't look at `^make:' because GNU make might
  500. # be invoked under some other name (usually "gmake"), in which
  501. # case it prints its new name instead of `make'.
  502. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  503. am__include=include
  504. am__quote=
  505. _am_result=GNU
  506. fi
  507. # Now try BSD make style include.
  508. if test "$am__include" = "#"; then
  509. echo '.include "confinc"' > confmf
  510. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  511. am__include=.include
  512. am__quote="\""
  513. _am_result=BSD
  514. fi
  515. fi
  516. AC_SUBST([am__include])
  517. AC_SUBST([am__quote])
  518. AC_MSG_RESULT([$_am_result])
  519. rm -f confinc confmf
  520. ])
  521. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  522. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  523. # Free Software Foundation, Inc.
  524. #
  525. # This file is free software; the Free Software Foundation
  526. # gives unlimited permission to copy and/or distribute it,
  527. # with or without modifications, as long as this notice is preserved.
  528. # serial 4
  529. # AM_MISSING_PROG(NAME, PROGRAM)
  530. # ------------------------------
  531. AC_DEFUN([AM_MISSING_PROG],
  532. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  533. $1=${$1-"${am_missing_run}$2"}
  534. AC_SUBST($1)])
  535. # AM_MISSING_HAS_RUN
  536. # ------------------
  537. # Define MISSING if not defined so far and test if it supports --run.
  538. # If it does, set am_missing_run to use it, otherwise, to nothing.
  539. AC_DEFUN([AM_MISSING_HAS_RUN],
  540. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  541. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  542. # Use eval to expand $SHELL
  543. if eval "$MISSING --run true"; then
  544. am_missing_run="$MISSING --run "
  545. else
  546. am_missing_run=
  547. AC_MSG_WARN([`missing' script is too old or missing])
  548. fi
  549. ])
  550. # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  551. #
  552. # This file is free software; the Free Software Foundation
  553. # gives unlimited permission to copy and/or distribute it,
  554. # with or without modifications, as long as this notice is preserved.
  555. # AM_PROG_MKDIR_P
  556. # ---------------
  557. # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  558. #
  559. # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  560. # created by `make install' are always world readable, even if the
  561. # installer happens to have an overly restrictive umask (e.g. 077).
  562. # This was a mistake. There are at least two reasons why we must not
  563. # use `-m 0755':
  564. # - it causes special bits like SGID to be ignored,
  565. # - it may be too restrictive (some setups expect 775 directories).
  566. #
  567. # Do not use -m 0755 and let people choose whatever they expect by
  568. # setting umask.
  569. #
  570. # We cannot accept any implementation of `mkdir' that recognizes `-p'.
  571. # Some implementations (such as Solaris 8's) are not thread-safe: if a
  572. # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  573. # concurrently, both version can detect that a/ is missing, but only
  574. # one can create it and the other will error out. Consequently we
  575. # restrict ourselves to GNU make (using the --version option ensures
  576. # this.)
  577. AC_DEFUN([AM_PROG_MKDIR_P],
  578. [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  579. # We used to keeping the `.' as first argument, in order to
  580. # allow $(mkdir_p) to be used without argument. As in
  581. # $(mkdir_p) $(somedir)
  582. # where $(somedir) is conditionally defined. However this is wrong
  583. # for two reasons:
  584. # 1. if the package is installed by a user who cannot write `.'
  585. # make install will fail,
  586. # 2. the above comment should most certainly read
  587. # $(mkdir_p) $(DESTDIR)$(somedir)
  588. # so it does not work when $(somedir) is undefined and
  589. # $(DESTDIR) is not.
  590. # To support the latter case, we have to write
  591. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  592. # so the `.' trick is pointless.
  593. mkdir_p='mkdir -p --'
  594. else
  595. # On NextStep and OpenStep, the `mkdir' command does not
  596. # recognize any option. It will interpret all options as
  597. # directories to create, and then abort because `.' already
  598. # exists.
  599. for d in ./-p ./--version;
  600. do
  601. test -d $d && rmdir $d
  602. done
  603. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  604. if test -f "$ac_aux_dir/mkinstalldirs"; then
  605. mkdir_p='$(mkinstalldirs)'
  606. else
  607. mkdir_p='$(SHELL) $(install_sh) -d'
  608. fi
  609. fi
  610. AC_SUBST([mkdir_p])])
  611. # Helper functions for option handling. -*- Autoconf -*-
  612. # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  613. #
  614. # This file is free software; the Free Software Foundation
  615. # gives unlimited permission to copy and/or distribute it,
  616. # with or without modifications, as long as this notice is preserved.
  617. # serial 3
  618. # _AM_MANGLE_OPTION(NAME)
  619. # -----------------------
  620. AC_DEFUN([_AM_MANGLE_OPTION],
  621. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  622. # _AM_SET_OPTION(NAME)
  623. # ------------------------------
  624. # Set option NAME. Presently that only means defining a flag for this option.
  625. AC_DEFUN([_AM_SET_OPTION],
  626. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  627. # _AM_SET_OPTIONS(OPTIONS)
  628. # ----------------------------------
  629. # OPTIONS is a space-separated list of Automake options.
  630. AC_DEFUN([_AM_SET_OPTIONS],
  631. [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  632. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  633. # -------------------------------------------
  634. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  635. AC_DEFUN([_AM_IF_OPTION],
  636. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  637. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  638. #
  639. # This file is free software; the Free Software Foundation
  640. # gives unlimited permission to copy and/or distribute it,
  641. # with or without modifications, as long as this notice is preserved.
  642. # AM_PROG_INSTALL_STRIP
  643. # ---------------------
  644. # One issue with vendor `install' (even GNU) is that you can't
  645. # specify the program used to strip binaries. This is especially
  646. # annoying in cross-compiling environments, where the build's strip
  647. # is unlikely to handle the host's binaries.
  648. # Fortunately install-sh will honor a STRIPPROG variable, so we
  649. # always use install-sh in `make install-strip', and initialize
  650. # STRIPPROG with the value of the STRIP variable (set by the user).
  651. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  652. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  653. # Installed binaries are usually stripped using `strip' when the user
  654. # run `make install-strip'. However `strip' might not be the right
  655. # tool to use in cross-compilation environments, therefore Automake
  656. # will honor the `STRIP' environment variable to overrule this program.
  657. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  658. if test "$cross_compiling" != no; then
  659. AC_CHECK_TOOL([STRIP], [strip], :)
  660. fi
  661. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  662. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  663. # Check how to create a tarball. -*- Autoconf -*-
  664. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  665. #
  666. # This file is free software; the Free Software Foundation
  667. # gives unlimited permission to copy and/or distribute it,
  668. # with or without modifications, as long as this notice is preserved.
  669. # serial 2
  670. # _AM_PROG_TAR(FORMAT)
  671. # --------------------
  672. # Check how to create a tarball in format FORMAT.
  673. # FORMAT should be one of `v7', `ustar', or `pax'.
  674. #
  675. # Substitute a variable $(am__tar) that is a command
  676. # writing to stdout a FORMAT-tarball containing the directory
  677. # $tardir.
  678. # tardir=directory && $(am__tar) > result.tar
  679. #
  680. # Substitute a variable $(am__untar) that extract such
  681. # a tarball read from stdin.
  682. # $(am__untar) < result.tar
  683. AC_DEFUN([_AM_PROG_TAR],
  684. [# Always define AMTAR for backward compatibility.
  685. AM_MISSING_PROG([AMTAR], [tar])
  686. m4_if([$1], [v7],
  687. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  688. [m4_case([$1], [ustar],, [pax],,
  689. [m4_fatal([Unknown tar format])])
  690. AC_MSG_CHECKING([how to create a $1 tar archive])
  691. # Loop over all known methods to create a tar archive until one works.
  692. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  693. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  694. # Do not fold the above two line into one, because Tru64 sh and
  695. # Solaris sh will not grok spaces in the rhs of `-'.
  696. for _am_tool in $_am_tools
  697. do
  698. case $_am_tool in
  699. gnutar)
  700. for _am_tar in tar gnutar gtar;
  701. do
  702. AM_RUN_LOG([$_am_tar --version]) && break
  703. done
  704. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  705. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  706. am__untar="$_am_tar -xf -"
  707. ;;
  708. plaintar)
  709. # Must skip GNU tar: if it does not support --format= it doesn't create
  710. # ustar tarball either.
  711. (tar --version) >/dev/null 2>&1 && continue
  712. am__tar='tar chf - "$$tardir"'
  713. am__tar_='tar chf - "$tardir"'
  714. am__untar='tar xf -'
  715. ;;
  716. pax)
  717. am__tar='pax -L -x $1 -w "$$tardir"'
  718. am__tar_='pax -L -x $1 -w "$tardir"'
  719. am__untar='pax -r'
  720. ;;
  721. cpio)
  722. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  723. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  724. am__untar='cpio -i -H $1 -d'
  725. ;;
  726. none)
  727. am__tar=false
  728. am__tar_=false
  729. am__untar=false
  730. ;;
  731. esac
  732. # If the value was cached, stop now. We just wanted to have am__tar
  733. # and am__untar set.
  734. test -n "${am_cv_prog_tar_$1}" && break
  735. # tar/untar a dummy directory, and stop if the command works
  736. rm -rf conftest.dir
  737. mkdir conftest.dir
  738. echo GrepMe > conftest.dir/file
  739. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  740. rm -rf conftest.dir
  741. if test -s conftest.tar; then
  742. AM_RUN_LOG([$am__untar <conftest.tar])
  743. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  744. fi
  745. done
  746. rm -rf conftest.dir
  747. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  748. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  749. AC_SUBST([am__tar])
  750. AC_SUBST([am__untar])
  751. ]) # _AM_PROG_TAR
  752. dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
  753. dnl
  754. dnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved.
  755. dnl
  756. dnl Permission is hereby granted, free of charge, to any person obtaining a
  757. dnl copy of this software and associated documentation files (the
  758. dnl "Software"), to deal in the Software without restriction, including
  759. dnl without limitation the rights to use, copy, modify, merge, publish,
  760. dnl distribute, and/or sell copies of the Software, and to permit persons
  761. dnl to whom the Software is furnished to do so, provided that the above
  762. dnl copyright notice(s) and this permission notice appear in all copies of
  763. dnl the Software and that both the above copyright notice(s) and this
  764. dnl permission notice appear in supporting documentation.
  765. dnl
  766. dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  767. dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  768. dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
  769. dnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  770. dnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
  771. dnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
  772. dnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  773. dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  774. dnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  775. dnl
  776. dnl Except as contained in this notice, the name of a copyright holder
  777. dnl shall not be used in advertising or otherwise to promote the sale, use
  778. dnl or other dealings in this Software without prior written authorization
  779. dnl of the copyright holder.
  780. # XORG_MACROS_VERSION(required-version)
  781. # -------------------------------------
  782. # Minimum version: 1.1.0
  783. #
  784. # If you're using a macro added in Version 1.1 or newer, include this in
  785. # your configure.ac with the minimum required version, such as:
  786. # XORG_MACROS_VERSION(1.1)
  787. #
  788. # To ensure that this macro is defined, also add:
  789. # m4_ifndef([XORG_MACROS_VERSION],
  790. # [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
  791. #
  792. #
  793. # See the "minimum version" comment for each macro you use to see what
  794. # version you require.
  795. m4_defun([XORG_MACROS_VERSION],[
  796. m4_define([vers_have], [1.3.0])
  797. m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
  798. m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
  799. m4_if(m4_cmp(maj_have, maj_needed), 0,,
  800. [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
  801. m4_if(m4_version_compare(vers_have, [$1]), -1,
  802. [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
  803. m4_undefine([vers_have])
  804. m4_undefine([maj_have])
  805. m4_undefine([maj_needed])
  806. ]) # XORG_MACROS_VERSION
  807. # XORG_PROG_RAWCPP()
  808. # ------------------
  809. # Minimum version: 1.0.0
  810. #
  811. # Find cpp program and necessary flags for use in pre-processing text files
  812. # such as man pages and config files
  813. AC_DEFUN([XORG_PROG_RAWCPP],[
  814. AC_REQUIRE([AC_PROG_CPP])
  815. AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
  816. [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
  817. # Check for flag to avoid builtin definitions - assumes unix is predefined,
  818. # which is not the best choice for supporting other OS'es, but covers most
  819. # of the ones we need for now.
  820. AC_MSG_CHECKING([if $RAWCPP requires -undef])
  821. AC_LANG_CONFTEST([Does cpp redefine unix ?])
  822. if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  823. AC_MSG_RESULT([no])
  824. else
  825. if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  826. RAWCPPFLAGS=-undef
  827. AC_MSG_RESULT([yes])
  828. # under Cygwin unix is still defined even with -undef
  829. elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
  830. RAWCPPFLAGS="-undef -ansi"
  831. AC_MSG_RESULT([yes, with -ansi])
  832. else
  833. AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
  834. fi
  835. fi
  836. rm -f conftest.$ac_ext
  837. AC_MSG_CHECKING([if $RAWCPP requires -traditional])
  838. AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
  839. if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  840. AC_MSG_RESULT([no])
  841. else
  842. if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
  843. RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
  844. AC_MSG_RESULT([yes])
  845. else
  846. AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
  847. fi
  848. fi
  849. rm -f conftest.$ac_ext
  850. AC_SUBST(RAWCPPFLAGS)
  851. ]) # XORG_PROG_RAWCPP
  852. # XORG_MANPAGE_SECTIONS()
  853. # -----------------------
  854. # Minimum version: 1.0.0
  855. #
  856. # Determine which sections man pages go in for the different man page types
  857. # on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
  858. # Not sure if there's any better way than just hardcoding by OS name.
  859. # Override default settings by setting environment variables
  860. AC_DEFUN([XORG_MANPAGE_SECTIONS],[
  861. AC_REQUIRE([AC_CANONICAL_HOST])
  862. if test x$APP_MAN_SUFFIX = x ; then
  863. APP_MAN_SUFFIX=1
  864. fi
  865. if test x$APP_MAN_DIR = x ; then
  866. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  867. fi
  868. if test x$LIB_MAN_SUFFIX = x ; then
  869. LIB_MAN_SUFFIX=3
  870. fi
  871. if test x$LIB_MAN_DIR = x ; then
  872. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  873. fi
  874. if test x$FILE_MAN_SUFFIX = x ; then
  875. case $host_os in
  876. solaris*) FILE_MAN_SUFFIX=4 ;;
  877. *) FILE_MAN_SUFFIX=5 ;;
  878. esac
  879. fi
  880. if test x$FILE_MAN_DIR = x ; then
  881. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  882. fi
  883. if test x$MISC_MAN_SUFFIX = x ; then
  884. case $host_os in
  885. solaris*) MISC_MAN_SUFFIX=5 ;;
  886. *) MISC_MAN_SUFFIX=7 ;;
  887. esac
  888. fi
  889. if test x$MISC_MAN_DIR = x ; then
  890. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  891. fi
  892. if test x$DRIVER_MAN_SUFFIX = x ; then
  893. case $host_os in
  894. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  895. *) DRIVER_MAN_SUFFIX=4 ;;
  896. esac
  897. fi
  898. if test x$DRIVER_MAN_DIR = x ; then
  899. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  900. fi
  901. if test x$ADMIN_MAN_SUFFIX = x ; then
  902. case $host_os in
  903. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  904. *) ADMIN_MAN_SUFFIX=8 ;;
  905. esac
  906. fi
  907. if test x$ADMIN_MAN_DIR = x ; then
  908. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  909. fi
  910. AC_SUBST([APP_MAN_SUFFIX])
  911. AC_SUBST([LIB_MAN_SUFFIX])
  912. AC_SUBST([FILE_MAN_SUFFIX])
  913. AC_SUBST([MISC_MAN_SUFFIX])
  914. AC_SUBST([DRIVER_MAN_SUFFIX])
  915. AC_SUBST([ADMIN_MAN_SUFFIX])
  916. AC_SUBST([APP_MAN_DIR])
  917. AC_SUBST([LIB_MAN_DIR])
  918. AC_SUBST([FILE_MAN_DIR])
  919. AC_SUBST([MISC_MAN_DIR])
  920. AC_SUBST([DRIVER_MAN_DIR])
  921. AC_SUBST([ADMIN_MAN_DIR])
  922. ]) # XORG_MANPAGE_SECTIONS
  923. # XORG_CHECK_LINUXDOC
  924. # -------------------
  925. # Minimum version: 1.0.0
  926. #
  927. # Defines the variable MAKE_TEXT if the necessary tools and
  928. # files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
  929. # Whether or not the necessary tools and files are found can be checked
  930. # with the AM_CONDITIONAL "BUILD_LINUXDOC"
  931. AC_DEFUN([XORG_CHECK_LINUXDOC],[
  932. if test x$XORG_SGML_PATH = x ; then
  933. XORG_SGML_PATH=$prefix/share/sgml
  934. fi
  935. HAVE_DEFS_ENT=
  936. if test x"$cross_compiling" = x"yes" ; then
  937. HAVE_DEFS_ENT=no
  938. else
  939. AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  940. fi
  941. AC_PATH_PROG(LINUXDOC, linuxdoc)
  942. AC_PATH_PROG(PS2PDF, ps2pdf)
  943. AC_MSG_CHECKING([Whether to build documentation])
  944. if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
  945. BUILDDOC=yes
  946. else
  947. BUILDDOC=no
  948. fi
  949. AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
  950. AC_MSG_RESULT([$BUILDDOC])
  951. AC_MSG_CHECKING([Whether to build pdf documentation])
  952. if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
  953. BUILDPDFDOC=yes
  954. else
  955. BUILDPDFDOC=no
  956. fi
  957. AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  958. AC_MSG_RESULT([$BUILDPDFDOC])
  959. MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
  960. MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
  961. MAKE_PDF="$PS2PDF"
  962. MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
  963. AC_SUBST(MAKE_TEXT)
  964. AC_SUBST(MAKE_PS)
  965. AC_SUBST(MAKE_PDF)
  966. AC_SUBST(MAKE_HTML)
  967. ]) # XORG_CHECK_LINUXDOC
  968. # XORG_CHECK_DOCBOOK
  969. # -------------------
  970. # Minimum version: 1.0.0
  971. #
  972. # Checks for the ability to build output formats from SGML DocBook source.
  973. # For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
  974. # indicates whether the necessary tools and files are found and, if set,
  975. # $(MAKE_XXX) blah.sgml will produce blah.xxx.
  976. AC_DEFUN([XORG_CHECK_DOCBOOK],[
  977. if test x$XORG_SGML_PATH = x ; then
  978. XORG_SGML_PATH=$prefix/share/sgml
  979. fi
  980. HAVE_DEFS_ENT=
  981. BUILDTXTDOC=no
  982. BUILDPDFDOC=no
  983. BUILDPSDOC=no
  984. BUILDHTMLDOC=no
  985. AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes])
  986. AC_PATH_PROG(DOCBOOKPS, docbook2ps)
  987. AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
  988. AC_PATH_PROG(DOCBOOKHTML, docbook2html)
  989. AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
  990. AC_MSG_CHECKING([Whether to build text documentation])
  991. if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x &&
  992. test x$BUILD_TXTDOC != xno; then
  993. BUILDTXTDOC=yes
  994. fi
  995. AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
  996. AC_MSG_RESULT([$BUILDTXTDOC])
  997. AC_MSG_CHECKING([Whether to build PDF documentation])
  998. if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x &&
  999. test x$BUILD_PDFDOC != xno; then
  1000. BUILDPDFDOC=yes
  1001. fi
  1002. AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
  1003. AC_MSG_RESULT([$BUILDPDFDOC])
  1004. AC_MSG_CHECKING([Whether to build PostScript documentation])
  1005. if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x &&
  1006. test x$BUILD_PSDOC != xno; then
  1007. BUILDPSDOC=yes
  1008. fi
  1009. AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
  1010. AC_MSG_RESULT([$BUILDPSDOC])
  1011. AC_MSG_CHECKING([Whether to build HTML documentation])
  1012. if test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x &&
  1013. test x$BUILD_HTMLDOC != xno; then
  1014. BUILDHTMLDOC=yes
  1015. fi
  1016. AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
  1017. AC_MSG_RESULT([$BUILDHTMLDOC])
  1018. MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
  1019. MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
  1020. MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
  1021. MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
  1022. AC_SUBST(MAKE_TEXT)
  1023. AC_SUBST(MAKE_PS)
  1024. AC_SUBST(MAKE_PDF)
  1025. AC_SUBST(MAKE_HTML)
  1026. ]) # XORG_CHECK_DOCBOOK
  1027. # XORG_CHECK_MALLOC_ZERO
  1028. # ----------------------
  1029. # Minimum version: 1.0.0
  1030. #
  1031. # Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
  1032. # malloc(0) returns NULL. Packages should add one of these cflags to
  1033. # their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
  1034. AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
  1035. AC_ARG_ENABLE(malloc0returnsnull,
  1036. AS_HELP_STRING([--enable-malloc0returnsnull],
  1037. [malloc(0) returns NULL (default: auto)]),
  1038. [MALLOC_ZERO_RETURNS_NULL=$enableval],
  1039. [MALLOC_ZERO_RETURNS_NULL=auto])
  1040. AC_MSG_CHECKING([whether malloc(0) returns NULL])
  1041. if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
  1042. AC_RUN_IFELSE([
  1043. char *malloc();
  1044. char *realloc();
  1045. char *calloc();
  1046. main() {
  1047. char *m0, *r0, *c0, *p;
  1048. m0 = malloc(0);
  1049. p = malloc(10);
  1050. r0 = realloc(p,0);
  1051. c0 = calloc(0);
  1052. exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
  1053. }],
  1054. [MALLOC_ZERO_RETURNS_NULL=yes],
  1055. [MALLOC_ZERO_RETURNS_NULL=no])
  1056. fi
  1057. AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
  1058. if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
  1059. MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
  1060. XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
  1061. XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
  1062. else
  1063. MALLOC_ZERO_CFLAGS=""
  1064. XMALLOC_ZERO_CFLAGS=""
  1065. XTMALLOC_ZERO_CFLAGS=""
  1066. fi
  1067. AC_SUBST([MALLOC_ZERO_CFLAGS])
  1068. AC_SUBST([XMALLOC_ZERO_CFLAGS])
  1069. AC_SUBST([XTMALLOC_ZERO_CFLAGS])
  1070. ]) # XORG_CHECK_MALLOC_ZERO
  1071. # XORG_WITH_LINT()
  1072. # ----------------
  1073. # Minimum version: 1.1.0
  1074. #
  1075. # Sets up flags for source checkers such as lint and sparse if --with-lint
  1076. # is specified. (Use --with-lint=sparse for sparse.)
  1077. # Sets $LINT to name of source checker passed with --with-lint (default: lint)
  1078. # Sets $LINT_FLAGS to flags to pass to source checker
  1079. # Sets LINT automake conditional if enabled (default: disabled)
  1080. #
  1081. AC_DEFUN([XORG_WITH_LINT],[
  1082. # Allow checking code with lint, sparse, etc.
  1083. AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
  1084. [Use a lint-style source code checker (default: disabled)])],
  1085. [use_lint=$withval], [use_lint=no])
  1086. if test "x$use_lint" = "xyes" ; then
  1087. LINT="lint"
  1088. else
  1089. LINT="$use_lint"
  1090. fi
  1091. if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
  1092. case $LINT in
  1093. lint|*/lint)
  1094. case $host_os in
  1095. solaris*)
  1096. LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
  1097. ;;
  1098. esac
  1099. ;;
  1100. esac
  1101. fi
  1102. AC_SUBST(LINT)
  1103. AC_SUBST(LINT_FLAGS)
  1104. AM_CONDITIONAL(LINT, [test x$LINT != xno])
  1105. ]) # XORG_WITH_LINT
  1106. # XORG_LINT_LIBRARY(LIBNAME)
  1107. # --------------------------
  1108. # Minimum version: 1.1.0
  1109. #
  1110. # Sets up flags for building lint libraries for checking programs that call
  1111. # functions in the library.
  1112. # Disabled by default, enable with --enable-lint-library
  1113. # Sets:
  1114. # @LINTLIB@ - name of lint library file to make
  1115. # MAKE_LINT_LIB - automake conditional
  1116. #
  1117. AC_DEFUN([XORG_LINT_LIBRARY],[
  1118. AC_REQUIRE([XORG_WITH_LINT])
  1119. # Build lint "library" for more indepth checks of programs calling this library
  1120. AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
  1121. [Create lint library (default: disabled)])],
  1122. [make_lint_lib=$enableval], [make_lint_lib=no])
  1123. if test "x$make_lint_lib" != "xno" ; then
  1124. if test "x$LINT" = "xno" ; then
  1125. AC_MSG_ERROR([Cannot make lint library without --with-lint])
  1126. fi
  1127. if test "x$make_lint_lib" = "xyes" ; then
  1128. LINTLIB=llib-l$1.ln
  1129. else
  1130. LINTLIB=$make_lint_lib
  1131. fi
  1132. fi
  1133. AC_SUBST(LINTLIB)
  1134. AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
  1135. ]) # XORG_LINT_LIBRARY
  1136. # XORG_CWARNFLAGS
  1137. # ---------------
  1138. # Minimum version: 1.2.0
  1139. #
  1140. # Defines CWARNFLAGS to enable C compiler warnings.
  1141. #
  1142. AC_DEFUN([XORG_CWARNFLAGS], [
  1143. AC_REQUIRE([AC_PROG_CC])
  1144. if test "x$GCC" = xyes ; then
  1145. CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
  1146. -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
  1147. -Wbad-function-cast"
  1148. case `$CC -dumpversion` in
  1149. 3.4.* | 4.*)
  1150. CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
  1151. ;;
  1152. esac
  1153. else
  1154. AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  1155. if test "x$SUNCC" = "xyes"; then
  1156. CWARNFLAGS="-v"
  1157. fi
  1158. fi
  1159. AC_SUBST(CWARNFLAGS)
  1160. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  1161. ]) # XORG_CWARNFLAGS
  1162. # XORG_STRICT_OPTION
  1163. # -----------------------
  1164. # Minimum version: 1.3.0
  1165. #
  1166. # Add configure option to enable strict compilation
  1167. AC_DEFUN([XORG_STRICT_OPTION], [
  1168. AC_REQUIRE([AC_PROG_CC])
  1169. AC_REQUIRE([AC_PROG_CC_C99])
  1170. AC_REQUIRE([XORG_CWARNFLAGS])
  1171. AC_ARG_ENABLE(strict-compilation,
  1172. AS_HELP_STRING([--enable-strict-compilation],
  1173. [Enable all warnings from compiler and make them errors (default: disabled)]),
  1174. [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
  1175. if test "x$STRICT_COMPILE" = "xyes"; then
  1176. AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
  1177. AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
  1178. if test "x$GCC" = xyes ; then
  1179. STRICT_CFLAGS="-pedantic -Werror"
  1180. elif test "x$SUNCC" = "xyes"; then
  1181. STRICT_CFLAGS="-errwarn"
  1182. elif test "x$INTELCC" = "xyes"; then
  1183. STRICT_CFLAGS="-Werror"
  1184. fi
  1185. fi
  1186. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  1187. AC_SUBST([CWARNFLAGS])
  1188. ]) # XORG_STRICT_OPTION
  1189. # XORG_DEFAULT_OPTIONS
  1190. # --------------------
  1191. # Minimum version: 1.3.0
  1192. #
  1193. # Defines default options for X.Org modules.
  1194. #
  1195. AC_DEFUN([XORG_DEFAULT_OPTIONS], [
  1196. XORG_CWARNFLAGS
  1197. XORG_STRICT_OPTION
  1198. XORG_RELEASE_VERSION
  1199. XORG_CHANGELOG
  1200. XORG_MANPAGE_SECTIONS
  1201. ]) # XORG_DEFAULT_OPTIONS
  1202. dnl Copyright 2005 Red Hat, Inc
  1203. dnl
  1204. dnl Permission to use, copy, modify, distribute, and sell this software and its
  1205. dnl documentation for any purpose is hereby granted without fee, provided that
  1206. dnl the above copyright notice appear in all copies and that both that
  1207. dnl copyright notice and this permission notice appear in supporting
  1208. dnl documentation.
  1209. dnl
  1210. dnl The above copyright notice and this permission notice shall be included
  1211. dnl in all copies or substantial portions of the Software.
  1212. dnl
  1213. dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  1214. dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  1215. dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  1216. dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  1217. dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  1218. dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  1219. dnl OTHER DEALINGS IN THE SOFTWARE.
  1220. dnl
  1221. dnl Except as contained in this notice, the name of the copyright holders shall
  1222. dnl not be used in advertising or otherwise to promote the sale, use or
  1223. dnl other dealings in this Software without prior written authorization
  1224. dnl from the copyright holders.
  1225. dnl
  1226. # XORG_RELEASE_VERSION
  1227. # --------------------
  1228. # Adds --with/without-release-string and changes the PACKAGE and
  1229. # PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
  1230. # no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
  1231. # defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
  1232. AC_DEFUN([XORG_RELEASE_VERSION],[
  1233. AC_ARG_WITH(release-version,
  1234. AS_HELP_STRING([--with-release-version=STRING],
  1235. [Use release version string in package name]),
  1236. [RELEASE_VERSION="$withval"],
  1237. [RELEASE_VERSION=""])
  1238. if test "x$RELEASE_VERSION" != "x"; then
  1239. PACKAGE="$PACKAGE-$RELEASE_VERSION"
  1240. PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
  1241. AC_MSG_NOTICE([Building with package name set to $PACKAGE])
  1242. fi
  1243. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
  1244. [`echo $PACKAGE_VERSION | cut -d . -f 1`],
  1245. [Major version of this package])
  1246. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  1247. if test "x$PVM" = "x"; then
  1248. PVM="0"
  1249. fi
  1250. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
  1251. [$PVM],
  1252. [Minor version of this package])
  1253. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  1254. if test "x$PVP" = "x"; then
  1255. PVP="0"
  1256. fi
  1257. AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
  1258. [$PVP],
  1259. [Patch version of this package])
  1260. ])
  1261. # XORG_CHANGELOG()
  1262. # ----------------
  1263. # Minimum version: 1.2.0
  1264. #
  1265. # Defines the variable CHANGELOG_CMD as the command to generate
  1266. # ChangeLog from git.
  1267. #
  1268. # Arrange that distcleancheck ignores ChangeLog left over by distclean.
  1269. #
  1270. AC_DEFUN([XORG_CHANGELOG], [
  1271. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
  1272. mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
  1273. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  1274. AC_SUBST([CHANGELOG_CMD])
  1275. AC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print'])
  1276. ]) # XORG_CHANGELOG