1200576Sroberto# generated automatically by aclocal 1.11 -*- Autoconf -*-
2132451Sroberto
3182007Sroberto# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4200576Sroberto# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5132451Sroberto# This file is free software; the Free Software Foundation
6132451Sroberto# gives unlimited permission to copy and/or distribute it,
7132451Sroberto# with or without modifications, as long as this notice is preserved.
8132451Sroberto
9132451Sroberto# This program is distributed in the hope that it will be useful,
10132451Sroberto# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11132451Sroberto# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12132451Sroberto# PARTICULAR PURPOSE.
13132451Sroberto
14200576Srobertom4_ifndef([AC_AUTOCONF_VERSION],
15200576Sroberto  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16200576Srobertom4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17200576Sroberto[m4_warning([this file was generated for autoconf 2.65.
18200576SrobertoYou have another version of autoconf.  It may work, but is not guaranteed to.
19200576SrobertoIf you have problems, you may need to regenerate the build system entirely.
20200576SrobertoTo do so, use the procedure documented by the package, typically `autoreconf'.])])
21200576Sroberto
22200576Sroberto# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
23182007Sroberto#
24182007Sroberto# This file is free software; the Free Software Foundation
25182007Sroberto# gives unlimited permission to copy and/or distribute it,
26182007Sroberto# with or without modifications, as long as this notice is preserved.
27132451Sroberto
28132451Sroberto# AM_AUTOMAKE_VERSION(VERSION)
29132451Sroberto# ----------------------------
30132451Sroberto# Automake X.Y traces this macro to ensure aclocal.m4 has been
31132451Sroberto# generated from the m4 files accompanying Automake X.Y.
32200576Sroberto# (This private macro should not be called outside this file.)
33200576SrobertoAC_DEFUN([AM_AUTOMAKE_VERSION],
34200576Sroberto[am__api_version='1.11'
35200576Srobertodnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36200576Srobertodnl require some minimum version.  Point them to the right macro.
37200576Srobertom4_if([$1], [1.11], [],
38200576Sroberto      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39200576Sroberto])
40132451Sroberto
41200576Sroberto# _AM_AUTOCONF_VERSION(VERSION)
42200576Sroberto# -----------------------------
43200576Sroberto# aclocal traces this macro to find the Autoconf version.
44200576Sroberto# This is a private macro too.  Using m4_define simplifies
45200576Sroberto# the logic in aclocal, which can simply ignore this definition.
46200576Srobertom4_define([_AM_AUTOCONF_VERSION], [])
47200576Sroberto
48132451Sroberto# AM_SET_CURRENT_AUTOMAKE_VERSION
49132451Sroberto# -------------------------------
50200576Sroberto# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51200576Sroberto# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52132451SrobertoAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53200576Sroberto[AM_AUTOMAKE_VERSION([1.11])dnl
54200576Srobertom4_ifndef([AC_AUTOCONF_VERSION],
55200576Sroberto  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56200576Sroberto_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57132451Sroberto
58182007Sroberto# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59132451Sroberto
60182007Sroberto# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
61132451Sroberto#
62182007Sroberto# This file is free software; the Free Software Foundation
63182007Sroberto# gives unlimited permission to copy and/or distribute it,
64182007Sroberto# with or without modifications, as long as this notice is preserved.
65132451Sroberto
66132451Sroberto# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67132451Sroberto# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68132451Sroberto# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
69132451Sroberto#
70132451Sroberto# Of course, Automake must honor this variable whenever it calls a
71132451Sroberto# tool from the auxiliary directory.  The problem is that $srcdir (and
72132451Sroberto# therefore $ac_aux_dir as well) can be either absolute or relative,
73132451Sroberto# depending on how configure is run.  This is pretty annoying, since
74132451Sroberto# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75132451Sroberto# source directory, any form will work fine, but in subdirectories a
76132451Sroberto# relative path needs to be adjusted first.
77132451Sroberto#
78132451Sroberto# $ac_aux_dir/missing
79132451Sroberto#    fails when called from a subdirectory if $ac_aux_dir is relative
80132451Sroberto# $top_srcdir/$ac_aux_dir/missing
81132451Sroberto#    fails if $ac_aux_dir is absolute,
82132451Sroberto#    fails when called from a subdirectory in a VPATH build with
83132451Sroberto#          a relative $ac_aux_dir
84132451Sroberto#
85132451Sroberto# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86132451Sroberto# are both prefixed by $srcdir.  In an in-source build this is usually
87132451Sroberto# harmless because $srcdir is `.', but things will broke when you
88132451Sroberto# start a VPATH build or use an absolute $srcdir.
89132451Sroberto#
90132451Sroberto# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91132451Sroberto# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
92132451Sroberto#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93132451Sroberto# and then we would define $MISSING as
94132451Sroberto#   MISSING="\${SHELL} $am_aux_dir/missing"
95132451Sroberto# This will work as long as MISSING is not called from configure, because
96132451Sroberto# unfortunately $(top_srcdir) has no meaning in configure.
97132451Sroberto# However there are other variables, like CC, which are often used in
98132451Sroberto# configure, and could therefore not use this "fixed" $ac_aux_dir.
99132451Sroberto#
100132451Sroberto# Another solution, used here, is to always expand $ac_aux_dir to an
101132451Sroberto# absolute PATH.  The drawback is that using absolute paths prevent a
102132451Sroberto# configured tree to be moved without reconfiguration.
103132451Sroberto
104182007SrobertoAC_DEFUN([AM_AUX_DIR_EXPAND],
105182007Sroberto[dnl Rely on autoconf to set up CDPATH properly.
106182007SrobertoAC_PREREQ([2.50])dnl
107132451Sroberto# expand $ac_aux_dir to an absolute path
108132451Srobertoam_aux_dir=`cd $ac_aux_dir && pwd`
109132451Sroberto])
110132451Sroberto
111182007Sroberto# AM_CONDITIONAL                                            -*- Autoconf -*-
112132451Sroberto
113200576Sroberto# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114182007Sroberto# Free Software Foundation, Inc.
115182007Sroberto#
116182007Sroberto# This file is free software; the Free Software Foundation
117182007Sroberto# gives unlimited permission to copy and/or distribute it,
118182007Sroberto# with or without modifications, as long as this notice is preserved.
119132451Sroberto
120200576Sroberto# serial 9
121132451Sroberto
122182007Sroberto# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123182007Sroberto# -------------------------------------
124182007Sroberto# Define a conditional.
125182007SrobertoAC_DEFUN([AM_CONDITIONAL],
126182007Sroberto[AC_PREREQ(2.52)dnl
127182007Sroberto ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
128182007Sroberto	[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129200576SrobertoAC_SUBST([$1_TRUE])dnl
130200576SrobertoAC_SUBST([$1_FALSE])dnl
131200576Sroberto_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132200576Sroberto_AM_SUBST_NOTMAKE([$1_FALSE])dnl
133200576Srobertom4_define([_AM_COND_VALUE_$1], [$2])dnl
134182007Srobertoif $2; then
135182007Sroberto  $1_TRUE=
136182007Sroberto  $1_FALSE='#'
137132451Srobertoelse
138182007Sroberto  $1_TRUE='#'
139182007Sroberto  $1_FALSE=
140132451Srobertofi
141182007SrobertoAC_CONFIG_COMMANDS_PRE(
142182007Sroberto[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
143182007Sroberto  AC_MSG_ERROR([[conditional "$1" was never defined.
144182007SrobertoUsually this means the macro was only invoked conditionally.]])
145182007Srobertofi])])
146132451Sroberto
147200576Sroberto# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
148182007Sroberto# Free Software Foundation, Inc.
149182007Sroberto#
150182007Sroberto# This file is free software; the Free Software Foundation
151182007Sroberto# gives unlimited permission to copy and/or distribute it,
152182007Sroberto# with or without modifications, as long as this notice is preserved.
153132451Sroberto
154200576Sroberto# serial 10
155132451Sroberto
156132451Sroberto# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
157132451Sroberto# written in clear, in which case automake, when reading aclocal.m4,
158132451Sroberto# will think it sees a *use*, and therefore will trigger all it's
159132451Sroberto# C support machinery.  Also note that it means that autoscan, seeing
160132451Sroberto# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
161132451Sroberto
162132451Sroberto
163132451Sroberto# _AM_DEPENDENCIES(NAME)
164132451Sroberto# ----------------------
165132451Sroberto# See how the compiler implements dependency checking.
166132451Sroberto# NAME is "CC", "CXX", "GCJ", or "OBJC".
167132451Sroberto# We try a few techniques and use that to set a single cache variable.
168132451Sroberto#
169132451Sroberto# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
170132451Sroberto# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
171132451Sroberto# dependency, and given that the user is not expected to run this macro,
172132451Sroberto# just rely on AC_PROG_CC.
173132451SrobertoAC_DEFUN([_AM_DEPENDENCIES],
174132451Sroberto[AC_REQUIRE([AM_SET_DEPDIR])dnl
175132451SrobertoAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
176132451SrobertoAC_REQUIRE([AM_MAKE_INCLUDE])dnl
177132451SrobertoAC_REQUIRE([AM_DEP_TRACK])dnl
178132451Sroberto
179132451Srobertoifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
180132451Sroberto       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
181132451Sroberto       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
182200576Sroberto       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
183132451Sroberto       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
184132451Sroberto                   [depcc="$$1"   am_compiler_list=])
185132451Sroberto
186132451SrobertoAC_CACHE_CHECK([dependency style of $depcc],
187132451Sroberto               [am_cv_$1_dependencies_compiler_type],
188132451Sroberto[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
189132451Sroberto  # We make a subdir and do the tests there.  Otherwise we can end up
190132451Sroberto  # making bogus files that we don't know about and never remove.  For
191132451Sroberto  # instance it was reported that on HP-UX the gcc test will end up
192132451Sroberto  # making a dummy file named `D' -- because `-MD' means `put the output
193132451Sroberto  # in D'.
194132451Sroberto  mkdir conftest.dir
195132451Sroberto  # Copy depcomp to subdir because otherwise we won't find it if we're
196132451Sroberto  # using a relative directory.
197132451Sroberto  cp "$am_depcomp" conftest.dir
198132451Sroberto  cd conftest.dir
199132451Sroberto  # We will build objects and dependencies in a subdirectory because
200132451Sroberto  # it helps to detect inapplicable dependency modes.  For instance
201132451Sroberto  # both Tru64's cc and ICC support -MD to output dependencies as a
202132451Sroberto  # side effect of compilation, but ICC will put the dependencies in
203132451Sroberto  # the current directory while Tru64 will put them in the object
204132451Sroberto  # directory.
205132451Sroberto  mkdir sub
206132451Sroberto
207132451Sroberto  am_cv_$1_dependencies_compiler_type=none
208132451Sroberto  if test "$am_compiler_list" = ""; then
209132451Sroberto     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
210132451Sroberto  fi
211200576Sroberto  am__universal=false
212200576Sroberto  m4_case([$1], [CC],
213200576Sroberto    [case " $depcc " in #(
214200576Sroberto     *\ -arch\ *\ -arch\ *) am__universal=true ;;
215200576Sroberto     esac],
216200576Sroberto    [CXX],
217200576Sroberto    [case " $depcc " in #(
218200576Sroberto     *\ -arch\ *\ -arch\ *) am__universal=true ;;
219200576Sroberto     esac])
220200576Sroberto
221132451Sroberto  for depmode in $am_compiler_list; do
222132451Sroberto    # Setup a source with many dependencies, because some compilers
223132451Sroberto    # like to wrap large dependency lists on column 80 (with \), and
224132451Sroberto    # we should not choose a depcomp mode which is confused by this.
225132451Sroberto    #
226132451Sroberto    # We need to recreate these files for each test, as the compiler may
227132451Sroberto    # overwrite some of them when testing with obscure command lines.
228132451Sroberto    # This happens at least with the AIX C compiler.
229132451Sroberto    : > sub/conftest.c
230132451Sroberto    for i in 1 2 3 4 5 6; do
231132451Sroberto      echo '#include "conftst'$i'.h"' >> sub/conftest.c
232182007Sroberto      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
233182007Sroberto      # Solaris 8's {/usr,}/bin/sh.
234182007Sroberto      touch sub/conftst$i.h
235132451Sroberto    done
236132451Sroberto    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
237132451Sroberto
238200576Sroberto    # We check with `-c' and `-o' for the sake of the "dashmstdout"
239200576Sroberto    # mode.  It turns out that the SunPro C++ compiler does not properly
240200576Sroberto    # handle `-M -o', and we need to detect this.  Also, some Intel
241200576Sroberto    # versions had trouble with output in subdirs
242200576Sroberto    am__obj=sub/conftest.${OBJEXT-o}
243200576Sroberto    am__minus_obj="-o $am__obj"
244132451Sroberto    case $depmode in
245200576Sroberto    gcc)
246200576Sroberto      # This depmode causes a compiler race in universal mode.
247200576Sroberto      test "$am__universal" = false || continue
248200576Sroberto      ;;
249132451Sroberto    nosideeffect)
250132451Sroberto      # after this tag, mechanisms are not by side-effect, so they'll
251132451Sroberto      # only be used when explicitly requested
252132451Sroberto      if test "x$enable_dependency_tracking" = xyes; then
253132451Sroberto	continue
254132451Sroberto      else
255132451Sroberto	break
256132451Sroberto      fi
257132451Sroberto      ;;
258200576Sroberto    msvisualcpp | msvcmsys)
259200576Sroberto      # This compiler won't grok `-c -o', but also, the minuso test has
260200576Sroberto      # not run yet.  These depmodes are late enough in the game, and
261200576Sroberto      # so weak that their functioning should not be impacted.
262200576Sroberto      am__obj=conftest.${OBJEXT-o}
263200576Sroberto      am__minus_obj=
264200576Sroberto      ;;
265132451Sroberto    none) break ;;
266132451Sroberto    esac
267132451Sroberto    if depmode=$depmode \
268200576Sroberto       source=sub/conftest.c object=$am__obj \
269132451Sroberto       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
270200576Sroberto       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
271132451Sroberto         >/dev/null 2>conftest.err &&
272200576Sroberto       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
273132451Sroberto       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
274200576Sroberto       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
275132451Sroberto       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
276132451Sroberto      # icc doesn't choke on unknown options, it will just issue warnings
277182007Sroberto      # or remarks (even with -Werror).  So we grep stderr for any message
278182007Sroberto      # that says an option was ignored or not supported.
279182007Sroberto      # When given -MP, icc 7.0 and 7.1 complain thusly:
280182007Sroberto      #   icc: Command line warning: ignoring option '-M'; no argument required
281182007Sroberto      # The diagnosis changed in icc 8.0:
282182007Sroberto      #   icc: Command line remark: option '-MP' not supported
283182007Sroberto      if (grep 'ignoring option' conftest.err ||
284182007Sroberto          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
285132451Sroberto        am_cv_$1_dependencies_compiler_type=$depmode
286132451Sroberto        break
287132451Sroberto      fi
288132451Sroberto    fi
289132451Sroberto  done
290132451Sroberto
291132451Sroberto  cd ..
292132451Sroberto  rm -rf conftest.dir
293132451Srobertoelse
294132451Sroberto  am_cv_$1_dependencies_compiler_type=none
295132451Srobertofi
296132451Sroberto])
297132451SrobertoAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
298132451SrobertoAM_CONDITIONAL([am__fastdep$1], [
299132451Sroberto  test "x$enable_dependency_tracking" != xno \
300132451Sroberto  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
301132451Sroberto])
302132451Sroberto
303132451Sroberto
304132451Sroberto# AM_SET_DEPDIR
305132451Sroberto# -------------
306132451Sroberto# Choose a directory name for dependency files.
307132451Sroberto# This macro is AC_REQUIREd in _AM_DEPENDENCIES
308132451SrobertoAC_DEFUN([AM_SET_DEPDIR],
309132451Sroberto[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
310132451SrobertoAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
311132451Sroberto])
312132451Sroberto
313132451Sroberto
314132451Sroberto# AM_DEP_TRACK
315132451Sroberto# ------------
316132451SrobertoAC_DEFUN([AM_DEP_TRACK],
317132451Sroberto[AC_ARG_ENABLE(dependency-tracking,
318182007Sroberto[  --disable-dependency-tracking  speeds up one-time build
319182007Sroberto  --enable-dependency-tracking   do not reject slow dependency extractors])
320132451Srobertoif test "x$enable_dependency_tracking" != xno; then
321132451Sroberto  am_depcomp="$ac_aux_dir/depcomp"
322132451Sroberto  AMDEPBACKSLASH='\'
323132451Srobertofi
324132451SrobertoAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
325200576SrobertoAC_SUBST([AMDEPBACKSLASH])dnl
326200576Sroberto_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
327132451Sroberto])
328132451Sroberto
329182007Sroberto# Generate code to set up dependency tracking.              -*- Autoconf -*-
330132451Sroberto
331200576Sroberto# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
332182007Sroberto# Free Software Foundation, Inc.
333182007Sroberto#
334182007Sroberto# This file is free software; the Free Software Foundation
335182007Sroberto# gives unlimited permission to copy and/or distribute it,
336182007Sroberto# with or without modifications, as long as this notice is preserved.
337132451Sroberto
338200576Sroberto#serial 5
339132451Sroberto
340132451Sroberto# _AM_OUTPUT_DEPENDENCY_COMMANDS
341132451Sroberto# ------------------------------
342132451SrobertoAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343200576Sroberto[{
344200576Sroberto  # Autoconf 2.62 quotes --file arguments for eval, but not when files
345200576Sroberto  # are listed without --file.  Let's play safe and only enable the eval
346200576Sroberto  # if we detect the quoting.
347200576Sroberto  case $CONFIG_FILES in
348200576Sroberto  *\'*) eval set x "$CONFIG_FILES" ;;
349200576Sroberto  *)   set x $CONFIG_FILES ;;
350200576Sroberto  esac
351200576Sroberto  shift
352200576Sroberto  for mf
353200576Sroberto  do
354200576Sroberto    # Strip MF so we end up with the name of the file.
355200576Sroberto    mf=`echo "$mf" | sed -e 's/:.*$//'`
356200576Sroberto    # Check whether this is an Automake generated Makefile or not.
357200576Sroberto    # We used to match only the files named `Makefile.in', but
358200576Sroberto    # some people rename them; so instead we look at the file content.
359200576Sroberto    # Grep'ing the first line is not enough: some people post-process
360200576Sroberto    # each Makefile.in and add a new line on top of each file to say so.
361200576Sroberto    # Grep'ing the whole file is not good either: AIX grep has a line
362200576Sroberto    # limit of 2048, but all sed's we know have understand at least 4000.
363200576Sroberto    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
364200576Sroberto      dirpart=`AS_DIRNAME("$mf")`
365200576Sroberto    else
366200576Sroberto      continue
367200576Sroberto    fi
368200576Sroberto    # Extract the definition of DEPDIR, am__include, and am__quote
369200576Sroberto    # from the Makefile without running `make'.
370200576Sroberto    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
371200576Sroberto    test -z "$DEPDIR" && continue
372200576Sroberto    am__include=`sed -n 's/^am__include = //p' < "$mf"`
373200576Sroberto    test -z "am__include" && continue
374200576Sroberto    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
375200576Sroberto    # When using ansi2knr, U may be empty or an underscore; expand it
376200576Sroberto    U=`sed -n 's/^U = //p' < "$mf"`
377200576Sroberto    # Find all dependency output files, they are included files with
378200576Sroberto    # $(DEPDIR) in their names.  We invoke sed twice because it is the
379200576Sroberto    # simplest approach to changing $(DEPDIR) to its actual value in the
380200576Sroberto    # expansion.
381200576Sroberto    for file in `sed -n "
382200576Sroberto      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
383200576Sroberto	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
384200576Sroberto      # Make sure the directory exists.
385200576Sroberto      test -f "$dirpart/$file" && continue
386200576Sroberto      fdir=`AS_DIRNAME(["$file"])`
387200576Sroberto      AS_MKDIR_P([$dirpart/$fdir])
388200576Sroberto      # echo "creating $dirpart/$file"
389200576Sroberto      echo '# dummy' > "$dirpart/$file"
390200576Sroberto    done
391132451Sroberto  done
392200576Sroberto}
393132451Sroberto])# _AM_OUTPUT_DEPENDENCY_COMMANDS
394132451Sroberto
395132451Sroberto
396132451Sroberto# AM_OUTPUT_DEPENDENCY_COMMANDS
397132451Sroberto# -----------------------------
398132451Sroberto# This macro should only be invoked once -- use via AC_REQUIRE.
399132451Sroberto#
400132451Sroberto# This code is only required when automatic dependency tracking
401132451Sroberto# is enabled.  FIXME.  This creates each `.P' file that we will
402132451Sroberto# need in order to bootstrap the dependency handling code.
403132451SrobertoAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
404132451Sroberto[AC_CONFIG_COMMANDS([depfiles],
405132451Sroberto     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
406132451Sroberto     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
407132451Sroberto])
408132451Sroberto
409182007Sroberto# Do all the work for Automake.                             -*- Autoconf -*-
410132451Sroberto
411200576Sroberto# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
412200576Sroberto# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
413182007Sroberto#
414182007Sroberto# This file is free software; the Free Software Foundation
415182007Sroberto# gives unlimited permission to copy and/or distribute it,
416182007Sroberto# with or without modifications, as long as this notice is preserved.
417132451Sroberto
418200576Sroberto# serial 16
419132451Sroberto
420182007Sroberto# This macro actually does too much.  Some checks are only needed if
421182007Sroberto# your package does certain things.  But this isn't really a big deal.
422132451Sroberto
423182007Sroberto# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
424182007Sroberto# AM_INIT_AUTOMAKE([OPTIONS])
425182007Sroberto# -----------------------------------------------
426182007Sroberto# The call with PACKAGE and VERSION arguments is the old style
427182007Sroberto# call (pre autoconf-2.50), which is being phased out.  PACKAGE
428182007Sroberto# and VERSION should now be passed to AC_INIT and removed from
429182007Sroberto# the call to AM_INIT_AUTOMAKE.
430182007Sroberto# We support both call styles for the transition.  After
431182007Sroberto# the next Automake release, Autoconf can make the AC_INIT
432182007Sroberto# arguments mandatory, and then we can depend on a new Autoconf
433182007Sroberto# release and drop the old call support.
434182007SrobertoAC_DEFUN([AM_INIT_AUTOMAKE],
435200576Sroberto[AC_PREREQ([2.62])dnl
436182007Srobertodnl Autoconf wants to disallow AM_ names.  We explicitly allow
437182007Srobertodnl the ones we care about.
438182007Srobertom4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
439182007SrobertoAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
440182007SrobertoAC_REQUIRE([AC_PROG_INSTALL])dnl
441200576Srobertoif test "`cd $srcdir && pwd`" != "`pwd`"; then
442200576Sroberto  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
443200576Sroberto  # is not polluted with repeated "-I."
444200576Sroberto  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
445200576Sroberto  # test to see if srcdir already configured
446200576Sroberto  if test -f $srcdir/config.status; then
447200576Sroberto    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
448200576Sroberto  fi
449182007Srobertofi
450132451Sroberto
451182007Sroberto# test whether we have cygpath
452182007Srobertoif test -z "$CYGPATH_W"; then
453182007Sroberto  if (cygpath --version) >/dev/null 2>/dev/null; then
454182007Sroberto    CYGPATH_W='cygpath -w'
455182007Sroberto  else
456182007Sroberto    CYGPATH_W=echo
457182007Sroberto  fi
458182007Srobertofi
459182007SrobertoAC_SUBST([CYGPATH_W])
460182007Sroberto
461182007Sroberto# Define the identity of the package.
462182007Srobertodnl Distinguish between old-style and new-style calls.
463182007Srobertom4_ifval([$2],
464182007Sroberto[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
465182007Sroberto AC_SUBST([PACKAGE], [$1])dnl
466182007Sroberto AC_SUBST([VERSION], [$2])],
467182007Sroberto[_AM_SET_OPTIONS([$1])dnl
468200576Srobertodnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
469200576Srobertom4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
470200576Sroberto  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
471182007Sroberto AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
472182007Sroberto AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
473182007Sroberto
474182007Sroberto_AM_IF_OPTION([no-define],,
475182007Sroberto[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
476182007Sroberto AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
477182007Sroberto
478182007Sroberto# Some tools Automake needs.
479182007SrobertoAC_REQUIRE([AM_SANITY_CHECK])dnl
480182007SrobertoAC_REQUIRE([AC_ARG_PROGRAM])dnl
481182007SrobertoAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
482182007SrobertoAM_MISSING_PROG(AUTOCONF, autoconf)
483182007SrobertoAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
484182007SrobertoAM_MISSING_PROG(AUTOHEADER, autoheader)
485182007SrobertoAM_MISSING_PROG(MAKEINFO, makeinfo)
486200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_SH])dnl
487200576SrobertoAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
488182007SrobertoAC_REQUIRE([AM_PROG_MKDIR_P])dnl
489182007Sroberto# We need awk for the "check" target.  The system "awk" is bad on
490182007Sroberto# some platforms.
491182007SrobertoAC_REQUIRE([AC_PROG_AWK])dnl
492182007SrobertoAC_REQUIRE([AC_PROG_MAKE_SET])dnl
493182007SrobertoAC_REQUIRE([AM_SET_LEADING_DOT])dnl
494182007Sroberto_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
495200576Sroberto	      [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
496200576Sroberto			     [_AM_PROG_TAR([v7])])])
497182007Sroberto_AM_IF_OPTION([no-dependencies],,
498182007Sroberto[AC_PROVIDE_IFELSE([AC_PROG_CC],
499200576Sroberto		  [_AM_DEPENDENCIES(CC)],
500200576Sroberto		  [define([AC_PROG_CC],
501200576Sroberto			  defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
502182007SrobertoAC_PROVIDE_IFELSE([AC_PROG_CXX],
503200576Sroberto		  [_AM_DEPENDENCIES(CXX)],
504200576Sroberto		  [define([AC_PROG_CXX],
505200576Sroberto			  defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
506200576SrobertoAC_PROVIDE_IFELSE([AC_PROG_OBJC],
507200576Sroberto		  [_AM_DEPENDENCIES(OBJC)],
508200576Sroberto		  [define([AC_PROG_OBJC],
509200576Sroberto			  defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
510182007Sroberto])
511200576Sroberto_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
512200576Srobertodnl The `parallel-tests' driver may need to know about EXEEXT, so add the
513200576Srobertodnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
514200576Srobertodnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
515200576SrobertoAC_CONFIG_COMMANDS_PRE(dnl
516200576Sroberto[m4_provide_if([_AM_COMPILER_EXEEXT],
517200576Sroberto  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
518182007Sroberto])
519182007Sroberto
520200576Srobertodnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
521200576Srobertodnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
522200576Srobertodnl mangled by Autoconf and run in a shell conditional statement.
523200576Srobertom4_define([_AC_COMPILER_EXEEXT],
524200576Srobertom4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
525182007Sroberto
526200576Sroberto
527182007Sroberto# When config.status generates a header, we must update the stamp-h file.
528182007Sroberto# This file resides in the same directory as the config header
529182007Sroberto# that is generated.  The stamp files are numbered to have different names.
530182007Sroberto
531182007Sroberto# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
532182007Sroberto# loop where config.status creates the headers, so we can generate
533182007Sroberto# our stamp files there.
534182007SrobertoAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
535182007Sroberto[# Compute $1's index in $config_headers.
536200576Sroberto_am_arg=$1
537182007Sroberto_am_stamp_count=1
538182007Srobertofor _am_header in $config_headers :; do
539182007Sroberto  case $_am_header in
540200576Sroberto    $_am_arg | $_am_arg:* )
541182007Sroberto      break ;;
542182007Sroberto    * )
543182007Sroberto      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
544182007Sroberto  esac
545182007Srobertodone
546200576Srobertoecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
547182007Sroberto
548200576Sroberto# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
549182007Sroberto#
550182007Sroberto# This file is free software; the Free Software Foundation
551182007Sroberto# gives unlimited permission to copy and/or distribute it,
552182007Sroberto# with or without modifications, as long as this notice is preserved.
553182007Sroberto
554182007Sroberto# AM_PROG_INSTALL_SH
555182007Sroberto# ------------------
556182007Sroberto# Define $install_sh.
557182007SrobertoAC_DEFUN([AM_PROG_INSTALL_SH],
558182007Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
559200576Srobertoif test x"${install_sh}" != xset; then
560200576Sroberto  case $am_aux_dir in
561200576Sroberto  *\ * | *\	*)
562200576Sroberto    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
563200576Sroberto  *)
564200576Sroberto    install_sh="\${SHELL} $am_aux_dir/install-sh"
565200576Sroberto  esac
566200576Srobertofi
567182007SrobertoAC_SUBST(install_sh)])
568182007Sroberto
569182007Sroberto# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
570182007Sroberto#
571182007Sroberto# This file is free software; the Free Software Foundation
572182007Sroberto# gives unlimited permission to copy and/or distribute it,
573182007Sroberto# with or without modifications, as long as this notice is preserved.
574182007Sroberto
575132451Sroberto# serial 2
576132451Sroberto
577182007Sroberto# Check whether the underlying file-system supports filenames
578182007Sroberto# with a leading dot.  For instance MS-DOS doesn't.
579182007SrobertoAC_DEFUN([AM_SET_LEADING_DOT],
580182007Sroberto[rm -rf .tst 2>/dev/null
581182007Srobertomkdir .tst 2>/dev/null
582182007Srobertoif test -d .tst; then
583182007Sroberto  am__leading_dot=.
584182007Srobertoelse
585182007Sroberto  am__leading_dot=_
586182007Srobertofi
587182007Srobertormdir .tst 2>/dev/null
588182007SrobertoAC_SUBST([am__leading_dot])])
589182007Sroberto
590182007Sroberto# Check to see how 'make' treats includes.	            -*- Autoconf -*-
591182007Sroberto
592200576Sroberto# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
593182007Sroberto#
594182007Sroberto# This file is free software; the Free Software Foundation
595182007Sroberto# gives unlimited permission to copy and/or distribute it,
596182007Sroberto# with or without modifications, as long as this notice is preserved.
597182007Sroberto
598200576Sroberto# serial 4
599182007Sroberto
600132451Sroberto# AM_MAKE_INCLUDE()
601132451Sroberto# -----------------
602132451Sroberto# Check to see how make treats includes.
603132451SrobertoAC_DEFUN([AM_MAKE_INCLUDE],
604132451Sroberto[am_make=${MAKE-make}
605132451Srobertocat > confinc << 'END'
606132451Srobertoam__doit:
607200576Sroberto	@echo this is the am__doit target
608132451Sroberto.PHONY: am__doit
609132451SrobertoEND
610132451Sroberto# If we don't find an include directive, just comment out the code.
611132451SrobertoAC_MSG_CHECKING([for style of include used by $am_make])
612132451Srobertoam__include="#"
613132451Srobertoam__quote=
614132451Sroberto_am_result=none
615132451Sroberto# First try GNU make style include.
616132451Srobertoecho "include confinc" > confmf
617200576Sroberto# Ignore all kinds of additional output from `make'.
618200576Srobertocase `$am_make -s -f confmf 2> /dev/null` in #(
619200576Sroberto*the\ am__doit\ target*)
620200576Sroberto  am__include=include
621200576Sroberto  am__quote=
622200576Sroberto  _am_result=GNU
623200576Sroberto  ;;
624200576Srobertoesac
625132451Sroberto# Now try BSD make style include.
626132451Srobertoif test "$am__include" = "#"; then
627132451Sroberto   echo '.include "confinc"' > confmf
628200576Sroberto   case `$am_make -s -f confmf 2> /dev/null` in #(
629200576Sroberto   *the\ am__doit\ target*)
630200576Sroberto     am__include=.include
631200576Sroberto     am__quote="\""
632200576Sroberto     _am_result=BSD
633200576Sroberto     ;;
634200576Sroberto   esac
635132451Srobertofi
636132451SrobertoAC_SUBST([am__include])
637132451SrobertoAC_SUBST([am__quote])
638132451SrobertoAC_MSG_RESULT([$_am_result])
639132451Srobertorm -f confinc confmf
640132451Sroberto])
641132451Sroberto
642182007Sroberto# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
643132451Sroberto
644200576Sroberto# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
645182007Sroberto# Free Software Foundation, Inc.
646182007Sroberto#
647182007Sroberto# This file is free software; the Free Software Foundation
648182007Sroberto# gives unlimited permission to copy and/or distribute it,
649182007Sroberto# with or without modifications, as long as this notice is preserved.
650132451Sroberto
651200576Sroberto# serial 6
652132451Sroberto
653182007Sroberto# AM_MISSING_PROG(NAME, PROGRAM)
654182007Sroberto# ------------------------------
655182007SrobertoAC_DEFUN([AM_MISSING_PROG],
656182007Sroberto[AC_REQUIRE([AM_MISSING_HAS_RUN])
657182007Sroberto$1=${$1-"${am_missing_run}$2"}
658182007SrobertoAC_SUBST($1)])
659132451Sroberto
660132451Sroberto
661182007Sroberto# AM_MISSING_HAS_RUN
662182007Sroberto# ------------------
663182007Sroberto# Define MISSING if not defined so far and test if it supports --run.
664182007Sroberto# If it does, set am_missing_run to use it, otherwise, to nothing.
665182007SrobertoAC_DEFUN([AM_MISSING_HAS_RUN],
666182007Sroberto[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
667200576SrobertoAC_REQUIRE_AUX_FILE([missing])dnl
668200576Srobertoif test x"${MISSING+set}" != xset; then
669200576Sroberto  case $am_aux_dir in
670200576Sroberto  *\ * | *\	*)
671200576Sroberto    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
672200576Sroberto  *)
673200576Sroberto    MISSING="\${SHELL} $am_aux_dir/missing" ;;
674200576Sroberto  esac
675200576Srobertofi
676182007Sroberto# Use eval to expand $SHELL
677182007Srobertoif eval "$MISSING --run true"; then
678182007Sroberto  am_missing_run="$MISSING --run "
679182007Srobertoelse
680182007Sroberto  am_missing_run=
681182007Sroberto  AC_MSG_WARN([`missing' script is too old or missing])
682182007Srobertofi
683182007Sroberto])
684132451Sroberto
685200576Sroberto# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
686182007Sroberto#
687182007Sroberto# This file is free software; the Free Software Foundation
688182007Sroberto# gives unlimited permission to copy and/or distribute it,
689182007Sroberto# with or without modifications, as long as this notice is preserved.
690132451Sroberto
691182007Sroberto# AM_PROG_MKDIR_P
692182007Sroberto# ---------------
693200576Sroberto# Check for `mkdir -p'.
694182007SrobertoAC_DEFUN([AM_PROG_MKDIR_P],
695200576Sroberto[AC_PREREQ([2.60])dnl
696200576SrobertoAC_REQUIRE([AC_PROG_MKDIR_P])dnl
697200576Srobertodnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
698200576Srobertodnl while keeping a definition of mkdir_p for backward compatibility.
699200576Srobertodnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
700200576Srobertodnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
701200576Srobertodnl Makefile.ins that do not define MKDIR_P, so we do our own
702200576Srobertodnl adjustment using top_builddir (which is defined more often than
703200576Srobertodnl MKDIR_P).
704200576SrobertoAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
705200576Srobertocase $mkdir_p in
706200576Sroberto  [[\\/$]]* | ?:[[\\/]]*) ;;
707200576Sroberto  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
708200576Srobertoesac
709200576Sroberto])
710132451Sroberto
711182007Sroberto# Helper functions for option handling.                     -*- Autoconf -*-
712182007Sroberto
713200576Sroberto# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
714182007Sroberto#
715182007Sroberto# This file is free software; the Free Software Foundation
716182007Sroberto# gives unlimited permission to copy and/or distribute it,
717182007Sroberto# with or without modifications, as long as this notice is preserved.
718182007Sroberto
719200576Sroberto# serial 4
720182007Sroberto
721182007Sroberto# _AM_MANGLE_OPTION(NAME)
722182007Sroberto# -----------------------
723182007SrobertoAC_DEFUN([_AM_MANGLE_OPTION],
724182007Sroberto[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
725182007Sroberto
726182007Sroberto# _AM_SET_OPTION(NAME)
727182007Sroberto# ------------------------------
728182007Sroberto# Set option NAME.  Presently that only means defining a flag for this option.
729182007SrobertoAC_DEFUN([_AM_SET_OPTION],
730182007Sroberto[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
731182007Sroberto
732182007Sroberto# _AM_SET_OPTIONS(OPTIONS)
733182007Sroberto# ----------------------------------
734182007Sroberto# OPTIONS is a space-separated list of Automake options.
735182007SrobertoAC_DEFUN([_AM_SET_OPTIONS],
736200576Sroberto[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
737182007Sroberto
738182007Sroberto# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
739182007Sroberto# -------------------------------------------
740182007Sroberto# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
741182007SrobertoAC_DEFUN([_AM_IF_OPTION],
742182007Sroberto[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
743182007Sroberto
744182007Sroberto# Check to make sure that the build environment is sane.    -*- Autoconf -*-
745182007Sroberto
746200576Sroberto# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
747182007Sroberto# Free Software Foundation, Inc.
748182007Sroberto#
749182007Sroberto# This file is free software; the Free Software Foundation
750182007Sroberto# gives unlimited permission to copy and/or distribute it,
751182007Sroberto# with or without modifications, as long as this notice is preserved.
752182007Sroberto
753200576Sroberto# serial 5
754182007Sroberto
755182007Sroberto# AM_SANITY_CHECK
756182007Sroberto# ---------------
757182007SrobertoAC_DEFUN([AM_SANITY_CHECK],
758182007Sroberto[AC_MSG_CHECKING([whether build environment is sane])
759182007Sroberto# Just in case
760182007Srobertosleep 1
761182007Srobertoecho timestamp > conftest.file
762200576Sroberto# Reject unsafe characters in $srcdir or the absolute working directory
763200576Sroberto# name.  Accept space and tab only in the latter.
764200576Srobertoam_lf='
765200576Sroberto'
766200576Srobertocase `pwd` in
767200576Sroberto  *[[\\\"\#\$\&\'\`$am_lf]]*)
768200576Sroberto    AC_MSG_ERROR([unsafe absolute working directory name]);;
769200576Srobertoesac
770200576Srobertocase $srcdir in
771200576Sroberto  *[[\\\"\#\$\&\'\`$am_lf\ \	]]*)
772200576Sroberto    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
773200576Srobertoesac
774200576Sroberto
775182007Sroberto# Do `set' in a subshell so we don't clobber the current shell's
776182007Sroberto# arguments.  Must try -L first in case configure is actually a
777182007Sroberto# symlink; some systems play weird games with the mod time of symlinks
778182007Sroberto# (eg FreeBSD returns the mod time of the symlink's containing
779182007Sroberto# directory).
780182007Srobertoif (
781200576Sroberto   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
782182007Sroberto   if test "$[*]" = "X"; then
783182007Sroberto      # -L didn't work.
784200576Sroberto      set X `ls -t "$srcdir/configure" conftest.file`
785182007Sroberto   fi
786182007Sroberto   rm -f conftest.file
787182007Sroberto   if test "$[*]" != "X $srcdir/configure conftest.file" \
788182007Sroberto      && test "$[*]" != "X conftest.file $srcdir/configure"; then
789182007Sroberto
790182007Sroberto      # If neither matched, then we have a broken ls.  This can happen
791182007Sroberto      # if, for instance, CONFIG_SHELL is bash and it inherits a
792182007Sroberto      # broken ls alias from the environment.  This has actually
793182007Sroberto      # happened.  Such a system could not be considered "sane".
794182007Sroberto      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
795182007Srobertoalias in your environment])
796182007Sroberto   fi
797182007Sroberto
798182007Sroberto   test "$[2]" = conftest.file
799182007Sroberto   )
800182007Srobertothen
801182007Sroberto   # Ok.
802182007Sroberto   :
803182007Srobertoelse
804182007Sroberto   AC_MSG_ERROR([newly created file is older than distributed files!
805182007SrobertoCheck your system clock])
806182007Srobertofi
807182007SrobertoAC_MSG_RESULT(yes)])
808182007Sroberto
809182007Sroberto# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
810182007Sroberto#
811182007Sroberto# This file is free software; the Free Software Foundation
812182007Sroberto# gives unlimited permission to copy and/or distribute it,
813182007Sroberto# with or without modifications, as long as this notice is preserved.
814182007Sroberto
815182007Sroberto# AM_PROG_INSTALL_STRIP
816182007Sroberto# ---------------------
817182007Sroberto# One issue with vendor `install' (even GNU) is that you can't
818182007Sroberto# specify the program used to strip binaries.  This is especially
819182007Sroberto# annoying in cross-compiling environments, where the build's strip
820182007Sroberto# is unlikely to handle the host's binaries.
821182007Sroberto# Fortunately install-sh will honor a STRIPPROG variable, so we
822182007Sroberto# always use install-sh in `make install-strip', and initialize
823182007Sroberto# STRIPPROG with the value of the STRIP variable (set by the user).
824182007SrobertoAC_DEFUN([AM_PROG_INSTALL_STRIP],
825182007Sroberto[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
826182007Sroberto# Installed binaries are usually stripped using `strip' when the user
827182007Sroberto# run `make install-strip'.  However `strip' might not be the right
828182007Sroberto# tool to use in cross-compilation environments, therefore Automake
829182007Sroberto# will honor the `STRIP' environment variable to overrule this program.
830182007Srobertodnl Don't test for $cross_compiling = yes, because it might be `maybe'.
831182007Srobertoif test "$cross_compiling" != no; then
832182007Sroberto  AC_CHECK_TOOL([STRIP], [strip], :)
833182007Srobertofi
834200576SrobertoINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
835182007SrobertoAC_SUBST([INSTALL_STRIP_PROGRAM])])
836182007Sroberto
837200576Sroberto# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
838200576Sroberto#
839200576Sroberto# This file is free software; the Free Software Foundation
840200576Sroberto# gives unlimited permission to copy and/or distribute it,
841200576Sroberto# with or without modifications, as long as this notice is preserved.
842200576Sroberto
843200576Sroberto# serial 2
844200576Sroberto
845200576Sroberto# _AM_SUBST_NOTMAKE(VARIABLE)
846200576Sroberto# ---------------------------
847200576Sroberto# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
848200576Sroberto# This macro is traced by Automake.
849200576SrobertoAC_DEFUN([_AM_SUBST_NOTMAKE])
850200576Sroberto
851200576Sroberto# AM_SUBST_NOTMAKE(VARIABLE)
852200576Sroberto# ---------------------------
853200576Sroberto# Public sister of _AM_SUBST_NOTMAKE.
854200576SrobertoAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
855200576Sroberto
856182007Sroberto# Check how to create a tarball.                            -*- Autoconf -*-
857182007Sroberto
858182007Sroberto# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
859182007Sroberto#
860182007Sroberto# This file is free software; the Free Software Foundation
861182007Sroberto# gives unlimited permission to copy and/or distribute it,
862182007Sroberto# with or without modifications, as long as this notice is preserved.
863182007Sroberto
864182007Sroberto# serial 2
865182007Sroberto
866182007Sroberto# _AM_PROG_TAR(FORMAT)
867182007Sroberto# --------------------
868182007Sroberto# Check how to create a tarball in format FORMAT.
869182007Sroberto# FORMAT should be one of `v7', `ustar', or `pax'.
870182007Sroberto#
871182007Sroberto# Substitute a variable $(am__tar) that is a command
872182007Sroberto# writing to stdout a FORMAT-tarball containing the directory
873182007Sroberto# $tardir.
874182007Sroberto#     tardir=directory && $(am__tar) > result.tar
875182007Sroberto#
876182007Sroberto# Substitute a variable $(am__untar) that extract such
877182007Sroberto# a tarball read from stdin.
878182007Sroberto#     $(am__untar) < result.tar
879182007SrobertoAC_DEFUN([_AM_PROG_TAR],
880182007Sroberto[# Always define AMTAR for backward compatibility.
881182007SrobertoAM_MISSING_PROG([AMTAR], [tar])
882182007Srobertom4_if([$1], [v7],
883182007Sroberto     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
884182007Sroberto     [m4_case([$1], [ustar],, [pax],,
885182007Sroberto              [m4_fatal([Unknown tar format])])
886182007SrobertoAC_MSG_CHECKING([how to create a $1 tar archive])
887182007Sroberto# Loop over all known methods to create a tar archive until one works.
888182007Sroberto_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
889182007Sroberto_am_tools=${am_cv_prog_tar_$1-$_am_tools}
890182007Sroberto# Do not fold the above two line into one, because Tru64 sh and
891182007Sroberto# Solaris sh will not grok spaces in the rhs of `-'.
892182007Srobertofor _am_tool in $_am_tools
893182007Srobertodo
894182007Sroberto  case $_am_tool in
895182007Sroberto  gnutar)
896182007Sroberto    for _am_tar in tar gnutar gtar;
897182007Sroberto    do
898182007Sroberto      AM_RUN_LOG([$_am_tar --version]) && break
899182007Sroberto    done
900182007Sroberto    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
901182007Sroberto    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
902182007Sroberto    am__untar="$_am_tar -xf -"
903182007Sroberto    ;;
904182007Sroberto  plaintar)
905182007Sroberto    # Must skip GNU tar: if it does not support --format= it doesn't create
906182007Sroberto    # ustar tarball either.
907182007Sroberto    (tar --version) >/dev/null 2>&1 && continue
908182007Sroberto    am__tar='tar chf - "$$tardir"'
909182007Sroberto    am__tar_='tar chf - "$tardir"'
910182007Sroberto    am__untar='tar xf -'
911182007Sroberto    ;;
912182007Sroberto  pax)
913182007Sroberto    am__tar='pax -L -x $1 -w "$$tardir"'
914182007Sroberto    am__tar_='pax -L -x $1 -w "$tardir"'
915182007Sroberto    am__untar='pax -r'
916182007Sroberto    ;;
917182007Sroberto  cpio)
918182007Sroberto    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
919182007Sroberto    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
920182007Sroberto    am__untar='cpio -i -H $1 -d'
921182007Sroberto    ;;
922182007Sroberto  none)
923182007Sroberto    am__tar=false
924182007Sroberto    am__tar_=false
925182007Sroberto    am__untar=false
926182007Sroberto    ;;
927182007Sroberto  esac
928182007Sroberto
929182007Sroberto  # If the value was cached, stop now.  We just wanted to have am__tar
930182007Sroberto  # and am__untar set.
931182007Sroberto  test -n "${am_cv_prog_tar_$1}" && break
932182007Sroberto
933182007Sroberto  # tar/untar a dummy directory, and stop if the command works
934182007Sroberto  rm -rf conftest.dir
935182007Sroberto  mkdir conftest.dir
936182007Sroberto  echo GrepMe > conftest.dir/file
937182007Sroberto  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
938182007Sroberto  rm -rf conftest.dir
939182007Sroberto  if test -s conftest.tar; then
940182007Sroberto    AM_RUN_LOG([$am__untar <conftest.tar])
941182007Sroberto    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
942182007Sroberto  fi
943182007Srobertodone
944182007Srobertorm -rf conftest.dir
945182007Sroberto
946182007SrobertoAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
947182007SrobertoAC_MSG_RESULT([$am_cv_prog_tar_$1])])
948182007SrobertoAC_SUBST([am__tar])
949182007SrobertoAC_SUBST([am__untar])
950182007Sroberto]) # _AM_PROG_TAR
951182007Sroberto
952