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