14305584aSkardel# generated automatically by aclocal 1.11.1 -*- Autoconf -*- 2abb0f93cSkardel 3abb0f93cSkardel# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4abb0f93cSkardel# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5abb0f93cSkardel# This file is free software; the Free Software Foundation 6abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 7abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 8abb0f93cSkardel 9abb0f93cSkardel# This program is distributed in the hope that it will be useful, 10abb0f93cSkardel# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11abb0f93cSkardel# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12abb0f93cSkardel# PARTICULAR PURPOSE. 13abb0f93cSkardel 14abb0f93cSkardelm4_ifndef([AC_AUTOCONF_VERSION], 15abb0f93cSkardel [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 164305584aSkardelm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, 174305584aSkardel[m4_warning([this file was generated for autoconf 2.68. 18abb0f93cSkardelYou have another version of autoconf. It may work, but is not guaranteed to. 19abb0f93cSkardelIf you have problems, you may need to regenerate the build system entirely. 20abb0f93cSkardelTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 21abb0f93cSkardel 22*2b3787f6Schristos# serial 9 -*- Autoconf -*- 23*2b3787f6Schristos# Enable extensions on systems that normally disable them. 24*2b3787f6Schristos 25*2b3787f6Schristos# Copyright (C) 2003, 2006-2010 Free Software Foundation, Inc. 26*2b3787f6Schristos# This file is free software; the Free Software Foundation 27*2b3787f6Schristos# gives unlimited permission to copy and/or distribute it, 28*2b3787f6Schristos# with or without modifications, as long as this notice is preserved. 29*2b3787f6Schristos 30*2b3787f6Schristos# This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS 31*2b3787f6Schristos# Autoconf. Perhaps we can remove this once we can assume Autoconf 32*2b3787f6Schristos# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly 33*2b3787f6Schristos# enough in this area it's likely we'll need to redefine 34*2b3787f6Schristos# AC_USE_SYSTEM_EXTENSIONS for quite some time. 35*2b3787f6Schristos 36*2b3787f6Schristos# If autoconf reports a warning 37*2b3787f6Schristos# warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 38*2b3787f6Schristos# or warning: AC_RUN_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS 39*2b3787f6Schristos# the fix is 40*2b3787f6Schristos# 1) to ensure that AC_USE_SYSTEM_EXTENSIONS is never directly invoked 41*2b3787f6Schristos# but always AC_REQUIREd, 42*2b3787f6Schristos# 2) to ensure that for each occurrence of 43*2b3787f6Schristos# AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 44*2b3787f6Schristos# or 45*2b3787f6Schristos# AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 46*2b3787f6Schristos# the corresponding gnulib module description has 'extensions' among 47*2b3787f6Schristos# its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS 48*2b3787f6Schristos# invocation occurs in gl_EARLY, not in gl_INIT. 49*2b3787f6Schristos 50*2b3787f6Schristos# AC_USE_SYSTEM_EXTENSIONS 51*2b3787f6Schristos# ------------------------ 52*2b3787f6Schristos# Enable extensions on systems that normally disable them, 53*2b3787f6Schristos# typically due to standards-conformance issues. 54*2b3787f6Schristos# Remember that #undef in AH_VERBATIM gets replaced with #define by 55*2b3787f6Schristos# AC_DEFINE. The goal here is to define all known feature-enabling 56*2b3787f6Schristos# macros, then, if reports of conflicts are made, disable macros that 57*2b3787f6Schristos# cause problems on some platforms (such as __EXTENSIONS__). 58*2b3787f6SchristosAC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS], 59*2b3787f6Schristos[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 60*2b3787f6SchristosAC_BEFORE([$0], [AC_RUN_IFELSE])dnl 61*2b3787f6Schristos 62*2b3787f6Schristos AC_REQUIRE([AC_CANONICAL_HOST]) 63*2b3787f6Schristos 64*2b3787f6Schristos AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 65*2b3787f6Schristos if test "$MINIX" = yes; then 66*2b3787f6Schristos AC_DEFINE([_POSIX_SOURCE], [1], 67*2b3787f6Schristos [Define to 1 if you need to in order for `stat' and other 68*2b3787f6Schristos things to work.]) 69*2b3787f6Schristos AC_DEFINE([_POSIX_1_SOURCE], [2], 70*2b3787f6Schristos [Define to 2 if the system does not provide POSIX.1 features 71*2b3787f6Schristos except with this defined.]) 72*2b3787f6Schristos AC_DEFINE([_MINIX], [1], 73*2b3787f6Schristos [Define to 1 if on MINIX.]) 74*2b3787f6Schristos fi 75*2b3787f6Schristos 76*2b3787f6Schristos dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to 500, 77*2b3787f6Schristos dnl regardless of whether the flags -Ae or _D_HPUX_SOURCE=1 are already 78*2b3787f6Schristos dnl provided. 79*2b3787f6Schristos case "$host_os" in 80*2b3787f6Schristos hpux*) 81*2b3787f6Schristos AC_DEFINE([_XOPEN_SOURCE], [500], 82*2b3787f6Schristos [Define to 500 only on HP-UX.]) 83*2b3787f6Schristos ;; 84*2b3787f6Schristos esac 85*2b3787f6Schristos 86*2b3787f6Schristos AH_VERBATIM([__EXTENSIONS__], 87*2b3787f6Schristos[/* Enable extensions on AIX 3, Interix. */ 88*2b3787f6Schristos#ifndef _ALL_SOURCE 89*2b3787f6Schristos# undef _ALL_SOURCE 90*2b3787f6Schristos#endif 91*2b3787f6Schristos/* Enable GNU extensions on systems that have them. */ 92*2b3787f6Schristos#ifndef _GNU_SOURCE 93*2b3787f6Schristos# undef _GNU_SOURCE 94*2b3787f6Schristos#endif 95*2b3787f6Schristos/* Enable threading extensions on Solaris. */ 96*2b3787f6Schristos#ifndef _POSIX_PTHREAD_SEMANTICS 97*2b3787f6Schristos# undef _POSIX_PTHREAD_SEMANTICS 98*2b3787f6Schristos#endif 99*2b3787f6Schristos/* Enable extensions on HP NonStop. */ 100*2b3787f6Schristos#ifndef _TANDEM_SOURCE 101*2b3787f6Schristos# undef _TANDEM_SOURCE 102*2b3787f6Schristos#endif 103*2b3787f6Schristos/* Enable general extensions on Solaris. */ 104*2b3787f6Schristos#ifndef __EXTENSIONS__ 105*2b3787f6Schristos# undef __EXTENSIONS__ 106*2b3787f6Schristos#endif 107*2b3787f6Schristos]) 108*2b3787f6Schristos AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 109*2b3787f6Schristos [ac_cv_safe_to_define___extensions__], 110*2b3787f6Schristos [AC_COMPILE_IFELSE( 111*2b3787f6Schristos [AC_LANG_PROGRAM([[ 112*2b3787f6Schristos# define __EXTENSIONS__ 1 113*2b3787f6Schristos ]AC_INCLUDES_DEFAULT])], 114*2b3787f6Schristos [ac_cv_safe_to_define___extensions__=yes], 115*2b3787f6Schristos [ac_cv_safe_to_define___extensions__=no])]) 116*2b3787f6Schristos test $ac_cv_safe_to_define___extensions__ = yes && 117*2b3787f6Schristos AC_DEFINE([__EXTENSIONS__]) 118*2b3787f6Schristos AC_DEFINE([_ALL_SOURCE]) 119*2b3787f6Schristos AC_DEFINE([_GNU_SOURCE]) 120*2b3787f6Schristos AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 121*2b3787f6Schristos AC_DEFINE([_TANDEM_SOURCE]) 122*2b3787f6Schristos])# AC_USE_SYSTEM_EXTENSIONS 123*2b3787f6Schristos 124*2b3787f6Schristos# gl_USE_SYSTEM_EXTENSIONS 125*2b3787f6Schristos# ------------------------ 126*2b3787f6Schristos# Enable extensions on systems that normally disable them, 127*2b3787f6Schristos# typically due to standards-conformance issues. 128*2b3787f6SchristosAC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], 129*2b3787f6Schristos[ 130*2b3787f6Schristos dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS. 131*2b3787f6Schristos dnl gnulib does not need it. But if it gets required by third-party macros 132*2b3787f6Schristos dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a 133*2b3787f6Schristos dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS". 134*2b3787f6Schristos dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE, 135*2b3787f6Schristos dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck. 136*2b3787f6Schristos AC_REQUIRE([AC_GNU_SOURCE]) 137*2b3787f6Schristos 138*2b3787f6Schristos AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 139*2b3787f6Schristos]) 140*2b3787f6Schristos 141abb0f93cSkardel# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 142abb0f93cSkardel# 143abb0f93cSkardel# This file is free software; the Free Software Foundation 144abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 145abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 146abb0f93cSkardel 147abb0f93cSkardel# AM_AUTOMAKE_VERSION(VERSION) 148abb0f93cSkardel# ---------------------------- 149abb0f93cSkardel# Automake X.Y traces this macro to ensure aclocal.m4 has been 150abb0f93cSkardel# generated from the m4 files accompanying Automake X.Y. 151abb0f93cSkardel# (This private macro should not be called outside this file.) 152abb0f93cSkardelAC_DEFUN([AM_AUTOMAKE_VERSION], 153abb0f93cSkardel[am__api_version='1.11' 154abb0f93cSkardeldnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 155abb0f93cSkardeldnl require some minimum version. Point them to the right macro. 1564305584aSkardelm4_if([$1], [1.11.1], [], 157abb0f93cSkardel [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 158abb0f93cSkardel]) 159abb0f93cSkardel 160abb0f93cSkardel# _AM_AUTOCONF_VERSION(VERSION) 161abb0f93cSkardel# ----------------------------- 162abb0f93cSkardel# aclocal traces this macro to find the Autoconf version. 163abb0f93cSkardel# This is a private macro too. Using m4_define simplifies 164abb0f93cSkardel# the logic in aclocal, which can simply ignore this definition. 165abb0f93cSkardelm4_define([_AM_AUTOCONF_VERSION], []) 166abb0f93cSkardel 167abb0f93cSkardel# AM_SET_CURRENT_AUTOMAKE_VERSION 168abb0f93cSkardel# ------------------------------- 169abb0f93cSkardel# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 170abb0f93cSkardel# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 171abb0f93cSkardelAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 1724305584aSkardel[AM_AUTOMAKE_VERSION([1.11.1])dnl 173abb0f93cSkardelm4_ifndef([AC_AUTOCONF_VERSION], 174abb0f93cSkardel [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 175abb0f93cSkardel_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 176abb0f93cSkardel 177abb0f93cSkardel# AM_AUX_DIR_EXPAND -*- Autoconf -*- 178abb0f93cSkardel 179abb0f93cSkardel# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 180abb0f93cSkardel# 181abb0f93cSkardel# This file is free software; the Free Software Foundation 182abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 183abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 184abb0f93cSkardel 185abb0f93cSkardel# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 186abb0f93cSkardel# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 187abb0f93cSkardel# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 188abb0f93cSkardel# 189abb0f93cSkardel# Of course, Automake must honor this variable whenever it calls a 190abb0f93cSkardel# tool from the auxiliary directory. The problem is that $srcdir (and 191abb0f93cSkardel# therefore $ac_aux_dir as well) can be either absolute or relative, 192abb0f93cSkardel# depending on how configure is run. This is pretty annoying, since 193abb0f93cSkardel# it makes $ac_aux_dir quite unusable in subdirectories: in the top 194abb0f93cSkardel# source directory, any form will work fine, but in subdirectories a 195abb0f93cSkardel# relative path needs to be adjusted first. 196abb0f93cSkardel# 197abb0f93cSkardel# $ac_aux_dir/missing 198abb0f93cSkardel# fails when called from a subdirectory if $ac_aux_dir is relative 199abb0f93cSkardel# $top_srcdir/$ac_aux_dir/missing 200abb0f93cSkardel# fails if $ac_aux_dir is absolute, 201abb0f93cSkardel# fails when called from a subdirectory in a VPATH build with 202abb0f93cSkardel# a relative $ac_aux_dir 203abb0f93cSkardel# 204abb0f93cSkardel# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 205abb0f93cSkardel# are both prefixed by $srcdir. In an in-source build this is usually 206abb0f93cSkardel# harmless because $srcdir is `.', but things will broke when you 207abb0f93cSkardel# start a VPATH build or use an absolute $srcdir. 208abb0f93cSkardel# 209abb0f93cSkardel# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 210abb0f93cSkardel# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 211abb0f93cSkardel# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 212abb0f93cSkardel# and then we would define $MISSING as 213abb0f93cSkardel# MISSING="\${SHELL} $am_aux_dir/missing" 214abb0f93cSkardel# This will work as long as MISSING is not called from configure, because 215abb0f93cSkardel# unfortunately $(top_srcdir) has no meaning in configure. 216abb0f93cSkardel# However there are other variables, like CC, which are often used in 217abb0f93cSkardel# configure, and could therefore not use this "fixed" $ac_aux_dir. 218abb0f93cSkardel# 219abb0f93cSkardel# Another solution, used here, is to always expand $ac_aux_dir to an 220abb0f93cSkardel# absolute PATH. The drawback is that using absolute paths prevent a 221abb0f93cSkardel# configured tree to be moved without reconfiguration. 222abb0f93cSkardel 223abb0f93cSkardelAC_DEFUN([AM_AUX_DIR_EXPAND], 224abb0f93cSkardel[dnl Rely on autoconf to set up CDPATH properly. 225abb0f93cSkardelAC_PREREQ([2.50])dnl 226abb0f93cSkardel# expand $ac_aux_dir to an absolute path 227abb0f93cSkardelam_aux_dir=`cd $ac_aux_dir && pwd` 228abb0f93cSkardel]) 229abb0f93cSkardel 230abb0f93cSkardel# AM_CONDITIONAL -*- Autoconf -*- 231abb0f93cSkardel 232abb0f93cSkardel# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 233abb0f93cSkardel# Free Software Foundation, Inc. 234abb0f93cSkardel# 235abb0f93cSkardel# This file is free software; the Free Software Foundation 236abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 237abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 238abb0f93cSkardel 239abb0f93cSkardel# serial 9 240abb0f93cSkardel 241abb0f93cSkardel# AM_CONDITIONAL(NAME, SHELL-CONDITION) 242abb0f93cSkardel# ------------------------------------- 243abb0f93cSkardel# Define a conditional. 244abb0f93cSkardelAC_DEFUN([AM_CONDITIONAL], 245abb0f93cSkardel[AC_PREREQ(2.52)dnl 246abb0f93cSkardel ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 247abb0f93cSkardel [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 248abb0f93cSkardelAC_SUBST([$1_TRUE])dnl 249abb0f93cSkardelAC_SUBST([$1_FALSE])dnl 250abb0f93cSkardel_AM_SUBST_NOTMAKE([$1_TRUE])dnl 251abb0f93cSkardel_AM_SUBST_NOTMAKE([$1_FALSE])dnl 252abb0f93cSkardelm4_define([_AM_COND_VALUE_$1], [$2])dnl 253abb0f93cSkardelif $2; then 254abb0f93cSkardel $1_TRUE= 255abb0f93cSkardel $1_FALSE='#' 256abb0f93cSkardelelse 257abb0f93cSkardel $1_TRUE='#' 258abb0f93cSkardel $1_FALSE= 259abb0f93cSkardelfi 260abb0f93cSkardelAC_CONFIG_COMMANDS_PRE( 261abb0f93cSkardel[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 262abb0f93cSkardel AC_MSG_ERROR([[conditional "$1" was never defined. 263abb0f93cSkardelUsually this means the macro was only invoked conditionally.]]) 264abb0f93cSkardelfi])]) 265abb0f93cSkardel 266abb0f93cSkardel# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 267abb0f93cSkardel# Free Software Foundation, Inc. 268abb0f93cSkardel# 269abb0f93cSkardel# This file is free software; the Free Software Foundation 270abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 271abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 272abb0f93cSkardel 273abb0f93cSkardel# serial 10 274abb0f93cSkardel 275abb0f93cSkardel# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 276abb0f93cSkardel# written in clear, in which case automake, when reading aclocal.m4, 277abb0f93cSkardel# will think it sees a *use*, and therefore will trigger all it's 278abb0f93cSkardel# C support machinery. Also note that it means that autoscan, seeing 279abb0f93cSkardel# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 280abb0f93cSkardel 281abb0f93cSkardel 282abb0f93cSkardel# _AM_DEPENDENCIES(NAME) 283abb0f93cSkardel# ---------------------- 284abb0f93cSkardel# See how the compiler implements dependency checking. 285abb0f93cSkardel# NAME is "CC", "CXX", "GCJ", or "OBJC". 286abb0f93cSkardel# We try a few techniques and use that to set a single cache variable. 287abb0f93cSkardel# 288abb0f93cSkardel# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 289abb0f93cSkardel# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 290abb0f93cSkardel# dependency, and given that the user is not expected to run this macro, 291abb0f93cSkardel# just rely on AC_PROG_CC. 292abb0f93cSkardelAC_DEFUN([_AM_DEPENDENCIES], 293abb0f93cSkardel[AC_REQUIRE([AM_SET_DEPDIR])dnl 294abb0f93cSkardelAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 295abb0f93cSkardelAC_REQUIRE([AM_MAKE_INCLUDE])dnl 296abb0f93cSkardelAC_REQUIRE([AM_DEP_TRACK])dnl 297abb0f93cSkardel 298abb0f93cSkardelifelse([$1], CC, [depcc="$CC" am_compiler_list=], 299abb0f93cSkardel [$1], CXX, [depcc="$CXX" am_compiler_list=], 300abb0f93cSkardel [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 301abb0f93cSkardel [$1], UPC, [depcc="$UPC" am_compiler_list=], 302abb0f93cSkardel [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 303abb0f93cSkardel [depcc="$$1" am_compiler_list=]) 304abb0f93cSkardel 305abb0f93cSkardelAC_CACHE_CHECK([dependency style of $depcc], 306abb0f93cSkardel [am_cv_$1_dependencies_compiler_type], 307abb0f93cSkardel[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 308abb0f93cSkardel # We make a subdir and do the tests there. Otherwise we can end up 309abb0f93cSkardel # making bogus files that we don't know about and never remove. For 310abb0f93cSkardel # instance it was reported that on HP-UX the gcc test will end up 311abb0f93cSkardel # making a dummy file named `D' -- because `-MD' means `put the output 312abb0f93cSkardel # in D'. 313abb0f93cSkardel mkdir conftest.dir 314abb0f93cSkardel # Copy depcomp to subdir because otherwise we won't find it if we're 315abb0f93cSkardel # using a relative directory. 316abb0f93cSkardel cp "$am_depcomp" conftest.dir 317abb0f93cSkardel cd conftest.dir 318abb0f93cSkardel # We will build objects and dependencies in a subdirectory because 319abb0f93cSkardel # it helps to detect inapplicable dependency modes. For instance 320abb0f93cSkardel # both Tru64's cc and ICC support -MD to output dependencies as a 321abb0f93cSkardel # side effect of compilation, but ICC will put the dependencies in 322abb0f93cSkardel # the current directory while Tru64 will put them in the object 323abb0f93cSkardel # directory. 324abb0f93cSkardel mkdir sub 325abb0f93cSkardel 326abb0f93cSkardel am_cv_$1_dependencies_compiler_type=none 327abb0f93cSkardel if test "$am_compiler_list" = ""; then 328abb0f93cSkardel am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 329abb0f93cSkardel fi 330abb0f93cSkardel am__universal=false 331abb0f93cSkardel m4_case([$1], [CC], 332abb0f93cSkardel [case " $depcc " in #( 333abb0f93cSkardel *\ -arch\ *\ -arch\ *) am__universal=true ;; 334abb0f93cSkardel esac], 335abb0f93cSkardel [CXX], 336abb0f93cSkardel [case " $depcc " in #( 337abb0f93cSkardel *\ -arch\ *\ -arch\ *) am__universal=true ;; 338abb0f93cSkardel esac]) 339abb0f93cSkardel 340abb0f93cSkardel for depmode in $am_compiler_list; do 341abb0f93cSkardel # Setup a source with many dependencies, because some compilers 342abb0f93cSkardel # like to wrap large dependency lists on column 80 (with \), and 343abb0f93cSkardel # we should not choose a depcomp mode which is confused by this. 344abb0f93cSkardel # 345abb0f93cSkardel # We need to recreate these files for each test, as the compiler may 346abb0f93cSkardel # overwrite some of them when testing with obscure command lines. 347abb0f93cSkardel # This happens at least with the AIX C compiler. 348abb0f93cSkardel : > sub/conftest.c 349abb0f93cSkardel for i in 1 2 3 4 5 6; do 350abb0f93cSkardel echo '#include "conftst'$i'.h"' >> sub/conftest.c 351abb0f93cSkardel # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 352abb0f93cSkardel # Solaris 8's {/usr,}/bin/sh. 353abb0f93cSkardel touch sub/conftst$i.h 354abb0f93cSkardel done 355abb0f93cSkardel echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 356abb0f93cSkardel 357abb0f93cSkardel # We check with `-c' and `-o' for the sake of the "dashmstdout" 358abb0f93cSkardel # mode. It turns out that the SunPro C++ compiler does not properly 359abb0f93cSkardel # handle `-M -o', and we need to detect this. Also, some Intel 360abb0f93cSkardel # versions had trouble with output in subdirs 361abb0f93cSkardel am__obj=sub/conftest.${OBJEXT-o} 362abb0f93cSkardel am__minus_obj="-o $am__obj" 363abb0f93cSkardel case $depmode in 364abb0f93cSkardel gcc) 365abb0f93cSkardel # This depmode causes a compiler race in universal mode. 366abb0f93cSkardel test "$am__universal" = false || continue 367abb0f93cSkardel ;; 368abb0f93cSkardel nosideeffect) 369abb0f93cSkardel # after this tag, mechanisms are not by side-effect, so they'll 370abb0f93cSkardel # only be used when explicitly requested 371abb0f93cSkardel if test "x$enable_dependency_tracking" = xyes; then 372abb0f93cSkardel continue 373abb0f93cSkardel else 374abb0f93cSkardel break 375abb0f93cSkardel fi 376abb0f93cSkardel ;; 377abb0f93cSkardel msvisualcpp | msvcmsys) 378abb0f93cSkardel # This compiler won't grok `-c -o', but also, the minuso test has 379abb0f93cSkardel # not run yet. These depmodes are late enough in the game, and 380abb0f93cSkardel # so weak that their functioning should not be impacted. 381abb0f93cSkardel am__obj=conftest.${OBJEXT-o} 382abb0f93cSkardel am__minus_obj= 383abb0f93cSkardel ;; 384abb0f93cSkardel none) break ;; 385abb0f93cSkardel esac 386abb0f93cSkardel if depmode=$depmode \ 387abb0f93cSkardel source=sub/conftest.c object=$am__obj \ 388abb0f93cSkardel depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 389abb0f93cSkardel $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 390abb0f93cSkardel >/dev/null 2>conftest.err && 391abb0f93cSkardel grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 392abb0f93cSkardel grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 393abb0f93cSkardel grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 394abb0f93cSkardel ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 395abb0f93cSkardel # icc doesn't choke on unknown options, it will just issue warnings 396abb0f93cSkardel # or remarks (even with -Werror). So we grep stderr for any message 397abb0f93cSkardel # that says an option was ignored or not supported. 398abb0f93cSkardel # When given -MP, icc 7.0 and 7.1 complain thusly: 399abb0f93cSkardel # icc: Command line warning: ignoring option '-M'; no argument required 400abb0f93cSkardel # The diagnosis changed in icc 8.0: 401abb0f93cSkardel # icc: Command line remark: option '-MP' not supported 402abb0f93cSkardel if (grep 'ignoring option' conftest.err || 403abb0f93cSkardel grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 404abb0f93cSkardel am_cv_$1_dependencies_compiler_type=$depmode 405abb0f93cSkardel break 406abb0f93cSkardel fi 407abb0f93cSkardel fi 408abb0f93cSkardel done 409abb0f93cSkardel 410abb0f93cSkardel cd .. 411abb0f93cSkardel rm -rf conftest.dir 412abb0f93cSkardelelse 413abb0f93cSkardel am_cv_$1_dependencies_compiler_type=none 414abb0f93cSkardelfi 415abb0f93cSkardel]) 416abb0f93cSkardelAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 417abb0f93cSkardelAM_CONDITIONAL([am__fastdep$1], [ 418abb0f93cSkardel test "x$enable_dependency_tracking" != xno \ 419abb0f93cSkardel && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 420abb0f93cSkardel]) 421abb0f93cSkardel 422abb0f93cSkardel 423abb0f93cSkardel# AM_SET_DEPDIR 424abb0f93cSkardel# ------------- 425abb0f93cSkardel# Choose a directory name for dependency files. 426abb0f93cSkardel# This macro is AC_REQUIREd in _AM_DEPENDENCIES 427abb0f93cSkardelAC_DEFUN([AM_SET_DEPDIR], 428abb0f93cSkardel[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 429abb0f93cSkardelAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 430abb0f93cSkardel]) 431abb0f93cSkardel 432abb0f93cSkardel 433abb0f93cSkardel# AM_DEP_TRACK 434abb0f93cSkardel# ------------ 435abb0f93cSkardelAC_DEFUN([AM_DEP_TRACK], 436abb0f93cSkardel[AC_ARG_ENABLE(dependency-tracking, 437abb0f93cSkardel[ --disable-dependency-tracking speeds up one-time build 438abb0f93cSkardel --enable-dependency-tracking do not reject slow dependency extractors]) 439abb0f93cSkardelif test "x$enable_dependency_tracking" != xno; then 440abb0f93cSkardel am_depcomp="$ac_aux_dir/depcomp" 441abb0f93cSkardel AMDEPBACKSLASH='\' 442abb0f93cSkardelfi 443abb0f93cSkardelAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 444abb0f93cSkardelAC_SUBST([AMDEPBACKSLASH])dnl 445abb0f93cSkardel_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 446abb0f93cSkardel]) 447abb0f93cSkardel 448abb0f93cSkardel# Generate code to set up dependency tracking. -*- Autoconf -*- 449abb0f93cSkardel 450abb0f93cSkardel# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 451abb0f93cSkardel# Free Software Foundation, Inc. 452abb0f93cSkardel# 453abb0f93cSkardel# This file is free software; the Free Software Foundation 454abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 455abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 456abb0f93cSkardel 457abb0f93cSkardel#serial 5 458abb0f93cSkardel 459abb0f93cSkardel# _AM_OUTPUT_DEPENDENCY_COMMANDS 460abb0f93cSkardel# ------------------------------ 461abb0f93cSkardelAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 462abb0f93cSkardel[{ 463abb0f93cSkardel # Autoconf 2.62 quotes --file arguments for eval, but not when files 464abb0f93cSkardel # are listed without --file. Let's play safe and only enable the eval 465abb0f93cSkardel # if we detect the quoting. 466abb0f93cSkardel case $CONFIG_FILES in 467abb0f93cSkardel *\'*) eval set x "$CONFIG_FILES" ;; 468abb0f93cSkardel *) set x $CONFIG_FILES ;; 469abb0f93cSkardel esac 470abb0f93cSkardel shift 471abb0f93cSkardel for mf 472abb0f93cSkardel do 473abb0f93cSkardel # Strip MF so we end up with the name of the file. 474abb0f93cSkardel mf=`echo "$mf" | sed -e 's/:.*$//'` 475abb0f93cSkardel # Check whether this is an Automake generated Makefile or not. 476abb0f93cSkardel # We used to match only the files named `Makefile.in', but 477abb0f93cSkardel # some people rename them; so instead we look at the file content. 478abb0f93cSkardel # Grep'ing the first line is not enough: some people post-process 479abb0f93cSkardel # each Makefile.in and add a new line on top of each file to say so. 480abb0f93cSkardel # Grep'ing the whole file is not good either: AIX grep has a line 481abb0f93cSkardel # limit of 2048, but all sed's we know have understand at least 4000. 482abb0f93cSkardel if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 483abb0f93cSkardel dirpart=`AS_DIRNAME("$mf")` 484abb0f93cSkardel else 485abb0f93cSkardel continue 486abb0f93cSkardel fi 487abb0f93cSkardel # Extract the definition of DEPDIR, am__include, and am__quote 488abb0f93cSkardel # from the Makefile without running `make'. 489abb0f93cSkardel DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 490abb0f93cSkardel test -z "$DEPDIR" && continue 491abb0f93cSkardel am__include=`sed -n 's/^am__include = //p' < "$mf"` 492abb0f93cSkardel test -z "am__include" && continue 493abb0f93cSkardel am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 494abb0f93cSkardel # When using ansi2knr, U may be empty or an underscore; expand it 495abb0f93cSkardel U=`sed -n 's/^U = //p' < "$mf"` 496abb0f93cSkardel # Find all dependency output files, they are included files with 497abb0f93cSkardel # $(DEPDIR) in their names. We invoke sed twice because it is the 498abb0f93cSkardel # simplest approach to changing $(DEPDIR) to its actual value in the 499abb0f93cSkardel # expansion. 500abb0f93cSkardel for file in `sed -n " 501abb0f93cSkardel s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 502abb0f93cSkardel sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 503abb0f93cSkardel # Make sure the directory exists. 504abb0f93cSkardel test -f "$dirpart/$file" && continue 505abb0f93cSkardel fdir=`AS_DIRNAME(["$file"])` 506abb0f93cSkardel AS_MKDIR_P([$dirpart/$fdir]) 507abb0f93cSkardel # echo "creating $dirpart/$file" 508abb0f93cSkardel echo '# dummy' > "$dirpart/$file" 509abb0f93cSkardel done 510abb0f93cSkardel done 511abb0f93cSkardel} 512abb0f93cSkardel])# _AM_OUTPUT_DEPENDENCY_COMMANDS 513abb0f93cSkardel 514abb0f93cSkardel 515abb0f93cSkardel# AM_OUTPUT_DEPENDENCY_COMMANDS 516abb0f93cSkardel# ----------------------------- 517abb0f93cSkardel# This macro should only be invoked once -- use via AC_REQUIRE. 518abb0f93cSkardel# 519abb0f93cSkardel# This code is only required when automatic dependency tracking 520abb0f93cSkardel# is enabled. FIXME. This creates each `.P' file that we will 521abb0f93cSkardel# need in order to bootstrap the dependency handling code. 522abb0f93cSkardelAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 523abb0f93cSkardel[AC_CONFIG_COMMANDS([depfiles], 524abb0f93cSkardel [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 525abb0f93cSkardel [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 526abb0f93cSkardel]) 527abb0f93cSkardel 528abb0f93cSkardel# Do all the work for Automake. -*- Autoconf -*- 529abb0f93cSkardel 530abb0f93cSkardel# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 531abb0f93cSkardel# 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 532abb0f93cSkardel# 533abb0f93cSkardel# This file is free software; the Free Software Foundation 534abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 535abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 536abb0f93cSkardel 537abb0f93cSkardel# serial 16 538abb0f93cSkardel 539abb0f93cSkardel# This macro actually does too much. Some checks are only needed if 540abb0f93cSkardel# your package does certain things. But this isn't really a big deal. 541abb0f93cSkardel 542abb0f93cSkardel# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 543abb0f93cSkardel# AM_INIT_AUTOMAKE([OPTIONS]) 544abb0f93cSkardel# ----------------------------------------------- 545abb0f93cSkardel# The call with PACKAGE and VERSION arguments is the old style 546abb0f93cSkardel# call (pre autoconf-2.50), which is being phased out. PACKAGE 547abb0f93cSkardel# and VERSION should now be passed to AC_INIT and removed from 548abb0f93cSkardel# the call to AM_INIT_AUTOMAKE. 549abb0f93cSkardel# We support both call styles for the transition. After 550abb0f93cSkardel# the next Automake release, Autoconf can make the AC_INIT 551abb0f93cSkardel# arguments mandatory, and then we can depend on a new Autoconf 552abb0f93cSkardel# release and drop the old call support. 553abb0f93cSkardelAC_DEFUN([AM_INIT_AUTOMAKE], 554abb0f93cSkardel[AC_PREREQ([2.62])dnl 555abb0f93cSkardeldnl Autoconf wants to disallow AM_ names. We explicitly allow 556abb0f93cSkardeldnl the ones we care about. 557abb0f93cSkardelm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 558abb0f93cSkardelAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 559abb0f93cSkardelAC_REQUIRE([AC_PROG_INSTALL])dnl 560abb0f93cSkardelif test "`cd $srcdir && pwd`" != "`pwd`"; then 561abb0f93cSkardel # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 562abb0f93cSkardel # is not polluted with repeated "-I." 563abb0f93cSkardel AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 564abb0f93cSkardel # test to see if srcdir already configured 565abb0f93cSkardel if test -f $srcdir/config.status; then 566abb0f93cSkardel AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 567abb0f93cSkardel fi 568abb0f93cSkardelfi 569abb0f93cSkardel 570abb0f93cSkardel# test whether we have cygpath 571abb0f93cSkardelif test -z "$CYGPATH_W"; then 572abb0f93cSkardel if (cygpath --version) >/dev/null 2>/dev/null; then 573abb0f93cSkardel CYGPATH_W='cygpath -w' 574abb0f93cSkardel else 575abb0f93cSkardel CYGPATH_W=echo 576abb0f93cSkardel fi 577abb0f93cSkardelfi 578abb0f93cSkardelAC_SUBST([CYGPATH_W]) 579abb0f93cSkardel 580abb0f93cSkardel# Define the identity of the package. 581abb0f93cSkardeldnl Distinguish between old-style and new-style calls. 582abb0f93cSkardelm4_ifval([$2], 583abb0f93cSkardel[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 584abb0f93cSkardel AC_SUBST([PACKAGE], [$1])dnl 585abb0f93cSkardel AC_SUBST([VERSION], [$2])], 586abb0f93cSkardel[_AM_SET_OPTIONS([$1])dnl 587abb0f93cSkardeldnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 588abb0f93cSkardelm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 589abb0f93cSkardel [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 590abb0f93cSkardel AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 591abb0f93cSkardel AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 592abb0f93cSkardel 593abb0f93cSkardel_AM_IF_OPTION([no-define],, 594abb0f93cSkardel[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 595abb0f93cSkardel AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 596abb0f93cSkardel 597abb0f93cSkardel# Some tools Automake needs. 598abb0f93cSkardelAC_REQUIRE([AM_SANITY_CHECK])dnl 599abb0f93cSkardelAC_REQUIRE([AC_ARG_PROGRAM])dnl 600abb0f93cSkardelAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 601abb0f93cSkardelAM_MISSING_PROG(AUTOCONF, autoconf) 602abb0f93cSkardelAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 603abb0f93cSkardelAM_MISSING_PROG(AUTOHEADER, autoheader) 604abb0f93cSkardelAM_MISSING_PROG(MAKEINFO, makeinfo) 605abb0f93cSkardelAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 606abb0f93cSkardelAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 607abb0f93cSkardelAC_REQUIRE([AM_PROG_MKDIR_P])dnl 608abb0f93cSkardel# We need awk for the "check" target. The system "awk" is bad on 609abb0f93cSkardel# some platforms. 610abb0f93cSkardelAC_REQUIRE([AC_PROG_AWK])dnl 611abb0f93cSkardelAC_REQUIRE([AC_PROG_MAKE_SET])dnl 612abb0f93cSkardelAC_REQUIRE([AM_SET_LEADING_DOT])dnl 613abb0f93cSkardel_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 614abb0f93cSkardel [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 615abb0f93cSkardel [_AM_PROG_TAR([v7])])]) 616abb0f93cSkardel_AM_IF_OPTION([no-dependencies],, 617abb0f93cSkardel[AC_PROVIDE_IFELSE([AC_PROG_CC], 618abb0f93cSkardel [_AM_DEPENDENCIES(CC)], 619abb0f93cSkardel [define([AC_PROG_CC], 620abb0f93cSkardel defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 621abb0f93cSkardelAC_PROVIDE_IFELSE([AC_PROG_CXX], 622abb0f93cSkardel [_AM_DEPENDENCIES(CXX)], 623abb0f93cSkardel [define([AC_PROG_CXX], 624abb0f93cSkardel defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 625abb0f93cSkardelAC_PROVIDE_IFELSE([AC_PROG_OBJC], 626abb0f93cSkardel [_AM_DEPENDENCIES(OBJC)], 627abb0f93cSkardel [define([AC_PROG_OBJC], 628abb0f93cSkardel defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 629abb0f93cSkardel]) 630abb0f93cSkardel_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 631abb0f93cSkardeldnl The `parallel-tests' driver may need to know about EXEEXT, so add the 632abb0f93cSkardeldnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 633abb0f93cSkardeldnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 634abb0f93cSkardelAC_CONFIG_COMMANDS_PRE(dnl 635abb0f93cSkardel[m4_provide_if([_AM_COMPILER_EXEEXT], 636abb0f93cSkardel [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 637abb0f93cSkardel]) 638abb0f93cSkardel 639abb0f93cSkardeldnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 640abb0f93cSkardeldnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 641abb0f93cSkardeldnl mangled by Autoconf and run in a shell conditional statement. 642abb0f93cSkardelm4_define([_AC_COMPILER_EXEEXT], 643abb0f93cSkardelm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 644abb0f93cSkardel 645abb0f93cSkardel 646abb0f93cSkardel# When config.status generates a header, we must update the stamp-h file. 647abb0f93cSkardel# This file resides in the same directory as the config header 648abb0f93cSkardel# that is generated. The stamp files are numbered to have different names. 649abb0f93cSkardel 650abb0f93cSkardel# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 651abb0f93cSkardel# loop where config.status creates the headers, so we can generate 652abb0f93cSkardel# our stamp files there. 653abb0f93cSkardelAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 654abb0f93cSkardel[# Compute $1's index in $config_headers. 655abb0f93cSkardel_am_arg=$1 656abb0f93cSkardel_am_stamp_count=1 657abb0f93cSkardelfor _am_header in $config_headers :; do 658abb0f93cSkardel case $_am_header in 659abb0f93cSkardel $_am_arg | $_am_arg:* ) 660abb0f93cSkardel break ;; 661abb0f93cSkardel * ) 662abb0f93cSkardel _am_stamp_count=`expr $_am_stamp_count + 1` ;; 663abb0f93cSkardel esac 664abb0f93cSkardeldone 665abb0f93cSkardelecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 666abb0f93cSkardel 667abb0f93cSkardel# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 668abb0f93cSkardel# 669abb0f93cSkardel# This file is free software; the Free Software Foundation 670abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 671abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 672abb0f93cSkardel 673abb0f93cSkardel# AM_PROG_INSTALL_SH 674abb0f93cSkardel# ------------------ 675abb0f93cSkardel# Define $install_sh. 676abb0f93cSkardelAC_DEFUN([AM_PROG_INSTALL_SH], 677abb0f93cSkardel[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 678abb0f93cSkardelif test x"${install_sh}" != xset; then 679abb0f93cSkardel case $am_aux_dir in 680abb0f93cSkardel *\ * | *\ *) 681abb0f93cSkardel install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 682abb0f93cSkardel *) 683abb0f93cSkardel install_sh="\${SHELL} $am_aux_dir/install-sh" 684abb0f93cSkardel esac 685abb0f93cSkardelfi 686abb0f93cSkardelAC_SUBST(install_sh)]) 687abb0f93cSkardel 688abb0f93cSkardel# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 689abb0f93cSkardel# 690abb0f93cSkardel# This file is free software; the Free Software Foundation 691abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 692abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 693abb0f93cSkardel 694abb0f93cSkardel# serial 2 695abb0f93cSkardel 696abb0f93cSkardel# Check whether the underlying file-system supports filenames 697abb0f93cSkardel# with a leading dot. For instance MS-DOS doesn't. 698abb0f93cSkardelAC_DEFUN([AM_SET_LEADING_DOT], 699abb0f93cSkardel[rm -rf .tst 2>/dev/null 700abb0f93cSkardelmkdir .tst 2>/dev/null 701abb0f93cSkardelif test -d .tst; then 702abb0f93cSkardel am__leading_dot=. 703abb0f93cSkardelelse 704abb0f93cSkardel am__leading_dot=_ 705abb0f93cSkardelfi 706abb0f93cSkardelrmdir .tst 2>/dev/null 707abb0f93cSkardelAC_SUBST([am__leading_dot])]) 708abb0f93cSkardel 709abb0f93cSkardel# Check to see how 'make' treats includes. -*- Autoconf -*- 710abb0f93cSkardel 711abb0f93cSkardel# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 712abb0f93cSkardel# 713abb0f93cSkardel# This file is free software; the Free Software Foundation 714abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 715abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 716abb0f93cSkardel 717abb0f93cSkardel# serial 4 718abb0f93cSkardel 719abb0f93cSkardel# AM_MAKE_INCLUDE() 720abb0f93cSkardel# ----------------- 721abb0f93cSkardel# Check to see how make treats includes. 722abb0f93cSkardelAC_DEFUN([AM_MAKE_INCLUDE], 723abb0f93cSkardel[am_make=${MAKE-make} 724abb0f93cSkardelcat > confinc << 'END' 725abb0f93cSkardelam__doit: 726abb0f93cSkardel @echo this is the am__doit target 727abb0f93cSkardel.PHONY: am__doit 728abb0f93cSkardelEND 729abb0f93cSkardel# If we don't find an include directive, just comment out the code. 730abb0f93cSkardelAC_MSG_CHECKING([for style of include used by $am_make]) 731abb0f93cSkardelam__include="#" 732abb0f93cSkardelam__quote= 733abb0f93cSkardel_am_result=none 734abb0f93cSkardel# First try GNU make style include. 735abb0f93cSkardelecho "include confinc" > confmf 736abb0f93cSkardel# Ignore all kinds of additional output from `make'. 737abb0f93cSkardelcase `$am_make -s -f confmf 2> /dev/null` in #( 738abb0f93cSkardel*the\ am__doit\ target*) 739abb0f93cSkardel am__include=include 740abb0f93cSkardel am__quote= 741abb0f93cSkardel _am_result=GNU 742abb0f93cSkardel ;; 743abb0f93cSkardelesac 744abb0f93cSkardel# Now try BSD make style include. 745abb0f93cSkardelif test "$am__include" = "#"; then 746abb0f93cSkardel echo '.include "confinc"' > confmf 747abb0f93cSkardel case `$am_make -s -f confmf 2> /dev/null` in #( 748abb0f93cSkardel *the\ am__doit\ target*) 749abb0f93cSkardel am__include=.include 750abb0f93cSkardel am__quote="\"" 751abb0f93cSkardel _am_result=BSD 752abb0f93cSkardel ;; 753abb0f93cSkardel esac 754abb0f93cSkardelfi 755abb0f93cSkardelAC_SUBST([am__include]) 756abb0f93cSkardelAC_SUBST([am__quote]) 757abb0f93cSkardelAC_MSG_RESULT([$_am_result]) 758abb0f93cSkardelrm -f confinc confmf 759abb0f93cSkardel]) 760abb0f93cSkardel 761abb0f93cSkardel# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 762abb0f93cSkardel# Free Software Foundation, Inc. 763abb0f93cSkardel# 764abb0f93cSkardel# This file is free software; the Free Software Foundation 765abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 766abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 767abb0f93cSkardel 768abb0f93cSkardel# serial 6 769abb0f93cSkardel 770abb0f93cSkardel# AM_PROG_CC_C_O 771abb0f93cSkardel# -------------- 772abb0f93cSkardel# Like AC_PROG_CC_C_O, but changed for automake. 773abb0f93cSkardelAC_DEFUN([AM_PROG_CC_C_O], 774abb0f93cSkardel[AC_REQUIRE([AC_PROG_CC_C_O])dnl 775abb0f93cSkardelAC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 776abb0f93cSkardelAC_REQUIRE_AUX_FILE([compile])dnl 777abb0f93cSkardel# FIXME: we rely on the cache variable name because 778abb0f93cSkardel# there is no other way. 779abb0f93cSkardelset dummy $CC 780abb0f93cSkardelam_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` 781abb0f93cSkardeleval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 782abb0f93cSkardelif test "$am_t" != yes; then 783abb0f93cSkardel # Losing compiler, so override with the script. 784abb0f93cSkardel # FIXME: It is wrong to rewrite CC. 785abb0f93cSkardel # But if we don't then we get into trouble of one sort or another. 786abb0f93cSkardel # A longer-term fix would be to have automake use am__CC in this case, 787abb0f93cSkardel # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 788abb0f93cSkardel CC="$am_aux_dir/compile $CC" 789abb0f93cSkardelfi 790abb0f93cSkardeldnl Make sure AC_PROG_CC is never called again, or it will override our 791abb0f93cSkardeldnl setting of CC. 792abb0f93cSkardelm4_define([AC_PROG_CC], 793abb0f93cSkardel [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 794abb0f93cSkardel]) 795abb0f93cSkardel 796abb0f93cSkardel# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 797abb0f93cSkardel 798abb0f93cSkardel# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 799abb0f93cSkardel# Free Software Foundation, Inc. 800abb0f93cSkardel# 801abb0f93cSkardel# This file is free software; the Free Software Foundation 802abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 803abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 804abb0f93cSkardel 805abb0f93cSkardel# serial 6 806abb0f93cSkardel 807abb0f93cSkardel# AM_MISSING_PROG(NAME, PROGRAM) 808abb0f93cSkardel# ------------------------------ 809abb0f93cSkardelAC_DEFUN([AM_MISSING_PROG], 810abb0f93cSkardel[AC_REQUIRE([AM_MISSING_HAS_RUN]) 811abb0f93cSkardel$1=${$1-"${am_missing_run}$2"} 812abb0f93cSkardelAC_SUBST($1)]) 813abb0f93cSkardel 814abb0f93cSkardel 815abb0f93cSkardel# AM_MISSING_HAS_RUN 816abb0f93cSkardel# ------------------ 817abb0f93cSkardel# Define MISSING if not defined so far and test if it supports --run. 818abb0f93cSkardel# If it does, set am_missing_run to use it, otherwise, to nothing. 819abb0f93cSkardelAC_DEFUN([AM_MISSING_HAS_RUN], 820abb0f93cSkardel[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 821abb0f93cSkardelAC_REQUIRE_AUX_FILE([missing])dnl 822abb0f93cSkardelif test x"${MISSING+set}" != xset; then 823abb0f93cSkardel case $am_aux_dir in 824abb0f93cSkardel *\ * | *\ *) 825abb0f93cSkardel MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 826abb0f93cSkardel *) 827abb0f93cSkardel MISSING="\${SHELL} $am_aux_dir/missing" ;; 828abb0f93cSkardel esac 829abb0f93cSkardelfi 830abb0f93cSkardel# Use eval to expand $SHELL 831abb0f93cSkardelif eval "$MISSING --run true"; then 832abb0f93cSkardel am_missing_run="$MISSING --run " 833abb0f93cSkardelelse 834abb0f93cSkardel am_missing_run= 835abb0f93cSkardel AC_MSG_WARN([`missing' script is too old or missing]) 836abb0f93cSkardelfi 837abb0f93cSkardel]) 838abb0f93cSkardel 839abb0f93cSkardel# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 840abb0f93cSkardel# 841abb0f93cSkardel# This file is free software; the Free Software Foundation 842abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 843abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 844abb0f93cSkardel 845abb0f93cSkardel# AM_PROG_MKDIR_P 846abb0f93cSkardel# --------------- 847abb0f93cSkardel# Check for `mkdir -p'. 848abb0f93cSkardelAC_DEFUN([AM_PROG_MKDIR_P], 849abb0f93cSkardel[AC_PREREQ([2.60])dnl 850abb0f93cSkardelAC_REQUIRE([AC_PROG_MKDIR_P])dnl 851abb0f93cSkardeldnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 852abb0f93cSkardeldnl while keeping a definition of mkdir_p for backward compatibility. 853abb0f93cSkardeldnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 854abb0f93cSkardeldnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 855abb0f93cSkardeldnl Makefile.ins that do not define MKDIR_P, so we do our own 856abb0f93cSkardeldnl adjustment using top_builddir (which is defined more often than 857abb0f93cSkardeldnl MKDIR_P). 858abb0f93cSkardelAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 859abb0f93cSkardelcase $mkdir_p in 860abb0f93cSkardel [[\\/$]]* | ?:[[\\/]]*) ;; 861abb0f93cSkardel */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 862abb0f93cSkardelesac 863abb0f93cSkardel]) 864abb0f93cSkardel 865abb0f93cSkardel# Helper functions for option handling. -*- Autoconf -*- 866abb0f93cSkardel 867abb0f93cSkardel# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. 868abb0f93cSkardel# 869abb0f93cSkardel# This file is free software; the Free Software Foundation 870abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 871abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 872abb0f93cSkardel 873abb0f93cSkardel# serial 4 874abb0f93cSkardel 875abb0f93cSkardel# _AM_MANGLE_OPTION(NAME) 876abb0f93cSkardel# ----------------------- 877abb0f93cSkardelAC_DEFUN([_AM_MANGLE_OPTION], 878abb0f93cSkardel[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 879abb0f93cSkardel 880abb0f93cSkardel# _AM_SET_OPTION(NAME) 881abb0f93cSkardel# ------------------------------ 882abb0f93cSkardel# Set option NAME. Presently that only means defining a flag for this option. 883abb0f93cSkardelAC_DEFUN([_AM_SET_OPTION], 884abb0f93cSkardel[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 885abb0f93cSkardel 886abb0f93cSkardel# _AM_SET_OPTIONS(OPTIONS) 887abb0f93cSkardel# ---------------------------------- 888abb0f93cSkardel# OPTIONS is a space-separated list of Automake options. 889abb0f93cSkardelAC_DEFUN([_AM_SET_OPTIONS], 890abb0f93cSkardel[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 891abb0f93cSkardel 892abb0f93cSkardel# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 893abb0f93cSkardel# ------------------------------------------- 894abb0f93cSkardel# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 895abb0f93cSkardelAC_DEFUN([_AM_IF_OPTION], 896abb0f93cSkardel[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 897abb0f93cSkardel 898abb0f93cSkardel# Check to make sure that the build environment is sane. -*- Autoconf -*- 899abb0f93cSkardel 900abb0f93cSkardel# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 901abb0f93cSkardel# Free Software Foundation, Inc. 902abb0f93cSkardel# 903abb0f93cSkardel# This file is free software; the Free Software Foundation 904abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 905abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 906abb0f93cSkardel 907abb0f93cSkardel# serial 5 908abb0f93cSkardel 909abb0f93cSkardel# AM_SANITY_CHECK 910abb0f93cSkardel# --------------- 911abb0f93cSkardelAC_DEFUN([AM_SANITY_CHECK], 912abb0f93cSkardel[AC_MSG_CHECKING([whether build environment is sane]) 913abb0f93cSkardel# Just in case 914abb0f93cSkardelsleep 1 915abb0f93cSkardelecho timestamp > conftest.file 916abb0f93cSkardel# Reject unsafe characters in $srcdir or the absolute working directory 917abb0f93cSkardel# name. Accept space and tab only in the latter. 918abb0f93cSkardelam_lf=' 919abb0f93cSkardel' 920abb0f93cSkardelcase `pwd` in 921abb0f93cSkardel *[[\\\"\#\$\&\'\`$am_lf]]*) 922abb0f93cSkardel AC_MSG_ERROR([unsafe absolute working directory name]);; 923abb0f93cSkardelesac 924abb0f93cSkardelcase $srcdir in 925abb0f93cSkardel *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 926abb0f93cSkardel AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 927abb0f93cSkardelesac 928abb0f93cSkardel 929abb0f93cSkardel# Do `set' in a subshell so we don't clobber the current shell's 930abb0f93cSkardel# arguments. Must try -L first in case configure is actually a 931abb0f93cSkardel# symlink; some systems play weird games with the mod time of symlinks 932abb0f93cSkardel# (eg FreeBSD returns the mod time of the symlink's containing 933abb0f93cSkardel# directory). 934abb0f93cSkardelif ( 935abb0f93cSkardel set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 936abb0f93cSkardel if test "$[*]" = "X"; then 937abb0f93cSkardel # -L didn't work. 938abb0f93cSkardel set X `ls -t "$srcdir/configure" conftest.file` 939abb0f93cSkardel fi 940abb0f93cSkardel rm -f conftest.file 941abb0f93cSkardel if test "$[*]" != "X $srcdir/configure conftest.file" \ 942abb0f93cSkardel && test "$[*]" != "X conftest.file $srcdir/configure"; then 943abb0f93cSkardel 944abb0f93cSkardel # If neither matched, then we have a broken ls. This can happen 945abb0f93cSkardel # if, for instance, CONFIG_SHELL is bash and it inherits a 946abb0f93cSkardel # broken ls alias from the environment. This has actually 947abb0f93cSkardel # happened. Such a system could not be considered "sane". 948abb0f93cSkardel AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 949abb0f93cSkardelalias in your environment]) 950abb0f93cSkardel fi 951abb0f93cSkardel 952abb0f93cSkardel test "$[2]" = conftest.file 953abb0f93cSkardel ) 954abb0f93cSkardelthen 955abb0f93cSkardel # Ok. 956abb0f93cSkardel : 957abb0f93cSkardelelse 958abb0f93cSkardel AC_MSG_ERROR([newly created file is older than distributed files! 959abb0f93cSkardelCheck your system clock]) 960abb0f93cSkardelfi 961abb0f93cSkardelAC_MSG_RESULT(yes)]) 962abb0f93cSkardel 963*2b3787f6Schristos# Copyright (C) 2009 Free Software Foundation, Inc. 964*2b3787f6Schristos# 965*2b3787f6Schristos# This file is free software; the Free Software Foundation 966*2b3787f6Schristos# gives unlimited permission to copy and/or distribute it, 967*2b3787f6Schristos# with or without modifications, as long as this notice is preserved. 968*2b3787f6Schristos 969*2b3787f6Schristos# serial 1 970*2b3787f6Schristos 971*2b3787f6Schristos# AM_SILENT_RULES([DEFAULT]) 972*2b3787f6Schristos# -------------------------- 973*2b3787f6Schristos# Enable less verbose build rules; with the default set to DEFAULT 974*2b3787f6Schristos# (`yes' being less verbose, `no' or empty being verbose). 975*2b3787f6SchristosAC_DEFUN([AM_SILENT_RULES], 976*2b3787f6Schristos[AC_ARG_ENABLE([silent-rules], 977*2b3787f6Schristos[ --enable-silent-rules less verbose build output (undo: `make V=1') 978*2b3787f6Schristos --disable-silent-rules verbose build output (undo: `make V=0')]) 979*2b3787f6Schristoscase $enable_silent_rules in 980*2b3787f6Schristosyes) AM_DEFAULT_VERBOSITY=0;; 981*2b3787f6Schristosno) AM_DEFAULT_VERBOSITY=1;; 982*2b3787f6Schristos*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 983*2b3787f6Schristosesac 984*2b3787f6SchristosAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 985*2b3787f6SchristosAM_BACKSLASH='\' 986*2b3787f6SchristosAC_SUBST([AM_BACKSLASH])dnl 987*2b3787f6Schristos_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 988*2b3787f6Schristos]) 989*2b3787f6Schristos 990abb0f93cSkardel# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 991abb0f93cSkardel# 992abb0f93cSkardel# This file is free software; the Free Software Foundation 993abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 994abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 995abb0f93cSkardel 996abb0f93cSkardel# AM_PROG_INSTALL_STRIP 997abb0f93cSkardel# --------------------- 998abb0f93cSkardel# One issue with vendor `install' (even GNU) is that you can't 999abb0f93cSkardel# specify the program used to strip binaries. This is especially 1000abb0f93cSkardel# annoying in cross-compiling environments, where the build's strip 1001abb0f93cSkardel# is unlikely to handle the host's binaries. 1002abb0f93cSkardel# Fortunately install-sh will honor a STRIPPROG variable, so we 1003abb0f93cSkardel# always use install-sh in `make install-strip', and initialize 1004abb0f93cSkardel# STRIPPROG with the value of the STRIP variable (set by the user). 1005abb0f93cSkardelAC_DEFUN([AM_PROG_INSTALL_STRIP], 1006abb0f93cSkardel[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1007abb0f93cSkardel# Installed binaries are usually stripped using `strip' when the user 1008abb0f93cSkardel# run `make install-strip'. However `strip' might not be the right 1009abb0f93cSkardel# tool to use in cross-compilation environments, therefore Automake 1010abb0f93cSkardel# will honor the `STRIP' environment variable to overrule this program. 1011abb0f93cSkardeldnl Don't test for $cross_compiling = yes, because it might be `maybe'. 1012abb0f93cSkardelif test "$cross_compiling" != no; then 1013abb0f93cSkardel AC_CHECK_TOOL([STRIP], [strip], :) 1014abb0f93cSkardelfi 1015abb0f93cSkardelINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1016abb0f93cSkardelAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1017abb0f93cSkardel 1018abb0f93cSkardel# Copyright (C) 2006, 2008 Free Software Foundation, Inc. 1019abb0f93cSkardel# 1020abb0f93cSkardel# This file is free software; the Free Software Foundation 1021abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 1022abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 1023abb0f93cSkardel 1024abb0f93cSkardel# serial 2 1025abb0f93cSkardel 1026abb0f93cSkardel# _AM_SUBST_NOTMAKE(VARIABLE) 1027abb0f93cSkardel# --------------------------- 1028abb0f93cSkardel# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1029abb0f93cSkardel# This macro is traced by Automake. 1030abb0f93cSkardelAC_DEFUN([_AM_SUBST_NOTMAKE]) 1031abb0f93cSkardel 1032abb0f93cSkardel# AM_SUBST_NOTMAKE(VARIABLE) 1033abb0f93cSkardel# --------------------------- 1034abb0f93cSkardel# Public sister of _AM_SUBST_NOTMAKE. 1035abb0f93cSkardelAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1036abb0f93cSkardel 1037abb0f93cSkardel# Check how to create a tarball. -*- Autoconf -*- 1038abb0f93cSkardel 1039abb0f93cSkardel# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 1040abb0f93cSkardel# 1041abb0f93cSkardel# This file is free software; the Free Software Foundation 1042abb0f93cSkardel# gives unlimited permission to copy and/or distribute it, 1043abb0f93cSkardel# with or without modifications, as long as this notice is preserved. 1044abb0f93cSkardel 1045abb0f93cSkardel# serial 2 1046abb0f93cSkardel 1047abb0f93cSkardel# _AM_PROG_TAR(FORMAT) 1048abb0f93cSkardel# -------------------- 1049abb0f93cSkardel# Check how to create a tarball in format FORMAT. 1050abb0f93cSkardel# FORMAT should be one of `v7', `ustar', or `pax'. 1051abb0f93cSkardel# 1052abb0f93cSkardel# Substitute a variable $(am__tar) that is a command 1053abb0f93cSkardel# writing to stdout a FORMAT-tarball containing the directory 1054abb0f93cSkardel# $tardir. 1055abb0f93cSkardel# tardir=directory && $(am__tar) > result.tar 1056abb0f93cSkardel# 1057abb0f93cSkardel# Substitute a variable $(am__untar) that extract such 1058abb0f93cSkardel# a tarball read from stdin. 1059abb0f93cSkardel# $(am__untar) < result.tar 1060abb0f93cSkardelAC_DEFUN([_AM_PROG_TAR], 1061abb0f93cSkardel[# Always define AMTAR for backward compatibility. 1062abb0f93cSkardelAM_MISSING_PROG([AMTAR], [tar]) 1063abb0f93cSkardelm4_if([$1], [v7], 1064abb0f93cSkardel [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 1065abb0f93cSkardel [m4_case([$1], [ustar],, [pax],, 1066abb0f93cSkardel [m4_fatal([Unknown tar format])]) 1067abb0f93cSkardelAC_MSG_CHECKING([how to create a $1 tar archive]) 1068abb0f93cSkardel# Loop over all known methods to create a tar archive until one works. 1069abb0f93cSkardel_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1070abb0f93cSkardel_am_tools=${am_cv_prog_tar_$1-$_am_tools} 1071abb0f93cSkardel# Do not fold the above two line into one, because Tru64 sh and 1072abb0f93cSkardel# Solaris sh will not grok spaces in the rhs of `-'. 1073abb0f93cSkardelfor _am_tool in $_am_tools 1074abb0f93cSkardeldo 1075abb0f93cSkardel case $_am_tool in 1076abb0f93cSkardel gnutar) 1077abb0f93cSkardel for _am_tar in tar gnutar gtar; 1078abb0f93cSkardel do 1079abb0f93cSkardel AM_RUN_LOG([$_am_tar --version]) && break 1080abb0f93cSkardel done 1081abb0f93cSkardel am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1082abb0f93cSkardel am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1083abb0f93cSkardel am__untar="$_am_tar -xf -" 1084abb0f93cSkardel ;; 1085abb0f93cSkardel plaintar) 1086abb0f93cSkardel # Must skip GNU tar: if it does not support --format= it doesn't create 1087abb0f93cSkardel # ustar tarball either. 1088abb0f93cSkardel (tar --version) >/dev/null 2>&1 && continue 1089abb0f93cSkardel am__tar='tar chf - "$$tardir"' 1090abb0f93cSkardel am__tar_='tar chf - "$tardir"' 1091abb0f93cSkardel am__untar='tar xf -' 1092abb0f93cSkardel ;; 1093abb0f93cSkardel pax) 1094abb0f93cSkardel am__tar='pax -L -x $1 -w "$$tardir"' 1095abb0f93cSkardel am__tar_='pax -L -x $1 -w "$tardir"' 1096abb0f93cSkardel am__untar='pax -r' 1097abb0f93cSkardel ;; 1098abb0f93cSkardel cpio) 1099abb0f93cSkardel am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1100abb0f93cSkardel am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1101abb0f93cSkardel am__untar='cpio -i -H $1 -d' 1102abb0f93cSkardel ;; 1103abb0f93cSkardel none) 1104abb0f93cSkardel am__tar=false 1105abb0f93cSkardel am__tar_=false 1106abb0f93cSkardel am__untar=false 1107abb0f93cSkardel ;; 1108abb0f93cSkardel esac 1109abb0f93cSkardel 1110abb0f93cSkardel # If the value was cached, stop now. We just wanted to have am__tar 1111abb0f93cSkardel # and am__untar set. 1112abb0f93cSkardel test -n "${am_cv_prog_tar_$1}" && break 1113abb0f93cSkardel 1114abb0f93cSkardel # tar/untar a dummy directory, and stop if the command works 1115abb0f93cSkardel rm -rf conftest.dir 1116abb0f93cSkardel mkdir conftest.dir 1117abb0f93cSkardel echo GrepMe > conftest.dir/file 1118abb0f93cSkardel AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1119abb0f93cSkardel rm -rf conftest.dir 1120abb0f93cSkardel if test -s conftest.tar; then 1121abb0f93cSkardel AM_RUN_LOG([$am__untar <conftest.tar]) 1122abb0f93cSkardel grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1123abb0f93cSkardel fi 1124abb0f93cSkardeldone 1125abb0f93cSkardelrm -rf conftest.dir 1126abb0f93cSkardel 1127abb0f93cSkardelAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1128abb0f93cSkardelAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1129abb0f93cSkardelAC_SUBST([am__tar]) 1130abb0f93cSkardelAC_SUBST([am__untar]) 1131abb0f93cSkardel]) # _AM_PROG_TAR 1132abb0f93cSkardel 11334305584aSkardelm4_include([sntp/libopts/m4/libopts.m4]) 1134*2b3787f6Schristosm4_include([sntp/libevent/m4/openldap-thread-check.m4]) 1135*2b3787f6Schristosm4_include([sntp/libevent/m4/openldap.m4]) 1136*2b3787f6Schristosm4_include([sntp/m4/define_dir.m4]) 1137*2b3787f6Schristosm4_include([sntp/m4/hms_search_lib.m4]) 1138*2b3787f6Schristosm4_include([sntp/m4/libtool.m4]) 1139*2b3787f6Schristosm4_include([sntp/m4/ltoptions.m4]) 1140*2b3787f6Schristosm4_include([sntp/m4/ltsugar.m4]) 1141*2b3787f6Schristosm4_include([sntp/m4/ltversion.m4]) 1142*2b3787f6Schristosm4_include([sntp/m4/lt~obsolete.m4]) 1143*2b3787f6Schristosm4_include([sntp/m4/ntp_cacheversion.m4]) 1144*2b3787f6Schristosm4_include([sntp/m4/ntp_compiler.m4]) 1145*2b3787f6Schristosm4_include([sntp/m4/ntp_crosscompile.m4]) 1146*2b3787f6Schristosm4_include([sntp/m4/ntp_debug.m4]) 1147*2b3787f6Schristosm4_include([sntp/m4/ntp_dir_sep.m4]) 1148*2b3787f6Schristosm4_include([sntp/m4/ntp_facilitynames.m4]) 1149*2b3787f6Schristosm4_include([sntp/m4/ntp_googletest.m4]) 1150*2b3787f6Schristosm4_include([sntp/m4/ntp_ipv6.m4]) 1151*2b3787f6Schristosm4_include([sntp/m4/ntp_lib_m.m4]) 1152*2b3787f6Schristosm4_include([sntp/m4/ntp_libevent.m4]) 1153*2b3787f6Schristosm4_include([sntp/m4/ntp_libntp.m4]) 1154*2b3787f6Schristosm4_include([sntp/m4/ntp_lineeditlibs.m4]) 1155*2b3787f6Schristosm4_include([sntp/m4/ntp_locinfo.m4]) 1156*2b3787f6Schristosm4_include([sntp/m4/ntp_openssl.m4]) 1157*2b3787f6Schristosm4_include([sntp/m4/ntp_pkg_config.m4]) 1158*2b3787f6Schristosm4_include([sntp/m4/ntp_prog_cc.m4]) 1159*2b3787f6Schristosm4_include([sntp/m4/ntp_rlimit.m4]) 1160*2b3787f6Schristosm4_include([sntp/m4/ntp_sntp.m4]) 1161*2b3787f6Schristosm4_include([sntp/m4/ntp_ver_suffix.m4]) 1162*2b3787f6Schristosm4_include([sntp/m4/ntp_vpathhack.m4]) 1163*2b3787f6Schristosm4_include([sntp/m4/os_cflags.m4]) 1164*2b3787f6Schristosm4_include([sntp/m4/snprintf.m4]) 1165