1# generated automatically by aclocal 1.16.1 -*- Autoconf -*- 2 3# Copyright (C) 1996-2018 Free Software Foundation, Inc. 4 5# This file is free software; the Free Software Foundation 6# gives unlimited permission to copy and/or distribute it, 7# with or without modifications, as long as this notice is preserved. 8 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 12# PARTICULAR PURPOSE. 13 14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) 15# AM_CONDITIONAL -*- Autoconf -*- 16 17# Copyright (C) 1997-2018 Free Software Foundation, Inc. 18# 19# This file is free software; the Free Software Foundation 20# gives unlimited permission to copy and/or distribute it, 21# with or without modifications, as long as this notice is preserved. 22 23# AM_CONDITIONAL(NAME, SHELL-CONDITION) 24# ------------------------------------- 25# Define a conditional. 26AC_DEFUN([AM_CONDITIONAL], 27[AC_PREREQ([2.52])dnl 28 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 29 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 30AC_SUBST([$1_TRUE])dnl 31AC_SUBST([$1_FALSE])dnl 32_AM_SUBST_NOTMAKE([$1_TRUE])dnl 33_AM_SUBST_NOTMAKE([$1_FALSE])dnl 34m4_define([_AM_COND_VALUE_$1], [$2])dnl 35if $2; then 36 $1_TRUE= 37 $1_FALSE='#' 38else 39 $1_TRUE='#' 40 $1_FALSE= 41fi 42AC_CONFIG_COMMANDS_PRE( 43[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 44 AC_MSG_ERROR([[conditional "$1" was never defined. 45Usually this means the macro was only invoked conditionally.]]) 46fi])]) 47 48# Copyright (C) 1999-2018 Free Software Foundation, Inc. 49# 50# This file is free software; the Free Software Foundation 51# gives unlimited permission to copy and/or distribute it, 52# with or without modifications, as long as this notice is preserved. 53 54 55# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 56# written in clear, in which case automake, when reading aclocal.m4, 57# will think it sees a *use*, and therefore will trigger all it's 58# C support machinery. Also note that it means that autoscan, seeing 59# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 60 61 62# _AM_DEPENDENCIES(NAME) 63# ---------------------- 64# See how the compiler implements dependency checking. 65# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 66# We try a few techniques and use that to set a single cache variable. 67# 68# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 69# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 70# dependency, and given that the user is not expected to run this macro, 71# just rely on AC_PROG_CC. 72AC_DEFUN([_AM_DEPENDENCIES], 73[AC_REQUIRE([AM_SET_DEPDIR])dnl 74AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 75AC_REQUIRE([AM_MAKE_INCLUDE])dnl 76AC_REQUIRE([AM_DEP_TRACK])dnl 77 78m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 79 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 80 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 81 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 82 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 83 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 84 [depcc="$$1" am_compiler_list=]) 85 86AC_CACHE_CHECK([dependency style of $depcc], 87 [am_cv_$1_dependencies_compiler_type], 88[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 89 # We make a subdir and do the tests there. Otherwise we can end up 90 # making bogus files that we don't know about and never remove. For 91 # instance it was reported that on HP-UX the gcc test will end up 92 # making a dummy file named 'D' -- because '-MD' means "put the output 93 # in D". 94 rm -rf conftest.dir 95 mkdir conftest.dir 96 # Copy depcomp to subdir because otherwise we won't find it if we're 97 # using a relative directory. 98 cp "$am_depcomp" conftest.dir 99 cd conftest.dir 100 # We will build objects and dependencies in a subdirectory because 101 # it helps to detect inapplicable dependency modes. For instance 102 # both Tru64's cc and ICC support -MD to output dependencies as a 103 # side effect of compilation, but ICC will put the dependencies in 104 # the current directory while Tru64 will put them in the object 105 # directory. 106 mkdir sub 107 108 am_cv_$1_dependencies_compiler_type=none 109 if test "$am_compiler_list" = ""; then 110 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 111 fi 112 am__universal=false 113 m4_case([$1], [CC], 114 [case " $depcc " in #( 115 *\ -arch\ *\ -arch\ *) am__universal=true ;; 116 esac], 117 [CXX], 118 [case " $depcc " in #( 119 *\ -arch\ *\ -arch\ *) am__universal=true ;; 120 esac]) 121 122 for depmode in $am_compiler_list; do 123 # Setup a source with many dependencies, because some compilers 124 # like to wrap large dependency lists on column 80 (with \), and 125 # we should not choose a depcomp mode which is confused by this. 126 # 127 # We need to recreate these files for each test, as the compiler may 128 # overwrite some of them when testing with obscure command lines. 129 # This happens at least with the AIX C compiler. 130 : > sub/conftest.c 131 for i in 1 2 3 4 5 6; do 132 echo '#include "conftst'$i'.h"' >> sub/conftest.c 133 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 134 # Solaris 10 /bin/sh. 135 echo '/* dummy */' > sub/conftst$i.h 136 done 137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 138 139 # We check with '-c' and '-o' for the sake of the "dashmstdout" 140 # mode. It turns out that the SunPro C++ compiler does not properly 141 # handle '-M -o', and we need to detect this. Also, some Intel 142 # versions had trouble with output in subdirs. 143 am__obj=sub/conftest.${OBJEXT-o} 144 am__minus_obj="-o $am__obj" 145 case $depmode in 146 gcc) 147 # This depmode causes a compiler race in universal mode. 148 test "$am__universal" = false || continue 149 ;; 150 nosideeffect) 151 # After this tag, mechanisms are not by side-effect, so they'll 152 # only be used when explicitly requested. 153 if test "x$enable_dependency_tracking" = xyes; then 154 continue 155 else 156 break 157 fi 158 ;; 159 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 160 # This compiler won't grok '-c -o', but also, the minuso test has 161 # not run yet. These depmodes are late enough in the game, and 162 # so weak that their functioning should not be impacted. 163 am__obj=conftest.${OBJEXT-o} 164 am__minus_obj= 165 ;; 166 none) break ;; 167 esac 168 if depmode=$depmode \ 169 source=sub/conftest.c object=$am__obj \ 170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 171 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 172 >/dev/null 2>conftest.err && 173 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 175 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 177 # icc doesn't choke on unknown options, it will just issue warnings 178 # or remarks (even with -Werror). So we grep stderr for any message 179 # that says an option was ignored or not supported. 180 # When given -MP, icc 7.0 and 7.1 complain thusly: 181 # icc: Command line warning: ignoring option '-M'; no argument required 182 # The diagnosis changed in icc 8.0: 183 # icc: Command line remark: option '-MP' not supported 184 if (grep 'ignoring option' conftest.err || 185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 186 am_cv_$1_dependencies_compiler_type=$depmode 187 break 188 fi 189 fi 190 done 191 192 cd .. 193 rm -rf conftest.dir 194else 195 am_cv_$1_dependencies_compiler_type=none 196fi 197]) 198AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 199AM_CONDITIONAL([am__fastdep$1], [ 200 test "x$enable_dependency_tracking" != xno \ 201 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 202]) 203 204 205# AM_SET_DEPDIR 206# ------------- 207# Choose a directory name for dependency files. 208# This macro is AC_REQUIREd in _AM_DEPENDENCIES. 209AC_DEFUN([AM_SET_DEPDIR], 210[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 211AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 212]) 213 214 215# AM_DEP_TRACK 216# ------------ 217AC_DEFUN([AM_DEP_TRACK], 218[AC_ARG_ENABLE([dependency-tracking], [dnl 219AS_HELP_STRING( 220 [--enable-dependency-tracking], 221 [do not reject slow dependency extractors]) 222AS_HELP_STRING( 223 [--disable-dependency-tracking], 224 [speeds up one-time build])]) 225if test "x$enable_dependency_tracking" != xno; then 226 am_depcomp="$ac_aux_dir/depcomp" 227 AMDEPBACKSLASH='\' 228 am__nodep='_no' 229fi 230AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 231AC_SUBST([AMDEPBACKSLASH])dnl 232_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 233AC_SUBST([am__nodep])dnl 234_AM_SUBST_NOTMAKE([am__nodep])dnl 235]) 236 237# Generate code to set up dependency tracking. -*- Autoconf -*- 238 239# Copyright (C) 1999-2018 Free Software Foundation, Inc. 240# 241# This file is free software; the Free Software Foundation 242# gives unlimited permission to copy and/or distribute it, 243# with or without modifications, as long as this notice is preserved. 244 245# _AM_OUTPUT_DEPENDENCY_COMMANDS 246# ------------------------------ 247AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 248[{ 249 # Older Autoconf quotes --file arguments for eval, but not when files 250 # are listed without --file. Let's play safe and only enable the eval 251 # if we detect the quoting. 252 # TODO: see whether this extra hack can be removed once we start 253 # requiring Autoconf 2.70 or later. 254 AS_CASE([$CONFIG_FILES], 255 [*\'*], [eval set x "$CONFIG_FILES"], 256 [*], [set x $CONFIG_FILES]) 257 shift 258 # Used to flag and report bootstrapping failures. 259 am_rc=0 260 for am_mf 261 do 262 # Strip MF so we end up with the name of the file. 263 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 264 # Check whether this is an Automake generated Makefile which includes 265 # dependency-tracking related rules and includes. 266 # Grep'ing the whole file directly is not great: AIX grep has a line 267 # limit of 2048, but all sed's we know have understand at least 4000. 268 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 269 || continue 270 am_dirpart=`AS_DIRNAME(["$am_mf"])` 271 am_filepart=`AS_BASENAME(["$am_mf"])` 272 AM_RUN_LOG([cd "$am_dirpart" \ 273 && sed -e '/# am--include-marker/d' "$am_filepart" \ 274 | $MAKE -f - am--depfiles]) || am_rc=$? 275 done 276 if test $am_rc -ne 0; then 277 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 278 for automatic dependency tracking. Try re-running configure with the 279 '--disable-dependency-tracking' option to at least be able to build 280 the package (albeit without support for automatic dependency tracking).]) 281 fi 282 AS_UNSET([am_dirpart]) 283 AS_UNSET([am_filepart]) 284 AS_UNSET([am_mf]) 285 AS_UNSET([am_rc]) 286 rm -f conftest-deps.mk 287} 288])# _AM_OUTPUT_DEPENDENCY_COMMANDS 289 290 291# AM_OUTPUT_DEPENDENCY_COMMANDS 292# ----------------------------- 293# This macro should only be invoked once -- use via AC_REQUIRE. 294# 295# This code is only required when automatic dependency tracking is enabled. 296# This creates each '.Po' and '.Plo' makefile fragment that we'll need in 297# order to bootstrap the dependency handling code. 298AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 299[AC_CONFIG_COMMANDS([depfiles], 300 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 301 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 302 303# Copyright (C) 2003-2018 Free Software Foundation, Inc. 304# 305# This file is free software; the Free Software Foundation 306# gives unlimited permission to copy and/or distribute it, 307# with or without modifications, as long as this notice is preserved. 308 309# Check whether the underlying file-system supports filenames 310# with a leading dot. For instance MS-DOS doesn't. 311AC_DEFUN([AM_SET_LEADING_DOT], 312[rm -rf .tst 2>/dev/null 313mkdir .tst 2>/dev/null 314if test -d .tst; then 315 am__leading_dot=. 316else 317 am__leading_dot=_ 318fi 319rmdir .tst 2>/dev/null 320AC_SUBST([am__leading_dot])]) 321 322# Check to see how 'make' treats includes. -*- Autoconf -*- 323 324# Copyright (C) 2001-2018 Free Software Foundation, Inc. 325# 326# This file is free software; the Free Software Foundation 327# gives unlimited permission to copy and/or distribute it, 328# with or without modifications, as long as this notice is preserved. 329 330# AM_MAKE_INCLUDE() 331# ----------------- 332# Check whether make has an 'include' directive that can support all 333# the idioms we need for our automatic dependency tracking code. 334AC_DEFUN([AM_MAKE_INCLUDE], 335[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 336cat > confinc.mk << 'END' 337am__doit: 338 @echo this is the am__doit target >confinc.out 339.PHONY: am__doit 340END 341am__include="#" 342am__quote= 343# BSD make does it like this. 344echo '.include "confinc.mk" # ignored' > confmf.BSD 345# Other make implementations (GNU, Solaris 10, AIX) do it like this. 346echo 'include confinc.mk # ignored' > confmf.GNU 347_am_result=no 348for s in GNU BSD; do 349 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 350 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 351 ['0:this is the am__doit target'], 352 [AS_CASE([$s], 353 [BSD], [am__include='.include' am__quote='"'], 354 [am__include='include' am__quote=''])]) 355 if test "$am__include" != "#"; then 356 _am_result="yes ($s style)" 357 break 358 fi 359done 360rm -f confinc.* confmf.* 361AC_MSG_RESULT([${_am_result}]) 362AC_SUBST([am__include])]) 363AC_SUBST([am__quote])]) 364 365# Copyright (C) 1999-2018 Free Software Foundation, Inc. 366# 367# This file is free software; the Free Software Foundation 368# gives unlimited permission to copy and/or distribute it, 369# with or without modifications, as long as this notice is preserved. 370 371# _AM_PROG_CC_C_O 372# --------------- 373# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 374# to automatically call this. 375AC_DEFUN([_AM_PROG_CC_C_O], 376[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 377AC_REQUIRE_AUX_FILE([compile])dnl 378AC_LANG_PUSH([C])dnl 379AC_CACHE_CHECK( 380 [whether $CC understands -c and -o together], 381 [am_cv_prog_cc_c_o], 382 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 383 # Make sure it works both with $CC and with simple cc. 384 # Following AC_PROG_CC_C_O, we do the test twice because some 385 # compilers refuse to overwrite an existing .o file with -o, 386 # though they will create one. 387 am_cv_prog_cc_c_o=yes 388 for am_i in 1 2; do 389 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 390 && test -f conftest2.$ac_objext; then 391 : OK 392 else 393 am_cv_prog_cc_c_o=no 394 break 395 fi 396 done 397 rm -f core conftest* 398 unset am_i]) 399if test "$am_cv_prog_cc_c_o" != yes; then 400 # Losing compiler, so override with the script. 401 # FIXME: It is wrong to rewrite CC. 402 # But if we don't then we get into trouble of one sort or another. 403 # A longer-term fix would be to have automake use am__CC in this case, 404 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 405 CC="$am_aux_dir/compile $CC" 406fi 407AC_LANG_POP([C])]) 408 409# For backward compatibility. 410AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 411 412# Copyright (C) 2001-2018 Free Software Foundation, Inc. 413# 414# This file is free software; the Free Software Foundation 415# gives unlimited permission to copy and/or distribute it, 416# with or without modifications, as long as this notice is preserved. 417 418# AM_RUN_LOG(COMMAND) 419# ------------------- 420# Run COMMAND, save the exit status in ac_status, and log it. 421# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 422AC_DEFUN([AM_RUN_LOG], 423[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 424 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 425 ac_status=$? 426 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 427 (exit $ac_status); }]) 428 429# Copyright (C) 2006-2018 Free Software Foundation, Inc. 430# 431# This file is free software; the Free Software Foundation 432# gives unlimited permission to copy and/or distribute it, 433# with or without modifications, as long as this notice is preserved. 434 435# _AM_SUBST_NOTMAKE(VARIABLE) 436# --------------------------- 437# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 438# This macro is traced by Automake. 439AC_DEFUN([_AM_SUBST_NOTMAKE]) 440 441# AM_SUBST_NOTMAKE(VARIABLE) 442# -------------------------- 443# Public sister of _AM_SUBST_NOTMAKE. 444AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 445 446m4_include([m4/ax_append_flag.m4]) 447m4_include([m4/ax_append_link_flags.m4]) 448m4_include([m4/ax_check_compile_flag.m4]) 449m4_include([m4/ax_check_link_flag.m4]) 450m4_include([m4/ax_lib_socket_nsl.m4]) 451m4_include([m4/ax_pthread.m4]) 452m4_include([m4/ax_require_defined.m4]) 453m4_include([m4/my_append_compile_flags.m4]) 454m4_include([m4/my_func_makecontext.m4]) 455m4_include([m4/my_lib_readline.m4]) 456m4_include([m4/my_terminfo.m4]) 457m4_include([m4/my_windows_api.m4]) 458m4_include([m4/my_working_in6_is_addr_v4mapped.m4]) 459