Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2707 in orxonox.OLD for orxonox/branches/buerli/aclocal.m4


Ignore:
Timestamp:
Nov 3, 2004, 12:29:03 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/buerli: merged back from trunk, with new configure makefile and so forth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/buerli/aclocal.m4

    r2617 r2707  
    1 # generated automatically by aclocal 1.7.1 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
     1# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
     2
     3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    44# Free Software Foundation, Inc.
    55# This file is free software; the Free Software Foundation
     
    1212# PARTICULAR PURPOSE.
    1313
    14 # Do all the work for Automake.                            -*- Autoconf -*-
    15 
    16 # This macro actually does too much some checks are only needed if
    17 # your package does certain things.  But this isn't really a big deal.
    18 
    19 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
     14#                                                        -*- Autoconf -*-
     15# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
     16# Generated from amversion.in; do not edit by hand.
     17
     18# This program is free software; you can redistribute it and/or modify
     19# it under the terms of the GNU General Public License as published by
     20# the Free Software Foundation; either version 2, or (at your option)
     21# any later version.
     22
     23# This program is distributed in the hope that it will be useful,
     24# but WITHOUT ANY WARRANTY; without even the implied warranty of
     25# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     26# GNU General Public License for more details.
     27
     28# You should have received a copy of the GNU General Public License
     29# along with this program; if not, write to the Free Software
     30# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     31
     32# AM_AUTOMAKE_VERSION(VERSION)
     33# ----------------------------
     34# Automake X.Y traces this macro to ensure aclocal.m4 has been
     35# generated from the m4 files accompanying Automake X.Y.
     36AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
     37
     38# AM_SET_CURRENT_AUTOMAKE_VERSION
     39# -------------------------------
     40# Call AM_AUTOMAKE_VERSION so it can be traced.
     41# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
     42AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
     43         [AM_AUTOMAKE_VERSION([1.8.5])])
     44
     45# AM_AUX_DIR_EXPAND
     46
     47# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
     48
     49# This program is free software; you can redistribute it and/or modify
     50# it under the terms of the GNU General Public License as published by
     51# the Free Software Foundation; either version 2, or (at your option)
     52# any later version.
     53
     54# This program is distributed in the hope that it will be useful,
     55# but WITHOUT ANY WARRANTY; without even the implied warranty of
     56# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     57# GNU General Public License for more details.
     58
     59# You should have received a copy of the GNU General Public License
     60# along with this program; if not, write to the Free Software
     61# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     62# 02111-1307, USA.
     63
     64# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
     65# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
     66# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
     67#
     68# Of course, Automake must honor this variable whenever it calls a
     69# tool from the auxiliary directory.  The problem is that $srcdir (and
     70# therefore $ac_aux_dir as well) can be either absolute or relative,
     71# depending on how configure is run.  This is pretty annoying, since
     72# it makes $ac_aux_dir quite unusable in subdirectories: in the top
     73# source directory, any form will work fine, but in subdirectories a
     74# relative path needs to be adjusted first.
     75#
     76# $ac_aux_dir/missing
     77#    fails when called from a subdirectory if $ac_aux_dir is relative
     78# $top_srcdir/$ac_aux_dir/missing
     79#    fails if $ac_aux_dir is absolute,
     80#    fails when called from a subdirectory in a VPATH build with
     81#          a relative $ac_aux_dir
     82#
     83# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
     84# are both prefixed by $srcdir.  In an in-source build this is usually
     85# harmless because $srcdir is `.', but things will broke when you
     86# start a VPATH build or use an absolute $srcdir.
     87#
     88# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
     89# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
     90#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
     91# and then we would define $MISSING as
     92#   MISSING="\${SHELL} $am_aux_dir/missing"
     93# This will work as long as MISSING is not called from configure, because
     94# unfortunately $(top_srcdir) has no meaning in configure.
     95# However there are other variables, like CC, which are often used in
     96# configure, and could therefore not use this "fixed" $ac_aux_dir.
     97#
     98# Another solution, used here, is to always expand $ac_aux_dir to an
     99# absolute PATH.  The drawback is that using absolute paths prevent a
     100# configured tree to be moved without reconfiguration.
     101
     102AC_DEFUN([AM_AUX_DIR_EXPAND],
     103[dnl Rely on autoconf to set up CDPATH properly.
     104AC_PREREQ([2.50])dnl
     105# expand $ac_aux_dir to an absolute path
     106am_aux_dir=`cd $ac_aux_dir && pwd`
     107])
     108
     109# AM_CONDITIONAL                                              -*- Autoconf -*-
     110
     111# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
     112
     113# This program is free software; you can redistribute it and/or modify
     114# it under the terms of the GNU General Public License as published by
     115# the Free Software Foundation; either version 2, or (at your option)
     116# any later version.
     117
     118# This program is distributed in the hope that it will be useful,
     119# but WITHOUT ANY WARRANTY; without even the implied warranty of
     120# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     121# GNU General Public License for more details.
     122
     123# You should have received a copy of the GNU General Public License
     124# along with this program; if not, write to the Free Software
     125# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     126# 02111-1307, USA.
     127
     128# serial 6
     129
     130# AM_CONDITIONAL(NAME, SHELL-CONDITION)
     131# -------------------------------------
     132# Define a conditional.
     133AC_DEFUN([AM_CONDITIONAL],
     134[AC_PREREQ(2.52)dnl
     135 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
     136        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
     137AC_SUBST([$1_TRUE])
     138AC_SUBST([$1_FALSE])
     139if $2; then
     140  $1_TRUE=
     141  $1_FALSE='#'
     142else
     143  $1_TRUE='#'
     144  $1_FALSE=
     145fi
     146AC_CONFIG_COMMANDS_PRE(
     147[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
     148  AC_MSG_ERROR([conditional "$1" was never defined.
     149Usually this means the macro was only invoked conditionally.])
     150fi])])
     151
     152# serial 7                                              -*- Autoconf -*-
     153
     154# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
    20155# Free Software Foundation, Inc.
    21156
     
    35170# 02111-1307, USA.
    36171
    37 # serial 8
    38172
    39173# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
     
    44178
    45179
    46 AC_PREREQ([2.54])
    47 
    48 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
    49 # the ones we care about.
    50 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
     180
     181# _AM_DEPENDENCIES(NAME)
     182# ----------------------
     183# See how the compiler implements dependency checking.
     184# NAME is "CC", "CXX", "GCJ", or "OBJC".
     185# We try a few techniques and use that to set a single cache variable.
     186#
     187# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
     188# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
     189# dependency, and given that the user is not expected to run this macro,
     190# just rely on AC_PROG_CC.
     191AC_DEFUN([_AM_DEPENDENCIES],
     192[AC_REQUIRE([AM_SET_DEPDIR])dnl
     193AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
     194AC_REQUIRE([AM_MAKE_INCLUDE])dnl
     195AC_REQUIRE([AM_DEP_TRACK])dnl
     196
     197ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
     198       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
     199       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
     200       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
     201                   [depcc="$$1"   am_compiler_list=])
     202
     203AC_CACHE_CHECK([dependency style of $depcc],
     204               [am_cv_$1_dependencies_compiler_type],
     205[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     206  # We make a subdir and do the tests there.  Otherwise we can end up
     207  # making bogus files that we don't know about and never remove.  For
     208  # instance it was reported that on HP-UX the gcc test will end up
     209  # making a dummy file named `D' -- because `-MD' means `put the output
     210  # in D'.
     211  mkdir conftest.dir
     212  # Copy depcomp to subdir because otherwise we won't find it if we're
     213  # using a relative directory.
     214  cp "$am_depcomp" conftest.dir
     215  cd conftest.dir
     216  # We will build objects and dependencies in a subdirectory because
     217  # it helps to detect inapplicable dependency modes.  For instance
     218  # both Tru64's cc and ICC support -MD to output dependencies as a
     219  # side effect of compilation, but ICC will put the dependencies in
     220  # the current directory while Tru64 will put them in the object
     221  # directory.
     222  mkdir sub
     223
     224  am_cv_$1_dependencies_compiler_type=none
     225  if test "$am_compiler_list" = ""; then
     226     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
     227  fi
     228  for depmode in $am_compiler_list; do
     229    # Setup a source with many dependencies, because some compilers
     230    # like to wrap large dependency lists on column 80 (with \), and
     231    # we should not choose a depcomp mode which is confused by this.
     232    #
     233    # We need to recreate these files for each test, as the compiler may
     234    # overwrite some of them when testing with obscure command lines.
     235    # This happens at least with the AIX C compiler.
     236    : > sub/conftest.c
     237    for i in 1 2 3 4 5 6; do
     238      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     239      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     240      # Solaris 8's {/usr,}/bin/sh.
     241      touch sub/conftst$i.h
     242    done
     243    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     244
     245    case $depmode in
     246    nosideeffect)
     247      # after this tag, mechanisms are not by side-effect, so they'll
     248      # only be used when explicitly requested
     249      if test "x$enable_dependency_tracking" = xyes; then
     250        continue
     251      else
     252        break
     253      fi
     254      ;;
     255    none) break ;;
     256    esac
     257    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     258    # mode.  It turns out that the SunPro C++ compiler does not properly
     259    # handle `-M -o', and we need to detect this.
     260    if depmode=$depmode \
     261       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     262       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     263       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     264         >/dev/null 2>conftest.err &&
     265       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     266       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     267       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     268      # icc doesn't choke on unknown options, it will just issue warnings
     269      # or remarks (even with -Werror).  So we grep stderr for any message
     270      # that says an option was ignored or not supported.
     271      # When given -MP, icc 7.0 and 7.1 complain thusly:
     272      #   icc: Command line warning: ignoring option '-M'; no argument required
     273      # The diagnosis changed in icc 8.0:
     274      #   icc: Command line remark: option '-MP' not supported
     275      if (grep 'ignoring option' conftest.err ||
     276          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     277        am_cv_$1_dependencies_compiler_type=$depmode
     278        break
     279      fi
     280    fi
     281  done
     282
     283  cd ..
     284  rm -rf conftest.dir
     285else
     286  am_cv_$1_dependencies_compiler_type=none
     287fi
     288])
     289AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
     290AM_CONDITIONAL([am__fastdep$1], [
     291  test "x$enable_dependency_tracking" != xno \
     292  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
     293])
     294
     295
     296# AM_SET_DEPDIR
     297# -------------
     298# Choose a directory name for dependency files.
     299# This macro is AC_REQUIREd in _AM_DEPENDENCIES
     300AC_DEFUN([AM_SET_DEPDIR],
     301[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
     302AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
     303])
     304
     305
     306# AM_DEP_TRACK
     307# ------------
     308AC_DEFUN([AM_DEP_TRACK],
     309[AC_ARG_ENABLE(dependency-tracking,
     310[  --disable-dependency-tracking  speeds up one-time build
     311  --enable-dependency-tracking   do not reject slow dependency extractors])
     312if test "x$enable_dependency_tracking" != xno; then
     313  am_depcomp="$ac_aux_dir/depcomp"
     314  AMDEPBACKSLASH='\'
     315fi
     316AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
     317AC_SUBST([AMDEPBACKSLASH])
     318])
     319
     320# Generate code to set up dependency tracking.   -*- Autoconf -*-
     321
     322# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
     323
     324# This program is free software; you can redistribute it and/or modify
     325# it under the terms of the GNU General Public License as published by
     326# the Free Software Foundation; either version 2, or (at your option)
     327# any later version.
     328
     329# This program is distributed in the hope that it will be useful,
     330# but WITHOUT ANY WARRANTY; without even the implied warranty of
     331# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     332# GNU General Public License for more details.
     333
     334# You should have received a copy of the GNU General Public License
     335# along with this program; if not, write to the Free Software
     336# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     337# 02111-1307, USA.
     338
     339#serial 2
     340
     341# _AM_OUTPUT_DEPENDENCY_COMMANDS
     342# ------------------------------
     343AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
     344[for mf in $CONFIG_FILES; do
     345  # Strip MF so we end up with the name of the file.
     346  mf=`echo "$mf" | sed -e 's/:.*$//'`
     347  # Check whether this is an Automake generated Makefile or not.
     348  # We used to match only the files named `Makefile.in', but
     349  # some people rename them; so instead we look at the file content.
     350  # Grep'ing the first line is not enough: some people post-process
     351  # each Makefile.in and add a new line on top of each file to say so.
     352  # So let's grep whole file.
     353  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
     354    dirpart=`AS_DIRNAME("$mf")`
     355  else
     356    continue
     357  fi
     358  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
     359  # Extract the definition of DEP_FILES from the Makefile without
     360  # running `make'.
     361  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
     362  test -z "$DEPDIR" && continue
     363  # When using ansi2knr, U may be empty or an underscore; expand it
     364  U=`sed -n 's/^U = //p' < "$mf"`
     365  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
     366  # We invoke sed twice because it is the simplest approach to
     367  # changing $(DEPDIR) to its actual value in the expansion.
     368  for file in `sed -n '
     369    /^DEP_FILES = .*\\\\$/ {
     370      s/^DEP_FILES = //
     371      :loop
     372        s/\\\\$//
     373        p
     374        n
     375        /\\\\$/ b loop
     376      p
     377    }
     378    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
     379       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
     380    # Make sure the directory exists.
     381    test -f "$dirpart/$file" && continue
     382    fdir=`AS_DIRNAME(["$file"])`
     383    AS_MKDIR_P([$dirpart/$fdir])
     384    # echo "creating $dirpart/$file"
     385    echo '# dummy' > "$dirpart/$file"
     386  done
     387done
     388])# _AM_OUTPUT_DEPENDENCY_COMMANDS
     389
     390
     391# AM_OUTPUT_DEPENDENCY_COMMANDS
     392# -----------------------------
     393# This macro should only be invoked once -- use via AC_REQUIRE.
     394#
     395# This code is only required when automatic dependency tracking
     396# is enabled.  FIXME.  This creates each `.P' file that we will
     397# need in order to bootstrap the dependency handling code.
     398AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
     399[AC_CONFIG_COMMANDS([depfiles],
     400     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
     401     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
     402])
     403
     404# Do all the work for Automake.                            -*- Autoconf -*-
     405
     406# This macro actually does too much some checks are only needed if
     407# your package does certain things.  But this isn't really a big deal.
     408
     409# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
     410# Free Software Foundation, Inc.
     411
     412# This program is free software; you can redistribute it and/or modify
     413# it under the terms of the GNU General Public License as published by
     414# the Free Software Foundation; either version 2, or (at your option)
     415# any later version.
     416
     417# This program is distributed in the hope that it will be useful,
     418# but WITHOUT ANY WARRANTY; without even the implied warranty of
     419# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     420# GNU General Public License for more details.
     421
     422# You should have received a copy of the GNU General Public License
     423# along with this program; if not, write to the Free Software
     424# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     425# 02111-1307, USA.
     426
     427# serial 11
    51428
    52429# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
     
    62439# release and drop the old call support.
    63440AC_DEFUN([AM_INIT_AUTOMAKE],
    64 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    65  AC_REQUIRE([AC_PROG_INSTALL])dnl
     441[AC_PREREQ([2.58])dnl
     442dnl Autoconf wants to disallow AM_ names.  We explicitly allow
     443dnl the ones we care about.
     444m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
     445AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
     446AC_REQUIRE([AC_PROG_INSTALL])dnl
    66447# test to see if srcdir already configured
    67448if test "`cd $srcdir && pwd`" != "`pwd`" &&
     
    87468 AC_SUBST([VERSION], [$2])],
    88469[_AM_SET_OPTIONS([$1])dnl
    89  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
    90  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
     470 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
     471 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
    91472
    92473_AM_IF_OPTION([no-define],,
     
    105486AM_PROG_INSTALL_SH
    106487AM_PROG_INSTALL_STRIP
     488AC_REQUIRE([AM_PROG_MKDIR_P])dnl
    107489# We need awk for the "check" target.  The system "awk" is bad on
    108490# some platforms.
    109491AC_REQUIRE([AC_PROG_AWK])dnl
    110492AC_REQUIRE([AC_PROG_MAKE_SET])dnl
     493AC_REQUIRE([AM_SET_LEADING_DOT])dnl
    111494
    112495_AM_IF_OPTION([no-dependencies],,
     
    131514# our stamp files there.
    132515AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
    133 [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
     516[# Compute $1's index in $config_headers.
     517_am_stamp_count=1
     518for _am_header in $config_headers :; do
     519  case $_am_header in
     520    $1 | $1:* )
     521      break ;;
     522    * )
     523      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
     524  esac
     525done
    134526echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
    135527
    136 # Copyright 2002  Free Software Foundation, Inc.
    137 
    138 # This program is free software; you can redistribute it and/or modify
    139 # it under the terms of the GNU General Public License as published by
    140 # the Free Software Foundation; either version 2, or (at your option)
    141 # any later version.
    142 
    143 # This program is distributed in the hope that it will be useful,
    144 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    146 # GNU General Public License for more details.
    147 
    148 # You should have received a copy of the GNU General Public License
    149 # along with this program; if not, write to the Free Software
    150 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    151 
    152 # AM_AUTOMAKE_VERSION(VERSION)
    153 # ----------------------------
    154 # Automake X.Y traces this macro to ensure aclocal.m4 has been
    155 # generated from the m4 files accompanying Automake X.Y.
    156 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
    157 
    158 # AM_SET_CURRENT_AUTOMAKE_VERSION
    159 # -------------------------------
    160 # Call AM_AUTOMAKE_VERSION so it can be traced.
    161 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    162 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    163          [AM_AUTOMAKE_VERSION([1.7.1])])
     528# AM_PROG_INSTALL_SH
     529# ------------------
     530# Define $install_sh.
     531
     532# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
     533
     534# This program is free software; you can redistribute it and/or modify
     535# it under the terms of the GNU General Public License as published by
     536# the Free Software Foundation; either version 2, or (at your option)
     537# any later version.
     538
     539# This program is distributed in the hope that it will be useful,
     540# but WITHOUT ANY WARRANTY; without even the implied warranty of
     541# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     542# GNU General Public License for more details.
     543
     544# You should have received a copy of the GNU General Public License
     545# along with this program; if not, write to the Free Software
     546# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     547# 02111-1307, USA.
     548
     549AC_DEFUN([AM_PROG_INSTALL_SH],
     550[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     551install_sh=${install_sh-"$am_aux_dir/install-sh"}
     552AC_SUBST(install_sh)])
     553
     554#                                                          -*- Autoconf -*-
     555# Copyright (C) 2003  Free Software Foundation, Inc.
     556
     557# This program is free software; you can redistribute it and/or modify
     558# it under the terms of the GNU General Public License as published by
     559# the Free Software Foundation; either version 2, or (at your option)
     560# any later version.
     561
     562# This program is distributed in the hope that it will be useful,
     563# but WITHOUT ANY WARRANTY; without even the implied warranty of
     564# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     565# GNU General Public License for more details.
     566
     567# You should have received a copy of the GNU General Public License
     568# along with this program; if not, write to the Free Software
     569# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     570# 02111-1307, USA.
     571
     572# serial 1
     573
     574# Check whether the underlying file-system supports filenames
     575# with a leading dot.  For instance MS-DOS doesn't.
     576AC_DEFUN([AM_SET_LEADING_DOT],
     577[rm -rf .tst 2>/dev/null
     578mkdir .tst 2>/dev/null
     579if test -d .tst; then
     580  am__leading_dot=.
     581else
     582  am__leading_dot=_
     583fi
     584rmdir .tst 2>/dev/null
     585AC_SUBST([am__leading_dot])])
     586
     587# Check to see how 'make' treats includes.      -*- Autoconf -*-
     588
     589# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
     590
     591# This program is free software; you can redistribute it and/or modify
     592# it under the terms of the GNU General Public License as published by
     593# the Free Software Foundation; either version 2, or (at your option)
     594# any later version.
     595
     596# This program is distributed in the hope that it will be useful,
     597# but WITHOUT ANY WARRANTY; without even the implied warranty of
     598# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     599# GNU General Public License for more details.
     600
     601# You should have received a copy of the GNU General Public License
     602# along with this program; if not, write to the Free Software
     603# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     604# 02111-1307, USA.
     605
     606# serial 2
     607
     608# AM_MAKE_INCLUDE()
     609# -----------------
     610# Check to see how make treats includes.
     611AC_DEFUN([AM_MAKE_INCLUDE],
     612[am_make=${MAKE-make}
     613cat > confinc << 'END'
     614am__doit:
     615        @echo done
     616.PHONY: am__doit
     617END
     618# If we don't find an include directive, just comment out the code.
     619AC_MSG_CHECKING([for style of include used by $am_make])
     620am__include="#"
     621am__quote=
     622_am_result=none
     623# First try GNU make style include.
     624echo "include confinc" > confmf
     625# We grep out `Entering directory' and `Leaving directory'
     626# messages which can occur if `w' ends up in MAKEFLAGS.
     627# In particular we don't look at `^make:' because GNU make might
     628# be invoked under some other name (usually "gmake"), in which
     629# case it prints its new name instead of `make'.
     630if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     631   am__include=include
     632   am__quote=
     633   _am_result=GNU
     634fi
     635# Now try BSD make style include.
     636if test "$am__include" = "#"; then
     637   echo '.include "confinc"' > confmf
     638   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     639      am__include=.include
     640      am__quote="\""
     641      _am_result=BSD
     642   fi
     643fi
     644AC_SUBST([am__include])
     645AC_SUBST([am__quote])
     646AC_MSG_RESULT([$_am_result])
     647rm -f confinc confmf
     648])
     649
     650#  -*- Autoconf -*-
     651
     652
     653# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
     654
     655# This program is free software; you can redistribute it and/or modify
     656# it under the terms of the GNU General Public License as published by
     657# the Free Software Foundation; either version 2, or (at your option)
     658# any later version.
     659
     660# This program is distributed in the hope that it will be useful,
     661# but WITHOUT ANY WARRANTY; without even the implied warranty of
     662# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     663# GNU General Public License for more details.
     664
     665# You should have received a copy of the GNU General Public License
     666# along with this program; if not, write to the Free Software
     667# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     668# 02111-1307, USA.
     669
     670# serial 3
     671
     672# AM_MISSING_PROG(NAME, PROGRAM)
     673# ------------------------------
     674AC_DEFUN([AM_MISSING_PROG],
     675[AC_REQUIRE([AM_MISSING_HAS_RUN])
     676$1=${$1-"${am_missing_run}$2"}
     677AC_SUBST($1)])
     678
     679
     680# AM_MISSING_HAS_RUN
     681# ------------------
     682# Define MISSING if not defined so far and test if it supports --run.
     683# If it does, set am_missing_run to use it, otherwise, to nothing.
     684AC_DEFUN([AM_MISSING_HAS_RUN],
     685[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
     686test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     687# Use eval to expand $SHELL
     688if eval "$MISSING --run true"; then
     689  am_missing_run="$MISSING --run "
     690else
     691  am_missing_run=
     692  AC_MSG_WARN([`missing' script is too old or missing])
     693fi
     694])
     695
     696# AM_PROG_MKDIR_P
     697# ---------------
     698# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
     699
     700# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
     701
     702# This program is free software; you can redistribute it and/or modify
     703# it under the terms of the GNU General Public License as published by
     704# the Free Software Foundation; either version 2, or (at your option)
     705# any later version.
     706
     707# This program is distributed in the hope that it will be useful,
     708# but WITHOUT ANY WARRANTY; without even the implied warranty of
     709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     710# GNU General Public License for more details.
     711
     712# You should have received a copy of the GNU General Public License
     713# along with this program; if not, write to the Free Software
     714# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
     715# 02111-1307, USA.
     716
     717# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
     718# created by `make install' are always world readable, even if the
     719# installer happens to have an overly restrictive umask (e.g. 077).
     720# This was a mistake.  There are at least two reasons why we must not
     721# use `-m 0755':
     722#   - it causes special bits like SGID to be ignored,
     723#   - it may be too restrictive (some setups expect 775 directories).
     724#
     725# Do not use -m 0755 and let people choose whatever they expect by
     726# setting umask.
     727#
     728# We cannot accept any implementation of `mkdir' that recognizes `-p'.
     729# Some implementations (such as Solaris 8's) are not thread-safe: if a
     730# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
     731# concurrently, both version can detect that a/ is missing, but only
     732# one can create it and the other will error out.  Consequently we
     733# restrict ourselves to GNU make (using the --version option ensures
     734# this.)
     735AC_DEFUN([AM_PROG_MKDIR_P],
     736[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     737  # Keeping the `.' argument allows $(mkdir_p) to be used without
     738  # argument.  Indeed, we sometimes output rules like
     739  #   $(mkdir_p) $(somedir)
     740  # where $(somedir) is conditionally defined.
     741  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
     742  # expensive solution, as it forces Make to start a sub-shell.)
     743  mkdir_p='mkdir -p -- .'
     744else
     745  # On NextStep and OpenStep, the `mkdir' command does not
     746  # recognize any option.  It will interpret all options as
     747  # directories to create, and then abort because `.' already
     748  # exists.
     749  for d in ./-p ./--version;
     750  do
     751    test -d $d && rmdir $d
     752  done
     753  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     754  if test -f "$ac_aux_dir/mkinstalldirs"; then
     755    mkdir_p='$(mkinstalldirs)'
     756  else
     757    mkdir_p='$(install_sh) -d'
     758  fi
     759fi
     760AC_SUBST([mkdir_p])])
    164761
    165762# Helper functions for option handling.                    -*- Autoconf -*-
    166763
    167 # Copyright 2001, 2002  Free Software Foundation, Inc.
     764# Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
    168765
    169766# This program is free software; you can redistribute it and/or modify
     
    211808#
    212809
    213 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
     810# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
    214811
    215812# This program is free software; you can redistribute it and/or modify
     
    271868AC_MSG_RESULT(yes)])
    272869
    273 #  -*- Autoconf -*-
    274 
    275 
    276 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
    277 
    278 # This program is free software; you can redistribute it and/or modify
    279 # it under the terms of the GNU General Public License as published by
    280 # the Free Software Foundation; either version 2, or (at your option)
    281 # any later version.
    282 
    283 # This program is distributed in the hope that it will be useful,
    284 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    285 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    286 # GNU General Public License for more details.
    287 
    288 # You should have received a copy of the GNU General Public License
    289 # along with this program; if not, write to the Free Software
    290 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    291 # 02111-1307, USA.
    292 
    293 # serial 3
    294 
    295 # AM_MISSING_PROG(NAME, PROGRAM)
    296 # ------------------------------
    297 AC_DEFUN([AM_MISSING_PROG],
    298 [AC_REQUIRE([AM_MISSING_HAS_RUN])
    299 $1=${$1-"${am_missing_run}$2"}
    300 AC_SUBST($1)])
    301 
    302 
    303 # AM_MISSING_HAS_RUN
    304 # ------------------
    305 # Define MISSING if not defined so far and test if it supports --run.
    306 # If it does, set am_missing_run to use it, otherwise, to nothing.
    307 AC_DEFUN([AM_MISSING_HAS_RUN],
    308 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    309 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    310 # Use eval to expand $SHELL
    311 if eval "$MISSING --run true"; then
    312   am_missing_run="$MISSING --run "
    313 else
    314   am_missing_run=
    315   AC_MSG_WARN([`missing' script is too old or missing])
    316 fi
    317 ])
    318 
    319 # AM_AUX_DIR_EXPAND
    320 
    321 # Copyright 2001 Free Software Foundation, Inc.
    322 
    323 # This program is free software; you can redistribute it and/or modify
    324 # it under the terms of the GNU General Public License as published by
    325 # the Free Software Foundation; either version 2, or (at your option)
    326 # any later version.
    327 
    328 # This program is distributed in the hope that it will be useful,
    329 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    331 # GNU General Public License for more details.
    332 
    333 # You should have received a copy of the GNU General Public License
    334 # along with this program; if not, write to the Free Software
    335 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    336 # 02111-1307, USA.
    337 
    338 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
    339 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
    340 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
    341 #
    342 # Of course, Automake must honor this variable whenever it calls a
    343 # tool from the auxiliary directory.  The problem is that $srcdir (and
    344 # therefore $ac_aux_dir as well) can be either absolute or relative,
    345 # depending on how configure is run.  This is pretty annoying, since
    346 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
    347 # source directory, any form will work fine, but in subdirectories a
    348 # relative path needs to be adjusted first.
    349 #
    350 # $ac_aux_dir/missing
    351 #    fails when called from a subdirectory if $ac_aux_dir is relative
    352 # $top_srcdir/$ac_aux_dir/missing
    353 #    fails if $ac_aux_dir is absolute,
    354 #    fails when called from a subdirectory in a VPATH build with
    355 #          a relative $ac_aux_dir
    356 #
    357 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
    358 # are both prefixed by $srcdir.  In an in-source build this is usually
    359 # harmless because $srcdir is `.', but things will broke when you
    360 # start a VPATH build or use an absolute $srcdir.
    361 #
    362 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
    363 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
    364 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
    365 # and then we would define $MISSING as
    366 #   MISSING="\${SHELL} $am_aux_dir/missing"
    367 # This will work as long as MISSING is not called from configure, because
    368 # unfortunately $(top_srcdir) has no meaning in configure.
    369 # However there are other variables, like CC, which are often used in
    370 # configure, and could therefore not use this "fixed" $ac_aux_dir.
    371 #
    372 # Another solution, used here, is to always expand $ac_aux_dir to an
    373 # absolute PATH.  The drawback is that using absolute paths prevent a
    374 # configured tree to be moved without reconfiguration.
    375 
    376 # Rely on autoconf to set up CDPATH properly.
    377 AC_PREREQ([2.50])
    378 
    379 AC_DEFUN([AM_AUX_DIR_EXPAND], [
    380 # expand $ac_aux_dir to an absolute path
    381 am_aux_dir=`cd $ac_aux_dir && pwd`
    382 ])
    383 
    384 # AM_PROG_INSTALL_SH
    385 # ------------------
    386 # Define $install_sh.
    387 
    388 # Copyright 2001 Free Software Foundation, Inc.
    389 
    390 # This program is free software; you can redistribute it and/or modify
    391 # it under the terms of the GNU General Public License as published by
    392 # the Free Software Foundation; either version 2, or (at your option)
    393 # any later version.
    394 
    395 # This program is distributed in the hope that it will be useful,
    396 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    397 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    398 # GNU General Public License for more details.
    399 
    400 # You should have received a copy of the GNU General Public License
    401 # along with this program; if not, write to the Free Software
    402 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    403 # 02111-1307, USA.
    404 
    405 AC_DEFUN([AM_PROG_INSTALL_SH],
    406 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    407 install_sh=${install_sh-"$am_aux_dir/install-sh"}
    408 AC_SUBST(install_sh)])
    409 
    410870# AM_PROG_INSTALL_STRIP
    411871
    412 # Copyright 2001 Free Software Foundation, Inc.
     872# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    413873
    414874# This program is free software; you can redistribute it and/or modify
     
    447907AC_SUBST([INSTALL_STRIP_PROGRAM])])
    448908
    449 # serial 4                                              -*- Autoconf -*-
    450 
    451 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
    452 
    453 # This program is free software; you can redistribute it and/or modify
    454 # it under the terms of the GNU General Public License as published by
    455 # the Free Software Foundation; either version 2, or (at your option)
    456 # any later version.
    457 
    458 # This program is distributed in the hope that it will be useful,
    459 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    460 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    461 # GNU General Public License for more details.
    462 
    463 # You should have received a copy of the GNU General Public License
    464 # along with this program; if not, write to the Free Software
    465 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    466 # 02111-1307, USA.
    467 
    468 
    469 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
    470 # written in clear, in which case automake, when reading aclocal.m4,
    471 # will think it sees a *use*, and therefore will trigger all it's
    472 # C support machinery.  Also note that it means that autoscan, seeing
    473 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
    474 
    475 
    476 
    477 # _AM_DEPENDENCIES(NAME)
    478 # ----------------------
    479 # See how the compiler implements dependency checking.
    480 # NAME is "CC", "CXX", "GCJ", or "OBJC".
    481 # We try a few techniques and use that to set a single cache variable.
    482 #
    483 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
    484 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
    485 # dependency, and given that the user is not expected to run this macro,
    486 # just rely on AC_PROG_CC.
    487 AC_DEFUN([_AM_DEPENDENCIES],
    488 [AC_REQUIRE([AM_SET_DEPDIR])dnl
    489 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
    490 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
    491 AC_REQUIRE([AM_DEP_TRACK])dnl
    492 
    493 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
    494        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
    495        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
    496        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
    497                    [depcc="$$1"   am_compiler_list=])
    498 
    499 AC_CACHE_CHECK([dependency style of $depcc],
    500                [am_cv_$1_dependencies_compiler_type],
    501 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    502   # We make a subdir and do the tests there.  Otherwise we can end up
    503   # making bogus files that we don't know about and never remove.  For
    504   # instance it was reported that on HP-UX the gcc test will end up
    505   # making a dummy file named `D' -- because `-MD' means `put the output
    506   # in D'.
    507   mkdir conftest.dir
    508   # Copy depcomp to subdir because otherwise we won't find it if we're
    509   # using a relative directory.
    510   cp "$am_depcomp" conftest.dir
    511   cd conftest.dir
    512 
    513   am_cv_$1_dependencies_compiler_type=none
    514   if test "$am_compiler_list" = ""; then
    515      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
    516   fi
    517   for depmode in $am_compiler_list; do
    518     # We need to recreate these files for each test, as the compiler may
    519     # overwrite some of them when testing with obscure command lines.
    520     # This happens at least with the AIX C compiler.
    521     echo '#include "conftest.h"' > conftest.c
    522     echo 'int i;' > conftest.h
    523     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
    524 
    525     case $depmode in
    526     nosideeffect)
    527       # after this tag, mechanisms are not by side-effect, so they'll
    528       # only be used when explicitly requested
    529       if test "x$enable_dependency_tracking" = xyes; then
    530         continue
    531       else
    532         break
    533       fi
    534       ;;
    535     none) break ;;
    536     esac
    537     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    538     # mode.  It turns out that the SunPro C++ compiler does not properly
    539     # handle `-M -o', and we need to detect this.
    540     if depmode=$depmode \
    541        source=conftest.c object=conftest.o \
    542        depfile=conftest.Po tmpdepfile=conftest.TPo \
    543        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
    544        grep conftest.h conftest.Po > /dev/null 2>&1 &&
    545        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    546       am_cv_$1_dependencies_compiler_type=$depmode
    547       break
    548     fi
    549   done
    550 
    551   cd ..
    552   rm -rf conftest.dir
    553 else
    554   am_cv_$1_dependencies_compiler_type=none
    555 fi
    556 ])
    557 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
    558 AM_CONDITIONAL([am__fastdep$1], [
    559   test "x$enable_dependency_tracking" != xno \
    560   && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
    561 ])
    562 
    563 
    564 # AM_SET_DEPDIR
    565 # -------------
    566 # Choose a directory name for dependency files.
    567 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
    568 AC_DEFUN([AM_SET_DEPDIR],
    569 [rm -f .deps 2>/dev/null
    570 mkdir .deps 2>/dev/null
    571 if test -d .deps; then
    572   DEPDIR=.deps
    573 else
    574   # MS-DOS does not allow filenames that begin with a dot.
    575   DEPDIR=_deps
    576 fi
    577 rmdir .deps 2>/dev/null
    578 AC_SUBST([DEPDIR])
    579 ])
    580 
    581 
    582 # AM_DEP_TRACK
    583 # ------------
    584 AC_DEFUN([AM_DEP_TRACK],
    585 [AC_ARG_ENABLE(dependency-tracking,
    586 [  --disable-dependency-tracking Speeds up one-time builds
    587   --enable-dependency-tracking  Do not reject slow dependency extractors])
    588 if test "x$enable_dependency_tracking" != xno; then
    589   am_depcomp="$ac_aux_dir/depcomp"
    590   AMDEPBACKSLASH='\'
    591 fi
    592 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
    593 AC_SUBST([AMDEPBACKSLASH])
    594 ])
    595 
    596 # Generate code to set up dependency tracking.   -*- Autoconf -*-
    597 
    598 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    599 
    600 # This program is free software; you can redistribute it and/or modify
    601 # it under the terms of the GNU General Public License as published by
    602 # the Free Software Foundation; either version 2, or (at your option)
    603 # any later version.
    604 
    605 # This program is distributed in the hope that it will be useful,
    606 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    608 # GNU General Public License for more details.
    609 
    610 # You should have received a copy of the GNU General Public License
    611 # along with this program; if not, write to the Free Software
    612 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    613 # 02111-1307, USA.
    614 
    615 #serial 2
    616 
    617 # _AM_OUTPUT_DEPENDENCY_COMMANDS
    618 # ------------------------------
    619 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
    620 [for mf in $CONFIG_FILES; do
    621   # Strip MF so we end up with the name of the file.
    622   mf=`echo "$mf" | sed -e 's/:.*$//'`
    623   # Check whether this is an Automake generated Makefile or not.
    624   # We used to match only the files named `Makefile.in', but
    625   # some people rename them; so instead we look at the file content.
    626   # Grep'ing the first line is not enough: some people post-process
    627   # each Makefile.in and add a new line on top of each file to say so.
    628   # So let's grep whole file.
    629   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
    630     dirpart=`AS_DIRNAME("$mf")`
    631   else
    632     continue
    633   fi
    634   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
    635   # Extract the definition of DEP_FILES from the Makefile without
    636   # running `make'.
    637   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
    638   test -z "$DEPDIR" && continue
    639   # When using ansi2knr, U may be empty or an underscore; expand it
    640   U=`sed -n -e '/^U = / s///p' < "$mf"`
    641   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
    642   # We invoke sed twice because it is the simplest approach to
    643   # changing $(DEPDIR) to its actual value in the expansion.
    644   for file in `sed -n -e '
    645     /^DEP_FILES = .*\\\\$/ {
    646       s/^DEP_FILES = //
    647       :loop
    648         s/\\\\$//
    649         p
    650         n
    651         /\\\\$/ b loop
    652       p
    653     }
    654     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
    655        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
    656     # Make sure the directory exists.
    657     test -f "$dirpart/$file" && continue
    658     fdir=`AS_DIRNAME(["$file"])`
    659     AS_MKDIR_P([$dirpart/$fdir])
    660     # echo "creating $dirpart/$file"
    661     echo '# dummy' > "$dirpart/$file"
    662   done
    663 done
    664 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
    665 
    666 
    667 # AM_OUTPUT_DEPENDENCY_COMMANDS
    668 # -----------------------------
    669 # This macro should only be invoked once -- use via AC_REQUIRE.
    670 #
    671 # This code is only required when automatic dependency tracking
    672 # is enabled.  FIXME.  This creates each `.P' file that we will
    673 # need in order to bootstrap the dependency handling code.
    674 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
    675 [AC_CONFIG_COMMANDS([depfiles],
    676      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
    677      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
    678 ])
    679 
    680 # Check to see how 'make' treats includes.      -*- Autoconf -*-
    681 
    682 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    683 
    684 # This program is free software; you can redistribute it and/or modify
    685 # it under the terms of the GNU General Public License as published by
    686 # the Free Software Foundation; either version 2, or (at your option)
    687 # any later version.
    688 
    689 # This program is distributed in the hope that it will be useful,
    690 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    692 # GNU General Public License for more details.
    693 
    694 # You should have received a copy of the GNU General Public License
    695 # along with this program; if not, write to the Free Software
    696 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    697 # 02111-1307, USA.
    698 
    699 # serial 2
    700 
    701 # AM_MAKE_INCLUDE()
    702 # -----------------
    703 # Check to see how make treats includes.
    704 AC_DEFUN([AM_MAKE_INCLUDE],
    705 [am_make=${MAKE-make}
    706 cat > confinc << 'END'
    707 doit:
    708         @echo done
    709 END
    710 # If we don't find an include directive, just comment out the code.
    711 AC_MSG_CHECKING([for style of include used by $am_make])
    712 am__include="#"
    713 am__quote=
    714 _am_result=none
    715 # First try GNU make style include.
    716 echo "include confinc" > confmf
    717 # We grep out `Entering directory' and `Leaving directory'
    718 # messages which can occur if `w' ends up in MAKEFLAGS.
    719 # In particular we don't look at `^make:' because GNU make might
    720 # be invoked under some other name (usually "gmake"), in which
    721 # case it prints its new name instead of `make'.
    722 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    723    am__include=include
    724    am__quote=
    725    _am_result=GNU
    726 fi
    727 # Now try BSD make style include.
    728 if test "$am__include" = "#"; then
    729    echo '.include "confinc"' > confmf
    730    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    731       am__include=.include
    732       am__quote="\""
    733       _am_result=BSD
    734    fi
    735 fi
    736 AC_SUBST(am__include)
    737 AC_SUBST(am__quote)
    738 AC_MSG_RESULT($_am_result)
    739 rm -f confinc confmf
    740 ])
    741 
    742 # AM_CONDITIONAL                                              -*- Autoconf -*-
    743 
    744 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
    745 
    746 # This program is free software; you can redistribute it and/or modify
    747 # it under the terms of the GNU General Public License as published by
    748 # the Free Software Foundation; either version 2, or (at your option)
    749 # any later version.
    750 
    751 # This program is distributed in the hope that it will be useful,
    752 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    754 # GNU General Public License for more details.
    755 
    756 # You should have received a copy of the GNU General Public License
    757 # along with this program; if not, write to the Free Software
    758 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    759 # 02111-1307, USA.
    760 
    761 # serial 5
    762 
    763 AC_PREREQ(2.52)
    764 
    765 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
    766 # -------------------------------------
    767 # Define a conditional.
    768 AC_DEFUN([AM_CONDITIONAL],
    769 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
    770         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
    771 AC_SUBST([$1_TRUE])
    772 AC_SUBST([$1_FALSE])
    773 if $2; then
    774   $1_TRUE=
    775   $1_FALSE='#'
    776 else
    777   $1_TRUE='#'
    778   $1_FALSE=
    779 fi
    780 AC_CONFIG_COMMANDS_PRE(
    781 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
    782   AC_MSG_ERROR([conditional "$1" was never defined.
    783 Usually this means the macro was only invoked conditionally.])
    784 fi])])
    785 
Note: See TracChangeset for help on using the changeset viewer.