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