1255376Sdes# generated automatically by aclocal 1.14 -*- Autoconf -*- 2117610Sdes 3255376Sdes# Copyright (C) 1996-2013 Free Software Foundation, Inc. 4255376Sdes 5117610Sdes# This file is free software; the Free Software Foundation 6117610Sdes# gives unlimited permission to copy and/or distribute it, 7117610Sdes# with or without modifications, as long as this notice is preserved. 8117610Sdes 9117610Sdes# This program is distributed in the hope that it will be useful, 10117610Sdes# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11117610Sdes# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12117610Sdes# PARTICULAR PURPOSE. 13117610Sdes 14255376Sdesm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15228692Sdesm4_ifndef([AC_AUTOCONF_VERSION], 16228692Sdes [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17255376Sdesm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18255376Sdes[m4_warning([this file was generated for autoconf 2.69. 19228692SdesYou have another version of autoconf. It may work, but is not guaranteed to. 20228692SdesIf you have problems, you may need to regenerate the build system entirely. 21255376SdesTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22228692Sdes 23255376Sdes# Copyright (C) 2002-2013 Free Software Foundation, Inc. 24228692Sdes# 25174832Sdes# This file is free software; the Free Software Foundation 26174832Sdes# gives unlimited permission to copy and/or distribute it, 27174832Sdes# with or without modifications, as long as this notice is preserved. 28141098Sdes 29141098Sdes# AM_AUTOMAKE_VERSION(VERSION) 30141098Sdes# ---------------------------- 31141098Sdes# Automake X.Y traces this macro to ensure aclocal.m4 has been 32141098Sdes# generated from the m4 files accompanying Automake X.Y. 33228692Sdes# (This private macro should not be called outside this file.) 34228692SdesAC_DEFUN([AM_AUTOMAKE_VERSION], 35255376Sdes[am__api_version='1.14' 36228692Sdesdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37228692Sdesdnl require some minimum version. Point them to the right macro. 38255376Sdesm4_if([$1], [1.14], [], 39228692Sdes [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40228692Sdes]) 41141098Sdes 42228692Sdes# _AM_AUTOCONF_VERSION(VERSION) 43228692Sdes# ----------------------------- 44228692Sdes# aclocal traces this macro to find the Autoconf version. 45228692Sdes# This is a private macro too. Using m4_define simplifies 46228692Sdes# the logic in aclocal, which can simply ignore this definition. 47228692Sdesm4_define([_AM_AUTOCONF_VERSION], []) 48228692Sdes 49141098Sdes# AM_SET_CURRENT_AUTOMAKE_VERSION 50141098Sdes# ------------------------------- 51228692Sdes# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52228692Sdes# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53141098SdesAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54255376Sdes[AM_AUTOMAKE_VERSION([1.14])dnl 55228692Sdesm4_ifndef([AC_AUTOCONF_VERSION], 56228692Sdes [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57228692Sdes_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 58141098Sdes 59174832Sdes# AM_AUX_DIR_EXPAND -*- Autoconf -*- 60117610Sdes 61255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 62174832Sdes# 63174832Sdes# This file is free software; the Free Software Foundation 64174832Sdes# gives unlimited permission to copy and/or distribute it, 65174832Sdes# with or without modifications, as long as this notice is preserved. 66141098Sdes 67117610Sdes# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68255376Sdes# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 69255376Sdes# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 70117610Sdes# 71117610Sdes# Of course, Automake must honor this variable whenever it calls a 72117610Sdes# tool from the auxiliary directory. The problem is that $srcdir (and 73117610Sdes# therefore $ac_aux_dir as well) can be either absolute or relative, 74117610Sdes# depending on how configure is run. This is pretty annoying, since 75117610Sdes# it makes $ac_aux_dir quite unusable in subdirectories: in the top 76117610Sdes# source directory, any form will work fine, but in subdirectories a 77117610Sdes# relative path needs to be adjusted first. 78117610Sdes# 79117610Sdes# $ac_aux_dir/missing 80117610Sdes# fails when called from a subdirectory if $ac_aux_dir is relative 81117610Sdes# $top_srcdir/$ac_aux_dir/missing 82117610Sdes# fails if $ac_aux_dir is absolute, 83117610Sdes# fails when called from a subdirectory in a VPATH build with 84117610Sdes# a relative $ac_aux_dir 85117610Sdes# 86117610Sdes# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 87117610Sdes# are both prefixed by $srcdir. In an in-source build this is usually 88255376Sdes# harmless because $srcdir is '.', but things will broke when you 89117610Sdes# start a VPATH build or use an absolute $srcdir. 90117610Sdes# 91117610Sdes# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 92117610Sdes# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 93117610Sdes# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 94117610Sdes# and then we would define $MISSING as 95117610Sdes# MISSING="\${SHELL} $am_aux_dir/missing" 96117610Sdes# This will work as long as MISSING is not called from configure, because 97117610Sdes# unfortunately $(top_srcdir) has no meaning in configure. 98117610Sdes# However there are other variables, like CC, which are often used in 99117610Sdes# configure, and could therefore not use this "fixed" $ac_aux_dir. 100117610Sdes# 101117610Sdes# Another solution, used here, is to always expand $ac_aux_dir to an 102117610Sdes# absolute PATH. The drawback is that using absolute paths prevent a 103117610Sdes# configured tree to be moved without reconfiguration. 104117610Sdes 105141098SdesAC_DEFUN([AM_AUX_DIR_EXPAND], 106141098Sdes[dnl Rely on autoconf to set up CDPATH properly. 107141098SdesAC_PREREQ([2.50])dnl 108117610Sdes# expand $ac_aux_dir to an absolute path 109141098Sdesam_aux_dir=`cd $ac_aux_dir && pwd` 110117610Sdes]) 111117610Sdes 112174832Sdes# AM_CONDITIONAL -*- Autoconf -*- 113117610Sdes 114255376Sdes# Copyright (C) 1997-2013 Free Software Foundation, Inc. 115174832Sdes# 116174832Sdes# This file is free software; the Free Software Foundation 117174832Sdes# gives unlimited permission to copy and/or distribute it, 118174832Sdes# with or without modifications, as long as this notice is preserved. 119117610Sdes 120141098Sdes# AM_CONDITIONAL(NAME, SHELL-CONDITION) 121141098Sdes# ------------------------------------- 122141098Sdes# Define a conditional. 123141098SdesAC_DEFUN([AM_CONDITIONAL], 124255376Sdes[AC_PREREQ([2.52])dnl 125255376Sdes m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 126255376Sdes [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 127228692SdesAC_SUBST([$1_TRUE])dnl 128228692SdesAC_SUBST([$1_FALSE])dnl 129228692Sdes_AM_SUBST_NOTMAKE([$1_TRUE])dnl 130228692Sdes_AM_SUBST_NOTMAKE([$1_FALSE])dnl 131228692Sdesm4_define([_AM_COND_VALUE_$1], [$2])dnl 132141098Sdesif $2; then 133141098Sdes $1_TRUE= 134141098Sdes $1_FALSE='#' 135141098Sdeselse 136141098Sdes $1_TRUE='#' 137141098Sdes $1_FALSE= 138141098Sdesfi 139141098SdesAC_CONFIG_COMMANDS_PRE( 140141098Sdes[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 141174832Sdes AC_MSG_ERROR([[conditional "$1" was never defined. 142174832SdesUsually this means the macro was only invoked conditionally.]]) 143141098Sdesfi])]) 144141098Sdes 145255376Sdes# Copyright (C) 1999-2013 Free Software Foundation, Inc. 146174832Sdes# 147174832Sdes# This file is free software; the Free Software Foundation 148174832Sdes# gives unlimited permission to copy and/or distribute it, 149174832Sdes# with or without modifications, as long as this notice is preserved. 150141098Sdes 151141098Sdes 152255376Sdes# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 153117610Sdes# written in clear, in which case automake, when reading aclocal.m4, 154117610Sdes# will think it sees a *use*, and therefore will trigger all it's 155117610Sdes# C support machinery. Also note that it means that autoscan, seeing 156117610Sdes# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 157117610Sdes 158117610Sdes 159117610Sdes# _AM_DEPENDENCIES(NAME) 160141098Sdes# ---------------------- 161117610Sdes# See how the compiler implements dependency checking. 162255376Sdes# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 163117610Sdes# We try a few techniques and use that to set a single cache variable. 164117610Sdes# 165117610Sdes# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 166117610Sdes# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 167117610Sdes# dependency, and given that the user is not expected to run this macro, 168117610Sdes# just rely on AC_PROG_CC. 169117610SdesAC_DEFUN([_AM_DEPENDENCIES], 170117610Sdes[AC_REQUIRE([AM_SET_DEPDIR])dnl 171117610SdesAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 172117610SdesAC_REQUIRE([AM_MAKE_INCLUDE])dnl 173117610SdesAC_REQUIRE([AM_DEP_TRACK])dnl 174117610Sdes 175255376Sdesm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 176255376Sdes [$1], [CXX], [depcc="$CXX" am_compiler_list=], 177255376Sdes [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 178255376Sdes [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 179255376Sdes [$1], [UPC], [depcc="$UPC" am_compiler_list=], 180255376Sdes [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 181255376Sdes [depcc="$$1" am_compiler_list=]) 182117610Sdes 183117610SdesAC_CACHE_CHECK([dependency style of $depcc], 184117610Sdes [am_cv_$1_dependencies_compiler_type], 185117610Sdes[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 186117610Sdes # We make a subdir and do the tests there. Otherwise we can end up 187117610Sdes # making bogus files that we don't know about and never remove. For 188117610Sdes # instance it was reported that on HP-UX the gcc test will end up 189255376Sdes # making a dummy file named 'D' -- because '-MD' means "put the output 190255376Sdes # in D". 191255376Sdes rm -rf conftest.dir 192117610Sdes mkdir conftest.dir 193117610Sdes # Copy depcomp to subdir because otherwise we won't find it if we're 194117610Sdes # using a relative directory. 195117610Sdes cp "$am_depcomp" conftest.dir 196117610Sdes cd conftest.dir 197141098Sdes # We will build objects and dependencies in a subdirectory because 198141098Sdes # it helps to detect inapplicable dependency modes. For instance 199141098Sdes # both Tru64's cc and ICC support -MD to output dependencies as a 200141098Sdes # side effect of compilation, but ICC will put the dependencies in 201141098Sdes # the current directory while Tru64 will put them in the object 202141098Sdes # directory. 203141098Sdes mkdir sub 204117610Sdes 205117610Sdes am_cv_$1_dependencies_compiler_type=none 206117610Sdes if test "$am_compiler_list" = ""; then 207117610Sdes am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 208117610Sdes fi 209228692Sdes am__universal=false 210228692Sdes m4_case([$1], [CC], 211228692Sdes [case " $depcc " in #( 212228692Sdes *\ -arch\ *\ -arch\ *) am__universal=true ;; 213228692Sdes esac], 214228692Sdes [CXX], 215228692Sdes [case " $depcc " in #( 216228692Sdes *\ -arch\ *\ -arch\ *) am__universal=true ;; 217228692Sdes esac]) 218228692Sdes 219117610Sdes for depmode in $am_compiler_list; do 220141098Sdes # Setup a source with many dependencies, because some compilers 221141098Sdes # like to wrap large dependency lists on column 80 (with \), and 222141098Sdes # we should not choose a depcomp mode which is confused by this. 223141098Sdes # 224117610Sdes # We need to recreate these files for each test, as the compiler may 225117610Sdes # overwrite some of them when testing with obscure command lines. 226117610Sdes # This happens at least with the AIX C compiler. 227141098Sdes : > sub/conftest.c 228141098Sdes for i in 1 2 3 4 5 6; do 229141098Sdes echo '#include "conftst'$i'.h"' >> sub/conftest.c 230255376Sdes # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 231255376Sdes # Solaris 10 /bin/sh. 232255376Sdes echo '/* dummy */' > sub/conftst$i.h 233141098Sdes done 234141098Sdes echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 235117610Sdes 236255376Sdes # We check with '-c' and '-o' for the sake of the "dashmstdout" 237228692Sdes # mode. It turns out that the SunPro C++ compiler does not properly 238255376Sdes # handle '-M -o', and we need to detect this. Also, some Intel 239255376Sdes # versions had trouble with output in subdirs. 240228692Sdes am__obj=sub/conftest.${OBJEXT-o} 241228692Sdes am__minus_obj="-o $am__obj" 242117610Sdes case $depmode in 243228692Sdes gcc) 244228692Sdes # This depmode causes a compiler race in universal mode. 245228692Sdes test "$am__universal" = false || continue 246228692Sdes ;; 247117610Sdes nosideeffect) 248255376Sdes # After this tag, mechanisms are not by side-effect, so they'll 249255376Sdes # only be used when explicitly requested. 250117610Sdes if test "x$enable_dependency_tracking" = xyes; then 251117610Sdes continue 252117610Sdes else 253117610Sdes break 254117610Sdes fi 255117610Sdes ;; 256255376Sdes msvc7 | msvc7msys | msvisualcpp | msvcmsys) 257255376Sdes # This compiler won't grok '-c -o', but also, the minuso test has 258228692Sdes # not run yet. These depmodes are late enough in the game, and 259228692Sdes # so weak that their functioning should not be impacted. 260228692Sdes am__obj=conftest.${OBJEXT-o} 261228692Sdes am__minus_obj= 262228692Sdes ;; 263117610Sdes none) break ;; 264117610Sdes esac 265117610Sdes if depmode=$depmode \ 266228692Sdes source=sub/conftest.c object=$am__obj \ 267141098Sdes depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 268228692Sdes $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 269141098Sdes >/dev/null 2>conftest.err && 270228692Sdes grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 271141098Sdes grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 272228692Sdes grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 273117610Sdes ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 274141098Sdes # icc doesn't choke on unknown options, it will just issue warnings 275141098Sdes # or remarks (even with -Werror). So we grep stderr for any message 276141098Sdes # that says an option was ignored or not supported. 277141098Sdes # When given -MP, icc 7.0 and 7.1 complain thusly: 278141098Sdes # icc: Command line warning: ignoring option '-M'; no argument required 279141098Sdes # The diagnosis changed in icc 8.0: 280141098Sdes # icc: Command line remark: option '-MP' not supported 281141098Sdes if (grep 'ignoring option' conftest.err || 282141098Sdes grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 283141098Sdes am_cv_$1_dependencies_compiler_type=$depmode 284141098Sdes break 285141098Sdes fi 286117610Sdes fi 287117610Sdes done 288117610Sdes 289117610Sdes cd .. 290117610Sdes rm -rf conftest.dir 291117610Sdeselse 292117610Sdes am_cv_$1_dependencies_compiler_type=none 293117610Sdesfi 294117610Sdes]) 295141098SdesAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 296141098SdesAM_CONDITIONAL([am__fastdep$1], [ 297141098Sdes test "x$enable_dependency_tracking" != xno \ 298141098Sdes && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 299117610Sdes]) 300117610Sdes 301117610Sdes 302117610Sdes# AM_SET_DEPDIR 303117610Sdes# ------------- 304117610Sdes# Choose a directory name for dependency files. 305255376Sdes# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 306117610SdesAC_DEFUN([AM_SET_DEPDIR], 307141098Sdes[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 308141098SdesAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 309117610Sdes]) 310117610Sdes 311117610Sdes 312117610Sdes# AM_DEP_TRACK 313117610Sdes# ------------ 314117610SdesAC_DEFUN([AM_DEP_TRACK], 315255376Sdes[AC_ARG_ENABLE([dependency-tracking], [dnl 316255376SdesAS_HELP_STRING( 317255376Sdes [--enable-dependency-tracking], 318255376Sdes [do not reject slow dependency extractors]) 319255376SdesAS_HELP_STRING( 320255376Sdes [--disable-dependency-tracking], 321255376Sdes [speeds up one-time build])]) 322117610Sdesif test "x$enable_dependency_tracking" != xno; then 323117610Sdes am_depcomp="$ac_aux_dir/depcomp" 324117610Sdes AMDEPBACKSLASH='\' 325255376Sdes am__nodep='_no' 326117610Sdesfi 327117610SdesAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 328228692SdesAC_SUBST([AMDEPBACKSLASH])dnl 329228692Sdes_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 330255376SdesAC_SUBST([am__nodep])dnl 331255376Sdes_AM_SUBST_NOTMAKE([am__nodep])dnl 332117610Sdes]) 333117610Sdes 334174832Sdes# Generate code to set up dependency tracking. -*- Autoconf -*- 335117610Sdes 336255376Sdes# Copyright (C) 1999-2013 Free Software Foundation, Inc. 337174832Sdes# 338174832Sdes# This file is free software; the Free Software Foundation 339174832Sdes# gives unlimited permission to copy and/or distribute it, 340174832Sdes# with or without modifications, as long as this notice is preserved. 341141098Sdes 342141098Sdes 343141098Sdes# _AM_OUTPUT_DEPENDENCY_COMMANDS 344141098Sdes# ------------------------------ 345141098SdesAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 346228692Sdes[{ 347255376Sdes # Older Autoconf quotes --file arguments for eval, but not when files 348228692Sdes # are listed without --file. Let's play safe and only enable the eval 349228692Sdes # if we detect the quoting. 350228692Sdes case $CONFIG_FILES in 351228692Sdes *\'*) eval set x "$CONFIG_FILES" ;; 352228692Sdes *) set x $CONFIG_FILES ;; 353228692Sdes esac 354228692Sdes shift 355228692Sdes for mf 356228692Sdes do 357228692Sdes # Strip MF so we end up with the name of the file. 358228692Sdes mf=`echo "$mf" | sed -e 's/:.*$//'` 359228692Sdes # Check whether this is an Automake generated Makefile or not. 360255376Sdes # We used to match only the files named 'Makefile.in', but 361228692Sdes # some people rename them; so instead we look at the file content. 362228692Sdes # Grep'ing the first line is not enough: some people post-process 363228692Sdes # each Makefile.in and add a new line on top of each file to say so. 364228692Sdes # Grep'ing the whole file is not good either: AIX grep has a line 365228692Sdes # limit of 2048, but all sed's we know have understand at least 4000. 366228692Sdes if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 367228692Sdes dirpart=`AS_DIRNAME("$mf")` 368228692Sdes else 369228692Sdes continue 370228692Sdes fi 371228692Sdes # Extract the definition of DEPDIR, am__include, and am__quote 372255376Sdes # from the Makefile without running 'make'. 373228692Sdes DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 374228692Sdes test -z "$DEPDIR" && continue 375228692Sdes am__include=`sed -n 's/^am__include = //p' < "$mf"` 376255376Sdes test -z "$am__include" && continue 377228692Sdes am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 378228692Sdes # Find all dependency output files, they are included files with 379228692Sdes # $(DEPDIR) in their names. We invoke sed twice because it is the 380228692Sdes # simplest approach to changing $(DEPDIR) to its actual value in the 381228692Sdes # expansion. 382228692Sdes for file in `sed -n " 383228692Sdes s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 384255376Sdes sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 385228692Sdes # Make sure the directory exists. 386228692Sdes test -f "$dirpart/$file" && continue 387228692Sdes fdir=`AS_DIRNAME(["$file"])` 388228692Sdes AS_MKDIR_P([$dirpart/$fdir]) 389228692Sdes # echo "creating $dirpart/$file" 390228692Sdes echo '# dummy' > "$dirpart/$file" 391228692Sdes done 392117610Sdes done 393228692Sdes} 394141098Sdes])# _AM_OUTPUT_DEPENDENCY_COMMANDS 395117610Sdes 396141098Sdes 397141098Sdes# AM_OUTPUT_DEPENDENCY_COMMANDS 398141098Sdes# ----------------------------- 399141098Sdes# This macro should only be invoked once -- use via AC_REQUIRE. 400141098Sdes# 401141098Sdes# This code is only required when automatic dependency tracking 402255376Sdes# is enabled. FIXME. This creates each '.P' file that we will 403141098Sdes# need in order to bootstrap the dependency handling code. 404141098SdesAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 405141098Sdes[AC_CONFIG_COMMANDS([depfiles], 406141098Sdes [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 407141098Sdes [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 408141098Sdes]) 409141098Sdes 410174832Sdes# Do all the work for Automake. -*- Autoconf -*- 411141098Sdes 412255376Sdes# Copyright (C) 1996-2013 Free Software Foundation, Inc. 413174832Sdes# 414174832Sdes# This file is free software; the Free Software Foundation 415174832Sdes# gives unlimited permission to copy and/or distribute it, 416174832Sdes# with or without modifications, as long as this notice is preserved. 417141098Sdes 418174832Sdes# This macro actually does too much. Some checks are only needed if 419174832Sdes# your package does certain things. But this isn't really a big deal. 420141098Sdes 421255376Sdesdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 422255376Sdesm4_define([AC_PROG_CC], 423255376Sdesm4_defn([AC_PROG_CC]) 424255376Sdes[_AM_PROG_CC_C_O 425255376Sdes]) 426255376Sdes 427141098Sdes# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 428141098Sdes# AM_INIT_AUTOMAKE([OPTIONS]) 429141098Sdes# ----------------------------------------------- 430141098Sdes# The call with PACKAGE and VERSION arguments is the old style 431141098Sdes# call (pre autoconf-2.50), which is being phased out. PACKAGE 432141098Sdes# and VERSION should now be passed to AC_INIT and removed from 433141098Sdes# the call to AM_INIT_AUTOMAKE. 434141098Sdes# We support both call styles for the transition. After 435141098Sdes# the next Automake release, Autoconf can make the AC_INIT 436141098Sdes# arguments mandatory, and then we can depend on a new Autoconf 437141098Sdes# release and drop the old call support. 438141098SdesAC_DEFUN([AM_INIT_AUTOMAKE], 439255376Sdes[AC_PREREQ([2.65])dnl 440141098Sdesdnl Autoconf wants to disallow AM_ names. We explicitly allow 441141098Sdesdnl the ones we care about. 442141098Sdesm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 443141098SdesAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 444141098SdesAC_REQUIRE([AC_PROG_INSTALL])dnl 445228692Sdesif test "`cd $srcdir && pwd`" != "`pwd`"; then 446228692Sdes # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 447228692Sdes # is not polluted with repeated "-I." 448228692Sdes AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 449228692Sdes # test to see if srcdir already configured 450228692Sdes if test -f $srcdir/config.status; then 451228692Sdes AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 452228692Sdes fi 453141098Sdesfi 454141098Sdes 455141098Sdes# test whether we have cygpath 456141098Sdesif test -z "$CYGPATH_W"; then 457141098Sdes if (cygpath --version) >/dev/null 2>/dev/null; then 458141098Sdes CYGPATH_W='cygpath -w' 459141098Sdes else 460141098Sdes CYGPATH_W=echo 461141098Sdes fi 462141098Sdesfi 463141098SdesAC_SUBST([CYGPATH_W]) 464141098Sdes 465141098Sdes# Define the identity of the package. 466141098Sdesdnl Distinguish between old-style and new-style calls. 467141098Sdesm4_ifval([$2], 468255376Sdes[AC_DIAGNOSE([obsolete], 469255376Sdes [$0: two- and three-arguments forms are deprecated.]) 470255376Sdesm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 471141098Sdes AC_SUBST([PACKAGE], [$1])dnl 472141098Sdes AC_SUBST([VERSION], [$2])], 473141098Sdes[_AM_SET_OPTIONS([$1])dnl 474228692Sdesdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 475255376Sdesm4_if( 476255376Sdes m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 477255376Sdes [ok:ok],, 478228692Sdes [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 479141098Sdes AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 480141098Sdes AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 481141098Sdes 482141098Sdes_AM_IF_OPTION([no-define],, 483255376Sdes[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 484255376Sdes AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 485141098Sdes 486141098Sdes# Some tools Automake needs. 487141098SdesAC_REQUIRE([AM_SANITY_CHECK])dnl 488141098SdesAC_REQUIRE([AC_ARG_PROGRAM])dnl 489255376SdesAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 490255376SdesAM_MISSING_PROG([AUTOCONF], [autoconf]) 491255376SdesAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 492255376SdesAM_MISSING_PROG([AUTOHEADER], [autoheader]) 493255376SdesAM_MISSING_PROG([MAKEINFO], [makeinfo]) 494228692SdesAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 495228692SdesAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 496255376SdesAC_REQUIRE([AC_PROG_MKDIR_P])dnl 497255376Sdes# For better backward compatibility. To be removed once Automake 1.9.x 498255376Sdes# dies out for good. For more background, see: 499255376Sdes# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 500255376Sdes# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 501255376SdesAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 502141098Sdes# We need awk for the "check" target. The system "awk" is bad on 503141098Sdes# some platforms. 504141098SdesAC_REQUIRE([AC_PROG_AWK])dnl 505141098SdesAC_REQUIRE([AC_PROG_MAKE_SET])dnl 506141098SdesAC_REQUIRE([AM_SET_LEADING_DOT])dnl 507174832Sdes_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 508228692Sdes [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 509228692Sdes [_AM_PROG_TAR([v7])])]) 510141098Sdes_AM_IF_OPTION([no-dependencies],, 511141098Sdes[AC_PROVIDE_IFELSE([AC_PROG_CC], 512255376Sdes [_AM_DEPENDENCIES([CC])], 513255376Sdes [m4_define([AC_PROG_CC], 514255376Sdes m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 515141098SdesAC_PROVIDE_IFELSE([AC_PROG_CXX], 516255376Sdes [_AM_DEPENDENCIES([CXX])], 517255376Sdes [m4_define([AC_PROG_CXX], 518255376Sdes m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 519228692SdesAC_PROVIDE_IFELSE([AC_PROG_OBJC], 520255376Sdes [_AM_DEPENDENCIES([OBJC])], 521255376Sdes [m4_define([AC_PROG_OBJC], 522255376Sdes m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 523255376SdesAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 524255376Sdes [_AM_DEPENDENCIES([OBJCXX])], 525255376Sdes [m4_define([AC_PROG_OBJCXX], 526255376Sdes m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 527141098Sdes]) 528255376SdesAC_REQUIRE([AM_SILENT_RULES])dnl 529255376Sdesdnl The testsuite driver may need to know about EXEEXT, so add the 530255376Sdesdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 531255376Sdesdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 532228692SdesAC_CONFIG_COMMANDS_PRE(dnl 533228692Sdes[m4_provide_if([_AM_COMPILER_EXEEXT], 534228692Sdes [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 535141098Sdes 536255376Sdes# POSIX will say in a future version that running "rm -f" with no argument 537255376Sdes# is OK; and we want to be able to make that assumption in our Makefile 538255376Sdes# recipes. So use an aggressive probe to check that the usage we want is 539255376Sdes# actually supported "in the wild" to an acceptable degree. 540255376Sdes# See automake bug#10828. 541255376Sdes# To make any issue more visible, cause the running configure to be aborted 542255376Sdes# by default if the 'rm' program in use doesn't match our expectations; the 543255376Sdes# user can still override this though. 544255376Sdesif rm -f && rm -fr && rm -rf; then : OK; else 545255376Sdes cat >&2 <<'END' 546255376SdesOops! 547255376Sdes 548255376SdesYour 'rm' program seems unable to run without file operands specified 549255376Sdeson the command line, even when the '-f' option is present. This is contrary 550255376Sdesto the behaviour of most rm programs out there, and not conforming with 551255376Sdesthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 552255376Sdes 553255376SdesPlease tell bug-automake@gnu.org about your system, including the value 554255376Sdesof your $PATH and any error possibly output before this message. This 555255376Sdescan help us improve future automake versions. 556255376Sdes 557255376SdesEND 558255376Sdes if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 559255376Sdes echo 'Configuration will proceed anyway, since you have set the' >&2 560255376Sdes echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 561255376Sdes echo >&2 562255376Sdes else 563255376Sdes cat >&2 <<'END' 564255376SdesAborting the configuration process, to ensure you take notice of the issue. 565255376Sdes 566255376SdesYou can download and install GNU coreutils to get an 'rm' implementation 567255376Sdesthat behaves properly: <http://www.gnu.org/software/coreutils/>. 568255376Sdes 569255376SdesIf you want to complete the configuration process using your problematic 570255376Sdes'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 571255376Sdesto "yes", and re-run configure. 572255376Sdes 573255376SdesEND 574255376Sdes AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 575255376Sdes fi 576255376Sdesfi]) 577255376Sdes 578255376Sdesdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 579228692Sdesdnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 580228692Sdesdnl mangled by Autoconf and run in a shell conditional statement. 581228692Sdesm4_define([_AC_COMPILER_EXEEXT], 582228692Sdesm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 583141098Sdes 584141098Sdes# When config.status generates a header, we must update the stamp-h file. 585141098Sdes# This file resides in the same directory as the config header 586141098Sdes# that is generated. The stamp files are numbered to have different names. 587141098Sdes 588141098Sdes# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 589141098Sdes# loop where config.status creates the headers, so we can generate 590141098Sdes# our stamp files there. 591141098SdesAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 592141098Sdes[# Compute $1's index in $config_headers. 593228692Sdes_am_arg=$1 594141098Sdes_am_stamp_count=1 595141098Sdesfor _am_header in $config_headers :; do 596141098Sdes case $_am_header in 597228692Sdes $_am_arg | $_am_arg:* ) 598141098Sdes break ;; 599141098Sdes * ) 600141098Sdes _am_stamp_count=`expr $_am_stamp_count + 1` ;; 601141098Sdes esac 602141098Sdesdone 603228692Sdesecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 604141098Sdes 605255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 606174832Sdes# 607174832Sdes# This file is free software; the Free Software Foundation 608174832Sdes# gives unlimited permission to copy and/or distribute it, 609174832Sdes# with or without modifications, as long as this notice is preserved. 610174832Sdes 611141098Sdes# AM_PROG_INSTALL_SH 612141098Sdes# ------------------ 613141098Sdes# Define $install_sh. 614141098SdesAC_DEFUN([AM_PROG_INSTALL_SH], 615141098Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 616228692Sdesif test x"${install_sh}" != xset; then 617228692Sdes case $am_aux_dir in 618228692Sdes *\ * | *\ *) 619228692Sdes install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 620228692Sdes *) 621228692Sdes install_sh="\${SHELL} $am_aux_dir/install-sh" 622228692Sdes esac 623228692Sdesfi 624255376SdesAC_SUBST([install_sh])]) 625141098Sdes 626255376Sdes# Copyright (C) 2003-2013 Free Software Foundation, Inc. 627174832Sdes# 628174832Sdes# This file is free software; the Free Software Foundation 629174832Sdes# gives unlimited permission to copy and/or distribute it, 630174832Sdes# with or without modifications, as long as this notice is preserved. 631141098Sdes 632141098Sdes# Check whether the underlying file-system supports filenames 633141098Sdes# with a leading dot. For instance MS-DOS doesn't. 634141098SdesAC_DEFUN([AM_SET_LEADING_DOT], 635141098Sdes[rm -rf .tst 2>/dev/null 636141098Sdesmkdir .tst 2>/dev/null 637141098Sdesif test -d .tst; then 638141098Sdes am__leading_dot=. 639141098Sdeselse 640141098Sdes am__leading_dot=_ 641141098Sdesfi 642141098Sdesrmdir .tst 2>/dev/null 643141098SdesAC_SUBST([am__leading_dot])]) 644141098Sdes 645174832Sdes# Check to see how 'make' treats includes. -*- Autoconf -*- 646141098Sdes 647255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 648174832Sdes# 649174832Sdes# This file is free software; the Free Software Foundation 650174832Sdes# gives unlimited permission to copy and/or distribute it, 651174832Sdes# with or without modifications, as long as this notice is preserved. 652141098Sdes 653117610Sdes# AM_MAKE_INCLUDE() 654117610Sdes# ----------------- 655117610Sdes# Check to see how make treats includes. 656117610SdesAC_DEFUN([AM_MAKE_INCLUDE], 657117610Sdes[am_make=${MAKE-make} 658117610Sdescat > confinc << 'END' 659141098Sdesam__doit: 660228692Sdes @echo this is the am__doit target 661141098Sdes.PHONY: am__doit 662117610SdesEND 663117610Sdes# If we don't find an include directive, just comment out the code. 664117610SdesAC_MSG_CHECKING([for style of include used by $am_make]) 665141098Sdesam__include="#" 666117610Sdesam__quote= 667117610Sdes_am_result=none 668117610Sdes# First try GNU make style include. 669117610Sdesecho "include confinc" > confmf 670255376Sdes# Ignore all kinds of additional output from 'make'. 671228692Sdescase `$am_make -s -f confmf 2> /dev/null` in #( 672228692Sdes*the\ am__doit\ target*) 673228692Sdes am__include=include 674228692Sdes am__quote= 675228692Sdes _am_result=GNU 676228692Sdes ;; 677228692Sdesesac 678117610Sdes# Now try BSD make style include. 679117610Sdesif test "$am__include" = "#"; then 680117610Sdes echo '.include "confinc"' > confmf 681228692Sdes case `$am_make -s -f confmf 2> /dev/null` in #( 682228692Sdes *the\ am__doit\ target*) 683228692Sdes am__include=.include 684228692Sdes am__quote="\"" 685228692Sdes _am_result=BSD 686228692Sdes ;; 687228692Sdes esac 688117610Sdesfi 689141098SdesAC_SUBST([am__include]) 690141098SdesAC_SUBST([am__quote]) 691141098SdesAC_MSG_RESULT([$_am_result]) 692117610Sdesrm -f confinc confmf 693117610Sdes]) 694117610Sdes 695174832Sdes# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 696141098Sdes 697255376Sdes# Copyright (C) 1997-2013 Free Software Foundation, Inc. 698174832Sdes# 699174832Sdes# This file is free software; the Free Software Foundation 700174832Sdes# gives unlimited permission to copy and/or distribute it, 701174832Sdes# with or without modifications, as long as this notice is preserved. 702141098Sdes 703141098Sdes# AM_MISSING_PROG(NAME, PROGRAM) 704141098Sdes# ------------------------------ 705141098SdesAC_DEFUN([AM_MISSING_PROG], 706141098Sdes[AC_REQUIRE([AM_MISSING_HAS_RUN]) 707141098Sdes$1=${$1-"${am_missing_run}$2"} 708141098SdesAC_SUBST($1)]) 709141098Sdes 710141098Sdes# AM_MISSING_HAS_RUN 711141098Sdes# ------------------ 712255376Sdes# Define MISSING if not defined so far and test if it is modern enough. 713255376Sdes# If it is, set am_missing_run to use it, otherwise, to nothing. 714141098SdesAC_DEFUN([AM_MISSING_HAS_RUN], 715141098Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 716228692SdesAC_REQUIRE_AUX_FILE([missing])dnl 717228692Sdesif test x"${MISSING+set}" != xset; then 718228692Sdes case $am_aux_dir in 719228692Sdes *\ * | *\ *) 720228692Sdes MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 721228692Sdes *) 722228692Sdes MISSING="\${SHELL} $am_aux_dir/missing" ;; 723228692Sdes esac 724228692Sdesfi 725141098Sdes# Use eval to expand $SHELL 726255376Sdesif eval "$MISSING --is-lightweight"; then 727255376Sdes am_missing_run="$MISSING " 728141098Sdeselse 729141098Sdes am_missing_run= 730255376Sdes AC_MSG_WARN(['missing' script is too old or missing]) 731141098Sdesfi 732141098Sdes]) 733141098Sdes 734255376Sdes# -*- Autoconf -*- 735255376Sdes# Obsolete and "removed" macros, that must however still report explicit 736255376Sdes# error messages when used, to smooth transition. 737174832Sdes# 738255376Sdes# Copyright (C) 1996-2013 Free Software Foundation, Inc. 739255376Sdes# 740174832Sdes# This file is free software; the Free Software Foundation 741174832Sdes# gives unlimited permission to copy and/or distribute it, 742174832Sdes# with or without modifications, as long as this notice is preserved. 743174832Sdes 744255376SdesAC_DEFUN([AM_CONFIG_HEADER], 745255376Sdes[AC_DIAGNOSE([obsolete], 746255376Sdes['$0': this macro is obsolete. 747255376SdesYou should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl 748255376SdesAC_CONFIG_HEADERS($@)]) 749117610Sdes 750255376SdesAC_DEFUN([AM_PROG_CC_STDC], 751255376Sdes[AC_PROG_CC 752255376Sdesam_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 753255376SdesAC_DIAGNOSE([obsolete], 754255376Sdes['$0': this macro is obsolete. 755255376SdesYou should simply use the 'AC][_PROG_CC' macro instead. 756255376SdesAlso, your code should no longer depend upon 'am_cv_prog_cc_stdc', 757255376Sdesbut upon 'ac_cv_prog_cc_stdc'.])]) 758255376Sdes 759255376SdesAC_DEFUN([AM_C_PROTOTYPES], 760255376Sdes [AC_FATAL([automatic de-ANSI-fication support has been removed])]) 761255376SdesAU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) 762255376Sdes 763174832Sdes# Helper functions for option handling. -*- Autoconf -*- 764141098Sdes 765255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 766174832Sdes# 767174832Sdes# This file is free software; the Free Software Foundation 768174832Sdes# gives unlimited permission to copy and/or distribute it, 769174832Sdes# with or without modifications, as long as this notice is preserved. 770141098Sdes 771141098Sdes# _AM_MANGLE_OPTION(NAME) 772141098Sdes# ----------------------- 773141098SdesAC_DEFUN([_AM_MANGLE_OPTION], 774141098Sdes[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 775141098Sdes 776141098Sdes# _AM_SET_OPTION(NAME) 777255376Sdes# -------------------- 778141098Sdes# Set option NAME. Presently that only means defining a flag for this option. 779141098SdesAC_DEFUN([_AM_SET_OPTION], 780255376Sdes[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 781141098Sdes 782141098Sdes# _AM_SET_OPTIONS(OPTIONS) 783255376Sdes# ------------------------ 784141098Sdes# OPTIONS is a space-separated list of Automake options. 785141098SdesAC_DEFUN([_AM_SET_OPTIONS], 786228692Sdes[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 787141098Sdes 788141098Sdes# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 789141098Sdes# ------------------------------------------- 790141098Sdes# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 791141098SdesAC_DEFUN([_AM_IF_OPTION], 792141098Sdes[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 793141098Sdes 794255376Sdes# Copyright (C) 1999-2013 Free Software Foundation, Inc. 795255376Sdes# 796255376Sdes# This file is free software; the Free Software Foundation 797255376Sdes# gives unlimited permission to copy and/or distribute it, 798255376Sdes# with or without modifications, as long as this notice is preserved. 799255376Sdes 800255376Sdes# _AM_PROG_CC_C_O 801255376Sdes# --------------- 802255376Sdes# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 803255376Sdes# to automatically call this. 804255376SdesAC_DEFUN([_AM_PROG_CC_C_O], 805255376Sdes[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 806255376SdesAC_REQUIRE_AUX_FILE([compile])dnl 807255376SdesAC_LANG_PUSH([C])dnl 808255376SdesAC_CACHE_CHECK( 809255376Sdes [whether $CC understands -c and -o together], 810255376Sdes [am_cv_prog_cc_c_o], 811255376Sdes [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 812255376Sdes # Make sure it works both with $CC and with simple cc. 813255376Sdes # Following AC_PROG_CC_C_O, we do the test twice because some 814255376Sdes # compilers refuse to overwrite an existing .o file with -o, 815255376Sdes # though they will create one. 816255376Sdes am_cv_prog_cc_c_o=yes 817255376Sdes for am_i in 1 2; do 818255376Sdes if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 819255376Sdes && test -f conftest2.$ac_objext; then 820255376Sdes : OK 821255376Sdes else 822255376Sdes am_cv_prog_cc_c_o=no 823255376Sdes break 824255376Sdes fi 825255376Sdes done 826255376Sdes rm -f core conftest* 827255376Sdes unset am_i]) 828255376Sdesif test "$am_cv_prog_cc_c_o" != yes; then 829255376Sdes # Losing compiler, so override with the script. 830255376Sdes # FIXME: It is wrong to rewrite CC. 831255376Sdes # But if we don't then we get into trouble of one sort or another. 832255376Sdes # A longer-term fix would be to have automake use am__CC in this case, 833255376Sdes # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 834255376Sdes CC="$am_aux_dir/compile $CC" 835255376Sdesfi 836255376SdesAC_LANG_POP([C])]) 837255376Sdes 838255376Sdes# For backward compatibility. 839255376SdesAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 840255376Sdes 841255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 842255376Sdes# 843255376Sdes# This file is free software; the Free Software Foundation 844255376Sdes# gives unlimited permission to copy and/or distribute it, 845255376Sdes# with or without modifications, as long as this notice is preserved. 846255376Sdes 847255376Sdes# AM_RUN_LOG(COMMAND) 848255376Sdes# ------------------- 849255376Sdes# Run COMMAND, save the exit status in ac_status, and log it. 850255376Sdes# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 851255376SdesAC_DEFUN([AM_RUN_LOG], 852255376Sdes[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 853255376Sdes ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 854255376Sdes ac_status=$? 855255376Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 856255376Sdes (exit $ac_status); }]) 857255376Sdes 858174832Sdes# Check to make sure that the build environment is sane. -*- Autoconf -*- 859174832Sdes 860255376Sdes# Copyright (C) 1996-2013 Free Software Foundation, Inc. 861141098Sdes# 862174832Sdes# This file is free software; the Free Software Foundation 863174832Sdes# gives unlimited permission to copy and/or distribute it, 864174832Sdes# with or without modifications, as long as this notice is preserved. 865141098Sdes 866141098Sdes# AM_SANITY_CHECK 867141098Sdes# --------------- 868141098SdesAC_DEFUN([AM_SANITY_CHECK], 869141098Sdes[AC_MSG_CHECKING([whether build environment is sane]) 870228692Sdes# Reject unsafe characters in $srcdir or the absolute working directory 871228692Sdes# name. Accept space and tab only in the latter. 872228692Sdesam_lf=' 873228692Sdes' 874228692Sdescase `pwd` in 875228692Sdes *[[\\\"\#\$\&\'\`$am_lf]]*) 876228692Sdes AC_MSG_ERROR([unsafe absolute working directory name]);; 877228692Sdesesac 878228692Sdescase $srcdir in 879228692Sdes *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 880255376Sdes AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 881228692Sdesesac 882228692Sdes 883255376Sdes# Do 'set' in a subshell so we don't clobber the current shell's 884141098Sdes# arguments. Must try -L first in case configure is actually a 885141098Sdes# symlink; some systems play weird games with the mod time of symlinks 886141098Sdes# (eg FreeBSD returns the mod time of the symlink's containing 887141098Sdes# directory). 888141098Sdesif ( 889255376Sdes am_has_slept=no 890255376Sdes for am_try in 1 2; do 891255376Sdes echo "timestamp, slept: $am_has_slept" > conftest.file 892255376Sdes set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 893255376Sdes if test "$[*]" = "X"; then 894255376Sdes # -L didn't work. 895255376Sdes set X `ls -t "$srcdir/configure" conftest.file` 896255376Sdes fi 897255376Sdes if test "$[*]" != "X $srcdir/configure conftest.file" \ 898255376Sdes && test "$[*]" != "X conftest.file $srcdir/configure"; then 899141098Sdes 900255376Sdes # If neither matched, then we have a broken ls. This can happen 901255376Sdes # if, for instance, CONFIG_SHELL is bash and it inherits a 902255376Sdes # broken ls alias from the environment. This has actually 903255376Sdes # happened. Such a system could not be considered "sane". 904255376Sdes AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 905255376Sdes alias in your environment]) 906255376Sdes fi 907255376Sdes if test "$[2]" = conftest.file || test $am_try -eq 2; then 908255376Sdes break 909255376Sdes fi 910255376Sdes # Just in case. 911255376Sdes sleep 1 912255376Sdes am_has_slept=yes 913255376Sdes done 914141098Sdes test "$[2]" = conftest.file 915141098Sdes ) 916141098Sdesthen 917141098Sdes # Ok. 918141098Sdes : 919141098Sdeselse 920141098Sdes AC_MSG_ERROR([newly created file is older than distributed files! 921141098SdesCheck your system clock]) 922141098Sdesfi 923255376SdesAC_MSG_RESULT([yes]) 924255376Sdes# If we didn't sleep, we still need to ensure time stamps of config.status and 925255376Sdes# generated files are strictly newer. 926255376Sdesam_sleep_pid= 927255376Sdesif grep 'slept: no' conftest.file >/dev/null 2>&1; then 928255376Sdes ( sleep 1 ) & 929255376Sdes am_sleep_pid=$! 930255376Sdesfi 931255376SdesAC_CONFIG_COMMANDS_PRE( 932255376Sdes [AC_MSG_CHECKING([that generated files are newer than configure]) 933255376Sdes if test -n "$am_sleep_pid"; then 934255376Sdes # Hide warnings about reused PIDs. 935255376Sdes wait $am_sleep_pid 2>/dev/null 936255376Sdes fi 937255376Sdes AC_MSG_RESULT([done])]) 938255376Sdesrm -f conftest.file 939255376Sdes]) 940141098Sdes 941255376Sdes# Copyright (C) 2009-2013 Free Software Foundation, Inc. 942174832Sdes# 943174832Sdes# This file is free software; the Free Software Foundation 944174832Sdes# gives unlimited permission to copy and/or distribute it, 945174832Sdes# with or without modifications, as long as this notice is preserved. 946174832Sdes 947255376Sdes# AM_SILENT_RULES([DEFAULT]) 948255376Sdes# -------------------------- 949255376Sdes# Enable less verbose build rules; with the default set to DEFAULT 950255376Sdes# ("yes" being less verbose, "no" or empty being verbose). 951255376SdesAC_DEFUN([AM_SILENT_RULES], 952255376Sdes[AC_ARG_ENABLE([silent-rules], [dnl 953255376SdesAS_HELP_STRING( 954255376Sdes [--enable-silent-rules], 955255376Sdes [less verbose build output (undo: "make V=1")]) 956255376SdesAS_HELP_STRING( 957255376Sdes [--disable-silent-rules], 958255376Sdes [verbose build output (undo: "make V=0")])dnl 959255376Sdes]) 960255376Sdescase $enable_silent_rules in @%:@ ((( 961255376Sdes yes) AM_DEFAULT_VERBOSITY=0;; 962255376Sdes no) AM_DEFAULT_VERBOSITY=1;; 963255376Sdes *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 964255376Sdesesac 965255376Sdesdnl 966255376Sdesdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 967255376Sdesdnl do not support nested variable expansions. 968255376Sdesdnl See automake bug#9928 and bug#10237. 969255376Sdesam_make=${MAKE-make} 970255376SdesAC_CACHE_CHECK([whether $am_make supports nested variables], 971255376Sdes [am_cv_make_support_nested_variables], 972255376Sdes [if AS_ECHO([['TRUE=$(BAR$(V)) 973255376SdesBAR0=false 974255376SdesBAR1=true 975255376SdesV=1 976255376Sdesam__doit: 977255376Sdes @$(TRUE) 978255376Sdes.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 979255376Sdes am_cv_make_support_nested_variables=yes 980255376Sdeselse 981255376Sdes am_cv_make_support_nested_variables=no 982255376Sdesfi]) 983255376Sdesif test $am_cv_make_support_nested_variables = yes; then 984255376Sdes dnl Using '$V' instead of '$(V)' breaks IRIX make. 985255376Sdes AM_V='$(V)' 986255376Sdes AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 987255376Sdeselse 988255376Sdes AM_V=$AM_DEFAULT_VERBOSITY 989255376Sdes AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 990255376Sdesfi 991255376SdesAC_SUBST([AM_V])dnl 992255376SdesAM_SUBST_NOTMAKE([AM_V])dnl 993255376SdesAC_SUBST([AM_DEFAULT_V])dnl 994255376SdesAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 995255376SdesAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 996255376SdesAM_BACKSLASH='\' 997255376SdesAC_SUBST([AM_BACKSLASH])dnl 998255376Sdes_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 999255376Sdes]) 1000255376Sdes 1001255376Sdes# Copyright (C) 2001-2013 Free Software Foundation, Inc. 1002255376Sdes# 1003255376Sdes# This file is free software; the Free Software Foundation 1004255376Sdes# gives unlimited permission to copy and/or distribute it, 1005255376Sdes# with or without modifications, as long as this notice is preserved. 1006255376Sdes 1007141098Sdes# AM_PROG_INSTALL_STRIP 1008174832Sdes# --------------------- 1009255376Sdes# One issue with vendor 'install' (even GNU) is that you can't 1010141098Sdes# specify the program used to strip binaries. This is especially 1011141098Sdes# annoying in cross-compiling environments, where the build's strip 1012141098Sdes# is unlikely to handle the host's binaries. 1013141098Sdes# Fortunately install-sh will honor a STRIPPROG variable, so we 1014255376Sdes# always use install-sh in "make install-strip", and initialize 1015141098Sdes# STRIPPROG with the value of the STRIP variable (set by the user). 1016141098SdesAC_DEFUN([AM_PROG_INSTALL_STRIP], 1017141098Sdes[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1018255376Sdes# Installed binaries are usually stripped using 'strip' when the user 1019255376Sdes# run "make install-strip". However 'strip' might not be the right 1020141098Sdes# tool to use in cross-compilation environments, therefore Automake 1021255376Sdes# will honor the 'STRIP' environment variable to overrule this program. 1022255376Sdesdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1023141098Sdesif test "$cross_compiling" != no; then 1024141098Sdes AC_CHECK_TOOL([STRIP], [strip], :) 1025141098Sdesfi 1026228692SdesINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1027141098SdesAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1028141098Sdes 1029255376Sdes# Copyright (C) 2006-2013 Free Software Foundation, Inc. 1030228692Sdes# 1031228692Sdes# This file is free software; the Free Software Foundation 1032228692Sdes# gives unlimited permission to copy and/or distribute it, 1033228692Sdes# with or without modifications, as long as this notice is preserved. 1034228692Sdes 1035228692Sdes# _AM_SUBST_NOTMAKE(VARIABLE) 1036228692Sdes# --------------------------- 1037228692Sdes# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1038228692Sdes# This macro is traced by Automake. 1039228692SdesAC_DEFUN([_AM_SUBST_NOTMAKE]) 1040228692Sdes 1041228692Sdes# AM_SUBST_NOTMAKE(VARIABLE) 1042255376Sdes# -------------------------- 1043228692Sdes# Public sister of _AM_SUBST_NOTMAKE. 1044228692SdesAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1045228692Sdes 1046174832Sdes# Check how to create a tarball. -*- Autoconf -*- 1047174832Sdes 1048255376Sdes# Copyright (C) 2004-2013 Free Software Foundation, Inc. 1049174832Sdes# 1050174832Sdes# This file is free software; the Free Software Foundation 1051174832Sdes# gives unlimited permission to copy and/or distribute it, 1052174832Sdes# with or without modifications, as long as this notice is preserved. 1053174832Sdes 1054174832Sdes# _AM_PROG_TAR(FORMAT) 1055174832Sdes# -------------------- 1056174832Sdes# Check how to create a tarball in format FORMAT. 1057255376Sdes# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1058174832Sdes# 1059174832Sdes# Substitute a variable $(am__tar) that is a command 1060174832Sdes# writing to stdout a FORMAT-tarball containing the directory 1061174832Sdes# $tardir. 1062174832Sdes# tardir=directory && $(am__tar) > result.tar 1063174832Sdes# 1064174832Sdes# Substitute a variable $(am__untar) that extract such 1065174832Sdes# a tarball read from stdin. 1066174832Sdes# $(am__untar) < result.tar 1067255376Sdes# 1068174832SdesAC_DEFUN([_AM_PROG_TAR], 1069255376Sdes[# Always define AMTAR for backward compatibility. Yes, it's still used 1070255376Sdes# in the wild :-( We should find a proper way to deprecate it ... 1071255376SdesAC_SUBST([AMTAR], ['$${TAR-tar}']) 1072255376Sdes 1073255376Sdes# We'll loop over all known methods to create a tar archive until one works. 1074174832Sdes_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1075174832Sdes 1076255376Sdesm4_if([$1], [v7], 1077255376Sdes [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1078174832Sdes 1079255376Sdes [m4_case([$1], 1080255376Sdes [ustar], 1081255376Sdes [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1082255376Sdes # There is notably a 21 bits limit for the UID and the GID. In fact, 1083255376Sdes # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1084255376Sdes # and bug#13588). 1085255376Sdes am_max_uid=2097151 # 2^21 - 1 1086255376Sdes am_max_gid=$am_max_uid 1087255376Sdes # The $UID and $GID variables are not portable, so we need to resort 1088255376Sdes # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1089255376Sdes # below are definitely unexpected, so allow the users to see them 1090255376Sdes # (that is, avoid stderr redirection). 1091255376Sdes am_uid=`id -u || echo unknown` 1092255376Sdes am_gid=`id -g || echo unknown` 1093255376Sdes AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1094255376Sdes if test $am_uid -le $am_max_uid; then 1095255376Sdes AC_MSG_RESULT([yes]) 1096255376Sdes else 1097255376Sdes AC_MSG_RESULT([no]) 1098255376Sdes _am_tools=none 1099255376Sdes fi 1100255376Sdes AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1101255376Sdes if test $am_gid -le $am_max_gid; then 1102255376Sdes AC_MSG_RESULT([yes]) 1103255376Sdes else 1104255376Sdes AC_MSG_RESULT([no]) 1105255376Sdes _am_tools=none 1106255376Sdes fi], 1107255376Sdes 1108255376Sdes [pax], 1109255376Sdes [], 1110255376Sdes 1111255376Sdes [m4_fatal([Unknown tar format])]) 1112255376Sdes 1113255376Sdes AC_MSG_CHECKING([how to create a $1 tar archive]) 1114255376Sdes 1115255376Sdes # Go ahead even if we have the value already cached. We do so because we 1116255376Sdes # need to set the values for the 'am__tar' and 'am__untar' variables. 1117255376Sdes _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1118255376Sdes 1119255376Sdes for _am_tool in $_am_tools; do 1120255376Sdes case $_am_tool in 1121255376Sdes gnutar) 1122255376Sdes for _am_tar in tar gnutar gtar; do 1123255376Sdes AM_RUN_LOG([$_am_tar --version]) && break 1124255376Sdes done 1125255376Sdes am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1126255376Sdes am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1127255376Sdes am__untar="$_am_tar -xf -" 1128255376Sdes ;; 1129255376Sdes plaintar) 1130255376Sdes # Must skip GNU tar: if it does not support --format= it doesn't create 1131255376Sdes # ustar tarball either. 1132255376Sdes (tar --version) >/dev/null 2>&1 && continue 1133255376Sdes am__tar='tar chf - "$$tardir"' 1134255376Sdes am__tar_='tar chf - "$tardir"' 1135255376Sdes am__untar='tar xf -' 1136255376Sdes ;; 1137255376Sdes pax) 1138255376Sdes am__tar='pax -L -x $1 -w "$$tardir"' 1139255376Sdes am__tar_='pax -L -x $1 -w "$tardir"' 1140255376Sdes am__untar='pax -r' 1141255376Sdes ;; 1142255376Sdes cpio) 1143255376Sdes am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1144255376Sdes am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1145255376Sdes am__untar='cpio -i -H $1 -d' 1146255376Sdes ;; 1147255376Sdes none) 1148255376Sdes am__tar=false 1149255376Sdes am__tar_=false 1150255376Sdes am__untar=false 1151255376Sdes ;; 1152255376Sdes esac 1153255376Sdes 1154255376Sdes # If the value was cached, stop now. We just wanted to have am__tar 1155255376Sdes # and am__untar set. 1156255376Sdes test -n "${am_cv_prog_tar_$1}" && break 1157255376Sdes 1158255376Sdes # tar/untar a dummy directory, and stop if the command works. 1159255376Sdes rm -rf conftest.dir 1160255376Sdes mkdir conftest.dir 1161255376Sdes echo GrepMe > conftest.dir/file 1162255376Sdes AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1163255376Sdes rm -rf conftest.dir 1164255376Sdes if test -s conftest.tar; then 1165255376Sdes AM_RUN_LOG([$am__untar <conftest.tar]) 1166255376Sdes AM_RUN_LOG([cat conftest.dir/file]) 1167255376Sdes grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1168255376Sdes fi 1169255376Sdes done 1170174832Sdes rm -rf conftest.dir 1171174832Sdes 1172255376Sdes AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1173255376Sdes AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1174255376Sdes 1175174832SdesAC_SUBST([am__tar]) 1176174832SdesAC_SUBST([am__untar]) 1177174832Sdes]) # _AM_PROG_TAR 1178174832Sdes 1179255376Sdesm4_include([m4/libtool.m4]) 1180255376Sdesm4_include([m4/ltoptions.m4]) 1181255376Sdesm4_include([m4/ltsugar.m4]) 1182255376Sdesm4_include([m4/ltversion.m4]) 1183255376Sdesm4_include([m4/lt~obsolete.m4]) 1184