masqmail

diff aclocal.m4 @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children af25f5c39d90
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/aclocal.m4	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,1018 @@
     1.4 +# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
     1.5 +
     1.6 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
     1.7 +# Free Software Foundation, Inc.
     1.8 +# This file is free software; the Free Software Foundation
     1.9 +# gives unlimited permission to copy and/or distribute it,
    1.10 +# with or without modifications, as long as this notice is preserved.
    1.11 +
    1.12 +# This program is distributed in the hope that it will be useful,
    1.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    1.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    1.15 +# PARTICULAR PURPOSE.
    1.16 +
    1.17 +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
    1.18 +
    1.19 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
    1.20 +
    1.21 +# This program is free software; you can redistribute it and/or modify
    1.22 +# it under the terms of the GNU General Public License as published by
    1.23 +# the Free Software Foundation; either version 2, or (at your option)
    1.24 +# any later version.
    1.25 +
    1.26 +# This program is distributed in the hope that it will be useful,
    1.27 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.28 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.29 +# GNU General Public License for more details.
    1.30 +
    1.31 +# You should have received a copy of the GNU General Public License
    1.32 +# along with this program; if not, write to the Free Software
    1.33 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.34 +# 02111-1307, USA.
    1.35 +
    1.36 +AC_PREREQ([2.52])
    1.37 +
    1.38 +# serial 6
    1.39 +
    1.40 +# AM_CONFIG_HEADER is obsolete.  It has been replaced by AC_CONFIG_HEADERS.
    1.41 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
    1.42 +
    1.43 +# Do all the work for Automake.                            -*- Autoconf -*-
    1.44 +
    1.45 +# This macro actually does too much some checks are only needed if
    1.46 +# your package does certain things.  But this isn't really a big deal.
    1.47 +
    1.48 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
    1.49 +# Free Software Foundation, Inc.
    1.50 +
    1.51 +# This program is free software; you can redistribute it and/or modify
    1.52 +# it under the terms of the GNU General Public License as published by
    1.53 +# the Free Software Foundation; either version 2, or (at your option)
    1.54 +# any later version.
    1.55 +
    1.56 +# This program is distributed in the hope that it will be useful,
    1.57 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.58 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.59 +# GNU General Public License for more details.
    1.60 +
    1.61 +# You should have received a copy of the GNU General Public License
    1.62 +# along with this program; if not, write to the Free Software
    1.63 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    1.64 +# 02111-1307, USA.
    1.65 +
    1.66 +# serial 10
    1.67 +
    1.68 +AC_PREREQ([2.54])
    1.69 +
    1.70 +# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
    1.71 +# the ones we care about.
    1.72 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
    1.73 +
    1.74 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
    1.75 +# AM_INIT_AUTOMAKE([OPTIONS])
    1.76 +# -----------------------------------------------
    1.77 +# The call with PACKAGE and VERSION arguments is the old style
    1.78 +# call (pre autoconf-2.50), which is being phased out.  PACKAGE
    1.79 +# and VERSION should now be passed to AC_INIT and removed from
    1.80 +# the call to AM_INIT_AUTOMAKE.
    1.81 +# We support both call styles for the transition.  After
    1.82 +# the next Automake release, Autoconf can make the AC_INIT
    1.83 +# arguments mandatory, and then we can depend on a new Autoconf
    1.84 +# release and drop the old call support.
    1.85 +AC_DEFUN([AM_INIT_AUTOMAKE],
    1.86 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
    1.87 + AC_REQUIRE([AC_PROG_INSTALL])dnl
    1.88 +# test to see if srcdir already configured
    1.89 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
    1.90 +   test -f $srcdir/config.status; then
    1.91 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
    1.92 +fi
    1.93 +
    1.94 +# test whether we have cygpath
    1.95 +if test -z "$CYGPATH_W"; then
    1.96 +  if (cygpath --version) >/dev/null 2>/dev/null; then
    1.97 +    CYGPATH_W='cygpath -w'
    1.98 +  else
    1.99 +    CYGPATH_W=echo
   1.100 +  fi
   1.101 +fi
   1.102 +AC_SUBST([CYGPATH_W])
   1.103 +
   1.104 +# Define the identity of the package.
   1.105 +dnl Distinguish between old-style and new-style calls.
   1.106 +m4_ifval([$2],
   1.107 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
   1.108 + AC_SUBST([PACKAGE], [$1])dnl
   1.109 + AC_SUBST([VERSION], [$2])],
   1.110 +[_AM_SET_OPTIONS([$1])dnl
   1.111 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
   1.112 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
   1.113 +
   1.114 +_AM_IF_OPTION([no-define],,
   1.115 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   1.116 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
   1.117 +
   1.118 +# Some tools Automake needs.
   1.119 +AC_REQUIRE([AM_SANITY_CHECK])dnl
   1.120 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
   1.121 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
   1.122 +AM_MISSING_PROG(AUTOCONF, autoconf)
   1.123 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
   1.124 +AM_MISSING_PROG(AUTOHEADER, autoheader)
   1.125 +AM_MISSING_PROG(MAKEINFO, makeinfo)
   1.126 +AM_MISSING_PROG(AMTAR, tar)
   1.127 +AM_PROG_INSTALL_SH
   1.128 +AM_PROG_INSTALL_STRIP
   1.129 +# We need awk for the "check" target.  The system "awk" is bad on
   1.130 +# some platforms.
   1.131 +AC_REQUIRE([AC_PROG_AWK])dnl
   1.132 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
   1.133 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   1.134 +
   1.135 +_AM_IF_OPTION([no-dependencies],,
   1.136 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
   1.137 +                  [_AM_DEPENDENCIES(CC)],
   1.138 +                  [define([AC_PROG_CC],
   1.139 +                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
   1.140 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
   1.141 +                  [_AM_DEPENDENCIES(CXX)],
   1.142 +                  [define([AC_PROG_CXX],
   1.143 +                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
   1.144 +])
   1.145 +])
   1.146 +
   1.147 +
   1.148 +# When config.status generates a header, we must update the stamp-h file.
   1.149 +# This file resides in the same directory as the config header
   1.150 +# that is generated.  The stamp files are numbered to have different names.
   1.151 +
   1.152 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
   1.153 +# loop where config.status creates the headers, so we can generate
   1.154 +# our stamp files there.
   1.155 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
   1.156 +[# Compute $1's index in $config_headers.
   1.157 +_am_stamp_count=1
   1.158 +for _am_header in $config_headers :; do
   1.159 +  case $_am_header in
   1.160 +    $1 | $1:* )
   1.161 +      break ;;
   1.162 +    * )
   1.163 +      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   1.164 +  esac
   1.165 +done
   1.166 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
   1.167 +
   1.168 +# Copyright 2002  Free Software Foundation, Inc.
   1.169 +
   1.170 +# This program is free software; you can redistribute it and/or modify
   1.171 +# it under the terms of the GNU General Public License as published by
   1.172 +# the Free Software Foundation; either version 2, or (at your option)
   1.173 +# any later version.
   1.174 +
   1.175 +# This program is distributed in the hope that it will be useful,
   1.176 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.177 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.178 +# GNU General Public License for more details.
   1.179 +
   1.180 +# You should have received a copy of the GNU General Public License
   1.181 +# along with this program; if not, write to the Free Software
   1.182 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.183 +
   1.184 +# AM_AUTOMAKE_VERSION(VERSION)
   1.185 +# ----------------------------
   1.186 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
   1.187 +# generated from the m4 files accompanying Automake X.Y.
   1.188 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
   1.189 +
   1.190 +# AM_SET_CURRENT_AUTOMAKE_VERSION
   1.191 +# -------------------------------
   1.192 +# Call AM_AUTOMAKE_VERSION so it can be traced.
   1.193 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
   1.194 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   1.195 +	 [AM_AUTOMAKE_VERSION([1.7.9])])
   1.196 +
   1.197 +# Helper functions for option handling.                    -*- Autoconf -*-
   1.198 +
   1.199 +# Copyright 2001, 2002  Free Software Foundation, Inc.
   1.200 +
   1.201 +# This program is free software; you can redistribute it and/or modify
   1.202 +# it under the terms of the GNU General Public License as published by
   1.203 +# the Free Software Foundation; either version 2, or (at your option)
   1.204 +# any later version.
   1.205 +
   1.206 +# This program is distributed in the hope that it will be useful,
   1.207 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.208 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.209 +# GNU General Public License for more details.
   1.210 +
   1.211 +# You should have received a copy of the GNU General Public License
   1.212 +# along with this program; if not, write to the Free Software
   1.213 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.214 +# 02111-1307, USA.
   1.215 +
   1.216 +# serial 2
   1.217 +
   1.218 +# _AM_MANGLE_OPTION(NAME)
   1.219 +# -----------------------
   1.220 +AC_DEFUN([_AM_MANGLE_OPTION],
   1.221 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
   1.222 +
   1.223 +# _AM_SET_OPTION(NAME)
   1.224 +# ------------------------------
   1.225 +# Set option NAME.  Presently that only means defining a flag for this option.
   1.226 +AC_DEFUN([_AM_SET_OPTION],
   1.227 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
   1.228 +
   1.229 +# _AM_SET_OPTIONS(OPTIONS)
   1.230 +# ----------------------------------
   1.231 +# OPTIONS is a space-separated list of Automake options.
   1.232 +AC_DEFUN([_AM_SET_OPTIONS],
   1.233 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
   1.234 +
   1.235 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
   1.236 +# -------------------------------------------
   1.237 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
   1.238 +AC_DEFUN([_AM_IF_OPTION],
   1.239 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
   1.240 +
   1.241 +#
   1.242 +# Check to make sure that the build environment is sane.
   1.243 +#
   1.244 +
   1.245 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
   1.246 +
   1.247 +# This program is free software; you can redistribute it and/or modify
   1.248 +# it under the terms of the GNU General Public License as published by
   1.249 +# the Free Software Foundation; either version 2, or (at your option)
   1.250 +# any later version.
   1.251 +
   1.252 +# This program is distributed in the hope that it will be useful,
   1.253 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.254 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.255 +# GNU General Public License for more details.
   1.256 +
   1.257 +# You should have received a copy of the GNU General Public License
   1.258 +# along with this program; if not, write to the Free Software
   1.259 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.260 +# 02111-1307, USA.
   1.261 +
   1.262 +# serial 3
   1.263 +
   1.264 +# AM_SANITY_CHECK
   1.265 +# ---------------
   1.266 +AC_DEFUN([AM_SANITY_CHECK],
   1.267 +[AC_MSG_CHECKING([whether build environment is sane])
   1.268 +# Just in case
   1.269 +sleep 1
   1.270 +echo timestamp > conftest.file
   1.271 +# Do `set' in a subshell so we don't clobber the current shell's
   1.272 +# arguments.  Must try -L first in case configure is actually a
   1.273 +# symlink; some systems play weird games with the mod time of symlinks
   1.274 +# (eg FreeBSD returns the mod time of the symlink's containing
   1.275 +# directory).
   1.276 +if (
   1.277 +   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   1.278 +   if test "$[*]" = "X"; then
   1.279 +      # -L didn't work.
   1.280 +      set X `ls -t $srcdir/configure conftest.file`
   1.281 +   fi
   1.282 +   rm -f conftest.file
   1.283 +   if test "$[*]" != "X $srcdir/configure conftest.file" \
   1.284 +      && test "$[*]" != "X conftest.file $srcdir/configure"; then
   1.285 +
   1.286 +      # If neither matched, then we have a broken ls.  This can happen
   1.287 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
   1.288 +      # broken ls alias from the environment.  This has actually
   1.289 +      # happened.  Such a system could not be considered "sane".
   1.290 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
   1.291 +alias in your environment])
   1.292 +   fi
   1.293 +
   1.294 +   test "$[2]" = conftest.file
   1.295 +   )
   1.296 +then
   1.297 +   # Ok.
   1.298 +   :
   1.299 +else
   1.300 +   AC_MSG_ERROR([newly created file is older than distributed files!
   1.301 +Check your system clock])
   1.302 +fi
   1.303 +AC_MSG_RESULT(yes)])
   1.304 +
   1.305 +#  -*- Autoconf -*-
   1.306 +
   1.307 +
   1.308 +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
   1.309 +
   1.310 +# This program is free software; you can redistribute it and/or modify
   1.311 +# it under the terms of the GNU General Public License as published by
   1.312 +# the Free Software Foundation; either version 2, or (at your option)
   1.313 +# any later version.
   1.314 +
   1.315 +# This program is distributed in the hope that it will be useful,
   1.316 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.317 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.318 +# GNU General Public License for more details.
   1.319 +
   1.320 +# You should have received a copy of the GNU General Public License
   1.321 +# along with this program; if not, write to the Free Software
   1.322 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.323 +# 02111-1307, USA.
   1.324 +
   1.325 +# serial 3
   1.326 +
   1.327 +# AM_MISSING_PROG(NAME, PROGRAM)
   1.328 +# ------------------------------
   1.329 +AC_DEFUN([AM_MISSING_PROG],
   1.330 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
   1.331 +$1=${$1-"${am_missing_run}$2"}
   1.332 +AC_SUBST($1)])
   1.333 +
   1.334 +
   1.335 +# AM_MISSING_HAS_RUN
   1.336 +# ------------------
   1.337 +# Define MISSING if not defined so far and test if it supports --run.
   1.338 +# If it does, set am_missing_run to use it, otherwise, to nothing.
   1.339 +AC_DEFUN([AM_MISSING_HAS_RUN],
   1.340 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   1.341 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   1.342 +# Use eval to expand $SHELL
   1.343 +if eval "$MISSING --run true"; then
   1.344 +  am_missing_run="$MISSING --run "
   1.345 +else
   1.346 +  am_missing_run=
   1.347 +  AC_MSG_WARN([`missing' script is too old or missing])
   1.348 +fi
   1.349 +])
   1.350 +
   1.351 +# AM_AUX_DIR_EXPAND
   1.352 +
   1.353 +# Copyright 2001 Free Software Foundation, Inc.
   1.354 +
   1.355 +# This program is free software; you can redistribute it and/or modify
   1.356 +# it under the terms of the GNU General Public License as published by
   1.357 +# the Free Software Foundation; either version 2, or (at your option)
   1.358 +# any later version.
   1.359 +
   1.360 +# This program is distributed in the hope that it will be useful,
   1.361 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.362 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.363 +# GNU General Public License for more details.
   1.364 +
   1.365 +# You should have received a copy of the GNU General Public License
   1.366 +# along with this program; if not, write to the Free Software
   1.367 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.368 +# 02111-1307, USA.
   1.369 +
   1.370 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
   1.371 +# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
   1.372 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
   1.373 +#
   1.374 +# Of course, Automake must honor this variable whenever it calls a
   1.375 +# tool from the auxiliary directory.  The problem is that $srcdir (and
   1.376 +# therefore $ac_aux_dir as well) can be either absolute or relative,
   1.377 +# depending on how configure is run.  This is pretty annoying, since
   1.378 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
   1.379 +# source directory, any form will work fine, but in subdirectories a
   1.380 +# relative path needs to be adjusted first.
   1.381 +#
   1.382 +# $ac_aux_dir/missing
   1.383 +#    fails when called from a subdirectory if $ac_aux_dir is relative
   1.384 +# $top_srcdir/$ac_aux_dir/missing
   1.385 +#    fails if $ac_aux_dir is absolute,
   1.386 +#    fails when called from a subdirectory in a VPATH build with
   1.387 +#          a relative $ac_aux_dir
   1.388 +#
   1.389 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
   1.390 +# are both prefixed by $srcdir.  In an in-source build this is usually
   1.391 +# harmless because $srcdir is `.', but things will broke when you
   1.392 +# start a VPATH build or use an absolute $srcdir.
   1.393 +#
   1.394 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
   1.395 +# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
   1.396 +#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
   1.397 +# and then we would define $MISSING as
   1.398 +#   MISSING="\${SHELL} $am_aux_dir/missing"
   1.399 +# This will work as long as MISSING is not called from configure, because
   1.400 +# unfortunately $(top_srcdir) has no meaning in configure.
   1.401 +# However there are other variables, like CC, which are often used in
   1.402 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
   1.403 +#
   1.404 +# Another solution, used here, is to always expand $ac_aux_dir to an
   1.405 +# absolute PATH.  The drawback is that using absolute paths prevent a
   1.406 +# configured tree to be moved without reconfiguration.
   1.407 +
   1.408 +# Rely on autoconf to set up CDPATH properly.
   1.409 +AC_PREREQ([2.50])
   1.410 +
   1.411 +AC_DEFUN([AM_AUX_DIR_EXPAND], [
   1.412 +# expand $ac_aux_dir to an absolute path
   1.413 +am_aux_dir=`cd $ac_aux_dir && pwd`
   1.414 +])
   1.415 +
   1.416 +# AM_PROG_INSTALL_SH
   1.417 +# ------------------
   1.418 +# Define $install_sh.
   1.419 +
   1.420 +# Copyright 2001 Free Software Foundation, Inc.
   1.421 +
   1.422 +# This program is free software; you can redistribute it and/or modify
   1.423 +# it under the terms of the GNU General Public License as published by
   1.424 +# the Free Software Foundation; either version 2, or (at your option)
   1.425 +# any later version.
   1.426 +
   1.427 +# This program is distributed in the hope that it will be useful,
   1.428 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.429 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.430 +# GNU General Public License for more details.
   1.431 +
   1.432 +# You should have received a copy of the GNU General Public License
   1.433 +# along with this program; if not, write to the Free Software
   1.434 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.435 +# 02111-1307, USA.
   1.436 +
   1.437 +AC_DEFUN([AM_PROG_INSTALL_SH],
   1.438 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
   1.439 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
   1.440 +AC_SUBST(install_sh)])
   1.441 +
   1.442 +# AM_PROG_INSTALL_STRIP
   1.443 +
   1.444 +# Copyright 2001 Free Software Foundation, Inc.
   1.445 +
   1.446 +# This program is free software; you can redistribute it and/or modify
   1.447 +# it under the terms of the GNU General Public License as published by
   1.448 +# the Free Software Foundation; either version 2, or (at your option)
   1.449 +# any later version.
   1.450 +
   1.451 +# This program is distributed in the hope that it will be useful,
   1.452 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.453 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.454 +# GNU General Public License for more details.
   1.455 +
   1.456 +# You should have received a copy of the GNU General Public License
   1.457 +# along with this program; if not, write to the Free Software
   1.458 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.459 +# 02111-1307, USA.
   1.460 +
   1.461 +# One issue with vendor `install' (even GNU) is that you can't
   1.462 +# specify the program used to strip binaries.  This is especially
   1.463 +# annoying in cross-compiling environments, where the build's strip
   1.464 +# is unlikely to handle the host's binaries.
   1.465 +# Fortunately install-sh will honor a STRIPPROG variable, so we
   1.466 +# always use install-sh in `make install-strip', and initialize
   1.467 +# STRIPPROG with the value of the STRIP variable (set by the user).
   1.468 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
   1.469 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
   1.470 +# Installed binaries are usually stripped using `strip' when the user
   1.471 +# run `make install-strip'.  However `strip' might not be the right
   1.472 +# tool to use in cross-compilation environments, therefore Automake
   1.473 +# will honor the `STRIP' environment variable to overrule this program.
   1.474 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
   1.475 +if test "$cross_compiling" != no; then
   1.476 +  AC_CHECK_TOOL([STRIP], [strip], :)
   1.477 +fi
   1.478 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   1.479 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
   1.480 +
   1.481 +#                                                          -*- Autoconf -*-
   1.482 +# Copyright (C) 2003  Free Software Foundation, Inc.
   1.483 +
   1.484 +# This program is free software; you can redistribute it and/or modify
   1.485 +# it under the terms of the GNU General Public License as published by
   1.486 +# the Free Software Foundation; either version 2, or (at your option)
   1.487 +# any later version.
   1.488 +
   1.489 +# This program is distributed in the hope that it will be useful,
   1.490 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.491 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.492 +# GNU General Public License for more details.
   1.493 +
   1.494 +# You should have received a copy of the GNU General Public License
   1.495 +# along with this program; if not, write to the Free Software
   1.496 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.497 +# 02111-1307, USA.
   1.498 +
   1.499 +# serial 1
   1.500 +
   1.501 +# Check whether the underlying file-system supports filenames
   1.502 +# with a leading dot.  For instance MS-DOS doesn't.
   1.503 +AC_DEFUN([AM_SET_LEADING_DOT],
   1.504 +[rm -rf .tst 2>/dev/null
   1.505 +mkdir .tst 2>/dev/null
   1.506 +if test -d .tst; then
   1.507 +  am__leading_dot=.
   1.508 +else
   1.509 +  am__leading_dot=_
   1.510 +fi
   1.511 +rmdir .tst 2>/dev/null
   1.512 +AC_SUBST([am__leading_dot])])
   1.513 +
   1.514 +# serial 5						-*- Autoconf -*-
   1.515 +
   1.516 +# Copyright (C) 1999, 2000, 2001, 2002, 2003  Free Software Foundation, Inc.
   1.517 +
   1.518 +# This program is free software; you can redistribute it and/or modify
   1.519 +# it under the terms of the GNU General Public License as published by
   1.520 +# the Free Software Foundation; either version 2, or (at your option)
   1.521 +# any later version.
   1.522 +
   1.523 +# This program is distributed in the hope that it will be useful,
   1.524 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.525 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.526 +# GNU General Public License for more details.
   1.527 +
   1.528 +# You should have received a copy of the GNU General Public License
   1.529 +# along with this program; if not, write to the Free Software
   1.530 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.531 +# 02111-1307, USA.
   1.532 +
   1.533 +
   1.534 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
   1.535 +# written in clear, in which case automake, when reading aclocal.m4,
   1.536 +# will think it sees a *use*, and therefore will trigger all it's
   1.537 +# C support machinery.  Also note that it means that autoscan, seeing
   1.538 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
   1.539 +
   1.540 +
   1.541 +
   1.542 +# _AM_DEPENDENCIES(NAME)
   1.543 +# ----------------------
   1.544 +# See how the compiler implements dependency checking.
   1.545 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
   1.546 +# We try a few techniques and use that to set a single cache variable.
   1.547 +#
   1.548 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
   1.549 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
   1.550 +# dependency, and given that the user is not expected to run this macro,
   1.551 +# just rely on AC_PROG_CC.
   1.552 +AC_DEFUN([_AM_DEPENDENCIES],
   1.553 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
   1.554 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
   1.555 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
   1.556 +AC_REQUIRE([AM_DEP_TRACK])dnl
   1.557 +
   1.558 +ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
   1.559 +       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
   1.560 +       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
   1.561 +       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
   1.562 +                   [depcc="$$1"   am_compiler_list=])
   1.563 +
   1.564 +AC_CACHE_CHECK([dependency style of $depcc],
   1.565 +               [am_cv_$1_dependencies_compiler_type],
   1.566 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   1.567 +  # We make a subdir and do the tests there.  Otherwise we can end up
   1.568 +  # making bogus files that we don't know about and never remove.  For
   1.569 +  # instance it was reported that on HP-UX the gcc test will end up
   1.570 +  # making a dummy file named `D' -- because `-MD' means `put the output
   1.571 +  # in D'.
   1.572 +  mkdir conftest.dir
   1.573 +  # Copy depcomp to subdir because otherwise we won't find it if we're
   1.574 +  # using a relative directory.
   1.575 +  cp "$am_depcomp" conftest.dir
   1.576 +  cd conftest.dir
   1.577 +  # We will build objects and dependencies in a subdirectory because
   1.578 +  # it helps to detect inapplicable dependency modes.  For instance
   1.579 +  # both Tru64's cc and ICC support -MD to output dependencies as a
   1.580 +  # side effect of compilation, but ICC will put the dependencies in
   1.581 +  # the current directory while Tru64 will put them in the object
   1.582 +  # directory.
   1.583 +  mkdir sub
   1.584 +
   1.585 +  am_cv_$1_dependencies_compiler_type=none
   1.586 +  if test "$am_compiler_list" = ""; then
   1.587 +     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
   1.588 +  fi
   1.589 +  for depmode in $am_compiler_list; do
   1.590 +    # Setup a source with many dependencies, because some compilers
   1.591 +    # like to wrap large dependency lists on column 80 (with \), and
   1.592 +    # we should not choose a depcomp mode which is confused by this.
   1.593 +    #
   1.594 +    # We need to recreate these files for each test, as the compiler may
   1.595 +    # overwrite some of them when testing with obscure command lines.
   1.596 +    # This happens at least with the AIX C compiler.
   1.597 +    : > sub/conftest.c
   1.598 +    for i in 1 2 3 4 5 6; do
   1.599 +      echo '#include "conftst'$i'.h"' >> sub/conftest.c
   1.600 +      : > sub/conftst$i.h
   1.601 +    done
   1.602 +    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   1.603 +
   1.604 +    case $depmode in
   1.605 +    nosideeffect)
   1.606 +      # after this tag, mechanisms are not by side-effect, so they'll
   1.607 +      # only be used when explicitly requested
   1.608 +      if test "x$enable_dependency_tracking" = xyes; then
   1.609 +	continue
   1.610 +      else
   1.611 +	break
   1.612 +      fi
   1.613 +      ;;
   1.614 +    none) break ;;
   1.615 +    esac
   1.616 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
   1.617 +    # mode.  It turns out that the SunPro C++ compiler does not properly
   1.618 +    # handle `-M -o', and we need to detect this.
   1.619 +    if depmode=$depmode \
   1.620 +       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   1.621 +       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   1.622 +       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   1.623 +         >/dev/null 2>conftest.err &&
   1.624 +       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   1.625 +       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   1.626 +       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   1.627 +      # icc doesn't choke on unknown options, it will just issue warnings
   1.628 +      # (even with -Werror).  So we grep stderr for any message
   1.629 +      # that says an option was ignored.
   1.630 +      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
   1.631 +        am_cv_$1_dependencies_compiler_type=$depmode
   1.632 +        break
   1.633 +      fi
   1.634 +    fi
   1.635 +  done
   1.636 +
   1.637 +  cd ..
   1.638 +  rm -rf conftest.dir
   1.639 +else
   1.640 +  am_cv_$1_dependencies_compiler_type=none
   1.641 +fi
   1.642 +])
   1.643 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
   1.644 +AM_CONDITIONAL([am__fastdep$1], [
   1.645 +  test "x$enable_dependency_tracking" != xno \
   1.646 +  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
   1.647 +])
   1.648 +
   1.649 +
   1.650 +# AM_SET_DEPDIR
   1.651 +# -------------
   1.652 +# Choose a directory name for dependency files.
   1.653 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
   1.654 +AC_DEFUN([AM_SET_DEPDIR],
   1.655 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
   1.656 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
   1.657 +])
   1.658 +
   1.659 +
   1.660 +# AM_DEP_TRACK
   1.661 +# ------------
   1.662 +AC_DEFUN([AM_DEP_TRACK],
   1.663 +[AC_ARG_ENABLE(dependency-tracking,
   1.664 +[  --disable-dependency-tracking Speeds up one-time builds
   1.665 +  --enable-dependency-tracking  Do not reject slow dependency extractors])
   1.666 +if test "x$enable_dependency_tracking" != xno; then
   1.667 +  am_depcomp="$ac_aux_dir/depcomp"
   1.668 +  AMDEPBACKSLASH='\'
   1.669 +fi
   1.670 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
   1.671 +AC_SUBST([AMDEPBACKSLASH])
   1.672 +])
   1.673 +
   1.674 +# Generate code to set up dependency tracking.   -*- Autoconf -*-
   1.675 +
   1.676 +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
   1.677 +
   1.678 +# This program is free software; you can redistribute it and/or modify
   1.679 +# it under the terms of the GNU General Public License as published by
   1.680 +# the Free Software Foundation; either version 2, or (at your option)
   1.681 +# any later version.
   1.682 +
   1.683 +# This program is distributed in the hope that it will be useful,
   1.684 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.685 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.686 +# GNU General Public License for more details.
   1.687 +
   1.688 +# You should have received a copy of the GNU General Public License
   1.689 +# along with this program; if not, write to the Free Software
   1.690 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.691 +# 02111-1307, USA.
   1.692 +
   1.693 +#serial 2
   1.694 +
   1.695 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
   1.696 +# ------------------------------
   1.697 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.698 +[for mf in $CONFIG_FILES; do
   1.699 +  # Strip MF so we end up with the name of the file.
   1.700 +  mf=`echo "$mf" | sed -e 's/:.*$//'`
   1.701 +  # Check whether this is an Automake generated Makefile or not.
   1.702 +  # We used to match only the files named `Makefile.in', but
   1.703 +  # some people rename them; so instead we look at the file content.
   1.704 +  # Grep'ing the first line is not enough: some people post-process
   1.705 +  # each Makefile.in and add a new line on top of each file to say so.
   1.706 +  # So let's grep whole file.
   1.707 +  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
   1.708 +    dirpart=`AS_DIRNAME("$mf")`
   1.709 +  else
   1.710 +    continue
   1.711 +  fi
   1.712 +  grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
   1.713 +  # Extract the definition of DEP_FILES from the Makefile without
   1.714 +  # running `make'.
   1.715 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
   1.716 +  test -z "$DEPDIR" && continue
   1.717 +  # When using ansi2knr, U may be empty or an underscore; expand it
   1.718 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
   1.719 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
   1.720 +  # We invoke sed twice because it is the simplest approach to
   1.721 +  # changing $(DEPDIR) to its actual value in the expansion.
   1.722 +  for file in `sed -n -e '
   1.723 +    /^DEP_FILES = .*\\\\$/ {
   1.724 +      s/^DEP_FILES = //
   1.725 +      :loop
   1.726 +	s/\\\\$//
   1.727 +	p
   1.728 +	n
   1.729 +	/\\\\$/ b loop
   1.730 +      p
   1.731 +    }
   1.732 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
   1.733 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
   1.734 +    # Make sure the directory exists.
   1.735 +    test -f "$dirpart/$file" && continue
   1.736 +    fdir=`AS_DIRNAME(["$file"])`
   1.737 +    AS_MKDIR_P([$dirpart/$fdir])
   1.738 +    # echo "creating $dirpart/$file"
   1.739 +    echo '# dummy' > "$dirpart/$file"
   1.740 +  done
   1.741 +done
   1.742 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
   1.743 +
   1.744 +
   1.745 +# AM_OUTPUT_DEPENDENCY_COMMANDS
   1.746 +# -----------------------------
   1.747 +# This macro should only be invoked once -- use via AC_REQUIRE.
   1.748 +#
   1.749 +# This code is only required when automatic dependency tracking
   1.750 +# is enabled.  FIXME.  This creates each `.P' file that we will
   1.751 +# need in order to bootstrap the dependency handling code.
   1.752 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.753 +[AC_CONFIG_COMMANDS([depfiles],
   1.754 +     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
   1.755 +     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
   1.756 +])
   1.757 +
   1.758 +# Check to see how 'make' treats includes.	-*- Autoconf -*-
   1.759 +
   1.760 +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
   1.761 +
   1.762 +# This program is free software; you can redistribute it and/or modify
   1.763 +# it under the terms of the GNU General Public License as published by
   1.764 +# the Free Software Foundation; either version 2, or (at your option)
   1.765 +# any later version.
   1.766 +
   1.767 +# This program is distributed in the hope that it will be useful,
   1.768 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.769 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.770 +# GNU General Public License for more details.
   1.771 +
   1.772 +# You should have received a copy of the GNU General Public License
   1.773 +# along with this program; if not, write to the Free Software
   1.774 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.775 +# 02111-1307, USA.
   1.776 +
   1.777 +# serial 2
   1.778 +
   1.779 +# AM_MAKE_INCLUDE()
   1.780 +# -----------------
   1.781 +# Check to see how make treats includes.
   1.782 +AC_DEFUN([AM_MAKE_INCLUDE],
   1.783 +[am_make=${MAKE-make}
   1.784 +cat > confinc << 'END'
   1.785 +am__doit:
   1.786 +	@echo done
   1.787 +.PHONY: am__doit
   1.788 +END
   1.789 +# If we don't find an include directive, just comment out the code.
   1.790 +AC_MSG_CHECKING([for style of include used by $am_make])
   1.791 +am__include="#"
   1.792 +am__quote=
   1.793 +_am_result=none
   1.794 +# First try GNU make style include.
   1.795 +echo "include confinc" > confmf
   1.796 +# We grep out `Entering directory' and `Leaving directory'
   1.797 +# messages which can occur if `w' ends up in MAKEFLAGS.
   1.798 +# In particular we don't look at `^make:' because GNU make might
   1.799 +# be invoked under some other name (usually "gmake"), in which
   1.800 +# case it prints its new name instead of `make'.
   1.801 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   1.802 +   am__include=include
   1.803 +   am__quote=
   1.804 +   _am_result=GNU
   1.805 +fi
   1.806 +# Now try BSD make style include.
   1.807 +if test "$am__include" = "#"; then
   1.808 +   echo '.include "confinc"' > confmf
   1.809 +   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   1.810 +      am__include=.include
   1.811 +      am__quote="\""
   1.812 +      _am_result=BSD
   1.813 +   fi
   1.814 +fi
   1.815 +AC_SUBST([am__include])
   1.816 +AC_SUBST([am__quote])
   1.817 +AC_MSG_RESULT([$_am_result])
   1.818 +rm -f confinc confmf
   1.819 +])
   1.820 +
   1.821 +# AM_CONDITIONAL                                              -*- Autoconf -*-
   1.822 +
   1.823 +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
   1.824 +
   1.825 +# This program is free software; you can redistribute it and/or modify
   1.826 +# it under the terms of the GNU General Public License as published by
   1.827 +# the Free Software Foundation; either version 2, or (at your option)
   1.828 +# any later version.
   1.829 +
   1.830 +# This program is distributed in the hope that it will be useful,
   1.831 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.832 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.833 +# GNU General Public License for more details.
   1.834 +
   1.835 +# You should have received a copy of the GNU General Public License
   1.836 +# along with this program; if not, write to the Free Software
   1.837 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   1.838 +# 02111-1307, USA.
   1.839 +
   1.840 +# serial 5
   1.841 +
   1.842 +AC_PREREQ(2.52)
   1.843 +
   1.844 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
   1.845 +# -------------------------------------
   1.846 +# Define a conditional.
   1.847 +AC_DEFUN([AM_CONDITIONAL],
   1.848 +[ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
   1.849 +        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
   1.850 +AC_SUBST([$1_TRUE])
   1.851 +AC_SUBST([$1_FALSE])
   1.852 +if $2; then
   1.853 +  $1_TRUE=
   1.854 +  $1_FALSE='#'
   1.855 +else
   1.856 +  $1_TRUE='#'
   1.857 +  $1_FALSE=
   1.858 +fi
   1.859 +AC_CONFIG_COMMANDS_PRE(
   1.860 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
   1.861 +  AC_MSG_ERROR([conditional "$1" was never defined.
   1.862 +Usually this means the macro was only invoked conditionally.])
   1.863 +fi])])
   1.864 +
   1.865 +# isc-posix.m4 serial 2 (gettext-0.11.2)
   1.866 +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
   1.867 +dnl This file is free software; the Free Software Foundation
   1.868 +dnl gives unlimited permission to copy and/or distribute it,
   1.869 +dnl with or without modifications, as long as this notice is preserved.
   1.870 +
   1.871 +# This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.
   1.872 +
   1.873 +# This test replaces the one in autoconf.
   1.874 +# Currently this macro should have the same name as the autoconf macro
   1.875 +# because gettext's gettext.m4 (distributed in the automake package)
   1.876 +# still uses it.  Otherwise, the use in gettext.m4 makes autoheader
   1.877 +# give these diagnostics:
   1.878 +#   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
   1.879 +#   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
   1.880 +
   1.881 +undefine([AC_ISC_POSIX])
   1.882 +
   1.883 +AC_DEFUN([AC_ISC_POSIX],
   1.884 +  [
   1.885 +    dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
   1.886 +    AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
   1.887 +  ]
   1.888 +)
   1.889 +
   1.890 +# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
   1.891 +# 
   1.892 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
   1.893 +#
   1.894 +# This program is free software; you can redistribute it and/or modify
   1.895 +# it under the terms of the GNU General Public License as published by
   1.896 +# the Free Software Foundation; either version 2 of the License, or
   1.897 +# (at your option) any later version.
   1.898 +#
   1.899 +# This program is distributed in the hope that it will be useful, but
   1.900 +# WITHOUT ANY WARRANTY; without even the implied warranty of
   1.901 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   1.902 +# General Public License for more details.
   1.903 +#
   1.904 +# You should have received a copy of the GNU General Public License
   1.905 +# along with this program; if not, write to the Free Software
   1.906 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   1.907 +#
   1.908 +# As a special exception to the GNU General Public License, if you
   1.909 +# distribute this file as part of a program that contains a
   1.910 +# configuration script generated by Autoconf, you may include it under
   1.911 +# the same distribution terms that you use for the rest of that program.
   1.912 +
   1.913 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
   1.914 +# ----------------------------------
   1.915 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
   1.916 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
   1.917 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
   1.918 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
   1.919 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   1.920 +	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
   1.921 +fi
   1.922 +if test -n "$PKG_CONFIG"; then
   1.923 +	_pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
   1.924 +	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
   1.925 +	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   1.926 +		AC_MSG_RESULT([yes])
   1.927 +	else
   1.928 +		AC_MSG_RESULT([no])
   1.929 +		PKG_CONFIG=""
   1.930 +	fi
   1.931 +		
   1.932 +fi[]dnl
   1.933 +])# PKG_PROG_PKG_CONFIG
   1.934 +
   1.935 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
   1.936 +#
   1.937 +# Check to see whether a particular set of modules exists.  Similar
   1.938 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
   1.939 +#
   1.940 +#
   1.941 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
   1.942 +# this or PKG_CHECK_MODULES is called, or make sure to call
   1.943 +# PKG_CHECK_EXISTS manually
   1.944 +# --------------------------------------------------------------
   1.945 +AC_DEFUN([PKG_CHECK_EXISTS],
   1.946 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
   1.947 +if test -n "$PKG_CONFIG" && \
   1.948 +    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
   1.949 +  m4_ifval([$2], [$2], [:])
   1.950 +m4_ifvaln([$3], [else
   1.951 +  $3])dnl
   1.952 +fi])
   1.953 +
   1.954 +
   1.955 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
   1.956 +# ---------------------------------------------
   1.957 +m4_define([_PKG_CONFIG],
   1.958 +[if test -n "$PKG_CONFIG"; then
   1.959 +        PKG_CHECK_EXISTS([$3],
   1.960 +                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
   1.961 +			 [pkg_failed=yes])
   1.962 +else
   1.963 +	pkg_failed=untried
   1.964 +fi[]dnl
   1.965 +])# _PKG_CONFIG
   1.966 +
   1.967 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
   1.968 +# [ACTION-IF-NOT-FOUND])
   1.969 +#
   1.970 +#
   1.971 +# Note that if there is a possibility the first call to
   1.972 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
   1.973 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
   1.974 +#
   1.975 +#
   1.976 +# --------------------------------------------------------------
   1.977 +AC_DEFUN([PKG_CHECK_MODULES],
   1.978 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
   1.979 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
   1.980 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
   1.981 +
   1.982 +pkg_failed=no
   1.983 +AC_MSG_CHECKING([for $1])
   1.984 +
   1.985 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
   1.986 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
   1.987 +
   1.988 +if test $pkg_failed = yes; then
   1.989 +	$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
   1.990 +	# Put the nasty error message in config.log where it belongs
   1.991 +	echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
   1.992 +
   1.993 +	ifelse([$4], , [AC_MSG_ERROR(dnl
   1.994 +[Package requirements ($2) were not met.
   1.995 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
   1.996 +installed software in a non-standard prefix.
   1.997 +
   1.998 +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
   1.999 +to avoid the need to call pkg-config.  See the pkg-config man page for
  1.1000 +more details.])],
  1.1001 +		[$4])
  1.1002 +elif test $pkg_failed = untried; then
  1.1003 +	ifelse([$4], , [AC_MSG_FAILURE(dnl
  1.1004 +[The pkg-config script could not be found or is too old.  Make sure it
  1.1005 +is in your PATH or set the PKG_CONFIG environment variable to the full
  1.1006 +path to pkg-config.
  1.1007 +
  1.1008 +Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
  1.1009 +to avoid the need to call pkg-config.  See the pkg-config man page for
  1.1010 +more details.
  1.1011 +
  1.1012 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
  1.1013 +		[$4])
  1.1014 +else
  1.1015 +	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  1.1016 +	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  1.1017 +        AC_MSG_RESULT([yes])
  1.1018 +	ifelse([$3], , :, [$3])
  1.1019 +fi[]dnl
  1.1020 +])# PKG_CHECK_MODULES
  1.1021 +