1 1.1 christos # generated automatically by aclocal 1.15.1 -*- Autoconf -*- 2 1.1 christos 3 1.1 christos # Copyright (C) 1996-2017 Free Software Foundation, Inc. 4 1.1 christos 5 1.1 christos # This file is free software; the Free Software Foundation 6 1.1 christos # gives unlimited permission to copy and/or distribute it, 7 1.1 christos # with or without modifications, as long as this notice is preserved. 8 1.1 christos 9 1.1 christos # This program is distributed in the hope that it will be useful, 10 1.1 christos # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11 1.1 christos # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12 1.1 christos # PARTICULAR PURPOSE. 13 1.1 christos 14 1.1 christos m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15 1.1 christos m4_ifndef([AC_AUTOCONF_VERSION], 16 1.1 christos [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17 1.1 christos m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 18 1.1 christos [m4_warning([this file was generated for autoconf 2.69. 19 1.1 christos You have another version of autoconf. It may work, but is not guaranteed to. 20 1.1 christos If you have problems, you may need to regenerate the build system entirely. 21 1.1 christos To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 1.1 christos 23 1.1 christos # Copyright (C) 2002-2017 Free Software Foundation, Inc. 24 1.1 christos # 25 1.1 christos # This file is free software; the Free Software Foundation 26 1.1 christos # gives unlimited permission to copy and/or distribute it, 27 1.1 christos # with or without modifications, as long as this notice is preserved. 28 1.1 christos 29 1.1 christos # AM_AUTOMAKE_VERSION(VERSION) 30 1.1 christos # ---------------------------- 31 1.1 christos # Automake X.Y traces this macro to ensure aclocal.m4 has been 32 1.1 christos # generated from the m4 files accompanying Automake X.Y. 33 1.1 christos # (This private macro should not be called outside this file.) 34 1.1 christos AC_DEFUN([AM_AUTOMAKE_VERSION], 35 1.1 christos [am__api_version='1.15' 36 1.1 christos dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 37 1.1 christos dnl require some minimum version. Point them to the right macro. 38 1.1 christos m4_if([$1], [1.15.1], [], 39 1.1 christos [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 40 1.1 christos ]) 41 1.1 christos 42 1.1 christos # _AM_AUTOCONF_VERSION(VERSION) 43 1.1 christos # ----------------------------- 44 1.1 christos # aclocal traces this macro to find the Autoconf version. 45 1.1 christos # This is a private macro too. Using m4_define simplifies 46 1.1 christos # the logic in aclocal, which can simply ignore this definition. 47 1.1 christos m4_define([_AM_AUTOCONF_VERSION], []) 48 1.1 christos 49 1.1 christos # AM_SET_CURRENT_AUTOMAKE_VERSION 50 1.1 christos # ------------------------------- 51 1.1 christos # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 52 1.1 christos # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 53 1.1 christos AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 54 1.1 christos [AM_AUTOMAKE_VERSION([1.15.1])dnl 55 1.1 christos m4_ifndef([AC_AUTOCONF_VERSION], 56 1.1 christos [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 57 1.1 christos _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 58 1.1 christos 59 1.1 christos # Copyright (C) 2011-2017 Free Software Foundation, Inc. 60 1.1 christos # 61 1.1 christos # This file is free software; the Free Software Foundation 62 1.1 christos # gives unlimited permission to copy and/or distribute it, 63 1.1 christos # with or without modifications, as long as this notice is preserved. 64 1.1 christos 65 1.1 christos # AM_PROG_AR([ACT-IF-FAIL]) 66 1.1 christos # ------------------------- 67 1.1 christos # Try to determine the archiver interface, and trigger the ar-lib wrapper 68 1.1 christos # if it is needed. If the detection of archiver interface fails, run 69 1.1 christos # ACT-IF-FAIL (default is to abort configure with a proper error message). 70 1.1 christos AC_DEFUN([AM_PROG_AR], 71 1.1 christos [AC_BEFORE([$0], [LT_INIT])dnl 72 1.1 christos AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl 73 1.1 christos AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 74 1.1 christos AC_REQUIRE_AUX_FILE([ar-lib])dnl 75 1.1 christos AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) 76 1.1 christos : ${AR=ar} 77 1.1 christos 78 1.1 christos AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface], 79 1.1 christos [AC_LANG_PUSH([C]) 80 1.1 christos am_cv_ar_interface=ar 81 1.1 christos AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])], 82 1.1 christos [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 83 1.1 christos AC_TRY_EVAL([am_ar_try]) 84 1.1 christos if test "$ac_status" -eq 0; then 85 1.1 christos am_cv_ar_interface=ar 86 1.1 christos else 87 1.1 christos am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD' 88 1.1 christos AC_TRY_EVAL([am_ar_try]) 89 1.1 christos if test "$ac_status" -eq 0; then 90 1.1 christos am_cv_ar_interface=lib 91 1.1 christos else 92 1.1 christos am_cv_ar_interface=unknown 93 1.1 christos fi 94 1.1 christos fi 95 1.1 christos rm -f conftest.lib libconftest.a 96 1.1 christos ]) 97 1.1 christos AC_LANG_POP([C])]) 98 1.1 christos 99 1.1 christos case $am_cv_ar_interface in 100 1.1 christos ar) 101 1.1 christos ;; 102 1.1 christos lib) 103 1.1 christos # Microsoft lib, so override with the ar-lib wrapper script. 104 1.1 christos # FIXME: It is wrong to rewrite AR. 105 1.1 christos # But if we don't then we get into trouble of one sort or another. 106 1.1 christos # A longer-term fix would be to have automake use am__AR in this case, 107 1.1 christos # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 108 1.1 christos # similar. 109 1.1 christos AR="$am_aux_dir/ar-lib $AR" 110 1.1 christos ;; 111 1.1 christos unknown) 112 1.1 christos m4_default([$1], 113 1.1 christos [AC_MSG_ERROR([could not determine $AR interface])]) 114 1.1 christos ;; 115 1.1 christos esac 116 1.1 christos AC_SUBST([AR])dnl 117 1.1 christos ]) 118 1.1 christos 119 1.1 christos # AM_AUX_DIR_EXPAND -*- Autoconf -*- 120 1.1 christos 121 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 122 1.1 christos # 123 1.1 christos # This file is free software; the Free Software Foundation 124 1.1 christos # gives unlimited permission to copy and/or distribute it, 125 1.1 christos # with or without modifications, as long as this notice is preserved. 126 1.1 christos 127 1.1 christos # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 128 1.1 christos # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 129 1.1 christos # '$srcdir', '$srcdir/..', or '$srcdir/../..'. 130 1.1 christos # 131 1.1 christos # Of course, Automake must honor this variable whenever it calls a 132 1.1 christos # tool from the auxiliary directory. The problem is that $srcdir (and 133 1.1 christos # therefore $ac_aux_dir as well) can be either absolute or relative, 134 1.1 christos # depending on how configure is run. This is pretty annoying, since 135 1.1 christos # it makes $ac_aux_dir quite unusable in subdirectories: in the top 136 1.1 christos # source directory, any form will work fine, but in subdirectories a 137 1.1 christos # relative path needs to be adjusted first. 138 1.1 christos # 139 1.1 christos # $ac_aux_dir/missing 140 1.1 christos # fails when called from a subdirectory if $ac_aux_dir is relative 141 1.1 christos # $top_srcdir/$ac_aux_dir/missing 142 1.1 christos # fails if $ac_aux_dir is absolute, 143 1.1 christos # fails when called from a subdirectory in a VPATH build with 144 1.1 christos # a relative $ac_aux_dir 145 1.1 christos # 146 1.1 christos # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 147 1.1 christos # are both prefixed by $srcdir. In an in-source build this is usually 148 1.1 christos # harmless because $srcdir is '.', but things will broke when you 149 1.1 christos # start a VPATH build or use an absolute $srcdir. 150 1.1 christos # 151 1.1 christos # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 152 1.1 christos # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 153 1.1 christos # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 154 1.1 christos # and then we would define $MISSING as 155 1.1 christos # MISSING="\${SHELL} $am_aux_dir/missing" 156 1.1 christos # This will work as long as MISSING is not called from configure, because 157 1.1 christos # unfortunately $(top_srcdir) has no meaning in configure. 158 1.1 christos # However there are other variables, like CC, which are often used in 159 1.1 christos # configure, and could therefore not use this "fixed" $ac_aux_dir. 160 1.1 christos # 161 1.1 christos # Another solution, used here, is to always expand $ac_aux_dir to an 162 1.1 christos # absolute PATH. The drawback is that using absolute paths prevent a 163 1.1 christos # configured tree to be moved without reconfiguration. 164 1.1 christos 165 1.1 christos AC_DEFUN([AM_AUX_DIR_EXPAND], 166 1.1 christos [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 167 1.1 christos # Expand $ac_aux_dir to an absolute path. 168 1.1 christos am_aux_dir=`cd "$ac_aux_dir" && pwd` 169 1.1 christos ]) 170 1.1 christos 171 1.1 christos # AM_CONDITIONAL -*- Autoconf -*- 172 1.1 christos 173 1.1 christos # Copyright (C) 1997-2017 Free Software Foundation, Inc. 174 1.1 christos # 175 1.1 christos # This file is free software; the Free Software Foundation 176 1.1 christos # gives unlimited permission to copy and/or distribute it, 177 1.1 christos # with or without modifications, as long as this notice is preserved. 178 1.1 christos 179 1.1 christos # AM_CONDITIONAL(NAME, SHELL-CONDITION) 180 1.1 christos # ------------------------------------- 181 1.1 christos # Define a conditional. 182 1.1 christos AC_DEFUN([AM_CONDITIONAL], 183 1.1 christos [AC_PREREQ([2.52])dnl 184 1.1 christos m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 185 1.1 christos [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 186 1.1 christos AC_SUBST([$1_TRUE])dnl 187 1.1 christos AC_SUBST([$1_FALSE])dnl 188 1.1 christos _AM_SUBST_NOTMAKE([$1_TRUE])dnl 189 1.1 christos _AM_SUBST_NOTMAKE([$1_FALSE])dnl 190 1.1 christos m4_define([_AM_COND_VALUE_$1], [$2])dnl 191 1.1 christos if $2; then 192 1.1 christos $1_TRUE= 193 1.1 christos $1_FALSE='#' 194 1.1 christos else 195 1.1 christos $1_TRUE='#' 196 1.1 christos $1_FALSE= 197 1.1 christos fi 198 1.1 christos AC_CONFIG_COMMANDS_PRE( 199 1.1 christos [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 200 1.1 christos AC_MSG_ERROR([[conditional "$1" was never defined. 201 1.1 christos Usually this means the macro was only invoked conditionally.]]) 202 1.1 christos fi])]) 203 1.1 christos 204 1.1 christos # Copyright (C) 1999-2017 Free Software Foundation, Inc. 205 1.1 christos # 206 1.1 christos # This file is free software; the Free Software Foundation 207 1.1 christos # gives unlimited permission to copy and/or distribute it, 208 1.1 christos # with or without modifications, as long as this notice is preserved. 209 1.1 christos 210 1.1 christos 211 1.1 christos # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 212 1.1 christos # written in clear, in which case automake, when reading aclocal.m4, 213 1.1 christos # will think it sees a *use*, and therefore will trigger all it's 214 1.1 christos # C support machinery. Also note that it means that autoscan, seeing 215 1.1 christos # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 216 1.1 christos 217 1.1 christos 218 1.1 christos # _AM_DEPENDENCIES(NAME) 219 1.1 christos # ---------------------- 220 1.1 christos # See how the compiler implements dependency checking. 221 1.1 christos # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 222 1.1 christos # We try a few techniques and use that to set a single cache variable. 223 1.1 christos # 224 1.1 christos # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 225 1.1 christos # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 226 1.1 christos # dependency, and given that the user is not expected to run this macro, 227 1.1 christos # just rely on AC_PROG_CC. 228 1.1 christos AC_DEFUN([_AM_DEPENDENCIES], 229 1.1 christos [AC_REQUIRE([AM_SET_DEPDIR])dnl 230 1.1 christos AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 231 1.1 christos AC_REQUIRE([AM_MAKE_INCLUDE])dnl 232 1.1 christos AC_REQUIRE([AM_DEP_TRACK])dnl 233 1.1 christos 234 1.1 christos m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 235 1.1 christos [$1], [CXX], [depcc="$CXX" am_compiler_list=], 236 1.1 christos [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 237 1.1 christos [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 238 1.1 christos [$1], [UPC], [depcc="$UPC" am_compiler_list=], 239 1.1 christos [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 240 1.1 christos [depcc="$$1" am_compiler_list=]) 241 1.1 christos 242 1.1 christos AC_CACHE_CHECK([dependency style of $depcc], 243 1.1 christos [am_cv_$1_dependencies_compiler_type], 244 1.1 christos [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 245 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up 246 1.1 christos # making bogus files that we don't know about and never remove. For 247 1.1 christos # instance it was reported that on HP-UX the gcc test will end up 248 1.1 christos # making a dummy file named 'D' -- because '-MD' means "put the output 249 1.1 christos # in D". 250 1.1 christos rm -rf conftest.dir 251 1.1 christos mkdir conftest.dir 252 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're 253 1.1 christos # using a relative directory. 254 1.1 christos cp "$am_depcomp" conftest.dir 255 1.1 christos cd conftest.dir 256 1.1 christos # We will build objects and dependencies in a subdirectory because 257 1.1 christos # it helps to detect inapplicable dependency modes. For instance 258 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a 259 1.1 christos # side effect of compilation, but ICC will put the dependencies in 260 1.1 christos # the current directory while Tru64 will put them in the object 261 1.1 christos # directory. 262 1.1 christos mkdir sub 263 1.1 christos 264 1.1 christos am_cv_$1_dependencies_compiler_type=none 265 1.1 christos if test "$am_compiler_list" = ""; then 266 1.1 christos am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 267 1.1 christos fi 268 1.1 christos am__universal=false 269 1.1 christos m4_case([$1], [CC], 270 1.1 christos [case " $depcc " in #( 271 1.1 christos *\ -arch\ *\ -arch\ *) am__universal=true ;; 272 1.1 christos esac], 273 1.1 christos [CXX], 274 1.1 christos [case " $depcc " in #( 275 1.1 christos *\ -arch\ *\ -arch\ *) am__universal=true ;; 276 1.1 christos esac]) 277 1.1 christos 278 1.1 christos for depmode in $am_compiler_list; do 279 1.1 christos # Setup a source with many dependencies, because some compilers 280 1.1 christos # like to wrap large dependency lists on column 80 (with \), and 281 1.1 christos # we should not choose a depcomp mode which is confused by this. 282 1.1 christos # 283 1.1 christos # We need to recreate these files for each test, as the compiler may 284 1.1 christos # overwrite some of them when testing with obscure command lines. 285 1.1 christos # This happens at least with the AIX C compiler. 286 1.1 christos : > sub/conftest.c 287 1.1 christos for i in 1 2 3 4 5 6; do 288 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c 289 1.1 christos # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 290 1.1 christos # Solaris 10 /bin/sh. 291 1.1 christos echo '/* dummy */' > sub/conftst$i.h 292 1.1 christos done 293 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 294 1.1 christos 295 1.1 christos # We check with '-c' and '-o' for the sake of the "dashmstdout" 296 1.1 christos # mode. It turns out that the SunPro C++ compiler does not properly 297 1.1 christos # handle '-M -o', and we need to detect this. Also, some Intel 298 1.1 christos # versions had trouble with output in subdirs. 299 1.1 christos am__obj=sub/conftest.${OBJEXT-o} 300 1.1 christos am__minus_obj="-o $am__obj" 301 1.1 christos case $depmode in 302 1.1 christos gcc) 303 1.1 christos # This depmode causes a compiler race in universal mode. 304 1.1 christos test "$am__universal" = false || continue 305 1.1 christos ;; 306 1.1 christos nosideeffect) 307 1.1 christos # After this tag, mechanisms are not by side-effect, so they'll 308 1.1 christos # only be used when explicitly requested. 309 1.1 christos if test "x$enable_dependency_tracking" = xyes; then 310 1.1 christos continue 311 1.1 christos else 312 1.1 christos break 313 1.1 christos fi 314 1.1 christos ;; 315 1.1 christos msvc7 | msvc7msys | msvisualcpp | msvcmsys) 316 1.1 christos # This compiler won't grok '-c -o', but also, the minuso test has 317 1.1 christos # not run yet. These depmodes are late enough in the game, and 318 1.1 christos # so weak that their functioning should not be impacted. 319 1.1 christos am__obj=conftest.${OBJEXT-o} 320 1.1 christos am__minus_obj= 321 1.1 christos ;; 322 1.1 christos none) break ;; 323 1.1 christos esac 324 1.1 christos if depmode=$depmode \ 325 1.1 christos source=sub/conftest.c object=$am__obj \ 326 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 327 1.1 christos $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 328 1.1 christos >/dev/null 2>conftest.err && 329 1.1 christos grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 330 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 331 1.1 christos grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 332 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 333 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings 334 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message 335 1.1 christos # that says an option was ignored or not supported. 336 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly: 337 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required 338 1.1 christos # The diagnosis changed in icc 8.0: 339 1.1 christos # icc: Command line remark: option '-MP' not supported 340 1.1 christos if (grep 'ignoring option' conftest.err || 341 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 342 1.1 christos am_cv_$1_dependencies_compiler_type=$depmode 343 1.1 christos break 344 1.1 christos fi 345 1.1 christos fi 346 1.1 christos done 347 1.1 christos 348 1.1 christos cd .. 349 1.1 christos rm -rf conftest.dir 350 1.1 christos else 351 1.1 christos am_cv_$1_dependencies_compiler_type=none 352 1.1 christos fi 353 1.1 christos ]) 354 1.1 christos AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 355 1.1 christos AM_CONDITIONAL([am__fastdep$1], [ 356 1.1 christos test "x$enable_dependency_tracking" != xno \ 357 1.1 christos && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 358 1.1 christos ]) 359 1.1 christos 360 1.1 christos 361 1.1 christos # AM_SET_DEPDIR 362 1.1 christos # ------------- 363 1.1 christos # Choose a directory name for dependency files. 364 1.1 christos # This macro is AC_REQUIREd in _AM_DEPENDENCIES. 365 1.1 christos AC_DEFUN([AM_SET_DEPDIR], 366 1.1 christos [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 367 1.1 christos AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 368 1.1 christos ]) 369 1.1 christos 370 1.1 christos 371 1.1 christos # AM_DEP_TRACK 372 1.1 christos # ------------ 373 1.1 christos AC_DEFUN([AM_DEP_TRACK], 374 1.1 christos [AC_ARG_ENABLE([dependency-tracking], [dnl 375 1.1 christos AS_HELP_STRING( 376 1.1 christos [--enable-dependency-tracking], 377 1.1 christos [do not reject slow dependency extractors]) 378 1.1 christos AS_HELP_STRING( 379 1.1 christos [--disable-dependency-tracking], 380 1.1 christos [speeds up one-time build])]) 381 1.1 christos if test "x$enable_dependency_tracking" != xno; then 382 1.1 christos am_depcomp="$ac_aux_dir/depcomp" 383 1.1 christos AMDEPBACKSLASH='\' 384 1.1 christos am__nodep='_no' 385 1.1 christos fi 386 1.1 christos AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 387 1.1 christos AC_SUBST([AMDEPBACKSLASH])dnl 388 1.1 christos _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 389 1.1 christos AC_SUBST([am__nodep])dnl 390 1.1 christos _AM_SUBST_NOTMAKE([am__nodep])dnl 391 1.1 christos ]) 392 1.1 christos 393 1.1 christos # Generate code to set up dependency tracking. -*- Autoconf -*- 394 1.1 christos 395 1.1 christos # Copyright (C) 1999-2017 Free Software Foundation, Inc. 396 1.1 christos # 397 1.1 christos # This file is free software; the Free Software Foundation 398 1.1 christos # gives unlimited permission to copy and/or distribute it, 399 1.1 christos # with or without modifications, as long as this notice is preserved. 400 1.1 christos 401 1.1 christos 402 1.1 christos # _AM_OUTPUT_DEPENDENCY_COMMANDS 403 1.1 christos # ------------------------------ 404 1.1 christos AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 405 1.1 christos [{ 406 1.1 christos # Older Autoconf quotes --file arguments for eval, but not when files 407 1.1 christos # are listed without --file. Let's play safe and only enable the eval 408 1.1 christos # if we detect the quoting. 409 1.1 christos case $CONFIG_FILES in 410 1.1 christos *\'*) eval set x "$CONFIG_FILES" ;; 411 1.1 christos *) set x $CONFIG_FILES ;; 412 1.1 christos esac 413 1.1 christos shift 414 1.1 christos for mf 415 1.1 christos do 416 1.1 christos # Strip MF so we end up with the name of the file. 417 1.1 christos mf=`echo "$mf" | sed -e 's/:.*$//'` 418 1.1 christos # Check whether this is an Automake generated Makefile or not. 419 1.1 christos # We used to match only the files named 'Makefile.in', but 420 1.1 christos # some people rename them; so instead we look at the file content. 421 1.1 christos # Grep'ing the first line is not enough: some people post-process 422 1.1 christos # each Makefile.in and add a new line on top of each file to say so. 423 1.1 christos # Grep'ing the whole file is not good either: AIX grep has a line 424 1.1 christos # limit of 2048, but all sed's we know have understand at least 4000. 425 1.1 christos if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 426 1.1 christos dirpart=`AS_DIRNAME("$mf")` 427 1.1 christos else 428 1.1 christos continue 429 1.1 christos fi 430 1.1 christos # Extract the definition of DEPDIR, am__include, and am__quote 431 1.1 christos # from the Makefile without running 'make'. 432 1.1 christos DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 433 1.1 christos test -z "$DEPDIR" && continue 434 1.1 christos am__include=`sed -n 's/^am__include = //p' < "$mf"` 435 1.1 christos test -z "$am__include" && continue 436 1.1 christos am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 437 1.1 christos # Find all dependency output files, they are included files with 438 1.1 christos # $(DEPDIR) in their names. We invoke sed twice because it is the 439 1.1 christos # simplest approach to changing $(DEPDIR) to its actual value in the 440 1.1 christos # expansion. 441 1.1 christos for file in `sed -n " 442 1.1 christos s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 443 1.1 christos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 444 1.1 christos # Make sure the directory exists. 445 1.1 christos test -f "$dirpart/$file" && continue 446 1.1 christos fdir=`AS_DIRNAME(["$file"])` 447 1.1 christos AS_MKDIR_P([$dirpart/$fdir]) 448 1.1 christos # echo "creating $dirpart/$file" 449 1.1 christos echo '# dummy' > "$dirpart/$file" 450 1.1 christos done 451 1.1 christos done 452 1.1 christos } 453 1.1 christos ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 454 1.1 christos 455 1.1 christos 456 1.1 christos # AM_OUTPUT_DEPENDENCY_COMMANDS 457 1.1 christos # ----------------------------- 458 1.1 christos # This macro should only be invoked once -- use via AC_REQUIRE. 459 1.1 christos # 460 1.1 christos # This code is only required when automatic dependency tracking 461 1.1 christos # is enabled. FIXME. This creates each '.P' file that we will 462 1.1 christos # need in order to bootstrap the dependency handling code. 463 1.1 christos AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 464 1.1 christos [AC_CONFIG_COMMANDS([depfiles], 465 1.1 christos [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 466 1.1 christos [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 467 1.1 christos ]) 468 1.1 christos 469 1.1 christos # Do all the work for Automake. -*- Autoconf -*- 470 1.1 christos 471 1.1 christos # Copyright (C) 1996-2017 Free Software Foundation, Inc. 472 1.1 christos # 473 1.1 christos # This file is free software; the Free Software Foundation 474 1.1 christos # gives unlimited permission to copy and/or distribute it, 475 1.1 christos # with or without modifications, as long as this notice is preserved. 476 1.1 christos 477 1.1 christos # This macro actually does too much. Some checks are only needed if 478 1.1 christos # your package does certain things. But this isn't really a big deal. 479 1.1 christos 480 1.1 christos dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 481 1.1 christos m4_define([AC_PROG_CC], 482 1.1 christos m4_defn([AC_PROG_CC]) 483 1.1 christos [_AM_PROG_CC_C_O 484 1.1 christos ]) 485 1.1 christos 486 1.1 christos # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 487 1.1 christos # AM_INIT_AUTOMAKE([OPTIONS]) 488 1.1 christos # ----------------------------------------------- 489 1.1 christos # The call with PACKAGE and VERSION arguments is the old style 490 1.1 christos # call (pre autoconf-2.50), which is being phased out. PACKAGE 491 1.1 christos # and VERSION should now be passed to AC_INIT and removed from 492 1.1 christos # the call to AM_INIT_AUTOMAKE. 493 1.1 christos # We support both call styles for the transition. After 494 1.1 christos # the next Automake release, Autoconf can make the AC_INIT 495 1.1 christos # arguments mandatory, and then we can depend on a new Autoconf 496 1.1 christos # release and drop the old call support. 497 1.1 christos AC_DEFUN([AM_INIT_AUTOMAKE], 498 1.1 christos [AC_PREREQ([2.65])dnl 499 1.1 christos dnl Autoconf wants to disallow AM_ names. We explicitly allow 500 1.1 christos dnl the ones we care about. 501 1.1 christos m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 502 1.1 christos AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 503 1.1 christos AC_REQUIRE([AC_PROG_INSTALL])dnl 504 1.1 christos if test "`cd $srcdir && pwd`" != "`pwd`"; then 505 1.1 christos # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 506 1.1 christos # is not polluted with repeated "-I." 507 1.1 christos AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 508 1.1 christos # test to see if srcdir already configured 509 1.1 christos if test -f $srcdir/config.status; then 510 1.1 christos AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 511 1.1 christos fi 512 1.1 christos fi 513 1.1 christos 514 1.1 christos # test whether we have cygpath 515 1.1 christos if test -z "$CYGPATH_W"; then 516 1.1 christos if (cygpath --version) >/dev/null 2>/dev/null; then 517 1.1 christos CYGPATH_W='cygpath -w' 518 1.1 christos else 519 1.1 christos CYGPATH_W=echo 520 1.1 christos fi 521 1.1 christos fi 522 1.1 christos AC_SUBST([CYGPATH_W]) 523 1.1 christos 524 1.1 christos # Define the identity of the package. 525 1.1 christos dnl Distinguish between old-style and new-style calls. 526 1.1 christos m4_ifval([$2], 527 1.1 christos [AC_DIAGNOSE([obsolete], 528 1.1 christos [$0: two- and three-arguments forms are deprecated.]) 529 1.1 christos m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 530 1.1 christos AC_SUBST([PACKAGE], [$1])dnl 531 1.1 christos AC_SUBST([VERSION], [$2])], 532 1.1 christos [_AM_SET_OPTIONS([$1])dnl 533 1.1 christos dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 534 1.1 christos m4_if( 535 1.1 christos m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), 536 1.1 christos [ok:ok],, 537 1.1 christos [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 538 1.1 christos AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 539 1.1 christos AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 540 1.1 christos 541 1.1 christos _AM_IF_OPTION([no-define],, 542 1.1 christos [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 543 1.1 christos AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 544 1.1 christos 545 1.1 christos # Some tools Automake needs. 546 1.1 christos AC_REQUIRE([AM_SANITY_CHECK])dnl 547 1.1 christos AC_REQUIRE([AC_ARG_PROGRAM])dnl 548 1.1 christos AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 549 1.1 christos AM_MISSING_PROG([AUTOCONF], [autoconf]) 550 1.1 christos AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 551 1.1 christos AM_MISSING_PROG([AUTOHEADER], [autoheader]) 552 1.1 christos AM_MISSING_PROG([MAKEINFO], [makeinfo]) 553 1.1 christos AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 554 1.1 christos AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 555 1.1 christos AC_REQUIRE([AC_PROG_MKDIR_P])dnl 556 1.1 christos # For better backward compatibility. To be removed once Automake 1.9.x 557 1.1 christos # dies out for good. For more background, see: 558 1.1 christos # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 559 1.1 christos # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 560 1.1 christos AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 561 1.1 christos # We need awk for the "check" target (and possibly the TAP driver). The 562 1.1 christos # system "awk" is bad on some platforms. 563 1.1 christos AC_REQUIRE([AC_PROG_AWK])dnl 564 1.1 christos AC_REQUIRE([AC_PROG_MAKE_SET])dnl 565 1.1 christos AC_REQUIRE([AM_SET_LEADING_DOT])dnl 566 1.1 christos _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 567 1.1 christos [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 568 1.1 christos [_AM_PROG_TAR([v7])])]) 569 1.1 christos _AM_IF_OPTION([no-dependencies],, 570 1.1 christos [AC_PROVIDE_IFELSE([AC_PROG_CC], 571 1.1 christos [_AM_DEPENDENCIES([CC])], 572 1.1 christos [m4_define([AC_PROG_CC], 573 1.1 christos m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 574 1.1 christos AC_PROVIDE_IFELSE([AC_PROG_CXX], 575 1.1 christos [_AM_DEPENDENCIES([CXX])], 576 1.1 christos [m4_define([AC_PROG_CXX], 577 1.1 christos m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 578 1.1 christos AC_PROVIDE_IFELSE([AC_PROG_OBJC], 579 1.1 christos [_AM_DEPENDENCIES([OBJC])], 580 1.1 christos [m4_define([AC_PROG_OBJC], 581 1.1 christos m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 582 1.1 christos AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 583 1.1 christos [_AM_DEPENDENCIES([OBJCXX])], 584 1.1 christos [m4_define([AC_PROG_OBJCXX], 585 1.1 christos m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 586 1.1 christos ]) 587 1.1 christos AC_REQUIRE([AM_SILENT_RULES])dnl 588 1.1 christos dnl The testsuite driver may need to know about EXEEXT, so add the 589 1.1 christos dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 590 1.1 christos dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 591 1.1 christos AC_CONFIG_COMMANDS_PRE(dnl 592 1.1 christos [m4_provide_if([_AM_COMPILER_EXEEXT], 593 1.1 christos [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 594 1.1 christos 595 1.1 christos # POSIX will say in a future version that running "rm -f" with no argument 596 1.1 christos # is OK; and we want to be able to make that assumption in our Makefile 597 1.1 christos # recipes. So use an aggressive probe to check that the usage we want is 598 1.1 christos # actually supported "in the wild" to an acceptable degree. 599 1.1 christos # See automake bug#10828. 600 1.1 christos # To make any issue more visible, cause the running configure to be aborted 601 1.1 christos # by default if the 'rm' program in use doesn't match our expectations; the 602 1.1 christos # user can still override this though. 603 1.1 christos if rm -f && rm -fr && rm -rf; then : OK; else 604 1.1 christos cat >&2 <<'END' 605 1.1 christos Oops! 606 1.1 christos 607 1.1 christos Your 'rm' program seems unable to run without file operands specified 608 1.1 christos on the command line, even when the '-f' option is present. This is contrary 609 1.1 christos to the behaviour of most rm programs out there, and not conforming with 610 1.1 christos the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 611 1.1 christos 612 1.1 christos Please tell bug-automake (a] gnu.org about your system, including the value 613 1.1 christos of your $PATH and any error possibly output before this message. This 614 1.1 christos can help us improve future automake versions. 615 1.1 christos 616 1.1 christos END 617 1.1 christos if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 618 1.1 christos echo 'Configuration will proceed anyway, since you have set the' >&2 619 1.1 christos echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 620 1.1 christos echo >&2 621 1.1 christos else 622 1.1 christos cat >&2 <<'END' 623 1.1 christos Aborting the configuration process, to ensure you take notice of the issue. 624 1.1 christos 625 1.1 christos You can download and install GNU coreutils to get an 'rm' implementation 626 1.1 christos that behaves properly: <http://www.gnu.org/software/coreutils/>. 627 1.1 christos 628 1.1 christos If you want to complete the configuration process using your problematic 629 1.1 christos 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 630 1.1 christos to "yes", and re-run configure. 631 1.1 christos 632 1.1 christos END 633 1.1 christos AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 634 1.1 christos fi 635 1.1 christos fi 636 1.1 christos dnl The trailing newline in this macro's definition is deliberate, for 637 1.1 christos dnl backward compatibility and to allow trailing 'dnl'-style comments 638 1.1 christos dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 639 1.1 christos ]) 640 1.1 christos 641 1.1 christos dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 642 1.1 christos dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 643 1.1 christos dnl mangled by Autoconf and run in a shell conditional statement. 644 1.1 christos m4_define([_AC_COMPILER_EXEEXT], 645 1.1 christos m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 646 1.1 christos 647 1.1 christos # When config.status generates a header, we must update the stamp-h file. 648 1.1 christos # This file resides in the same directory as the config header 649 1.1 christos # that is generated. The stamp files are numbered to have different names. 650 1.1 christos 651 1.1 christos # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 652 1.1 christos # loop where config.status creates the headers, so we can generate 653 1.1 christos # our stamp files there. 654 1.1 christos AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 655 1.1 christos [# Compute $1's index in $config_headers. 656 1.1 christos _am_arg=$1 657 1.1 christos _am_stamp_count=1 658 1.1 christos for _am_header in $config_headers :; do 659 1.1 christos case $_am_header in 660 1.1 christos $_am_arg | $_am_arg:* ) 661 1.1 christos break ;; 662 1.1 christos * ) 663 1.1 christos _am_stamp_count=`expr $_am_stamp_count + 1` ;; 664 1.1 christos esac 665 1.1 christos done 666 1.1 christos echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 667 1.1 christos 668 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 669 1.1 christos # 670 1.1 christos # This file is free software; the Free Software Foundation 671 1.1 christos # gives unlimited permission to copy and/or distribute it, 672 1.1 christos # with or without modifications, as long as this notice is preserved. 673 1.1 christos 674 1.1 christos # AM_PROG_INSTALL_SH 675 1.1 christos # ------------------ 676 1.1 christos # Define $install_sh. 677 1.1 christos AC_DEFUN([AM_PROG_INSTALL_SH], 678 1.1 christos [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 679 1.1 christos if test x"${install_sh+set}" != xset; then 680 1.1 christos case $am_aux_dir in 681 1.1 christos *\ * | *\ *) 682 1.1 christos install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 683 1.1 christos *) 684 1.1 christos install_sh="\${SHELL} $am_aux_dir/install-sh" 685 1.1 christos esac 686 1.1 christos fi 687 1.1 christos AC_SUBST([install_sh])]) 688 1.1 christos 689 1.1 christos # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 690 1.1 christos # From Jim Meyering 691 1.1 christos 692 1.1 christos # Copyright (C) 1996-2017 Free Software Foundation, Inc. 693 1.1 christos # 694 1.1 christos # This file is free software; the Free Software Foundation 695 1.1 christos # gives unlimited permission to copy and/or distribute it, 696 1.1 christos # with or without modifications, as long as this notice is preserved. 697 1.1 christos 698 1.1 christos # AM_MAINTAINER_MODE([DEFAULT-MODE]) 699 1.1 christos # ---------------------------------- 700 1.1 christos # Control maintainer-specific portions of Makefiles. 701 1.1 christos # Default is to disable them, unless 'enable' is passed literally. 702 1.1 christos # For symmetry, 'disable' may be passed as well. Anyway, the user 703 1.1 christos # can override the default with the --enable/--disable switch. 704 1.1 christos AC_DEFUN([AM_MAINTAINER_MODE], 705 1.1 christos [m4_case(m4_default([$1], [disable]), 706 1.1 christos [enable], [m4_define([am_maintainer_other], [disable])], 707 1.1 christos [disable], [m4_define([am_maintainer_other], [enable])], 708 1.1 christos [m4_define([am_maintainer_other], [enable]) 709 1.1 christos m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 710 1.1 christos AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 711 1.1 christos dnl maintainer-mode's default is 'disable' unless 'enable' is passed 712 1.1 christos AC_ARG_ENABLE([maintainer-mode], 713 1.1 christos [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 714 1.1 christos am_maintainer_other[ make rules and dependencies not useful 715 1.1 christos (and sometimes confusing) to the casual installer])], 716 1.1 christos [USE_MAINTAINER_MODE=$enableval], 717 1.1 christos [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 718 1.1 christos AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 719 1.1 christos AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 720 1.1 christos MAINT=$MAINTAINER_MODE_TRUE 721 1.1 christos AC_SUBST([MAINT])dnl 722 1.1 christos ] 723 1.1 christos ) 724 1.1 christos 725 1.1 christos # Check to see how 'make' treats includes. -*- Autoconf -*- 726 1.1 christos 727 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 728 1.1 christos # 729 1.1 christos # This file is free software; the Free Software Foundation 730 1.1 christos # gives unlimited permission to copy and/or distribute it, 731 1.1 christos # with or without modifications, as long as this notice is preserved. 732 1.1 christos 733 1.1 christos # AM_MAKE_INCLUDE() 734 1.1 christos # ----------------- 735 1.1 christos # Check to see how make treats includes. 736 1.1 christos AC_DEFUN([AM_MAKE_INCLUDE], 737 1.1 christos [am_make=${MAKE-make} 738 1.1 christos cat > confinc << 'END' 739 1.1 christos am__doit: 740 1.1 christos @echo this is the am__doit target 741 1.1 christos .PHONY: am__doit 742 1.1 christos END 743 1.1 christos # If we don't find an include directive, just comment out the code. 744 1.1 christos AC_MSG_CHECKING([for style of include used by $am_make]) 745 1.1 christos am__include="#" 746 1.1 christos am__quote= 747 1.1 christos _am_result=none 748 1.1 christos # First try GNU make style include. 749 1.1 christos echo "include confinc" > confmf 750 1.1 christos # Ignore all kinds of additional output from 'make'. 751 1.1 christos case `$am_make -s -f confmf 2> /dev/null` in #( 752 1.1 christos *the\ am__doit\ target*) 753 1.1 christos am__include=include 754 1.1 christos am__quote= 755 1.1 christos _am_result=GNU 756 1.1 christos ;; 757 1.1 christos esac 758 1.1 christos # Now try BSD make style include. 759 1.1 christos if test "$am__include" = "#"; then 760 1.1 christos echo '.include "confinc"' > confmf 761 1.1 christos case `$am_make -s -f confmf 2> /dev/null` in #( 762 1.1 christos *the\ am__doit\ target*) 763 1.1 christos am__include=.include 764 1.1 christos am__quote="\"" 765 1.1 christos _am_result=BSD 766 1.1 christos ;; 767 1.1 christos esac 768 1.1 christos fi 769 1.1 christos AC_SUBST([am__include]) 770 1.1 christos AC_SUBST([am__quote]) 771 1.1 christos AC_MSG_RESULT([$_am_result]) 772 1.1 christos rm -f confinc confmf 773 1.1 christos ]) 774 1.1 christos 775 1.1 christos # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 776 1.1 christos 777 1.1 christos # Copyright (C) 1997-2017 Free Software Foundation, Inc. 778 1.1 christos # 779 1.1 christos # This file is free software; the Free Software Foundation 780 1.1 christos # gives unlimited permission to copy and/or distribute it, 781 1.1 christos # with or without modifications, as long as this notice is preserved. 782 1.1 christos 783 1.1 christos # AM_MISSING_PROG(NAME, PROGRAM) 784 1.1 christos # ------------------------------ 785 1.1 christos AC_DEFUN([AM_MISSING_PROG], 786 1.1 christos [AC_REQUIRE([AM_MISSING_HAS_RUN]) 787 1.1 christos $1=${$1-"${am_missing_run}$2"} 788 1.1 christos AC_SUBST($1)]) 789 1.1 christos 790 1.1 christos # AM_MISSING_HAS_RUN 791 1.1 christos # ------------------ 792 1.1 christos # Define MISSING if not defined so far and test if it is modern enough. 793 1.1 christos # If it is, set am_missing_run to use it, otherwise, to nothing. 794 1.1 christos AC_DEFUN([AM_MISSING_HAS_RUN], 795 1.1 christos [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 796 1.1 christos AC_REQUIRE_AUX_FILE([missing])dnl 797 1.1 christos if test x"${MISSING+set}" != xset; then 798 1.1 christos case $am_aux_dir in 799 1.1 christos *\ * | *\ *) 800 1.1 christos MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 801 1.1 christos *) 802 1.1 christos MISSING="\${SHELL} $am_aux_dir/missing" ;; 803 1.1 christos esac 804 1.1 christos fi 805 1.1 christos # Use eval to expand $SHELL 806 1.1 christos if eval "$MISSING --is-lightweight"; then 807 1.1 christos am_missing_run="$MISSING " 808 1.1 christos else 809 1.1 christos am_missing_run= 810 1.1 christos AC_MSG_WARN(['missing' script is too old or missing]) 811 1.1 christos fi 812 1.1 christos ]) 813 1.1 christos 814 1.1 christos # Helper functions for option handling. -*- Autoconf -*- 815 1.1 christos 816 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 817 1.1 christos # 818 1.1 christos # This file is free software; the Free Software Foundation 819 1.1 christos # gives unlimited permission to copy and/or distribute it, 820 1.1 christos # with or without modifications, as long as this notice is preserved. 821 1.1 christos 822 1.1 christos # _AM_MANGLE_OPTION(NAME) 823 1.1 christos # ----------------------- 824 1.1 christos AC_DEFUN([_AM_MANGLE_OPTION], 825 1.1 christos [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 826 1.1 christos 827 1.1 christos # _AM_SET_OPTION(NAME) 828 1.1 christos # -------------------- 829 1.1 christos # Set option NAME. Presently that only means defining a flag for this option. 830 1.1 christos AC_DEFUN([_AM_SET_OPTION], 831 1.1 christos [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 832 1.1 christos 833 1.1 christos # _AM_SET_OPTIONS(OPTIONS) 834 1.1 christos # ------------------------ 835 1.1 christos # OPTIONS is a space-separated list of Automake options. 836 1.1 christos AC_DEFUN([_AM_SET_OPTIONS], 837 1.1 christos [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 838 1.1 christos 839 1.1 christos # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 840 1.1 christos # ------------------------------------------- 841 1.1 christos # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 842 1.1 christos AC_DEFUN([_AM_IF_OPTION], 843 1.1 christos [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 844 1.1 christos 845 1.1 christos # Copyright (C) 1999-2017 Free Software Foundation, Inc. 846 1.1 christos # 847 1.1 christos # This file is free software; the Free Software Foundation 848 1.1 christos # gives unlimited permission to copy and/or distribute it, 849 1.1 christos # with or without modifications, as long as this notice is preserved. 850 1.1 christos 851 1.1 christos # _AM_PROG_CC_C_O 852 1.1 christos # --------------- 853 1.1 christos # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 854 1.1 christos # to automatically call this. 855 1.1 christos AC_DEFUN([_AM_PROG_CC_C_O], 856 1.1 christos [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 857 1.1 christos AC_REQUIRE_AUX_FILE([compile])dnl 858 1.1 christos AC_LANG_PUSH([C])dnl 859 1.1 christos AC_CACHE_CHECK( 860 1.1 christos [whether $CC understands -c and -o together], 861 1.1 christos [am_cv_prog_cc_c_o], 862 1.1 christos [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 863 1.1 christos # Make sure it works both with $CC and with simple cc. 864 1.1 christos # Following AC_PROG_CC_C_O, we do the test twice because some 865 1.1 christos # compilers refuse to overwrite an existing .o file with -o, 866 1.1 christos # though they will create one. 867 1.1 christos am_cv_prog_cc_c_o=yes 868 1.1 christos for am_i in 1 2; do 869 1.1 christos if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 870 1.1 christos && test -f conftest2.$ac_objext; then 871 1.1 christos : OK 872 1.1 christos else 873 1.1 christos am_cv_prog_cc_c_o=no 874 1.1 christos break 875 1.1 christos fi 876 1.1 christos done 877 1.1 christos rm -f core conftest* 878 1.1 christos unset am_i]) 879 1.1 christos if test "$am_cv_prog_cc_c_o" != yes; then 880 1.1 christos # Losing compiler, so override with the script. 881 1.1 christos # FIXME: It is wrong to rewrite CC. 882 1.1 christos # But if we don't then we get into trouble of one sort or another. 883 1.1 christos # A longer-term fix would be to have automake use am__CC in this case, 884 1.1 christos # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 885 1.1 christos CC="$am_aux_dir/compile $CC" 886 1.1 christos fi 887 1.1 christos AC_LANG_POP([C])]) 888 1.1 christos 889 1.1 christos # For backward compatibility. 890 1.1 christos AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 891 1.1 christos 892 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 893 1.1 christos # 894 1.1 christos # This file is free software; the Free Software Foundation 895 1.1 christos # gives unlimited permission to copy and/or distribute it, 896 1.1 christos # with or without modifications, as long as this notice is preserved. 897 1.1 christos 898 1.1 christos # AM_RUN_LOG(COMMAND) 899 1.1 christos # ------------------- 900 1.1 christos # Run COMMAND, save the exit status in ac_status, and log it. 901 1.1 christos # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 902 1.1 christos AC_DEFUN([AM_RUN_LOG], 903 1.1 christos [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 904 1.1 christos ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 905 1.1 christos ac_status=$? 906 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 907 1.1 christos (exit $ac_status); }]) 908 1.1 christos 909 1.1 christos # Check to make sure that the build environment is sane. -*- Autoconf -*- 910 1.1 christos 911 1.1 christos # Copyright (C) 1996-2017 Free Software Foundation, Inc. 912 1.1 christos # 913 1.1 christos # This file is free software; the Free Software Foundation 914 1.1 christos # gives unlimited permission to copy and/or distribute it, 915 1.1 christos # with or without modifications, as long as this notice is preserved. 916 1.1 christos 917 1.1 christos # AM_SANITY_CHECK 918 1.1 christos # --------------- 919 1.1 christos AC_DEFUN([AM_SANITY_CHECK], 920 1.1 christos [AC_MSG_CHECKING([whether build environment is sane]) 921 1.1 christos # Reject unsafe characters in $srcdir or the absolute working directory 922 1.1 christos # name. Accept space and tab only in the latter. 923 1.1 christos am_lf=' 924 1.1 christos ' 925 1.1 christos case `pwd` in 926 1.1 christos *[[\\\"\#\$\&\'\`$am_lf]]*) 927 1.1 christos AC_MSG_ERROR([unsafe absolute working directory name]);; 928 1.1 christos esac 929 1.1 christos case $srcdir in 930 1.1 christos *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 931 1.1 christos AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 932 1.1 christos esac 933 1.1 christos 934 1.1 christos # Do 'set' in a subshell so we don't clobber the current shell's 935 1.1 christos # arguments. Must try -L first in case configure is actually a 936 1.1 christos # symlink; some systems play weird games with the mod time of symlinks 937 1.1 christos # (eg FreeBSD returns the mod time of the symlink's containing 938 1.1 christos # directory). 939 1.1 christos if ( 940 1.1 christos am_has_slept=no 941 1.1 christos for am_try in 1 2; do 942 1.1 christos echo "timestamp, slept: $am_has_slept" > conftest.file 943 1.1 christos set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 944 1.1 christos if test "$[*]" = "X"; then 945 1.1 christos # -L didn't work. 946 1.1 christos set X `ls -t "$srcdir/configure" conftest.file` 947 1.1 christos fi 948 1.1 christos if test "$[*]" != "X $srcdir/configure conftest.file" \ 949 1.1 christos && test "$[*]" != "X conftest.file $srcdir/configure"; then 950 1.1 christos 951 1.1 christos # If neither matched, then we have a broken ls. This can happen 952 1.1 christos # if, for instance, CONFIG_SHELL is bash and it inherits a 953 1.1 christos # broken ls alias from the environment. This has actually 954 1.1 christos # happened. Such a system could not be considered "sane". 955 1.1 christos AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 956 1.1 christos alias in your environment]) 957 1.1 christos fi 958 1.1 christos if test "$[2]" = conftest.file || test $am_try -eq 2; then 959 1.1 christos break 960 1.1 christos fi 961 1.1 christos # Just in case. 962 1.1 christos sleep 1 963 1.1 christos am_has_slept=yes 964 1.1 christos done 965 1.1 christos test "$[2]" = conftest.file 966 1.1 christos ) 967 1.1 christos then 968 1.1 christos # Ok. 969 1.1 christos : 970 1.1 christos else 971 1.1 christos AC_MSG_ERROR([newly created file is older than distributed files! 972 1.1 christos Check your system clock]) 973 1.1 christos fi 974 1.1 christos AC_MSG_RESULT([yes]) 975 1.1 christos # If we didn't sleep, we still need to ensure time stamps of config.status and 976 1.1 christos # generated files are strictly newer. 977 1.1 christos am_sleep_pid= 978 1.1 christos if grep 'slept: no' conftest.file >/dev/null 2>&1; then 979 1.1 christos ( sleep 1 ) & 980 1.1 christos am_sleep_pid=$! 981 1.1 christos fi 982 1.1 christos AC_CONFIG_COMMANDS_PRE( 983 1.1 christos [AC_MSG_CHECKING([that generated files are newer than configure]) 984 1.1 christos if test -n "$am_sleep_pid"; then 985 1.1 christos # Hide warnings about reused PIDs. 986 1.1 christos wait $am_sleep_pid 2>/dev/null 987 1.1 christos fi 988 1.1 christos AC_MSG_RESULT([done])]) 989 1.1 christos rm -f conftest.file 990 1.1 christos ]) 991 1.1 christos 992 1.1 christos # Copyright (C) 2009-2017 Free Software Foundation, Inc. 993 1.1 christos # 994 1.1 christos # This file is free software; the Free Software Foundation 995 1.1 christos # gives unlimited permission to copy and/or distribute it, 996 1.1 christos # with or without modifications, as long as this notice is preserved. 997 1.1 christos 998 1.1 christos # AM_SILENT_RULES([DEFAULT]) 999 1.1 christos # -------------------------- 1000 1.1 christos # Enable less verbose build rules; with the default set to DEFAULT 1001 1.1 christos # ("yes" being less verbose, "no" or empty being verbose). 1002 1.1 christos AC_DEFUN([AM_SILENT_RULES], 1003 1.1 christos [AC_ARG_ENABLE([silent-rules], [dnl 1004 1.1 christos AS_HELP_STRING( 1005 1.1 christos [--enable-silent-rules], 1006 1.1 christos [less verbose build output (undo: "make V=1")]) 1007 1.1 christos AS_HELP_STRING( 1008 1.1 christos [--disable-silent-rules], 1009 1.1 christos [verbose build output (undo: "make V=0")])dnl 1010 1.1 christos ]) 1011 1.1 christos case $enable_silent_rules in @%:@ ((( 1012 1.1 christos yes) AM_DEFAULT_VERBOSITY=0;; 1013 1.1 christos no) AM_DEFAULT_VERBOSITY=1;; 1014 1.1 christos *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 1015 1.1 christos esac 1016 1.1 christos dnl 1017 1.1 christos dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 1018 1.1 christos dnl do not support nested variable expansions. 1019 1.1 christos dnl See automake bug#9928 and bug#10237. 1020 1.1 christos am_make=${MAKE-make} 1021 1.1 christos AC_CACHE_CHECK([whether $am_make supports nested variables], 1022 1.1 christos [am_cv_make_support_nested_variables], 1023 1.1 christos [if AS_ECHO([['TRUE=$(BAR$(V)) 1024 1.1 christos BAR0=false 1025 1.1 christos BAR1=true 1026 1.1 christos V=1 1027 1.1 christos am__doit: 1028 1.1 christos @$(TRUE) 1029 1.1 christos .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 1030 1.1 christos am_cv_make_support_nested_variables=yes 1031 1.1 christos else 1032 1.1 christos am_cv_make_support_nested_variables=no 1033 1.1 christos fi]) 1034 1.1 christos if test $am_cv_make_support_nested_variables = yes; then 1035 1.1 christos dnl Using '$V' instead of '$(V)' breaks IRIX make. 1036 1.1 christos AM_V='$(V)' 1037 1.1 christos AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 1038 1.1 christos else 1039 1.1 christos AM_V=$AM_DEFAULT_VERBOSITY 1040 1.1 christos AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 1041 1.1 christos fi 1042 1.1 christos AC_SUBST([AM_V])dnl 1043 1.1 christos AM_SUBST_NOTMAKE([AM_V])dnl 1044 1.1 christos AC_SUBST([AM_DEFAULT_V])dnl 1045 1.1 christos AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 1046 1.1 christos AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 1047 1.1 christos AM_BACKSLASH='\' 1048 1.1 christos AC_SUBST([AM_BACKSLASH])dnl 1049 1.1 christos _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 1050 1.1 christos ]) 1051 1.1 christos 1052 1.1 christos # Copyright (C) 2001-2017 Free Software Foundation, Inc. 1053 1.1 christos # 1054 1.1 christos # This file is free software; the Free Software Foundation 1055 1.1 christos # gives unlimited permission to copy and/or distribute it, 1056 1.1 christos # with or without modifications, as long as this notice is preserved. 1057 1.1 christos 1058 1.1 christos # AM_PROG_INSTALL_STRIP 1059 1.1 christos # --------------------- 1060 1.1 christos # One issue with vendor 'install' (even GNU) is that you can't 1061 1.1 christos # specify the program used to strip binaries. This is especially 1062 1.1 christos # annoying in cross-compiling environments, where the build's strip 1063 1.1 christos # is unlikely to handle the host's binaries. 1064 1.1 christos # Fortunately install-sh will honor a STRIPPROG variable, so we 1065 1.1 christos # always use install-sh in "make install-strip", and initialize 1066 1.1 christos # STRIPPROG with the value of the STRIP variable (set by the user). 1067 1.1 christos AC_DEFUN([AM_PROG_INSTALL_STRIP], 1068 1.1 christos [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 1069 1.1 christos # Installed binaries are usually stripped using 'strip' when the user 1070 1.1 christos # run "make install-strip". However 'strip' might not be the right 1071 1.1 christos # tool to use in cross-compilation environments, therefore Automake 1072 1.1 christos # will honor the 'STRIP' environment variable to overrule this program. 1073 1.1 christos dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 1074 1.1 christos if test "$cross_compiling" != no; then 1075 1.1 christos AC_CHECK_TOOL([STRIP], [strip], :) 1076 1.1 christos fi 1077 1.1 christos INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 1078 1.1 christos AC_SUBST([INSTALL_STRIP_PROGRAM])]) 1079 1.1 christos 1080 1.1 christos # Copyright (C) 2006-2017 Free Software Foundation, Inc. 1081 1.1 christos # 1082 1.1 christos # This file is free software; the Free Software Foundation 1083 1.1 christos # gives unlimited permission to copy and/or distribute it, 1084 1.1 christos # with or without modifications, as long as this notice is preserved. 1085 1.1 christos 1086 1.1 christos # _AM_SUBST_NOTMAKE(VARIABLE) 1087 1.1 christos # --------------------------- 1088 1.1 christos # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 1089 1.1 christos # This macro is traced by Automake. 1090 1.1 christos AC_DEFUN([_AM_SUBST_NOTMAKE]) 1091 1.1 christos 1092 1.1 christos # AM_SUBST_NOTMAKE(VARIABLE) 1093 1.1 christos # -------------------------- 1094 1.1 christos # Public sister of _AM_SUBST_NOTMAKE. 1095 1.1 christos AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 1096 1.1 christos 1097 1.1 christos # Check how to create a tarball. -*- Autoconf -*- 1098 1.1 christos 1099 1.1 christos # Copyright (C) 2004-2017 Free Software Foundation, Inc. 1100 1.1 christos # 1101 1.1 christos # This file is free software; the Free Software Foundation 1102 1.1 christos # gives unlimited permission to copy and/or distribute it, 1103 1.1 christos # with or without modifications, as long as this notice is preserved. 1104 1.1 christos 1105 1.1 christos # _AM_PROG_TAR(FORMAT) 1106 1.1 christos # -------------------- 1107 1.1 christos # Check how to create a tarball in format FORMAT. 1108 1.1 christos # FORMAT should be one of 'v7', 'ustar', or 'pax'. 1109 1.1 christos # 1110 1.1 christos # Substitute a variable $(am__tar) that is a command 1111 1.1 christos # writing to stdout a FORMAT-tarball containing the directory 1112 1.1 christos # $tardir. 1113 1.1 christos # tardir=directory && $(am__tar) > result.tar 1114 1.1 christos # 1115 1.1 christos # Substitute a variable $(am__untar) that extract such 1116 1.1 christos # a tarball read from stdin. 1117 1.1 christos # $(am__untar) < result.tar 1118 1.1 christos # 1119 1.1 christos AC_DEFUN([_AM_PROG_TAR], 1120 1.1 christos [# Always define AMTAR for backward compatibility. Yes, it's still used 1121 1.1 christos # in the wild :-( We should find a proper way to deprecate it ... 1122 1.1 christos AC_SUBST([AMTAR], ['$${TAR-tar}']) 1123 1.1 christos 1124 1.1 christos # We'll loop over all known methods to create a tar archive until one works. 1125 1.1 christos _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 1126 1.1 christos 1127 1.1 christos m4_if([$1], [v7], 1128 1.1 christos [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 1129 1.1 christos 1130 1.1 christos [m4_case([$1], 1131 1.1 christos [ustar], 1132 1.1 christos [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 1133 1.1 christos # There is notably a 21 bits limit for the UID and the GID. In fact, 1134 1.1 christos # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 1135 1.1 christos # and bug#13588). 1136 1.1 christos am_max_uid=2097151 # 2^21 - 1 1137 1.1 christos am_max_gid=$am_max_uid 1138 1.1 christos # The $UID and $GID variables are not portable, so we need to resort 1139 1.1 christos # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 1140 1.1 christos # below are definitely unexpected, so allow the users to see them 1141 1.1 christos # (that is, avoid stderr redirection). 1142 1.1 christos am_uid=`id -u || echo unknown` 1143 1.1 christos am_gid=`id -g || echo unknown` 1144 1.1 christos AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 1145 1.1 christos if test $am_uid -le $am_max_uid; then 1146 1.1 christos AC_MSG_RESULT([yes]) 1147 1.1 christos else 1148 1.1 christos AC_MSG_RESULT([no]) 1149 1.1 christos _am_tools=none 1150 1.1 christos fi 1151 1.1 christos AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 1152 1.1 christos if test $am_gid -le $am_max_gid; then 1153 1.1 christos AC_MSG_RESULT([yes]) 1154 1.1 christos else 1155 1.1 christos AC_MSG_RESULT([no]) 1156 1.1 christos _am_tools=none 1157 1.1 christos fi], 1158 1.1 christos 1159 1.1 christos [pax], 1160 1.1 christos [], 1161 1.1 christos 1162 1.1 christos [m4_fatal([Unknown tar format])]) 1163 1.1 christos 1164 1.1 christos AC_MSG_CHECKING([how to create a $1 tar archive]) 1165 1.1 christos 1166 1.1 christos # Go ahead even if we have the value already cached. We do so because we 1167 1.1 christos # need to set the values for the 'am__tar' and 'am__untar' variables. 1168 1.1 christos _am_tools=${am_cv_prog_tar_$1-$_am_tools} 1169 1.1 christos 1170 1.1 christos for _am_tool in $_am_tools; do 1171 1.1 christos case $_am_tool in 1172 1.1 christos gnutar) 1173 1.1 christos for _am_tar in tar gnutar gtar; do 1174 1.1 christos AM_RUN_LOG([$_am_tar --version]) && break 1175 1.1 christos done 1176 1.1 christos am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 1177 1.1 christos am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 1178 1.1 christos am__untar="$_am_tar -xf -" 1179 1.1 christos ;; 1180 1.1 christos plaintar) 1181 1.1 christos # Must skip GNU tar: if it does not support --format= it doesn't create 1182 1.1 christos # ustar tarball either. 1183 1.1 christos (tar --version) >/dev/null 2>&1 && continue 1184 1.1 christos am__tar='tar chf - "$$tardir"' 1185 1.1 christos am__tar_='tar chf - "$tardir"' 1186 1.1 christos am__untar='tar xf -' 1187 1.1 christos ;; 1188 1.1 christos pax) 1189 1.1 christos am__tar='pax -L -x $1 -w "$$tardir"' 1190 1.1 christos am__tar_='pax -L -x $1 -w "$tardir"' 1191 1.1 christos am__untar='pax -r' 1192 1.1 christos ;; 1193 1.1 christos cpio) 1194 1.1 christos am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 1195 1.1 christos am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 1196 1.1 christos am__untar='cpio -i -H $1 -d' 1197 1.1 christos ;; 1198 1.1 christos none) 1199 1.1 christos am__tar=false 1200 1.1 christos am__tar_=false 1201 1.1 christos am__untar=false 1202 1.1 christos ;; 1203 1.1 christos esac 1204 1.1 christos 1205 1.1 christos # If the value was cached, stop now. We just wanted to have am__tar 1206 1.1 christos # and am__untar set. 1207 1.1 christos test -n "${am_cv_prog_tar_$1}" && break 1208 1.1 christos 1209 1.1 christos # tar/untar a dummy directory, and stop if the command works. 1210 1.1 christos rm -rf conftest.dir 1211 1.1 christos mkdir conftest.dir 1212 1.1 christos echo GrepMe > conftest.dir/file 1213 1.1 christos AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 1214 1.1 christos rm -rf conftest.dir 1215 1.1 christos if test -s conftest.tar; then 1216 1.1 christos AM_RUN_LOG([$am__untar <conftest.tar]) 1217 1.1 christos AM_RUN_LOG([cat conftest.dir/file]) 1218 1.1 christos grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 1219 1.1 christos fi 1220 1.1 christos done 1221 1.1 christos rm -rf conftest.dir 1222 1.1 christos 1223 1.1 christos AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 1224 1.1 christos AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 1225 1.1 christos 1226 1.1 christos AC_SUBST([am__tar]) 1227 1.1 christos AC_SUBST([am__untar]) 1228 1.1 christos ]) # _AM_PROG_TAR 1229 1.1 christos 1230 1.1 christos m4_include([../bfd/acinclude.m4]) 1231 1.1 christos m4_include([../config/acx.m4]) 1232 1.1 christos m4_include([../config/depstand.m4]) 1233 1.1 christos m4_include([../config/enable.m4]) 1234 1.1 christos m4_include([../config/gettext-sister.m4]) 1235 1.1.1.3 christos m4_include([../config/gettext.m4]) 1236 1.1.1.3 christos m4_include([../config/iconv.m4]) 1237 1.1.1.3 christos m4_include([../config/intlmacosx.m4]) 1238 1.1.1.2 christos m4_include([../config/jobserver.m4]) 1239 1.1 christos m4_include([../config/lead-dot.m4]) 1240 1.1.1.3 christos m4_include([../config/lib-ld.m4]) 1241 1.1.1.3 christos m4_include([../config/lib-link.m4]) 1242 1.1.1.3 christos m4_include([../config/lib-prefix.m4]) 1243 1.1.1.3 christos m4_include([../config/mmap.m4]) 1244 1.1.1.3 christos m4_include([../config/nls.m4]) 1245 1.1 christos m4_include([../config/override.m4]) 1246 1.1.1.3 christos m4_include([../config/po.m4]) 1247 1.1.1.3 christos m4_include([../config/progtest.m4]) 1248 1.1 christos m4_include([../config/warnings.m4]) 1249 1.1 christos m4_include([../config/zlib.m4]) 1250 1.1 christos m4_include([../libtool.m4]) 1251 1.1 christos m4_include([../ltoptions.m4]) 1252 1.1 christos m4_include([../ltsugar.m4]) 1253 1.1 christos m4_include([../ltversion.m4]) 1254 1.1 christos m4_include([../lt~obsolete.m4]) 1255