Deleted Added
sdiff udiff text old ( 127808 ) new ( 142403 )
full compact
1# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4# 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
14# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
15
16# serial 47 AC_PROG_LIBTOOL
17
18
19# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20# -----------------------------------------------------------
21# If this macro is not defined by Autoconf, define it here.

--- 5892 unchanged lines hidden (view full) ---

5914 fi
5915 done
5916done
5917SED=$lt_cv_path_SED
5918])
5919AC_MSG_RESULT([$SED])
5920])
5921
5922# -*- Autoconf -*-
5923# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
5924# Generated from amversion.in; do not edit by hand.
5925
5926# This program is free software; you can redistribute it and/or modify
5927# it under the terms of the GNU General Public License as published by
5928# the Free Software Foundation; either version 2, or (at your option)
5929# any later version.
5930
5931# This program is distributed in the hope that it will be useful,
5932# but WITHOUT ANY WARRANTY; without even the implied warranty of
5933# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5934# GNU General Public License for more details.
5935
5936# You should have received a copy of the GNU General Public License
5937# along with this program; if not, write to the Free Software
5938# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5939
5940# AM_AUTOMAKE_VERSION(VERSION)
5941# ----------------------------
5942# Automake X.Y traces this macro to ensure aclocal.m4 has been
5943# generated from the m4 files accompanying Automake X.Y.
5944AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
5945
5946# AM_SET_CURRENT_AUTOMAKE_VERSION
5947# -------------------------------
5948# Call AM_AUTOMAKE_VERSION so it can be traced.
5949# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
5950AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
5951 [AM_AUTOMAKE_VERSION([1.8.3])])
5952
5953# AM_AUX_DIR_EXPAND
5954
5955# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
5956
5957# This program is free software; you can redistribute it and/or modify
5958# it under the terms of the GNU General Public License as published by
5959# the Free Software Foundation; either version 2, or (at your option)
5960# any later version.
5961
5962# This program is distributed in the hope that it will be useful,
5963# but WITHOUT ANY WARRANTY; without even the implied warranty of
5964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5965# GNU General Public License for more details.
5966
5967# You should have received a copy of the GNU General Public License
5968# along with this program; if not, write to the Free Software
5969# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
5970# 02111-1307, USA.
5971
5972# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
5973# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
5974# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
5975#
5976# Of course, Automake must honor this variable whenever it calls a
5977# tool from the auxiliary directory. The problem is that $srcdir (and
5978# therefore $ac_aux_dir as well) can be either absolute or relative,
5979# depending on how configure is run. This is pretty annoying, since
5980# it makes $ac_aux_dir quite unusable in subdirectories: in the top
5981# source directory, any form will work fine, but in subdirectories a
5982# relative path needs to be adjusted first.
5983#
5984# $ac_aux_dir/missing
5985# fails when called from a subdirectory if $ac_aux_dir is relative
5986# $top_srcdir/$ac_aux_dir/missing
5987# fails if $ac_aux_dir is absolute,
5988# fails when called from a subdirectory in a VPATH build with
5989# a relative $ac_aux_dir
5990#
5991# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
5992# are both prefixed by $srcdir. In an in-source build this is usually
5993# harmless because $srcdir is `.', but things will broke when you
5994# start a VPATH build or use an absolute $srcdir.
5995#
5996# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
5997# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
5998# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
5999# and then we would define $MISSING as
6000# MISSING="\${SHELL} $am_aux_dir/missing"
6001# This will work as long as MISSING is not called from configure, because
6002# unfortunately $(top_srcdir) has no meaning in configure.
6003# However there are other variables, like CC, which are often used in
6004# configure, and could therefore not use this "fixed" $ac_aux_dir.
6005#
6006# Another solution, used here, is to always expand $ac_aux_dir to an
6007# absolute PATH. The drawback is that using absolute paths prevent a
6008# configured tree to be moved without reconfiguration.
6009
6010AC_DEFUN([AM_AUX_DIR_EXPAND],
6011[dnl Rely on autoconf to set up CDPATH properly.
6012AC_PREREQ([2.50])dnl
6013# expand $ac_aux_dir to an absolute path
6014am_aux_dir=`cd $ac_aux_dir && pwd`
6015])
6016
6017# AM_CONDITIONAL -*- Autoconf -*-
6018
6019# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6020
6021# This program is free software; you can redistribute it and/or modify
6022# it under the terms of the GNU General Public License as published by
6023# the Free Software Foundation; either version 2, or (at your option)
6024# any later version.
6025
6026# This program is distributed in the hope that it will be useful,
6027# but WITHOUT ANY WARRANTY; without even the implied warranty of
6028# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6029# GNU General Public License for more details.
6030
6031# You should have received a copy of the GNU General Public License
6032# along with this program; if not, write to the Free Software
6033# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6034# 02111-1307, USA.
6035
6036# serial 6
6037
6038# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6039# -------------------------------------
6040# Define a conditional.
6041AC_DEFUN([AM_CONDITIONAL],
6042[AC_PREREQ(2.52)dnl
6043 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6044 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6045AC_SUBST([$1_TRUE])
6046AC_SUBST([$1_FALSE])
6047if $2; then
6048 $1_TRUE=
6049 $1_FALSE='#'
6050else
6051 $1_TRUE='#'
6052 $1_FALSE=
6053fi
6054AC_CONFIG_COMMANDS_PRE(
6055[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6056 AC_MSG_ERROR([conditional "$1" was never defined.
6057Usually this means the macro was only invoked conditionally.])
6058fi])])
6059
6060# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
6061
6062# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6063
6064# This program is free software; you can redistribute it and/or modify
6065# it under the terms of the GNU General Public License as published by
6066# the Free Software Foundation; either version 2, or (at your option)
6067# any later version.
6068
6069# This program is distributed in the hope that it will be useful,
6070# but WITHOUT ANY WARRANTY; without even the implied warranty of
6071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6072# GNU General Public License for more details.
6073
6074# You should have received a copy of the GNU General Public License
6075# along with this program; if not, write to the Free Software
6076# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6077# 02111-1307, USA.
6078
6079# serial 7
6080
6081# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6082AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6083
6084# Do all the work for Automake. -*- Autoconf -*-
6085
6086# This macro actually does too much some checks are only needed if
6087# your package does certain things. But this isn't really a big deal.
6088
6089# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
6090# Free Software Foundation, Inc.
6091
6092# This program is free software; you can redistribute it and/or modify
6093# it under the terms of the GNU General Public License as published by
6094# the Free Software Foundation; either version 2, or (at your option)
6095# any later version.
6096
6097# This program is distributed in the hope that it will be useful,
6098# but WITHOUT ANY WARRANTY; without even the implied warranty of
6099# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6100# GNU General Public License for more details.
6101
6102# You should have received a copy of the GNU General Public License
6103# along with this program; if not, write to the Free Software
6104# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6105# 02111-1307, USA.
6106
6107# serial 11
6108
6109# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6110# AM_INIT_AUTOMAKE([OPTIONS])
6111# -----------------------------------------------
6112# The call with PACKAGE and VERSION arguments is the old style
6113# call (pre autoconf-2.50), which is being phased out. PACKAGE
6114# and VERSION should now be passed to AC_INIT and removed from
6115# the call to AM_INIT_AUTOMAKE.
6116# We support both call styles for the transition. After
6117# the next Automake release, Autoconf can make the AC_INIT
6118# arguments mandatory, and then we can depend on a new Autoconf
6119# release and drop the old call support.
6120AC_DEFUN([AM_INIT_AUTOMAKE],
6121[AC_PREREQ([2.58])dnl
6122dnl Autoconf wants to disallow AM_ names. We explicitly allow
6123dnl the ones we care about.
6124m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6125AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6126AC_REQUIRE([AC_PROG_INSTALL])dnl
6127# test to see if srcdir already configured
6128if test "`cd $srcdir && pwd`" != "`pwd`" &&
6129 test -f $srcdir/config.status; then
6130 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6131fi
6132
6133# test whether we have cygpath
6134if test -z "$CYGPATH_W"; then
6135 if (cygpath --version) >/dev/null 2>/dev/null; then
6136 CYGPATH_W='cygpath -w'
6137 else
6138 CYGPATH_W=echo
6139 fi
6140fi
6141AC_SUBST([CYGPATH_W])
6142
6143# Define the identity of the package.
6144dnl Distinguish between old-style and new-style calls.
6145m4_ifval([$2],
6146[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6147 AC_SUBST([PACKAGE], [$1])dnl
6148 AC_SUBST([VERSION], [$2])],
6149[_AM_SET_OPTIONS([$1])dnl
6150 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6151 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6152
6153_AM_IF_OPTION([no-define],,
6154[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6155 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6156
6157# Some tools Automake needs.
6158AC_REQUIRE([AM_SANITY_CHECK])dnl
6159AC_REQUIRE([AC_ARG_PROGRAM])dnl
6160AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6161AM_MISSING_PROG(AUTOCONF, autoconf)
6162AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6163AM_MISSING_PROG(AUTOHEADER, autoheader)
6164AM_MISSING_PROG(MAKEINFO, makeinfo)
6165AM_MISSING_PROG(AMTAR, tar)
6166AM_PROG_INSTALL_SH
6167AM_PROG_INSTALL_STRIP
6168AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6169# We need awk for the "check" target. The system "awk" is bad on
6170# some platforms.
6171AC_REQUIRE([AC_PROG_AWK])dnl
6172AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6173AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6174
6175_AM_IF_OPTION([no-dependencies],,
6176[AC_PROVIDE_IFELSE([AC_PROG_CC],
6177 [_AM_DEPENDENCIES(CC)],
6178 [define([AC_PROG_CC],
6179 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6180AC_PROVIDE_IFELSE([AC_PROG_CXX],
6181 [_AM_DEPENDENCIES(CXX)],
6182 [define([AC_PROG_CXX],
6183 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6184])
6185])
6186
6187
6188# When config.status generates a header, we must update the stamp-h file.
6189# This file resides in the same directory as the config header
6190# that is generated. The stamp files are numbered to have different names.
6191
6192# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6193# loop where config.status creates the headers, so we can generate
6194# our stamp files there.
6195AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6196[# Compute $1's index in $config_headers.
6197_am_stamp_count=1
6198for _am_header in $config_headers :; do
6199 case $_am_header in
6200 $1 | $1:* )
6201 break ;;
6202 * )
6203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6204 esac
6205done
6206echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6207
6208# AM_PROG_INSTALL_SH
6209# ------------------
6210# Define $install_sh.
6211
6212# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6213
6214# This program is free software; you can redistribute it and/or modify
6215# it under the terms of the GNU General Public License as published by
6216# the Free Software Foundation; either version 2, or (at your option)
6217# any later version.
6218
6219# This program is distributed in the hope that it will be useful,
6220# but WITHOUT ANY WARRANTY; without even the implied warranty of
6221# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6222# GNU General Public License for more details.
6223
6224# You should have received a copy of the GNU General Public License
6225# along with this program; if not, write to the Free Software
6226# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6227# 02111-1307, USA.
6228
6229AC_DEFUN([AM_PROG_INSTALL_SH],
6230[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6231install_sh=${install_sh-"$am_aux_dir/install-sh"}
6232AC_SUBST(install_sh)])
6233
6234# -*- Autoconf -*-
6235# Copyright (C) 2003 Free Software Foundation, Inc.
6236
6237# This program is free software; you can redistribute it and/or modify
6238# it under the terms of the GNU General Public License as published by
6239# the Free Software Foundation; either version 2, or (at your option)
6240# any later version.
6241
6242# This program is distributed in the hope that it will be useful,
6243# but WITHOUT ANY WARRANTY; without even the implied warranty of
6244# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6245# GNU General Public License for more details.
6246
6247# You should have received a copy of the GNU General Public License
6248# along with this program; if not, write to the Free Software
6249# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6250# 02111-1307, USA.
6251
6252# serial 1
6253
6254# Check whether the underlying file-system supports filenames
6255# with a leading dot. For instance MS-DOS doesn't.
6256AC_DEFUN([AM_SET_LEADING_DOT],
6257[rm -rf .tst 2>/dev/null
6258mkdir .tst 2>/dev/null
6259if test -d .tst; then
6260 am__leading_dot=.
6261else
6262 am__leading_dot=_
6263fi
6264rmdir .tst 2>/dev/null
6265AC_SUBST([am__leading_dot])])
6266
6267
6268# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
6269# Free Software Foundation, Inc.
6270
6271# This program is free software; you can redistribute it and/or modify
6272# it under the terms of the GNU General Public License as published by
6273# the Free Software Foundation; either version 2, or (at your option)
6274# any later version.
6275
6276# This program is distributed in the hope that it will be useful,
6277# but WITHOUT ANY WARRANTY; without even the implied warranty of
6278# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6279# GNU General Public License for more details.
6280
6281# You should have received a copy of the GNU General Public License
6282# along with this program; if not, write to the Free Software
6283# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6284# 02111-1307, USA.
6285
6286# serial 4
6287
6288# AM_PROG_LEX
6289# -----------
6290# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
6291# "missing" invocation, for better error output.
6292AC_DEFUN([AM_PROG_LEX],
6293[AC_PREREQ(2.50)dnl
6294AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
6295AC_REQUIRE([AC_PROG_LEX])dnl
6296if test "$LEX" = :; then
6297 LEX=${am_missing_run}flex
6298fi])
6299
6300# Add --enable-maintainer-mode option to configure.
6301# From Jim Meyering
6302
6303# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
6304# Free Software Foundation, Inc.
6305
6306# This program is free software; you can redistribute it and/or modify
6307# it under the terms of the GNU General Public License as published by
6308# the Free Software Foundation; either version 2, or (at your option)
6309# any later version.
6310
6311# This program is distributed in the hope that it will be useful,
6312# but WITHOUT ANY WARRANTY; without even the implied warranty of
6313# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6314# GNU General Public License for more details.
6315
6316# You should have received a copy of the GNU General Public License
6317# along with this program; if not, write to the Free Software
6318# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6319# 02111-1307, USA.
6320
6321# serial 3
6322
6323AC_DEFUN([AM_MAINTAINER_MODE],
6324[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
6325 dnl maintainer-mode is disabled by default
6326 AC_ARG_ENABLE(maintainer-mode,
6327[ --enable-maintainer-mode enable make rules and dependencies not useful
6328 (and sometimes confusing) to the casual installer],
6329 USE_MAINTAINER_MODE=$enableval,
6330 USE_MAINTAINER_MODE=no)
6331 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
6332 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
6333 MAINT=$MAINTAINER_MODE_TRUE
6334 AC_SUBST(MAINT)dnl
6335]
6336)
6337
6338AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
6339
6340# -*- Autoconf -*-
6341
6342
6343# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
6344
6345# This program is free software; you can redistribute it and/or modify
6346# it under the terms of the GNU General Public License as published by
6347# the Free Software Foundation; either version 2, or (at your option)
6348# any later version.
6349
6350# This program is distributed in the hope that it will be useful,
6351# but WITHOUT ANY WARRANTY; without even the implied warranty of
6352# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6353# GNU General Public License for more details.
6354
6355# You should have received a copy of the GNU General Public License
6356# along with this program; if not, write to the Free Software
6357# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6358# 02111-1307, USA.
6359
6360# serial 3
6361
6362# AM_MISSING_PROG(NAME, PROGRAM)
6363# ------------------------------
6364AC_DEFUN([AM_MISSING_PROG],
6365[AC_REQUIRE([AM_MISSING_HAS_RUN])
6366$1=${$1-"${am_missing_run}$2"}
6367AC_SUBST($1)])
6368
6369
6370# AM_MISSING_HAS_RUN
6371# ------------------
6372# Define MISSING if not defined so far and test if it supports --run.
6373# If it does, set am_missing_run to use it, otherwise, to nothing.
6374AC_DEFUN([AM_MISSING_HAS_RUN],
6375[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6376test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6377# Use eval to expand $SHELL
6378if eval "$MISSING --run true"; then
6379 am_missing_run="$MISSING --run "
6380else
6381 am_missing_run=
6382 AC_MSG_WARN([`missing' script is too old or missing])
6383fi
6384])
6385
6386# AM_PROG_MKDIR_P
6387# ---------------
6388# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6389
6390# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
6391
6392# This program is free software; you can redistribute it and/or modify
6393# it under the terms of the GNU General Public License as published by
6394# the Free Software Foundation; either version 2, or (at your option)
6395# any later version.
6396
6397# This program is distributed in the hope that it will be useful,
6398# but WITHOUT ANY WARRANTY; without even the implied warranty of
6399# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6400# GNU General Public License for more details.
6401
6402# You should have received a copy of the GNU General Public License
6403# along with this program; if not, write to the Free Software
6404# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6405# 02111-1307, USA.
6406
6407# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6408# created by `make install' are always world readable, even if the
6409# installer happens to have an overly restrictive umask (e.g. 077).
6410# This was a mistake. There are at least two reasons why we must not
6411# use `-m 0755':
6412# - it causes special bits like SGID to be ignored,
6413# - it may be too restrictive (some setups expect 775 directories).
6414#
6415# Do not use -m 0755 and let people choose whatever they expect by
6416# setting umask.
6417#
6418# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6419# Some implementations (such as Solaris 8's) are not thread-safe: if a
6420# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6421# concurrently, both version can detect that a/ is missing, but only
6422# one can create it and the other will error out. Consequently we
6423# restrict ourselves to GNU make (using the --version option ensures
6424# this.)
6425AC_DEFUN([AM_PROG_MKDIR_P],
6426[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6427 # Keeping the `.' argument allows $(mkdir_p) to be used without
6428 # argument. Indeed, we sometimes output rules like
6429 # $(mkdir_p) $(somedir)
6430 # where $(somedir) is conditionally defined.
6431 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
6432 # expensive solution, as it forces Make to start a sub-shell.)
6433 mkdir_p='mkdir -p -- .'
6434else
6435 # On NextStep and OpenStep, the `mkdir' command does not
6436 # recognize any option. It will interpret all options as
6437 # directories to create, and then abort because `.' already
6438 # exists.
6439 for d in ./-p ./--version;
6440 do
6441 test -d $d && rmdir $d
6442 done
6443 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6444 if test -f "$ac_aux_dir/mkinstalldirs"; then
6445 mkdir_p='$(mkinstalldirs)'
6446 else
6447 mkdir_p='$(install_sh) -d'
6448 fi
6449fi
6450AC_SUBST([mkdir_p])])
6451
6452# Helper functions for option handling. -*- Autoconf -*-
6453
6454# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
6455
6456# This program is free software; you can redistribute it and/or modify
6457# it under the terms of the GNU General Public License as published by
6458# the Free Software Foundation; either version 2, or (at your option)
6459# any later version.
6460
6461# This program is distributed in the hope that it will be useful,
6462# but WITHOUT ANY WARRANTY; without even the implied warranty of
6463# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6464# GNU General Public License for more details.
6465
6466# You should have received a copy of the GNU General Public License
6467# along with this program; if not, write to the Free Software
6468# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6469# 02111-1307, USA.
6470
6471# serial 2
6472
6473# _AM_MANGLE_OPTION(NAME)
6474# -----------------------
6475AC_DEFUN([_AM_MANGLE_OPTION],
6476[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
6477
6478# _AM_SET_OPTION(NAME)
6479# ------------------------------
6480# Set option NAME. Presently that only means defining a flag for this option.
6481AC_DEFUN([_AM_SET_OPTION],
6482[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
6483
6484# _AM_SET_OPTIONS(OPTIONS)
6485# ----------------------------------
6486# OPTIONS is a space-separated list of Automake options.
6487AC_DEFUN([_AM_SET_OPTIONS],
6488[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
6489
6490# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
6491# -------------------------------------------
6492# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
6493AC_DEFUN([_AM_IF_OPTION],
6494[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
6495
6496#
6497# Check to make sure that the build environment is sane.
6498#
6499
6500# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
6501
6502# This program is free software; you can redistribute it and/or modify
6503# it under the terms of the GNU General Public License as published by
6504# the Free Software Foundation; either version 2, or (at your option)
6505# any later version.
6506
6507# This program is distributed in the hope that it will be useful,
6508# but WITHOUT ANY WARRANTY; without even the implied warranty of
6509# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6510# GNU General Public License for more details.
6511
6512# You should have received a copy of the GNU General Public License
6513# along with this program; if not, write to the Free Software
6514# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6515# 02111-1307, USA.
6516
6517# serial 3
6518
6519# AM_SANITY_CHECK
6520# ---------------
6521AC_DEFUN([AM_SANITY_CHECK],
6522[AC_MSG_CHECKING([whether build environment is sane])
6523# Just in case
6524sleep 1
6525echo timestamp > conftest.file
6526# Do `set' in a subshell so we don't clobber the current shell's
6527# arguments. Must try -L first in case configure is actually a
6528# symlink; some systems play weird games with the mod time of symlinks
6529# (eg FreeBSD returns the mod time of the symlink's containing
6530# directory).
6531if (
6532 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6533 if test "$[*]" = "X"; then
6534 # -L didn't work.
6535 set X `ls -t $srcdir/configure conftest.file`
6536 fi
6537 rm -f conftest.file
6538 if test "$[*]" != "X $srcdir/configure conftest.file" \
6539 && test "$[*]" != "X conftest.file $srcdir/configure"; then
6540
6541 # If neither matched, then we have a broken ls. This can happen
6542 # if, for instance, CONFIG_SHELL is bash and it inherits a
6543 # broken ls alias from the environment. This has actually
6544 # happened. Such a system could not be considered "sane".
6545 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
6546alias in your environment])
6547 fi
6548
6549 test "$[2]" = conftest.file
6550 )
6551then
6552 # Ok.
6553 :
6554else
6555 AC_MSG_ERROR([newly created file is older than distributed files!
6556Check your system clock])
6557fi
6558AC_MSG_RESULT(yes)])
6559
6560# AM_PROG_INSTALL_STRIP
6561
6562# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
6563
6564# This program is free software; you can redistribute it and/or modify
6565# it under the terms of the GNU General Public License as published by
6566# the Free Software Foundation; either version 2, or (at your option)
6567# any later version.
6568
6569# This program is distributed in the hope that it will be useful,
6570# but WITHOUT ANY WARRANTY; without even the implied warranty of
6571# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6572# GNU General Public License for more details.
6573
6574# You should have received a copy of the GNU General Public License
6575# along with this program; if not, write to the Free Software
6576# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6577# 02111-1307, USA.
6578
6579# One issue with vendor `install' (even GNU) is that you can't
6580# specify the program used to strip binaries. This is especially
6581# annoying in cross-compiling environments, where the build's strip
6582# is unlikely to handle the host's binaries.
6583# Fortunately install-sh will honor a STRIPPROG variable, so we
6584# always use install-sh in `make install-strip', and initialize
6585# STRIPPROG with the value of the STRIP variable (set by the user).
6586AC_DEFUN([AM_PROG_INSTALL_STRIP],
6587[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
6588# Installed binaries are usually stripped using `strip' when the user
6589# run `make install-strip'. However `strip' might not be the right
6590# tool to use in cross-compilation environments, therefore Automake
6591# will honor the `STRIP' environment variable to overrule this program.
6592dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
6593if test "$cross_compiling" != no; then
6594 AC_CHECK_TOOL([STRIP], [strip], :)
6595fi
6596INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6597AC_SUBST([INSTALL_STRIP_PROGRAM])])
6598
6599m4_include([cf/aix.m4])
6600m4_include([cf/auth-modules.m4])
6601m4_include([cf/broken-getaddrinfo.m4])
6602m4_include([cf/broken-getnameinfo.m4])
6603m4_include([cf/broken-glob.m4])
6604m4_include([cf/broken-realloc.m4])
6605m4_include([cf/broken-snprintf.m4])
6606m4_include([cf/broken.m4])
6607m4_include([cf/broken2.m4])
6608m4_include([cf/c-attribute.m4])
6609m4_include([cf/capabilities.m4])
6610m4_include([cf/check-compile-et.m4])
6611m4_include([cf/check-declaration.m4])
6612m4_include([cf/check-getpwnam_r-posix.m4])
6613m4_include([cf/check-man.m4])
6614m4_include([cf/check-netinet-ip-and-tcp.m4])
6615m4_include([cf/check-type-extra.m4])
6616m4_include([cf/check-var.m4])
6617m4_include([cf/check-x.m4])
6618m4_include([cf/check-xau.m4])
6619m4_include([cf/crypto.m4])
6620m4_include([cf/db.m4])
6621m4_include([cf/destdirs.m4])
6622m4_include([cf/dlopen.m4])
6623m4_include([cf/find-func-no-libs.m4])
6624m4_include([cf/find-func-no-libs2.m4])
6625m4_include([cf/find-func.m4])
6626m4_include([cf/find-if-not-broken.m4])
6627m4_include([cf/have-struct-field.m4])
6628m4_include([cf/have-type.m4])
6629m4_include([cf/irix.m4])
6630m4_include([cf/krb-bigendian.m4])
6631m4_include([cf/krb-func-getlogin.m4])
6632m4_include([cf/krb-ipv6.m4])
6633m4_include([cf/krb-prog-ln-s.m4])
6634m4_include([cf/krb-readline.m4])
6635m4_include([cf/krb-struct-spwd.m4])
6636m4_include([cf/krb-struct-winsize.m4])
6637m4_include([cf/mips-abi.m4])
6638m4_include([cf/misc.m4])
6639m4_include([cf/need-proto.m4])
6640m4_include([cf/osfc2.m4])
6641m4_include([cf/otp.m4])
6642m4_include([cf/proto-compat.m4])
6643m4_include([cf/retsigtype.m4])
6644m4_include([cf/roken-frag.m4])
6645m4_include([cf/sunos.m4])
6646m4_include([cf/telnet.m4])
6647m4_include([cf/test-package.m4])
6648m4_include([cf/wflags.m4])
6649m4_include([cf/with-all.m4])