1*3d8817e4Smiod# generated automatically by aclocal 1.9.5 -*- Autoconf -*- 2*3d8817e4Smiod 3*3d8817e4Smiod# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4*3d8817e4Smiod# 2005 Free Software Foundation, Inc. 5*3d8817e4Smiod# This file is free software; the Free Software Foundation 6*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 7*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 8*3d8817e4Smiod 9*3d8817e4Smiod# This program is distributed in the hope that it will be useful, 10*3d8817e4Smiod# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11*3d8817e4Smiod# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12*3d8817e4Smiod# PARTICULAR PURPOSE. 13*3d8817e4Smiod 14*3d8817e4Smiod# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 15*3d8817e4Smiod# 16*3d8817e4Smiod# This file is free software; the Free Software Foundation 17*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 18*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 19*3d8817e4Smiod 20*3d8817e4Smiod# AM_AUTOMAKE_VERSION(VERSION) 21*3d8817e4Smiod# ---------------------------- 22*3d8817e4Smiod# Automake X.Y traces this macro to ensure aclocal.m4 has been 23*3d8817e4Smiod# generated from the m4 files accompanying Automake X.Y. 24*3d8817e4SmiodAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 25*3d8817e4Smiod 26*3d8817e4Smiod# AM_SET_CURRENT_AUTOMAKE_VERSION 27*3d8817e4Smiod# ------------------------------- 28*3d8817e4Smiod# Call AM_AUTOMAKE_VERSION so it can be traced. 29*3d8817e4Smiod# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 30*3d8817e4SmiodAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 31*3d8817e4Smiod [AM_AUTOMAKE_VERSION([1.9.5])]) 32*3d8817e4Smiod 33*3d8817e4Smiod# AM_AUX_DIR_EXPAND -*- Autoconf -*- 34*3d8817e4Smiod 35*3d8817e4Smiod# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 36*3d8817e4Smiod# 37*3d8817e4Smiod# This file is free software; the Free Software Foundation 38*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 39*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 40*3d8817e4Smiod 41*3d8817e4Smiod# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 42*3d8817e4Smiod# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 43*3d8817e4Smiod# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 44*3d8817e4Smiod# 45*3d8817e4Smiod# Of course, Automake must honor this variable whenever it calls a 46*3d8817e4Smiod# tool from the auxiliary directory. The problem is that $srcdir (and 47*3d8817e4Smiod# therefore $ac_aux_dir as well) can be either absolute or relative, 48*3d8817e4Smiod# depending on how configure is run. This is pretty annoying, since 49*3d8817e4Smiod# it makes $ac_aux_dir quite unusable in subdirectories: in the top 50*3d8817e4Smiod# source directory, any form will work fine, but in subdirectories a 51*3d8817e4Smiod# relative path needs to be adjusted first. 52*3d8817e4Smiod# 53*3d8817e4Smiod# $ac_aux_dir/missing 54*3d8817e4Smiod# fails when called from a subdirectory if $ac_aux_dir is relative 55*3d8817e4Smiod# $top_srcdir/$ac_aux_dir/missing 56*3d8817e4Smiod# fails if $ac_aux_dir is absolute, 57*3d8817e4Smiod# fails when called from a subdirectory in a VPATH build with 58*3d8817e4Smiod# a relative $ac_aux_dir 59*3d8817e4Smiod# 60*3d8817e4Smiod# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 61*3d8817e4Smiod# are both prefixed by $srcdir. In an in-source build this is usually 62*3d8817e4Smiod# harmless because $srcdir is `.', but things will broke when you 63*3d8817e4Smiod# start a VPATH build or use an absolute $srcdir. 64*3d8817e4Smiod# 65*3d8817e4Smiod# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 66*3d8817e4Smiod# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 67*3d8817e4Smiod# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 68*3d8817e4Smiod# and then we would define $MISSING as 69*3d8817e4Smiod# MISSING="\${SHELL} $am_aux_dir/missing" 70*3d8817e4Smiod# This will work as long as MISSING is not called from configure, because 71*3d8817e4Smiod# unfortunately $(top_srcdir) has no meaning in configure. 72*3d8817e4Smiod# However there are other variables, like CC, which are often used in 73*3d8817e4Smiod# configure, and could therefore not use this "fixed" $ac_aux_dir. 74*3d8817e4Smiod# 75*3d8817e4Smiod# Another solution, used here, is to always expand $ac_aux_dir to an 76*3d8817e4Smiod# absolute PATH. The drawback is that using absolute paths prevent a 77*3d8817e4Smiod# configured tree to be moved without reconfiguration. 78*3d8817e4Smiod 79*3d8817e4SmiodAC_DEFUN([AM_AUX_DIR_EXPAND], 80*3d8817e4Smiod[dnl Rely on autoconf to set up CDPATH properly. 81*3d8817e4SmiodAC_PREREQ([2.50])dnl 82*3d8817e4Smiod# expand $ac_aux_dir to an absolute path 83*3d8817e4Smiodam_aux_dir=`cd $ac_aux_dir && pwd` 84*3d8817e4Smiod]) 85*3d8817e4Smiod 86*3d8817e4Smiod# AM_CONDITIONAL -*- Autoconf -*- 87*3d8817e4Smiod 88*3d8817e4Smiod# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 89*3d8817e4Smiod# Free Software Foundation, Inc. 90*3d8817e4Smiod# 91*3d8817e4Smiod# This file is free software; the Free Software Foundation 92*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 93*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 94*3d8817e4Smiod 95*3d8817e4Smiod# serial 7 96*3d8817e4Smiod 97*3d8817e4Smiod# AM_CONDITIONAL(NAME, SHELL-CONDITION) 98*3d8817e4Smiod# ------------------------------------- 99*3d8817e4Smiod# Define a conditional. 100*3d8817e4SmiodAC_DEFUN([AM_CONDITIONAL], 101*3d8817e4Smiod[AC_PREREQ(2.52)dnl 102*3d8817e4Smiod ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 103*3d8817e4Smiod [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 104*3d8817e4SmiodAC_SUBST([$1_TRUE]) 105*3d8817e4SmiodAC_SUBST([$1_FALSE]) 106*3d8817e4Smiodif $2; then 107*3d8817e4Smiod $1_TRUE= 108*3d8817e4Smiod $1_FALSE='#' 109*3d8817e4Smiodelse 110*3d8817e4Smiod $1_TRUE='#' 111*3d8817e4Smiod $1_FALSE= 112*3d8817e4Smiodfi 113*3d8817e4SmiodAC_CONFIG_COMMANDS_PRE( 114*3d8817e4Smiod[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 115*3d8817e4Smiod AC_MSG_ERROR([[conditional "$1" was never defined. 116*3d8817e4SmiodUsually this means the macro was only invoked conditionally.]]) 117*3d8817e4Smiodfi])]) 118*3d8817e4Smiod 119*3d8817e4Smiod 120*3d8817e4Smiod# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 121*3d8817e4Smiod# Free Software Foundation, Inc. 122*3d8817e4Smiod# 123*3d8817e4Smiod# This file is free software; the Free Software Foundation 124*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 125*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 126*3d8817e4Smiod 127*3d8817e4Smiod# serial 8 128*3d8817e4Smiod 129*3d8817e4Smiod# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 130*3d8817e4Smiod# written in clear, in which case automake, when reading aclocal.m4, 131*3d8817e4Smiod# will think it sees a *use*, and therefore will trigger all it's 132*3d8817e4Smiod# C support machinery. Also note that it means that autoscan, seeing 133*3d8817e4Smiod# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 134*3d8817e4Smiod 135*3d8817e4Smiod 136*3d8817e4Smiod# _AM_DEPENDENCIES(NAME) 137*3d8817e4Smiod# ---------------------- 138*3d8817e4Smiod# See how the compiler implements dependency checking. 139*3d8817e4Smiod# NAME is "CC", "CXX", "GCJ", or "OBJC". 140*3d8817e4Smiod# We try a few techniques and use that to set a single cache variable. 141*3d8817e4Smiod# 142*3d8817e4Smiod# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 143*3d8817e4Smiod# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 144*3d8817e4Smiod# dependency, and given that the user is not expected to run this macro, 145*3d8817e4Smiod# just rely on AC_PROG_CC. 146*3d8817e4SmiodAC_DEFUN([_AM_DEPENDENCIES], 147*3d8817e4Smiod[AC_REQUIRE([AM_SET_DEPDIR])dnl 148*3d8817e4SmiodAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 149*3d8817e4SmiodAC_REQUIRE([AM_MAKE_INCLUDE])dnl 150*3d8817e4SmiodAC_REQUIRE([AM_DEP_TRACK])dnl 151*3d8817e4Smiod 152*3d8817e4Smiodifelse([$1], CC, [depcc="$CC" am_compiler_list=], 153*3d8817e4Smiod [$1], CXX, [depcc="$CXX" am_compiler_list=], 154*3d8817e4Smiod [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 155*3d8817e4Smiod [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 156*3d8817e4Smiod [depcc="$$1" am_compiler_list=]) 157*3d8817e4Smiod 158*3d8817e4SmiodAC_CACHE_CHECK([dependency style of $depcc], 159*3d8817e4Smiod [am_cv_$1_dependencies_compiler_type], 160*3d8817e4Smiod[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 161*3d8817e4Smiod # We make a subdir and do the tests there. Otherwise we can end up 162*3d8817e4Smiod # making bogus files that we don't know about and never remove. For 163*3d8817e4Smiod # instance it was reported that on HP-UX the gcc test will end up 164*3d8817e4Smiod # making a dummy file named `D' -- because `-MD' means `put the output 165*3d8817e4Smiod # in D'. 166*3d8817e4Smiod mkdir conftest.dir 167*3d8817e4Smiod # Copy depcomp to subdir because otherwise we won't find it if we're 168*3d8817e4Smiod # using a relative directory. 169*3d8817e4Smiod cp "$am_depcomp" conftest.dir 170*3d8817e4Smiod cd conftest.dir 171*3d8817e4Smiod # We will build objects and dependencies in a subdirectory because 172*3d8817e4Smiod # it helps to detect inapplicable dependency modes. For instance 173*3d8817e4Smiod # both Tru64's cc and ICC support -MD to output dependencies as a 174*3d8817e4Smiod # side effect of compilation, but ICC will put the dependencies in 175*3d8817e4Smiod # the current directory while Tru64 will put them in the object 176*3d8817e4Smiod # directory. 177*3d8817e4Smiod mkdir sub 178*3d8817e4Smiod 179*3d8817e4Smiod am_cv_$1_dependencies_compiler_type=none 180*3d8817e4Smiod if test "$am_compiler_list" = ""; then 181*3d8817e4Smiod am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 182*3d8817e4Smiod fi 183*3d8817e4Smiod for depmode in $am_compiler_list; do 184*3d8817e4Smiod # Setup a source with many dependencies, because some compilers 185*3d8817e4Smiod # like to wrap large dependency lists on column 80 (with \), and 186*3d8817e4Smiod # we should not choose a depcomp mode which is confused by this. 187*3d8817e4Smiod # 188*3d8817e4Smiod # We need to recreate these files for each test, as the compiler may 189*3d8817e4Smiod # overwrite some of them when testing with obscure command lines. 190*3d8817e4Smiod # This happens at least with the AIX C compiler. 191*3d8817e4Smiod : > sub/conftest.c 192*3d8817e4Smiod for i in 1 2 3 4 5 6; do 193*3d8817e4Smiod echo '#include "conftst'$i'.h"' >> sub/conftest.c 194*3d8817e4Smiod # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 195*3d8817e4Smiod # Solaris 8's {/usr,}/bin/sh. 196*3d8817e4Smiod touch sub/conftst$i.h 197*3d8817e4Smiod done 198*3d8817e4Smiod echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 199*3d8817e4Smiod 200*3d8817e4Smiod case $depmode in 201*3d8817e4Smiod nosideeffect) 202*3d8817e4Smiod # after this tag, mechanisms are not by side-effect, so they'll 203*3d8817e4Smiod # only be used when explicitly requested 204*3d8817e4Smiod if test "x$enable_dependency_tracking" = xyes; then 205*3d8817e4Smiod continue 206*3d8817e4Smiod else 207*3d8817e4Smiod break 208*3d8817e4Smiod fi 209*3d8817e4Smiod ;; 210*3d8817e4Smiod none) break ;; 211*3d8817e4Smiod esac 212*3d8817e4Smiod # We check with `-c' and `-o' for the sake of the "dashmstdout" 213*3d8817e4Smiod # mode. It turns out that the SunPro C++ compiler does not properly 214*3d8817e4Smiod # handle `-M -o', and we need to detect this. 215*3d8817e4Smiod if depmode=$depmode \ 216*3d8817e4Smiod source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 217*3d8817e4Smiod depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 218*3d8817e4Smiod $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 219*3d8817e4Smiod >/dev/null 2>conftest.err && 220*3d8817e4Smiod grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 221*3d8817e4Smiod grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 222*3d8817e4Smiod ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 223*3d8817e4Smiod # icc doesn't choke on unknown options, it will just issue warnings 224*3d8817e4Smiod # or remarks (even with -Werror). So we grep stderr for any message 225*3d8817e4Smiod # that says an option was ignored or not supported. 226*3d8817e4Smiod # When given -MP, icc 7.0 and 7.1 complain thusly: 227*3d8817e4Smiod # icc: Command line warning: ignoring option '-M'; no argument required 228*3d8817e4Smiod # The diagnosis changed in icc 8.0: 229*3d8817e4Smiod # icc: Command line remark: option '-MP' not supported 230*3d8817e4Smiod if (grep 'ignoring option' conftest.err || 231*3d8817e4Smiod grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 232*3d8817e4Smiod am_cv_$1_dependencies_compiler_type=$depmode 233*3d8817e4Smiod break 234*3d8817e4Smiod fi 235*3d8817e4Smiod fi 236*3d8817e4Smiod done 237*3d8817e4Smiod 238*3d8817e4Smiod cd .. 239*3d8817e4Smiod rm -rf conftest.dir 240*3d8817e4Smiodelse 241*3d8817e4Smiod am_cv_$1_dependencies_compiler_type=none 242*3d8817e4Smiodfi 243*3d8817e4Smiod]) 244*3d8817e4SmiodAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 245*3d8817e4SmiodAM_CONDITIONAL([am__fastdep$1], [ 246*3d8817e4Smiod test "x$enable_dependency_tracking" != xno \ 247*3d8817e4Smiod && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 248*3d8817e4Smiod]) 249*3d8817e4Smiod 250*3d8817e4Smiod 251*3d8817e4Smiod# AM_SET_DEPDIR 252*3d8817e4Smiod# ------------- 253*3d8817e4Smiod# Choose a directory name for dependency files. 254*3d8817e4Smiod# This macro is AC_REQUIREd in _AM_DEPENDENCIES 255*3d8817e4SmiodAC_DEFUN([AM_SET_DEPDIR], 256*3d8817e4Smiod[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 257*3d8817e4SmiodAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 258*3d8817e4Smiod]) 259*3d8817e4Smiod 260*3d8817e4Smiod 261*3d8817e4Smiod# AM_DEP_TRACK 262*3d8817e4Smiod# ------------ 263*3d8817e4SmiodAC_DEFUN([AM_DEP_TRACK], 264*3d8817e4Smiod[AC_ARG_ENABLE(dependency-tracking, 265*3d8817e4Smiod[ --disable-dependency-tracking speeds up one-time build 266*3d8817e4Smiod --enable-dependency-tracking do not reject slow dependency extractors]) 267*3d8817e4Smiodif test "x$enable_dependency_tracking" != xno; then 268*3d8817e4Smiod am_depcomp="$ac_aux_dir/depcomp" 269*3d8817e4Smiod AMDEPBACKSLASH='\' 270*3d8817e4Smiodfi 271*3d8817e4SmiodAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 272*3d8817e4SmiodAC_SUBST([AMDEPBACKSLASH]) 273*3d8817e4Smiod]) 274*3d8817e4Smiod 275*3d8817e4Smiod# Generate code to set up dependency tracking. -*- Autoconf -*- 276*3d8817e4Smiod 277*3d8817e4Smiod# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 278*3d8817e4Smiod# Free Software Foundation, Inc. 279*3d8817e4Smiod# 280*3d8817e4Smiod# This file is free software; the Free Software Foundation 281*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 282*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 283*3d8817e4Smiod 284*3d8817e4Smiod#serial 3 285*3d8817e4Smiod 286*3d8817e4Smiod# _AM_OUTPUT_DEPENDENCY_COMMANDS 287*3d8817e4Smiod# ------------------------------ 288*3d8817e4SmiodAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 289*3d8817e4Smiod[for mf in $CONFIG_FILES; do 290*3d8817e4Smiod # Strip MF so we end up with the name of the file. 291*3d8817e4Smiod mf=`echo "$mf" | sed -e 's/:.*$//'` 292*3d8817e4Smiod # Check whether this is an Automake generated Makefile or not. 293*3d8817e4Smiod # We used to match only the files named `Makefile.in', but 294*3d8817e4Smiod # some people rename them; so instead we look at the file content. 295*3d8817e4Smiod # Grep'ing the first line is not enough: some people post-process 296*3d8817e4Smiod # each Makefile.in and add a new line on top of each file to say so. 297*3d8817e4Smiod # So let's grep whole file. 298*3d8817e4Smiod if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 299*3d8817e4Smiod dirpart=`AS_DIRNAME("$mf")` 300*3d8817e4Smiod else 301*3d8817e4Smiod continue 302*3d8817e4Smiod fi 303*3d8817e4Smiod # Extract the definition of DEPDIR, am__include, and am__quote 304*3d8817e4Smiod # from the Makefile without running `make'. 305*3d8817e4Smiod DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 306*3d8817e4Smiod test -z "$DEPDIR" && continue 307*3d8817e4Smiod am__include=`sed -n 's/^am__include = //p' < "$mf"` 308*3d8817e4Smiod test -z "am__include" && continue 309*3d8817e4Smiod am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 310*3d8817e4Smiod # When using ansi2knr, U may be empty or an underscore; expand it 311*3d8817e4Smiod U=`sed -n 's/^U = //p' < "$mf"` 312*3d8817e4Smiod # Find all dependency output files, they are included files with 313*3d8817e4Smiod # $(DEPDIR) in their names. We invoke sed twice because it is the 314*3d8817e4Smiod # simplest approach to changing $(DEPDIR) to its actual value in the 315*3d8817e4Smiod # expansion. 316*3d8817e4Smiod for file in `sed -n " 317*3d8817e4Smiod s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 318*3d8817e4Smiod sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 319*3d8817e4Smiod # Make sure the directory exists. 320*3d8817e4Smiod test -f "$dirpart/$file" && continue 321*3d8817e4Smiod fdir=`AS_DIRNAME(["$file"])` 322*3d8817e4Smiod AS_MKDIR_P([$dirpart/$fdir]) 323*3d8817e4Smiod # echo "creating $dirpart/$file" 324*3d8817e4Smiod echo '# dummy' > "$dirpart/$file" 325*3d8817e4Smiod done 326*3d8817e4Smioddone 327*3d8817e4Smiod])# _AM_OUTPUT_DEPENDENCY_COMMANDS 328*3d8817e4Smiod 329*3d8817e4Smiod 330*3d8817e4Smiod# AM_OUTPUT_DEPENDENCY_COMMANDS 331*3d8817e4Smiod# ----------------------------- 332*3d8817e4Smiod# This macro should only be invoked once -- use via AC_REQUIRE. 333*3d8817e4Smiod# 334*3d8817e4Smiod# This code is only required when automatic dependency tracking 335*3d8817e4Smiod# is enabled. FIXME. This creates each `.P' file that we will 336*3d8817e4Smiod# need in order to bootstrap the dependency handling code. 337*3d8817e4SmiodAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 338*3d8817e4Smiod[AC_CONFIG_COMMANDS([depfiles], 339*3d8817e4Smiod [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 340*3d8817e4Smiod [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 341*3d8817e4Smiod]) 342*3d8817e4Smiod 343*3d8817e4Smiod# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 344*3d8817e4Smiod# Free Software Foundation, Inc. 345*3d8817e4Smiod# 346*3d8817e4Smiod# This file is free software; the Free Software Foundation 347*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 348*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 349*3d8817e4Smiod 350*3d8817e4Smiod# serial 8 351*3d8817e4Smiod 352*3d8817e4Smiod# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 353*3d8817e4SmiodAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 354*3d8817e4Smiod 355*3d8817e4Smiod# Do all the work for Automake. -*- Autoconf -*- 356*3d8817e4Smiod 357*3d8817e4Smiod# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 358*3d8817e4Smiod# Free Software Foundation, Inc. 359*3d8817e4Smiod# 360*3d8817e4Smiod# This file is free software; the Free Software Foundation 361*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 362*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 363*3d8817e4Smiod 364*3d8817e4Smiod# serial 12 365*3d8817e4Smiod 366*3d8817e4Smiod# This macro actually does too much. Some checks are only needed if 367*3d8817e4Smiod# your package does certain things. But this isn't really a big deal. 368*3d8817e4Smiod 369*3d8817e4Smiod# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 370*3d8817e4Smiod# AM_INIT_AUTOMAKE([OPTIONS]) 371*3d8817e4Smiod# ----------------------------------------------- 372*3d8817e4Smiod# The call with PACKAGE and VERSION arguments is the old style 373*3d8817e4Smiod# call (pre autoconf-2.50), which is being phased out. PACKAGE 374*3d8817e4Smiod# and VERSION should now be passed to AC_INIT and removed from 375*3d8817e4Smiod# the call to AM_INIT_AUTOMAKE. 376*3d8817e4Smiod# We support both call styles for the transition. After 377*3d8817e4Smiod# the next Automake release, Autoconf can make the AC_INIT 378*3d8817e4Smiod# arguments mandatory, and then we can depend on a new Autoconf 379*3d8817e4Smiod# release and drop the old call support. 380*3d8817e4SmiodAC_DEFUN([AM_INIT_AUTOMAKE], 381*3d8817e4Smiod[AC_PREREQ([2.58])dnl 382*3d8817e4Smioddnl Autoconf wants to disallow AM_ names. We explicitly allow 383*3d8817e4Smioddnl the ones we care about. 384*3d8817e4Smiodm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 385*3d8817e4SmiodAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 386*3d8817e4SmiodAC_REQUIRE([AC_PROG_INSTALL])dnl 387*3d8817e4Smiod# test to see if srcdir already configured 388*3d8817e4Smiodif test "`cd $srcdir && pwd`" != "`pwd`" && 389*3d8817e4Smiod test -f $srcdir/config.status; then 390*3d8817e4Smiod AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 391*3d8817e4Smiodfi 392*3d8817e4Smiod 393*3d8817e4Smiod# test whether we have cygpath 394*3d8817e4Smiodif test -z "$CYGPATH_W"; then 395*3d8817e4Smiod if (cygpath --version) >/dev/null 2>/dev/null; then 396*3d8817e4Smiod CYGPATH_W='cygpath -w' 397*3d8817e4Smiod else 398*3d8817e4Smiod CYGPATH_W=echo 399*3d8817e4Smiod fi 400*3d8817e4Smiodfi 401*3d8817e4SmiodAC_SUBST([CYGPATH_W]) 402*3d8817e4Smiod 403*3d8817e4Smiod# Define the identity of the package. 404*3d8817e4Smioddnl Distinguish between old-style and new-style calls. 405*3d8817e4Smiodm4_ifval([$2], 406*3d8817e4Smiod[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 407*3d8817e4Smiod AC_SUBST([PACKAGE], [$1])dnl 408*3d8817e4Smiod AC_SUBST([VERSION], [$2])], 409*3d8817e4Smiod[_AM_SET_OPTIONS([$1])dnl 410*3d8817e4Smiod AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 411*3d8817e4Smiod AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 412*3d8817e4Smiod 413*3d8817e4Smiod_AM_IF_OPTION([no-define],, 414*3d8817e4Smiod[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 415*3d8817e4Smiod AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 416*3d8817e4Smiod 417*3d8817e4Smiod# Some tools Automake needs. 418*3d8817e4SmiodAC_REQUIRE([AM_SANITY_CHECK])dnl 419*3d8817e4SmiodAC_REQUIRE([AC_ARG_PROGRAM])dnl 420*3d8817e4SmiodAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 421*3d8817e4SmiodAM_MISSING_PROG(AUTOCONF, autoconf) 422*3d8817e4SmiodAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 423*3d8817e4SmiodAM_MISSING_PROG(AUTOHEADER, autoheader) 424*3d8817e4SmiodAM_MISSING_PROG(MAKEINFO, makeinfo) 425*3d8817e4SmiodAM_PROG_INSTALL_SH 426*3d8817e4SmiodAM_PROG_INSTALL_STRIP 427*3d8817e4SmiodAC_REQUIRE([AM_PROG_MKDIR_P])dnl 428*3d8817e4Smiod# We need awk for the "check" target. The system "awk" is bad on 429*3d8817e4Smiod# some platforms. 430*3d8817e4SmiodAC_REQUIRE([AC_PROG_AWK])dnl 431*3d8817e4SmiodAC_REQUIRE([AC_PROG_MAKE_SET])dnl 432*3d8817e4SmiodAC_REQUIRE([AM_SET_LEADING_DOT])dnl 433*3d8817e4Smiod_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 434*3d8817e4Smiod [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 435*3d8817e4Smiod [_AM_PROG_TAR([v7])])]) 436*3d8817e4Smiod_AM_IF_OPTION([no-dependencies],, 437*3d8817e4Smiod[AC_PROVIDE_IFELSE([AC_PROG_CC], 438*3d8817e4Smiod [_AM_DEPENDENCIES(CC)], 439*3d8817e4Smiod [define([AC_PROG_CC], 440*3d8817e4Smiod defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 441*3d8817e4SmiodAC_PROVIDE_IFELSE([AC_PROG_CXX], 442*3d8817e4Smiod [_AM_DEPENDENCIES(CXX)], 443*3d8817e4Smiod [define([AC_PROG_CXX], 444*3d8817e4Smiod defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 445*3d8817e4Smiod]) 446*3d8817e4Smiod]) 447*3d8817e4Smiod 448*3d8817e4Smiod 449*3d8817e4Smiod# When config.status generates a header, we must update the stamp-h file. 450*3d8817e4Smiod# This file resides in the same directory as the config header 451*3d8817e4Smiod# that is generated. The stamp files are numbered to have different names. 452*3d8817e4Smiod 453*3d8817e4Smiod# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 454*3d8817e4Smiod# loop where config.status creates the headers, so we can generate 455*3d8817e4Smiod# our stamp files there. 456*3d8817e4SmiodAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 457*3d8817e4Smiod[# Compute $1's index in $config_headers. 458*3d8817e4Smiod_am_stamp_count=1 459*3d8817e4Smiodfor _am_header in $config_headers :; do 460*3d8817e4Smiod case $_am_header in 461*3d8817e4Smiod $1 | $1:* ) 462*3d8817e4Smiod break ;; 463*3d8817e4Smiod * ) 464*3d8817e4Smiod _am_stamp_count=`expr $_am_stamp_count + 1` ;; 465*3d8817e4Smiod esac 466*3d8817e4Smioddone 467*3d8817e4Smiodecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 468*3d8817e4Smiod 469*3d8817e4Smiod# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 470*3d8817e4Smiod# 471*3d8817e4Smiod# This file is free software; the Free Software Foundation 472*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 473*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 474*3d8817e4Smiod 475*3d8817e4Smiod# AM_PROG_INSTALL_SH 476*3d8817e4Smiod# ------------------ 477*3d8817e4Smiod# Define $install_sh. 478*3d8817e4SmiodAC_DEFUN([AM_PROG_INSTALL_SH], 479*3d8817e4Smiod[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 480*3d8817e4Smiodinstall_sh=${install_sh-"$am_aux_dir/install-sh"} 481*3d8817e4SmiodAC_SUBST(install_sh)]) 482*3d8817e4Smiod 483*3d8817e4Smiod# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 484*3d8817e4Smiod# 485*3d8817e4Smiod# This file is free software; the Free Software Foundation 486*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 487*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 488*3d8817e4Smiod 489*3d8817e4Smiod# serial 2 490*3d8817e4Smiod 491*3d8817e4Smiod# Check whether the underlying file-system supports filenames 492*3d8817e4Smiod# with a leading dot. For instance MS-DOS doesn't. 493*3d8817e4SmiodAC_DEFUN([AM_SET_LEADING_DOT], 494*3d8817e4Smiod[rm -rf .tst 2>/dev/null 495*3d8817e4Smiodmkdir .tst 2>/dev/null 496*3d8817e4Smiodif test -d .tst; then 497*3d8817e4Smiod am__leading_dot=. 498*3d8817e4Smiodelse 499*3d8817e4Smiod am__leading_dot=_ 500*3d8817e4Smiodfi 501*3d8817e4Smiodrmdir .tst 2>/dev/null 502*3d8817e4SmiodAC_SUBST([am__leading_dot])]) 503*3d8817e4Smiod 504*3d8817e4Smiod# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 505*3d8817e4Smiod# From Jim Meyering 506*3d8817e4Smiod 507*3d8817e4Smiod# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 508*3d8817e4Smiod# Free Software Foundation, Inc. 509*3d8817e4Smiod# 510*3d8817e4Smiod# This file is free software; the Free Software Foundation 511*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 512*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 513*3d8817e4Smiod 514*3d8817e4Smiod# serial 4 515*3d8817e4Smiod 516*3d8817e4SmiodAC_DEFUN([AM_MAINTAINER_MODE], 517*3d8817e4Smiod[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 518*3d8817e4Smiod dnl maintainer-mode is disabled by default 519*3d8817e4Smiod AC_ARG_ENABLE(maintainer-mode, 520*3d8817e4Smiod[ --enable-maintainer-mode enable make rules and dependencies not useful 521*3d8817e4Smiod (and sometimes confusing) to the casual installer], 522*3d8817e4Smiod USE_MAINTAINER_MODE=$enableval, 523*3d8817e4Smiod USE_MAINTAINER_MODE=no) 524*3d8817e4Smiod AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 525*3d8817e4Smiod AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 526*3d8817e4Smiod MAINT=$MAINTAINER_MODE_TRUE 527*3d8817e4Smiod AC_SUBST(MAINT)dnl 528*3d8817e4Smiod] 529*3d8817e4Smiod) 530*3d8817e4Smiod 531*3d8817e4SmiodAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 532*3d8817e4Smiod 533*3d8817e4Smiod# Check to see how 'make' treats includes. -*- Autoconf -*- 534*3d8817e4Smiod 535*3d8817e4Smiod# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 536*3d8817e4Smiod# 537*3d8817e4Smiod# This file is free software; the Free Software Foundation 538*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 539*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 540*3d8817e4Smiod 541*3d8817e4Smiod# serial 3 542*3d8817e4Smiod 543*3d8817e4Smiod# AM_MAKE_INCLUDE() 544*3d8817e4Smiod# ----------------- 545*3d8817e4Smiod# Check to see how make treats includes. 546*3d8817e4SmiodAC_DEFUN([AM_MAKE_INCLUDE], 547*3d8817e4Smiod[am_make=${MAKE-make} 548*3d8817e4Smiodcat > confinc << 'END' 549*3d8817e4Smiodam__doit: 550*3d8817e4Smiod @echo done 551*3d8817e4Smiod.PHONY: am__doit 552*3d8817e4SmiodEND 553*3d8817e4Smiod# If we don't find an include directive, just comment out the code. 554*3d8817e4SmiodAC_MSG_CHECKING([for style of include used by $am_make]) 555*3d8817e4Smiodam__include="#" 556*3d8817e4Smiodam__quote= 557*3d8817e4Smiod_am_result=none 558*3d8817e4Smiod# First try GNU make style include. 559*3d8817e4Smiodecho "include confinc" > confmf 560*3d8817e4Smiod# We grep out `Entering directory' and `Leaving directory' 561*3d8817e4Smiod# messages which can occur if `w' ends up in MAKEFLAGS. 562*3d8817e4Smiod# In particular we don't look at `^make:' because GNU make might 563*3d8817e4Smiod# be invoked under some other name (usually "gmake"), in which 564*3d8817e4Smiod# case it prints its new name instead of `make'. 565*3d8817e4Smiodif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 566*3d8817e4Smiod am__include=include 567*3d8817e4Smiod am__quote= 568*3d8817e4Smiod _am_result=GNU 569*3d8817e4Smiodfi 570*3d8817e4Smiod# Now try BSD make style include. 571*3d8817e4Smiodif test "$am__include" = "#"; then 572*3d8817e4Smiod echo '.include "confinc"' > confmf 573*3d8817e4Smiod if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 574*3d8817e4Smiod am__include=.include 575*3d8817e4Smiod am__quote="\"" 576*3d8817e4Smiod _am_result=BSD 577*3d8817e4Smiod fi 578*3d8817e4Smiodfi 579*3d8817e4SmiodAC_SUBST([am__include]) 580*3d8817e4SmiodAC_SUBST([am__quote]) 581*3d8817e4SmiodAC_MSG_RESULT([$_am_result]) 582*3d8817e4Smiodrm -f confinc confmf 583*3d8817e4Smiod]) 584*3d8817e4Smiod 585*3d8817e4Smiod# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 586*3d8817e4Smiod 587*3d8817e4Smiod# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 588*3d8817e4Smiod# Free Software Foundation, Inc. 589*3d8817e4Smiod# 590*3d8817e4Smiod# This file is free software; the Free Software Foundation 591*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 592*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 593*3d8817e4Smiod 594*3d8817e4Smiod# serial 4 595*3d8817e4Smiod 596*3d8817e4Smiod# AM_MISSING_PROG(NAME, PROGRAM) 597*3d8817e4Smiod# ------------------------------ 598*3d8817e4SmiodAC_DEFUN([AM_MISSING_PROG], 599*3d8817e4Smiod[AC_REQUIRE([AM_MISSING_HAS_RUN]) 600*3d8817e4Smiod$1=${$1-"${am_missing_run}$2"} 601*3d8817e4SmiodAC_SUBST($1)]) 602*3d8817e4Smiod 603*3d8817e4Smiod 604*3d8817e4Smiod# AM_MISSING_HAS_RUN 605*3d8817e4Smiod# ------------------ 606*3d8817e4Smiod# Define MISSING if not defined so far and test if it supports --run. 607*3d8817e4Smiod# If it does, set am_missing_run to use it, otherwise, to nothing. 608*3d8817e4SmiodAC_DEFUN([AM_MISSING_HAS_RUN], 609*3d8817e4Smiod[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 610*3d8817e4Smiodtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 611*3d8817e4Smiod# Use eval to expand $SHELL 612*3d8817e4Smiodif eval "$MISSING --run true"; then 613*3d8817e4Smiod am_missing_run="$MISSING --run " 614*3d8817e4Smiodelse 615*3d8817e4Smiod am_missing_run= 616*3d8817e4Smiod AC_MSG_WARN([`missing' script is too old or missing]) 617*3d8817e4Smiodfi 618*3d8817e4Smiod]) 619*3d8817e4Smiod 620*3d8817e4Smiod# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 621*3d8817e4Smiod# 622*3d8817e4Smiod# This file is free software; the Free Software Foundation 623*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 624*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 625*3d8817e4Smiod 626*3d8817e4Smiod# AM_PROG_MKDIR_P 627*3d8817e4Smiod# --------------- 628*3d8817e4Smiod# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 629*3d8817e4Smiod# 630*3d8817e4Smiod# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 631*3d8817e4Smiod# created by `make install' are always world readable, even if the 632*3d8817e4Smiod# installer happens to have an overly restrictive umask (e.g. 077). 633*3d8817e4Smiod# This was a mistake. There are at least two reasons why we must not 634*3d8817e4Smiod# use `-m 0755': 635*3d8817e4Smiod# - it causes special bits like SGID to be ignored, 636*3d8817e4Smiod# - it may be too restrictive (some setups expect 775 directories). 637*3d8817e4Smiod# 638*3d8817e4Smiod# Do not use -m 0755 and let people choose whatever they expect by 639*3d8817e4Smiod# setting umask. 640*3d8817e4Smiod# 641*3d8817e4Smiod# We cannot accept any implementation of `mkdir' that recognizes `-p'. 642*3d8817e4Smiod# Some implementations (such as Solaris 8's) are not thread-safe: if a 643*3d8817e4Smiod# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 644*3d8817e4Smiod# concurrently, both version can detect that a/ is missing, but only 645*3d8817e4Smiod# one can create it and the other will error out. Consequently we 646*3d8817e4Smiod# restrict ourselves to GNU make (using the --version option ensures 647*3d8817e4Smiod# this.) 648*3d8817e4SmiodAC_DEFUN([AM_PROG_MKDIR_P], 649*3d8817e4Smiod[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 650*3d8817e4Smiod # We used to keeping the `.' as first argument, in order to 651*3d8817e4Smiod # allow $(mkdir_p) to be used without argument. As in 652*3d8817e4Smiod # $(mkdir_p) $(somedir) 653*3d8817e4Smiod # where $(somedir) is conditionally defined. However this is wrong 654*3d8817e4Smiod # for two reasons: 655*3d8817e4Smiod # 1. if the package is installed by a user who cannot write `.' 656*3d8817e4Smiod # make install will fail, 657*3d8817e4Smiod # 2. the above comment should most certainly read 658*3d8817e4Smiod # $(mkdir_p) $(DESTDIR)$(somedir) 659*3d8817e4Smiod # so it does not work when $(somedir) is undefined and 660*3d8817e4Smiod # $(DESTDIR) is not. 661*3d8817e4Smiod # To support the latter case, we have to write 662*3d8817e4Smiod # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 663*3d8817e4Smiod # so the `.' trick is pointless. 664*3d8817e4Smiod mkdir_p='mkdir -p --' 665*3d8817e4Smiodelse 666*3d8817e4Smiod # On NextStep and OpenStep, the `mkdir' command does not 667*3d8817e4Smiod # recognize any option. It will interpret all options as 668*3d8817e4Smiod # directories to create, and then abort because `.' already 669*3d8817e4Smiod # exists. 670*3d8817e4Smiod for d in ./-p ./--version; 671*3d8817e4Smiod do 672*3d8817e4Smiod test -d $d && rmdir $d 673*3d8817e4Smiod done 674*3d8817e4Smiod # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 675*3d8817e4Smiod if test -f "$ac_aux_dir/mkinstalldirs"; then 676*3d8817e4Smiod mkdir_p='$(mkinstalldirs)' 677*3d8817e4Smiod else 678*3d8817e4Smiod mkdir_p='$(install_sh) -d' 679*3d8817e4Smiod fi 680*3d8817e4Smiodfi 681*3d8817e4SmiodAC_SUBST([mkdir_p])]) 682*3d8817e4Smiod 683*3d8817e4Smiod# Helper functions for option handling. -*- Autoconf -*- 684*3d8817e4Smiod 685*3d8817e4Smiod# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 686*3d8817e4Smiod# 687*3d8817e4Smiod# This file is free software; the Free Software Foundation 688*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 689*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 690*3d8817e4Smiod 691*3d8817e4Smiod# serial 3 692*3d8817e4Smiod 693*3d8817e4Smiod# _AM_MANGLE_OPTION(NAME) 694*3d8817e4Smiod# ----------------------- 695*3d8817e4SmiodAC_DEFUN([_AM_MANGLE_OPTION], 696*3d8817e4Smiod[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 697*3d8817e4Smiod 698*3d8817e4Smiod# _AM_SET_OPTION(NAME) 699*3d8817e4Smiod# ------------------------------ 700*3d8817e4Smiod# Set option NAME. Presently that only means defining a flag for this option. 701*3d8817e4SmiodAC_DEFUN([_AM_SET_OPTION], 702*3d8817e4Smiod[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 703*3d8817e4Smiod 704*3d8817e4Smiod# _AM_SET_OPTIONS(OPTIONS) 705*3d8817e4Smiod# ---------------------------------- 706*3d8817e4Smiod# OPTIONS is a space-separated list of Automake options. 707*3d8817e4SmiodAC_DEFUN([_AM_SET_OPTIONS], 708*3d8817e4Smiod[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 709*3d8817e4Smiod 710*3d8817e4Smiod# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 711*3d8817e4Smiod# ------------------------------------------- 712*3d8817e4Smiod# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 713*3d8817e4SmiodAC_DEFUN([_AM_IF_OPTION], 714*3d8817e4Smiod[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 715*3d8817e4Smiod 716*3d8817e4Smiod# Check to make sure that the build environment is sane. -*- Autoconf -*- 717*3d8817e4Smiod 718*3d8817e4Smiod# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 719*3d8817e4Smiod# Free Software Foundation, Inc. 720*3d8817e4Smiod# 721*3d8817e4Smiod# This file is free software; the Free Software Foundation 722*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 723*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 724*3d8817e4Smiod 725*3d8817e4Smiod# serial 4 726*3d8817e4Smiod 727*3d8817e4Smiod# AM_SANITY_CHECK 728*3d8817e4Smiod# --------------- 729*3d8817e4SmiodAC_DEFUN([AM_SANITY_CHECK], 730*3d8817e4Smiod[AC_MSG_CHECKING([whether build environment is sane]) 731*3d8817e4Smiod# Just in case 732*3d8817e4Smiodsleep 1 733*3d8817e4Smiodecho timestamp > conftest.file 734*3d8817e4Smiod# Do `set' in a subshell so we don't clobber the current shell's 735*3d8817e4Smiod# arguments. Must try -L first in case configure is actually a 736*3d8817e4Smiod# symlink; some systems play weird games with the mod time of symlinks 737*3d8817e4Smiod# (eg FreeBSD returns the mod time of the symlink's containing 738*3d8817e4Smiod# directory). 739*3d8817e4Smiodif ( 740*3d8817e4Smiod set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 741*3d8817e4Smiod if test "$[*]" = "X"; then 742*3d8817e4Smiod # -L didn't work. 743*3d8817e4Smiod set X `ls -t $srcdir/configure conftest.file` 744*3d8817e4Smiod fi 745*3d8817e4Smiod rm -f conftest.file 746*3d8817e4Smiod if test "$[*]" != "X $srcdir/configure conftest.file" \ 747*3d8817e4Smiod && test "$[*]" != "X conftest.file $srcdir/configure"; then 748*3d8817e4Smiod 749*3d8817e4Smiod # If neither matched, then we have a broken ls. This can happen 750*3d8817e4Smiod # if, for instance, CONFIG_SHELL is bash and it inherits a 751*3d8817e4Smiod # broken ls alias from the environment. This has actually 752*3d8817e4Smiod # happened. Such a system could not be considered "sane". 753*3d8817e4Smiod AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 754*3d8817e4Smiodalias in your environment]) 755*3d8817e4Smiod fi 756*3d8817e4Smiod 757*3d8817e4Smiod test "$[2]" = conftest.file 758*3d8817e4Smiod ) 759*3d8817e4Smiodthen 760*3d8817e4Smiod # Ok. 761*3d8817e4Smiod : 762*3d8817e4Smiodelse 763*3d8817e4Smiod AC_MSG_ERROR([newly created file is older than distributed files! 764*3d8817e4SmiodCheck your system clock]) 765*3d8817e4Smiodfi 766*3d8817e4SmiodAC_MSG_RESULT(yes)]) 767*3d8817e4Smiod 768*3d8817e4Smiod# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 769*3d8817e4Smiod# 770*3d8817e4Smiod# This file is free software; the Free Software Foundation 771*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 772*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 773*3d8817e4Smiod 774*3d8817e4Smiod# AM_PROG_INSTALL_STRIP 775*3d8817e4Smiod# --------------------- 776*3d8817e4Smiod# One issue with vendor `install' (even GNU) is that you can't 777*3d8817e4Smiod# specify the program used to strip binaries. This is especially 778*3d8817e4Smiod# annoying in cross-compiling environments, where the build's strip 779*3d8817e4Smiod# is unlikely to handle the host's binaries. 780*3d8817e4Smiod# Fortunately install-sh will honor a STRIPPROG variable, so we 781*3d8817e4Smiod# always use install-sh in `make install-strip', and initialize 782*3d8817e4Smiod# STRIPPROG with the value of the STRIP variable (set by the user). 783*3d8817e4SmiodAC_DEFUN([AM_PROG_INSTALL_STRIP], 784*3d8817e4Smiod[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 785*3d8817e4Smiod# Installed binaries are usually stripped using `strip' when the user 786*3d8817e4Smiod# run `make install-strip'. However `strip' might not be the right 787*3d8817e4Smiod# tool to use in cross-compilation environments, therefore Automake 788*3d8817e4Smiod# will honor the `STRIP' environment variable to overrule this program. 789*3d8817e4Smioddnl Don't test for $cross_compiling = yes, because it might be `maybe'. 790*3d8817e4Smiodif test "$cross_compiling" != no; then 791*3d8817e4Smiod AC_CHECK_TOOL([STRIP], [strip], :) 792*3d8817e4Smiodfi 793*3d8817e4SmiodINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 794*3d8817e4SmiodAC_SUBST([INSTALL_STRIP_PROGRAM])]) 795*3d8817e4Smiod 796*3d8817e4Smiod# Check how to create a tarball. -*- Autoconf -*- 797*3d8817e4Smiod 798*3d8817e4Smiod# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 799*3d8817e4Smiod# 800*3d8817e4Smiod# This file is free software; the Free Software Foundation 801*3d8817e4Smiod# gives unlimited permission to copy and/or distribute it, 802*3d8817e4Smiod# with or without modifications, as long as this notice is preserved. 803*3d8817e4Smiod 804*3d8817e4Smiod# serial 2 805*3d8817e4Smiod 806*3d8817e4Smiod# _AM_PROG_TAR(FORMAT) 807*3d8817e4Smiod# -------------------- 808*3d8817e4Smiod# Check how to create a tarball in format FORMAT. 809*3d8817e4Smiod# FORMAT should be one of `v7', `ustar', or `pax'. 810*3d8817e4Smiod# 811*3d8817e4Smiod# Substitute a variable $(am__tar) that is a command 812*3d8817e4Smiod# writing to stdout a FORMAT-tarball containing the directory 813*3d8817e4Smiod# $tardir. 814*3d8817e4Smiod# tardir=directory && $(am__tar) > result.tar 815*3d8817e4Smiod# 816*3d8817e4Smiod# Substitute a variable $(am__untar) that extract such 817*3d8817e4Smiod# a tarball read from stdin. 818*3d8817e4Smiod# $(am__untar) < result.tar 819*3d8817e4SmiodAC_DEFUN([_AM_PROG_TAR], 820*3d8817e4Smiod[# Always define AMTAR for backward compatibility. 821*3d8817e4SmiodAM_MISSING_PROG([AMTAR], [tar]) 822*3d8817e4Smiodm4_if([$1], [v7], 823*3d8817e4Smiod [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 824*3d8817e4Smiod [m4_case([$1], [ustar],, [pax],, 825*3d8817e4Smiod [m4_fatal([Unknown tar format])]) 826*3d8817e4SmiodAC_MSG_CHECKING([how to create a $1 tar archive]) 827*3d8817e4Smiod# Loop over all known methods to create a tar archive until one works. 828*3d8817e4Smiod_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 829*3d8817e4Smiod_am_tools=${am_cv_prog_tar_$1-$_am_tools} 830*3d8817e4Smiod# Do not fold the above two line into one, because Tru64 sh and 831*3d8817e4Smiod# Solaris sh will not grok spaces in the rhs of `-'. 832*3d8817e4Smiodfor _am_tool in $_am_tools 833*3d8817e4Smioddo 834*3d8817e4Smiod case $_am_tool in 835*3d8817e4Smiod gnutar) 836*3d8817e4Smiod for _am_tar in tar gnutar gtar; 837*3d8817e4Smiod do 838*3d8817e4Smiod AM_RUN_LOG([$_am_tar --version]) && break 839*3d8817e4Smiod done 840*3d8817e4Smiod am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 841*3d8817e4Smiod am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 842*3d8817e4Smiod am__untar="$_am_tar -xf -" 843*3d8817e4Smiod ;; 844*3d8817e4Smiod plaintar) 845*3d8817e4Smiod # Must skip GNU tar: if it does not support --format= it doesn't create 846*3d8817e4Smiod # ustar tarball either. 847*3d8817e4Smiod (tar --version) >/dev/null 2>&1 && continue 848*3d8817e4Smiod am__tar='tar chf - "$$tardir"' 849*3d8817e4Smiod am__tar_='tar chf - "$tardir"' 850*3d8817e4Smiod am__untar='tar xf -' 851*3d8817e4Smiod ;; 852*3d8817e4Smiod pax) 853*3d8817e4Smiod am__tar='pax -L -x $1 -w "$$tardir"' 854*3d8817e4Smiod am__tar_='pax -L -x $1 -w "$tardir"' 855*3d8817e4Smiod am__untar='pax -r' 856*3d8817e4Smiod ;; 857*3d8817e4Smiod cpio) 858*3d8817e4Smiod am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 859*3d8817e4Smiod am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 860*3d8817e4Smiod am__untar='cpio -i -H $1 -d' 861*3d8817e4Smiod ;; 862*3d8817e4Smiod none) 863*3d8817e4Smiod am__tar=false 864*3d8817e4Smiod am__tar_=false 865*3d8817e4Smiod am__untar=false 866*3d8817e4Smiod ;; 867*3d8817e4Smiod esac 868*3d8817e4Smiod 869*3d8817e4Smiod # If the value was cached, stop now. We just wanted to have am__tar 870*3d8817e4Smiod # and am__untar set. 871*3d8817e4Smiod test -n "${am_cv_prog_tar_$1}" && break 872*3d8817e4Smiod 873*3d8817e4Smiod # tar/untar a dummy directory, and stop if the command works 874*3d8817e4Smiod rm -rf conftest.dir 875*3d8817e4Smiod mkdir conftest.dir 876*3d8817e4Smiod echo GrepMe > conftest.dir/file 877*3d8817e4Smiod AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 878*3d8817e4Smiod rm -rf conftest.dir 879*3d8817e4Smiod if test -s conftest.tar; then 880*3d8817e4Smiod AM_RUN_LOG([$am__untar <conftest.tar]) 881*3d8817e4Smiod grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 882*3d8817e4Smiod fi 883*3d8817e4Smioddone 884*3d8817e4Smiodrm -rf conftest.dir 885*3d8817e4Smiod 886*3d8817e4SmiodAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 887*3d8817e4SmiodAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 888*3d8817e4SmiodAC_SUBST([am__tar]) 889*3d8817e4SmiodAC_SUBST([am__untar]) 890*3d8817e4Smiod]) # _AM_PROG_TAR 891*3d8817e4Smiod 892*3d8817e4Smiodm4_include([acinclude.m4]) 893