1233294Sstas# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 255682Smarkm 3178825Sdfr# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4233294Sstas# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 578527Sassar# This file is free software; the Free Software Foundation 678527Sassar# gives unlimited permission to copy and/or distribute it, 778527Sassar# with or without modifications, as long as this notice is preserved. 855682Smarkm 978527Sassar# This program is distributed in the hope that it will be useful, 1078527Sassar# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1178527Sassar# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1278527Sassar# PARTICULAR PURPOSE. 1355682Smarkm 14233294Sstasm4_ifndef([AC_AUTOCONF_VERSION], 15233294Sstas [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16233294Sstasm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, 17233294Sstas[m4_warning([this file was generated for autoconf 2.65. 18233294SstasYou have another version of autoconf. It may work, but is not guaranteed to. 19233294SstasIf you have problems, you may need to regenerate the build system entirely. 20233294SstasTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 21178825Sdfr 22233294Sstas# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 23102644Snectar# 24178825Sdfr# This file is free software; the Free Software Foundation 25178825Sdfr# gives unlimited permission to copy and/or distribute it, 26178825Sdfr# with or without modifications, as long as this notice is preserved. 2755682Smarkm 28142403Snectar# AM_AUTOMAKE_VERSION(VERSION) 29142403Snectar# ---------------------------- 30142403Snectar# Automake X.Y traces this macro to ensure aclocal.m4 has been 31142403Snectar# generated from the m4 files accompanying Automake X.Y. 32178825Sdfr# (This private macro should not be called outside this file.) 33178825SdfrAC_DEFUN([AM_AUTOMAKE_VERSION], 34233294Sstas[am__api_version='1.11' 35178825Sdfrdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 36178825Sdfrdnl require some minimum version. Point them to the right macro. 37233294Sstasm4_if([$1], [1.11.1], [], 38178825Sdfr [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 39178825Sdfr]) 40103423Snectar 41178825Sdfr# _AM_AUTOCONF_VERSION(VERSION) 42178825Sdfr# ----------------------------- 43178825Sdfr# aclocal traces this macro to find the Autoconf version. 44178825Sdfr# This is a private macro too. Using m4_define simplifies 45178825Sdfr# the logic in aclocal, which can simply ignore this definition. 46178825Sdfrm4_define([_AM_AUTOCONF_VERSION], []) 47178825Sdfr 48142403Snectar# AM_SET_CURRENT_AUTOMAKE_VERSION 49142403Snectar# ------------------------------- 50178825Sdfr# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 51233294Sstas# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 52142403SnectarAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 53233294Sstas[AM_AUTOMAKE_VERSION([1.11.1])dnl 54233294Sstasm4_ifndef([AC_AUTOCONF_VERSION], 55233294Sstas [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 56233294Sstas_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 57103423Snectar 58178825Sdfr# AM_AUX_DIR_EXPAND -*- Autoconf -*- 59103423Snectar 60178825Sdfr# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 61178825Sdfr# 62178825Sdfr# This file is free software; the Free Software Foundation 63178825Sdfr# gives unlimited permission to copy and/or distribute it, 64178825Sdfr# with or without modifications, as long as this notice is preserved. 65103423Snectar 66142403Snectar# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 67142403Snectar# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68142403Snectar# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 69142403Snectar# 70142403Snectar# Of course, Automake must honor this variable whenever it calls a 71142403Snectar# tool from the auxiliary directory. The problem is that $srcdir (and 72142403Snectar# therefore $ac_aux_dir as well) can be either absolute or relative, 73142403Snectar# depending on how configure is run. This is pretty annoying, since 74142403Snectar# it makes $ac_aux_dir quite unusable in subdirectories: in the top 75142403Snectar# source directory, any form will work fine, but in subdirectories a 76142403Snectar# relative path needs to be adjusted first. 77142403Snectar# 78142403Snectar# $ac_aux_dir/missing 79142403Snectar# fails when called from a subdirectory if $ac_aux_dir is relative 80142403Snectar# $top_srcdir/$ac_aux_dir/missing 81142403Snectar# fails if $ac_aux_dir is absolute, 82142403Snectar# fails when called from a subdirectory in a VPATH build with 83142403Snectar# a relative $ac_aux_dir 84142403Snectar# 85142403Snectar# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 86142403Snectar# are both prefixed by $srcdir. In an in-source build this is usually 87142403Snectar# harmless because $srcdir is `.', but things will broke when you 88142403Snectar# start a VPATH build or use an absolute $srcdir. 89142403Snectar# 90142403Snectar# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 91142403Snectar# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 92142403Snectar# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 93142403Snectar# and then we would define $MISSING as 94142403Snectar# MISSING="\${SHELL} $am_aux_dir/missing" 95142403Snectar# This will work as long as MISSING is not called from configure, because 96142403Snectar# unfortunately $(top_srcdir) has no meaning in configure. 97142403Snectar# However there are other variables, like CC, which are often used in 98142403Snectar# configure, and could therefore not use this "fixed" $ac_aux_dir. 99142403Snectar# 100142403Snectar# Another solution, used here, is to always expand $ac_aux_dir to an 101142403Snectar# absolute PATH. The drawback is that using absolute paths prevent a 102142403Snectar# configured tree to be moved without reconfiguration. 103103423Snectar 104142403SnectarAC_DEFUN([AM_AUX_DIR_EXPAND], 105142403Snectar[dnl Rely on autoconf to set up CDPATH properly. 106142403SnectarAC_PREREQ([2.50])dnl 107142403Snectar# expand $ac_aux_dir to an absolute path 108142403Snectaram_aux_dir=`cd $ac_aux_dir && pwd` 109103423Snectar]) 110103423Snectar 111178825Sdfr# AM_CONDITIONAL -*- Autoconf -*- 112103423Snectar 113233294Sstas# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 114178825Sdfr# Free Software Foundation, Inc. 115178825Sdfr# 116178825Sdfr# This file is free software; the Free Software Foundation 117178825Sdfr# gives unlimited permission to copy and/or distribute it, 118178825Sdfr# with or without modifications, as long as this notice is preserved. 119103423Snectar 120233294Sstas# serial 9 121103423Snectar 122142403Snectar# AM_CONDITIONAL(NAME, SHELL-CONDITION) 123142403Snectar# ------------------------------------- 124142403Snectar# Define a conditional. 125142403SnectarAC_DEFUN([AM_CONDITIONAL], 126142403Snectar[AC_PREREQ(2.52)dnl 127142403Snectar ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 128142403Snectar [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 129178825SdfrAC_SUBST([$1_TRUE])dnl 130178825SdfrAC_SUBST([$1_FALSE])dnl 131178825Sdfr_AM_SUBST_NOTMAKE([$1_TRUE])dnl 132178825Sdfr_AM_SUBST_NOTMAKE([$1_FALSE])dnl 133233294Sstasm4_define([_AM_COND_VALUE_$1], [$2])dnl 134142403Snectarif $2; then 135142403Snectar $1_TRUE= 136142403Snectar $1_FALSE='#' 137142403Snectarelse 138142403Snectar $1_TRUE='#' 139142403Snectar $1_FALSE= 140103423Snectarfi 141142403SnectarAC_CONFIG_COMMANDS_PRE( 142142403Snectar[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 143178825Sdfr AC_MSG_ERROR([[conditional "$1" was never defined. 144178825SdfrUsually this means the macro was only invoked conditionally.]]) 145142403Snectarfi])]) 146103423Snectar 147233294Sstas# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 148233294Sstas# Free Software Foundation, Inc. 149233294Sstas# 150233294Sstas# This file is free software; the Free Software Foundation 151233294Sstas# gives unlimited permission to copy and/or distribute it, 152233294Sstas# with or without modifications, as long as this notice is preserved. 153233294Sstas 154233294Sstas# serial 10 155233294Sstas 156233294Sstas# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 157233294Sstas# written in clear, in which case automake, when reading aclocal.m4, 158233294Sstas# will think it sees a *use*, and therefore will trigger all it's 159233294Sstas# C support machinery. Also note that it means that autoscan, seeing 160233294Sstas# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 161233294Sstas 162233294Sstas 163233294Sstas# _AM_DEPENDENCIES(NAME) 164233294Sstas# ---------------------- 165233294Sstas# See how the compiler implements dependency checking. 166233294Sstas# NAME is "CC", "CXX", "GCJ", or "OBJC". 167233294Sstas# We try a few techniques and use that to set a single cache variable. 168233294Sstas# 169233294Sstas# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 170233294Sstas# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 171233294Sstas# dependency, and given that the user is not expected to run this macro, 172233294Sstas# just rely on AC_PROG_CC. 173233294SstasAC_DEFUN([_AM_DEPENDENCIES], 174233294Sstas[AC_REQUIRE([AM_SET_DEPDIR])dnl 175233294SstasAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 176233294SstasAC_REQUIRE([AM_MAKE_INCLUDE])dnl 177233294SstasAC_REQUIRE([AM_DEP_TRACK])dnl 178233294Sstas 179233294Sstasifelse([$1], CC, [depcc="$CC" am_compiler_list=], 180233294Sstas [$1], CXX, [depcc="$CXX" am_compiler_list=], 181233294Sstas [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 182233294Sstas [$1], UPC, [depcc="$UPC" am_compiler_list=], 183233294Sstas [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 184233294Sstas [depcc="$$1" am_compiler_list=]) 185233294Sstas 186233294SstasAC_CACHE_CHECK([dependency style of $depcc], 187233294Sstas [am_cv_$1_dependencies_compiler_type], 188233294Sstas[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 189233294Sstas # We make a subdir and do the tests there. Otherwise we can end up 190233294Sstas # making bogus files that we don't know about and never remove. For 191233294Sstas # instance it was reported that on HP-UX the gcc test will end up 192233294Sstas # making a dummy file named `D' -- because `-MD' means `put the output 193233294Sstas # in D'. 194233294Sstas mkdir conftest.dir 195233294Sstas # Copy depcomp to subdir because otherwise we won't find it if we're 196233294Sstas # using a relative directory. 197233294Sstas cp "$am_depcomp" conftest.dir 198233294Sstas cd conftest.dir 199233294Sstas # We will build objects and dependencies in a subdirectory because 200233294Sstas # it helps to detect inapplicable dependency modes. For instance 201233294Sstas # both Tru64's cc and ICC support -MD to output dependencies as a 202233294Sstas # side effect of compilation, but ICC will put the dependencies in 203233294Sstas # the current directory while Tru64 will put them in the object 204233294Sstas # directory. 205233294Sstas mkdir sub 206233294Sstas 207233294Sstas am_cv_$1_dependencies_compiler_type=none 208233294Sstas if test "$am_compiler_list" = ""; then 209233294Sstas am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 210233294Sstas fi 211233294Sstas am__universal=false 212233294Sstas m4_case([$1], [CC], 213233294Sstas [case " $depcc " in #( 214233294Sstas *\ -arch\ *\ -arch\ *) am__universal=true ;; 215233294Sstas esac], 216233294Sstas [CXX], 217233294Sstas [case " $depcc " in #( 218233294Sstas *\ -arch\ *\ -arch\ *) am__universal=true ;; 219233294Sstas esac]) 220233294Sstas 221233294Sstas for depmode in $am_compiler_list; do 222233294Sstas # Setup a source with many dependencies, because some compilers 223233294Sstas # like to wrap large dependency lists on column 80 (with \), and 224233294Sstas # we should not choose a depcomp mode which is confused by this. 225233294Sstas # 226233294Sstas # We need to recreate these files for each test, as the compiler may 227233294Sstas # overwrite some of them when testing with obscure command lines. 228233294Sstas # This happens at least with the AIX C compiler. 229233294Sstas : > sub/conftest.c 230233294Sstas for i in 1 2 3 4 5 6; do 231233294Sstas echo '#include "conftst'$i'.h"' >> sub/conftest.c 232233294Sstas # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 233233294Sstas # Solaris 8's {/usr,}/bin/sh. 234233294Sstas touch sub/conftst$i.h 235233294Sstas done 236233294Sstas echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 237233294Sstas 238233294Sstas # We check with `-c' and `-o' for the sake of the "dashmstdout" 239233294Sstas # mode. It turns out that the SunPro C++ compiler does not properly 240233294Sstas # handle `-M -o', and we need to detect this. Also, some Intel 241233294Sstas # versions had trouble with output in subdirs 242233294Sstas am__obj=sub/conftest.${OBJEXT-o} 243233294Sstas am__minus_obj="-o $am__obj" 244233294Sstas case $depmode in 245233294Sstas gcc) 246233294Sstas # This depmode causes a compiler race in universal mode. 247233294Sstas test "$am__universal" = false || continue 248233294Sstas ;; 249233294Sstas nosideeffect) 250233294Sstas # after this tag, mechanisms are not by side-effect, so they'll 251233294Sstas # only be used when explicitly requested 252233294Sstas if test "x$enable_dependency_tracking" = xyes; then 253233294Sstas continue 254233294Sstas else 255233294Sstas break 256233294Sstas fi 257233294Sstas ;; 258233294Sstas msvisualcpp | msvcmsys) 259233294Sstas # This compiler won't grok `-c -o', but also, the minuso test has 260233294Sstas # not run yet. These depmodes are late enough in the game, and 261233294Sstas # so weak that their functioning should not be impacted. 262233294Sstas am__obj=conftest.${OBJEXT-o} 263233294Sstas am__minus_obj= 264233294Sstas ;; 265233294Sstas none) break ;; 266233294Sstas esac 267233294Sstas if depmode=$depmode \ 268233294Sstas source=sub/conftest.c object=$am__obj \ 269233294Sstas depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 270233294Sstas $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 271233294Sstas >/dev/null 2>conftest.err && 272233294Sstas grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 273233294Sstas grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 274233294Sstas grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 275233294Sstas ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 276233294Sstas # icc doesn't choke on unknown options, it will just issue warnings 277233294Sstas # or remarks (even with -Werror). So we grep stderr for any message 278233294Sstas # that says an option was ignored or not supported. 279233294Sstas # When given -MP, icc 7.0 and 7.1 complain thusly: 280233294Sstas # icc: Command line warning: ignoring option '-M'; no argument required 281233294Sstas # The diagnosis changed in icc 8.0: 282233294Sstas # icc: Command line remark: option '-MP' not supported 283233294Sstas if (grep 'ignoring option' conftest.err || 284233294Sstas grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 285233294Sstas am_cv_$1_dependencies_compiler_type=$depmode 286233294Sstas break 287233294Sstas fi 288233294Sstas fi 289233294Sstas done 290233294Sstas 291233294Sstas cd .. 292233294Sstas rm -rf conftest.dir 293233294Sstaselse 294233294Sstas am_cv_$1_dependencies_compiler_type=none 295233294Sstasfi 296233294Sstas]) 297233294SstasAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 298233294SstasAM_CONDITIONAL([am__fastdep$1], [ 299233294Sstas test "x$enable_dependency_tracking" != xno \ 300233294Sstas && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 301233294Sstas]) 302233294Sstas 303233294Sstas 304233294Sstas# AM_SET_DEPDIR 305233294Sstas# ------------- 306233294Sstas# Choose a directory name for dependency files. 307233294Sstas# This macro is AC_REQUIREd in _AM_DEPENDENCIES 308233294SstasAC_DEFUN([AM_SET_DEPDIR], 309233294Sstas[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 310233294SstasAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 311233294Sstas]) 312233294Sstas 313233294Sstas 314233294Sstas# AM_DEP_TRACK 315233294Sstas# ------------ 316233294SstasAC_DEFUN([AM_DEP_TRACK], 317233294Sstas[AC_ARG_ENABLE(dependency-tracking, 318233294Sstas[ --disable-dependency-tracking speeds up one-time build 319233294Sstas --enable-dependency-tracking do not reject slow dependency extractors]) 320233294Sstasif test "x$enable_dependency_tracking" != xno; then 321233294Sstas am_depcomp="$ac_aux_dir/depcomp" 322233294Sstas AMDEPBACKSLASH='\' 323233294Sstasfi 324233294SstasAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 325233294SstasAC_SUBST([AMDEPBACKSLASH])dnl 326233294Sstas_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 327233294Sstas]) 328233294Sstas 329233294Sstas# Generate code to set up dependency tracking. -*- Autoconf -*- 330233294Sstas 331233294Sstas# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 332233294Sstas# Free Software Foundation, Inc. 333233294Sstas# 334233294Sstas# This file is free software; the Free Software Foundation 335233294Sstas# gives unlimited permission to copy and/or distribute it, 336233294Sstas# with or without modifications, as long as this notice is preserved. 337233294Sstas 338233294Sstas#serial 5 339233294Sstas 340233294Sstas# _AM_OUTPUT_DEPENDENCY_COMMANDS 341233294Sstas# ------------------------------ 342233294SstasAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 343233294Sstas[{ 344233294Sstas # Autoconf 2.62 quotes --file arguments for eval, but not when files 345233294Sstas # are listed without --file. Let's play safe and only enable the eval 346233294Sstas # if we detect the quoting. 347233294Sstas case $CONFIG_FILES in 348233294Sstas *\'*) eval set x "$CONFIG_FILES" ;; 349233294Sstas *) set x $CONFIG_FILES ;; 350233294Sstas esac 351233294Sstas shift 352233294Sstas for mf 353233294Sstas do 354233294Sstas # Strip MF so we end up with the name of the file. 355233294Sstas mf=`echo "$mf" | sed -e 's/:.*$//'` 356233294Sstas # Check whether this is an Automake generated Makefile or not. 357233294Sstas # We used to match only the files named `Makefile.in', but 358233294Sstas # some people rename them; so instead we look at the file content. 359233294Sstas # Grep'ing the first line is not enough: some people post-process 360233294Sstas # each Makefile.in and add a new line on top of each file to say so. 361233294Sstas # Grep'ing the whole file is not good either: AIX grep has a line 362233294Sstas # limit of 2048, but all sed's we know have understand at least 4000. 363233294Sstas if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 364233294Sstas dirpart=`AS_DIRNAME("$mf")` 365233294Sstas else 366233294Sstas continue 367233294Sstas fi 368233294Sstas # Extract the definition of DEPDIR, am__include, and am__quote 369233294Sstas # from the Makefile without running `make'. 370233294Sstas DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 371233294Sstas test -z "$DEPDIR" && continue 372233294Sstas am__include=`sed -n 's/^am__include = //p' < "$mf"` 373233294Sstas test -z "am__include" && continue 374233294Sstas am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 375233294Sstas # When using ansi2knr, U may be empty or an underscore; expand it 376233294Sstas U=`sed -n 's/^U = //p' < "$mf"` 377233294Sstas # Find all dependency output files, they are included files with 378233294Sstas # $(DEPDIR) in their names. We invoke sed twice because it is the 379233294Sstas # simplest approach to changing $(DEPDIR) to its actual value in the 380233294Sstas # expansion. 381233294Sstas for file in `sed -n " 382233294Sstas s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 383233294Sstas sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 384233294Sstas # Make sure the directory exists. 385233294Sstas test -f "$dirpart/$file" && continue 386233294Sstas fdir=`AS_DIRNAME(["$file"])` 387233294Sstas AS_MKDIR_P([$dirpart/$fdir]) 388233294Sstas # echo "creating $dirpart/$file" 389233294Sstas echo '# dummy' > "$dirpart/$file" 390233294Sstas done 391233294Sstas done 392233294Sstas} 393233294Sstas])# _AM_OUTPUT_DEPENDENCY_COMMANDS 394233294Sstas 395233294Sstas 396233294Sstas# AM_OUTPUT_DEPENDENCY_COMMANDS 397233294Sstas# ----------------------------- 398233294Sstas# This macro should only be invoked once -- use via AC_REQUIRE. 399233294Sstas# 400233294Sstas# This code is only required when automatic dependency tracking 401233294Sstas# is enabled. FIXME. This creates each `.P' file that we will 402233294Sstas# need in order to bootstrap the dependency handling code. 403233294SstasAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 404233294Sstas[AC_CONFIG_COMMANDS([depfiles], 405233294Sstas [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 406233294Sstas [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 407233294Sstas]) 408233294Sstas 409178825Sdfr# Do all the work for Automake. -*- Autoconf -*- 410103423Snectar 411178825Sdfr# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 412233294Sstas# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 413178825Sdfr# 414178825Sdfr# This file is free software; the Free Software Foundation 415178825Sdfr# gives unlimited permission to copy and/or distribute it, 416178825Sdfr# with or without modifications, as long as this notice is preserved. 417127808Snectar 418233294Sstas# serial 16 419127808Snectar 420178825Sdfr# This macro actually does too much. Some checks are only needed if 421142403Snectar# your package does certain things. But this isn't really a big deal. 422103423Snectar 423142403Snectar# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 424142403Snectar# AM_INIT_AUTOMAKE([OPTIONS]) 425142403Snectar# ----------------------------------------------- 426142403Snectar# The call with PACKAGE and VERSION arguments is the old style 427142403Snectar# call (pre autoconf-2.50), which is being phased out. PACKAGE 428142403Snectar# and VERSION should now be passed to AC_INIT and removed from 429142403Snectar# the call to AM_INIT_AUTOMAKE. 430142403Snectar# We support both call styles for the transition. After 431142403Snectar# the next Automake release, Autoconf can make the AC_INIT 432142403Snectar# arguments mandatory, and then we can depend on a new Autoconf 433142403Snectar# release and drop the old call support. 434142403SnectarAC_DEFUN([AM_INIT_AUTOMAKE], 435233294Sstas[AC_PREREQ([2.62])dnl 436142403Snectardnl Autoconf wants to disallow AM_ names. We explicitly allow 437142403Snectardnl the ones we care about. 438142403Snectarm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 439142403SnectarAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 440142403SnectarAC_REQUIRE([AC_PROG_INSTALL])dnl 441178825Sdfrif test "`cd $srcdir && pwd`" != "`pwd`"; then 442178825Sdfr # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 443178825Sdfr # is not polluted with repeated "-I." 444178825Sdfr AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 445178825Sdfr # test to see if srcdir already configured 446178825Sdfr if test -f $srcdir/config.status; then 447178825Sdfr AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 448178825Sdfr fi 449103423Snectarfi 450103423Snectar 451142403Snectar# test whether we have cygpath 452142403Snectarif test -z "$CYGPATH_W"; then 453142403Snectar if (cygpath --version) >/dev/null 2>/dev/null; then 454142403Snectar CYGPATH_W='cygpath -w' 45590926Snectar else 456142403Snectar CYGPATH_W=echo 45790926Snectar fi 45890926Snectarfi 459142403SnectarAC_SUBST([CYGPATH_W]) 46055682Smarkm 461142403Snectar# Define the identity of the package. 462142403Snectardnl Distinguish between old-style and new-style calls. 463142403Snectarm4_ifval([$2], 464142403Snectar[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 465142403Snectar AC_SUBST([PACKAGE], [$1])dnl 466142403Snectar AC_SUBST([VERSION], [$2])], 467142403Snectar[_AM_SET_OPTIONS([$1])dnl 468178825Sdfrdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 469178825Sdfrm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 470178825Sdfr [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 471142403Snectar AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 472142403Snectar AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 473102644Snectar 474142403Snectar_AM_IF_OPTION([no-define],, 475142403Snectar[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 476142403Snectar AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 47755682Smarkm 478142403Snectar# Some tools Automake needs. 479142403SnectarAC_REQUIRE([AM_SANITY_CHECK])dnl 480142403SnectarAC_REQUIRE([AC_ARG_PROGRAM])dnl 481142403SnectarAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 482142403SnectarAM_MISSING_PROG(AUTOCONF, autoconf) 483142403SnectarAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 484142403SnectarAM_MISSING_PROG(AUTOHEADER, autoheader) 485142403SnectarAM_MISSING_PROG(MAKEINFO, makeinfo) 486233294SstasAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 487233294SstasAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 488142403SnectarAC_REQUIRE([AM_PROG_MKDIR_P])dnl 489142403Snectar# We need awk for the "check" target. The system "awk" is bad on 490142403Snectar# some platforms. 491142403SnectarAC_REQUIRE([AC_PROG_AWK])dnl 492142403SnectarAC_REQUIRE([AC_PROG_MAKE_SET])dnl 493142403SnectarAC_REQUIRE([AM_SET_LEADING_DOT])dnl 494178825Sdfr_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 495233294Sstas [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 496233294Sstas [_AM_PROG_TAR([v7])])]) 497142403Snectar_AM_IF_OPTION([no-dependencies],, 498142403Snectar[AC_PROVIDE_IFELSE([AC_PROG_CC], 499233294Sstas [_AM_DEPENDENCIES(CC)], 500233294Sstas [define([AC_PROG_CC], 501233294Sstas defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 502142403SnectarAC_PROVIDE_IFELSE([AC_PROG_CXX], 503233294Sstas [_AM_DEPENDENCIES(CXX)], 504233294Sstas [define([AC_PROG_CXX], 505233294Sstas defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 506178825SdfrAC_PROVIDE_IFELSE([AC_PROG_OBJC], 507233294Sstas [_AM_DEPENDENCIES(OBJC)], 508233294Sstas [define([AC_PROG_OBJC], 509233294Sstas defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 51072445Sassar]) 511233294Sstas_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 512233294Sstasdnl The `parallel-tests' driver may need to know about EXEEXT, so add the 513233294Sstasdnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 514233294Sstasdnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 515233294SstasAC_CONFIG_COMMANDS_PRE(dnl 516233294Sstas[m4_provide_if([_AM_COMPILER_EXEEXT], 517233294Sstas [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 51855682Smarkm]) 51955682Smarkm 520233294Sstasdnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 521233294Sstasdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 522233294Sstasdnl mangled by Autoconf and run in a shell conditional statement. 523233294Sstasm4_define([_AC_COMPILER_EXEEXT], 524233294Sstasm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 52555682Smarkm 526233294Sstas 527142403Snectar# When config.status generates a header, we must update the stamp-h file. 528142403Snectar# This file resides in the same directory as the config header 529142403Snectar# that is generated. The stamp files are numbered to have different names. 53055682Smarkm 531142403Snectar# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 532142403Snectar# loop where config.status creates the headers, so we can generate 533142403Snectar# our stamp files there. 534142403SnectarAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 535142403Snectar[# Compute $1's index in $config_headers. 536233294Sstas_am_arg=$1 537142403Snectar_am_stamp_count=1 538142403Snectarfor _am_header in $config_headers :; do 539142403Snectar case $_am_header in 540233294Sstas $_am_arg | $_am_arg:* ) 541142403Snectar break ;; 542142403Snectar * ) 543142403Snectar _am_stamp_count=`expr $_am_stamp_count + 1` ;; 544142403Snectar esac 545142403Snectardone 546233294Sstasecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 547103423Snectar 548233294Sstas# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 549178825Sdfr# 550178825Sdfr# This file is free software; the Free Software Foundation 551178825Sdfr# gives unlimited permission to copy and/or distribute it, 552178825Sdfr# with or without modifications, as long as this notice is preserved. 553178825Sdfr 554142403Snectar# AM_PROG_INSTALL_SH 555142403Snectar# ------------------ 556142403Snectar# Define $install_sh. 557142403SnectarAC_DEFUN([AM_PROG_INSTALL_SH], 558142403Snectar[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 559233294Sstasif test x"${install_sh}" != xset; then 560233294Sstas case $am_aux_dir in 561233294Sstas *\ * | *\ *) 562233294Sstas install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 563233294Sstas *) 564233294Sstas install_sh="\${SHELL} $am_aux_dir/install-sh" 565233294Sstas esac 566233294Sstasfi 567142403SnectarAC_SUBST(install_sh)]) 56872445Sassar 569178825Sdfr# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 570178825Sdfr# 571178825Sdfr# This file is free software; the Free Software Foundation 572178825Sdfr# gives unlimited permission to copy and/or distribute it, 573178825Sdfr# with or without modifications, as long as this notice is preserved. 57490926Snectar 575178825Sdfr# serial 2 57690926Snectar 577142403Snectar# Check whether the underlying file-system supports filenames 578142403Snectar# with a leading dot. For instance MS-DOS doesn't. 579142403SnectarAC_DEFUN([AM_SET_LEADING_DOT], 580142403Snectar[rm -rf .tst 2>/dev/null 581142403Snectarmkdir .tst 2>/dev/null 582142403Snectarif test -d .tst; then 583142403Snectar am__leading_dot=. 584142403Snectarelse 585142403Snectar am__leading_dot=_ 58655682Smarkmfi 587142403Snectarrmdir .tst 2>/dev/null 588142403SnectarAC_SUBST([am__leading_dot])]) 58955682Smarkm 590178825Sdfr# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 591142403Snectar# Free Software Foundation, Inc. 592178825Sdfr# 593178825Sdfr# This file is free software; the Free Software Foundation 594178825Sdfr# gives unlimited permission to copy and/or distribute it, 595178825Sdfr# with or without modifications, as long as this notice is preserved. 59672445Sassar 597178825Sdfr# serial 5 59872445Sassar 599142403Snectar# AM_PROG_LEX 600142403Snectar# ----------- 601142403Snectar# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a 602142403Snectar# "missing" invocation, for better error output. 603142403SnectarAC_DEFUN([AM_PROG_LEX], 604142403Snectar[AC_PREREQ(2.50)dnl 605142403SnectarAC_REQUIRE([AM_MISSING_HAS_RUN])dnl 606142403SnectarAC_REQUIRE([AC_PROG_LEX])dnl 607142403Snectarif test "$LEX" = :; then 608142403Snectar LEX=${am_missing_run}flex 60955682Smarkmfi]) 61055682Smarkm 611178825Sdfr# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 612142403Snectar# From Jim Meyering 61355682Smarkm 614233294Sstas# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 615142403Snectar# Free Software Foundation, Inc. 616178825Sdfr# 617178825Sdfr# This file is free software; the Free Software Foundation 618178825Sdfr# gives unlimited permission to copy and/or distribute it, 619178825Sdfr# with or without modifications, as long as this notice is preserved. 620102644Snectar 621233294Sstas# serial 5 62255682Smarkm 623233294Sstas# AM_MAINTAINER_MODE([DEFAULT-MODE]) 624233294Sstas# ---------------------------------- 625233294Sstas# Control maintainer-specific portions of Makefiles. 626233294Sstas# Default is to disable them, unless `enable' is passed literally. 627233294Sstas# For symmetry, `disable' may be passed as well. Anyway, the user 628233294Sstas# can override the default with the --enable/--disable switch. 629142403SnectarAC_DEFUN([AM_MAINTAINER_MODE], 630233294Sstas[m4_case(m4_default([$1], [disable]), 631233294Sstas [enable], [m4_define([am_maintainer_other], [disable])], 632233294Sstas [disable], [m4_define([am_maintainer_other], [enable])], 633233294Sstas [m4_define([am_maintainer_other], [enable]) 634233294Sstas m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 635233294SstasAC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) 636233294Sstas dnl maintainer-mode's default is 'disable' unless 'enable' is passed 637233294Sstas AC_ARG_ENABLE([maintainer-mode], 638233294Sstas[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful 639142403Snectar (and sometimes confusing) to the casual installer], 640233294Sstas [USE_MAINTAINER_MODE=$enableval], 641233294Sstas [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 642142403Snectar AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 643233294Sstas AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 644142403Snectar MAINT=$MAINTAINER_MODE_TRUE 645233294Sstas AC_SUBST([MAINT])dnl 646142403Snectar] 647142403Snectar) 648120945Snectar 649142403SnectarAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 650102644Snectar 651233294Sstas# Check to see how 'make' treats includes. -*- Autoconf -*- 652233294Sstas 653233294Sstas# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 654233294Sstas# 655233294Sstas# This file is free software; the Free Software Foundation 656233294Sstas# gives unlimited permission to copy and/or distribute it, 657233294Sstas# with or without modifications, as long as this notice is preserved. 658233294Sstas 659233294Sstas# serial 4 660233294Sstas 661233294Sstas# AM_MAKE_INCLUDE() 662233294Sstas# ----------------- 663233294Sstas# Check to see how make treats includes. 664233294SstasAC_DEFUN([AM_MAKE_INCLUDE], 665233294Sstas[am_make=${MAKE-make} 666233294Sstascat > confinc << 'END' 667233294Sstasam__doit: 668233294Sstas @echo this is the am__doit target 669233294Sstas.PHONY: am__doit 670233294SstasEND 671233294Sstas# If we don't find an include directive, just comment out the code. 672233294SstasAC_MSG_CHECKING([for style of include used by $am_make]) 673233294Sstasam__include="#" 674233294Sstasam__quote= 675233294Sstas_am_result=none 676233294Sstas# First try GNU make style include. 677233294Sstasecho "include confinc" > confmf 678233294Sstas# Ignore all kinds of additional output from `make'. 679233294Sstascase `$am_make -s -f confmf 2> /dev/null` in #( 680233294Sstas*the\ am__doit\ target*) 681233294Sstas am__include=include 682233294Sstas am__quote= 683233294Sstas _am_result=GNU 684233294Sstas ;; 685233294Sstasesac 686233294Sstas# Now try BSD make style include. 687233294Sstasif test "$am__include" = "#"; then 688233294Sstas echo '.include "confinc"' > confmf 689233294Sstas case `$am_make -s -f confmf 2> /dev/null` in #( 690233294Sstas *the\ am__doit\ target*) 691233294Sstas am__include=.include 692233294Sstas am__quote="\"" 693233294Sstas _am_result=BSD 694233294Sstas ;; 695233294Sstas esac 696233294Sstasfi 697233294SstasAC_SUBST([am__include]) 698233294SstasAC_SUBST([am__quote]) 699233294SstasAC_MSG_RESULT([$_am_result]) 700233294Sstasrm -f confinc confmf 701233294Sstas]) 702233294Sstas 703233294Sstas# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 704178825Sdfr# Free Software Foundation, Inc. 705178825Sdfr# 706178825Sdfr# This file is free software; the Free Software Foundation 707178825Sdfr# gives unlimited permission to copy and/or distribute it, 708178825Sdfr# with or without modifications, as long as this notice is preserved. 709102644Snectar 710233294Sstas# serial 6 711102644Snectar 712178825Sdfr# AM_PROG_CC_C_O 713178825Sdfr# -------------- 714178825Sdfr# Like AC_PROG_CC_C_O, but changed for automake. 715178825SdfrAC_DEFUN([AM_PROG_CC_C_O], 716178825Sdfr[AC_REQUIRE([AC_PROG_CC_C_O])dnl 717178825SdfrAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 718178825SdfrAC_REQUIRE_AUX_FILE([compile])dnl 719178825Sdfr# FIXME: we rely on the cache variable name because 720178825Sdfr# there is no other way. 721178825Sdfrset dummy $CC 722233294Sstasam_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 723233294Sstaseval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 724233294Sstasif test "$am_t" != yes; then 725178825Sdfr # Losing compiler, so override with the script. 726178825Sdfr # FIXME: It is wrong to rewrite CC. 727178825Sdfr # But if we don't then we get into trouble of one sort or another. 728178825Sdfr # A longer-term fix would be to have automake use am__CC in this case, 729178825Sdfr # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 730178825Sdfr CC="$am_aux_dir/compile $CC" 731178825Sdfrfi 732178825Sdfrdnl Make sure AC_PROG_CC is never called again, or it will override our 733178825Sdfrdnl setting of CC. 734178825Sdfrm4_define([AC_PROG_CC], 735178825Sdfr [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 736178825Sdfr]) 737102644Snectar 738178825Sdfr# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 73955682Smarkm 740233294Sstas# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 741178825Sdfr# Free Software Foundation, Inc. 742178825Sdfr# 743178825Sdfr# This file is free software; the Free Software Foundation 744178825Sdfr# gives unlimited permission to copy and/or distribute it, 745178825Sdfr# with or without modifications, as long as this notice is preserved. 74655682Smarkm 747233294Sstas# serial 6 74855682Smarkm 749142403Snectar# AM_MISSING_PROG(NAME, PROGRAM) 750142403Snectar# ------------------------------ 751142403SnectarAC_DEFUN([AM_MISSING_PROG], 752142403Snectar[AC_REQUIRE([AM_MISSING_HAS_RUN]) 753142403Snectar$1=${$1-"${am_missing_run}$2"} 754142403SnectarAC_SUBST($1)]) 75555682Smarkm 75655682Smarkm 757142403Snectar# AM_MISSING_HAS_RUN 758142403Snectar# ------------------ 759142403Snectar# Define MISSING if not defined so far and test if it supports --run. 760142403Snectar# If it does, set am_missing_run to use it, otherwise, to nothing. 761142403SnectarAC_DEFUN([AM_MISSING_HAS_RUN], 762142403Snectar[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 763178825SdfrAC_REQUIRE_AUX_FILE([missing])dnl 764233294Sstasif test x"${MISSING+set}" != xset; then 765233294Sstas case $am_aux_dir in 766233294Sstas *\ * | *\ *) 767233294Sstas MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 768233294Sstas *) 769233294Sstas MISSING="\${SHELL} $am_aux_dir/missing" ;; 770233294Sstas esac 771233294Sstasfi 772142403Snectar# Use eval to expand $SHELL 773142403Snectarif eval "$MISSING --run true"; then 774142403Snectar am_missing_run="$MISSING --run " 77555682Smarkmelse 776142403Snectar am_missing_run= 777142403Snectar AC_MSG_WARN([`missing' script is too old or missing]) 77855682Smarkmfi 77955682Smarkm]) 78055682Smarkm 781178825Sdfr# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 782178825Sdfr# 783178825Sdfr# This file is free software; the Free Software Foundation 784178825Sdfr# gives unlimited permission to copy and/or distribute it, 785178825Sdfr# with or without modifications, as long as this notice is preserved. 786178825Sdfr 787142403Snectar# AM_PROG_MKDIR_P 788142403Snectar# --------------- 789178825Sdfr# Check for `mkdir -p'. 790178825SdfrAC_DEFUN([AM_PROG_MKDIR_P], 791178825Sdfr[AC_PREREQ([2.60])dnl 792178825SdfrAC_REQUIRE([AC_PROG_MKDIR_P])dnl 793178825Sdfrdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 794178825Sdfrdnl while keeping a definition of mkdir_p for backward compatibility. 795178825Sdfrdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 796178825Sdfrdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 797178825Sdfrdnl Makefile.ins that do not define MKDIR_P, so we do our own 798178825Sdfrdnl adjustment using top_builddir (which is defined more often than 799178825Sdfrdnl MKDIR_P). 800178825SdfrAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 801178825Sdfrcase $mkdir_p in 802178825Sdfr [[\\/$]]* | ?:[[\\/]]*) ;; 803178825Sdfr */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 804178825Sdfresac 805178825Sdfr]) 80655682Smarkm 807178825Sdfr# Helper functions for option handling. -*- Autoconf -*- 80855682Smarkm 809233294Sstas# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 810142403Snectar# 811178825Sdfr# This file is free software; the Free Software Foundation 812178825Sdfr# gives unlimited permission to copy and/or distribute it, 813178825Sdfr# with or without modifications, as long as this notice is preserved. 81472445Sassar 815233294Sstas# serial 4 81672445Sassar 817142403Snectar# _AM_MANGLE_OPTION(NAME) 818142403Snectar# ----------------------- 819142403SnectarAC_DEFUN([_AM_MANGLE_OPTION], 820142403Snectar[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 82172445Sassar 822142403Snectar# _AM_SET_OPTION(NAME) 823142403Snectar# ------------------------------ 824142403Snectar# Set option NAME. Presently that only means defining a flag for this option. 825142403SnectarAC_DEFUN([_AM_SET_OPTION], 826142403Snectar[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 82772445Sassar 828142403Snectar# _AM_SET_OPTIONS(OPTIONS) 829142403Snectar# ---------------------------------- 830142403Snectar# OPTIONS is a space-separated list of Automake options. 831142403SnectarAC_DEFUN([_AM_SET_OPTIONS], 832233294Sstas[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 833102644Snectar 834142403Snectar# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 835142403Snectar# ------------------------------------------- 836142403Snectar# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 837142403SnectarAC_DEFUN([_AM_IF_OPTION], 838142403Snectar[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 839102644Snectar 840178825Sdfr# Check to make sure that the build environment is sane. -*- Autoconf -*- 841178825Sdfr 842233294Sstas# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 843178825Sdfr# Free Software Foundation, Inc. 844102644Snectar# 845178825Sdfr# This file is free software; the Free Software Foundation 846178825Sdfr# gives unlimited permission to copy and/or distribute it, 847178825Sdfr# with or without modifications, as long as this notice is preserved. 848102644Snectar 849233294Sstas# serial 5 850102644Snectar 851142403Snectar# AM_SANITY_CHECK 852142403Snectar# --------------- 853142403SnectarAC_DEFUN([AM_SANITY_CHECK], 854142403Snectar[AC_MSG_CHECKING([whether build environment is sane]) 855142403Snectar# Just in case 856142403Snectarsleep 1 857142403Snectarecho timestamp > conftest.file 858233294Sstas# Reject unsafe characters in $srcdir or the absolute working directory 859233294Sstas# name. Accept space and tab only in the latter. 860233294Sstasam_lf=' 861233294Sstas' 862233294Sstascase `pwd` in 863233294Sstas *[[\\\"\#\$\&\'\`$am_lf]]*) 864233294Sstas AC_MSG_ERROR([unsafe absolute working directory name]);; 865233294Sstasesac 866233294Sstascase $srcdir in 867233294Sstas *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 868233294Sstas AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 869233294Sstasesac 870233294Sstas 871142403Snectar# Do `set' in a subshell so we don't clobber the current shell's 872142403Snectar# arguments. Must try -L first in case configure is actually a 873142403Snectar# symlink; some systems play weird games with the mod time of symlinks 874142403Snectar# (eg FreeBSD returns the mod time of the symlink's containing 875142403Snectar# directory). 876142403Snectarif ( 877233294Sstas set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 878142403Snectar if test "$[*]" = "X"; then 879142403Snectar # -L didn't work. 880233294Sstas set X `ls -t "$srcdir/configure" conftest.file` 881142403Snectar fi 882142403Snectar rm -f conftest.file 883142403Snectar if test "$[*]" != "X $srcdir/configure conftest.file" \ 884142403Snectar && test "$[*]" != "X conftest.file $srcdir/configure"; then 885102644Snectar 886142403Snectar # If neither matched, then we have a broken ls. This can happen 887142403Snectar # if, for instance, CONFIG_SHELL is bash and it inherits a 888142403Snectar # broken ls alias from the environment. This has actually 889142403Snectar # happened. Such a system could not be considered "sane". 890142403Snectar AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 891142403Snectaralias in your environment]) 892142403Snectar fi 89390926Snectar 894142403Snectar test "$[2]" = conftest.file 895142403Snectar ) 896142403Snectarthen 897142403Snectar # Ok. 898142403Snectar : 89990926Snectarelse 900142403Snectar AC_MSG_ERROR([newly created file is older than distributed files! 901142403SnectarCheck your system clock]) 90290926Snectarfi 903142403SnectarAC_MSG_RESULT(yes)]) 90490926Snectar 905178825Sdfr# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 906178825Sdfr# 907178825Sdfr# This file is free software; the Free Software Foundation 908178825Sdfr# gives unlimited permission to copy and/or distribute it, 909178825Sdfr# with or without modifications, as long as this notice is preserved. 910178825Sdfr 911142403Snectar# AM_PROG_INSTALL_STRIP 912178825Sdfr# --------------------- 913142403Snectar# One issue with vendor `install' (even GNU) is that you can't 914142403Snectar# specify the program used to strip binaries. This is especially 915142403Snectar# annoying in cross-compiling environments, where the build's strip 916142403Snectar# is unlikely to handle the host's binaries. 917142403Snectar# Fortunately install-sh will honor a STRIPPROG variable, so we 918142403Snectar# always use install-sh in `make install-strip', and initialize 919142403Snectar# STRIPPROG with the value of the STRIP variable (set by the user). 920142403SnectarAC_DEFUN([AM_PROG_INSTALL_STRIP], 921142403Snectar[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 922142403Snectar# Installed binaries are usually stripped using `strip' when the user 923142403Snectar# run `make install-strip'. However `strip' might not be the right 924142403Snectar# tool to use in cross-compilation environments, therefore Automake 925142403Snectar# will honor the `STRIP' environment variable to overrule this program. 926142403Snectardnl Don't test for $cross_compiling = yes, because it might be `maybe'. 927142403Snectarif test "$cross_compiling" != no; then 928142403Snectar AC_CHECK_TOOL([STRIP], [strip], :) 92955682Smarkmfi 930178825SdfrINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 931142403SnectarAC_SUBST([INSTALL_STRIP_PROGRAM])]) 93255682Smarkm 933233294Sstas# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 934178825Sdfr# 935178825Sdfr# This file is free software; the Free Software Foundation 936178825Sdfr# gives unlimited permission to copy and/or distribute it, 937178825Sdfr# with or without modifications, as long as this notice is preserved. 938178825Sdfr 939233294Sstas# serial 2 940233294Sstas 941178825Sdfr# _AM_SUBST_NOTMAKE(VARIABLE) 942178825Sdfr# --------------------------- 943233294Sstas# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 944178825Sdfr# This macro is traced by Automake. 945178825SdfrAC_DEFUN([_AM_SUBST_NOTMAKE]) 946178825Sdfr 947233294Sstas# AM_SUBST_NOTMAKE(VARIABLE) 948233294Sstas# --------------------------- 949233294Sstas# Public sister of _AM_SUBST_NOTMAKE. 950233294SstasAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 951233294Sstas 952178825Sdfr# Check how to create a tarball. -*- Autoconf -*- 953178825Sdfr 954178825Sdfr# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 955178825Sdfr# 956178825Sdfr# This file is free software; the Free Software Foundation 957178825Sdfr# gives unlimited permission to copy and/or distribute it, 958178825Sdfr# with or without modifications, as long as this notice is preserved. 959178825Sdfr 960178825Sdfr# serial 2 961178825Sdfr 962178825Sdfr# _AM_PROG_TAR(FORMAT) 963178825Sdfr# -------------------- 964178825Sdfr# Check how to create a tarball in format FORMAT. 965178825Sdfr# FORMAT should be one of `v7', `ustar', or `pax'. 966178825Sdfr# 967178825Sdfr# Substitute a variable $(am__tar) that is a command 968178825Sdfr# writing to stdout a FORMAT-tarball containing the directory 969178825Sdfr# $tardir. 970178825Sdfr# tardir=directory && $(am__tar) > result.tar 971178825Sdfr# 972178825Sdfr# Substitute a variable $(am__untar) that extract such 973178825Sdfr# a tarball read from stdin. 974178825Sdfr# $(am__untar) < result.tar 975178825SdfrAC_DEFUN([_AM_PROG_TAR], 976178825Sdfr[# Always define AMTAR for backward compatibility. 977178825SdfrAM_MISSING_PROG([AMTAR], [tar]) 978178825Sdfrm4_if([$1], [v7], 979178825Sdfr [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 980178825Sdfr [m4_case([$1], [ustar],, [pax],, 981178825Sdfr [m4_fatal([Unknown tar format])]) 982178825SdfrAC_MSG_CHECKING([how to create a $1 tar archive]) 983178825Sdfr# Loop over all known methods to create a tar archive until one works. 984178825Sdfr_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 985178825Sdfr_am_tools=${am_cv_prog_tar_$1-$_am_tools} 986178825Sdfr# Do not fold the above two line into one, because Tru64 sh and 987178825Sdfr# Solaris sh will not grok spaces in the rhs of `-'. 988178825Sdfrfor _am_tool in $_am_tools 989178825Sdfrdo 990178825Sdfr case $_am_tool in 991178825Sdfr gnutar) 992178825Sdfr for _am_tar in tar gnutar gtar; 993178825Sdfr do 994178825Sdfr AM_RUN_LOG([$_am_tar --version]) && break 995178825Sdfr done 996178825Sdfr am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 997178825Sdfr am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 998178825Sdfr am__untar="$_am_tar -xf -" 999178825Sdfr ;; 1000178825Sdfr plaintar) 1001178825Sdfr # Must skip GNU tar: if it does not support --format= it doesn't create 1002178825Sdfr # ustar tarball either. 1003178825Sdfr (tar --version) >/dev/null 2>&1 && continue 1004178825Sdfr am__tar='tar chf - "$$tardir"' 1005178825Sdfr am__tar_='tar chf - "$tardir"' 1006178825Sdfr am__untar='tar xf -' 1007178825Sdfr ;; 1008178825Sdfr pax) 1009178825Sdfr am__tar='pax -L -x $1 -w "$$tardir"' 1010178825Sdfr am__tar_='pax -L -x $1 -w "$tardir"' 1011178825Sdfr am__untar='pax -r' 1012178825Sdfr ;; 1013178825Sdfr cpio) 1014178825Sdfr am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1015178825Sdfr am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1016178825Sdfr am__untar='cpio -i -H $1 -d' 1017178825Sdfr ;; 1018178825Sdfr none) 1019178825Sdfr am__tar=false 1020178825Sdfr am__tar_=false 1021178825Sdfr am__untar=false 1022178825Sdfr ;; 1023178825Sdfr esac 1024178825Sdfr 1025178825Sdfr # If the value was cached, stop now. We just wanted to have am__tar 1026178825Sdfr # and am__untar set. 1027178825Sdfr test -n "${am_cv_prog_tar_$1}" && break 1028178825Sdfr 1029178825Sdfr # tar/untar a dummy directory, and stop if the command works 1030178825Sdfr rm -rf conftest.dir 1031178825Sdfr mkdir conftest.dir 1032178825Sdfr echo GrepMe > conftest.dir/file 1033178825Sdfr AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1034178825Sdfr rm -rf conftest.dir 1035178825Sdfr if test -s conftest.tar; then 1036178825Sdfr AM_RUN_LOG([$am__untar <conftest.tar]) 1037178825Sdfr grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1038178825Sdfr fi 1039178825Sdfrdone 1040178825Sdfrrm -rf conftest.dir 1041178825Sdfr 1042178825SdfrAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1043178825SdfrAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1044178825SdfrAC_SUBST([am__tar]) 1045178825SdfrAC_SUBST([am__untar]) 1046178825Sdfr]) # _AM_PROG_TAR 1047178825Sdfr 1048142403Snectarm4_include([cf/aix.m4]) 1049142403Snectarm4_include([cf/auth-modules.m4]) 1050142403Snectarm4_include([cf/broken-getaddrinfo.m4]) 1051142403Snectarm4_include([cf/broken-glob.m4]) 1052142403Snectarm4_include([cf/broken-realloc.m4]) 1053142403Snectarm4_include([cf/broken-snprintf.m4]) 1054142403Snectarm4_include([cf/broken.m4]) 1055142403Snectarm4_include([cf/broken2.m4]) 1056142403Snectarm4_include([cf/c-attribute.m4]) 1057142403Snectarm4_include([cf/capabilities.m4]) 1058142403Snectarm4_include([cf/check-compile-et.m4]) 1059142403Snectarm4_include([cf/check-getpwnam_r-posix.m4]) 1060142403Snectarm4_include([cf/check-man.m4]) 1061142403Snectarm4_include([cf/check-netinet-ip-and-tcp.m4]) 1062142403Snectarm4_include([cf/check-type-extra.m4]) 1063142403Snectarm4_include([cf/check-var.m4]) 1064142403Snectarm4_include([cf/check-x.m4]) 1065142403Snectarm4_include([cf/check-xau.m4]) 1066142403Snectarm4_include([cf/crypto.m4]) 1067142403Snectarm4_include([cf/db.m4]) 1068142403Snectarm4_include([cf/destdirs.m4]) 1069233294Sstasm4_include([cf/dispatch.m4]) 1070142403Snectarm4_include([cf/dlopen.m4]) 1071142403Snectarm4_include([cf/find-func-no-libs.m4]) 1072142403Snectarm4_include([cf/find-func-no-libs2.m4]) 1073142403Snectarm4_include([cf/find-func.m4]) 1074142403Snectarm4_include([cf/find-if-not-broken.m4]) 1075178825Sdfrm4_include([cf/framework-security.m4]) 1076142403Snectarm4_include([cf/have-struct-field.m4]) 1077142403Snectarm4_include([cf/have-type.m4]) 1078142403Snectarm4_include([cf/irix.m4]) 1079142403Snectarm4_include([cf/krb-bigendian.m4]) 1080142403Snectarm4_include([cf/krb-func-getlogin.m4]) 1081142403Snectarm4_include([cf/krb-ipv6.m4]) 1082142403Snectarm4_include([cf/krb-prog-ln-s.m4]) 1083142403Snectarm4_include([cf/krb-readline.m4]) 1084142403Snectarm4_include([cf/krb-struct-spwd.m4]) 1085142403Snectarm4_include([cf/krb-struct-winsize.m4]) 1086178825Sdfrm4_include([cf/largefile.m4]) 1087233294Sstasm4_include([cf/libtool.m4]) 1088233294Sstasm4_include([cf/ltoptions.m4]) 1089233294Sstasm4_include([cf/ltsugar.m4]) 1090233294Sstasm4_include([cf/ltversion.m4]) 1091233294Sstasm4_include([cf/lt~obsolete.m4]) 1092142403Snectarm4_include([cf/mips-abi.m4]) 1093142403Snectarm4_include([cf/misc.m4]) 1094142403Snectarm4_include([cf/need-proto.m4]) 1095142403Snectarm4_include([cf/osfc2.m4]) 1096142403Snectarm4_include([cf/otp.m4]) 1097233294Sstasm4_include([cf/pkg.m4]) 1098142403Snectarm4_include([cf/proto-compat.m4]) 1099178825Sdfrm4_include([cf/pthreads.m4]) 1100178825Sdfrm4_include([cf/resolv.m4]) 1101142403Snectarm4_include([cf/retsigtype.m4]) 1102142403Snectarm4_include([cf/roken-frag.m4]) 1103178825Sdfrm4_include([cf/socket-wrapper.m4]) 1104142403Snectarm4_include([cf/sunos.m4]) 1105142403Snectarm4_include([cf/telnet.m4]) 1106142403Snectarm4_include([cf/test-package.m4]) 1107178825Sdfrm4_include([cf/version-script.m4]) 1108142403Snectarm4_include([cf/wflags.m4]) 1109178825Sdfrm4_include([cf/win32.m4]) 1110142403Snectarm4_include([cf/with-all.m4]) 1111178825Sdfrm4_include([acinclude.m4]) 1112