aclocal.m4 revision 169695
1169695Skan# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 2169695Skan 3169695Skan# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4169695Skan# 2005 Free Software Foundation, Inc. 5169695Skan# This file is free software; the Free Software Foundation 6169695Skan# gives unlimited permission to copy and/or distribute it, 7169695Skan# with or without modifications, as long as this notice is preserved. 8169695Skan 9169695Skan# This program is distributed in the hope that it will be useful, 10169695Skan# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11169695Skan# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12169695Skan# PARTICULAR PURPOSE. 13169695Skan 14169695Skan# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 15169695Skan# 16169695Skan# This file is free software; the Free Software Foundation 17169695Skan# gives unlimited permission to copy and/or distribute it, 18169695Skan# with or without modifications, as long as this notice is preserved. 19169695Skan 20169695Skan# AM_AUTOMAKE_VERSION(VERSION) 21169695Skan# ---------------------------- 22169695Skan# Automake X.Y traces this macro to ensure aclocal.m4 has been 23169695Skan# generated from the m4 files accompanying Automake X.Y. 24169695SkanAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 25169695Skan 26169695Skan# AM_SET_CURRENT_AUTOMAKE_VERSION 27169695Skan# ------------------------------- 28169695Skan# Call AM_AUTOMAKE_VERSION so it can be traced. 29169695Skan# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 30169695SkanAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 31169695Skan [AM_AUTOMAKE_VERSION([1.9.6])]) 32169695Skan 33169695Skan# AM_AUX_DIR_EXPAND -*- Autoconf -*- 34169695Skan 35169695Skan# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 36169695Skan# 37169695Skan# This file is free software; the Free Software Foundation 38169695Skan# gives unlimited permission to copy and/or distribute it, 39169695Skan# with or without modifications, as long as this notice is preserved. 40169695Skan 41169695Skan# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 42169695Skan# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 43169695Skan# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 44169695Skan# 45169695Skan# Of course, Automake must honor this variable whenever it calls a 46169695Skan# tool from the auxiliary directory. The problem is that $srcdir (and 47169695Skan# therefore $ac_aux_dir as well) can be either absolute or relative, 48169695Skan# depending on how configure is run. This is pretty annoying, since 49169695Skan# it makes $ac_aux_dir quite unusable in subdirectories: in the top 50169695Skan# source directory, any form will work fine, but in subdirectories a 51169695Skan# relative path needs to be adjusted first. 52169695Skan# 53169695Skan# $ac_aux_dir/missing 54169695Skan# fails when called from a subdirectory if $ac_aux_dir is relative 55169695Skan# $top_srcdir/$ac_aux_dir/missing 56169695Skan# fails if $ac_aux_dir is absolute, 57169695Skan# fails when called from a subdirectory in a VPATH build with 58169695Skan# a relative $ac_aux_dir 59169695Skan# 60169695Skan# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 61169695Skan# are both prefixed by $srcdir. In an in-source build this is usually 62169695Skan# harmless because $srcdir is `.', but things will broke when you 63169695Skan# start a VPATH build or use an absolute $srcdir. 64169695Skan# 65169695Skan# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 66169695Skan# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 67169695Skan# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 68169695Skan# and then we would define $MISSING as 69169695Skan# MISSING="\${SHELL} $am_aux_dir/missing" 70169695Skan# This will work as long as MISSING is not called from configure, because 71169695Skan# unfortunately $(top_srcdir) has no meaning in configure. 72169695Skan# However there are other variables, like CC, which are often used in 73169695Skan# configure, and could therefore not use this "fixed" $ac_aux_dir. 74169695Skan# 75169695Skan# Another solution, used here, is to always expand $ac_aux_dir to an 76169695Skan# absolute PATH. The drawback is that using absolute paths prevent a 77169695Skan# configured tree to be moved without reconfiguration. 78169695Skan 79169695SkanAC_DEFUN([AM_AUX_DIR_EXPAND], 80169695Skan[dnl Rely on autoconf to set up CDPATH properly. 81169695SkanAC_PREREQ([2.50])dnl 82169695Skan# expand $ac_aux_dir to an absolute path 83169695Skanam_aux_dir=`cd $ac_aux_dir && pwd` 84169695Skan]) 85169695Skan 86169695Skan# AM_CONDITIONAL -*- Autoconf -*- 87169695Skan 88169695Skan# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 89169695Skan# Free Software Foundation, Inc. 90169695Skan# 91169695Skan# This file is free software; the Free Software Foundation 92169695Skan# gives unlimited permission to copy and/or distribute it, 93169695Skan# with or without modifications, as long as this notice is preserved. 94169695Skan 95169695Skan# serial 7 96169695Skan 97169695Skan# AM_CONDITIONAL(NAME, SHELL-CONDITION) 98169695Skan# ------------------------------------- 99169695Skan# Define a conditional. 100169695SkanAC_DEFUN([AM_CONDITIONAL], 101169695Skan[AC_PREREQ(2.52)dnl 102169695Skan ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 103169695Skan [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 104169695SkanAC_SUBST([$1_TRUE]) 105169695SkanAC_SUBST([$1_FALSE]) 106169695Skanif $2; then 107169695Skan $1_TRUE= 108169695Skan $1_FALSE='#' 109169695Skanelse 110169695Skan $1_TRUE='#' 111169695Skan $1_FALSE= 112169695Skanfi 113169695SkanAC_CONFIG_COMMANDS_PRE( 114169695Skan[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 115169695Skan AC_MSG_ERROR([[conditional "$1" was never defined. 116169695SkanUsually this means the macro was only invoked conditionally.]]) 117169695Skanfi])]) 118169695Skan 119169695Skan 120169695Skan# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 121169695Skan# Free Software Foundation, Inc. 122169695Skan# 123169695Skan# This file is free software; the Free Software Foundation 124169695Skan# gives unlimited permission to copy and/or distribute it, 125169695Skan# with or without modifications, as long as this notice is preserved. 126169695Skan 127169695Skan# serial 8 128169695Skan 129169695Skan# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 130169695Skan# written in clear, in which case automake, when reading aclocal.m4, 131169695Skan# will think it sees a *use*, and therefore will trigger all it's 132169695Skan# C support machinery. Also note that it means that autoscan, seeing 133169695Skan# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 134169695Skan 135169695Skan 136169695Skan# _AM_DEPENDENCIES(NAME) 137169695Skan# ---------------------- 138169695Skan# See how the compiler implements dependency checking. 139169695Skan# NAME is "CC", "CXX", "GCJ", or "OBJC". 140169695Skan# We try a few techniques and use that to set a single cache variable. 141169695Skan# 142169695Skan# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 143169695Skan# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 144169695Skan# dependency, and given that the user is not expected to run this macro, 145169695Skan# just rely on AC_PROG_CC. 146169695SkanAC_DEFUN([_AM_DEPENDENCIES], 147169695Skan[AC_REQUIRE([AM_SET_DEPDIR])dnl 148169695SkanAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 149169695SkanAC_REQUIRE([AM_MAKE_INCLUDE])dnl 150169695SkanAC_REQUIRE([AM_DEP_TRACK])dnl 151169695Skan 152169695Skanifelse([$1], CC, [depcc="$CC" am_compiler_list=], 153169695Skan [$1], CXX, [depcc="$CXX" am_compiler_list=], 154169695Skan [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 155169695Skan [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 156169695Skan [depcc="$$1" am_compiler_list=]) 157169695Skan 158169695SkanAC_CACHE_CHECK([dependency style of $depcc], 159169695Skan [am_cv_$1_dependencies_compiler_type], 160169695Skan[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 161169695Skan # We make a subdir and do the tests there. Otherwise we can end up 162169695Skan # making bogus files that we don't know about and never remove. For 163169695Skan # instance it was reported that on HP-UX the gcc test will end up 164169695Skan # making a dummy file named `D' -- because `-MD' means `put the output 165169695Skan # in D'. 166169695Skan mkdir conftest.dir 167169695Skan # Copy depcomp to subdir because otherwise we won't find it if we're 168169695Skan # using a relative directory. 169169695Skan cp "$am_depcomp" conftest.dir 170169695Skan cd conftest.dir 171169695Skan # We will build objects and dependencies in a subdirectory because 172169695Skan # it helps to detect inapplicable dependency modes. For instance 173169695Skan # both Tru64's cc and ICC support -MD to output dependencies as a 174169695Skan # side effect of compilation, but ICC will put the dependencies in 175169695Skan # the current directory while Tru64 will put them in the object 176169695Skan # directory. 177169695Skan mkdir sub 178169695Skan 179169695Skan am_cv_$1_dependencies_compiler_type=none 180169695Skan if test "$am_compiler_list" = ""; then 181169695Skan am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 182169695Skan fi 183169695Skan for depmode in $am_compiler_list; do 184169695Skan # Setup a source with many dependencies, because some compilers 185169695Skan # like to wrap large dependency lists on column 80 (with \), and 186169695Skan # we should not choose a depcomp mode which is confused by this. 187169695Skan # 188169695Skan # We need to recreate these files for each test, as the compiler may 189169695Skan # overwrite some of them when testing with obscure command lines. 190169695Skan # This happens at least with the AIX C compiler. 191169695Skan : > sub/conftest.c 192169695Skan for i in 1 2 3 4 5 6; do 193169695Skan echo '#include "conftst'$i'.h"' >> sub/conftest.c 194169695Skan # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 195169695Skan # Solaris 8's {/usr,}/bin/sh. 196169695Skan touch sub/conftst$i.h 197169695Skan done 198169695Skan echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 199169695Skan 200169695Skan case $depmode in 201169695Skan nosideeffect) 202169695Skan # after this tag, mechanisms are not by side-effect, so they'll 203169695Skan # only be used when explicitly requested 204169695Skan if test "x$enable_dependency_tracking" = xyes; then 205169695Skan continue 206169695Skan else 207169695Skan break 208169695Skan fi 209169695Skan ;; 210169695Skan none) break ;; 211169695Skan esac 212169695Skan # We check with `-c' and `-o' for the sake of the "dashmstdout" 213169695Skan # mode. It turns out that the SunPro C++ compiler does not properly 214169695Skan # handle `-M -o', and we need to detect this. 215169695Skan if depmode=$depmode \ 216169695Skan source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 217169695Skan depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 218169695Skan $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 219169695Skan >/dev/null 2>conftest.err && 220169695Skan grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 221169695Skan grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 222169695Skan ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 223169695Skan # icc doesn't choke on unknown options, it will just issue warnings 224169695Skan # or remarks (even with -Werror). So we grep stderr for any message 225169695Skan # that says an option was ignored or not supported. 226169695Skan # When given -MP, icc 7.0 and 7.1 complain thusly: 227169695Skan # icc: Command line warning: ignoring option '-M'; no argument required 228169695Skan # The diagnosis changed in icc 8.0: 229169695Skan # icc: Command line remark: option '-MP' not supported 230169695Skan if (grep 'ignoring option' conftest.err || 231169695Skan grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 232169695Skan am_cv_$1_dependencies_compiler_type=$depmode 233169695Skan break 234169695Skan fi 235169695Skan fi 236169695Skan done 237169695Skan 238169695Skan cd .. 239169695Skan rm -rf conftest.dir 240169695Skanelse 241169695Skan am_cv_$1_dependencies_compiler_type=none 242169695Skanfi 243169695Skan]) 244169695SkanAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 245169695SkanAM_CONDITIONAL([am__fastdep$1], [ 246169695Skan test "x$enable_dependency_tracking" != xno \ 247169695Skan && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 248169695Skan]) 249169695Skan 250169695Skan 251169695Skan# AM_SET_DEPDIR 252169695Skan# ------------- 253169695Skan# Choose a directory name for dependency files. 254169695Skan# This macro is AC_REQUIREd in _AM_DEPENDENCIES 255169695SkanAC_DEFUN([AM_SET_DEPDIR], 256169695Skan[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 257169695SkanAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 258169695Skan]) 259169695Skan 260169695Skan 261169695Skan# AM_DEP_TRACK 262169695Skan# ------------ 263169695SkanAC_DEFUN([AM_DEP_TRACK], 264169695Skan[AC_ARG_ENABLE(dependency-tracking, 265169695Skan[ --disable-dependency-tracking speeds up one-time build 266169695Skan --enable-dependency-tracking do not reject slow dependency extractors]) 267169695Skanif test "x$enable_dependency_tracking" != xno; then 268169695Skan am_depcomp="$ac_aux_dir/depcomp" 269169695Skan AMDEPBACKSLASH='\' 270169695Skanfi 271169695SkanAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 272169695SkanAC_SUBST([AMDEPBACKSLASH]) 273169695Skan]) 274169695Skan 275169695Skan# Generate code to set up dependency tracking. -*- Autoconf -*- 276169695Skan 277169695Skan# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 278169695Skan# Free Software Foundation, Inc. 279169695Skan# 280169695Skan# This file is free software; the Free Software Foundation 281169695Skan# gives unlimited permission to copy and/or distribute it, 282169695Skan# with or without modifications, as long as this notice is preserved. 283169695Skan 284169695Skan#serial 3 285169695Skan 286169695Skan# _AM_OUTPUT_DEPENDENCY_COMMANDS 287169695Skan# ------------------------------ 288169695SkanAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 289169695Skan[for mf in $CONFIG_FILES; do 290169695Skan # Strip MF so we end up with the name of the file. 291169695Skan mf=`echo "$mf" | sed -e 's/:.*$//'` 292169695Skan # Check whether this is an Automake generated Makefile or not. 293169695Skan # We used to match only the files named `Makefile.in', but 294169695Skan # some people rename them; so instead we look at the file content. 295169695Skan # Grep'ing the first line is not enough: some people post-process 296169695Skan # each Makefile.in and add a new line on top of each file to say so. 297169695Skan # So let's grep whole file. 298169695Skan if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 299169695Skan dirpart=`AS_DIRNAME("$mf")` 300169695Skan else 301169695Skan continue 302169695Skan fi 303169695Skan # Extract the definition of DEPDIR, am__include, and am__quote 304169695Skan # from the Makefile without running `make'. 305169695Skan DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 306169695Skan test -z "$DEPDIR" && continue 307169695Skan am__include=`sed -n 's/^am__include = //p' < "$mf"` 308169695Skan test -z "am__include" && continue 309169695Skan am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 310169695Skan # When using ansi2knr, U may be empty or an underscore; expand it 311169695Skan U=`sed -n 's/^U = //p' < "$mf"` 312169695Skan # Find all dependency output files, they are included files with 313169695Skan # $(DEPDIR) in their names. We invoke sed twice because it is the 314169695Skan # simplest approach to changing $(DEPDIR) to its actual value in the 315169695Skan # expansion. 316169695Skan for file in `sed -n " 317169695Skan s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 318169695Skan sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 319169695Skan # Make sure the directory exists. 320169695Skan test -f "$dirpart/$file" && continue 321169695Skan fdir=`AS_DIRNAME(["$file"])` 322169695Skan AS_MKDIR_P([$dirpart/$fdir]) 323169695Skan # echo "creating $dirpart/$file" 324169695Skan echo '# dummy' > "$dirpart/$file" 325169695Skan done 326169695Skandone 327169695Skan])# _AM_OUTPUT_DEPENDENCY_COMMANDS 328169695Skan 329169695Skan 330169695Skan# AM_OUTPUT_DEPENDENCY_COMMANDS 331169695Skan# ----------------------------- 332169695Skan# This macro should only be invoked once -- use via AC_REQUIRE. 333169695Skan# 334169695Skan# This code is only required when automatic dependency tracking 335169695Skan# is enabled. FIXME. This creates each `.P' file that we will 336169695Skan# need in order to bootstrap the dependency handling code. 337169695SkanAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 338169695Skan[AC_CONFIG_COMMANDS([depfiles], 339169695Skan [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 340169695Skan [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 341169695Skan]) 342169695Skan 343169695Skan# Do all the work for Automake. -*- Autoconf -*- 344169695Skan 345169695Skan# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 346169695Skan# Free Software Foundation, Inc. 347169695Skan# 348169695Skan# This file is free software; the Free Software Foundation 349169695Skan# gives unlimited permission to copy and/or distribute it, 350169695Skan# with or without modifications, as long as this notice is preserved. 351169695Skan 352169695Skan# serial 12 353169695Skan 354169695Skan# This macro actually does too much. Some checks are only needed if 355169695Skan# your package does certain things. But this isn't really a big deal. 356169695Skan 357169695Skan# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 358169695Skan# AM_INIT_AUTOMAKE([OPTIONS]) 359169695Skan# ----------------------------------------------- 360169695Skan# The call with PACKAGE and VERSION arguments is the old style 361169695Skan# call (pre autoconf-2.50), which is being phased out. PACKAGE 362169695Skan# and VERSION should now be passed to AC_INIT and removed from 363169695Skan# the call to AM_INIT_AUTOMAKE. 364169695Skan# We support both call styles for the transition. After 365169695Skan# the next Automake release, Autoconf can make the AC_INIT 366169695Skan# arguments mandatory, and then we can depend on a new Autoconf 367169695Skan# release and drop the old call support. 368169695SkanAC_DEFUN([AM_INIT_AUTOMAKE], 369169695Skan[AC_PREREQ([2.58])dnl 370169695Skandnl Autoconf wants to disallow AM_ names. We explicitly allow 371169695Skandnl the ones we care about. 372169695Skanm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 373169695SkanAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 374169695SkanAC_REQUIRE([AC_PROG_INSTALL])dnl 375169695Skan# test to see if srcdir already configured 376169695Skanif test "`cd $srcdir && pwd`" != "`pwd`" && 377169695Skan test -f $srcdir/config.status; then 378169695Skan AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 379169695Skanfi 380169695Skan 381169695Skan# test whether we have cygpath 382169695Skanif test -z "$CYGPATH_W"; then 383169695Skan if (cygpath --version) >/dev/null 2>/dev/null; then 384169695Skan CYGPATH_W='cygpath -w' 385169695Skan else 386169695Skan CYGPATH_W=echo 387169695Skan fi 388169695Skanfi 389169695SkanAC_SUBST([CYGPATH_W]) 390169695Skan 391169695Skan# Define the identity of the package. 392169695Skandnl Distinguish between old-style and new-style calls. 393169695Skanm4_ifval([$2], 394169695Skan[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 395169695Skan AC_SUBST([PACKAGE], [$1])dnl 396169695Skan AC_SUBST([VERSION], [$2])], 397169695Skan[_AM_SET_OPTIONS([$1])dnl 398169695Skan AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 399169695Skan AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 400169695Skan 401169695Skan_AM_IF_OPTION([no-define],, 402169695Skan[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 403169695Skan AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 404169695Skan 405169695Skan# Some tools Automake needs. 406169695SkanAC_REQUIRE([AM_SANITY_CHECK])dnl 407169695SkanAC_REQUIRE([AC_ARG_PROGRAM])dnl 408169695SkanAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 409169695SkanAM_MISSING_PROG(AUTOCONF, autoconf) 410169695SkanAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 411169695SkanAM_MISSING_PROG(AUTOHEADER, autoheader) 412169695SkanAM_MISSING_PROG(MAKEINFO, makeinfo) 413169695SkanAM_PROG_INSTALL_SH 414169695SkanAM_PROG_INSTALL_STRIP 415169695SkanAC_REQUIRE([AM_PROG_MKDIR_P])dnl 416169695Skan# We need awk for the "check" target. The system "awk" is bad on 417169695Skan# some platforms. 418169695SkanAC_REQUIRE([AC_PROG_AWK])dnl 419169695SkanAC_REQUIRE([AC_PROG_MAKE_SET])dnl 420169695SkanAC_REQUIRE([AM_SET_LEADING_DOT])dnl 421169695Skan_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 422169695Skan [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 423169695Skan [_AM_PROG_TAR([v7])])]) 424169695Skan_AM_IF_OPTION([no-dependencies],, 425169695Skan[AC_PROVIDE_IFELSE([AC_PROG_CC], 426169695Skan [_AM_DEPENDENCIES(CC)], 427169695Skan [define([AC_PROG_CC], 428169695Skan defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 429169695SkanAC_PROVIDE_IFELSE([AC_PROG_CXX], 430169695Skan [_AM_DEPENDENCIES(CXX)], 431169695Skan [define([AC_PROG_CXX], 432169695Skan defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 433169695Skan]) 434169695Skan]) 435169695Skan 436169695Skan 437169695Skan# When config.status generates a header, we must update the stamp-h file. 438169695Skan# This file resides in the same directory as the config header 439169695Skan# that is generated. The stamp files are numbered to have different names. 440169695Skan 441169695Skan# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 442169695Skan# loop where config.status creates the headers, so we can generate 443169695Skan# our stamp files there. 444169695SkanAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 445169695Skan[# Compute $1's index in $config_headers. 446169695Skan_am_stamp_count=1 447169695Skanfor _am_header in $config_headers :; do 448169695Skan case $_am_header in 449169695Skan $1 | $1:* ) 450169695Skan break ;; 451169695Skan * ) 452169695Skan _am_stamp_count=`expr $_am_stamp_count + 1` ;; 453169695Skan esac 454169695Skandone 455169695Skanecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 456169695Skan 457169695Skan# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 458169695Skan# 459169695Skan# This file is free software; the Free Software Foundation 460169695Skan# gives unlimited permission to copy and/or distribute it, 461169695Skan# with or without modifications, as long as this notice is preserved. 462169695Skan 463169695Skan# AM_PROG_INSTALL_SH 464169695Skan# ------------------ 465169695Skan# Define $install_sh. 466169695SkanAC_DEFUN([AM_PROG_INSTALL_SH], 467169695Skan[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 468169695Skaninstall_sh=${install_sh-"$am_aux_dir/install-sh"} 469169695SkanAC_SUBST(install_sh)]) 470169695Skan 471169695Skan# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 472169695Skan# From Jim Meyering 473169695Skan 474169695Skan# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 475169695Skan# Free Software Foundation, Inc. 476169695Skan# 477169695Skan# This file is free software; the Free Software Foundation 478169695Skan# gives unlimited permission to copy and/or distribute it, 479169695Skan# with or without modifications, as long as this notice is preserved. 480169695Skan 481169695Skan# serial 4 482169695Skan 483169695SkanAC_DEFUN([AM_MAINTAINER_MODE], 484169695Skan[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 485169695Skan dnl maintainer-mode is disabled by default 486169695Skan AC_ARG_ENABLE(maintainer-mode, 487169695Skan[ --enable-maintainer-mode enable make rules and dependencies not useful 488169695Skan (and sometimes confusing) to the casual installer], 489169695Skan USE_MAINTAINER_MODE=$enableval, 490169695Skan USE_MAINTAINER_MODE=no) 491169695Skan AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 492169695Skan AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 493169695Skan MAINT=$MAINTAINER_MODE_TRUE 494169695Skan AC_SUBST(MAINT)dnl 495169695Skan] 496169695Skan) 497169695Skan 498169695SkanAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 499169695Skan 500169695Skan# Check to see how 'make' treats includes. -*- Autoconf -*- 501169695Skan 502169695Skan# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 503169695Skan# 504169695Skan# This file is free software; the Free Software Foundation 505169695Skan# gives unlimited permission to copy and/or distribute it, 506169695Skan# with or without modifications, as long as this notice is preserved. 507169695Skan 508169695Skan# serial 3 509169695Skan 510169695Skan# AM_MAKE_INCLUDE() 511169695Skan# ----------------- 512169695Skan# Check to see how make treats includes. 513169695SkanAC_DEFUN([AM_MAKE_INCLUDE], 514169695Skan[am_make=${MAKE-make} 515169695Skancat > confinc << 'END' 516169695Skanam__doit: 517169695Skan @echo done 518169695Skan.PHONY: am__doit 519169695SkanEND 520169695Skan# If we don't find an include directive, just comment out the code. 521169695SkanAC_MSG_CHECKING([for style of include used by $am_make]) 522169695Skanam__include="#" 523169695Skanam__quote= 524169695Skan_am_result=none 525169695Skan# First try GNU make style include. 526169695Skanecho "include confinc" > confmf 527169695Skan# We grep out `Entering directory' and `Leaving directory' 528169695Skan# messages which can occur if `w' ends up in MAKEFLAGS. 529169695Skan# In particular we don't look at `^make:' because GNU make might 530169695Skan# be invoked under some other name (usually "gmake"), in which 531169695Skan# case it prints its new name instead of `make'. 532169695Skanif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 533169695Skan am__include=include 534169695Skan am__quote= 535169695Skan _am_result=GNU 536169695Skanfi 537169695Skan# Now try BSD make style include. 538169695Skanif test "$am__include" = "#"; then 539169695Skan echo '.include "confinc"' > confmf 540169695Skan if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 541169695Skan am__include=.include 542169695Skan am__quote="\"" 543169695Skan _am_result=BSD 544169695Skan fi 545169695Skanfi 546169695SkanAC_SUBST([am__include]) 547169695SkanAC_SUBST([am__quote]) 548169695SkanAC_MSG_RESULT([$_am_result]) 549169695Skanrm -f confinc confmf 550169695Skan]) 551169695Skan 552169695Skan# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 553169695Skan 554169695Skan# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 555169695Skan# Free Software Foundation, Inc. 556169695Skan# 557169695Skan# This file is free software; the Free Software Foundation 558169695Skan# gives unlimited permission to copy and/or distribute it, 559169695Skan# with or without modifications, as long as this notice is preserved. 560169695Skan 561169695Skan# serial 4 562169695Skan 563169695Skan# AM_MISSING_PROG(NAME, PROGRAM) 564169695Skan# ------------------------------ 565169695SkanAC_DEFUN([AM_MISSING_PROG], 566169695Skan[AC_REQUIRE([AM_MISSING_HAS_RUN]) 567169695Skan$1=${$1-"${am_missing_run}$2"} 568169695SkanAC_SUBST($1)]) 569169695Skan 570169695Skan 571169695Skan# AM_MISSING_HAS_RUN 572169695Skan# ------------------ 573169695Skan# Define MISSING if not defined so far and test if it supports --run. 574169695Skan# If it does, set am_missing_run to use it, otherwise, to nothing. 575169695SkanAC_DEFUN([AM_MISSING_HAS_RUN], 576169695Skan[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 577169695Skantest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 578169695Skan# Use eval to expand $SHELL 579169695Skanif eval "$MISSING --run true"; then 580169695Skan am_missing_run="$MISSING --run " 581169695Skanelse 582169695Skan am_missing_run= 583169695Skan AC_MSG_WARN([`missing' script is too old or missing]) 584169695Skanfi 585169695Skan]) 586169695Skan 587169695Skan# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 588169695Skan# 589169695Skan# This file is free software; the Free Software Foundation 590169695Skan# gives unlimited permission to copy and/or distribute it, 591169695Skan# with or without modifications, as long as this notice is preserved. 592169695Skan 593169695Skan# AM_PROG_MKDIR_P 594169695Skan# --------------- 595169695Skan# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 596169695Skan# 597169695Skan# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 598169695Skan# created by `make install' are always world readable, even if the 599169695Skan# installer happens to have an overly restrictive umask (e.g. 077). 600169695Skan# This was a mistake. There are at least two reasons why we must not 601169695Skan# use `-m 0755': 602169695Skan# - it causes special bits like SGID to be ignored, 603169695Skan# - it may be too restrictive (some setups expect 775 directories). 604169695Skan# 605169695Skan# Do not use -m 0755 and let people choose whatever they expect by 606169695Skan# setting umask. 607169695Skan# 608169695Skan# We cannot accept any implementation of `mkdir' that recognizes `-p'. 609169695Skan# Some implementations (such as Solaris 8's) are not thread-safe: if a 610169695Skan# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 611169695Skan# concurrently, both version can detect that a/ is missing, but only 612169695Skan# one can create it and the other will error out. Consequently we 613169695Skan# restrict ourselves to GNU make (using the --version option ensures 614169695Skan# this.) 615169695SkanAC_DEFUN([AM_PROG_MKDIR_P], 616169695Skan[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 617169695Skan # We used to keeping the `.' as first argument, in order to 618169695Skan # allow $(mkdir_p) to be used without argument. As in 619169695Skan # $(mkdir_p) $(somedir) 620169695Skan # where $(somedir) is conditionally defined. However this is wrong 621169695Skan # for two reasons: 622169695Skan # 1. if the package is installed by a user who cannot write `.' 623169695Skan # make install will fail, 624169695Skan # 2. the above comment should most certainly read 625169695Skan # $(mkdir_p) $(DESTDIR)$(somedir) 626169695Skan # so it does not work when $(somedir) is undefined and 627169695Skan # $(DESTDIR) is not. 628169695Skan # To support the latter case, we have to write 629169695Skan # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 630169695Skan # so the `.' trick is pointless. 631169695Skan mkdir_p='mkdir -p --' 632169695Skanelse 633169695Skan # On NextStep and OpenStep, the `mkdir' command does not 634169695Skan # recognize any option. It will interpret all options as 635169695Skan # directories to create, and then abort because `.' already 636169695Skan # exists. 637169695Skan for d in ./-p ./--version; 638169695Skan do 639169695Skan test -d $d && rmdir $d 640169695Skan done 641169695Skan # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 642169695Skan if test -f "$ac_aux_dir/mkinstalldirs"; then 643169695Skan mkdir_p='$(mkinstalldirs)' 644169695Skan else 645169695Skan mkdir_p='$(install_sh) -d' 646169695Skan fi 647169695Skanfi 648169695SkanAC_SUBST([mkdir_p])]) 649169695Skan 650169695Skan# Helper functions for option handling. -*- Autoconf -*- 651169695Skan 652169695Skan# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 653169695Skan# 654169695Skan# This file is free software; the Free Software Foundation 655169695Skan# gives unlimited permission to copy and/or distribute it, 656169695Skan# with or without modifications, as long as this notice is preserved. 657169695Skan 658169695Skan# serial 3 659169695Skan 660169695Skan# _AM_MANGLE_OPTION(NAME) 661169695Skan# ----------------------- 662169695SkanAC_DEFUN([_AM_MANGLE_OPTION], 663169695Skan[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 664169695Skan 665169695Skan# _AM_SET_OPTION(NAME) 666169695Skan# ------------------------------ 667169695Skan# Set option NAME. Presently that only means defining a flag for this option. 668169695SkanAC_DEFUN([_AM_SET_OPTION], 669169695Skan[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 670169695Skan 671169695Skan# _AM_SET_OPTIONS(OPTIONS) 672169695Skan# ---------------------------------- 673169695Skan# OPTIONS is a space-separated list of Automake options. 674169695SkanAC_DEFUN([_AM_SET_OPTIONS], 675169695Skan[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 676169695Skan 677169695Skan# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 678169695Skan# ------------------------------------------- 679169695Skan# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 680169695SkanAC_DEFUN([_AM_IF_OPTION], 681169695Skan[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 682169695Skan 683169695Skan# Check to make sure that the build environment is sane. -*- Autoconf -*- 684169695Skan 685169695Skan# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 686169695Skan# Free Software Foundation, Inc. 687169695Skan# 688169695Skan# This file is free software; the Free Software Foundation 689169695Skan# gives unlimited permission to copy and/or distribute it, 690169695Skan# with or without modifications, as long as this notice is preserved. 691169695Skan 692169695Skan# serial 4 693169695Skan 694169695Skan# AM_SANITY_CHECK 695169695Skan# --------------- 696169695SkanAC_DEFUN([AM_SANITY_CHECK], 697169695Skan[AC_MSG_CHECKING([whether build environment is sane]) 698169695Skan# Just in case 699169695Skansleep 1 700169695Skanecho timestamp > conftest.file 701169695Skan# Do `set' in a subshell so we don't clobber the current shell's 702169695Skan# arguments. Must try -L first in case configure is actually a 703169695Skan# symlink; some systems play weird games with the mod time of symlinks 704169695Skan# (eg FreeBSD returns the mod time of the symlink's containing 705169695Skan# directory). 706169695Skanif ( 707169695Skan set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 708169695Skan if test "$[*]" = "X"; then 709169695Skan # -L didn't work. 710169695Skan set X `ls -t $srcdir/configure conftest.file` 711169695Skan fi 712169695Skan rm -f conftest.file 713169695Skan if test "$[*]" != "X $srcdir/configure conftest.file" \ 714169695Skan && test "$[*]" != "X conftest.file $srcdir/configure"; then 715169695Skan 716169695Skan # If neither matched, then we have a broken ls. This can happen 717169695Skan # if, for instance, CONFIG_SHELL is bash and it inherits a 718169695Skan # broken ls alias from the environment. This has actually 719169695Skan # happened. Such a system could not be considered "sane". 720169695Skan AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 721169695Skanalias in your environment]) 722169695Skan fi 723169695Skan 724169695Skan test "$[2]" = conftest.file 725169695Skan ) 726169695Skanthen 727169695Skan # Ok. 728169695Skan : 729169695Skanelse 730169695Skan AC_MSG_ERROR([newly created file is older than distributed files! 731169695SkanCheck your system clock]) 732169695Skanfi 733169695SkanAC_MSG_RESULT(yes)]) 734169695Skan 735169695Skan# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 736169695Skan# 737169695Skan# This file is free software; the Free Software Foundation 738169695Skan# gives unlimited permission to copy and/or distribute it, 739169695Skan# with or without modifications, as long as this notice is preserved. 740169695Skan 741169695Skan# AM_PROG_INSTALL_STRIP 742169695Skan# --------------------- 743169695Skan# One issue with vendor `install' (even GNU) is that you can't 744169695Skan# specify the program used to strip binaries. This is especially 745169695Skan# annoying in cross-compiling environments, where the build's strip 746169695Skan# is unlikely to handle the host's binaries. 747169695Skan# Fortunately install-sh will honor a STRIPPROG variable, so we 748169695Skan# always use install-sh in `make install-strip', and initialize 749169695Skan# STRIPPROG with the value of the STRIP variable (set by the user). 750169695SkanAC_DEFUN([AM_PROG_INSTALL_STRIP], 751169695Skan[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 752169695Skan# Installed binaries are usually stripped using `strip' when the user 753169695Skan# run `make install-strip'. However `strip' might not be the right 754169695Skan# tool to use in cross-compilation environments, therefore Automake 755169695Skan# will honor the `STRIP' environment variable to overrule this program. 756169695Skandnl Don't test for $cross_compiling = yes, because it might be `maybe'. 757169695Skanif test "$cross_compiling" != no; then 758169695Skan AC_CHECK_TOOL([STRIP], [strip], :) 759169695Skanfi 760169695SkanINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 761169695SkanAC_SUBST([INSTALL_STRIP_PROGRAM])]) 762169695Skan 763169695Skan# Check how to create a tarball. -*- Autoconf -*- 764169695Skan 765169695Skan# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 766169695Skan# 767169695Skan# This file is free software; the Free Software Foundation 768169695Skan# gives unlimited permission to copy and/or distribute it, 769169695Skan# with or without modifications, as long as this notice is preserved. 770169695Skan 771169695Skan# serial 2 772169695Skan 773169695Skan# _AM_PROG_TAR(FORMAT) 774169695Skan# -------------------- 775169695Skan# Check how to create a tarball in format FORMAT. 776169695Skan# FORMAT should be one of `v7', `ustar', or `pax'. 777169695Skan# 778169695Skan# Substitute a variable $(am__tar) that is a command 779169695Skan# writing to stdout a FORMAT-tarball containing the directory 780169695Skan# $tardir. 781169695Skan# tardir=directory && $(am__tar) > result.tar 782169695Skan# 783169695Skan# Substitute a variable $(am__untar) that extract such 784169695Skan# a tarball read from stdin. 785169695Skan# $(am__untar) < result.tar 786169695SkanAC_DEFUN([_AM_PROG_TAR], 787169695Skan[# Always define AMTAR for backward compatibility. 788169695SkanAM_MISSING_PROG([AMTAR], [tar]) 789169695Skanm4_if([$1], [v7], 790169695Skan [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 791169695Skan [m4_case([$1], [ustar],, [pax],, 792169695Skan [m4_fatal([Unknown tar format])]) 793169695SkanAC_MSG_CHECKING([how to create a $1 tar archive]) 794169695Skan# Loop over all known methods to create a tar archive until one works. 795169695Skan_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 796169695Skan_am_tools=${am_cv_prog_tar_$1-$_am_tools} 797169695Skan# Do not fold the above two line into one, because Tru64 sh and 798169695Skan# Solaris sh will not grok spaces in the rhs of `-'. 799169695Skanfor _am_tool in $_am_tools 800169695Skando 801169695Skan case $_am_tool in 802169695Skan gnutar) 803169695Skan for _am_tar in tar gnutar gtar; 804169695Skan do 805169695Skan AM_RUN_LOG([$_am_tar --version]) && break 806169695Skan done 807169695Skan am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 808169695Skan am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 809169695Skan am__untar="$_am_tar -xf -" 810169695Skan ;; 811169695Skan plaintar) 812169695Skan # Must skip GNU tar: if it does not support --format= it doesn't create 813169695Skan # ustar tarball either. 814169695Skan (tar --version) >/dev/null 2>&1 && continue 815169695Skan am__tar='tar chf - "$$tardir"' 816169695Skan am__tar_='tar chf - "$tardir"' 817169695Skan am__untar='tar xf -' 818169695Skan ;; 819169695Skan pax) 820169695Skan am__tar='pax -L -x $1 -w "$$tardir"' 821169695Skan am__tar_='pax -L -x $1 -w "$tardir"' 822169695Skan am__untar='pax -r' 823169695Skan ;; 824169695Skan cpio) 825169695Skan am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 826169695Skan am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 827169695Skan am__untar='cpio -i -H $1 -d' 828169695Skan ;; 829169695Skan none) 830169695Skan am__tar=false 831169695Skan am__tar_=false 832169695Skan am__untar=false 833169695Skan ;; 834169695Skan esac 835169695Skan 836169695Skan # If the value was cached, stop now. We just wanted to have am__tar 837169695Skan # and am__untar set. 838169695Skan test -n "${am_cv_prog_tar_$1}" && break 839169695Skan 840169695Skan # tar/untar a dummy directory, and stop if the command works 841169695Skan rm -rf conftest.dir 842169695Skan mkdir conftest.dir 843169695Skan echo GrepMe > conftest.dir/file 844169695Skan AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 845169695Skan rm -rf conftest.dir 846169695Skan if test -s conftest.tar; then 847169695Skan AM_RUN_LOG([$am__untar <conftest.tar]) 848169695Skan grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 849169695Skan fi 850169695Skandone 851169695Skanrm -rf conftest.dir 852169695Skan 853169695SkanAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 854169695SkanAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 855169695SkanAC_SUBST([am__tar]) 856169695SkanAC_SUBST([am__untar]) 857169695Skan]) # _AM_PROG_TAR 858169695Skan 859169695Skanm4_include([../config/acx.m4]) 860169695Skanm4_include([../config/depstand.m4]) 861169695Skanm4_include([../config/enable.m4]) 862169695Skanm4_include([../config/lead-dot.m4]) 863169695Skanm4_include([../config/multi.m4]) 864169695Skanm4_include([../config/stdint.m4]) 865169695Skanm4_include([../config/tls.m4]) 866169695Skanm4_include([acinclude.m4]) 867