Deleted Added
full compact
1c1
< # generated automatically by aclocal 1.7.9 -*- Autoconf -*-
---
> # generated automatically by aclocal 1.8.3 -*- Autoconf -*-
3c3
< # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
---
> # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
14,1082d13
< # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
<
< # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< AC_PREREQ([2.52])
<
< # serial 6
<
< # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
< AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
<
< # Do all the work for Automake. -*- Autoconf -*-
<
< # This macro actually does too much some checks are only needed if
< # your package does certain things. But this isn't really a big deal.
<
< # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
< # Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 10
<
< AC_PREREQ([2.54])
<
< # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
< # the ones we care about.
< m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
<
< # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
< # AM_INIT_AUTOMAKE([OPTIONS])
< # -----------------------------------------------
< # The call with PACKAGE and VERSION arguments is the old style
< # call (pre autoconf-2.50), which is being phased out. PACKAGE
< # and VERSION should now be passed to AC_INIT and removed from
< # the call to AM_INIT_AUTOMAKE.
< # We support both call styles for the transition. After
< # the next Automake release, Autoconf can make the AC_INIT
< # arguments mandatory, and then we can depend on a new Autoconf
< # release and drop the old call support.
< AC_DEFUN([AM_INIT_AUTOMAKE],
< [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
< AC_REQUIRE([AC_PROG_INSTALL])dnl
< # test to see if srcdir already configured
< if test "`cd $srcdir && pwd`" != "`pwd`" &&
< test -f $srcdir/config.status; then
< AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
< fi
<
< # test whether we have cygpath
< if test -z "$CYGPATH_W"; then
< if (cygpath --version) >/dev/null 2>/dev/null; then
< CYGPATH_W='cygpath -w'
< else
< CYGPATH_W=echo
< fi
< fi
< AC_SUBST([CYGPATH_W])
<
< # Define the identity of the package.
< dnl Distinguish between old-style and new-style calls.
< m4_ifval([$2],
< [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
< AC_SUBST([PACKAGE], [$1])dnl
< AC_SUBST([VERSION], [$2])],
< [_AM_SET_OPTIONS([$1])dnl
< AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
< AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
<
< _AM_IF_OPTION([no-define],,
< [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
< AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
<
< # Some tools Automake needs.
< AC_REQUIRE([AM_SANITY_CHECK])dnl
< AC_REQUIRE([AC_ARG_PROGRAM])dnl
< AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
< AM_MISSING_PROG(AUTOCONF, autoconf)
< AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
< AM_MISSING_PROG(AUTOHEADER, autoheader)
< AM_MISSING_PROG(MAKEINFO, makeinfo)
< AM_MISSING_PROG(AMTAR, tar)
< AM_PROG_INSTALL_SH
< AM_PROG_INSTALL_STRIP
< # We need awk for the "check" target. The system "awk" is bad on
< # some platforms.
< AC_REQUIRE([AC_PROG_AWK])dnl
< AC_REQUIRE([AC_PROG_MAKE_SET])dnl
< AC_REQUIRE([AM_SET_LEADING_DOT])dnl
<
< _AM_IF_OPTION([no-dependencies],,
< [AC_PROVIDE_IFELSE([AC_PROG_CC],
< [_AM_DEPENDENCIES(CC)],
< [define([AC_PROG_CC],
< defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
< AC_PROVIDE_IFELSE([AC_PROG_CXX],
< [_AM_DEPENDENCIES(CXX)],
< [define([AC_PROG_CXX],
< defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
< ])
< ])
<
<
< # When config.status generates a header, we must update the stamp-h file.
< # This file resides in the same directory as the config header
< # that is generated. The stamp files are numbered to have different names.
<
< # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
< # loop where config.status creates the headers, so we can generate
< # our stamp files there.
< AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
< [# Compute $1's index in $config_headers.
< _am_stamp_count=1
< for _am_header in $config_headers :; do
< case $_am_header in
< $1 | $1:* )
< break ;;
< * )
< _am_stamp_count=`expr $_am_stamp_count + 1` ;;
< esac
< done
< echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
<
< # Copyright 2002 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
<
< # AM_AUTOMAKE_VERSION(VERSION)
< # ----------------------------
< # Automake X.Y traces this macro to ensure aclocal.m4 has been
< # generated from the m4 files accompanying Automake X.Y.
< AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
<
< # AM_SET_CURRENT_AUTOMAKE_VERSION
< # -------------------------------
< # Call AM_AUTOMAKE_VERSION so it can be traced.
< # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
< AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
< [AM_AUTOMAKE_VERSION([1.7.9])])
<
< # Helper functions for option handling. -*- Autoconf -*-
<
< # Copyright 2001, 2002 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 2
<
< # _AM_MANGLE_OPTION(NAME)
< # -----------------------
< AC_DEFUN([_AM_MANGLE_OPTION],
< [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
<
< # _AM_SET_OPTION(NAME)
< # ------------------------------
< # Set option NAME. Presently that only means defining a flag for this option.
< AC_DEFUN([_AM_SET_OPTION],
< [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
<
< # _AM_SET_OPTIONS(OPTIONS)
< # ----------------------------------
< # OPTIONS is a space-separated list of Automake options.
< AC_DEFUN([_AM_SET_OPTIONS],
< [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
<
< # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
< # -------------------------------------------
< # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
< AC_DEFUN([_AM_IF_OPTION],
< [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
<
< #
< # Check to make sure that the build environment is sane.
< #
<
< # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 3
<
< # AM_SANITY_CHECK
< # ---------------
< AC_DEFUN([AM_SANITY_CHECK],
< [AC_MSG_CHECKING([whether build environment is sane])
< # Just in case
< sleep 1
< echo timestamp > conftest.file
< # Do `set' in a subshell so we don't clobber the current shell's
< # arguments. Must try -L first in case configure is actually a
< # symlink; some systems play weird games with the mod time of symlinks
< # (eg FreeBSD returns the mod time of the symlink's containing
< # directory).
< if (
< set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
< if test "$[*]" = "X"; then
< # -L didn't work.
< set X `ls -t $srcdir/configure conftest.file`
< fi
< rm -f conftest.file
< if test "$[*]" != "X $srcdir/configure conftest.file" \
< && test "$[*]" != "X conftest.file $srcdir/configure"; then
<
< # If neither matched, then we have a broken ls. This can happen
< # if, for instance, CONFIG_SHELL is bash and it inherits a
< # broken ls alias from the environment. This has actually
< # happened. Such a system could not be considered "sane".
< AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
< alias in your environment])
< fi
<
< test "$[2]" = conftest.file
< )
< then
< # Ok.
< :
< else
< AC_MSG_ERROR([newly created file is older than distributed files!
< Check your system clock])
< fi
< AC_MSG_RESULT(yes)])
<
< # -*- Autoconf -*-
<
<
< # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 3
<
< # AM_MISSING_PROG(NAME, PROGRAM)
< # ------------------------------
< AC_DEFUN([AM_MISSING_PROG],
< [AC_REQUIRE([AM_MISSING_HAS_RUN])
< $1=${$1-"${am_missing_run}$2"}
< AC_SUBST($1)])
<
<
< # AM_MISSING_HAS_RUN
< # ------------------
< # Define MISSING if not defined so far and test if it supports --run.
< # If it does, set am_missing_run to use it, otherwise, to nothing.
< AC_DEFUN([AM_MISSING_HAS_RUN],
< [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
< test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
< # Use eval to expand $SHELL
< if eval "$MISSING --run true"; then
< am_missing_run="$MISSING --run "
< else
< am_missing_run=
< AC_MSG_WARN([`missing' script is too old or missing])
< fi
< ])
<
< # AM_AUX_DIR_EXPAND
<
< # Copyright 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
< # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
< # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
< #
< # Of course, Automake must honor this variable whenever it calls a
< # tool from the auxiliary directory. The problem is that $srcdir (and
< # therefore $ac_aux_dir as well) can be either absolute or relative,
< # depending on how configure is run. This is pretty annoying, since
< # it makes $ac_aux_dir quite unusable in subdirectories: in the top
< # source directory, any form will work fine, but in subdirectories a
< # relative path needs to be adjusted first.
< #
< # $ac_aux_dir/missing
< # fails when called from a subdirectory if $ac_aux_dir is relative
< # $top_srcdir/$ac_aux_dir/missing
< # fails if $ac_aux_dir is absolute,
< # fails when called from a subdirectory in a VPATH build with
< # a relative $ac_aux_dir
< #
< # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
< # are both prefixed by $srcdir. In an in-source build this is usually
< # harmless because $srcdir is `.', but things will broke when you
< # start a VPATH build or use an absolute $srcdir.
< #
< # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
< # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
< # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
< # and then we would define $MISSING as
< # MISSING="\${SHELL} $am_aux_dir/missing"
< # This will work as long as MISSING is not called from configure, because
< # unfortunately $(top_srcdir) has no meaning in configure.
< # However there are other variables, like CC, which are often used in
< # configure, and could therefore not use this "fixed" $ac_aux_dir.
< #
< # Another solution, used here, is to always expand $ac_aux_dir to an
< # absolute PATH. The drawback is that using absolute paths prevent a
< # configured tree to be moved without reconfiguration.
<
< # Rely on autoconf to set up CDPATH properly.
< AC_PREREQ([2.50])
<
< AC_DEFUN([AM_AUX_DIR_EXPAND], [
< # expand $ac_aux_dir to an absolute path
< am_aux_dir=`cd $ac_aux_dir && pwd`
< ])
<
< # AM_PROG_INSTALL_SH
< # ------------------
< # Define $install_sh.
<
< # Copyright 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< AC_DEFUN([AM_PROG_INSTALL_SH],
< [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
< install_sh=${install_sh-"$am_aux_dir/install-sh"}
< AC_SUBST(install_sh)])
<
< # AM_PROG_INSTALL_STRIP
<
< # Copyright 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # One issue with vendor `install' (even GNU) is that you can't
< # specify the program used to strip binaries. This is especially
< # annoying in cross-compiling environments, where the build's strip
< # is unlikely to handle the host's binaries.
< # Fortunately install-sh will honor a STRIPPROG variable, so we
< # always use install-sh in `make install-strip', and initialize
< # STRIPPROG with the value of the STRIP variable (set by the user).
< AC_DEFUN([AM_PROG_INSTALL_STRIP],
< [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
< # Installed binaries are usually stripped using `strip' when the user
< # run `make install-strip'. However `strip' might not be the right
< # tool to use in cross-compilation environments, therefore Automake
< # will honor the `STRIP' environment variable to overrule this program.
< dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
< if test "$cross_compiling" != no; then
< AC_CHECK_TOOL([STRIP], [strip], :)
< fi
< INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
< AC_SUBST([INSTALL_STRIP_PROGRAM])])
<
< # -*- Autoconf -*-
< # Copyright (C) 2003 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 1
<
< # Check whether the underlying file-system supports filenames
< # with a leading dot. For instance MS-DOS doesn't.
< AC_DEFUN([AM_SET_LEADING_DOT],
< [rm -rf .tst 2>/dev/null
< mkdir .tst 2>/dev/null
< if test -d .tst; then
< am__leading_dot=.
< else
< am__leading_dot=_
< fi
< rmdir .tst 2>/dev/null
< AC_SUBST([am__leading_dot])])
<
< # serial 5 -*- Autoconf -*-
<
< # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
<
< # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
< # written in clear, in which case automake, when reading aclocal.m4,
< # will think it sees a *use*, and therefore will trigger all it's
< # C support machinery. Also note that it means that autoscan, seeing
< # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
<
<
<
< # _AM_DEPENDENCIES(NAME)
< # ----------------------
< # See how the compiler implements dependency checking.
< # NAME is "CC", "CXX", "GCJ", or "OBJC".
< # We try a few techniques and use that to set a single cache variable.
< #
< # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
< # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
< # dependency, and given that the user is not expected to run this macro,
< # just rely on AC_PROG_CC.
< AC_DEFUN([_AM_DEPENDENCIES],
< [AC_REQUIRE([AM_SET_DEPDIR])dnl
< AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
< AC_REQUIRE([AM_MAKE_INCLUDE])dnl
< AC_REQUIRE([AM_DEP_TRACK])dnl
<
< ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
< [$1], CXX, [depcc="$CXX" am_compiler_list=],
< [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
< [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
< [depcc="$$1" am_compiler_list=])
<
< AC_CACHE_CHECK([dependency style of $depcc],
< [am_cv_$1_dependencies_compiler_type],
< [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
< # We make a subdir and do the tests there. Otherwise we can end up
< # making bogus files that we don't know about and never remove. For
< # instance it was reported that on HP-UX the gcc test will end up
< # making a dummy file named `D' -- because `-MD' means `put the output
< # in D'.
< mkdir conftest.dir
< # Copy depcomp to subdir because otherwise we won't find it if we're
< # using a relative directory.
< cp "$am_depcomp" conftest.dir
< cd conftest.dir
< # We will build objects and dependencies in a subdirectory because
< # it helps to detect inapplicable dependency modes. For instance
< # both Tru64's cc and ICC support -MD to output dependencies as a
< # side effect of compilation, but ICC will put the dependencies in
< # the current directory while Tru64 will put them in the object
< # directory.
< mkdir sub
<
< am_cv_$1_dependencies_compiler_type=none
< if test "$am_compiler_list" = ""; then
< am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
< fi
< for depmode in $am_compiler_list; do
< # Setup a source with many dependencies, because some compilers
< # like to wrap large dependency lists on column 80 (with \), and
< # we should not choose a depcomp mode which is confused by this.
< #
< # We need to recreate these files for each test, as the compiler may
< # overwrite some of them when testing with obscure command lines.
< # This happens at least with the AIX C compiler.
< : > sub/conftest.c
< for i in 1 2 3 4 5 6; do
< echo '#include "conftst'$i'.h"' >> sub/conftest.c
< : > sub/conftst$i.h
< done
< echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
<
< case $depmode in
< nosideeffect)
< # after this tag, mechanisms are not by side-effect, so they'll
< # only be used when explicitly requested
< if test "x$enable_dependency_tracking" = xyes; then
< continue
< else
< break
< fi
< ;;
< none) break ;;
< esac
< # We check with `-c' and `-o' for the sake of the "dashmstdout"
< # mode. It turns out that the SunPro C++ compiler does not properly
< # handle `-M -o', and we need to detect this.
< if depmode=$depmode \
< source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
< depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
< $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
< >/dev/null 2>conftest.err &&
< grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
< grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
< ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
< # icc doesn't choke on unknown options, it will just issue warnings
< # (even with -Werror). So we grep stderr for any message
< # that says an option was ignored.
< if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
< am_cv_$1_dependencies_compiler_type=$depmode
< break
< fi
< fi
< done
<
< cd ..
< rm -rf conftest.dir
< else
< am_cv_$1_dependencies_compiler_type=none
< fi
< ])
< AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
< AM_CONDITIONAL([am__fastdep$1], [
< test "x$enable_dependency_tracking" != xno \
< && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
< ])
<
<
< # AM_SET_DEPDIR
< # -------------
< # Choose a directory name for dependency files.
< # This macro is AC_REQUIREd in _AM_DEPENDENCIES
< AC_DEFUN([AM_SET_DEPDIR],
< [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
< AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
< ])
<
<
< # AM_DEP_TRACK
< # ------------
< AC_DEFUN([AM_DEP_TRACK],
< [AC_ARG_ENABLE(dependency-tracking,
< [ --disable-dependency-tracking Speeds up one-time builds
< --enable-dependency-tracking Do not reject slow dependency extractors])
< if test "x$enable_dependency_tracking" != xno; then
< am_depcomp="$ac_aux_dir/depcomp"
< AMDEPBACKSLASH='\'
< fi
< AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
< AC_SUBST([AMDEPBACKSLASH])
< ])
<
< # Generate code to set up dependency tracking. -*- Autoconf -*-
<
< # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< #serial 2
<
< # _AM_OUTPUT_DEPENDENCY_COMMANDS
< # ------------------------------
< AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
< [for mf in $CONFIG_FILES; do
< # Strip MF so we end up with the name of the file.
< mf=`echo "$mf" | sed -e 's/:.*$//'`
< # Check whether this is an Automake generated Makefile or not.
< # We used to match only the files named `Makefile.in', but
< # some people rename them; so instead we look at the file content.
< # Grep'ing the first line is not enough: some people post-process
< # each Makefile.in and add a new line on top of each file to say so.
< # So let's grep whole file.
< if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
< dirpart=`AS_DIRNAME("$mf")`
< else
< continue
< fi
< grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
< # Extract the definition of DEP_FILES from the Makefile without
< # running `make'.
< DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
< test -z "$DEPDIR" && continue
< # When using ansi2knr, U may be empty or an underscore; expand it
< U=`sed -n -e '/^U = / s///p' < "$mf"`
< test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
< # We invoke sed twice because it is the simplest approach to
< # changing $(DEPDIR) to its actual value in the expansion.
< for file in `sed -n -e '
< /^DEP_FILES = .*\\\\$/ {
< s/^DEP_FILES = //
< :loop
< s/\\\\$//
< p
< n
< /\\\\$/ b loop
< p
< }
< /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
< sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
< # Make sure the directory exists.
< test -f "$dirpart/$file" && continue
< fdir=`AS_DIRNAME(["$file"])`
< AS_MKDIR_P([$dirpart/$fdir])
< # echo "creating $dirpart/$file"
< echo '# dummy' > "$dirpart/$file"
< done
< done
< ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
<
<
< # AM_OUTPUT_DEPENDENCY_COMMANDS
< # -----------------------------
< # This macro should only be invoked once -- use via AC_REQUIRE.
< #
< # This code is only required when automatic dependency tracking
< # is enabled. FIXME. This creates each `.P' file that we will
< # need in order to bootstrap the dependency handling code.
< AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
< [AC_CONFIG_COMMANDS([depfiles],
< [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
< [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
< ])
<
< # Check to see how 'make' treats includes. -*- Autoconf -*-
<
< # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 2
<
< # AM_MAKE_INCLUDE()
< # -----------------
< # Check to see how make treats includes.
< AC_DEFUN([AM_MAKE_INCLUDE],
< [am_make=${MAKE-make}
< cat > confinc << 'END'
< am__doit:
< @echo done
< .PHONY: am__doit
< END
< # If we don't find an include directive, just comment out the code.
< AC_MSG_CHECKING([for style of include used by $am_make])
< am__include="#"
< am__quote=
< _am_result=none
< # First try GNU make style include.
< echo "include confinc" > confmf
< # We grep out `Entering directory' and `Leaving directory'
< # messages which can occur if `w' ends up in MAKEFLAGS.
< # In particular we don't look at `^make:' because GNU make might
< # be invoked under some other name (usually "gmake"), in which
< # case it prints its new name instead of `make'.
< if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
< am__include=include
< am__quote=
< _am_result=GNU
< fi
< # Now try BSD make style include.
< if test "$am__include" = "#"; then
< echo '.include "confinc"' > confmf
< if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
< am__include=.include
< am__quote="\""
< _am_result=BSD
< fi
< fi
< AC_SUBST([am__include])
< AC_SUBST([am__quote])
< AC_MSG_RESULT([$_am_result])
< rm -f confinc confmf
< ])
<
< # AM_CONDITIONAL -*- Autoconf -*-
<
< # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 5
<
< AC_PREREQ(2.52)
<
< # AM_CONDITIONAL(NAME, SHELL-CONDITION)
< # -------------------------------------
< # Define a conditional.
< AC_DEFUN([AM_CONDITIONAL],
< [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
< [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
< AC_SUBST([$1_TRUE])
< AC_SUBST([$1_FALSE])
< if $2; then
< $1_TRUE=
< $1_FALSE='#'
< else
< $1_TRUE='#'
< $1_FALSE=
< fi
< AC_CONFIG_COMMANDS_PRE(
< [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
< AC_MSG_ERROR([conditional "$1" was never defined.
< Usually this means the macro was only invoked conditionally.])
< fi])])
<
< # Add --enable-maintainer-mode option to configure.
< # From Jim Meyering
<
< # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 2
<
< AC_DEFUN([AM_MAINTAINER_MODE],
< [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
< dnl maintainer-mode is disabled by default
< AC_ARG_ENABLE(maintainer-mode,
< [ --enable-maintainer-mode enable make rules and dependencies not useful
< (and sometimes confusing) to the casual installer],
< USE_MAINTAINER_MODE=$enableval,
< USE_MAINTAINER_MODE=no)
< AC_MSG_RESULT([$USE_MAINTAINER_MODE])
< AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
< MAINT=$MAINTAINER_MODE_TRUE
< AC_SUBST(MAINT)dnl
< ]
< )
<
< AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
<
<
< # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
<
< # This program is free software; you can redistribute it and/or modify
< # it under the terms of the GNU General Public License as published by
< # the Free Software Foundation; either version 2, or (at your option)
< # any later version.
<
< # This program is distributed in the hope that it will be useful,
< # but WITHOUT ANY WARRANTY; without even the implied warranty of
< # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
< # GNU General Public License for more details.
<
< # You should have received a copy of the GNU General Public License
< # along with this program; if not, write to the Free Software
< # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
< # 02111-1307, USA.
<
< # serial 3
<
< AC_PREREQ(2.50)
<
< # AM_PROG_LEX
< # -----------
< # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
< # "missing" invocation, for better error output.
< AC_DEFUN([AM_PROG_LEX],
< [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
< AC_REQUIRE([AC_PROG_LEX])dnl
< if test "$LEX" = :; then
< LEX=${am_missing_run}flex
< fi])
<
< dnl $Id: krb-prog-ln-s.m4,v 1.1.42.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl
< dnl Better test for ln -s, ln or cp
< dnl
<
< AC_DEFUN([AC_KRB_PROG_LN_S],
< [AC_MSG_CHECKING(for ln -s or something else)
< AC_CACHE_VAL(ac_cv_prog_LN_S,
< [rm -f conftestdata
< if ln -s X conftestdata 2>/dev/null
< then
< rm -f conftestdata
< ac_cv_prog_LN_S="ln -s"
< else
< touch conftestdata1
< if ln conftestdata1 conftestdata2; then
< rm -f conftestdata*
< ac_cv_prog_LN_S=ln
< else
< ac_cv_prog_LN_S=cp
< fi
< fi])dnl
< LN_S="$ac_cv_prog_LN_S"
< AC_MSG_RESULT($ac_cv_prog_LN_S)
< AC_SUBST(LN_S)dnl
< ])
<
<
< dnl $Id: mips-abi.m4,v 1.6.8.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl
< dnl Check for MIPS/IRIX ABI flags. Sets $abi and $abilibdirext to some
< dnl value.
<
< AC_DEFUN([AC_MIPS_ABI], [
< AC_ARG_WITH(mips_abi,
< AC_HELP_STRING([--with-mips-abi=abi],[ABI to use for IRIX (32, n32, or 64)]))
<
< case "$host_os" in
< irix*)
< with_mips_abi="${with_mips_abi:-yes}"
< if test -n "$GCC"; then
<
< # GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
< # which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
< #
< # Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
< # GCC and revert back to O32. The same goes if O32 is asked for - old
< # GCCs doesn't like the -mabi option, and new GCCs can't output O32.
< #
< # Don't you just love *all* the different SGI ABIs?
<
< case "${with_mips_abi}" in
< 32|o32) abi='-mabi=32'; abilibdirext='' ;;
< n32|yes) abi='-mabi=n32'; abilibdirext='32' ;;
< 64) abi='-mabi=64'; abilibdirext='64' ;;
< no) abi=''; abilibdirext='';;
< *) AC_MSG_ERROR("Invalid ABI specified") ;;
< esac
< if test -n "$abi" ; then
< ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
< dnl
< dnl can't use AC_CACHE_CHECK here, since it doesn't quote CACHE-ID to
< dnl AC_MSG_RESULT
< dnl
< AC_MSG_CHECKING([if $CC supports the $abi option])
< AC_CACHE_VAL($ac_foo, [
< save_CFLAGS="$CFLAGS"
< CFLAGS="$CFLAGS $abi"
< AC_TRY_COMPILE(,int x;, eval $ac_foo=yes, eval $ac_foo=no)
< CFLAGS="$save_CFLAGS"
< ])
< ac_res=`eval echo \\\$$ac_foo`
< AC_MSG_RESULT($ac_res)
< if test $ac_res = no; then
< # Try to figure out why that failed...
< case $abi in
< -mabi=32)
< save_CFLAGS="$CFLAGS"
< CFLAGS="$CFLAGS -mabi=n32"
< AC_TRY_COMPILE(,int x;, ac_res=yes, ac_res=no)
< CLAGS="$save_CFLAGS"
< if test $ac_res = yes; then
< # New GCC
< AC_MSG_ERROR([$CC does not support the $with_mips_abi ABI])
< fi
< # Old GCC
< abi=''
< abilibdirext=''
< ;;
< -mabi=n32|-mabi=64)
< if test $with_mips_abi = yes; then
< # Old GCC, default to O32
< abi=''
< abilibdirext=''
< else
< # Some broken GCC
< AC_MSG_ERROR([$CC does not support the $with_mips_abi ABI])
< fi
< ;;
< esac
< fi #if test $ac_res = no; then
< fi #if test -n "$abi" ; then
< else
< case "${with_mips_abi}" in
< 32|o32) abi='-32'; abilibdirext='' ;;
< n32|yes) abi='-n32'; abilibdirext='32' ;;
< 64) abi='-64'; abilibdirext='64' ;;
< no) abi=''; abilibdirext='';;
< *) AC_MSG_ERROR("Invalid ABI specified") ;;
< esac
< fi #if test -n "$GCC"; then
< ;;
< esac
< ])
<
< dnl
< dnl $Id: c-attribute.m4,v 1.2.34.1 2004/04/01 07:27:32 joda Exp $
< dnl
<
< dnl
< dnl Test for __attribute__
< dnl
<
< AC_DEFUN([AC_C___ATTRIBUTE__], [
< AC_MSG_CHECKING(for __attribute__)
< AC_CACHE_VAL(ac_cv___attribute__, [
< AC_TRY_COMPILE([
< #include <stdlib.h>
< ],
< [
< static void foo(void) __attribute__ ((noreturn));
<
< static void
< foo(void)
< {
< exit(1);
< }
< ],
< ac_cv___attribute__=yes,
< ac_cv___attribute__=no)])
< if test "$ac_cv___attribute__" = "yes"; then
< AC_DEFINE(HAVE___ATTRIBUTE__, 1, [define if your compiler has __attribute__])
< fi
< AC_MSG_RESULT($ac_cv___attribute__)
< ])
<
<
6991,6993c5922,5924
< dnl $Id: wflags.m4,v 1.3.34.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl set WFLAGS
---
> # -*- Autoconf -*-
> # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
> # Generated from amversion.in; do not edit by hand.
6995,7011c5926,5929
< AC_DEFUN([AC_WFLAGS],[
< WFLAGS_NOUNUSED=""
< WFLAGS_NOIMPLICITINT=""
< if test -z "$WFLAGS" -a "$GCC" = "yes"; then
< # -Wno-implicit-int for broken X11 headers
< # leave these out for now:
< # -Wcast-align doesn't work well on alpha osf/1
< # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
< # -Wmissing-declarations -Wnested-externs
< WFLAGS="ifelse($#, 0,-Wall, $1)"
< WFLAGS_NOUNUSED="-Wno-unused"
< WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
< fi
< AC_SUBST(WFLAGS)dnl
< AC_SUBST(WFLAGS_NOUNUSED)dnl
< AC_SUBST(WFLAGS_NOIMPLICITINT)dnl
< ])
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7013,7016c5931,5934
< dnl $Id: test-package.m4,v 1.12.4.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl rk_TEST_PACKAGE(package,headers,libraries,extra libs,
< dnl default locations, conditional, config-program)
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7018,7036c5936,5938
< AC_DEFUN([rk_TEST_PACKAGE],[
< AC_ARG_WITH($1,
< AC_HELP_STRING([--with-$1=dir],[use $1 in dir]))
< AC_ARG_WITH($1-lib,
< AC_HELP_STRING([--with-$1-lib=dir],[use $1 libraries in dir]),
< [if test "$withval" = "yes" -o "$withval" = "no"; then
< AC_MSG_ERROR([No argument for --with-$1-lib])
< elif test "X$with_$1" = "X"; then
< with_$1=yes
< fi])
< AC_ARG_WITH($1-include,
< AC_HELP_STRING([--with-$1-include=dir],[use $1 headers in dir]),
< [if test "$withval" = "yes" -o "$withval" = "no"; then
< AC_MSG_ERROR([No argument for --with-$1-include])
< elif test "X$with_$1" = "X"; then
< with_$1=yes
< fi])
< AC_ARG_WITH($1-config,
< AC_HELP_STRING([--with-$1-config=path],[config program for $1]))
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
7038,7040c5940,5944
< m4_ifval([$6],
< m4_define([rk_pkgname], $6),
< m4_define([rk_pkgname], AS_TR_CPP($1)))
---
> # AM_AUTOMAKE_VERSION(VERSION)
> # ----------------------------
> # Automake X.Y traces this macro to ensure aclocal.m4 has been
> # generated from the m4 files accompanying Automake X.Y.
> AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
7042c5946,5951
< AC_MSG_CHECKING(for $1)
---
> # AM_SET_CURRENT_AUTOMAKE_VERSION
> # -------------------------------
> # Call AM_AUTOMAKE_VERSION so it can be traced.
> # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
> AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
> [AM_AUTOMAKE_VERSION([1.8.3])])
7044,7048c5953
< case "$with_$1" in
< yes|"") d='$5' ;;
< no) d= ;;
< *) d="$with_$1" ;;
< esac
---
> # AM_AUX_DIR_EXPAND
7050,7066c5955
< header_dirs=
< lib_dirs=
< for i in $d; do
< if test "$with_$1_include" = ""; then
< if test -d "$i/include/$1"; then
< header_dirs="$header_dirs $i/include/$1"
< fi
< if test -d "$i/include"; then
< header_dirs="$header_dirs $i/include"
< fi
< fi
< if test "$with_$1_lib" = ""; then
< if test -d "$i/lib$abilibdirext"; then
< lib_dirs="$lib_dirs $i/lib$abilibdirext"
< fi
< fi
< done
---
> # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7068,7073c5957,5960
< if test "$with_$1_include"; then
< header_dirs="$with_$1_include $header_dirs"
< fi
< if test "$with_$1_lib"; then
< lib_dirs="$with_$1_lib $lib_dirs"
< fi
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7075,7077c5962,5965
< if test "$with_$1_config" = ""; then
< with_$1_config='$7'
< fi
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7079,7080c5967,5970
< $1_cflags=
< $1_libs=
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7082,7089c5972,6008
< case "$with_$1_config" in
< yes|no|"")
< ;;
< *)
< $1_cflags="`$with_$1_config --cflags 2>&1`"
< $1_libs="`$with_$1_config --libs 2>&1`"
< ;;
< esac
---
> # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
> # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
> # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
> #
> # Of course, Automake must honor this variable whenever it calls a
> # tool from the auxiliary directory. The problem is that $srcdir (and
> # therefore $ac_aux_dir as well) can be either absolute or relative,
> # depending on how configure is run. This is pretty annoying, since
> # it makes $ac_aux_dir quite unusable in subdirectories: in the top
> # source directory, any form will work fine, but in subdirectories a
> # relative path needs to be adjusted first.
> #
> # $ac_aux_dir/missing
> # fails when called from a subdirectory if $ac_aux_dir is relative
> # $top_srcdir/$ac_aux_dir/missing
> # fails if $ac_aux_dir is absolute,
> # fails when called from a subdirectory in a VPATH build with
> # a relative $ac_aux_dir
> #
> # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
> # are both prefixed by $srcdir. In an in-source build this is usually
> # harmless because $srcdir is `.', but things will broke when you
> # start a VPATH build or use an absolute $srcdir.
> #
> # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
> # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
> # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
> # and then we would define $MISSING as
> # MISSING="\${SHELL} $am_aux_dir/missing"
> # This will work as long as MISSING is not called from configure, because
> # unfortunately $(top_srcdir) has no meaning in configure.
> # However there are other variables, like CC, which are often used in
> # configure, and could therefore not use this "fixed" $ac_aux_dir.
> #
> # Another solution, used here, is to always expand $ac_aux_dir to an
> # absolute PATH. The drawback is that using absolute paths prevent a
> # configured tree to be moved without reconfiguration.
7091,7136c6010,6014
< found=no
< if test "$with_$1" != no; then
< save_CFLAGS="$CFLAGS"
< save_LIBS="$LIBS"
< if test "$[]$1_cflags" -a "$[]$1_libs"; then
< CFLAGS="$[]$1_cflags $save_CFLAGS"
< LIBS="$[]$1_libs $save_LIBS"
< AC_TRY_LINK([$2],,[
< INCLUDE_$1="$[]$1_cflags"
< LIB_$1="$[]$1_libs"
< AC_MSG_RESULT([from $with_$1_config])
< found=yes])
< fi
< if test "$found" = no; then
< ires= lres=
< for i in $header_dirs; do
< CFLAGS="-I$i $save_CFLAGS"
< AC_TRY_COMPILE([$2],,ires=$i;break)
< done
< for i in $lib_dirs; do
< LIBS="-L$i $3 $4 $save_LIBS"
< AC_TRY_LINK([$2],,lres=$i;break)
< done
< if test "$ires" -a "$lres" -a "$with_$1" != "no"; then
< INCLUDE_$1="-I$ires"
< LIB_$1="-L$lres $3 $4"
< found=yes
< AC_MSG_RESULT([headers $ires, libraries $lres])
< fi
< fi
< CFLAGS="$save_CFLAGS"
< LIBS="$save_LIBS"
< fi
<
< if test "$found" = yes; then
< AC_DEFINE_UNQUOTED(rk_pkgname, 1, [Define if you have the $1 package.])
< with_$1=yes
< else
< with_$1=no
< INCLUDE_$1=
< LIB_$1=
< AC_MSG_RESULT(no)
< fi
<
< AC_SUBST(INCLUDE_$1)
< AC_SUBST(LIB_$1)
---
> AC_DEFUN([AM_AUX_DIR_EXPAND],
> [dnl Rely on autoconf to set up CDPATH properly.
> AC_PREREQ([2.50])dnl
> # expand $ac_aux_dir to an absolute path
> am_aux_dir=`cd $ac_aux_dir && pwd`
7139,7147c6017
< dnl $Id: find-func.m4,v 1.1.42.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl AC_FIND_FUNC(func, libraries, includes, arguments)
< AC_DEFUN([AC_FIND_FUNC], [
< AC_FIND_FUNC_NO_LIBS([$1], [$2], [$3], [$4])
< if test -n "$LIB_$1"; then
< LIBS="$LIB_$1 $LIBS"
< fi
< ])
---
> # AM_CONDITIONAL -*- Autoconf -*-
7149,7153c6019
< dnl $Id: find-func-no-libs.m4,v 1.5.20.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl
< dnl Look for function in any of the specified libraries
< dnl
---
> # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7155,7157c6021,6024
< dnl AC_FIND_FUNC_NO_LIBS(func, libraries, includes, arguments, extra libs, extra args)
< AC_DEFUN([AC_FIND_FUNC_NO_LIBS], [
< AC_FIND_FUNC_NO_LIBS2([$1], ["" $2], [$3], [$4], [$5], [$6])])
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7159,7163c6026,6029
< dnl $Id: find-func-no-libs2.m4,v 1.6.10.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl
< dnl Look for function in any of the specified libraries
< dnl
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7165,7166c6031,6034
< dnl AC_FIND_FUNC_NO_LIBS2(func, libraries, includes, arguments, extra libs, extra args)
< AC_DEFUN([AC_FIND_FUNC_NO_LIBS2], [
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7168,7187c6036
< AC_MSG_CHECKING([for $1])
< AC_CACHE_VAL(ac_cv_funclib_$1,
< [
< if eval "test \"\$ac_cv_func_$1\" != yes" ; then
< ac_save_LIBS="$LIBS"
< for ac_lib in $2; do
< case "$ac_lib" in
< "") ;;
< yes) ac_lib="" ;;
< no) continue ;;
< -l*) ;;
< *) ac_lib="-l$ac_lib" ;;
< esac
< LIBS="$6 $ac_lib $5 $ac_save_LIBS"
< AC_TRY_LINK([$3],[$1($4)],eval "if test -n \"$ac_lib\";then ac_cv_funclib_$1=$ac_lib; else ac_cv_funclib_$1=yes; fi";break)
< done
< eval "ac_cv_funclib_$1=\${ac_cv_funclib_$1-no}"
< LIBS="$ac_save_LIBS"
< fi
< ])
---
> # serial 6
7189,7193c6038,6052
< eval "ac_res=\$ac_cv_funclib_$1"
<
< if false; then
< AC_CHECK_FUNCS($1)
< dnl AC_CHECK_LIBS($2, foo)
---
> # AM_CONDITIONAL(NAME, SHELL-CONDITION)
> # -------------------------------------
> # Define a conditional.
> AC_DEFUN([AM_CONDITIONAL],
> [AC_PREREQ(2.52)dnl
> ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
> [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
> AC_SUBST([$1_TRUE])
> AC_SUBST([$1_FALSE])
> if $2; then
> $1_TRUE=
> $1_FALSE='#'
> else
> $1_TRUE='#'
> $1_FALSE=
7195,7198c6054,6058
< # $1
< eval "ac_tr_func=HAVE_[]upcase($1)"
< eval "ac_tr_lib=HAVE_LIB[]upcase($ac_res | sed -e 's/-l//')"
< eval "LIB_$1=$ac_res"
---
> AC_CONFIG_COMMANDS_PRE(
> [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
> AC_MSG_ERROR([conditional "$1" was never defined.
> Usually this means the macro was only invoked conditionally.])
> fi])])
7200,7221c6060
< case "$ac_res" in
< yes)
< eval "ac_cv_func_$1=yes"
< eval "LIB_$1="
< AC_DEFINE_UNQUOTED($ac_tr_func)
< AC_MSG_RESULT([yes])
< ;;
< no)
< eval "ac_cv_func_$1=no"
< eval "LIB_$1="
< AC_MSG_RESULT([no])
< ;;
< *)
< eval "ac_cv_func_$1=yes"
< eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
< AC_DEFINE_UNQUOTED($ac_tr_func)
< AC_DEFINE_UNQUOTED($ac_tr_lib)
< AC_MSG_RESULT([yes, in $ac_res])
< ;;
< esac
< AC_SUBST(LIB_$1)
< ])
---
> # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
7222a6062
> # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
7224,7231c6064,6067
< dnl $Id: misc.m4,v 1.5 2002/05/24 15:35:32 joda Exp $
< dnl
< AC_DEFUN([upcase],[`echo $1 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`])dnl
< AC_DEFUN([rk_LIBOBJ],[AC_LIBOBJ([$1])])dnl
< AC_DEFUN([rk_CONFIG_HEADER],[AH_TOP([#ifndef RCSID
< #define RCSID(msg) \
< static /**/const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg }
< #endif
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7233,7235c6069,6072
< /* Maximum values on all known systems */
< #define MaxHostNameLen (64+4)
< #define MaxPathLen (1024+4)
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7237,7243c6074,6077
< ])])
< dnl $Id: crypto.m4,v 1.16.2.1 2003/05/05 20:08:32 joda Exp $
< dnl
< dnl test for crypto libraries:
< dnl - libcrypto (from openssl)
< dnl - libdes (from krb4)
< dnl - own-built libdes
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7245,7281c6079
< m4_define([test_headers], [
< #undef KRB5 /* makes md4.h et al unhappy */
< #ifdef HAVE_OPENSSL
< #include <openssl/md4.h>
< #include <openssl/md5.h>
< #include <openssl/sha.h>
< #define OPENSSL_DES_LIBDES_COMPATIBILITY
< #include <openssl/des.h>
< #include <openssl/rc4.h>
< #include <openssl/rand.h>
< #else
< #include <md4.h>
< #include <md5.h>
< #include <sha.h>
< #include <des.h>
< #include <rc4.h>
< #endif
< #ifdef OLD_HASH_NAMES
< typedef struct md4 MD4_CTX;
< #define MD4_Init(C) md4_init((C))
< #define MD4_Update(C, D, L) md4_update((C), (D), (L))
< #define MD4_Final(D, C) md4_finito((C), (D))
< typedef struct md5 MD5_CTX;
< #define MD5_Init(C) md5_init((C))
< #define MD5_Update(C, D, L) md5_update((C), (D), (L))
< #define MD5_Final(D, C) md5_finito((C), (D))
< typedef struct sha SHA_CTX;
< #define SHA1_Init(C) sha_init((C))
< #define SHA1_Update(C, D, L) sha_update((C), (D), (L))
< #define SHA1_Final(D, C) sha_finito((C), (D))
< #endif
< ])
< m4_define([test_body], [
< void *schedule = 0;
< MD4_CTX md4;
< MD5_CTX md5;
< SHA_CTX sha1;
---
> # serial 7
7283,7288c6081,6082
< MD4_Init(&md4);
< MD5_Init(&md5);
< SHA1_Init(&sha1);
< #ifdef HAVE_OPENSSL
< RAND_status();
< #endif
---
> # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
> AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7290,7291c6084
< des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
< RC4(0, 0, 0, 0);])
---
> # Do all the work for Automake. -*- Autoconf -*-
7292a6086,6087
> # This macro actually does too much some checks are only needed if
> # your package does certain things. But this isn't really a big deal.
7294,7296c6089,6090
< AC_DEFUN([KRB_CRYPTO],[
< crypto_lib=unknown
< AC_WITH_ALL([openssl])
---
> # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
> # Free Software Foundation, Inc.
7298c6092,6095
< DIR_des=
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7300c6097,6100
< AC_MSG_CHECKING([for crypto library])
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7302,7303c6102,6105
< openssl=no
< old_hash=no
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7305,7307c6107
< if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
< save_CPPFLAGS="$CPPFLAGS"
< save_LIBS="$LIBS"
---
> # serial 11
7309,7355c6109,6130
< cdirs= clibs=
< for i in $LIB_krb4; do
< case "$i" in
< -L*) cdirs="$cdirs $i";;
< -l*) clibs="$clibs $i";;
< esac
< done
<
< ires=
< for i in $INCLUDE_krb4; do
< CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
< for j in $cdirs; do
< for k in $clibs; do
< LIBS="$j $k $save_LIBS"
< AC_TRY_LINK(test_headers, test_body,
< openssl=yes ires="$i" lres="$j $k"; break 3)
< done
< done
< CFLAGS="$i $save_CFLAGS"
< for j in $cdirs; do
< for k in $clibs; do
< LIBS="$j $k $save_LIBS"
< AC_TRY_LINK(test_headers, test_body,
< openssl=no ires="$i" lres="$j $k"; break 3)
< done
< done
< CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
< for j in $cdirs; do
< for k in $clibs; do
< LIBS="$j $k $save_LIBS"
< AC_TRY_LINK(test_headers, test_body,
< openssl=no ires="$i" lres="$j $k"; break 3)
< done
< done
< done
<
< CFLAGS="$save_CFLAGS"
< LIBS="$save_LIBS"
< if test "$ires" -a "$lres"; then
< INCLUDE_des="$ires"
< LIB_des="$lres"
< crypto_lib=krb4
< AC_MSG_RESULT([same as krb4])
< LIB_des_a='$(LIB_des)'
< LIB_des_so='$(LIB_des)'
< LIB_des_appl='$(LIB_des)'
< fi
---
> # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
> # AM_INIT_AUTOMAKE([OPTIONS])
> # -----------------------------------------------
> # The call with PACKAGE and VERSION arguments is the old style
> # call (pre autoconf-2.50), which is being phased out. PACKAGE
> # and VERSION should now be passed to AC_INIT and removed from
> # the call to AM_INIT_AUTOMAKE.
> # We support both call styles for the transition. After
> # the next Automake release, Autoconf can make the AC_INIT
> # arguments mandatory, and then we can depend on a new Autoconf
> # release and drop the old call support.
> AC_DEFUN([AM_INIT_AUTOMAKE],
> [AC_PREREQ([2.58])dnl
> dnl Autoconf wants to disallow AM_ names. We explicitly allow
> dnl the ones we care about.
> m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
> AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
> AC_REQUIRE([AC_PROG_INSTALL])dnl
> # test to see if srcdir already configured
> if test "`cd $srcdir && pwd`" != "`pwd`" &&
> test -f $srcdir/config.status; then
> AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7358,7508c6133,6136
< if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
< save_CFLAGS="$CFLAGS"
< save_LIBS="$LIBS"
< INCLUDE_des=
< LIB_des=
< if test "$with_openssl_include" != ""; then
< INCLUDE_des="-I${with_openssl_include}"
< fi
< if test "$with_openssl_lib" != ""; then
< LIB_des="-L${with_openssl_lib}"
< fi
< CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
< saved_LIB_des="$LIB_des"
< for lres in "" "-lnsl -lsocket"; do
< LIB_des="${saved_LIB_des} -lcrypto $lres"
< LIB_des_a="$LIB_des"
< LIB_des_so="$LIB_des"
< LIB_des_appl="$LIB_des"
< LIBS="${LIBS} ${LIB_des}"
< AC_TRY_LINK(test_headers, test_body, [
< crypto_lib=libcrypto openssl=yes
< AC_MSG_RESULT([libcrypto])
< ])
< if test "$crypto_lib" = libcrypto ; then
< break;
< fi
< done
< CFLAGS="$save_CFLAGS"
< LIBS="$save_LIBS"
< fi
<
< if test "$crypto_lib" = "unknown"; then
<
< DIR_des='des'
< LIB_des='$(top_builddir)/lib/des/libdes.la'
< LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
< LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
< LIB_des_appl="-ldes"
<
< AC_MSG_RESULT([included libdes])
<
< fi
<
< if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
< AC_MSG_ERROR([the crypto library used by krb4 lacks features
< required by Kerberos 5; to continue, you need to install a newer
< Kerberos 4 or configure --without-krb4])
< fi
<
< if test "$openssl" = "yes"; then
< AC_DEFINE([HAVE_OPENSSL], 1, [define to use openssl's libcrypto])
< fi
< if test "$old_hash" = yes; then
< AC_DEFINE([HAVE_OLD_HASH_NAMES], 1,
< [define if you have hash functions like md4_finito()])
< fi
< AM_CONDITIONAL(HAVE_OPENSSL, test "$openssl" = yes)dnl
<
< AC_SUBST(DIR_des)
< AC_SUBST(INCLUDE_des)
< AC_SUBST(LIB_des)
< AC_SUBST(LIB_des_a)
< AC_SUBST(LIB_des_so)
< AC_SUBST(LIB_des_appl)
< ])
<
< dnl
< dnl $Id: with-all.m4,v 1.1 2001/08/29 17:01:23 assar Exp $
< dnl
<
< dnl AC_WITH_ALL(name)
<
< AC_DEFUN([AC_WITH_ALL], [
< AC_ARG_WITH($1,
< AC_HELP_STRING([--with-$1=dir],
< [use $1 in dir]))
<
< AC_ARG_WITH($1-lib,
< AC_HELP_STRING([--with-$1-lib=dir],
< [use $1 libraries in dir]),
< [if test "$withval" = "yes" -o "$withval" = "no"; then
< AC_MSG_ERROR([No argument for --with-$1-lib])
< elif test "X$with_$1" = "X"; then
< with_$1=yes
< fi])
<
< AC_ARG_WITH($1-include,
< AC_HELP_STRING([--with-$1-include=dir],
< [use $1 headers in dir]),
< [if test "$withval" = "yes" -o "$withval" = "no"; then
< AC_MSG_ERROR([No argument for --with-$1-include])
< elif test "X$with_$1" = "X"; then
< with_$1=yes
< fi])
<
< case "$with_$1" in
< yes) ;;
< no) ;;
< "") ;;
< *) if test "$with_$1_include" = ""; then
< with_$1_include="$with_$1/include"
< fi
< if test "$with_$1_lib" = ""; then
< with_$1_lib="$with_$1/lib$abilibdirext"
< fi
< ;;
< esac
< ])
< dnl $Id: db.m4,v 1.9 2002/09/10 14:29:47 joda Exp $
< dnl
< dnl tests for various db libraries
< dnl
< AC_DEFUN([rk_DB],[
< AC_ARG_ENABLE(berkeley-db,
< AC_HELP_STRING([--disable-berkeley-db],
< [if you don't want berkeley db]),[
< ])
<
< have_ndbm=no
< db_type=unknown
<
< if test "$enable_berkeley_db" != no; then
<
< AC_CHECK_HEADERS([ \
< db4/db.h \
< db3/db.h \
< db.h \
< db_185.h \
< ])
<
< dnl db_create is used by db3 and db4
<
< AC_FIND_FUNC_NO_LIBS(db_create, db4 db3 db, [
< #include <stdio.h>
< #ifdef HAVE_DB4_DB_H
< #include <db4/db.h>
< #elif defined(HAVE_DB3_DB_H)
< #include <db3/db.h>
< #else
< #include <db.h>
< #endif
< ],[NULL, NULL, 0])
<
< if test "$ac_cv_func_db_create" = "yes"; then
< db_type=db3
< if test "$ac_cv_funclib_db_create" != "yes"; then
< DBLIB="$ac_cv_funclib_db_create"
< else
< DBLIB=""
< fi
< AC_DEFINE(HAVE_DB3, 1, [define if you have a berkeley db3/4 library])
---
> # test whether we have cygpath
> if test -z "$CYGPATH_W"; then
> if (cygpath --version) >/dev/null 2>/dev/null; then
> CYGPATH_W='cygpath -w'
7510,7534c6138
<
< dnl dbopen is used by db1/db2
<
< AC_FIND_FUNC_NO_LIBS(dbopen, db2 db, [
< #include <stdio.h>
< #if defined(HAVE_DB2_DB_H)
< #include <db2/db.h>
< #elif defined(HAVE_DB_185_H)
< #include <db_185.h>
< #elif defined(HAVE_DB_H)
< #include <db.h>
< #else
< #error no db.h
< #endif
< ],[NULL, 0, 0, 0, NULL])
<
< if test "$ac_cv_func_dbopen" = "yes"; then
< db_type=db1
< if test "$ac_cv_funclib_dbopen" != "yes"; then
< DBLIB="$ac_cv_funclib_dbopen"
< else
< DBLIB=""
< fi
< AC_DEFINE(HAVE_DB1, 1, [define if you have a berkeley db1/2 library])
< fi
---
> CYGPATH_W=echo
7536,7651d6139
<
< dnl test for ndbm compatability
<
< if test "$ac_cv_func_dbm_firstkey" != yes; then
< AC_FIND_FUNC_NO_LIBS2(dbm_firstkey, $ac_cv_funclib_dbopen $ac_cv_funclib_db_create, [
< #include <stdio.h>
< #define DB_DBM_HSEARCH 1
< #include <db.h>
< DBM *dbm;
< ],[NULL])
<
< if test "$ac_cv_func_dbm_firstkey" = "yes"; then
< if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
< LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
< else
< LIB_NDBM=""
< fi
< AC_DEFINE(HAVE_DB_NDBM, 1, [define if you have ndbm compat in db])
< AC_DEFINE(HAVE_NEW_DB, 1, [Define if NDBM really is DB (creates files *.db)])
< else
< $as_unset ac_cv_func_dbm_firstkey
< $as_unset ac_cv_funclib_dbm_firstkey
< fi
< fi
<
< fi # berkeley db
<
< if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
<
< AC_CHECK_HEADERS([ \
< dbm.h \
< ndbm.h \
< ])
<
< AC_FIND_FUNC_NO_LIBS(dbm_firstkey, ndbm, [
< #include <stdio.h>
< #if defined(HAVE_NDBM_H)
< #include <ndbm.h>
< #elif defined(HAVE_DBM_H)
< #include <dbm.h>
< #endif
< DBM *dbm;
< ],[NULL])
<
< if test "$ac_cv_func_dbm_firstkey" = "yes"; then
< if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
< LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
< else
< LIB_NDBM=""
< fi
< AC_DEFINE(HAVE_NDBM, 1, [define if you have a ndbm library])dnl
< have_ndbm=yes
< if test "$db_type" = "unknown"; then
< db_type=ndbm
< DBLIB="$LIB_NDBM"
< fi
< else
<
< $as_unset ac_cv_func_dbm_firstkey
< $as_unset ac_cv_funclib_dbm_firstkey
<
< AC_CHECK_HEADERS([ \
< gdbm/ndbm.h \
< ])
<
< AC_FIND_FUNC_NO_LIBS(dbm_firstkey, gdbm, [
< #include <stdio.h>
< #include <gdbm/ndbm.h>
< DBM *dbm;
< ],[NULL])
<
< if test "$ac_cv_func_dbm_firstkey" = "yes"; then
< if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
< LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
< else
< LIB_NDBM=""
< fi
< AC_DEFINE(HAVE_NDBM, 1, [define if you have a ndbm library])dnl
< have_ndbm=yes
< if test "$db_type" = "unknown"; then
< db_type=ndbm
< DBLIB="$LIB_NDBM"
< fi
< fi
< fi
<
< fi # unknown
<
< if test "$have_ndbm" = "yes"; then
< AC_MSG_CHECKING([if ndbm is implemented with db])
< AC_TRY_RUN([
< #include <unistd.h>
< #include <fcntl.h>
< #if defined(HAVE_GDBM_NDBM_H)
< #include <gdbm/ndbm.h>
< #elif defined(HAVE_NDBM_H)
< #include <ndbm.h>
< #elif defined(HAVE_DBM_H)
< #include <dbm.h>
< #endif
< int main()
< {
< DBM *d;
<
< d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
< if (d == NULL)
< return 1;
< dbm_close(d);
< return 0;
< }],[
< if test -f conftest.db; then
< AC_MSG_RESULT([yes])
< AC_DEFINE(HAVE_NEW_DB, 1, [Define if NDBM really is DB (creates files *.db)])
< else
< AC_MSG_RESULT([no])
< fi],[AC_MSG_RESULT([no])])
7652a6141
> AC_SUBST([CYGPATH_W])
7654,7656c6143,6151
< AM_CONDITIONAL(HAVE_DB1, test "$db_type" = db1)dnl
< AM_CONDITIONAL(HAVE_DB3, test "$db_type" = db3)dnl
< AM_CONDITIONAL(HAVE_NDBM, test "$db_type" = ndbm)dnl
---
> # Define the identity of the package.
> dnl Distinguish between old-style and new-style calls.
> m4_ifval([$2],
> [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
> AC_SUBST([PACKAGE], [$1])dnl
> AC_SUBST([VERSION], [$2])],
> [_AM_SET_OPTIONS([$1])dnl
> AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
> AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7658,7667c6153,6155
< z=""
< for i in $LDFLAGS; do
< case "$i" in
< -L*) z="$z $i";;
< esac
< done
< DBLIB="$z $DBLIB"
< AC_SUBST(DBLIB)dnl
< AC_SUBST(LIB_NDBM)dnl
< ])
---
> _AM_IF_OPTION([no-define],,
> [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
> AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7669,7675c6157,6173
< dnl $Id: roken-frag.m4,v 1.45.2.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl some code to get roken working
< dnl
< dnl rk_ROKEN(subdir)
< dnl
< AC_DEFUN([rk_ROKEN], [
---
> # Some tools Automake needs.
> AC_REQUIRE([AM_SANITY_CHECK])dnl
> AC_REQUIRE([AC_ARG_PROGRAM])dnl
> AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
> AM_MISSING_PROG(AUTOCONF, autoconf)
> AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
> AM_MISSING_PROG(AUTOHEADER, autoheader)
> AM_MISSING_PROG(MAKEINFO, makeinfo)
> AM_MISSING_PROG(AMTAR, tar)
> AM_PROG_INSTALL_SH
> AM_PROG_INSTALL_STRIP
> AC_REQUIRE([AM_PROG_MKDIR_P])dnl
> # We need awk for the "check" target. The system "awk" is bad on
> # some platforms.
> AC_REQUIRE([AC_PROG_AWK])dnl
> AC_REQUIRE([AC_PROG_MAKE_SET])dnl
> AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7677,7760c6175,6183
< AC_REQUIRE([rk_CONFIG_HEADER])
<
< DIR_roken=roken
< LIB_roken='$(top_builddir)/$1/libroken.la'
< INCLUDES_roken='-I$(top_builddir)/$1 -I$(top_srcdir)/$1'
<
< dnl Checks for programs
< AC_REQUIRE([AC_PROG_CC])
< AC_REQUIRE([AC_PROG_AWK])
< AC_REQUIRE([AC_OBJEXT])
< AC_REQUIRE([AC_EXEEXT])
< AC_REQUIRE([AC_PROG_LIBTOOL])
<
< AC_REQUIRE([AC_MIPS_ABI])
<
< dnl C characteristics
<
< AC_REQUIRE([AC_C___ATTRIBUTE__])
< AC_REQUIRE([AC_C_INLINE])
< AC_REQUIRE([AC_C_CONST])
< AC_WFLAGS(-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs)
<
< AC_REQUIRE([rk_DB])
<
< dnl C types
<
< AC_REQUIRE([AC_TYPE_SIZE_T])
< AC_HAVE_TYPE([ssize_t],[#include <unistd.h>])
< AC_REQUIRE([AC_TYPE_PID_T])
< AC_REQUIRE([AC_TYPE_UID_T])
< AC_HAVE_TYPE([long long])
<
< AC_REQUIRE([rk_RETSIGTYPE])
<
< dnl Checks for header files.
< AC_REQUIRE([AC_HEADER_STDC])
< AC_REQUIRE([AC_HEADER_TIME])
<
< AC_CHECK_HEADERS([\
< arpa/inet.h \
< arpa/nameser.h \
< config.h \
< crypt.h \
< dirent.h \
< errno.h \
< err.h \
< fcntl.h \
< grp.h \
< ifaddrs.h \
< net/if.h \
< netdb.h \
< netinet/in.h \
< netinet/in6.h \
< netinet/in_systm.h \
< netinet6/in6.h \
< netinet6/in6_var.h \
< paths.h \
< pwd.h \
< resolv.h \
< rpcsvc/ypclnt.h \
< shadow.h \
< sys/bswap.h \
< sys/ioctl.h \
< sys/mman.h \
< sys/param.h \
< sys/proc.h \
< sys/resource.h \
< sys/socket.h \
< sys/sockio.h \
< sys/stat.h \
< sys/sysctl.h \
< sys/time.h \
< sys/tty.h \
< sys/types.h \
< sys/uio.h \
< sys/utsname.h \
< sys/wait.h \
< syslog.h \
< termios.h \
< unistd.h \
< userconf.h \
< usersec.h \
< util.h \
< vis.h \
---
> _AM_IF_OPTION([no-dependencies],,
> [AC_PROVIDE_IFELSE([AC_PROG_CC],
> [_AM_DEPENDENCIES(CC)],
> [define([AC_PROG_CC],
> defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
> AC_PROVIDE_IFELSE([AC_PROG_CXX],
> [_AM_DEPENDENCIES(CXX)],
> [define([AC_PROG_CXX],
> defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7762,7886d6184
<
< AC_REQUIRE([CHECK_NETINET_IP_AND_TCP])
<
< AM_CONDITIONAL(have_err_h, test "$ac_cv_header_err_h" = yes)
< AM_CONDITIONAL(have_fnmatch_h, test "$ac_cv_header_fnmatch_h" = yes)
< AM_CONDITIONAL(have_ifaddrs_h, test "$ac_cv_header_ifaddrs_h" = yes)
< AM_CONDITIONAL(have_vis_h, test "$ac_cv_header_vis_h" = yes)
<
< dnl Check for functions and libraries
<
< AC_FIND_FUNC(socket, socket)
< AC_FIND_FUNC(gethostbyname, nsl)
< AC_FIND_FUNC(syslog, syslog)
<
< AC_KRB_IPV6
<
< AC_FIND_FUNC(gethostbyname2, inet6 ip6)
<
< AC_FIND_FUNC(res_search, resolv,
< [
< #include <stdio.h>
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_NAMESER_H
< #include <arpa/nameser.h>
< #endif
< #ifdef HAVE_RESOLV_H
< #include <resolv.h>
< #endif
< ],
< [0,0,0,0,0])
<
< AC_FIND_FUNC(res_nsearch, resolv,
< [
< #include <stdio.h>
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_NAMESER_H
< #include <arpa/nameser.h>
< #endif
< #ifdef HAVE_RESOLV_H
< #include <resolv.h>
< #endif
< ],
< [0,0,0,0,0,0])
<
< AC_FIND_FUNC(dn_expand, resolv,
< [
< #include <stdio.h>
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_NAMESER_H
< #include <arpa/nameser.h>
< #endif
< #ifdef HAVE_RESOLV_H
< #include <resolv.h>
< #endif
< ],
< [0,0,0,0,0])
<
< rk_CHECK_VAR(_res,
< [#include <stdio.h>
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_NAMESER_H
< #include <arpa/nameser.h>
< #endif
< #ifdef HAVE_RESOLV_H
< #include <resolv.h>
< #endif])
<
<
< AC_BROKEN_SNPRINTF
< AC_BROKEN_VSNPRINTF
<
< AC_BROKEN_GLOB
< if test "$ac_cv_func_glob_working" != yes; then
< AC_LIBOBJ(glob)
< fi
< AM_CONDITIONAL(have_glob_h, test "$ac_cv_func_glob_working" = yes)
<
<
< AC_CHECK_FUNCS([ \
< asnprintf \
< asprintf \
< atexit \
< cgetent \
< getconfattr \
< getprogname \
< getrlimit \
< getspnam \
< initstate \
< issetugid \
< on_exit \
< random \
< setprogname \
< setstate \
< strsvis \
< strunvis \
< strvis \
< strvisx \
< svis \
< sysconf \
< sysctl \
< uname \
< unvis \
< vasnprintf \
< vasprintf \
< vis \
7889,7891d6186
< if test "$ac_cv_func_cgetent" = no; then
< AC_LIBOBJ(getcap)
< fi
7893c6188,6190
< AC_REQUIRE([AC_FUNC_GETLOGIN])
---
> # When config.status generates a header, we must update the stamp-h file.
> # This file resides in the same directory as the config header
> # that is generated. The stamp files are numbered to have different names.
7895c6192,6206
< AC_REQUIRE([AC_FUNC_MMAP])
---
> # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
> # loop where config.status creates the headers, so we can generate
> # our stamp files there.
> AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
> [# Compute $1's index in $config_headers.
> _am_stamp_count=1
> for _am_header in $config_headers :; do
> case $_am_header in
> $1 | $1:* )
> break ;;
> * )
> _am_stamp_count=`expr $_am_stamp_count + 1` ;;
> esac
> done
> echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7897,7912c6208,6210
< AC_FIND_FUNC_NO_LIBS(getsockopt,,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif],
< [0,0,0,0,0])
< AC_FIND_FUNC_NO_LIBS(setsockopt,,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif],
< [0,0,0,0,0])
---
> # AM_PROG_INSTALL_SH
> # ------------------
> # Define $install_sh.
7914,7923c6212
< AC_FIND_IF_NOT_BROKEN(hstrerror, resolv,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],
< 17)
< AC_NEED_PROTO([
< #ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],
< hstrerror)
---
> # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
7925,7929c6214,6217
< AC_FOREACH([rk_func], [asprintf vasprintf asnprintf vasnprintf],
< [AC_NEED_PROTO([
< #include <stdio.h>
< #include <string.h>],
< rk_func)])
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7931,7934c6219,6222
< AC_FIND_FUNC_NO_LIBS(bswap16,,
< [#ifdef HAVE_SYS_BSWAP_H
< #include <sys/bswap.h>
< #endif],0)
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7936,7939c6224,6227
< AC_FIND_FUNC_NO_LIBS(bswap32,,
< [#ifdef HAVE_SYS_BSWAP_H
< #include <sys/bswap.h>
< #endif],0)
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7941,7944c6229,6232
< AC_FIND_FUNC_NO_LIBS(pidfile,util,
< [#ifdef HAVE_UTIL_H
< #include <util.h>
< #endif],0)
---
> AC_DEFUN([AM_PROG_INSTALL_SH],
> [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
> install_sh=${install_sh-"$am_aux_dir/install-sh"}
> AC_SUBST(install_sh)])
7946,7949c6234,6235
< AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],[0,0,0,0])
---
> # -*- Autoconf -*-
> # Copyright (C) 2003 Free Software Foundation, Inc.
7951,7954c6237,6240
< AC_FIND_IF_NOT_BROKEN(getnameinfo,,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],[0,0,0,0,0,0,0])
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
7956,7959c6242,6245
< AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],[0])
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
7961,7964c6247,6250
< AC_FIND_IF_NOT_BROKEN(gai_strerror,,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif],[0])
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
7966,8033c6252
< AC_BROKEN([ \
< chown \
< copyhostent \
< daemon \
< ecalloc \
< emalloc \
< erealloc \
< estrdup \
< err \
< errx \
< fchown \
< flock \
< fnmatch \
< freehostent \
< getcwd \
< getdtablesize \
< getegid \
< geteuid \
< getgid \
< gethostname \
< getifaddrs \
< getipnodebyaddr \
< getipnodebyname \
< getopt \
< gettimeofday \
< getuid \
< getusershell \
< initgroups \
< innetgr \
< iruserok \
< localtime_r \
< lstat \
< memmove \
< mkstemp \
< putenv \
< rcmd \
< readv \
< recvmsg \
< sendmsg \
< setegid \
< setenv \
< seteuid \
< strcasecmp \
< strdup \
< strerror \
< strftime \
< strlcat \
< strlcpy \
< strlwr \
< strncasecmp \
< strndup \
< strnlen \
< strptime \
< strsep \
< strsep_copy \
< strtok_r \
< strupr \
< swab \
< unsetenv \
< verr \
< verrx \
< vsyslog \
< vwarn \
< vwarnx \
< warn \
< warnx \
< writev \
< ])
---
> # serial 1
8035,8099c6254,6262
< AC_FOREACH([rk_func], [strndup strsep strtok_r],
< [AC_NEED_PROTO([#include <string.h>], rk_func)])
<
< AC_FOREACH([rk_func], [strsvis strunvis strvis strvisx svis unvis vis],
< [AC_NEED_PROTO([#ifdef HAVE_VIS_H
< #include <vis.h>
< #endif], rk_func)])
<
< AC_BROKEN2(inet_aton,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif],
< [0,0])
<
< AC_BROKEN2(inet_ntop,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif],
< [0, 0, 0, 0])
<
< AC_BROKEN2(inet_pton,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif],
< [0,0,0])
<
< dnl
< dnl Check for sa_len in struct sockaddr,
< dnl needs to come before the getnameinfo test
< dnl
< AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
< #include <sys/socket.h>])
<
< if test "$ac_cv_func_getnameinfo" = "yes"; then
< rk_BROKEN_GETNAMEINFO
< if test "$ac_cv_func_getnameinfo_broken" = yes; then
< AC_LIBOBJ(getnameinfo)
< fi
---
> # Check whether the underlying file-system supports filenames
> # with a leading dot. For instance MS-DOS doesn't.
> AC_DEFUN([AM_SET_LEADING_DOT],
> [rm -rf .tst 2>/dev/null
> mkdir .tst 2>/dev/null
> if test -d .tst; then
> am__leading_dot=.
> else
> am__leading_dot=_
8100a6264,6265
> rmdir .tst 2>/dev/null
> AC_SUBST([am__leading_dot])])
8102,8108d6266
< if test "$ac_cv_func_getaddrinfo" = "yes"; then
< rk_BROKEN_GETADDRINFO
< if test "$ac_cv_func_getaddrinfo_numserv" = no; then
< AC_LIBOBJ(getaddrinfo)
< AC_LIBOBJ(freeaddrinfo)
< fi
< fi
8110,8114c6268,6269
< AC_NEED_PROTO([#include <stdlib.h>], setenv)
< AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
< AC_NEED_PROTO([#include <unistd.h>], gethostname)
< AC_NEED_PROTO([#include <unistd.h>], mkstemp)
< AC_NEED_PROTO([#include <unistd.h>], getusershell)
---
> # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
> # Free Software Foundation, Inc.
8116,8129c6271,6274
< AC_NEED_PROTO([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif],
< inet_aton)
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
8131c6276,6279
< AC_FIND_FUNC_NO_LIBS(crypt, crypt)dnl
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
8133c6281,6284
< AC_REQUIRE([rk_BROKEN_REALLOC])dnl
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
8135c6286
< dnl AC_KRB_FUNC_GETCWD_BROKEN
---
> # serial 4
8137,8412c6288,6297
< dnl
< dnl Checks for prototypes and declarations
< dnl
<
< AC_PROTO_COMPAT([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif
< #ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif
< ],
< gethostbyname, struct hostent *gethostbyname(const char *))
<
< AC_PROTO_COMPAT([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif
< #ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif
< ],
< gethostbyaddr, struct hostent *gethostbyaddr(const void *, size_t, int))
<
< AC_PROTO_COMPAT([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_ARPA_INET_H
< #include <arpa/inet.h>
< #endif
< #ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif
< ],
< getservbyname, struct servent *getservbyname(const char *, const char *))
<
< AC_PROTO_COMPAT([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< ],
< getsockname, int getsockname(int, struct sockaddr*, socklen_t*))
<
< AC_PROTO_COMPAT([
< #ifdef HAVE_SYSLOG_H
< #include <syslog.h>
< #endif
< ],
< openlog, void openlog(const char *, int, int))
<
< AC_NEED_PROTO([
< #ifdef HAVE_CRYPT_H
< #include <crypt.h>
< #endif
< #ifdef HAVE_UNISTD_H
< #include <unistd.h>
< #endif
< ],
< crypt)
<
< dnl variables
<
< rk_CHECK_VAR(h_errno,
< [#ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif])
<
< rk_CHECK_VAR(h_errlist,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif])
<
< rk_CHECK_VAR(h_nerr,
< [#ifdef HAVE_NETDB_H
< #include <netdb.h>
< #endif])
<
< rk_CHECK_VAR([__progname],
< [#ifdef HAVE_ERR_H
< #include <err.h>
< #endif])
<
< AC_CHECK_DECLARATION([#include <stdlib.h>
< #ifdef HAVE_UNISTD_H
< #include <unistd.h>
< #endif], optarg)
< AC_CHECK_DECLARATION([#include <stdlib.h>
< #ifdef HAVE_UNISTD_H
< #include <unistd.h>
< #endif], optind)
< AC_CHECK_DECLARATION([#include <stdlib.h>
< #ifdef HAVE_UNISTD_H
< #include <unistd.h>
< #endif], opterr)
< AC_CHECK_DECLARATION([#include <stdlib.h>
< #ifdef HAVE_UNISTD_H
< #include <unistd.h>
< #endif], optopt)
<
< AC_CHECK_DECLARATION([#include <stdlib.h>], environ)
<
< dnl
< dnl Check for fields in struct tm
< dnl
<
< AC_HAVE_STRUCT_FIELD(struct tm, tm_gmtoff, [#include <time.h>])
< AC_HAVE_STRUCT_FIELD(struct tm, tm_zone, [#include <time.h>])
<
< dnl
< dnl or do we have a variable `timezone' ?
< dnl
<
< rk_CHECK_VAR(timezone,[#include <time.h>])
< rk_CHECK_VAR(altzone,[#include <time.h>])
<
< AC_HAVE_TYPE([sa_family_t],[#include <sys/socket.h>])
< AC_HAVE_TYPE([socklen_t],[#include <sys/socket.h>])
< AC_HAVE_TYPE([struct sockaddr], [#include <sys/socket.h>])
< AC_HAVE_TYPE([struct sockaddr_storage], [#include <sys/socket.h>])
< AC_HAVE_TYPE([struct addrinfo], [#include <netdb.h>])
< AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
< AC_HAVE_TYPE([struct iovec],[
< #include <sys/types.h>
< #include <sys/uio.h>
< ])
< AC_HAVE_TYPE([struct msghdr],[
< #include <sys/types.h>
< #include <sys/socket.h>
< ])
<
< dnl
< dnl Check for struct winsize
< dnl
<
< AC_KRB_STRUCT_WINSIZE
<
< dnl
< dnl Check for struct spwd
< dnl
<
< AC_KRB_STRUCT_SPWD
<
< dnl won't work with automake
< dnl moved to AC_OUTPUT in configure.in
< dnl AC_CONFIG_FILES($1/Makefile)
<
< LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
<
< AC_SUBST(DIR_roken)dnl
< AC_SUBST(LIB_roken)dnl
< AC_SUBST(INCLUDES_roken)dnl
< ])
<
< dnl $Id: have-type.m4,v 1.6.12.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl check for existance of a type
<
< dnl AC_HAVE_TYPE(TYPE,INCLUDES)
< AC_DEFUN([AC_HAVE_TYPE], [
< AC_REQUIRE([AC_HEADER_STDC])
< cv=`echo "$1" | sed 'y%./+- %__p__%'`
< AC_MSG_CHECKING(for $1)
< AC_CACHE_VAL([ac_cv_type_$cv],
< AC_TRY_COMPILE(
< [#include <sys/types.h>
< #if STDC_HEADERS
< #include <stdlib.h>
< #include <stddef.h>
< #endif
< $2],
< [$1 foo;],
< eval "ac_cv_type_$cv=yes",
< eval "ac_cv_type_$cv=no"))dnl
< ac_foo=`eval echo \\$ac_cv_type_$cv`
< AC_MSG_RESULT($ac_foo)
< if test "$ac_foo" = yes; then
< ac_tr_hdr=HAVE_`echo $1 | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
< if false; then
< AC_CHECK_TYPES($1)
< fi
< AC_DEFINE_UNQUOTED($ac_tr_hdr, 1, [Define if you have type `$1'])
< fi
< ])
<
< dnl
< dnl $Id: retsigtype.m4,v 1.1.12.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl Figure out return type of signal handlers, and define SIGRETURN macro
< dnl that can be used to return from one
< dnl
< AC_DEFUN([rk_RETSIGTYPE],[
< AC_TYPE_SIGNAL
< if test "$ac_cv_type_signal" = "void" ; then
< AC_DEFINE(VOID_RETSIGTYPE, 1, [Define if signal handlers return void.])
< fi
< AC_SUBST(VOID_RETSIGTYPE)
< AH_BOTTOM([#ifdef VOID_RETSIGTYPE
< #define SIGRETURN(x) return
< #else
< #define SIGRETURN(x) return (RETSIGTYPE)(x)
< #endif])
< ])
< dnl
< dnl $Id: check-netinet-ip-and-tcp.m4,v 1.3.12.1 2004/04/01 07:27:33 joda Exp $
< dnl
<
< dnl extra magic check for netinet/{ip.h,tcp.h} because on irix 6.5.3
< dnl you have to include standards.h before including these files
<
< AC_DEFUN([CHECK_NETINET_IP_AND_TCP],
< [
< AC_CHECK_HEADERS(standards.h)
< for i in netinet/ip.h netinet/tcp.h; do
<
< cv=`echo "$i" | sed 'y%./+-%__p_%'`
<
< AC_CACHE_CHECK([for $i],ac_cv_header_$cv,
< [AC_TRY_CPP([\
< #ifdef HAVE_STANDARDS_H
< #include <standards.h>
< #endif
< #include <$i>
< ],
< eval "ac_cv_header_$cv=yes",
< eval "ac_cv_header_$cv=no")])
< ac_res=`eval echo \\$ac_cv_header_$cv`
< if test "$ac_res" = yes; then
< ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
< AC_DEFINE_UNQUOTED($ac_tr_hdr, 1)
< fi
< done
< if false;then
< AC_CHECK_HEADERS(netinet/ip.h netinet/tcp.h)
< fi
< ])
<
< dnl $Id: krb-ipv6.m4,v 1.13.8.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl test for IPv6
< dnl
< AC_DEFUN([AC_KRB_IPV6], [
< AC_ARG_WITH(ipv6,
< AC_HELP_STRING([--without-ipv6],[do not enable IPv6 support]),[
< if test "$withval" = "no"; then
< ac_cv_lib_ipv6=no
---
> # AM_PROG_LEX
> # -----------
> # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
> # "missing" invocation, for better error output.
> AC_DEFUN([AM_PROG_LEX],
> [AC_PREREQ(2.50)dnl
> AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
> AC_REQUIRE([AC_PROG_LEX])dnl
> if test "$LEX" = :; then
> LEX=${am_missing_run}flex
8414,8418d6298
< save_CFLAGS="${CFLAGS}"
< AC_CACHE_CHECK([for IPv6 stack type], v6type,
< [dnl check for different v6 implementations (by itojun)
< v6type=unknown
< v6lib=none
8420,8482c6300,6301
< for i in v6d toshiba kame inria zeta linux; do
< case $i in
< v6d)
< AC_EGREP_CPP(yes, [
< #include </usr/local/v6/include/sys/types.h>
< #ifdef __V6D__
< yes
< #endif],
< [v6type=$i; v6lib=v6;
< v6libdir=/usr/local/v6/lib;
< CFLAGS="-I/usr/local/v6/include $CFLAGS"])
< ;;
< toshiba)
< AC_EGREP_CPP(yes, [
< #include <sys/param.h>
< #ifdef _TOSHIBA_INET6
< yes
< #endif],
< [v6type=$i; v6lib=inet6;
< v6libdir=/usr/local/v6/lib;
< CFLAGS="-DINET6 $CFLAGS"])
< ;;
< kame)
< AC_EGREP_CPP(yes, [
< #include <netinet/in.h>
< #ifdef __KAME__
< yes
< #endif],
< [v6type=$i; v6lib=inet6;
< v6libdir=/usr/local/v6/lib;
< CFLAGS="-DINET6 $CFLAGS"])
< ;;
< inria)
< AC_EGREP_CPP(yes, [
< #include <netinet/in.h>
< #ifdef IPV6_INRIA_VERSION
< yes
< #endif],
< [v6type=$i; CFLAGS="-DINET6 $CFLAGS"])
< ;;
< zeta)
< AC_EGREP_CPP(yes, [
< #include <sys/param.h>
< #ifdef _ZETA_MINAMI_INET6
< yes
< #endif],
< [v6type=$i; v6lib=inet6;
< v6libdir=/usr/local/v6/lib;
< CFLAGS="-DINET6 $CFLAGS"])
< ;;
< linux)
< if test -d /usr/inet6; then
< v6type=$i
< v6lib=inet6
< v6libdir=/usr/inet6
< CFLAGS="-DINET6 $CFLAGS"
< fi
< ;;
< esac
< if test "$v6type" != "unknown"; then
< break
< fi
< done
---
> # Add --enable-maintainer-mode option to configure.
> # From Jim Meyering
8484,8492c6303,6304
< if test "$v6lib" != "none"; then
< for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
< if test -d $dir -a -f $dir/lib$v6lib.a; then
< LIBS="-L$dir -l$v6lib $LIBS"
< break
< fi
< done
< fi
< ])
---
> # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
> # Free Software Foundation, Inc.
8494,8511c6306,6309
< AC_CACHE_CHECK([for IPv6], ac_cv_lib_ipv6, [
< AC_TRY_LINK([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_NETINET_IN6_H
< #include <netinet/in6.h>
< #endif
< ],
< [
< struct sockaddr_in6 sin6;
< int s;
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
8513c6311,6314
< s = socket(AF_INET6, SOCK_DGRAM, 0);
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
8515,8526c6316,6319
< sin6.sin6_family = AF_INET6;
< sin6.sin6_port = htons(17);
< sin6.sin6_addr = in6addr_any;
< bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
< ],
< ac_cv_lib_ipv6=yes,
< ac_cv_lib_ipv6=no)])
< if test "$ac_cv_lib_ipv6" = yes; then
< AC_DEFINE(HAVE_IPV6, 1, [Define if you have IPv6.])
< else
< CFLAGS="${save_CFLAGS}"
< fi
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
8528,8577c6321
< if test "$ac_cv_lib_ipv6" = yes; then
< AC_CACHE_CHECK([for in6addr_loopback],[ac_cv_var_in6addr_loopback],[
< AC_TRY_LINK([
< #ifdef HAVE_SYS_TYPES_H
< #include <sys/types.h>
< #endif
< #ifdef HAVE_SYS_SOCKET_H
< #include <sys/socket.h>
< #endif
< #ifdef HAVE_NETINET_IN_H
< #include <netinet/in.h>
< #endif
< #ifdef HAVE_NETINET_IN6_H
< #include <netinet/in6.h>
< #endif],[
< struct sockaddr_in6 sin6;
< sin6.sin6_addr = in6addr_loopback;
< ],ac_cv_var_in6addr_loopback=yes,ac_cv_var_in6addr_loopback=no)])
< if test "$ac_cv_var_in6addr_loopback" = yes; then
< AC_DEFINE(HAVE_IN6ADDR_LOOPBACK, 1,
< [Define if you have the in6addr_loopback variable])
< fi
< fi
< ])
< dnl $Id: check-var.m4,v 1.7 2003/02/17 00:44:57 lha Exp $
< dnl
< dnl rk_CHECK_VAR(variable, includes)
< AC_DEFUN([rk_CHECK_VAR], [
< AC_MSG_CHECKING(for $1)
< AC_CACHE_VAL(ac_cv_var_$1, [
< m4_ifval([$2],[
< AC_TRY_LINK([$2
< void * foo() { return &$1; }],
< [foo()],
< ac_cv_var_$1=yes, ac_cv_var_$1=no)])
< if test "$ac_cv_var_$1" != yes ; then
< AC_TRY_LINK([extern int $1;
< int foo() { return $1; }],
< [foo()],
< ac_cv_var_$1=yes, ac_cv_var_$1=no)
< fi
< ])
< ac_foo=`eval echo \\$ac_cv_var_$1`
< AC_MSG_RESULT($ac_foo)
< if test "$ac_foo" = yes; then
< AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1,
< [Define if you have the `]$1[' variable.])
< m4_ifval([$2], AC_CHECK_DECLARATION([$2],[$1]))
< fi
< ])
---
> # serial 3
8579,8580c6323,6336
< AC_WARNING_ENABLE([obsolete])
< AU_DEFUN([AC_CHECK_VAR], [rk_CHECK_VAR([$2], [$1])], [foo])
---
> AC_DEFUN([AM_MAINTAINER_MODE],
> [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
> dnl maintainer-mode is disabled by default
> AC_ARG_ENABLE(maintainer-mode,
> [ --enable-maintainer-mode enable make rules and dependencies not useful
> (and sometimes confusing) to the casual installer],
> USE_MAINTAINER_MODE=$enableval,
> USE_MAINTAINER_MODE=no)
> AC_MSG_RESULT([$USE_MAINTAINER_MODE])
> AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
> MAINT=$MAINTAINER_MODE_TRUE
> AC_SUBST(MAINT)dnl
> ]
> )
8582,8586c6338
< dnl $Id: check-declaration.m4,v 1.3.34.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl
< dnl Check if we need the declaration of a variable
< dnl
---
> AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8588,8597c6340
< dnl AC_HAVE_DECLARATION(includes, variable)
< AC_DEFUN([AC_CHECK_DECLARATION], [
< AC_MSG_CHECKING([if $2 is properly declared])
< AC_CACHE_VAL(ac_cv_var_$2_declaration, [
< AC_TRY_COMPILE([$1
< extern struct { int foo; } $2;],
< [$2.foo = 1;],
< eval "ac_cv_var_$2_declaration=no",
< eval "ac_cv_var_$2_declaration=yes")
< ])
---
> # -*- Autoconf -*-
8599d6341
< define(foo, [HAVE_]translit($2, [a-z], [A-Z])[_DECLARATION])
8601,8606c6343
< AC_MSG_RESULT($ac_cv_var_$2_declaration)
< if eval "test \"\$ac_cv_var_$2_declaration\" = yes"; then
< AC_DEFINE(foo, 1, [define if your system declares $2])
< fi
< undefine([foo])
< ])
---
> # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
8608,8621c6345,6348
< dnl $Id: broken-snprintf.m4,v 1.4.10.1 2004/04/01 07:27:32 joda Exp $
< dnl
< AC_DEFUN([AC_BROKEN_SNPRINTF], [
< AC_CACHE_CHECK(for working snprintf,ac_cv_func_snprintf_working,
< ac_cv_func_snprintf_working=yes
< AC_TRY_RUN([
< #include <stdio.h>
< #include <string.h>
< int main()
< {
< char foo[[3]];
< snprintf(foo, 2, "12");
< return strcmp(foo, "1");
< }],:,ac_cv_func_snprintf_working=no,:))
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
8623,8629c6350,6353
< if test "$ac_cv_func_snprintf_working" = yes; then
< AC_DEFINE_UNQUOTED(HAVE_SNPRINTF, 1, [define if you have a working snprintf])
< fi
< if test "$ac_cv_func_snprintf_working" = yes; then
< AC_NEED_PROTO([#include <stdio.h>],snprintf)
< fi
< ])
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
8631,8637c6355,6358
< AC_DEFUN([AC_BROKEN_VSNPRINTF],[
< AC_CACHE_CHECK(for working vsnprintf,ac_cv_func_vsnprintf_working,
< ac_cv_func_vsnprintf_working=yes
< AC_TRY_RUN([
< #include <stdio.h>
< #include <string.h>
< #include <stdarg.h>
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
8639,8647c6360
< int foo(int num, ...)
< {
< char bar[[3]];
< va_list arg;
< va_start(arg, num);
< vsnprintf(bar, 2, "%s", arg);
< va_end(arg);
< return strcmp(bar, "1");
< }
---
> # serial 3
8648a6362,6367
> # AM_MISSING_PROG(NAME, PROGRAM)
> # ------------------------------
> AC_DEFUN([AM_MISSING_PROG],
> [AC_REQUIRE([AM_MISSING_HAS_RUN])
> $1=${$1-"${am_missing_run}$2"}
> AC_SUBST($1)])
8650,8653d6368
< int main()
< {
< return foo(0, "12");
< }],:,ac_cv_func_vsnprintf_working=no,:))
8655,8730c6370,6379
< if test "$ac_cv_func_vsnprintf_working" = yes; then
< AC_DEFINE_UNQUOTED(HAVE_VSNPRINTF, 1, [define if you have a working vsnprintf])
< fi
< if test "$ac_cv_func_vsnprintf_working" = yes; then
< AC_NEED_PROTO([#include <stdio.h>],vsnprintf)
< fi
< ])
<
< dnl $Id: need-proto.m4,v 1.4.6.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl
< dnl Check if we need the prototype for a function
< dnl
<
< dnl AC_NEED_PROTO(includes, function)
<
< AC_DEFUN([AC_NEED_PROTO], [
< if test "$ac_cv_func_$2+set" != set -o "$ac_cv_func_$2" = yes; then
< AC_CACHE_CHECK([if $2 needs a prototype], ac_cv_func_$2_noproto,
< AC_TRY_COMPILE([$1],
< [struct foo { int foo; } xx;
< extern int $2 (struct foo*);
< $2(&xx);
< ],
< eval "ac_cv_func_$2_noproto=yes",
< eval "ac_cv_func_$2_noproto=no"))
< if test "$ac_cv_func_$2_noproto" = yes; then
< AC_DEFINE(AS_TR_CPP(NEED_[]$2[]_PROTO), 1,
< [define if the system is missing a prototype for $2()])
< fi
< fi
< ])
<
< dnl $Id: broken-glob.m4,v 1.4.12.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl check for glob(3)
< dnl
< AC_DEFUN([AC_BROKEN_GLOB],[
< AC_CACHE_CHECK(for working glob, ac_cv_func_glob_working,
< ac_cv_func_glob_working=yes
< AC_TRY_LINK([
< #include <stdio.h>
< #include <glob.h>],[
< glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
< #ifdef GLOB_MAXPATH
< GLOB_MAXPATH
< #else
< GLOB_LIMIT
< #endif
< ,
< NULL, NULL);
< ],:,ac_cv_func_glob_working=no,:))
<
< if test "$ac_cv_func_glob_working" = yes; then
< AC_DEFINE(HAVE_GLOB, 1, [define if you have a glob() that groks
< GLOB_BRACE, GLOB_NOCHECK, GLOB_QUOTE, GLOB_TILDE, and GLOB_LIMIT])
< fi
< if test "$ac_cv_func_glob_working" = yes; then
< AC_NEED_PROTO([#include <stdio.h>
< #include <glob.h>],glob)
< fi
< ])
<
< dnl
< dnl $Id: krb-func-getlogin.m4,v 1.1.32.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl test for POSIX (broken) getlogin
< dnl
<
<
< AC_DEFUN([AC_FUNC_GETLOGIN], [
< AC_CHECK_FUNCS(getlogin setlogin)
< if test "$ac_cv_func_getlogin" = yes; then
< AC_CACHE_CHECK(if getlogin is posix, ac_cv_func_getlogin_posix, [
< if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
< ac_cv_func_getlogin_posix=no
---
> # AM_MISSING_HAS_RUN
> # ------------------
> # Define MISSING if not defined so far and test if it supports --run.
> # If it does, set am_missing_run to use it, otherwise, to nothing.
> AC_DEFUN([AM_MISSING_HAS_RUN],
> [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
> test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
> # Use eval to expand $SHELL
> if eval "$MISSING --run true"; then
> am_missing_run="$MISSING --run "
8732c6381,6382
< ac_cv_func_getlogin_posix=yes
---
> am_missing_run=
> AC_MSG_WARN([`missing' script is too old or missing])
8735,8739d6384
< if test "$ac_cv_func_getlogin_posix" = yes; then
< AC_DEFINE(POSIX_GETLOGIN, 1, [Define if getlogin has POSIX flavour (and not BSD).])
< fi
< fi
< ])
8741,8745c6386,6388
< dnl $Id: find-if-not-broken.m4,v 1.4.8.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl
< dnl Mix between AC_FIND_FUNC and AC_BROKEN
< dnl
---
> # AM_PROG_MKDIR_P
> # ---------------
> # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
8747,8752c6390
< AC_DEFUN([AC_FIND_IF_NOT_BROKEN],
< [AC_FIND_FUNC([$1], [$2], [$3], [$4])
< if eval "test \"$ac_cv_func_$1\" != yes"; then
< rk_LIBOBJ([$1])
< fi
< ])
---
> # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
8754,8758c6392,6395
< dnl $Id: broken.m4,v 1.6 2002/05/19 19:36:52 joda Exp $
< dnl
< dnl
< dnl Same as AC _REPLACE_FUNCS, just define HAVE_func if found in normal
< dnl libraries
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
8760,8765c6397,6400
< AC_DEFUN([AC_BROKEN],
< [AC_FOREACH([rk_func], [$1],
< [AC_CHECK_FUNC(rk_func,
< [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]rk_func), 1,
< [Define if you have the function `]rk_func['.])],
< [rk_LIBOBJ(rk_func)])])])
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
8767,8769c6402,6405
< dnl $Id: broken2.m4,v 1.4 2002/05/19 22:16:46 joda Exp $
< dnl
< dnl AC_BROKEN but with more arguments
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
8771,8788c6407,6433
< dnl AC_BROKEN2(func, includes, arguments)
< AC_DEFUN([AC_BROKEN2],
< [AC_MSG_CHECKING([for $1])
< AC_CACHE_VAL(ac_cv_func_[]$1,
< [AC_TRY_LINK([$2],
< [
< /* The GNU C library defines this for functions which it implements
< to always fail with ENOSYS. Some functions are actually named
< something starting with __ and the normal name is an alias. */
< #if defined (__stub_$1) || defined (__stub___$1)
< choke me
< #else
< $1($3)
< #endif
< ], [eval "ac_cv_func_[]$1=yes"], [eval "ac_cv_func_[]$1=no"])])
< if eval "test \"\${ac_cv_func_[]$1}\" = yes"; then
< AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, define)
< AC_MSG_RESULT(yes)
---
> # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
> # created by `make install' are always world readable, even if the
> # installer happens to have an overly restrictive umask (e.g. 077).
> # This was a mistake. There are at least two reasons why we must not
> # use `-m 0755':
> # - it causes special bits like SGID to be ignored,
> # - it may be too restrictive (some setups expect 775 directories).
> #
> # Do not use -m 0755 and let people choose whatever they expect by
> # setting umask.
> #
> # We cannot accept any implementation of `mkdir' that recognizes `-p'.
> # Some implementations (such as Solaris 8's) are not thread-safe: if a
> # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
> # concurrently, both version can detect that a/ is missing, but only
> # one can create it and the other will error out. Consequently we
> # restrict ourselves to GNU make (using the --version option ensures
> # this.)
> AC_DEFUN([AM_PROG_MKDIR_P],
> [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
> # Keeping the `.' argument allows $(mkdir_p) to be used without
> # argument. Indeed, we sometimes output rules like
> # $(mkdir_p) $(somedir)
> # where $(somedir) is conditionally defined.
> # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
> # expensive solution, as it forces Make to start a sub-shell.)
> mkdir_p='mkdir -p -- .'
8790,9098c6435,6445
< AC_MSG_RESULT(no)
< rk_LIBOBJ($1)
< fi])
<
< dnl $Id: have-struct-field.m4,v 1.6.22.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl check for fields in a structure
< dnl
< dnl AC_HAVE_STRUCT_FIELD(struct, field, headers)
<
< AC_DEFUN([AC_HAVE_STRUCT_FIELD], [
< define(cache_val, translit(ac_cv_type_$1_$2, [A-Z ], [a-z_]))
< AC_CACHE_CHECK([for $2 in $1], cache_val,[
< AC_TRY_COMPILE([$3],[$1 x; x.$2;],
< cache_val=yes,
< cache_val=no)])
< if test "$cache_val" = yes; then
< define(foo, translit(HAVE_$1_$2, [a-z ], [A-Z_]))
< AC_DEFINE(foo, 1, [Define if $1 has field $2.])
< undefine([foo])
< fi
< undefine([cache_val])
< ])
<
< dnl $Id: broken-getnameinfo.m4,v 1.2.12.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl test for broken AIX getnameinfo
<
< AC_DEFUN([rk_BROKEN_GETNAMEINFO],[
< AC_CACHE_CHECK([if getnameinfo is broken], ac_cv_func_getnameinfo_broken,
< AC_TRY_RUN([[#include <stdio.h>
< #include <sys/types.h>
< #include <sys/socket.h>
< #include <netinet/in.h>
< #include <netdb.h>
<
< int
< main(int argc, char **argv)
< {
< struct sockaddr_in sin;
< char host[256];
< memset(&sin, 0, sizeof(sin));
< #ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
< sin.sin_len = sizeof(sin);
< #endif
< sin.sin_family = AF_INET;
< sin.sin_addr.s_addr = 0xffffffff;
< sin.sin_port = 0;
< return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
< NULL, 0, 0);
< }
< ]], ac_cv_func_getnameinfo_broken=no, ac_cv_func_getnameinfo_broken=yes))])
<
< dnl $Id: broken-getaddrinfo.m4,v 1.3.6.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl test if getaddrinfo can handle numeric services
<
< AC_DEFUN([rk_BROKEN_GETADDRINFO],[
< AC_CACHE_CHECK([if getaddrinfo handles numeric services], ac_cv_func_getaddrinfo_numserv,
< AC_TRY_RUN([[#include <stdio.h>
< #include <sys/types.h>
< #include <sys/socket.h>
< #include <netdb.h>
<
< int
< main(int argc, char **argv)
< {
< struct addrinfo hints, *ai;
< memset(&hints, 0, sizeof(hints));
< hints.ai_flags = AI_PASSIVE;
< hints.ai_socktype = SOCK_STREAM;
< hints.ai_family = PF_UNSPEC;
< if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
< return 1;
< return 0;
< }
< ]], ac_cv_func_getaddrinfo_numserv=yes, ac_cv_func_getaddrinfo_numserv=no))])
<
< dnl
< dnl $Id: broken-realloc.m4,v 1.1.12.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl Test for realloc that doesn't handle NULL as first parameter
< dnl
< AC_DEFUN([rk_BROKEN_REALLOC], [
< AC_CACHE_CHECK(if realloc if broken, ac_cv_func_realloc_broken, [
< ac_cv_func_realloc_broken=no
< AC_TRY_RUN([
< #include <stddef.h>
< #include <stdlib.h>
<
< int main()
< {
< return realloc(NULL, 17) == NULL;
< }
< ],:, ac_cv_func_realloc_broken=yes, :)
< ])
< if test "$ac_cv_func_realloc_broken" = yes ; then
< AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL) doesn't work.])
< fi
< AH_BOTTOM([#ifdef BROKEN_REALLOC
< #define realloc(X, Y) isoc_realloc((X), (Y))
< #define isoc_realloc(X, Y) ((X) ? realloc((X), (Y)) : malloc(Y))
< #endif])
< ])
<
< dnl $Id: proto-compat.m4,v 1.3.34.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl
< dnl Check if the prototype of a function is compatible with another one
< dnl
<
< dnl AC_PROTO_COMPAT(includes, function, prototype)
<
< AC_DEFUN([AC_PROTO_COMPAT], [
< AC_CACHE_CHECK([if $2 is compatible with system prototype],
< ac_cv_func_$2_proto_compat,
< AC_TRY_COMPILE([$1],
< [$3;],
< eval "ac_cv_func_$2_proto_compat=yes",
< eval "ac_cv_func_$2_proto_compat=no"))
< define([foo], translit($2, [a-z], [A-Z])[_PROTO_COMPATIBLE])
< if test "$ac_cv_func_$2_proto_compat" = yes; then
< AC_DEFINE(foo, 1, [define if prototype of $2 is compatible with
< $3])
< fi
< undefine([foo])
< ])
< dnl $Id: krb-struct-winsize.m4,v 1.3.10.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl
< dnl Search for struct winsize
< dnl
<
< AC_DEFUN([AC_KRB_STRUCT_WINSIZE], [
< AC_MSG_CHECKING(for struct winsize)
< AC_CACHE_VAL(ac_cv_struct_winsize, [
< ac_cv_struct_winsize=no
< for i in sys/termios.h sys/ioctl.h; do
< AC_EGREP_HEADER(
< struct[[ ]]*winsize,dnl
< $i, ac_cv_struct_winsize=yes; break)dnl
< done
< ])
< if test "$ac_cv_struct_winsize" = "yes"; then
< AC_DEFINE(HAVE_STRUCT_WINSIZE, 1, [define if struct winsize is declared in sys/termios.h])
< fi
< AC_MSG_RESULT($ac_cv_struct_winsize)
< AC_EGREP_HEADER(ws_xpixel, termios.h,
< AC_DEFINE(HAVE_WS_XPIXEL, 1, [define if struct winsize has ws_xpixel]))
< AC_EGREP_HEADER(ws_ypixel, termios.h,
< AC_DEFINE(HAVE_WS_YPIXEL, 1, [define if struct winsize has ws_ypixel]))
< ])
<
< dnl $Id: krb-struct-spwd.m4,v 1.3.32.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl Test for `struct spwd'
<
< AC_DEFUN([AC_KRB_STRUCT_SPWD], [
< AC_MSG_CHECKING(for struct spwd)
< AC_CACHE_VAL(ac_cv_struct_spwd, [
< AC_TRY_COMPILE(
< [#include <pwd.h>
< #ifdef HAVE_SHADOW_H
< #include <shadow.h>
< #endif],
< [struct spwd foo;],
< ac_cv_struct_spwd=yes,
< ac_cv_struct_spwd=no)
< ])
< AC_MSG_RESULT($ac_cv_struct_spwd)
<
< if test "$ac_cv_struct_spwd" = "yes"; then
< AC_DEFINE(HAVE_STRUCT_SPWD, 1, [define if you have struct spwd])
< fi
< ])
<
< dnl $Id: otp.m4,v 1.2 2002/05/19 20:51:08 joda Exp $
< dnl
< dnl check requirements for OTP library
< dnl
< AC_DEFUN([rk_OTP],[
< AC_REQUIRE([rk_DB])dnl
< AC_ARG_ENABLE(otp,
< AC_HELP_STRING([--disable-otp],[if you don't want OTP support]))
< if test "$enable_otp" = yes -a "$db_type" = unknown; then
< AC_MSG_ERROR([OTP requires a NDBM/DB compatible library])
< fi
< if test "$enable_otp" != no; then
< if test "$db_type" != unknown; then
< enable_otp=yes
< else
< enable_otp=no
< fi
< fi
< if test "$enable_otp" = yes; then
< AC_DEFINE(OTP, 1, [Define if you want OTP support in applications.])
< LIB_otp='$(top_builddir)/lib/otp/libotp.la'
< AC_SUBST(LIB_otp)
< fi
< AC_MSG_CHECKING([whether to enable OTP library])
< AC_MSG_RESULT($enable_otp)
< AM_CONDITIONAL(OTP, test "$enable_otp" = yes)dnl
< ])
<
< dnl $Id: osfc2.m4,v 1.3.8.1 2004/04/01 07:27:35 joda Exp $
< dnl
< dnl enable OSF C2 stuff
<
< AC_DEFUN([AC_CHECK_OSFC2],[
< AC_ARG_ENABLE(osfc2,
< AC_HELP_STRING([--enable-osfc2],[enable some OSF C2 support]))
< LIB_security=
< if test "$enable_osfc2" = yes; then
< AC_DEFINE(HAVE_OSFC2, 1, [Define to enable basic OSF C2 support.])
< LIB_security=-lsecurity
< fi
< AC_SUBST(LIB_security)
< ])
<
< dnl $Id: check-man.m4,v 1.3.12.1 2004/04/01 07:27:32 joda Exp $
< dnl check how to format manual pages
< dnl
<
< AC_DEFUN([rk_CHECK_MAN],
< [AC_PATH_PROG(NROFF, nroff)
< AC_PATH_PROG(GROFF, groff)
< AC_CACHE_CHECK(how to format man pages,ac_cv_sys_man_format,
< [cat > conftest.1 << END
< .Dd January 1, 1970
< .Dt CONFTEST 1
< .Sh NAME
< .Nm conftest
< .Nd
< foobar
< END
<
< if test "$NROFF" ; then
< for i in "-mdoc" "-mandoc"; do
< if "$NROFF" $i conftest.1 2> /dev/null | \
< grep Jan > /dev/null 2>&1 ; then
< ac_cv_sys_man_format="$NROFF $i"
< break
< fi
< done
< fi
< if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
< for i in "-mdoc" "-mandoc"; do
< if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
< grep Jan > /dev/null 2>&1 ; then
< ac_cv_sys_man_format="$GROFF -Tascii $i"
< break
< fi
< done
< fi
< if test "$ac_cv_sys_man_format"; then
< ac_cv_sys_man_format="$ac_cv_sys_man_format \[$]< > \[$]@"
< fi
< ])
< if test "$ac_cv_sys_man_format"; then
< CATMAN="$ac_cv_sys_man_format"
< AC_SUBST(CATMAN)
< fi
< AM_CONDITIONAL(CATMAN, test "$CATMAN")
< AC_CACHE_CHECK(extension of pre-formatted manual pages,ac_cv_sys_catman_ext,
< [if grep _suffix /etc/man.conf > /dev/null 2>&1; then
< ac_cv_sys_catman_ext=0
< else
< ac_cv_sys_catman_ext=number
< fi
< ])
< if test "$ac_cv_sys_catman_ext" = number; then
< CATMANEXT='$$section'
< else
< CATMANEXT=0
< fi
< AC_SUBST(CATMANEXT)
< ])
< dnl
< dnl $Id: krb-bigendian.m4,v 1.8.6.1 2004/04/01 07:27:33 joda Exp $
< dnl
<
< dnl check if this computer is little or big-endian
< dnl if we can figure it out at compile-time then don't define the cpp symbol
< dnl otherwise test for it and define it. also allow options for overriding
< dnl it when cross-compiling
<
< AC_DEFUN([KRB_C_BIGENDIAN], [
< AC_ARG_ENABLE(bigendian,
< AC_HELP_STRING([--enable-bigendian],[the target is big endian]),
< krb_cv_c_bigendian=yes)
< AC_ARG_ENABLE(littleendian,
< AC_HELP_STRING([--enable-littleendian],[the target is little endian]),
< krb_cv_c_bigendian=no)
< AC_CACHE_CHECK(whether byte order is known at compile time,
< krb_cv_c_bigendian_compile,
< [AC_TRY_COMPILE([
< #include <sys/types.h>
< #include <sys/param.h>],[
< #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
< bogus endian macros
< #endif], krb_cv_c_bigendian_compile=yes, krb_cv_c_bigendian_compile=no)])
< AC_CACHE_CHECK(whether byte ordering is bigendian, krb_cv_c_bigendian,[
< if test "$krb_cv_c_bigendian_compile" = "yes"; then
< AC_TRY_COMPILE([
< #include <sys/types.h>
< #include <sys/param.h>],[
< #if BYTE_ORDER != BIG_ENDIAN
< not big endian
< #endif], krb_cv_c_bigendian=yes, krb_cv_c_bigendian=no)
---
> # On NextStep and OpenStep, the `mkdir' command does not
> # recognize any option. It will interpret all options as
> # directories to create, and then abort because `.' already
> # exists.
> for d in ./-p ./--version;
> do
> test -d $d && rmdir $d
> done
> # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
> if test -f "$ac_aux_dir/mkinstalldirs"; then
> mkdir_p='$(mkinstalldirs)'
9100,9110c6447
< AC_TRY_RUN([main () {
< /* Are we little or big endian? From Harbison&Steele. */
< union
< {
< long l;
< char c[sizeof (long)];
< } u;
< u.l = 1;
< exit (u.c[sizeof (long) - 1] == 1);
< }], krb_cv_c_bigendian=no, krb_cv_c_bigendian=yes,
< AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian]))
---
> mkdir_p='$(install_sh) -d'
9112,9114d6448
< ])
< if test "$krb_cv_c_bigendian" = "yes"; then
< AC_DEFINE(WORDS_BIGENDIAN, 1, [define if target is big endian])dnl
9116,9128c6450
< if test "$krb_cv_c_bigendian_compile" = "yes"; then
< AC_DEFINE(ENDIANESS_IN_SYS_PARAM_H, 1, [define if sys/param.h defines the endiness])dnl
< fi
< AH_BOTTOM([
< #if ENDIANESS_IN_SYS_PARAM_H
< # include <sys/types.h>
< # include <sys/param.h>
< # if BYTE_ORDER == BIG_ENDIAN
< # define WORDS_BIGENDIAN 1
< # endif
< #endif
< ])
< ])
---
> AC_SUBST([mkdir_p])])
9130,9132c6452
< dnl
< dnl $Id: aix.m4,v 1.9.6.1 2004/04/01 07:27:32 joda Exp $
< dnl
---
> # Helper functions for option handling. -*- Autoconf -*-
9134c6454
< AC_DEFUN([rk_AIX],[
---
> # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
9136,9144c6456,6459
< aix=no
< case "$host" in
< *-*-aix3*)
< aix=3
< ;;
< *-*-aix4*|*-*-aix5*)
< aix=4
< ;;
< esac
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
9146,9147c6461,6464
< AM_CONDITIONAL(AIX, test "$aix" != no)dnl
< AM_CONDITIONAL(AIX4, test "$aix" = 4)
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
9148a6466,6469
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
9150,9152c6471
< AC_ARG_ENABLE(dynamic-afs,
< AC_HELP_STRING([--disable-dynamic-afs],
< [do not use loaded AFS library with AIX]))
---
> # serial 2
9154,9172c6473,6476
< if test "$aix" != no; then
< if test "$enable_dynamic_afs" != no; then
< AC_REQUIRE([rk_DLOPEN])
< if test "$ac_cv_func_dlopen" = no; then
< AC_FIND_FUNC_NO_LIBS(loadquery, ld)
< fi
< if test "$ac_cv_func_dlopen" != no; then
< AIX_EXTRA_KAFS='$(LIB_dlopen)'
< elif test "$ac_cv_func_loadquery" != no; then
< AIX_EXTRA_KAFS='$(LIB_loadquery)'
< else
< AC_MSG_NOTICE([not using dynloaded AFS library])
< AIX_EXTRA_KAFS=
< enable_dynamic_afs=no
< fi
< else
< AIX_EXTRA_KAFS=
< fi
< fi
---
> # _AM_MANGLE_OPTION(NAME)
> # -----------------------
> AC_DEFUN([_AM_MANGLE_OPTION],
> [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9174,9175c6478,6482
< AM_CONDITIONAL(AIX_DYNAMIC_AFS, test "$enable_dynamic_afs" != no)dnl
< AC_SUBST(AIX_EXTRA_KAFS)dnl
---
> # _AM_SET_OPTION(NAME)
> # ------------------------------
> # Set option NAME. Presently that only means defining a flag for this option.
> AC_DEFUN([_AM_SET_OPTION],
> [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9177,9184c6484,6488
< AH_BOTTOM([#if _AIX
< #define _ALL_SOURCE
< /* XXX this is gross, but kills about a gazillion warnings */
< struct ether_addr;
< struct sockaddr;
< struct sockaddr_dl;
< struct sockaddr_in;
< #endif])
---
> # _AM_SET_OPTIONS(OPTIONS)
> # ----------------------------------
> # OPTIONS is a space-separated list of Automake options.
> AC_DEFUN([_AM_SET_OPTIONS],
> [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9186c6490,6494
< ])
---
> # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
> # -------------------------------------------
> # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
> AC_DEFUN([_AM_IF_OPTION],
> [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9188,9486d6495
< dnl
< dnl $Id: dlopen.m4,v 1.1 2002/08/28 16:32:16 joda Exp $
< dnl
<
< AC_DEFUN([rk_DLOPEN], [
< AC_FIND_FUNC_NO_LIBS(dlopen, dl)
< AM_CONDITIONAL(HAVE_DLOPEN, test "$ac_cv_funclib_dlopen" != no)
< ])
<
< dnl
< dnl $Id: irix.m4,v 1.1 2002/08/28 19:11:44 joda Exp $
< dnl
<
< AC_DEFUN([rk_IRIX],
< [
< irix=no
< case "$host" in
< *-*-irix4*)
< AC_DEFINE([IRIX4], 1,
< [Define if you are running IRIX 4.])
< irix=yes
< ;;
< *-*-irix*)
< irix=yes
< ;;
< esac
< AM_CONDITIONAL(IRIX, test "$irix" != no)dnl
<
< AH_BOTTOM([
< /* IRIX 4 braindamage */
< #if IRIX == 4 && !defined(__STDC__)
< #define __STDC__ 0
< #endif
< ])
< ])
<
< dnl
< dnl $Id: sunos.m4,v 1.2 2002/10/16 14:42:13 joda Exp $
< dnl
<
< AC_DEFUN([rk_SUNOS],[
< sunos=no
< case "$host" in
< *-*-sunos4*)
< sunos=40
< ;;
< *-*-solaris2.7)
< sunos=57
< ;;
< *-*-solaris2.[[89]])
< sunos=58
< ;;
< *-*-solaris2*)
< sunos=50
< ;;
< esac
< if test "$sunos" != no; then
< AC_DEFINE_UNQUOTED(SunOS, $sunos,
< [Define to what version of SunOS you are running.])
< fi
< ])
< dnl
< dnl See if there is any X11 present
< dnl
< dnl $Id: check-x.m4,v 1.2.20.1 2004/04/01 07:27:33 joda Exp $
<
< AC_DEFUN([KRB_CHECK_X],[
< AC_PATH_XTRA
<
< # try to figure out if we need any additional ld flags, like -R
< # and yes, the autoconf X test is utterly broken
< if test "$no_x" != yes; then
< AC_CACHE_CHECK(for special X linker flags,krb_cv_sys_x_libs_rpath,[
< ac_save_libs="$LIBS"
< ac_save_cflags="$CFLAGS"
< CFLAGS="$CFLAGS $X_CFLAGS"
< krb_cv_sys_x_libs_rpath=""
< krb_cv_sys_x_libs=""
< for rflag in "" "-R" "-R " "-rpath "; do
< if test "$rflag" = ""; then
< foo="$X_LIBS"
< else
< foo=""
< for flag in $X_LIBS; do
< case $flag in
< -L*)
< foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
< ;;
< *)
< foo="$foo $flag"
< ;;
< esac
< done
< fi
< LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
< AC_TRY_RUN([
< #include <X11/Xlib.h>
< foo()
< {
< XOpenDisplay(NULL);
< }
< main()
< {
< return 0;
< }
< ], krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break,:)
< done
< LIBS="$ac_save_libs"
< CFLAGS="$ac_save_cflags"
< ])
< X_LIBS="$krb_cv_sys_x_libs"
< fi
< ])
<
< dnl $Id: check-xau.m4,v 1.3.34.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl check for Xau{Read,Write}Auth and XauFileName
< dnl
< AC_DEFUN([AC_CHECK_XAU],[
< save_CFLAGS="$CFLAGS"
< CFLAGS="$X_CFLAGS $CFLAGS"
< save_LIBS="$LIBS"
< dnl LIBS="$X_LIBS $X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
< LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
< save_LDFLAGS="$LDFLAGS"
< LDFLAGS="$LDFLAGS $X_LIBS"
<
<
< AC_FIND_FUNC_NO_LIBS(XauWriteAuth, X11 Xau)
< ac_xxx="$LIBS"
< LIBS="$LIB_XauWriteAuth $LIBS"
< AC_FIND_FUNC_NO_LIBS(XauReadAuth, X11 Xau)
< LIBS="$LIB_XauReadAauth $LIBS"
< AC_FIND_FUNC_NO_LIBS(XauFileName, X11 Xau)
< LIBS="$ac_xxx"
<
< case "$ac_cv_funclib_XauWriteAuth" in
< yes) ;;
< no) ;;
< *) if test "$ac_cv_funclib_XauReadAuth" = yes; then
< if test "$ac_cv_funclib_XauFileName" = yes; then
< LIB_XauReadAuth="$LIB_XauWriteAuth"
< else
< LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
< fi
< else
< if test "$ac_cv_funclib_XauFileName" = yes; then
< LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
< else
< LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
< fi
< fi
< ;;
< esac
<
< if test "$AUTOMAKE" != ""; then
< AM_CONDITIONAL(NEED_WRITEAUTH, test "$ac_cv_func_XauWriteAuth" != "yes")
< else
< AC_SUBST(NEED_WRITEAUTH_TRUE)
< AC_SUBST(NEED_WRITEAUTH_FALSE)
< if test "$ac_cv_func_XauWriteAuth" != "yes"; then
< NEED_WRITEAUTH_TRUE=
< NEED_WRITEAUTH_FALSE='#'
< else
< NEED_WRITEAUTH_TRUE='#'
< NEED_WRITEAUTH_FALSE=
< fi
< fi
< CFLAGS=$save_CFLAGS
< LIBS=$save_LIBS
< LDFLAGS=$save_LDFLAGS
< ])
<
< dnl $Id: check-type-extra.m4,v 1.2.34.1 2004/04/01 07:27:33 joda Exp $
< dnl
< dnl ac_check_type + extra headers
<
< dnl AC_CHECK_TYPE_EXTRA(TYPE, DEFAULT, HEADERS)
< AC_DEFUN([AC_CHECK_TYPE_EXTRA],
< [AC_REQUIRE([AC_HEADER_STDC])dnl
< AC_MSG_CHECKING(for $1)
< AC_CACHE_VAL(ac_cv_type_$1,
< [AC_EGREP_CPP(dnl
< changequote(<<,>>)dnl
< <<$1[^a-zA-Z_0-9]>>dnl
< changequote([,]), [#include <sys/types.h>
< #if STDC_HEADERS
< #include <stdlib.h>
< #include <stddef.h>
< #endif
< $3], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
< AC_MSG_RESULT($ac_cv_type_$1)
< if test $ac_cv_type_$1 = no; then
< AC_DEFINE($1, $2, [Define this to what the type $1 should be.])
< fi
< ])
<
< dnl
< dnl $Id: capabilities.m4,v 1.2.20.1 2004/04/01 07:27:32 joda Exp $
< dnl
<
< dnl
< dnl Test SGI capabilities
< dnl
<
< AC_DEFUN([KRB_CAPABILITIES],[
<
< AC_CHECK_HEADERS(capability.h sys/capability.h)
<
< AC_CHECK_FUNCS(sgi_getcapabilitybyname cap_set_proc)
< ])
<
< dnl $Id: check-getpwnam_r-posix.m4,v 1.2.34.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl check for getpwnam_r, and if it's posix or not
<
< AC_DEFUN([AC_CHECK_GETPWNAM_R_POSIX],[
< AC_FIND_FUNC_NO_LIBS(getpwnam_r,c_r)
< if test "$ac_cv_func_getpwnam_r" = yes; then
< AC_CACHE_CHECK(if getpwnam_r is posix,ac_cv_func_getpwnam_r_posix,
< ac_libs="$LIBS"
< LIBS="$LIBS $LIB_getpwnam_r"
< AC_TRY_RUN([
< #include <pwd.h>
< int main()
< {
< struct passwd pw, *pwd;
< return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
< }
< ],ac_cv_func_getpwnam_r_posix=yes,ac_cv_func_getpwnam_r_posix=no,:)
< LIBS="$ac_libs")
< if test "$ac_cv_func_getpwnam_r_posix" = yes; then
< AC_DEFINE(POSIX_GETPWNAM_R, 1, [Define if getpwnam_r has POSIX flavour.])
< fi
< fi
< ])
< dnl $Id: krb-readline.m4,v 1.5.6.1 2004/04/01 07:27:34 joda Exp $
< dnl
< dnl Tests for readline functions
< dnl
<
< dnl el_init
<
< AC_DEFUN([KRB_READLINE],[
< AC_FIND_FUNC_NO_LIBS(el_init, edit, [], [], [$LIB_tgetent])
< if test "$ac_cv_func_el_init" = yes ; then
< AC_CACHE_CHECK(for four argument el_init, ac_cv_func_el_init_four,[
< AC_TRY_COMPILE([#include <stdio.h>
< #include <histedit.h>],
< [el_init("", NULL, NULL, NULL);],
< ac_cv_func_el_init_four=yes,
< ac_cv_func_el_init_four=no)])
< if test "$ac_cv_func_el_init_four" = yes; then
< AC_DEFINE(HAVE_FOUR_VALUED_EL_INIT, 1, [Define if el_init takes four arguments.])
< fi
< fi
<
< dnl readline
<
< ac_foo=no
< if test "$with_readline" = yes; then
< :
< elif test "$ac_cv_func_readline" = yes; then
< :
< elif test "$ac_cv_func_el_init" = yes; then
< ac_foo=yes
< LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
< else
< LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
< fi
< AM_CONDITIONAL(el_compat, test "$ac_foo" = yes)
< AC_DEFINE(HAVE_READLINE, 1,
< [Define if you have a readline compatible library.])dnl
<
< ])
<
< dnl
< dnl $Id: telnet.m4,v 1.1 2002/08/28 19:19:01 joda Exp $
< dnl
< dnl stuff used by telnet
<
< AC_DEFUN([rk_TELNET],[
< AC_DEFINE(AUTHENTICATION, 1,
< [Define if you want authentication support in telnet.])dnl
< AC_DEFINE(ENCRYPTION, 1,
< [Define if you want encryption support in telnet.])dnl
< AC_DEFINE(DES_ENCRYPTION, 1,
< [Define if you want to use DES encryption in telnet.])dnl
< AC_DEFINE(DIAGNOSTICS, 1,
< [Define this to enable diagnostics in telnet.])dnl
< AC_DEFINE(OLD_ENVIRON, 1,
< [Define this to enable old environment option in telnet.])dnl
< if false; then
< AC_DEFINE(ENV_HACK, 1,
< [Define this if you want support for broken ENV_{VAR,VAL} telnets.])
< fi
<
< # Simple test for streamspty, based on the existance of getmsg(), alas
< # this breaks on SunOS4 which have streams but BSD-like ptys
9488c6497,6498
< # And also something wierd has happend with dec-osf1, fallback to bsd-ptys
---
> # Check to make sure that the build environment is sane.
> #
9490,9499c6500
< case "$host" in
< *-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[[01]]*)
< ;;
< *)
< AC_CHECK_FUNC(getmsg)
< if test "$ac_cv_func_getmsg" = "yes"; then
< AC_CACHE_CHECK([if getmsg works], ac_cv_func_getmsg_works,
< AC_TRY_RUN([
< #include <stdio.h>
< #include <errno.h>
---
> # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
9501,9520c6502,6505
< int main()
< {
< int ret;
< ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
< if(ret < 0 && errno == ENOSYS)
< return 1;
< return 0;
< }
< ], ac_cv_func_getmsg_works=yes,
< ac_cv_func_getmsg_works=no,
< ac_cv_func_getmsg_works=no))
< if test "$ac_cv_func_getmsg_works" = "yes"; then
< AC_DEFINE(HAVE_GETMSG, 1,
< [Define if you have a working getmsg.])
< AC_DEFINE(STREAMSPTY, 1,
< [Define if you have streams ptys.])
< fi
< fi
< ;;
< esac
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
9522,9525c6507,6510
< AH_BOTTOM([
< #if defined(ENCRYPTION) && !defined(AUTHENTICATION)
< #define AUTHENTICATION 1
< #endif
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
9527,9531c6512,6515
< /* Set this to the default system lead string for telnetd
< * can contain %-escapes: %s=sysname, %m=machine, %r=os-release
< * %v=os-version, %t=tty, %h=hostname, %d=date and time
< */
< #undef USE_IM
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
9533,9534c6517
< /* Used with login -p */
< #undef LOGIN_ARGS
---
> # serial 3
9536,9541c6519,6539
< /* set this to a sensible login */
< #ifndef LOGIN_PATH
< #define LOGIN_PATH BINDIR "/login"
< #endif
< ])
< ])
---
> # AM_SANITY_CHECK
> # ---------------
> AC_DEFUN([AM_SANITY_CHECK],
> [AC_MSG_CHECKING([whether build environment is sane])
> # Just in case
> sleep 1
> echo timestamp > conftest.file
> # Do `set' in a subshell so we don't clobber the current shell's
> # arguments. Must try -L first in case configure is actually a
> # symlink; some systems play weird games with the mod time of symlinks
> # (eg FreeBSD returns the mod time of the symlink's containing
> # directory).
> if (
> set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
> if test "$[*]" = "X"; then
> # -L didn't work.
> set X `ls -t $srcdir/configure conftest.file`
> fi
> rm -f conftest.file
> if test "$[*]" != "X $srcdir/configure conftest.file" \
> && test "$[*]" != "X conftest.file $srcdir/configure"; then
9543,9546c6541,6547
< dnl $Id: check-compile-et.m4,v 1.7.2.1 2003/08/15 14:40:42 lha Exp $
< dnl
< dnl CHECK_COMPILE_ET
< AC_DEFUN([CHECK_COMPILE_ET], [
---
> # If neither matched, then we have a broken ls. This can happen
> # if, for instance, CONFIG_SHELL is bash and it inherits a
> # broken ls alias from the environment. This has actually
> # happened. Such a system could not be considered "sane".
> AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
> alias in your environment])
> fi
9548,9608c6549,6553
< AC_CHECK_PROG(COMPILE_ET, compile_et, [compile_et])
<
< krb_cv_compile_et="no"
< krb_cv_com_err_need_r=""
< if test "${COMPILE_ET}" = "compile_et"; then
<
< dnl We have compile_et. Now let's see if it supports `prefix' and `index'.
< AC_MSG_CHECKING(whether compile_et has the features we need)
< cat > conftest_et.et <<'EOF'
< error_table test conf
< prefix CONFTEST
< index 1
< error_code CODE1, "CODE1"
< index 128
< error_code CODE2, "CODE2"
< end
< EOF
< if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
< dnl XXX Some systems have <et/com_err.h>.
< save_CPPFLAGS="${CPPFLAGS}"
< if test -d "/usr/include/et"; then
< CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
< fi
< dnl Check that the `prefix' and `index' directives were honored.
< AC_TRY_RUN([
< #include <com_err.h>
< #include <string.h>
< #include "conftest_et.h"
< int main(){
< #ifndef ERROR_TABLE_BASE_conf
< #error compile_et does not handle error_table N M
< #endif
< return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
< ], [krb_cv_compile_et="yes"],[CPPFLAGS="${save_CPPFLAGS}"])
< fi
< AC_MSG_RESULT(${krb_cv_compile_et})
< if test "${krb_cv_compile_et}" = "yes"; then
< AC_MSG_CHECKING(for if com_err needs to have a initialize_error_table_r)
< AC_EGREP_CPP(initialize_error_table_r,[#include "conftest_et.c"],
< [krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"])
< if test X"$krb_cv_com_err_need_r" = X ; then
< AC_MSG_RESULT(no)
< else
< AC_MSG_RESULT(yes)
< fi
< fi
< rm -fr conftest*
< fi
<
< if test "${krb_cv_compile_et}" = "yes"; then
< dnl Since compile_et seems to work, let's check libcom_err
< krb_cv_save_LIBS="${LIBS}"
< LIBS="${LIBS} -lcom_err"
< AC_MSG_CHECKING(for com_err)
< AC_TRY_LINK([#include <com_err.h>],[
< const char *p;
< p = error_message(0);
< $krb_cv_com_err_need_r
< ],[krb_cv_com_err="yes"],[krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"])
< AC_MSG_RESULT(${krb_cv_com_err})
< LIBS="${krb_cv_save_LIBS}"
---
> test "$[2]" = conftest.file
> )
> then
> # Ok.
> :
9610,9611c6555,6556
< dnl Since compile_et doesn't work, forget about libcom_err
< krb_cv_com_err="no"
---
> AC_MSG_ERROR([newly created file is older than distributed files!
> Check your system clock])
9612a6558
> AC_MSG_RESULT(yes)])
9614,9633c6560
< dnl Only use the system's com_err if we found compile_et, libcom_err, and
< dnl com_err.h.
< if test "${krb_cv_com_err}" = "yes"; then
< DIR_com_err=""
< LIB_com_err="-lcom_err"
< LIB_com_err_a=""
< LIB_com_err_so=""
< AC_MSG_NOTICE(Using the already-installed com_err)
< else
< COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
< DIR_com_err="com_err"
< LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
< LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
< LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
< AC_MSG_NOTICE(Using our own com_err)
< fi
< AC_SUBST(DIR_com_err)
< AC_SUBST(LIB_com_err)
< AC_SUBST(LIB_com_err_a)
< AC_SUBST(LIB_com_err_so)
---
> # AM_PROG_INSTALL_STRIP
9635c6562
< ])
---
> # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
9637,9641c6564,6567
< dnl $Id: auth-modules.m4,v 1.5.6.1 2004/04/01 07:27:32 joda Exp $
< dnl
< dnl Figure what authentication modules should be built
< dnl
< dnl rk_AUTH_MODULES(module-list)
---
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License as published by
> # the Free Software Foundation; either version 2, or (at your option)
> # any later version.
9643,9644c6569,6572
< AC_DEFUN([rk_AUTH_MODULES],[
< AC_MSG_CHECKING([which authentication modules should be built])
---
> # This program is distributed in the hope that it will be useful,
> # but WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> # GNU General Public License for more details.
9646,9659c6574,6577
< z='m4_ifval([$1], $1, [sia pam afskauthlib])'
< LIB_AUTH_SUBDIRS=
< for i in $z; do
< case $i in
< sia)
< if test "$ac_cv_header_siad_h" = yes; then
< LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
< fi
< ;;
< pam)
< case "${host}" in
< *-*-freebsd*) ac_cv_want_pam_krb4=no ;;
< *) ac_cv_want_pam_krb4=yes ;;
< esac
---
> # You should have received a copy of the GNU General Public License
> # along with this program; if not, write to the Free Software
> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
9661,9664c6579,6594
< if test "$ac_cv_want_pam_krb4" = yes -a \
< "$ac_cv_header_security_pam_modules_h" = yes -a \
< "$enable_shared" = yes; then
< LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
---
> # One issue with vendor `install' (even GNU) is that you can't
> # specify the program used to strip binaries. This is especially
> # annoying in cross-compiling environments, where the build's strip
> # is unlikely to handle the host's binaries.
> # Fortunately install-sh will honor a STRIPPROG variable, so we
> # always use install-sh in `make install-strip', and initialize
> # STRIPPROG with the value of the STRIP variable (set by the user).
> AC_DEFUN([AM_PROG_INSTALL_STRIP],
> [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
> # Installed binaries are usually stripped using `strip' when the user
> # run `make install-strip'. However `strip' might not be the right
> # tool to use in cross-compilation environments, therefore Automake
> # will honor the `STRIP' environment variable to overrule this program.
> dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
> if test "$cross_compiling" != no; then
> AC_CHECK_TOOL([STRIP], [strip], :)
9666,9678c6596,6597
< ;;
< afskauthlib)
< case "${host}" in
< *-*-irix[[56]]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
< esac
< ;;
< esac
< done
< if test "$LIB_AUTH_SUBDIRS"; then
< AC_MSG_RESULT($LIB_AUTH_SUBDIRS)
< else
< AC_MSG_RESULT(none)
< fi
---
> INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
> AC_SUBST([INSTALL_STRIP_PROGRAM])])
9680,9701c6599,6649
< AC_SUBST(LIB_AUTH_SUBDIRS)dnl
< ])
<
< dnl
< dnl $Id: destdirs.m4,v 1.2 2002/08/12 15:12:50 joda Exp $
< dnl
<
< AC_DEFUN([rk_DESTDIRS], [
< # This is done by AC_OUTPUT but we need the result here.
< test "x$prefix" = xNONE && prefix=$ac_default_prefix
< test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
<
< AC_FOREACH([rk_dir], [bin lib libexec localstate sbin sysconf], [
< x="${rk_dir[]dir}"
< eval y="$x"
< while test "x$y" != "x$x"; do
< x="$y"
< eval y="$x"
< done
< AC_DEFINE_UNQUOTED(AS_TR_CPP(rk_dir[]dir), "$x", [path to ]rk_dir[])])
< ])
<
---
> m4_include([cf/aix.m4])
> m4_include([cf/auth-modules.m4])
> m4_include([cf/broken-getaddrinfo.m4])
> m4_include([cf/broken-getnameinfo.m4])
> m4_include([cf/broken-glob.m4])
> m4_include([cf/broken-realloc.m4])
> m4_include([cf/broken-snprintf.m4])
> m4_include([cf/broken.m4])
> m4_include([cf/broken2.m4])
> m4_include([cf/c-attribute.m4])
> m4_include([cf/capabilities.m4])
> m4_include([cf/check-compile-et.m4])
> m4_include([cf/check-declaration.m4])
> m4_include([cf/check-getpwnam_r-posix.m4])
> m4_include([cf/check-man.m4])
> m4_include([cf/check-netinet-ip-and-tcp.m4])
> m4_include([cf/check-type-extra.m4])
> m4_include([cf/check-var.m4])
> m4_include([cf/check-x.m4])
> m4_include([cf/check-xau.m4])
> m4_include([cf/crypto.m4])
> m4_include([cf/db.m4])
> m4_include([cf/destdirs.m4])
> m4_include([cf/dlopen.m4])
> m4_include([cf/find-func-no-libs.m4])
> m4_include([cf/find-func-no-libs2.m4])
> m4_include([cf/find-func.m4])
> m4_include([cf/find-if-not-broken.m4])
> m4_include([cf/have-struct-field.m4])
> m4_include([cf/have-type.m4])
> m4_include([cf/irix.m4])
> m4_include([cf/krb-bigendian.m4])
> m4_include([cf/krb-func-getlogin.m4])
> m4_include([cf/krb-ipv6.m4])
> m4_include([cf/krb-prog-ln-s.m4])
> m4_include([cf/krb-readline.m4])
> m4_include([cf/krb-struct-spwd.m4])
> m4_include([cf/krb-struct-winsize.m4])
> m4_include([cf/mips-abi.m4])
> m4_include([cf/misc.m4])
> m4_include([cf/need-proto.m4])
> m4_include([cf/osfc2.m4])
> m4_include([cf/otp.m4])
> m4_include([cf/proto-compat.m4])
> m4_include([cf/retsigtype.m4])
> m4_include([cf/roken-frag.m4])
> m4_include([cf/sunos.m4])
> m4_include([cf/telnet.m4])
> m4_include([cf/test-package.m4])
> m4_include([cf/wflags.m4])
> m4_include([cf/with-all.m4])