1284778Sdelphij# generated automatically by aclocal 1.15 -*- Autoconf -*- 268349Sobrien 3284778Sdelphij# Copyright (C) 1996-2014 Free Software Foundation, Inc. 4268515Sdelphij 5133359Sobrien# This file is free software; the Free Software Foundation 6133359Sobrien# gives unlimited permission to copy and/or distribute it, 7133359Sobrien# with or without modifications, as long as this notice is preserved. 868349Sobrien 9133359Sobrien# This program is distributed in the hope that it will be useful, 10133359Sobrien# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11133359Sobrien# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12133359Sobrien# PARTICULAR PURPOSE. 1368349Sobrien 14268515Sdelphijm4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15234449Sobrienm4_ifndef([AC_AUTOCONF_VERSION], 16234449Sobrien [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17268515Sdelphijm4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18268515Sdelphij[m4_warning([this file was generated for autoconf 2.69. 19234449SobrienYou have another version of autoconf. It may work, but is not guaranteed to. 20234449SobrienIf you have problems, you may need to regenerate the build system entirely. 21268515SdelphijTo do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22175296Sobrien 23268515Sdelphij# visibility.m4 serial 5 (gettext-0.18.2) 24328875Seadlerdnl Copyright (C) 2005, 2008, 2010-2016 Free Software Foundation, Inc. 25268515Sdelphijdnl This file is free software; the Free Software Foundation 26268515Sdelphijdnl gives unlimited permission to copy and/or distribute it, 27268515Sdelphijdnl with or without modifications, as long as this notice is preserved. 28268515Sdelphij 29268515Sdelphijdnl From Bruno Haible. 30268515Sdelphij 31268515Sdelphijdnl Tests whether the compiler supports the command-line option 32268515Sdelphijdnl -fvisibility=hidden and the function and variable attributes 33268515Sdelphijdnl __attribute__((__visibility__("hidden"))) and 34268515Sdelphijdnl __attribute__((__visibility__("default"))). 35268515Sdelphijdnl Does *not* test for __visibility__("protected") - which has tricky 36268515Sdelphijdnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on 37268515Sdelphijdnl Mac OS X. 38268515Sdelphijdnl Does *not* test for __visibility__("internal") - which has processor 39268515Sdelphijdnl dependent semantics. 40268515Sdelphijdnl Does *not* test for #pragma GCC visibility push(hidden) - which is 41268515Sdelphijdnl "really only recommended for legacy code". 42268515Sdelphijdnl Set the variable CFLAG_VISIBILITY. 43268515Sdelphijdnl Defines and sets the variable HAVE_VISIBILITY. 44268515Sdelphij 45268515SdelphijAC_DEFUN([gl_VISIBILITY], 46268515Sdelphij[ 47268515Sdelphij AC_REQUIRE([AC_PROG_CC]) 48268515Sdelphij CFLAG_VISIBILITY= 49268515Sdelphij HAVE_VISIBILITY=0 50268515Sdelphij if test -n "$GCC"; then 51268515Sdelphij dnl First, check whether -Werror can be added to the command line, or 52268515Sdelphij dnl whether it leads to an error because of some other option that the 53268515Sdelphij dnl user has put into $CC $CFLAGS $CPPFLAGS. 54268515Sdelphij AC_MSG_CHECKING([whether the -Werror option is usable]) 55268515Sdelphij AC_CACHE_VAL([gl_cv_cc_vis_werror], [ 56268515Sdelphij gl_save_CFLAGS="$CFLAGS" 57268515Sdelphij CFLAGS="$CFLAGS -Werror" 58268515Sdelphij AC_COMPILE_IFELSE( 59268515Sdelphij [AC_LANG_PROGRAM([[]], [[]])], 60268515Sdelphij [gl_cv_cc_vis_werror=yes], 61268515Sdelphij [gl_cv_cc_vis_werror=no]) 62268515Sdelphij CFLAGS="$gl_save_CFLAGS"]) 63268515Sdelphij AC_MSG_RESULT([$gl_cv_cc_vis_werror]) 64268515Sdelphij dnl Now check whether visibility declarations are supported. 65268515Sdelphij AC_MSG_CHECKING([for simple visibility declarations]) 66268515Sdelphij AC_CACHE_VAL([gl_cv_cc_visibility], [ 67268515Sdelphij gl_save_CFLAGS="$CFLAGS" 68268515Sdelphij CFLAGS="$CFLAGS -fvisibility=hidden" 69268515Sdelphij dnl We use the option -Werror and a function dummyfunc, because on some 70268515Sdelphij dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning 71268515Sdelphij dnl "visibility attribute not supported in this configuration; ignored" 72268515Sdelphij dnl at the first function definition in every compilation unit, and we 73268515Sdelphij dnl don't want to use the option in this case. 74268515Sdelphij if test $gl_cv_cc_vis_werror = yes; then 75268515Sdelphij CFLAGS="$CFLAGS -Werror" 76268515Sdelphij fi 77268515Sdelphij AC_COMPILE_IFELSE( 78268515Sdelphij [AC_LANG_PROGRAM( 79268515Sdelphij [[extern __attribute__((__visibility__("hidden"))) int hiddenvar; 80268515Sdelphij extern __attribute__((__visibility__("default"))) int exportedvar; 81268515Sdelphij extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 82268515Sdelphij extern __attribute__((__visibility__("default"))) int exportedfunc (void); 83268515Sdelphij void dummyfunc (void) {} 84268515Sdelphij ]], 85268515Sdelphij [[]])], 86268515Sdelphij [gl_cv_cc_visibility=yes], 87268515Sdelphij [gl_cv_cc_visibility=no]) 88268515Sdelphij CFLAGS="$gl_save_CFLAGS"]) 89268515Sdelphij AC_MSG_RESULT([$gl_cv_cc_visibility]) 90268515Sdelphij if test $gl_cv_cc_visibility = yes; then 91268515Sdelphij CFLAG_VISIBILITY="-fvisibility=hidden" 92268515Sdelphij HAVE_VISIBILITY=1 93268515Sdelphij fi 94268515Sdelphij fi 95268515Sdelphij AC_SUBST([CFLAG_VISIBILITY]) 96268515Sdelphij AC_SUBST([HAVE_VISIBILITY]) 97268515Sdelphij AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], 98268515Sdelphij [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) 99268515Sdelphij]) 100268515Sdelphij 101284778Sdelphij# Copyright (C) 2002-2014 Free Software Foundation, Inc. 102139368Sobrien# 103159764Sobrien# This file is free software; the Free Software Foundation 104159764Sobrien# gives unlimited permission to copy and/or distribute it, 105159764Sobrien# with or without modifications, as long as this notice is preserved. 106159764Sobrien 107159764Sobrien# AM_AUTOMAKE_VERSION(VERSION) 108159764Sobrien# ---------------------------- 109159764Sobrien# Automake X.Y traces this macro to ensure aclocal.m4 has been 110159764Sobrien# generated from the m4 files accompanying Automake X.Y. 111175296Sobrien# (This private macro should not be called outside this file.) 112175296SobrienAC_DEFUN([AM_AUTOMAKE_VERSION], 113284778Sdelphij[am__api_version='1.15' 114175296Sobriendnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 115175296Sobriendnl require some minimum version. Point them to the right macro. 116284778Sdelphijm4_if([$1], [1.15], [], 117175296Sobrien [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 118175296Sobrien]) 119159764Sobrien 120175296Sobrien# _AM_AUTOCONF_VERSION(VERSION) 121175296Sobrien# ----------------------------- 122175296Sobrien# aclocal traces this macro to find the Autoconf version. 123175296Sobrien# This is a private macro too. Using m4_define simplifies 124175296Sobrien# the logic in aclocal, which can simply ignore this definition. 125175296Sobrienm4_define([_AM_AUTOCONF_VERSION], []) 126175296Sobrien 127159764Sobrien# AM_SET_CURRENT_AUTOMAKE_VERSION 128159764Sobrien# ------------------------------- 129175296Sobrien# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 130234449Sobrien# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 131159764SobrienAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 132284778Sdelphij[AM_AUTOMAKE_VERSION([1.15])dnl 133234449Sobrienm4_ifndef([AC_AUTOCONF_VERSION], 134234449Sobrien [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 135234449Sobrien_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 136159764Sobrien 137159764Sobrien# AM_AUX_DIR_EXPAND -*- Autoconf -*- 138159764Sobrien 139284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 140139368Sobrien# 141159764Sobrien# This file is free software; the Free Software Foundation 142159764Sobrien# gives unlimited permission to copy and/or distribute it, 143159764Sobrien# with or without modifications, as long as this notice is preserved. 144159764Sobrien 145159764Sobrien# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 146268515Sdelphij# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 147268515Sdelphij# '$srcdir', '$srcdir/..', or '$srcdir/../..'. 148139368Sobrien# 149159764Sobrien# Of course, Automake must honor this variable whenever it calls a 150159764Sobrien# tool from the auxiliary directory. The problem is that $srcdir (and 151159764Sobrien# therefore $ac_aux_dir as well) can be either absolute or relative, 152159764Sobrien# depending on how configure is run. This is pretty annoying, since 153159764Sobrien# it makes $ac_aux_dir quite unusable in subdirectories: in the top 154159764Sobrien# source directory, any form will work fine, but in subdirectories a 155159764Sobrien# relative path needs to be adjusted first. 156139368Sobrien# 157159764Sobrien# $ac_aux_dir/missing 158159764Sobrien# fails when called from a subdirectory if $ac_aux_dir is relative 159159764Sobrien# $top_srcdir/$ac_aux_dir/missing 160159764Sobrien# fails if $ac_aux_dir is absolute, 161159764Sobrien# fails when called from a subdirectory in a VPATH build with 162159764Sobrien# a relative $ac_aux_dir 163139368Sobrien# 164159764Sobrien# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 165159764Sobrien# are both prefixed by $srcdir. In an in-source build this is usually 166268515Sdelphij# harmless because $srcdir is '.', but things will broke when you 167159764Sobrien# start a VPATH build or use an absolute $srcdir. 168139368Sobrien# 169159764Sobrien# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 170159764Sobrien# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 171159764Sobrien# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 172159764Sobrien# and then we would define $MISSING as 173159764Sobrien# MISSING="\${SHELL} $am_aux_dir/missing" 174159764Sobrien# This will work as long as MISSING is not called from configure, because 175159764Sobrien# unfortunately $(top_srcdir) has no meaning in configure. 176159764Sobrien# However there are other variables, like CC, which are often used in 177159764Sobrien# configure, and could therefore not use this "fixed" $ac_aux_dir. 178139368Sobrien# 179159764Sobrien# Another solution, used here, is to always expand $ac_aux_dir to an 180159764Sobrien# absolute PATH. The drawback is that using absolute paths prevent a 181159764Sobrien# configured tree to be moved without reconfiguration. 182159764Sobrien 183159764SobrienAC_DEFUN([AM_AUX_DIR_EXPAND], 184284778Sdelphij[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 185284778Sdelphij# Expand $ac_aux_dir to an absolute path. 186284778Sdelphijam_aux_dir=`cd "$ac_aux_dir" && pwd` 187159764Sobrien]) 188159764Sobrien 189159764Sobrien# AM_CONDITIONAL -*- Autoconf -*- 190159764Sobrien 191284778Sdelphij# Copyright (C) 1997-2014 Free Software Foundation, Inc. 192139368Sobrien# 193159764Sobrien# This file is free software; the Free Software Foundation 194159764Sobrien# gives unlimited permission to copy and/or distribute it, 195159764Sobrien# with or without modifications, as long as this notice is preserved. 196159764Sobrien 197159764Sobrien# AM_CONDITIONAL(NAME, SHELL-CONDITION) 198159764Sobrien# ------------------------------------- 199159764Sobrien# Define a conditional. 200159764SobrienAC_DEFUN([AM_CONDITIONAL], 201268515Sdelphij[AC_PREREQ([2.52])dnl 202268515Sdelphij m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 203268515Sdelphij [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 204175296SobrienAC_SUBST([$1_TRUE])dnl 205175296SobrienAC_SUBST([$1_FALSE])dnl 206175296Sobrien_AM_SUBST_NOTMAKE([$1_TRUE])dnl 207175296Sobrien_AM_SUBST_NOTMAKE([$1_FALSE])dnl 208234449Sobrienm4_define([_AM_COND_VALUE_$1], [$2])dnl 209159764Sobrienif $2; then 210159764Sobrien $1_TRUE= 211159764Sobrien $1_FALSE='#' 212159764Sobrienelse 213159764Sobrien $1_TRUE='#' 214159764Sobrien $1_FALSE= 215159764Sobrienfi 216159764SobrienAC_CONFIG_COMMANDS_PRE( 217159764Sobrien[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 218159764Sobrien AC_MSG_ERROR([[conditional "$1" was never defined. 219159764SobrienUsually this means the macro was only invoked conditionally.]]) 220159764Sobrienfi])]) 221159764Sobrien 222284778Sdelphij# Copyright (C) 1999-2014 Free Software Foundation, Inc. 223139368Sobrien# 224159764Sobrien# This file is free software; the Free Software Foundation 225159764Sobrien# gives unlimited permission to copy and/or distribute it, 226159764Sobrien# with or without modifications, as long as this notice is preserved. 227139368Sobrien 228139368Sobrien 229268515Sdelphij# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 230159764Sobrien# written in clear, in which case automake, when reading aclocal.m4, 231159764Sobrien# will think it sees a *use*, and therefore will trigger all it's 232159764Sobrien# C support machinery. Also note that it means that autoscan, seeing 233159764Sobrien# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 234139368Sobrien 235139368Sobrien 236159764Sobrien# _AM_DEPENDENCIES(NAME) 237159764Sobrien# ---------------------- 238159764Sobrien# See how the compiler implements dependency checking. 239268515Sdelphij# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 240159764Sobrien# We try a few techniques and use that to set a single cache variable. 241159764Sobrien# 242159764Sobrien# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 243159764Sobrien# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 244159764Sobrien# dependency, and given that the user is not expected to run this macro, 245159764Sobrien# just rely on AC_PROG_CC. 246159764SobrienAC_DEFUN([_AM_DEPENDENCIES], 247159764Sobrien[AC_REQUIRE([AM_SET_DEPDIR])dnl 248159764SobrienAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 249159764SobrienAC_REQUIRE([AM_MAKE_INCLUDE])dnl 250159764SobrienAC_REQUIRE([AM_DEP_TRACK])dnl 251139368Sobrien 252268515Sdelphijm4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 253268515Sdelphij [$1], [CXX], [depcc="$CXX" am_compiler_list=], 254268515Sdelphij [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 255268515Sdelphij [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 256268515Sdelphij [$1], [UPC], [depcc="$UPC" am_compiler_list=], 257268515Sdelphij [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 258268515Sdelphij [depcc="$$1" am_compiler_list=]) 259133359Sobrien 260159764SobrienAC_CACHE_CHECK([dependency style of $depcc], 261159764Sobrien [am_cv_$1_dependencies_compiler_type], 262159764Sobrien[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 263159764Sobrien # We make a subdir and do the tests there. Otherwise we can end up 264159764Sobrien # making bogus files that we don't know about and never remove. For 265159764Sobrien # instance it was reported that on HP-UX the gcc test will end up 266268515Sdelphij # making a dummy file named 'D' -- because '-MD' means "put the output 267268515Sdelphij # in D". 268268515Sdelphij rm -rf conftest.dir 269159764Sobrien mkdir conftest.dir 270159764Sobrien # Copy depcomp to subdir because otherwise we won't find it if we're 271159764Sobrien # using a relative directory. 272159764Sobrien cp "$am_depcomp" conftest.dir 273159764Sobrien cd conftest.dir 274159764Sobrien # We will build objects and dependencies in a subdirectory because 275159764Sobrien # it helps to detect inapplicable dependency modes. For instance 276159764Sobrien # both Tru64's cc and ICC support -MD to output dependencies as a 277159764Sobrien # side effect of compilation, but ICC will put the dependencies in 278159764Sobrien # the current directory while Tru64 will put them in the object 279159764Sobrien # directory. 280159764Sobrien mkdir sub 281133359Sobrien 282159764Sobrien am_cv_$1_dependencies_compiler_type=none 283159764Sobrien if test "$am_compiler_list" = ""; then 284159764Sobrien am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 285159764Sobrien fi 286234449Sobrien am__universal=false 287234449Sobrien m4_case([$1], [CC], 288234449Sobrien [case " $depcc " in #( 289234449Sobrien *\ -arch\ *\ -arch\ *) am__universal=true ;; 290234449Sobrien esac], 291234449Sobrien [CXX], 292234449Sobrien [case " $depcc " in #( 293234449Sobrien *\ -arch\ *\ -arch\ *) am__universal=true ;; 294234449Sobrien esac]) 295234449Sobrien 296159764Sobrien for depmode in $am_compiler_list; do 297159764Sobrien # Setup a source with many dependencies, because some compilers 298159764Sobrien # like to wrap large dependency lists on column 80 (with \), and 299159764Sobrien # we should not choose a depcomp mode which is confused by this. 300159764Sobrien # 301159764Sobrien # We need to recreate these files for each test, as the compiler may 302159764Sobrien # overwrite some of them when testing with obscure command lines. 303159764Sobrien # This happens at least with the AIX C compiler. 304159764Sobrien : > sub/conftest.c 305159764Sobrien for i in 1 2 3 4 5 6; do 306159764Sobrien echo '#include "conftst'$i'.h"' >> sub/conftest.c 307268515Sdelphij # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 308268515Sdelphij # Solaris 10 /bin/sh. 309268515Sdelphij echo '/* dummy */' > sub/conftst$i.h 310159764Sobrien done 311159764Sobrien echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 312159764Sobrien 313268515Sdelphij # We check with '-c' and '-o' for the sake of the "dashmstdout" 314234449Sobrien # mode. It turns out that the SunPro C++ compiler does not properly 315268515Sdelphij # handle '-M -o', and we need to detect this. Also, some Intel 316268515Sdelphij # versions had trouble with output in subdirs. 317234449Sobrien am__obj=sub/conftest.${OBJEXT-o} 318234449Sobrien am__minus_obj="-o $am__obj" 319159764Sobrien case $depmode in 320234449Sobrien gcc) 321234449Sobrien # This depmode causes a compiler race in universal mode. 322234449Sobrien test "$am__universal" = false || continue 323234449Sobrien ;; 324159764Sobrien nosideeffect) 325268515Sdelphij # After this tag, mechanisms are not by side-effect, so they'll 326268515Sdelphij # only be used when explicitly requested. 327159764Sobrien if test "x$enable_dependency_tracking" = xyes; then 328159764Sobrien continue 329159764Sobrien else 330159764Sobrien break 331159764Sobrien fi 332159764Sobrien ;; 333268515Sdelphij msvc7 | msvc7msys | msvisualcpp | msvcmsys) 334268515Sdelphij # This compiler won't grok '-c -o', but also, the minuso test has 335234449Sobrien # not run yet. These depmodes are late enough in the game, and 336234449Sobrien # so weak that their functioning should not be impacted. 337234449Sobrien am__obj=conftest.${OBJEXT-o} 338234449Sobrien am__minus_obj= 339234449Sobrien ;; 340159764Sobrien none) break ;; 341159764Sobrien esac 342159764Sobrien if depmode=$depmode \ 343234449Sobrien source=sub/conftest.c object=$am__obj \ 344159764Sobrien depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 345234449Sobrien $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 346159764Sobrien >/dev/null 2>conftest.err && 347175296Sobrien grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 348159764Sobrien grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 349234449Sobrien grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 350159764Sobrien ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 351159764Sobrien # icc doesn't choke on unknown options, it will just issue warnings 352159764Sobrien # or remarks (even with -Werror). So we grep stderr for any message 353159764Sobrien # that says an option was ignored or not supported. 354159764Sobrien # When given -MP, icc 7.0 and 7.1 complain thusly: 355159764Sobrien # icc: Command line warning: ignoring option '-M'; no argument required 356159764Sobrien # The diagnosis changed in icc 8.0: 357159764Sobrien # icc: Command line remark: option '-MP' not supported 358159764Sobrien if (grep 'ignoring option' conftest.err || 359159764Sobrien grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 360159764Sobrien am_cv_$1_dependencies_compiler_type=$depmode 361159764Sobrien break 362159764Sobrien fi 363133359Sobrien fi 364133359Sobrien done 365159764Sobrien 366159764Sobrien cd .. 367159764Sobrien rm -rf conftest.dir 368159764Sobrienelse 369159764Sobrien am_cv_$1_dependencies_compiler_type=none 370159764Sobrienfi 371133359Sobrien]) 372159764SobrienAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 373159764SobrienAM_CONDITIONAL([am__fastdep$1], [ 374159764Sobrien test "x$enable_dependency_tracking" != xno \ 375159764Sobrien && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 376159764Sobrien]) 377133359Sobrien 378133359Sobrien 379159764Sobrien# AM_SET_DEPDIR 380159764Sobrien# ------------- 381159764Sobrien# Choose a directory name for dependency files. 382268515Sdelphij# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 383159764SobrienAC_DEFUN([AM_SET_DEPDIR], 384159764Sobrien[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 385159764SobrienAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 386133359Sobrien]) 387133359Sobrien 388133359Sobrien 389159764Sobrien# AM_DEP_TRACK 390159764Sobrien# ------------ 391159764SobrienAC_DEFUN([AM_DEP_TRACK], 392268515Sdelphij[AC_ARG_ENABLE([dependency-tracking], [dnl 393268515SdelphijAS_HELP_STRING( 394268515Sdelphij [--enable-dependency-tracking], 395268515Sdelphij [do not reject slow dependency extractors]) 396268515SdelphijAS_HELP_STRING( 397268515Sdelphij [--disable-dependency-tracking], 398268515Sdelphij [speeds up one-time build])]) 399159764Sobrienif test "x$enable_dependency_tracking" != xno; then 400159764Sobrien am_depcomp="$ac_aux_dir/depcomp" 401159764Sobrien AMDEPBACKSLASH='\' 402268515Sdelphij am__nodep='_no' 403159764Sobrienfi 404159764SobrienAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 405175296SobrienAC_SUBST([AMDEPBACKSLASH])dnl 406175296Sobrien_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 407268515SdelphijAC_SUBST([am__nodep])dnl 408268515Sdelphij_AM_SUBST_NOTMAKE([am__nodep])dnl 409159764Sobrien]) 410133359Sobrien 411159764Sobrien# Generate code to set up dependency tracking. -*- Autoconf -*- 412159764Sobrien 413284778Sdelphij# Copyright (C) 1999-2014 Free Software Foundation, Inc. 414159764Sobrien# 415159764Sobrien# This file is free software; the Free Software Foundation 416159764Sobrien# gives unlimited permission to copy and/or distribute it, 417159764Sobrien# with or without modifications, as long as this notice is preserved. 418159764Sobrien 419159764Sobrien 420159764Sobrien# _AM_OUTPUT_DEPENDENCY_COMMANDS 421159764Sobrien# ------------------------------ 422159764SobrienAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 423234449Sobrien[{ 424268515Sdelphij # Older Autoconf quotes --file arguments for eval, but not when files 425234449Sobrien # are listed without --file. Let's play safe and only enable the eval 426234449Sobrien # if we detect the quoting. 427234449Sobrien case $CONFIG_FILES in 428234449Sobrien *\'*) eval set x "$CONFIG_FILES" ;; 429234449Sobrien *) set x $CONFIG_FILES ;; 430234449Sobrien esac 431234449Sobrien shift 432234449Sobrien for mf 433234449Sobrien do 434234449Sobrien # Strip MF so we end up with the name of the file. 435234449Sobrien mf=`echo "$mf" | sed -e 's/:.*$//'` 436234449Sobrien # Check whether this is an Automake generated Makefile or not. 437268515Sdelphij # We used to match only the files named 'Makefile.in', but 438234449Sobrien # some people rename them; so instead we look at the file content. 439234449Sobrien # Grep'ing the first line is not enough: some people post-process 440234449Sobrien # each Makefile.in and add a new line on top of each file to say so. 441234449Sobrien # Grep'ing the whole file is not good either: AIX grep has a line 442234449Sobrien # limit of 2048, but all sed's we know have understand at least 4000. 443234449Sobrien if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 444234449Sobrien dirpart=`AS_DIRNAME("$mf")` 445234449Sobrien else 446234449Sobrien continue 447234449Sobrien fi 448234449Sobrien # Extract the definition of DEPDIR, am__include, and am__quote 449268515Sdelphij # from the Makefile without running 'make'. 450234449Sobrien DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 451234449Sobrien test -z "$DEPDIR" && continue 452234449Sobrien am__include=`sed -n 's/^am__include = //p' < "$mf"` 453268515Sdelphij test -z "$am__include" && continue 454234449Sobrien am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 455234449Sobrien # Find all dependency output files, they are included files with 456234449Sobrien # $(DEPDIR) in their names. We invoke sed twice because it is the 457234449Sobrien # simplest approach to changing $(DEPDIR) to its actual value in the 458234449Sobrien # expansion. 459234449Sobrien for file in `sed -n " 460234449Sobrien s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 461268515Sdelphij sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 462234449Sobrien # Make sure the directory exists. 463234449Sobrien test -f "$dirpart/$file" && continue 464234449Sobrien fdir=`AS_DIRNAME(["$file"])` 465234449Sobrien AS_MKDIR_P([$dirpart/$fdir]) 466234449Sobrien # echo "creating $dirpart/$file" 467234449Sobrien echo '# dummy' > "$dirpart/$file" 468234449Sobrien done 469133359Sobrien done 470234449Sobrien} 471159764Sobrien])# _AM_OUTPUT_DEPENDENCY_COMMANDS 472159764Sobrien 473159764Sobrien 474159764Sobrien# AM_OUTPUT_DEPENDENCY_COMMANDS 475159764Sobrien# ----------------------------- 476159764Sobrien# This macro should only be invoked once -- use via AC_REQUIRE. 477159764Sobrien# 478159764Sobrien# This code is only required when automatic dependency tracking 479268515Sdelphij# is enabled. FIXME. This creates each '.P' file that we will 480159764Sobrien# need in order to bootstrap the dependency handling code. 481159764SobrienAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 482159764Sobrien[AC_CONFIG_COMMANDS([depfiles], 483159764Sobrien [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 484159764Sobrien [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 485133359Sobrien]) 486133359Sobrien 487159764Sobrien# Do all the work for Automake. -*- Autoconf -*- 488133359Sobrien 489284778Sdelphij# Copyright (C) 1996-2014 Free Software Foundation, Inc. 490159764Sobrien# 491159764Sobrien# This file is free software; the Free Software Foundation 492159764Sobrien# gives unlimited permission to copy and/or distribute it, 493159764Sobrien# with or without modifications, as long as this notice is preserved. 494133359Sobrien 495159764Sobrien# This macro actually does too much. Some checks are only needed if 496159764Sobrien# your package does certain things. But this isn't really a big deal. 497159764Sobrien 498268515Sdelphijdnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 499268515Sdelphijm4_define([AC_PROG_CC], 500268515Sdelphijm4_defn([AC_PROG_CC]) 501268515Sdelphij[_AM_PROG_CC_C_O 502268515Sdelphij]) 503268515Sdelphij 504159764Sobrien# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 505159764Sobrien# AM_INIT_AUTOMAKE([OPTIONS]) 506159764Sobrien# ----------------------------------------------- 507159764Sobrien# The call with PACKAGE and VERSION arguments is the old style 508159764Sobrien# call (pre autoconf-2.50), which is being phased out. PACKAGE 509159764Sobrien# and VERSION should now be passed to AC_INIT and removed from 510159764Sobrien# the call to AM_INIT_AUTOMAKE. 511159764Sobrien# We support both call styles for the transition. After 512159764Sobrien# the next Automake release, Autoconf can make the AC_INIT 513159764Sobrien# arguments mandatory, and then we can depend on a new Autoconf 514159764Sobrien# release and drop the old call support. 515159764SobrienAC_DEFUN([AM_INIT_AUTOMAKE], 516268515Sdelphij[AC_PREREQ([2.65])dnl 517159764Sobriendnl Autoconf wants to disallow AM_ names. We explicitly allow 518159764Sobriendnl the ones we care about. 519159764Sobrienm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 520159764SobrienAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 521159764SobrienAC_REQUIRE([AC_PROG_INSTALL])dnl 522175296Sobrienif test "`cd $srcdir && pwd`" != "`pwd`"; then 523175296Sobrien # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 524175296Sobrien # is not polluted with repeated "-I." 525175296Sobrien AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 526175296Sobrien # test to see if srcdir already configured 527175296Sobrien if test -f $srcdir/config.status; then 528175296Sobrien AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 529175296Sobrien fi 530133359Sobrienfi 531133359Sobrien 532159764Sobrien# test whether we have cygpath 533159764Sobrienif test -z "$CYGPATH_W"; then 534159764Sobrien if (cygpath --version) >/dev/null 2>/dev/null; then 535159764Sobrien CYGPATH_W='cygpath -w' 536133359Sobrien else 537159764Sobrien CYGPATH_W=echo 538133359Sobrien fi 539133359Sobrienfi 540159764SobrienAC_SUBST([CYGPATH_W]) 541159764Sobrien 542159764Sobrien# Define the identity of the package. 543159764Sobriendnl Distinguish between old-style and new-style calls. 544159764Sobrienm4_ifval([$2], 545268515Sdelphij[AC_DIAGNOSE([obsolete], 546268515Sdelphij [$0: two- and three-arguments forms are deprecated.]) 547268515Sdelphijm4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 548159764Sobrien AC_SUBST([PACKAGE], [$1])dnl 549159764Sobrien AC_SUBST([VERSION], [$2])], 550159764Sobrien[_AM_SET_OPTIONS([$1])dnl 551175296Sobriendnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 552268515Sdelphijm4_if( 553268515Sdelphij m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 554268515Sdelphij [ok:ok],, 555175296Sobrien [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 556159764Sobrien AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 557159764Sobrien AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 558159764Sobrien 559159764Sobrien_AM_IF_OPTION([no-define],, 560268515Sdelphij[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 561268515Sdelphij AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 562159764Sobrien 563159764Sobrien# Some tools Automake needs. 564159764SobrienAC_REQUIRE([AM_SANITY_CHECK])dnl 565159764SobrienAC_REQUIRE([AC_ARG_PROGRAM])dnl 566268515SdelphijAM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 567268515SdelphijAM_MISSING_PROG([AUTOCONF], [autoconf]) 568268515SdelphijAM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 569268515SdelphijAM_MISSING_PROG([AUTOHEADER], [autoheader]) 570268515SdelphijAM_MISSING_PROG([MAKEINFO], [makeinfo]) 571234449SobrienAC_REQUIRE([AM_PROG_INSTALL_SH])dnl 572234449SobrienAC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 573268515SdelphijAC_REQUIRE([AC_PROG_MKDIR_P])dnl 574268515Sdelphij# For better backward compatibility. To be removed once Automake 1.9.x 575268515Sdelphij# dies out for good. For more background, see: 576268515Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 577268515Sdelphij# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 578268515SdelphijAC_SUBST([mkdir_p], ['$(MKDIR_P)']) 579284778Sdelphij# We need awk for the "check" target (and possibly the TAP driver). The 580284778Sdelphij# system "awk" is bad on some platforms. 581159764SobrienAC_REQUIRE([AC_PROG_AWK])dnl 582159764SobrienAC_REQUIRE([AC_PROG_MAKE_SET])dnl 583159764SobrienAC_REQUIRE([AM_SET_LEADING_DOT])dnl 584159764Sobrien_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 585234449Sobrien [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 586234449Sobrien [_AM_PROG_TAR([v7])])]) 587159764Sobrien_AM_IF_OPTION([no-dependencies],, 588159764Sobrien[AC_PROVIDE_IFELSE([AC_PROG_CC], 589268515Sdelphij [_AM_DEPENDENCIES([CC])], 590268515Sdelphij [m4_define([AC_PROG_CC], 591268515Sdelphij m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 592159764SobrienAC_PROVIDE_IFELSE([AC_PROG_CXX], 593268515Sdelphij [_AM_DEPENDENCIES([CXX])], 594268515Sdelphij [m4_define([AC_PROG_CXX], 595268515Sdelphij m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 596175296SobrienAC_PROVIDE_IFELSE([AC_PROG_OBJC], 597268515Sdelphij [_AM_DEPENDENCIES([OBJC])], 598268515Sdelphij [m4_define([AC_PROG_OBJC], 599268515Sdelphij m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 600268515SdelphijAC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 601268515Sdelphij [_AM_DEPENDENCIES([OBJCXX])], 602268515Sdelphij [m4_define([AC_PROG_OBJCXX], 603268515Sdelphij m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 604133359Sobrien]) 605268515SdelphijAC_REQUIRE([AM_SILENT_RULES])dnl 606268515Sdelphijdnl The testsuite driver may need to know about EXEEXT, so add the 607268515Sdelphijdnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 608268515Sdelphijdnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 609234449SobrienAC_CONFIG_COMMANDS_PRE(dnl 610234449Sobrien[m4_provide_if([_AM_COMPILER_EXEEXT], 611234449Sobrien [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 612133359Sobrien 613268515Sdelphij# POSIX will say in a future version that running "rm -f" with no argument 614268515Sdelphij# is OK; and we want to be able to make that assumption in our Makefile 615268515Sdelphij# recipes. So use an aggressive probe to check that the usage we want is 616268515Sdelphij# actually supported "in the wild" to an acceptable degree. 617268515Sdelphij# See automake bug#10828. 618268515Sdelphij# To make any issue more visible, cause the running configure to be aborted 619268515Sdelphij# by default if the 'rm' program in use doesn't match our expectations; the 620268515Sdelphij# user can still override this though. 621268515Sdelphijif rm -f && rm -fr && rm -rf; then : OK; else 622268515Sdelphij cat >&2 <<'END' 623268515SdelphijOops! 624268515Sdelphij 625268515SdelphijYour 'rm' program seems unable to run without file operands specified 626268515Sdelphijon the command line, even when the '-f' option is present. This is contrary 627268515Sdelphijto the behaviour of most rm programs out there, and not conforming with 628268515Sdelphijthe upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 629268515Sdelphij 630268515SdelphijPlease tell bug-automake@gnu.org about your system, including the value 631268515Sdelphijof your $PATH and any error possibly output before this message. This 632268515Sdelphijcan help us improve future automake versions. 633268515Sdelphij 634268515SdelphijEND 635268515Sdelphij if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 636268515Sdelphij echo 'Configuration will proceed anyway, since you have set the' >&2 637268515Sdelphij echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 638268515Sdelphij echo >&2 639268515Sdelphij else 640268515Sdelphij cat >&2 <<'END' 641268515SdelphijAborting the configuration process, to ensure you take notice of the issue. 642268515Sdelphij 643268515SdelphijYou can download and install GNU coreutils to get an 'rm' implementation 644268515Sdelphijthat behaves properly: <http://www.gnu.org/software/coreutils/>. 645268515Sdelphij 646268515SdelphijIf you want to complete the configuration process using your problematic 647268515Sdelphij'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 648268515Sdelphijto "yes", and re-run configure. 649268515Sdelphij 650268515SdelphijEND 651268515Sdelphij AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 652268515Sdelphij fi 653284778Sdelphijfi 654284778Sdelphijdnl The trailing newline in this macro's definition is deliberate, for 655284778Sdelphijdnl backward compatibility and to allow trailing 'dnl'-style comments 656284778Sdelphijdnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 657284778Sdelphij]) 658268515Sdelphij 659268515Sdelphijdnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 660234449Sobriendnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 661234449Sobriendnl mangled by Autoconf and run in a shell conditional statement. 662234449Sobrienm4_define([_AC_COMPILER_EXEEXT], 663234449Sobrienm4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 664133359Sobrien 665159764Sobrien# When config.status generates a header, we must update the stamp-h file. 666159764Sobrien# This file resides in the same directory as the config header 667159764Sobrien# that is generated. The stamp files are numbered to have different names. 668159764Sobrien 669159764Sobrien# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 670159764Sobrien# loop where config.status creates the headers, so we can generate 671159764Sobrien# our stamp files there. 672159764SobrienAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 673159764Sobrien[# Compute $1's index in $config_headers. 674234449Sobrien_am_arg=$1 675159764Sobrien_am_stamp_count=1 676159764Sobrienfor _am_header in $config_headers :; do 677159764Sobrien case $_am_header in 678234449Sobrien $_am_arg | $_am_arg:* ) 679159764Sobrien break ;; 680159764Sobrien * ) 681159764Sobrien _am_stamp_count=`expr $_am_stamp_count + 1` ;; 682133359Sobrien esac 683159764Sobriendone 684234449Sobrienecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 685159764Sobrien 686284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 687159764Sobrien# 688159764Sobrien# This file is free software; the Free Software Foundation 689159764Sobrien# gives unlimited permission to copy and/or distribute it, 690159764Sobrien# with or without modifications, as long as this notice is preserved. 691159764Sobrien 692159764Sobrien# AM_PROG_INSTALL_SH 693159764Sobrien# ------------------ 694159764Sobrien# Define $install_sh. 695159764SobrienAC_DEFUN([AM_PROG_INSTALL_SH], 696159764Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 697284778Sdelphijif test x"${install_sh+set}" != xset; then 698234449Sobrien case $am_aux_dir in 699234449Sobrien *\ * | *\ *) 700234449Sobrien install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 701234449Sobrien *) 702234449Sobrien install_sh="\${SHELL} $am_aux_dir/install-sh" 703234449Sobrien esac 704234449Sobrienfi 705268515SdelphijAC_SUBST([install_sh])]) 706159764Sobrien 707284778Sdelphij# Copyright (C) 2003-2014 Free Software Foundation, Inc. 708159764Sobrien# 709159764Sobrien# This file is free software; the Free Software Foundation 710159764Sobrien# gives unlimited permission to copy and/or distribute it, 711159764Sobrien# with or without modifications, as long as this notice is preserved. 712159764Sobrien 713159764Sobrien# Check whether the underlying file-system supports filenames 714159764Sobrien# with a leading dot. For instance MS-DOS doesn't. 715159764SobrienAC_DEFUN([AM_SET_LEADING_DOT], 716159764Sobrien[rm -rf .tst 2>/dev/null 717159764Sobrienmkdir .tst 2>/dev/null 718159764Sobrienif test -d .tst; then 719159764Sobrien am__leading_dot=. 720133359Sobrienelse 721159764Sobrien am__leading_dot=_ 722133359Sobrienfi 723159764Sobrienrmdir .tst 2>/dev/null 724159764SobrienAC_SUBST([am__leading_dot])]) 725159764Sobrien 726159764Sobrien# Check to see how 'make' treats includes. -*- Autoconf -*- 727159764Sobrien 728284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 729159764Sobrien# 730159764Sobrien# This file is free software; the Free Software Foundation 731159764Sobrien# gives unlimited permission to copy and/or distribute it, 732159764Sobrien# with or without modifications, as long as this notice is preserved. 733159764Sobrien 734159764Sobrien# AM_MAKE_INCLUDE() 735159764Sobrien# ----------------- 736159764Sobrien# Check to see how make treats includes. 737159764SobrienAC_DEFUN([AM_MAKE_INCLUDE], 738159764Sobrien[am_make=${MAKE-make} 739159764Sobriencat > confinc << 'END' 740159764Sobrienam__doit: 741234449Sobrien @echo this is the am__doit target 742159764Sobrien.PHONY: am__doit 743159764SobrienEND 744159764Sobrien# If we don't find an include directive, just comment out the code. 745159764SobrienAC_MSG_CHECKING([for style of include used by $am_make]) 746159764Sobrienam__include="#" 747159764Sobrienam__quote= 748159764Sobrien_am_result=none 749159764Sobrien# First try GNU make style include. 750159764Sobrienecho "include confinc" > confmf 751268515Sdelphij# Ignore all kinds of additional output from 'make'. 752234449Sobriencase `$am_make -s -f confmf 2> /dev/null` in #( 753234449Sobrien*the\ am__doit\ target*) 754234449Sobrien am__include=include 755234449Sobrien am__quote= 756234449Sobrien _am_result=GNU 757234449Sobrien ;; 758234449Sobrienesac 759159764Sobrien# Now try BSD make style include. 760159764Sobrienif test "$am__include" = "#"; then 761159764Sobrien echo '.include "confinc"' > confmf 762234449Sobrien case `$am_make -s -f confmf 2> /dev/null` in #( 763234449Sobrien *the\ am__doit\ target*) 764234449Sobrien am__include=.include 765234449Sobrien am__quote="\"" 766234449Sobrien _am_result=BSD 767234449Sobrien ;; 768234449Sobrien esac 769159764Sobrienfi 770159764SobrienAC_SUBST([am__include]) 771159764SobrienAC_SUBST([am__quote]) 772159764SobrienAC_MSG_RESULT([$_am_result]) 773159764Sobrienrm -f confinc confmf 774133359Sobrien]) 77580588Sobrien 776159764Sobrien# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 777159764Sobrien 778284778Sdelphij# Copyright (C) 1997-2014 Free Software Foundation, Inc. 779159764Sobrien# 780159764Sobrien# This file is free software; the Free Software Foundation 781159764Sobrien# gives unlimited permission to copy and/or distribute it, 782159764Sobrien# with or without modifications, as long as this notice is preserved. 783159764Sobrien 784159764Sobrien# AM_MISSING_PROG(NAME, PROGRAM) 785159764Sobrien# ------------------------------ 786159764SobrienAC_DEFUN([AM_MISSING_PROG], 787159764Sobrien[AC_REQUIRE([AM_MISSING_HAS_RUN]) 788159764Sobrien$1=${$1-"${am_missing_run}$2"} 789159764SobrienAC_SUBST($1)]) 790159764Sobrien 791159764Sobrien# AM_MISSING_HAS_RUN 792159764Sobrien# ------------------ 793268515Sdelphij# Define MISSING if not defined so far and test if it is modern enough. 794268515Sdelphij# If it is, set am_missing_run to use it, otherwise, to nothing. 795159764SobrienAC_DEFUN([AM_MISSING_HAS_RUN], 796159764Sobrien[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 797175296SobrienAC_REQUIRE_AUX_FILE([missing])dnl 798234449Sobrienif test x"${MISSING+set}" != xset; then 799234449Sobrien case $am_aux_dir in 800234449Sobrien *\ * | *\ *) 801234449Sobrien MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 802234449Sobrien *) 803234449Sobrien MISSING="\${SHELL} $am_aux_dir/missing" ;; 804234449Sobrien esac 805234449Sobrienfi 806159764Sobrien# Use eval to expand $SHELL 807268515Sdelphijif eval "$MISSING --is-lightweight"; then 808268515Sdelphij am_missing_run="$MISSING " 809133359Sobrienelse 810159764Sobrien am_missing_run= 811268515Sdelphij AC_MSG_WARN(['missing' script is too old or missing]) 812159764Sobrienfi 813133359Sobrien]) 814133359Sobrien 815159764Sobrien# Helper functions for option handling. -*- Autoconf -*- 816133359Sobrien 817284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 818159764Sobrien# 819159764Sobrien# This file is free software; the Free Software Foundation 820159764Sobrien# gives unlimited permission to copy and/or distribute it, 821159764Sobrien# with or without modifications, as long as this notice is preserved. 822133359Sobrien 823159764Sobrien# _AM_MANGLE_OPTION(NAME) 824159764Sobrien# ----------------------- 825159764SobrienAC_DEFUN([_AM_MANGLE_OPTION], 826159764Sobrien[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 827133359Sobrien 828159764Sobrien# _AM_SET_OPTION(NAME) 829268515Sdelphij# -------------------- 830159764Sobrien# Set option NAME. Presently that only means defining a flag for this option. 831159764SobrienAC_DEFUN([_AM_SET_OPTION], 832268515Sdelphij[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 833133359Sobrien 834159764Sobrien# _AM_SET_OPTIONS(OPTIONS) 835268515Sdelphij# ------------------------ 836159764Sobrien# OPTIONS is a space-separated list of Automake options. 837159764SobrienAC_DEFUN([_AM_SET_OPTIONS], 838234449Sobrien[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 839133359Sobrien 840159764Sobrien# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 841159764Sobrien# ------------------------------------------- 842159764Sobrien# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 843159764SobrienAC_DEFUN([_AM_IF_OPTION], 844159764Sobrien[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 845133359Sobrien 846284778Sdelphij# Copyright (C) 1999-2014 Free Software Foundation, Inc. 847268515Sdelphij# 848268515Sdelphij# This file is free software; the Free Software Foundation 849268515Sdelphij# gives unlimited permission to copy and/or distribute it, 850268515Sdelphij# with or without modifications, as long as this notice is preserved. 851268515Sdelphij 852268515Sdelphij# _AM_PROG_CC_C_O 853268515Sdelphij# --------------- 854268515Sdelphij# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 855268515Sdelphij# to automatically call this. 856268515SdelphijAC_DEFUN([_AM_PROG_CC_C_O], 857268515Sdelphij[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 858268515SdelphijAC_REQUIRE_AUX_FILE([compile])dnl 859268515SdelphijAC_LANG_PUSH([C])dnl 860268515SdelphijAC_CACHE_CHECK( 861268515Sdelphij [whether $CC understands -c and -o together], 862268515Sdelphij [am_cv_prog_cc_c_o], 863268515Sdelphij [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 864268515Sdelphij # Make sure it works both with $CC and with simple cc. 865268515Sdelphij # Following AC_PROG_CC_C_O, we do the test twice because some 866268515Sdelphij # compilers refuse to overwrite an existing .o file with -o, 867268515Sdelphij # though they will create one. 868268515Sdelphij am_cv_prog_cc_c_o=yes 869268515Sdelphij for am_i in 1 2; do 870268515Sdelphij if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 871268515Sdelphij && test -f conftest2.$ac_objext; then 872268515Sdelphij : OK 873268515Sdelphij else 874268515Sdelphij am_cv_prog_cc_c_o=no 875268515Sdelphij break 876268515Sdelphij fi 877268515Sdelphij done 878268515Sdelphij rm -f core conftest* 879268515Sdelphij unset am_i]) 880268515Sdelphijif test "$am_cv_prog_cc_c_o" != yes; then 881268515Sdelphij # Losing compiler, so override with the script. 882268515Sdelphij # FIXME: It is wrong to rewrite CC. 883268515Sdelphij # But if we don't then we get into trouble of one sort or another. 884268515Sdelphij # A longer-term fix would be to have automake use am__CC in this case, 885268515Sdelphij # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 886268515Sdelphij CC="$am_aux_dir/compile $CC" 887268515Sdelphijfi 888268515SdelphijAC_LANG_POP([C])]) 889268515Sdelphij 890268515Sdelphij# For backward compatibility. 891268515SdelphijAC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 892268515Sdelphij 893284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 894268515Sdelphij# 895268515Sdelphij# This file is free software; the Free Software Foundation 896268515Sdelphij# gives unlimited permission to copy and/or distribute it, 897268515Sdelphij# with or without modifications, as long as this notice is preserved. 898268515Sdelphij 899268515Sdelphij# AM_RUN_LOG(COMMAND) 900268515Sdelphij# ------------------- 901268515Sdelphij# Run COMMAND, save the exit status in ac_status, and log it. 902268515Sdelphij# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 903268515SdelphijAC_DEFUN([AM_RUN_LOG], 904268515Sdelphij[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 905268515Sdelphij ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 906268515Sdelphij ac_status=$? 907268515Sdelphij echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 908268515Sdelphij (exit $ac_status); }]) 909268515Sdelphij 910159764Sobrien# Check to make sure that the build environment is sane. -*- Autoconf -*- 911133359Sobrien 912284778Sdelphij# Copyright (C) 1996-2014 Free Software Foundation, Inc. 913159764Sobrien# 914159764Sobrien# This file is free software; the Free Software Foundation 915159764Sobrien# gives unlimited permission to copy and/or distribute it, 916159764Sobrien# with or without modifications, as long as this notice is preserved. 917133359Sobrien 918159764Sobrien# AM_SANITY_CHECK 919159764Sobrien# --------------- 920159764SobrienAC_DEFUN([AM_SANITY_CHECK], 921159764Sobrien[AC_MSG_CHECKING([whether build environment is sane]) 922234449Sobrien# Reject unsafe characters in $srcdir or the absolute working directory 923234449Sobrien# name. Accept space and tab only in the latter. 924234449Sobrienam_lf=' 925234449Sobrien' 926234449Sobriencase `pwd` in 927234449Sobrien *[[\\\"\#\$\&\'\`$am_lf]]*) 928234449Sobrien AC_MSG_ERROR([unsafe absolute working directory name]);; 929234449Sobrienesac 930234449Sobriencase $srcdir in 931234449Sobrien *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 932268515Sdelphij AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 933234449Sobrienesac 934234449Sobrien 935268515Sdelphij# Do 'set' in a subshell so we don't clobber the current shell's 936159764Sobrien# arguments. Must try -L first in case configure is actually a 937159764Sobrien# symlink; some systems play weird games with the mod time of symlinks 938159764Sobrien# (eg FreeBSD returns the mod time of the symlink's containing 939159764Sobrien# directory). 940159764Sobrienif ( 941268515Sdelphij am_has_slept=no 942268515Sdelphij for am_try in 1 2; do 943268515Sdelphij echo "timestamp, slept: $am_has_slept" > conftest.file 944268515Sdelphij set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 945268515Sdelphij if test "$[*]" = "X"; then 946268515Sdelphij # -L didn't work. 947268515Sdelphij set X `ls -t "$srcdir/configure" conftest.file` 948268515Sdelphij fi 949268515Sdelphij if test "$[*]" != "X $srcdir/configure conftest.file" \ 950268515Sdelphij && test "$[*]" != "X conftest.file $srcdir/configure"; then 951133359Sobrien 952268515Sdelphij # If neither matched, then we have a broken ls. This can happen 953268515Sdelphij # if, for instance, CONFIG_SHELL is bash and it inherits a 954268515Sdelphij # broken ls alias from the environment. This has actually 955268515Sdelphij # happened. Such a system could not be considered "sane". 956268515Sdelphij AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 957268515Sdelphij alias in your environment]) 958268515Sdelphij fi 959268515Sdelphij if test "$[2]" = conftest.file || test $am_try -eq 2; then 960268515Sdelphij break 961268515Sdelphij fi 962268515Sdelphij # Just in case. 963268515Sdelphij sleep 1 964268515Sdelphij am_has_slept=yes 965268515Sdelphij done 966159764Sobrien test "$[2]" = conftest.file 967159764Sobrien ) 968159764Sobrienthen 969159764Sobrien # Ok. 970159764Sobrien : 971159764Sobrienelse 972159764Sobrien AC_MSG_ERROR([newly created file is older than distributed files! 973159764SobrienCheck your system clock]) 974159764Sobrienfi 975268515SdelphijAC_MSG_RESULT([yes]) 976268515Sdelphij# If we didn't sleep, we still need to ensure time stamps of config.status and 977268515Sdelphij# generated files are strictly newer. 978268515Sdelphijam_sleep_pid= 979268515Sdelphijif grep 'slept: no' conftest.file >/dev/null 2>&1; then 980268515Sdelphij ( sleep 1 ) & 981268515Sdelphij am_sleep_pid=$! 982268515Sdelphijfi 983268515SdelphijAC_CONFIG_COMMANDS_PRE( 984268515Sdelphij [AC_MSG_CHECKING([that generated files are newer than configure]) 985268515Sdelphij if test -n "$am_sleep_pid"; then 986268515Sdelphij # Hide warnings about reused PIDs. 987268515Sdelphij wait $am_sleep_pid 2>/dev/null 988268515Sdelphij fi 989268515Sdelphij AC_MSG_RESULT([done])]) 990268515Sdelphijrm -f conftest.file 991268515Sdelphij]) 992139368Sobrien 993284778Sdelphij# Copyright (C) 2009-2014 Free Software Foundation, Inc. 994234449Sobrien# 995234449Sobrien# This file is free software; the Free Software Foundation 996234449Sobrien# gives unlimited permission to copy and/or distribute it, 997234449Sobrien# with or without modifications, as long as this notice is preserved. 998234449Sobrien 999234449Sobrien# AM_SILENT_RULES([DEFAULT]) 1000234449Sobrien# -------------------------- 1001234449Sobrien# Enable less verbose build rules; with the default set to DEFAULT 1002268515Sdelphij# ("yes" being less verbose, "no" or empty being verbose). 1003234449SobrienAC_DEFUN([AM_SILENT_RULES], 1004268515Sdelphij[AC_ARG_ENABLE([silent-rules], [dnl 1005268515SdelphijAS_HELP_STRING( 1006268515Sdelphij [--enable-silent-rules], 1007268515Sdelphij [less verbose build output (undo: "make V=1")]) 1008268515SdelphijAS_HELP_STRING( 1009268515Sdelphij [--disable-silent-rules], 1010268515Sdelphij [verbose build output (undo: "make V=0")])dnl 1011268515Sdelphij]) 1012268515Sdelphijcase $enable_silent_rules in @%:@ ((( 1013268515Sdelphij yes) AM_DEFAULT_VERBOSITY=0;; 1014268515Sdelphij no) AM_DEFAULT_VERBOSITY=1;; 1015268515Sdelphij *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1016234449Sobrienesac 1017268515Sdelphijdnl 1018268515Sdelphijdnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1019268515Sdelphijdnl do not support nested variable expansions. 1020268515Sdelphijdnl See automake bug#9928 and bug#10237. 1021268515Sdelphijam_make=${MAKE-make} 1022268515SdelphijAC_CACHE_CHECK([whether $am_make supports nested variables], 1023268515Sdelphij [am_cv_make_support_nested_variables], 1024268515Sdelphij [if AS_ECHO([['TRUE=$(BAR$(V)) 1025268515SdelphijBAR0=false 1026268515SdelphijBAR1=true 1027268515SdelphijV=1 1028268515Sdelphijam__doit: 1029268515Sdelphij @$(TRUE) 1030268515Sdelphij.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1031268515Sdelphij am_cv_make_support_nested_variables=yes 1032268515Sdelphijelse 1033268515Sdelphij am_cv_make_support_nested_variables=no 1034268515Sdelphijfi]) 1035268515Sdelphijif test $am_cv_make_support_nested_variables = yes; then 1036268515Sdelphij dnl Using '$V' instead of '$(V)' breaks IRIX make. 1037268515Sdelphij AM_V='$(V)' 1038268515Sdelphij AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1039268515Sdelphijelse 1040268515Sdelphij AM_V=$AM_DEFAULT_VERBOSITY 1041268515Sdelphij AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1042268515Sdelphijfi 1043268515SdelphijAC_SUBST([AM_V])dnl 1044268515SdelphijAM_SUBST_NOTMAKE([AM_V])dnl 1045268515SdelphijAC_SUBST([AM_DEFAULT_V])dnl 1046268515SdelphijAM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1047234449SobrienAC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1048234449SobrienAM_BACKSLASH='\' 1049234449SobrienAC_SUBST([AM_BACKSLASH])dnl 1050234449Sobrien_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1051234449Sobrien]) 1052234449Sobrien 1053284778Sdelphij# Copyright (C) 2001-2014 Free Software Foundation, Inc. 1054159764Sobrien# 1055159764Sobrien# This file is free software; the Free Software Foundation 1056159764Sobrien# gives unlimited permission to copy and/or distribute it, 1057159764Sobrien# with or without modifications, as long as this notice is preserved. 1058133359Sobrien 1059159764Sobrien# AM_PROG_INSTALL_STRIP 1060159764Sobrien# --------------------- 1061268515Sdelphij# One issue with vendor 'install' (even GNU) is that you can't 1062159764Sobrien# specify the program used to strip binaries. This is especially 1063159764Sobrien# annoying in cross-compiling environments, where the build's strip 1064159764Sobrien# is unlikely to handle the host's binaries. 1065159764Sobrien# Fortunately install-sh will honor a STRIPPROG variable, so we 1066268515Sdelphij# always use install-sh in "make install-strip", and initialize 1067159764Sobrien# STRIPPROG with the value of the STRIP variable (set by the user). 1068159764SobrienAC_DEFUN([AM_PROG_INSTALL_STRIP], 1069159764Sobrien[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1070268515Sdelphij# Installed binaries are usually stripped using 'strip' when the user 1071268515Sdelphij# run "make install-strip". However 'strip' might not be the right 1072159764Sobrien# tool to use in cross-compilation environments, therefore Automake 1073268515Sdelphij# will honor the 'STRIP' environment variable to overrule this program. 1074268515Sdelphijdnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1075159764Sobrienif test "$cross_compiling" != no; then 1076159764Sobrien AC_CHECK_TOOL([STRIP], [strip], :) 1077159764Sobrienfi 1078175296SobrienINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1079159764SobrienAC_SUBST([INSTALL_STRIP_PROGRAM])]) 1080133359Sobrien 1081284778Sdelphij# Copyright (C) 2006-2014 Free Software Foundation, Inc. 1082175296Sobrien# 1083175296Sobrien# This file is free software; the Free Software Foundation 1084175296Sobrien# gives unlimited permission to copy and/or distribute it, 1085175296Sobrien# with or without modifications, as long as this notice is preserved. 1086175296Sobrien 1087175296Sobrien# _AM_SUBST_NOTMAKE(VARIABLE) 1088175296Sobrien# --------------------------- 1089234449Sobrien# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1090175296Sobrien# This macro is traced by Automake. 1091175296SobrienAC_DEFUN([_AM_SUBST_NOTMAKE]) 1092175296Sobrien 1093234449Sobrien# AM_SUBST_NOTMAKE(VARIABLE) 1094268515Sdelphij# -------------------------- 1095234449Sobrien# Public sister of _AM_SUBST_NOTMAKE. 1096234449SobrienAC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1097234449Sobrien 1098159764Sobrien# Check how to create a tarball. -*- Autoconf -*- 1099133359Sobrien 1100284778Sdelphij# Copyright (C) 2004-2014 Free Software Foundation, Inc. 1101159764Sobrien# 1102159764Sobrien# This file is free software; the Free Software Foundation 1103159764Sobrien# gives unlimited permission to copy and/or distribute it, 1104159764Sobrien# with or without modifications, as long as this notice is preserved. 1105133359Sobrien 1106159764Sobrien# _AM_PROG_TAR(FORMAT) 1107159764Sobrien# -------------------- 1108159764Sobrien# Check how to create a tarball in format FORMAT. 1109268515Sdelphij# FORMAT should be one of 'v7', 'ustar', or 'pax'. 1110159764Sobrien# 1111159764Sobrien# Substitute a variable $(am__tar) that is a command 1112159764Sobrien# writing to stdout a FORMAT-tarball containing the directory 1113159764Sobrien# $tardir. 1114159764Sobrien# tardir=directory && $(am__tar) > result.tar 1115159764Sobrien# 1116159764Sobrien# Substitute a variable $(am__untar) that extract such 1117159764Sobrien# a tarball read from stdin. 1118159764Sobrien# $(am__untar) < result.tar 1119268515Sdelphij# 1120159764SobrienAC_DEFUN([_AM_PROG_TAR], 1121268515Sdelphij[# Always define AMTAR for backward compatibility. Yes, it's still used 1122268515Sdelphij# in the wild :-( We should find a proper way to deprecate it ... 1123268515SdelphijAC_SUBST([AMTAR], ['$${TAR-tar}']) 1124268515Sdelphij 1125268515Sdelphij# We'll loop over all known methods to create a tar archive until one works. 1126159764Sobrien_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1127133359Sobrien 1128268515Sdelphijm4_if([$1], [v7], 1129268515Sdelphij [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1130133359Sobrien 1131268515Sdelphij [m4_case([$1], 1132268515Sdelphij [ustar], 1133268515Sdelphij [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1134268515Sdelphij # There is notably a 21 bits limit for the UID and the GID. In fact, 1135268515Sdelphij # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1136268515Sdelphij # and bug#13588). 1137268515Sdelphij am_max_uid=2097151 # 2^21 - 1 1138268515Sdelphij am_max_gid=$am_max_uid 1139268515Sdelphij # The $UID and $GID variables are not portable, so we need to resort 1140268515Sdelphij # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1141268515Sdelphij # below are definitely unexpected, so allow the users to see them 1142268515Sdelphij # (that is, avoid stderr redirection). 1143268515Sdelphij am_uid=`id -u || echo unknown` 1144268515Sdelphij am_gid=`id -g || echo unknown` 1145268515Sdelphij AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1146268515Sdelphij if test $am_uid -le $am_max_uid; then 1147268515Sdelphij AC_MSG_RESULT([yes]) 1148268515Sdelphij else 1149268515Sdelphij AC_MSG_RESULT([no]) 1150268515Sdelphij _am_tools=none 1151268515Sdelphij fi 1152268515Sdelphij AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1153268515Sdelphij if test $am_gid -le $am_max_gid; then 1154268515Sdelphij AC_MSG_RESULT([yes]) 1155268515Sdelphij else 1156268515Sdelphij AC_MSG_RESULT([no]) 1157268515Sdelphij _am_tools=none 1158268515Sdelphij fi], 1159268515Sdelphij 1160268515Sdelphij [pax], 1161268515Sdelphij [], 1162268515Sdelphij 1163268515Sdelphij [m4_fatal([Unknown tar format])]) 1164268515Sdelphij 1165268515Sdelphij AC_MSG_CHECKING([how to create a $1 tar archive]) 1166268515Sdelphij 1167268515Sdelphij # Go ahead even if we have the value already cached. We do so because we 1168268515Sdelphij # need to set the values for the 'am__tar' and 'am__untar' variables. 1169268515Sdelphij _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1170268515Sdelphij 1171268515Sdelphij for _am_tool in $_am_tools; do 1172268515Sdelphij case $_am_tool in 1173268515Sdelphij gnutar) 1174268515Sdelphij for _am_tar in tar gnutar gtar; do 1175268515Sdelphij AM_RUN_LOG([$_am_tar --version]) && break 1176268515Sdelphij done 1177268515Sdelphij am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1178268515Sdelphij am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1179268515Sdelphij am__untar="$_am_tar -xf -" 1180268515Sdelphij ;; 1181268515Sdelphij plaintar) 1182268515Sdelphij # Must skip GNU tar: if it does not support --format= it doesn't create 1183268515Sdelphij # ustar tarball either. 1184268515Sdelphij (tar --version) >/dev/null 2>&1 && continue 1185268515Sdelphij am__tar='tar chf - "$$tardir"' 1186268515Sdelphij am__tar_='tar chf - "$tardir"' 1187268515Sdelphij am__untar='tar xf -' 1188268515Sdelphij ;; 1189268515Sdelphij pax) 1190268515Sdelphij am__tar='pax -L -x $1 -w "$$tardir"' 1191268515Sdelphij am__tar_='pax -L -x $1 -w "$tardir"' 1192268515Sdelphij am__untar='pax -r' 1193268515Sdelphij ;; 1194268515Sdelphij cpio) 1195268515Sdelphij am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1196268515Sdelphij am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1197268515Sdelphij am__untar='cpio -i -H $1 -d' 1198268515Sdelphij ;; 1199268515Sdelphij none) 1200268515Sdelphij am__tar=false 1201268515Sdelphij am__tar_=false 1202268515Sdelphij am__untar=false 1203268515Sdelphij ;; 1204268515Sdelphij esac 1205268515Sdelphij 1206268515Sdelphij # If the value was cached, stop now. We just wanted to have am__tar 1207268515Sdelphij # and am__untar set. 1208268515Sdelphij test -n "${am_cv_prog_tar_$1}" && break 1209268515Sdelphij 1210268515Sdelphij # tar/untar a dummy directory, and stop if the command works. 1211268515Sdelphij rm -rf conftest.dir 1212268515Sdelphij mkdir conftest.dir 1213268515Sdelphij echo GrepMe > conftest.dir/file 1214268515Sdelphij AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1215268515Sdelphij rm -rf conftest.dir 1216268515Sdelphij if test -s conftest.tar; then 1217268515Sdelphij AM_RUN_LOG([$am__untar <conftest.tar]) 1218268515Sdelphij AM_RUN_LOG([cat conftest.dir/file]) 1219268515Sdelphij grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1220268515Sdelphij fi 1221268515Sdelphij done 1222159764Sobrien rm -rf conftest.dir 1223133359Sobrien 1224268515Sdelphij AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1225268515Sdelphij AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1226268515Sdelphij 1227159764SobrienAC_SUBST([am__tar]) 1228159764SobrienAC_SUBST([am__untar]) 1229159764Sobrien]) # _AM_PROG_TAR 1230133359Sobrien 1231234449Sobrienm4_include([m4/libtool.m4]) 1232234449Sobrienm4_include([m4/ltoptions.m4]) 1233234449Sobrienm4_include([m4/ltsugar.m4]) 1234234449Sobrienm4_include([m4/ltversion.m4]) 1235234449Sobrienm4_include([m4/lt~obsolete.m4]) 1236159764Sobrienm4_include([acinclude.m4]) 1237