source: trunk/debathena/third/schroot/aclocal.m4 @ 24314

Revision 24314, 45.6 KB checked in by geofft, 15 years ago (diff)
In schroot: * Merge with Debian unstable; remaining changes: - Backport to Karmic, and adjust build-deps.
Line 
1# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17[m4_warning([this file was generated for autoconf 2.65.
18You have another version of autoconf.  It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22dnl
23dnl AM_PATH_CPPUNIT(MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
24dnl
25AC_DEFUN([AM_PATH_CPPUNIT],
26[
27
28AC_ARG_WITH(cppunit-prefix,[  --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)],
29            cppunit_config_prefix="$withval", cppunit_config_prefix="")
30AC_ARG_WITH(cppunit-exec-prefix,[  --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)],
31            cppunit_config_exec_prefix="$withval", cppunit_config_exec_prefix="")
32
33  if test x$cppunit_config_exec_prefix != x ; then
34     cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
35     if test x${CPPUNIT_CONFIG+set} != xset ; then
36        CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
37     fi
38  fi
39  if test x$cppunit_config_prefix != x ; then
40     cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41     if test x${CPPUNIT_CONFIG+set} != xset ; then
42        CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43     fi
44  fi
45
46  AC_PATH_PROG(CPPUNIT_CONFIG, cppunit-config, no)
47  cppunit_version_min=$1
48
49  AC_MSG_CHECKING(for Cppunit - version >= $cppunit_version_min)
50  no_cppunit=""
51  if test "$CPPUNIT_CONFIG" = "no" ; then
52    AC_MSG_RESULT(no)
53    no_cppunit=yes
54  else
55    CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
56    CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
57    cppunit_version=`$CPPUNIT_CONFIG --version`
58
59    cppunit_major_version=`echo $cppunit_version | \
60           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
61    cppunit_minor_version=`echo $cppunit_version | \
62           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
63    cppunit_micro_version=`echo $cppunit_version | \
64           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
65
66    cppunit_major_min=`echo $cppunit_version_min | \
67           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
68    if test "x${cppunit_major_min}" = "x" ; then
69       cppunit_major_min=0
70    fi
71   
72    cppunit_minor_min=`echo $cppunit_version_min | \
73           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
74    if test "x${cppunit_minor_min}" = "x" ; then
75       cppunit_minor_min=0
76    fi
77   
78    cppunit_micro_min=`echo $cppunit_version_min | \
79           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
80    if test "x${cppunit_micro_min}" = "x" ; then
81       cppunit_micro_min=0
82    fi
83
84    cppunit_version_proper=`expr \
85        $cppunit_major_version \> $cppunit_major_min \| \
86        $cppunit_major_version \= $cppunit_major_min \& \
87        $cppunit_minor_version \> $cppunit_minor_min \| \
88        $cppunit_major_version \= $cppunit_major_min \& \
89        $cppunit_minor_version \= $cppunit_minor_min \& \
90        $cppunit_micro_version \>= $cppunit_micro_min `
91
92    if test "$cppunit_version_proper" = "1" ; then
93      AC_MSG_RESULT([$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version])
94    else
95      AC_MSG_RESULT(no)
96      no_cppunit=yes
97    fi
98  fi
99
100  if test "x$no_cppunit" = x ; then
101     ifelse([$2], , :, [$2])     
102  else
103     CPPUNIT_CFLAGS=""
104     CPPUNIT_LIBS=""
105     ifelse([$3], , :, [$3])
106  fi
107
108  AC_SUBST(CPPUNIT_CFLAGS)
109  AC_SUBST(CPPUNIT_LIBS)
110])
111
112
113
114
115# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
116#
117# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
118#
119# This program is free software; you can redistribute it and/or modify
120# it under the terms of the GNU General Public License as published by
121# the Free Software Foundation; either version 2 of the License, or
122# (at your option) any later version.
123#
124# This program is distributed in the hope that it will be useful, but
125# WITHOUT ANY WARRANTY; without even the implied warranty of
126# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
127# General Public License for more details.
128#
129# You should have received a copy of the GNU General Public License
130# along with this program; if not, write to the Free Software
131# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
132#
133# As a special exception to the GNU General Public License, if you
134# distribute this file as part of a program that contains a
135# configuration script generated by Autoconf, you may include it under
136# the same distribution terms that you use for the rest of that program.
137
138# PKG_PROG_PKG_CONFIG([MIN-VERSION])
139# ----------------------------------
140AC_DEFUN([PKG_PROG_PKG_CONFIG],
141[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
142m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
143AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
144if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
145        AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
146fi
147if test -n "$PKG_CONFIG"; then
148        _pkg_min_version=m4_default([$1], [0.9.0])
149        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
150        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
151                AC_MSG_RESULT([yes])
152        else
153                AC_MSG_RESULT([no])
154                PKG_CONFIG=""
155        fi
156               
157fi[]dnl
158])# PKG_PROG_PKG_CONFIG
159
160# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
161#
162# Check to see whether a particular set of modules exists.  Similar
163# to PKG_CHECK_MODULES(), but does not set variables or print errors.
164#
165#
166# Similar to PKG_CHECK_MODULES, make sure that the first instance of
167# this or PKG_CHECK_MODULES is called, or make sure to call
168# PKG_CHECK_EXISTS manually
169# --------------------------------------------------------------
170AC_DEFUN([PKG_CHECK_EXISTS],
171[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
172if test -n "$PKG_CONFIG" && \
173    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
174  m4_ifval([$2], [$2], [:])
175m4_ifvaln([$3], [else
176  $3])dnl
177fi])
178
179
180# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
181# ---------------------------------------------
182m4_define([_PKG_CONFIG],
183[if test -n "$PKG_CONFIG"; then
184    if test -n "$$1"; then
185        pkg_cv_[]$1="$$1"
186    else
187        PKG_CHECK_EXISTS([$3],
188                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
189                         [pkg_failed=yes])
190    fi
191else
192        pkg_failed=untried
193fi[]dnl
194])# _PKG_CONFIG
195
196# _PKG_SHORT_ERRORS_SUPPORTED
197# -----------------------------
198AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
199[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
201        _pkg_short_errors_supported=yes
202else
203        _pkg_short_errors_supported=no
204fi[]dnl
205])# _PKG_SHORT_ERRORS_SUPPORTED
206
207
208# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
209# [ACTION-IF-NOT-FOUND])
210#
211#
212# Note that if there is a possibility the first call to
213# PKG_CHECK_MODULES might not happen, you should be sure to include an
214# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
215#
216#
217# --------------------------------------------------------------
218AC_DEFUN([PKG_CHECK_MODULES],
219[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
220AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
221AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
222
223pkg_failed=no
224AC_MSG_CHECKING([for $1])
225
226_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
227_PKG_CONFIG([$1][_LIBS], [libs], [$2])
228
229m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
230and $1[]_LIBS to avoid the need to call pkg-config.
231See the pkg-config man page for more details.])
232
233if test $pkg_failed = yes; then
234        _PKG_SHORT_ERRORS_SUPPORTED
235        if test $_pkg_short_errors_supported = yes; then
236                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
237        else
238                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
239        fi
240        # Put the nasty error message in config.log where it belongs
241        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
242
243        ifelse([$4], , [AC_MSG_ERROR(dnl
244[Package requirements ($2) were not met:
245
246$$1_PKG_ERRORS
247
248Consider adjusting the PKG_CONFIG_PATH environment variable if you
249installed software in a non-standard prefix.
250
251_PKG_TEXT
252])],
253                [AC_MSG_RESULT([no])
254                $4])
255elif test $pkg_failed = untried; then
256        ifelse([$4], , [AC_MSG_FAILURE(dnl
257[The pkg-config script could not be found or is too old.  Make sure it
258is in your PATH or set the PKG_CONFIG environment variable to the full
259path to pkg-config.
260
261_PKG_TEXT
262
263To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
264                [$4])
265else
266        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
267        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
268        AC_MSG_RESULT([yes])
269        ifelse([$3], , :, [$3])
270fi[]dnl
271])# PKG_CHECK_MODULES
272
273# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
274#
275# This file is free software; the Free Software Foundation
276# gives unlimited permission to copy and/or distribute it,
277# with or without modifications, as long as this notice is preserved.
278
279# AM_AUTOMAKE_VERSION(VERSION)
280# ----------------------------
281# Automake X.Y traces this macro to ensure aclocal.m4 has been
282# generated from the m4 files accompanying Automake X.Y.
283# (This private macro should not be called outside this file.)
284AC_DEFUN([AM_AUTOMAKE_VERSION],
285[am__api_version='1.11'
286dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
287dnl require some minimum version.  Point them to the right macro.
288m4_if([$1], [1.11], [],
289      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
290])
291
292# _AM_AUTOCONF_VERSION(VERSION)
293# -----------------------------
294# aclocal traces this macro to find the Autoconf version.
295# This is a private macro too.  Using m4_define simplifies
296# the logic in aclocal, which can simply ignore this definition.
297m4_define([_AM_AUTOCONF_VERSION], [])
298
299# AM_SET_CURRENT_AUTOMAKE_VERSION
300# -------------------------------
301# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
302# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
303AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
304[AM_AUTOMAKE_VERSION([1.11])dnl
305m4_ifndef([AC_AUTOCONF_VERSION],
306  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
307_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
308
309# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
310
311# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
312#
313# This file is free software; the Free Software Foundation
314# gives unlimited permission to copy and/or distribute it,
315# with or without modifications, as long as this notice is preserved.
316
317# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
318# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
319# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
320#
321# Of course, Automake must honor this variable whenever it calls a
322# tool from the auxiliary directory.  The problem is that $srcdir (and
323# therefore $ac_aux_dir as well) can be either absolute or relative,
324# depending on how configure is run.  This is pretty annoying, since
325# it makes $ac_aux_dir quite unusable in subdirectories: in the top
326# source directory, any form will work fine, but in subdirectories a
327# relative path needs to be adjusted first.
328#
329# $ac_aux_dir/missing
330#    fails when called from a subdirectory if $ac_aux_dir is relative
331# $top_srcdir/$ac_aux_dir/missing
332#    fails if $ac_aux_dir is absolute,
333#    fails when called from a subdirectory in a VPATH build with
334#          a relative $ac_aux_dir
335#
336# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
337# are both prefixed by $srcdir.  In an in-source build this is usually
338# harmless because $srcdir is `.', but things will broke when you
339# start a VPATH build or use an absolute $srcdir.
340#
341# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
342# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
343#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
344# and then we would define $MISSING as
345#   MISSING="\${SHELL} $am_aux_dir/missing"
346# This will work as long as MISSING is not called from configure, because
347# unfortunately $(top_srcdir) has no meaning in configure.
348# However there are other variables, like CC, which are often used in
349# configure, and could therefore not use this "fixed" $ac_aux_dir.
350#
351# Another solution, used here, is to always expand $ac_aux_dir to an
352# absolute PATH.  The drawback is that using absolute paths prevent a
353# configured tree to be moved without reconfiguration.
354
355AC_DEFUN([AM_AUX_DIR_EXPAND],
356[dnl Rely on autoconf to set up CDPATH properly.
357AC_PREREQ([2.50])dnl
358# expand $ac_aux_dir to an absolute path
359am_aux_dir=`cd $ac_aux_dir && pwd`
360])
361
362# AM_CONDITIONAL                                            -*- Autoconf -*-
363
364# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
365# Free Software Foundation, Inc.
366#
367# This file is free software; the Free Software Foundation
368# gives unlimited permission to copy and/or distribute it,
369# with or without modifications, as long as this notice is preserved.
370
371# serial 9
372
373# AM_CONDITIONAL(NAME, SHELL-CONDITION)
374# -------------------------------------
375# Define a conditional.
376AC_DEFUN([AM_CONDITIONAL],
377[AC_PREREQ(2.52)dnl
378 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
379        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
380AC_SUBST([$1_TRUE])dnl
381AC_SUBST([$1_FALSE])dnl
382_AM_SUBST_NOTMAKE([$1_TRUE])dnl
383_AM_SUBST_NOTMAKE([$1_FALSE])dnl
384m4_define([_AM_COND_VALUE_$1], [$2])dnl
385if $2; then
386  $1_TRUE=
387  $1_FALSE='#'
388else
389  $1_TRUE='#'
390  $1_FALSE=
391fi
392AC_CONFIG_COMMANDS_PRE(
393[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
394  AC_MSG_ERROR([[conditional "$1" was never defined.
395Usually this means the macro was only invoked conditionally.]])
396fi])])
397
398# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
399# Free Software Foundation, Inc.
400#
401# This file is free software; the Free Software Foundation
402# gives unlimited permission to copy and/or distribute it,
403# with or without modifications, as long as this notice is preserved.
404
405# serial 10
406
407# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
408# written in clear, in which case automake, when reading aclocal.m4,
409# will think it sees a *use*, and therefore will trigger all it's
410# C support machinery.  Also note that it means that autoscan, seeing
411# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
412
413
414# _AM_DEPENDENCIES(NAME)
415# ----------------------
416# See how the compiler implements dependency checking.
417# NAME is "CC", "CXX", "GCJ", or "OBJC".
418# We try a few techniques and use that to set a single cache variable.
419#
420# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
421# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
422# dependency, and given that the user is not expected to run this macro,
423# just rely on AC_PROG_CC.
424AC_DEFUN([_AM_DEPENDENCIES],
425[AC_REQUIRE([AM_SET_DEPDIR])dnl
426AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
427AC_REQUIRE([AM_MAKE_INCLUDE])dnl
428AC_REQUIRE([AM_DEP_TRACK])dnl
429
430ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
431       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
432       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
433       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
434       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
435                   [depcc="$$1"   am_compiler_list=])
436
437AC_CACHE_CHECK([dependency style of $depcc],
438               [am_cv_$1_dependencies_compiler_type],
439[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
440  # We make a subdir and do the tests there.  Otherwise we can end up
441  # making bogus files that we don't know about and never remove.  For
442  # instance it was reported that on HP-UX the gcc test will end up
443  # making a dummy file named `D' -- because `-MD' means `put the output
444  # in D'.
445  mkdir conftest.dir
446  # Copy depcomp to subdir because otherwise we won't find it if we're
447  # using a relative directory.
448  cp "$am_depcomp" conftest.dir
449  cd conftest.dir
450  # We will build objects and dependencies in a subdirectory because
451  # it helps to detect inapplicable dependency modes.  For instance
452  # both Tru64's cc and ICC support -MD to output dependencies as a
453  # side effect of compilation, but ICC will put the dependencies in
454  # the current directory while Tru64 will put them in the object
455  # directory.
456  mkdir sub
457
458  am_cv_$1_dependencies_compiler_type=none
459  if test "$am_compiler_list" = ""; then
460     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
461  fi
462  am__universal=false
463  m4_case([$1], [CC],
464    [case " $depcc " in #(
465     *\ -arch\ *\ -arch\ *) am__universal=true ;;
466     esac],
467    [CXX],
468    [case " $depcc " in #(
469     *\ -arch\ *\ -arch\ *) am__universal=true ;;
470     esac])
471
472  for depmode in $am_compiler_list; do
473    # Setup a source with many dependencies, because some compilers
474    # like to wrap large dependency lists on column 80 (with \), and
475    # we should not choose a depcomp mode which is confused by this.
476    #
477    # We need to recreate these files for each test, as the compiler may
478    # overwrite some of them when testing with obscure command lines.
479    # This happens at least with the AIX C compiler.
480    : > sub/conftest.c
481    for i in 1 2 3 4 5 6; do
482      echo '#include "conftst'$i'.h"' >> sub/conftest.c
483      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
484      # Solaris 8's {/usr,}/bin/sh.
485      touch sub/conftst$i.h
486    done
487    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
488
489    # We check with `-c' and `-o' for the sake of the "dashmstdout"
490    # mode.  It turns out that the SunPro C++ compiler does not properly
491    # handle `-M -o', and we need to detect this.  Also, some Intel
492    # versions had trouble with output in subdirs
493    am__obj=sub/conftest.${OBJEXT-o}
494    am__minus_obj="-o $am__obj"
495    case $depmode in
496    gcc)
497      # This depmode causes a compiler race in universal mode.
498      test "$am__universal" = false || continue
499      ;;
500    nosideeffect)
501      # after this tag, mechanisms are not by side-effect, so they'll
502      # only be used when explicitly requested
503      if test "x$enable_dependency_tracking" = xyes; then
504        continue
505      else
506        break
507      fi
508      ;;
509    msvisualcpp | msvcmsys)
510      # This compiler won't grok `-c -o', but also, the minuso test has
511      # not run yet.  These depmodes are late enough in the game, and
512      # so weak that their functioning should not be impacted.
513      am__obj=conftest.${OBJEXT-o}
514      am__minus_obj=
515      ;;
516    none) break ;;
517    esac
518    if depmode=$depmode \
519       source=sub/conftest.c object=$am__obj \
520       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
521       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
522         >/dev/null 2>conftest.err &&
523       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
524       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
525       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
526       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
527      # icc doesn't choke on unknown options, it will just issue warnings
528      # or remarks (even with -Werror).  So we grep stderr for any message
529      # that says an option was ignored or not supported.
530      # When given -MP, icc 7.0 and 7.1 complain thusly:
531      #   icc: Command line warning: ignoring option '-M'; no argument required
532      # The diagnosis changed in icc 8.0:
533      #   icc: Command line remark: option '-MP' not supported
534      if (grep 'ignoring option' conftest.err ||
535          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
536        am_cv_$1_dependencies_compiler_type=$depmode
537        break
538      fi
539    fi
540  done
541
542  cd ..
543  rm -rf conftest.dir
544else
545  am_cv_$1_dependencies_compiler_type=none
546fi
547])
548AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
549AM_CONDITIONAL([am__fastdep$1], [
550  test "x$enable_dependency_tracking" != xno \
551  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
552])
553
554
555# AM_SET_DEPDIR
556# -------------
557# Choose a directory name for dependency files.
558# This macro is AC_REQUIREd in _AM_DEPENDENCIES
559AC_DEFUN([AM_SET_DEPDIR],
560[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
561AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
562])
563
564
565# AM_DEP_TRACK
566# ------------
567AC_DEFUN([AM_DEP_TRACK],
568[AC_ARG_ENABLE(dependency-tracking,
569[  --disable-dependency-tracking  speeds up one-time build
570  --enable-dependency-tracking   do not reject slow dependency extractors])
571if test "x$enable_dependency_tracking" != xno; then
572  am_depcomp="$ac_aux_dir/depcomp"
573  AMDEPBACKSLASH='\'
574fi
575AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
576AC_SUBST([AMDEPBACKSLASH])dnl
577_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
578])
579
580# Generate code to set up dependency tracking.              -*- Autoconf -*-
581
582# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
583# Free Software Foundation, Inc.
584#
585# This file is free software; the Free Software Foundation
586# gives unlimited permission to copy and/or distribute it,
587# with or without modifications, as long as this notice is preserved.
588
589#serial 5
590
591# _AM_OUTPUT_DEPENDENCY_COMMANDS
592# ------------------------------
593AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
594[{
595  # Autoconf 2.62 quotes --file arguments for eval, but not when files
596  # are listed without --file.  Let's play safe and only enable the eval
597  # if we detect the quoting.
598  case $CONFIG_FILES in
599  *\'*) eval set x "$CONFIG_FILES" ;;
600  *)   set x $CONFIG_FILES ;;
601  esac
602  shift
603  for mf
604  do
605    # Strip MF so we end up with the name of the file.
606    mf=`echo "$mf" | sed -e 's/:.*$//'`
607    # Check whether this is an Automake generated Makefile or not.
608    # We used to match only the files named `Makefile.in', but
609    # some people rename them; so instead we look at the file content.
610    # Grep'ing the first line is not enough: some people post-process
611    # each Makefile.in and add a new line on top of each file to say so.
612    # Grep'ing the whole file is not good either: AIX grep has a line
613    # limit of 2048, but all sed's we know have understand at least 4000.
614    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
615      dirpart=`AS_DIRNAME("$mf")`
616    else
617      continue
618    fi
619    # Extract the definition of DEPDIR, am__include, and am__quote
620    # from the Makefile without running `make'.
621    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
622    test -z "$DEPDIR" && continue
623    am__include=`sed -n 's/^am__include = //p' < "$mf"`
624    test -z "am__include" && continue
625    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
626    # When using ansi2knr, U may be empty or an underscore; expand it
627    U=`sed -n 's/^U = //p' < "$mf"`
628    # Find all dependency output files, they are included files with
629    # $(DEPDIR) in their names.  We invoke sed twice because it is the
630    # simplest approach to changing $(DEPDIR) to its actual value in the
631    # expansion.
632    for file in `sed -n "
633      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
634         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
635      # Make sure the directory exists.
636      test -f "$dirpart/$file" && continue
637      fdir=`AS_DIRNAME(["$file"])`
638      AS_MKDIR_P([$dirpart/$fdir])
639      # echo "creating $dirpart/$file"
640      echo '# dummy' > "$dirpart/$file"
641    done
642  done
643}
644])# _AM_OUTPUT_DEPENDENCY_COMMANDS
645
646
647# AM_OUTPUT_DEPENDENCY_COMMANDS
648# -----------------------------
649# This macro should only be invoked once -- use via AC_REQUIRE.
650#
651# This code is only required when automatic dependency tracking
652# is enabled.  FIXME.  This creates each `.P' file that we will
653# need in order to bootstrap the dependency handling code.
654AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
655[AC_CONFIG_COMMANDS([depfiles],
656     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
657     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
658])
659
660# Do all the work for Automake.                             -*- Autoconf -*-
661
662# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
663# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
664#
665# This file is free software; the Free Software Foundation
666# gives unlimited permission to copy and/or distribute it,
667# with or without modifications, as long as this notice is preserved.
668
669# serial 16
670
671# This macro actually does too much.  Some checks are only needed if
672# your package does certain things.  But this isn't really a big deal.
673
674# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
675# AM_INIT_AUTOMAKE([OPTIONS])
676# -----------------------------------------------
677# The call with PACKAGE and VERSION arguments is the old style
678# call (pre autoconf-2.50), which is being phased out.  PACKAGE
679# and VERSION should now be passed to AC_INIT and removed from
680# the call to AM_INIT_AUTOMAKE.
681# We support both call styles for the transition.  After
682# the next Automake release, Autoconf can make the AC_INIT
683# arguments mandatory, and then we can depend on a new Autoconf
684# release and drop the old call support.
685AC_DEFUN([AM_INIT_AUTOMAKE],
686[AC_PREREQ([2.62])dnl
687dnl Autoconf wants to disallow AM_ names.  We explicitly allow
688dnl the ones we care about.
689m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
690AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
691AC_REQUIRE([AC_PROG_INSTALL])dnl
692if test "`cd $srcdir && pwd`" != "`pwd`"; then
693  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
694  # is not polluted with repeated "-I."
695  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
696  # test to see if srcdir already configured
697  if test -f $srcdir/config.status; then
698    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
699  fi
700fi
701
702# test whether we have cygpath
703if test -z "$CYGPATH_W"; then
704  if (cygpath --version) >/dev/null 2>/dev/null; then
705    CYGPATH_W='cygpath -w'
706  else
707    CYGPATH_W=echo
708  fi
709fi
710AC_SUBST([CYGPATH_W])
711
712# Define the identity of the package.
713dnl Distinguish between old-style and new-style calls.
714m4_ifval([$2],
715[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
716 AC_SUBST([PACKAGE], [$1])dnl
717 AC_SUBST([VERSION], [$2])],
718[_AM_SET_OPTIONS([$1])dnl
719dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
720m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
721  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
722 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
723 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
724
725_AM_IF_OPTION([no-define],,
726[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
727 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
728
729# Some tools Automake needs.
730AC_REQUIRE([AM_SANITY_CHECK])dnl
731AC_REQUIRE([AC_ARG_PROGRAM])dnl
732AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
733AM_MISSING_PROG(AUTOCONF, autoconf)
734AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
735AM_MISSING_PROG(AUTOHEADER, autoheader)
736AM_MISSING_PROG(MAKEINFO, makeinfo)
737AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
738AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
739AC_REQUIRE([AM_PROG_MKDIR_P])dnl
740# We need awk for the "check" target.  The system "awk" is bad on
741# some platforms.
742AC_REQUIRE([AC_PROG_AWK])dnl
743AC_REQUIRE([AC_PROG_MAKE_SET])dnl
744AC_REQUIRE([AM_SET_LEADING_DOT])dnl
745_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
746              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
747                             [_AM_PROG_TAR([v7])])])
748_AM_IF_OPTION([no-dependencies],,
749[AC_PROVIDE_IFELSE([AC_PROG_CC],
750                  [_AM_DEPENDENCIES(CC)],
751                  [define([AC_PROG_CC],
752                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
753AC_PROVIDE_IFELSE([AC_PROG_CXX],
754                  [_AM_DEPENDENCIES(CXX)],
755                  [define([AC_PROG_CXX],
756                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
757AC_PROVIDE_IFELSE([AC_PROG_OBJC],
758                  [_AM_DEPENDENCIES(OBJC)],
759                  [define([AC_PROG_OBJC],
760                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
761])
762_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
763dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
764dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
765dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
766AC_CONFIG_COMMANDS_PRE(dnl
767[m4_provide_if([_AM_COMPILER_EXEEXT],
768  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
769])
770
771dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
772dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
773dnl mangled by Autoconf and run in a shell conditional statement.
774m4_define([_AC_COMPILER_EXEEXT],
775m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
776
777
778# When config.status generates a header, we must update the stamp-h file.
779# This file resides in the same directory as the config header
780# that is generated.  The stamp files are numbered to have different names.
781
782# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
783# loop where config.status creates the headers, so we can generate
784# our stamp files there.
785AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
786[# Compute $1's index in $config_headers.
787_am_arg=$1
788_am_stamp_count=1
789for _am_header in $config_headers :; do
790  case $_am_header in
791    $_am_arg | $_am_arg:* )
792      break ;;
793    * )
794      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
795  esac
796done
797echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
798
799# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
800#
801# This file is free software; the Free Software Foundation
802# gives unlimited permission to copy and/or distribute it,
803# with or without modifications, as long as this notice is preserved.
804
805# AM_PROG_INSTALL_SH
806# ------------------
807# Define $install_sh.
808AC_DEFUN([AM_PROG_INSTALL_SH],
809[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
810if test x"${install_sh}" != xset; then
811  case $am_aux_dir in
812  *\ * | *\     *)
813    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
814  *)
815    install_sh="\${SHELL} $am_aux_dir/install-sh"
816  esac
817fi
818AC_SUBST(install_sh)])
819
820# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
821#
822# This file is free software; the Free Software Foundation
823# gives unlimited permission to copy and/or distribute it,
824# with or without modifications, as long as this notice is preserved.
825
826# serial 2
827
828# Check whether the underlying file-system supports filenames
829# with a leading dot.  For instance MS-DOS doesn't.
830AC_DEFUN([AM_SET_LEADING_DOT],
831[rm -rf .tst 2>/dev/null
832mkdir .tst 2>/dev/null
833if test -d .tst; then
834  am__leading_dot=.
835else
836  am__leading_dot=_
837fi
838rmdir .tst 2>/dev/null
839AC_SUBST([am__leading_dot])])
840
841# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
842# From Jim Meyering
843
844# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
845# Free Software Foundation, Inc.
846#
847# This file is free software; the Free Software Foundation
848# gives unlimited permission to copy and/or distribute it,
849# with or without modifications, as long as this notice is preserved.
850
851# serial 5
852
853# AM_MAINTAINER_MODE([DEFAULT-MODE])
854# ----------------------------------
855# Control maintainer-specific portions of Makefiles.
856# Default is to disable them, unless `enable' is passed literally.
857# For symmetry, `disable' may be passed as well.  Anyway, the user
858# can override the default with the --enable/--disable switch.
859AC_DEFUN([AM_MAINTAINER_MODE],
860[m4_case(m4_default([$1], [disable]),
861       [enable], [m4_define([am_maintainer_other], [disable])],
862       [disable], [m4_define([am_maintainer_other], [enable])],
863       [m4_define([am_maintainer_other], [enable])
864        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
865AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
866  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
867  AC_ARG_ENABLE([maintainer-mode],
868[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
869                          (and sometimes confusing) to the casual installer],
870      [USE_MAINTAINER_MODE=$enableval],
871      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
872  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
873  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
874  MAINT=$MAINTAINER_MODE_TRUE
875  AC_SUBST([MAINT])dnl
876]
877)
878
879AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
880
881# Check to see how 'make' treats includes.                  -*- Autoconf -*-
882
883# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
884#
885# This file is free software; the Free Software Foundation
886# gives unlimited permission to copy and/or distribute it,
887# with or without modifications, as long as this notice is preserved.
888
889# serial 4
890
891# AM_MAKE_INCLUDE()
892# -----------------
893# Check to see how make treats includes.
894AC_DEFUN([AM_MAKE_INCLUDE],
895[am_make=${MAKE-make}
896cat > confinc << 'END'
897am__doit:
898        @echo this is the am__doit target
899.PHONY: am__doit
900END
901# If we don't find an include directive, just comment out the code.
902AC_MSG_CHECKING([for style of include used by $am_make])
903am__include="#"
904am__quote=
905_am_result=none
906# First try GNU make style include.
907echo "include confinc" > confmf
908# Ignore all kinds of additional output from `make'.
909case `$am_make -s -f confmf 2> /dev/null` in #(
910*the\ am__doit\ target*)
911  am__include=include
912  am__quote=
913  _am_result=GNU
914  ;;
915esac
916# Now try BSD make style include.
917if test "$am__include" = "#"; then
918   echo '.include "confinc"' > confmf
919   case `$am_make -s -f confmf 2> /dev/null` in #(
920   *the\ am__doit\ target*)
921     am__include=.include
922     am__quote="\""
923     _am_result=BSD
924     ;;
925   esac
926fi
927AC_SUBST([am__include])
928AC_SUBST([am__quote])
929AC_MSG_RESULT([$_am_result])
930rm -f confinc confmf
931])
932
933# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
934
935# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
936# Free Software Foundation, Inc.
937#
938# This file is free software; the Free Software Foundation
939# gives unlimited permission to copy and/or distribute it,
940# with or without modifications, as long as this notice is preserved.
941
942# serial 6
943
944# AM_MISSING_PROG(NAME, PROGRAM)
945# ------------------------------
946AC_DEFUN([AM_MISSING_PROG],
947[AC_REQUIRE([AM_MISSING_HAS_RUN])
948$1=${$1-"${am_missing_run}$2"}
949AC_SUBST($1)])
950
951
952# AM_MISSING_HAS_RUN
953# ------------------
954# Define MISSING if not defined so far and test if it supports --run.
955# If it does, set am_missing_run to use it, otherwise, to nothing.
956AC_DEFUN([AM_MISSING_HAS_RUN],
957[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
958AC_REQUIRE_AUX_FILE([missing])dnl
959if test x"${MISSING+set}" != xset; then
960  case $am_aux_dir in
961  *\ * | *\     *)
962    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
963  *)
964    MISSING="\${SHELL} $am_aux_dir/missing" ;;
965  esac
966fi
967# Use eval to expand $SHELL
968if eval "$MISSING --run true"; then
969  am_missing_run="$MISSING --run "
970else
971  am_missing_run=
972  AC_MSG_WARN([`missing' script is too old or missing])
973fi
974])
975
976# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
977#
978# This file is free software; the Free Software Foundation
979# gives unlimited permission to copy and/or distribute it,
980# with or without modifications, as long as this notice is preserved.
981
982# AM_PROG_MKDIR_P
983# ---------------
984# Check for `mkdir -p'.
985AC_DEFUN([AM_PROG_MKDIR_P],
986[AC_PREREQ([2.60])dnl
987AC_REQUIRE([AC_PROG_MKDIR_P])dnl
988dnl Automake 1.8 to 1.9.6 used to define mkdir_p.  We now use MKDIR_P,
989dnl while keeping a definition of mkdir_p for backward compatibility.
990dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
991dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
992dnl Makefile.ins that do not define MKDIR_P, so we do our own
993dnl adjustment using top_builddir (which is defined more often than
994dnl MKDIR_P).
995AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
996case $mkdir_p in
997  [[\\/$]]* | ?:[[\\/]]*) ;;
998  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
999esac
1000])
1001
1002# Helper functions for option handling.                     -*- Autoconf -*-
1003
1004# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
1005#
1006# This file is free software; the Free Software Foundation
1007# gives unlimited permission to copy and/or distribute it,
1008# with or without modifications, as long as this notice is preserved.
1009
1010# serial 4
1011
1012# _AM_MANGLE_OPTION(NAME)
1013# -----------------------
1014AC_DEFUN([_AM_MANGLE_OPTION],
1015[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1016
1017# _AM_SET_OPTION(NAME)
1018# ------------------------------
1019# Set option NAME.  Presently that only means defining a flag for this option.
1020AC_DEFUN([_AM_SET_OPTION],
1021[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1022
1023# _AM_SET_OPTIONS(OPTIONS)
1024# ----------------------------------
1025# OPTIONS is a space-separated list of Automake options.
1026AC_DEFUN([_AM_SET_OPTIONS],
1027[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1028
1029# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1030# -------------------------------------------
1031# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1032AC_DEFUN([_AM_IF_OPTION],
1033[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1034
1035# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1036#
1037# This file is free software; the Free Software Foundation
1038# gives unlimited permission to copy and/or distribute it,
1039# with or without modifications, as long as this notice is preserved.
1040
1041# AM_RUN_LOG(COMMAND)
1042# -------------------
1043# Run COMMAND, save the exit status in ac_status, and log it.
1044# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1045AC_DEFUN([AM_RUN_LOG],
1046[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1047   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1048   ac_status=$?
1049   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1050   (exit $ac_status); }])
1051
1052# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1053
1054# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1055# Free Software Foundation, Inc.
1056#
1057# This file is free software; the Free Software Foundation
1058# gives unlimited permission to copy and/or distribute it,
1059# with or without modifications, as long as this notice is preserved.
1060
1061# serial 5
1062
1063# AM_SANITY_CHECK
1064# ---------------
1065AC_DEFUN([AM_SANITY_CHECK],
1066[AC_MSG_CHECKING([whether build environment is sane])
1067# Just in case
1068sleep 1
1069echo timestamp > conftest.file
1070# Reject unsafe characters in $srcdir or the absolute working directory
1071# name.  Accept space and tab only in the latter.
1072am_lf='
1073'
1074case `pwd` in
1075  *[[\\\"\#\$\&\'\`$am_lf]]*)
1076    AC_MSG_ERROR([unsafe absolute working directory name]);;
1077esac
1078case $srcdir in
1079  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
1080    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1081esac
1082
1083# Do `set' in a subshell so we don't clobber the current shell's
1084# arguments.  Must try -L first in case configure is actually a
1085# symlink; some systems play weird games with the mod time of symlinks
1086# (eg FreeBSD returns the mod time of the symlink's containing
1087# directory).
1088if (
1089   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1090   if test "$[*]" = "X"; then
1091      # -L didn't work.
1092      set X `ls -t "$srcdir/configure" conftest.file`
1093   fi
1094   rm -f conftest.file
1095   if test "$[*]" != "X $srcdir/configure conftest.file" \
1096      && test "$[*]" != "X conftest.file $srcdir/configure"; then
1097
1098      # If neither matched, then we have a broken ls.  This can happen
1099      # if, for instance, CONFIG_SHELL is bash and it inherits a
1100      # broken ls alias from the environment.  This has actually
1101      # happened.  Such a system could not be considered "sane".
1102      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
1103alias in your environment])
1104   fi
1105
1106   test "$[2]" = conftest.file
1107   )
1108then
1109   # Ok.
1110   :
1111else
1112   AC_MSG_ERROR([newly created file is older than distributed files!
1113Check your system clock])
1114fi
1115AC_MSG_RESULT(yes)])
1116
1117# Copyright (C) 2009  Free Software Foundation, Inc.
1118#
1119# This file is free software; the Free Software Foundation
1120# gives unlimited permission to copy and/or distribute it,
1121# with or without modifications, as long as this notice is preserved.
1122
1123# serial 1
1124
1125# AM_SILENT_RULES([DEFAULT])
1126# --------------------------
1127# Enable less verbose build rules; with the default set to DEFAULT
1128# (`yes' being less verbose, `no' or empty being verbose).
1129AC_DEFUN([AM_SILENT_RULES],
1130[AC_ARG_ENABLE([silent-rules],
1131[  --enable-silent-rules          less verbose build output (undo: `make V=1')
1132  --disable-silent-rules         verbose build output (undo: `make V=0')])
1133case $enable_silent_rules in
1134yes) AM_DEFAULT_VERBOSITY=0;;
1135no)  AM_DEFAULT_VERBOSITY=1;;
1136*)   AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1137esac
1138AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1139AM_BACKSLASH='\'
1140AC_SUBST([AM_BACKSLASH])dnl
1141_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1142])
1143
1144# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
1145#
1146# This file is free software; the Free Software Foundation
1147# gives unlimited permission to copy and/or distribute it,
1148# with or without modifications, as long as this notice is preserved.
1149
1150# AM_PROG_INSTALL_STRIP
1151# ---------------------
1152# One issue with vendor `install' (even GNU) is that you can't
1153# specify the program used to strip binaries.  This is especially
1154# annoying in cross-compiling environments, where the build's strip
1155# is unlikely to handle the host's binaries.
1156# Fortunately install-sh will honor a STRIPPROG variable, so we
1157# always use install-sh in `make install-strip', and initialize
1158# STRIPPROG with the value of the STRIP variable (set by the user).
1159AC_DEFUN([AM_PROG_INSTALL_STRIP],
1160[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1161# Installed binaries are usually stripped using `strip' when the user
1162# run `make install-strip'.  However `strip' might not be the right
1163# tool to use in cross-compilation environments, therefore Automake
1164# will honor the `STRIP' environment variable to overrule this program.
1165dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1166if test "$cross_compiling" != no; then
1167  AC_CHECK_TOOL([STRIP], [strip], :)
1168fi
1169INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1170AC_SUBST([INSTALL_STRIP_PROGRAM])])
1171
1172# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1173#
1174# This file is free software; the Free Software Foundation
1175# gives unlimited permission to copy and/or distribute it,
1176# with or without modifications, as long as this notice is preserved.
1177
1178# serial 2
1179
1180# _AM_SUBST_NOTMAKE(VARIABLE)
1181# ---------------------------
1182# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1183# This macro is traced by Automake.
1184AC_DEFUN([_AM_SUBST_NOTMAKE])
1185
1186# AM_SUBST_NOTMAKE(VARIABLE)
1187# ---------------------------
1188# Public sister of _AM_SUBST_NOTMAKE.
1189AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1190
1191# Check how to create a tarball.                            -*- Autoconf -*-
1192
1193# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
1194#
1195# This file is free software; the Free Software Foundation
1196# gives unlimited permission to copy and/or distribute it,
1197# with or without modifications, as long as this notice is preserved.
1198
1199# serial 2
1200
1201# _AM_PROG_TAR(FORMAT)
1202# --------------------
1203# Check how to create a tarball in format FORMAT.
1204# FORMAT should be one of `v7', `ustar', or `pax'.
1205#
1206# Substitute a variable $(am__tar) that is a command
1207# writing to stdout a FORMAT-tarball containing the directory
1208# $tardir.
1209#     tardir=directory && $(am__tar) > result.tar
1210#
1211# Substitute a variable $(am__untar) that extract such
1212# a tarball read from stdin.
1213#     $(am__untar) < result.tar
1214AC_DEFUN([_AM_PROG_TAR],
1215[# Always define AMTAR for backward compatibility.
1216AM_MISSING_PROG([AMTAR], [tar])
1217m4_if([$1], [v7],
1218     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1219     [m4_case([$1], [ustar],, [pax],,
1220              [m4_fatal([Unknown tar format])])
1221AC_MSG_CHECKING([how to create a $1 tar archive])
1222# Loop over all known methods to create a tar archive until one works.
1223_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1224_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1225# Do not fold the above two line into one, because Tru64 sh and
1226# Solaris sh will not grok spaces in the rhs of `-'.
1227for _am_tool in $_am_tools
1228do
1229  case $_am_tool in
1230  gnutar)
1231    for _am_tar in tar gnutar gtar;
1232    do
1233      AM_RUN_LOG([$_am_tar --version]) && break
1234    done
1235    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1236    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1237    am__untar="$_am_tar -xf -"
1238    ;;
1239  plaintar)
1240    # Must skip GNU tar: if it does not support --format= it doesn't create
1241    # ustar tarball either.
1242    (tar --version) >/dev/null 2>&1 && continue
1243    am__tar='tar chf - "$$tardir"'
1244    am__tar_='tar chf - "$tardir"'
1245    am__untar='tar xf -'
1246    ;;
1247  pax)
1248    am__tar='pax -L -x $1 -w "$$tardir"'
1249    am__tar_='pax -L -x $1 -w "$tardir"'
1250    am__untar='pax -r'
1251    ;;
1252  cpio)
1253    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1254    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1255    am__untar='cpio -i -H $1 -d'
1256    ;;
1257  none)
1258    am__tar=false
1259    am__tar_=false
1260    am__untar=false
1261    ;;
1262  esac
1263
1264  # If the value was cached, stop now.  We just wanted to have am__tar
1265  # and am__untar set.
1266  test -n "${am_cv_prog_tar_$1}" && break
1267
1268  # tar/untar a dummy directory, and stop if the command works
1269  rm -rf conftest.dir
1270  mkdir conftest.dir
1271  echo GrepMe > conftest.dir/file
1272  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1273  rm -rf conftest.dir
1274  if test -s conftest.tar; then
1275    AM_RUN_LOG([$am__untar <conftest.tar])
1276    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1277  fi
1278done
1279rm -rf conftest.dir
1280
1281AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1282AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1283AC_SUBST([am__tar])
1284AC_SUBST([am__untar])
1285]) # _AM_PROG_TAR
1286
1287m4_include([m4/acx_pthread.m4])
1288m4_include([m4/gettext.m4])
1289m4_include([m4/iconv.m4])
1290m4_include([m4/lib-ld.m4])
1291m4_include([m4/lib-link.m4])
1292m4_include([m4/lib-prefix.m4])
1293m4_include([m4/libtool.m4])
1294m4_include([m4/ltoptions.m4])
1295m4_include([m4/ltsugar.m4])
1296m4_include([m4/ltversion.m4])
1297m4_include([m4/lt~obsolete.m4])
1298m4_include([m4/nls.m4])
1299m4_include([m4/po.m4])
1300m4_include([m4/progtest.m4])
Note: See TracBrowser for help on using the repository browser.