1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for breakpad 0.1. 4# 5# Report bugs to <[email protected]>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 186 if (eval "$as_required") 2>/dev/null 187then : 188 as_have_required=yes 189else $as_nop 190 as_have_required=no 191fi 192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 193then : 194 195else $as_nop 196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 197as_found=false 198for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 199do 200 IFS=$as_save_IFS 201 case $as_dir in #((( 202 '') as_dir=./ ;; 203 */) ;; 204 *) as_dir=$as_dir/ ;; 205 esac 206 as_found=: 207 case $as_dir in #( 208 /*) 209 for as_base in sh bash ksh sh5; do 210 # Try only shells that exist, to save several forks. 211 as_shell=$as_dir$as_base 212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 214then : 215 CONFIG_SHELL=$as_shell as_have_required=yes 216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 217then : 218 break 2 219fi 220fi 221 done;; 222 esac 223 as_found=false 224done 225IFS=$as_save_IFS 226if $as_found 227then : 228 229else $as_nop 230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 232then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi 235fi 236 237 238 if test "x$CONFIG_SHELL" != x 239then : 240 export CONFIG_SHELL 241 # We cannot yet assume a decent shell, so we have to provide a 242# neutralization value for shells without unset; and this also 243# works around shells that cannot unset nonexistent variables. 244# Preserve -v and -x to the replacement shell. 245BASH_ENV=/dev/null 246ENV=/dev/null 247(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 248case $- in # (((( 249 *v*x* | *x*v* ) as_opts=-vx ;; 250 *v* ) as_opts=-v ;; 251 *x* ) as_opts=-x ;; 252 * ) as_opts= ;; 253esac 254exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 255# Admittedly, this is quite paranoid, since all the known shells bail 256# out after a failed `exec'. 257printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 258exit 255 259fi 260 261 if test x$as_have_required = xno 262then : 263 printf "%s\n" "$0: This script requires a shell more modern than all" 264 printf "%s\n" "$0: the shells that I found on your system." 265 if test ${ZSH_VERSION+y} ; then 266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 printf "%s\n" "$0: Please tell [email protected] and 270$0: [email protected] about your system, 271$0: including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315# as_fn_nop 316# --------- 317# Do nothing but, unlike ":", preserve the value of $?. 318as_fn_nop () 319{ 320 return $? 321} 322as_nop=as_fn_nop 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346printf "%s\n" X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 386then : 387 eval 'as_fn_append () 388 { 389 eval $1+=\$2 390 }' 391else $as_nop 392 as_fn_append () 393 { 394 eval $1=\$$1\$2 395 } 396fi # as_fn_append 397 398# as_fn_arith ARG... 399# ------------------ 400# Perform arithmetic evaluation on the ARGs, and store the result in the 401# global $as_val. Take advantage of shells that can avoid forks. The arguments 402# must be portable across $(()) and expr. 403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 404then : 405 eval 'as_fn_arith () 406 { 407 as_val=$(( $* )) 408 }' 409else $as_nop 410 as_fn_arith () 411 { 412 as_val=`expr "$@" || test $? -eq 1` 413 } 414fi # as_fn_arith 415 416# as_fn_nop 417# --------- 418# Do nothing but, unlike ":", preserve the value of $?. 419as_fn_nop () 420{ 421 return $? 422} 423as_nop=as_fn_nop 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 s/[$]LINENO.*/&-/ 498 t lineno 499 b 500 :lineno 501 N 502 :loop 503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 504 t loop 505 s/-\n.*// 506 ' >$as_me.lineno && 507 chmod +x "$as_me.lineno" || 508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 509 510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 511 # already done that, so ensure we don't try to do so again and fall 512 # in an infinite loop. This has already happened in practice. 513 _as_can_reexec=no; export _as_can_reexec 514 # Don't try to exec as it changes $[0], causing all sort of problems 515 # (the dirname of $[0] is not the place where we might find the 516 # original and so on. Autoconf is especially sensitive to this). 517 . "./$as_me.lineno" 518 # Exit status is that of the last command. 519 exit 520} 521 522 523# Determine whether it's possible to make 'echo' print without a newline. 524# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 525# for compatibility with existing Makefiles. 526ECHO_C= ECHO_N= ECHO_T= 527case `echo -n x` in #((((( 528-n*) 529 case `echo 'xy\c'` in 530 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 531 xy) ECHO_C='\c';; 532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 533 ECHO_T=' ';; 534 esac;; 535*) 536 ECHO_N='-n';; 537esac 538 539# For backward compatibility with old third-party macros, we provide 540# the shell variables $as_echo and $as_echo_n. New code should use 541# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 542as_echo='printf %s\n' 543as_echo_n='printf %s' 544 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 559 # In both cases, we have to default to `cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 585 586# Sed expression to map a string onto a valid variable name. 587as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 588 589 590test -n "$DJDIR" || exec 7<&0 </dev/null 591exec 6>&1 592 593# Name of the host. 594# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 595# so uname gets run too. 596ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 597 598# 599# Initializations. 600# 601ac_default_prefix=/usr/local 602ac_clean_files= 603ac_config_libobj_dir=. 604LIBOBJS= 605cross_compiling=no 606subdirs= 607MFLAGS= 608MAKEFLAGS= 609 610# Identity of this package. 611PACKAGE_NAME='breakpad' 612PACKAGE_TARNAME='breakpad' 613PACKAGE_VERSION='0.1' 614PACKAGE_STRING='breakpad 0.1' 615PACKAGE_BUGREPORT='[email protected]' 616PACKAGE_URL='' 617 618ac_unique_file="README.md" 619# Factoring default headers for most tests. 620ac_includes_default="\ 621#include <stddef.h> 622#ifdef HAVE_STDIO_H 623# include <stdio.h> 624#endif 625#ifdef HAVE_STDLIB_H 626# include <stdlib.h> 627#endif 628#ifdef HAVE_STRING_H 629# include <string.h> 630#endif 631#ifdef HAVE_INTTYPES_H 632# include <inttypes.h> 633#endif 634#ifdef HAVE_STDINT_H 635# include <stdint.h> 636#endif 637#ifdef HAVE_STRINGS_H 638# include <strings.h> 639#endif 640#ifdef HAVE_SYS_TYPES_H 641# include <sys/types.h> 642#endif 643#ifdef HAVE_SYS_STAT_H 644# include <sys/stat.h> 645#endif 646#ifdef HAVE_UNISTD_H 647# include <unistd.h> 648#endif" 649 650ac_header_c_list= 651ac_subst_vars='am__EXEEXT_FALSE 652am__EXEEXT_TRUE 653LTLIBOBJS 654LIBOBJS 655TESTS_AS_ROOT_FALSE 656TESTS_AS_ROOT_TRUE 657RUSTC_DEMANGLE_LIBS 658RUSTC_DEMANGLE_CFLAGS 659SELFTEST_FALSE 660SELFTEST_TRUE 661GTEST_LIBS 662GTEST_CFLAGS 663GMOCK_LIBS 664GMOCK_CFLAGS 665SYSTEM_TEST_LIBS_FALSE 666SYSTEM_TEST_LIBS_TRUE 667DISABLE_TOOLS_FALSE 668DISABLE_TOOLS_TRUE 669DISABLE_PROCESSOR_FALSE 670DISABLE_PROCESSOR_TRUE 671X86_HOST_FALSE 672X86_HOST_TRUE 673ANDROID_HOST_FALSE 674ANDROID_HOST_TRUE 675LINUX_HOST_FALSE 676LINUX_HOST_TRUE 677WARN_CXXFLAGS 678HAVE_CXX17 679HAVE_MEMFD_CREATE_FALSE 680HAVE_MEMFD_CREATE_TRUE 681HAVE_GETCONTEXT_FALSE 682HAVE_GETCONTEXT_TRUE 683PTHREAD_CFLAGS 684PTHREAD_LIBS 685PTHREAD_CC 686ax_pthread_config 687RANLIB 688am__fastdepCXX_FALSE 689am__fastdepCXX_TRUE 690CXXDEPMODE 691ac_ct_CXX 692CXXFLAGS 693CXX 694CPP 695am__fastdepCCAS_FALSE 696am__fastdepCCAS_TRUE 697CCASDEPMODE 698CCASFLAGS 699CCAS 700am__fastdepCC_FALSE 701am__fastdepCC_TRUE 702CCDEPMODE 703am__nodep 704AMDEPBACKSLASH 705AMDEP_FALSE 706AMDEP_TRUE 707am__include 708DEPDIR 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716ac_ct_AR 717AR 718MAINT 719MAINTAINER_MODE_FALSE 720MAINTAINER_MODE_TRUE 721AM_BACKSLASH 722AM_DEFAULT_VERBOSITY 723AM_DEFAULT_V 724AM_V 725CSCOPE 726ETAGS 727CTAGS 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751host_os 752host_vendor 753host_cpu 754host 755build_os 756build_vendor 757build_cpu 758build 759target_alias 760host_alias 761build_alias 762LIBS 763ECHO_T 764ECHO_N 765ECHO_C 766DEFS 767mandir 768localedir 769libdir 770psdir 771pdfdir 772dvidir 773htmldir 774infodir 775docdir 776oldincludedir 777includedir 778runstatedir 779localstatedir 780sharedstatedir 781sysconfdir 782datadir 783datarootdir 784libexecdir 785sbindir 786bindir 787program_transform_name 788prefix 789exec_prefix 790PACKAGE_URL 791PACKAGE_BUGREPORT 792PACKAGE_STRING 793PACKAGE_VERSION 794PACKAGE_TARNAME 795PACKAGE_NAME 796PATH_SEPARATOR 797SHELL 798am__quote' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_silent_rules 803enable_maintainer_mode 804enable_dependency_tracking 805enable_m32 806enable_largefile 807enable_processor 808enable_tools 809enable_system_test_libs 810enable_selftest 811with_rustc_demangle 812enable_system_rustc_demangle 813enable_zstd 814with_tests_as_root 815' 816 ac_precious_vars='build_alias 817host_alias 818target_alias 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824CCAS 825CCASFLAGS 826CPP 827CXX 828CXXFLAGS 829CCC 830GMOCK_CFLAGS 831GMOCK_LIBS 832GTEST_CFLAGS 833GTEST_LIBS 834RUSTC_DEMANGLE_CFLAGS 835RUSTC_DEMANGLE_LIBS' 836 837 838# Initialize some variables set by options. 839ac_init_help= 840ac_init_version=false 841ac_unrecognized_opts= 842ac_unrecognized_sep= 843# The variables have the same names as the options, with 844# dashes changed to underlines. 845cache_file=/dev/null 846exec_prefix=NONE 847no_create= 848no_recursion= 849prefix=NONE 850program_prefix=NONE 851program_suffix=NONE 852program_transform_name=s,x,x, 853silent= 854site= 855srcdir= 856verbose= 857x_includes=NONE 858x_libraries=NONE 859 860# Installation directory options. 861# These are left unexpanded so users can "make install exec_prefix=/foo" 862# and all the variables that are supposed to be based on exec_prefix 863# by default will actually change. 864# Use braces instead of parens because sh, perl, etc. also accept them. 865# (The list follows the same order as the GNU Coding Standards.) 866bindir='${exec_prefix}/bin' 867sbindir='${exec_prefix}/sbin' 868libexecdir='${exec_prefix}/libexec' 869datarootdir='${prefix}/share' 870datadir='${datarootdir}' 871sysconfdir='${prefix}/etc' 872sharedstatedir='${prefix}/com' 873localstatedir='${prefix}/var' 874runstatedir='${localstatedir}/run' 875includedir='${prefix}/include' 876oldincludedir='/usr/include' 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 878infodir='${datarootdir}/info' 879htmldir='${docdir}' 880dvidir='${docdir}' 881pdfdir='${docdir}' 882psdir='${docdir}' 883libdir='${exec_prefix}/lib' 884localedir='${datarootdir}/locale' 885mandir='${datarootdir}/man' 886 887ac_prev= 888ac_dashdash= 889for ac_option 890do 891 # If the previous option needs an argument, assign it. 892 if test -n "$ac_prev"; then 893 eval $ac_prev=\$ac_option 894 ac_prev= 895 continue 896 fi 897 898 case $ac_option in 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 900 *=) ac_optarg= ;; 901 *) ac_optarg=yes ;; 902 esac 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: \`$ac_useropt'" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: \`$ac_useropt'" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1126 | --runstate | --runstat | --runsta | --runst | --runs \ 1127 | --run | --ru | --r) 1128 ac_prev=runstatedir ;; 1129 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1130 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1131 | --run=* | --ru=* | --r=*) 1132 runstatedir=$ac_optarg ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: \`$ac_useropt'" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: \`$ac_useropt'" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252done 1253 1254if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257fi 1258 1259if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265fi 1266 1267# Check all directory arguments for consistency. 1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir runstatedir 1272do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286done 1287 1288# There might be people who depend on the old broken behavior: `$host' 1289# used to hold the argument of --host etc. 1290# FIXME: To remove some day. 1291build=$build_alias 1292host=$host_alias 1293target=$target_alias 1294 1295# FIXME: To remove some day. 1296if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302fi 1303 1304ac_tool_prefix= 1305test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307test "$silent" = yes && exec 6>/dev/null 1308 1309 1310ac_pwd=`pwd` && test -n "$ac_pwd" && 1311ac_ls_di=`ls -di .` && 1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318# Find the source files, if location was not specified. 1319if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327printf "%s\n" X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349else 1350 ac_srcdir_defaulted=no 1351fi 1352if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355fi 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360# When building in place, set srcdir=. 1361if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363fi 1364# Remove unnecessary trailing slashes from srcdir. 1365# Double slashes in file names in object file debugging info 1366# mess up M-x gdb in Emacs. 1367case $srcdir in 1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369esac 1370for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375done 1376 1377# 1378# Report the --help message. 1379# 1380if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384\`configure' configures breakpad 0.1 to adapt to many kinds of systems. 1385 1386Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391Defaults for the options are specified in brackets. 1392 1393Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410By default, \`make install' will install all the files in 1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413for instance \`--prefix=\$HOME'. 1414 1415For better control, use the options below. 1416 1417Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1425 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --includedir=DIR C header files [PREFIX/include] 1427 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1430 --infodir=DIR info documentation [DATAROOTDIR/info] 1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1432 --mandir=DIR man documentation [DATAROOTDIR/man] 1433 --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] 1434 --htmldir=DIR html documentation [DOCDIR] 1435 --dvidir=DIR dvi documentation [DOCDIR] 1436 --pdfdir=DIR pdf documentation [DOCDIR] 1437 --psdir=DIR ps documentation [DOCDIR] 1438_ACEOF 1439 1440 cat <<\_ACEOF 1441 1442Program names: 1443 --program-prefix=PREFIX prepend PREFIX to installed program names 1444 --program-suffix=SUFFIX append SUFFIX to installed program names 1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1446 1447System types: 1448 --build=BUILD configure for building on BUILD [guessed] 1449 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of breakpad 0.1:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-silent-rules less verbose build output (undo: "make V=1") 1464 --disable-silent-rules verbose build output (undo: "make V=0") 1465 --enable-maintainer-mode 1466 enable make rules and dependencies not useful (and 1467 sometimes confusing) to the casual installer 1468 --enable-dependency-tracking 1469 do not reject slow dependency extractors 1470 --disable-dependency-tracking 1471 speeds up one-time build 1472 --enable-m32 Compile/build with -m32 (default is no) 1473 --disable-largefile omit support for large files 1474 --disable-processor Don't build processor library (default is no) 1475 --disable-tools Don't build tool binaries (default is no) 1476 --enable-system-test-libs 1477 Use gtest/gmock/etc... from the system instead of 1478 the local copies (default is local) 1479 --enable-selftest Run extra tests with "make check" (may conflict with 1480 optimizations) (default is no) 1481 --enable-system-rustc-demangle 1482 Link against the rustc-demangle library to demangle 1483 Rust language symbols during symbol dumping (default 1484 is no). This assumes that rustc-demangle is 1485 installed in your sysroot, and all headers from it 1486 are available in your standard include path 1487 --enable-zstd Enable decompression of ELF sections with zstd 1488 1489Optional Packages: 1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1492 --with-rustc-demangle=/path/to/rustc-demangle 1493 Link against the rustc-demangle library to demangle 1494 Rust language symbols during symbol dumping (default 1495 is no) Pass the path to the crate root. 1496 --with-tests-as-root Run the tests as root. Use this on platforms like 1497 travis-ci.org that require root privileges to use 1498 ptrace (default is no) 1499 1500Some influential environment variables: 1501 CC C compiler command 1502 CFLAGS C compiler flags 1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1504 nonstandard directory <lib dir> 1505 LIBS libraries to pass to the linker, e.g. -l<library> 1506 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1507 you have headers in a nonstandard directory <include dir> 1508 CCAS assembler compiler command (defaults to CC) 1509 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1510 CPP C preprocessor 1511 CXX C++ compiler command 1512 CXXFLAGS C++ compiler flags 1513 GMOCK_CFLAGS 1514 Compiler flags for gmock 1515 GMOCK_LIBS Linker flags for gmock 1516 GTEST_CFLAGS 1517 Compiler flags for gtest 1518 GTEST_LIBS Linker flags for gtest 1519 RUSTC_DEMANGLE_CFLAGS 1520 Compiler flags for rustc-demangle 1521 RUSTC_DEMANGLE_LIBS 1522 Linker flags for rustc-demangle 1523 1524Use these variables to override the choices made by `configure' or to help 1525it to find libraries and programs with nonstandard names/locations. 1526 1527Report bugs to <[email protected]>. 1528_ACEOF 1529ac_status=$? 1530fi 1531 1532if test "$ac_init_help" = "recursive"; then 1533 # If there are subdirs, report their specific --help. 1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1535 test -d "$ac_dir" || 1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1537 continue 1538 ac_builddir=. 1539 1540case "$ac_dir" in 1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542*) 1543 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1544 # A ".." for each directory in $ac_dir_suffix. 1545 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1546 case $ac_top_builddir_sub in 1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1549 esac ;; 1550esac 1551ac_abs_top_builddir=$ac_pwd 1552ac_abs_builddir=$ac_pwd$ac_dir_suffix 1553# for backward compatibility: 1554ac_top_builddir=$ac_top_build_prefix 1555 1556case $srcdir in 1557 .) # We are building in place. 1558 ac_srcdir=. 1559 ac_top_srcdir=$ac_top_builddir_sub 1560 ac_abs_top_srcdir=$ac_pwd ;; 1561 [\\/]* | ?:[\\/]* ) # Absolute name. 1562 ac_srcdir=$srcdir$ac_dir_suffix; 1563 ac_top_srcdir=$srcdir 1564 ac_abs_top_srcdir=$srcdir ;; 1565 *) # Relative name. 1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1567 ac_top_srcdir=$ac_top_build_prefix$srcdir 1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1569esac 1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1571 1572 cd "$ac_dir" || { ac_status=$?; continue; } 1573 # Check for configure.gnu first; this name is used for a wrapper for 1574 # Metaconfig's "Configure" on case-insensitive file systems. 1575 if test -f "$ac_srcdir/configure.gnu"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578 elif test -f "$ac_srcdir/configure"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure" --help=recursive 1581 else 1582 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583 fi || ac_status=$? 1584 cd "$ac_pwd" || { ac_status=$?; break; } 1585 done 1586fi 1587 1588test -n "$ac_init_help" && exit $ac_status 1589if $ac_init_version; then 1590 cat <<\_ACEOF 1591breakpad configure 0.1 1592generated by GNU Autoconf 2.71 1593 1594Copyright (C) 2021 Free Software Foundation, Inc. 1595This configure script is free software; the Free Software Foundation 1596gives unlimited permission to copy, distribute and modify it. 1597_ACEOF 1598 exit 1599fi 1600 1601## ------------------------ ## 1602## Autoconf initialization. ## 1603## ------------------------ ## 1604 1605# ac_fn_c_try_compile LINENO 1606# -------------------------- 1607# Try to compile conftest.$ac_ext, and return whether this succeeded. 1608ac_fn_c_try_compile () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 rm -f conftest.$ac_objext conftest.beam 1612 if { { ac_try="$ac_compile" 1613case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616esac 1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618printf "%s\n" "$ac_try_echo"; } >&5 1619 (eval "$ac_compile") 2>conftest.err 1620 ac_status=$? 1621 if test -s conftest.err; then 1622 grep -v '^ *+' conftest.err >conftest.er1 1623 cat conftest.er1 >&5 1624 mv -f conftest.er1 conftest.err 1625 fi 1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { 1628 test -z "$ac_c_werror_flag" || 1629 test ! -s conftest.err 1630 } && test -s conftest.$ac_objext 1631then : 1632 ac_retval=0 1633else $as_nop 1634 printf "%s\n" "$as_me: failed program was:" >&5 1635sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_c_try_compile 1643 1644# ac_fn_c_try_cpp LINENO 1645# ---------------------- 1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_cpp () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 if { { ac_try="$ac_cpp conftest.$ac_ext" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656printf "%s\n" "$ac_try_echo"; } >&5 1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } > conftest.i && { 1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 } 1669then : 1670 ac_retval=0 1671else $as_nop 1672 printf "%s\n" "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_cpp 1681 1682# ac_fn_cxx_try_compile LINENO 1683# ---------------------------- 1684# Try to compile conftest.$ac_ext, and return whether this succeeded. 1685ac_fn_cxx_try_compile () 1686{ 1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1688 rm -f conftest.$ac_objext conftest.beam 1689 if { { ac_try="$ac_compile" 1690case "(($ac_try" in 1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1692 *) ac_try_echo=$ac_try;; 1693esac 1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1695printf "%s\n" "$ac_try_echo"; } >&5 1696 (eval "$ac_compile") 2>conftest.err 1697 ac_status=$? 1698 if test -s conftest.err; then 1699 grep -v '^ *+' conftest.err >conftest.er1 1700 cat conftest.er1 >&5 1701 mv -f conftest.er1 conftest.err 1702 fi 1703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1704 test $ac_status = 0; } && { 1705 test -z "$ac_cxx_werror_flag" || 1706 test ! -s conftest.err 1707 } && test -s conftest.$ac_objext 1708then : 1709 ac_retval=0 1710else $as_nop 1711 printf "%s\n" "$as_me: failed program was:" >&5 1712sed 's/^/| /' conftest.$ac_ext >&5 1713 1714 ac_retval=1 1715fi 1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1717 as_fn_set_status $ac_retval 1718 1719} # ac_fn_cxx_try_compile 1720 1721# ac_fn_c_try_link LINENO 1722# ----------------------- 1723# Try to link conftest.$ac_ext, and return whether this succeeded. 1724ac_fn_c_try_link () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1728 if { { ac_try="$ac_link" 1729case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732esac 1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734printf "%s\n" "$ac_try_echo"; } >&5 1735 (eval "$ac_link") 2>conftest.err 1736 ac_status=$? 1737 if test -s conftest.err; then 1738 grep -v '^ *+' conftest.err >conftest.er1 1739 cat conftest.er1 >&5 1740 mv -f conftest.er1 conftest.err 1741 fi 1742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; } && { 1744 test -z "$ac_c_werror_flag" || 1745 test ! -s conftest.err 1746 } && test -s conftest$ac_exeext && { 1747 test "$cross_compiling" = yes || 1748 test -x conftest$ac_exeext 1749 } 1750then : 1751 ac_retval=0 1752else $as_nop 1753 printf "%s\n" "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=1 1757fi 1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1760 # interfere with the next link command; also delete a directory that is 1761 # left behind by Apple's compiler. We do this before executing the actions. 1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 as_fn_set_status $ac_retval 1765 1766} # ac_fn_c_try_link 1767 1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1769# ------------------------------------------------------- 1770# Tests whether HEADER exists and can be compiled using the include files in 1771# INCLUDES, setting the cache variable VAR accordingly. 1772ac_fn_c_check_header_compile () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776printf %s "checking for $2... " >&6; } 1777if eval test \${$3+y} 1778then : 1779 printf %s "(cached) " >&6 1780else $as_nop 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783$4 1784#include <$2> 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO" 1787then : 1788 eval "$3=yes" 1789else $as_nop 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1793fi 1794eval ac_res=\$$3 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796printf "%s\n" "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799} # ac_fn_c_check_header_compile 1800 1801# ac_fn_c_check_func LINENO FUNC VAR 1802# ---------------------------------- 1803# Tests whether FUNC exists, setting the cache variable VAR accordingly 1804ac_fn_c_check_func () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1808printf %s "checking for $2... " >&6; } 1809if eval test \${$3+y} 1810then : 1811 printf %s "(cached) " >&6 1812else $as_nop 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1817#define $2 innocuous_$2 1818 1819/* System header to define __stub macros and hopefully few prototypes, 1820 which can conflict with char $2 (); below. */ 1821 1822#include <limits.h> 1823#undef $2 1824 1825/* Override any GCC internal prototype to avoid an error. 1826 Use char because int might match the return type of a GCC 1827 builtin and then its argument prototype would still apply. */ 1828#ifdef __cplusplus 1829extern "C" 1830#endif 1831char $2 (); 1832/* The GNU C library defines this for functions which it implements 1833 to always fail with ENOSYS. Some functions are actually named 1834 something starting with __ and the normal name is an alias. */ 1835#if defined __stub_$2 || defined __stub___$2 1836choke me 1837#endif 1838 1839int 1840main (void) 1841{ 1842return $2 (); 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_link "$LINENO" 1848then : 1849 eval "$3=yes" 1850else $as_nop 1851 eval "$3=no" 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1854 conftest$ac_exeext conftest.$ac_ext 1855fi 1856eval ac_res=\$$3 1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858printf "%s\n" "$ac_res" >&6; } 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 1861} # ac_fn_c_check_func 1862ac_configure_args_raw= 1863for ac_arg 1864do 1865 case $ac_arg in 1866 *\'*) 1867 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1868 esac 1869 as_fn_append ac_configure_args_raw " '$ac_arg'" 1870done 1871 1872case $ac_configure_args_raw in 1873 *$as_nl*) 1874 ac_safe_unquote= ;; 1875 *) 1876 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1877 ac_unsafe_a="$ac_unsafe_z#~" 1878 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1879 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1880esac 1881 1882cat >config.log <<_ACEOF 1883This file contains any messages produced by compilers while 1884running configure, to aid debugging if configure makes a mistake. 1885 1886It was created by breakpad $as_me 0.1, which was 1887generated by GNU Autoconf 2.71. Invocation command line was 1888 1889 $ $0$ac_configure_args_raw 1890 1891_ACEOF 1892exec 5>>config.log 1893{ 1894cat <<_ASUNAME 1895## --------- ## 1896## Platform. ## 1897## --------- ## 1898 1899hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1900uname -m = `(uname -m) 2>/dev/null || echo unknown` 1901uname -r = `(uname -r) 2>/dev/null || echo unknown` 1902uname -s = `(uname -s) 2>/dev/null || echo unknown` 1903uname -v = `(uname -v) 2>/dev/null || echo unknown` 1904 1905/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1906/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1907 1908/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1909/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1910/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1911/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1912/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1913/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1914/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1915 1916_ASUNAME 1917 1918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1919for as_dir in $PATH 1920do 1921 IFS=$as_save_IFS 1922 case $as_dir in #((( 1923 '') as_dir=./ ;; 1924 */) ;; 1925 *) as_dir=$as_dir/ ;; 1926 esac 1927 printf "%s\n" "PATH: $as_dir" 1928 done 1929IFS=$as_save_IFS 1930 1931} >&5 1932 1933cat >&5 <<_ACEOF 1934 1935 1936## ----------- ## 1937## Core tests. ## 1938## ----------- ## 1939 1940_ACEOF 1941 1942 1943# Keep a trace of the command line. 1944# Strip out --no-create and --no-recursion so they do not pile up. 1945# Strip out --silent because we don't want to record it for future runs. 1946# Also quote any args containing shell meta-characters. 1947# Make two passes to allow for proper duplicate-argument suppression. 1948ac_configure_args= 1949ac_configure_args0= 1950ac_configure_args1= 1951ac_must_keep_next=false 1952for ac_pass in 1 2 1953do 1954 for ac_arg 1955 do 1956 case $ac_arg in 1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1959 | -silent | --silent | --silen | --sile | --sil) 1960 continue ;; 1961 *\'*) 1962 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1963 esac 1964 case $ac_pass in 1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1966 2) 1967 as_fn_append ac_configure_args1 " '$ac_arg'" 1968 if test $ac_must_keep_next = true; then 1969 ac_must_keep_next=false # Got value, back to normal. 1970 else 1971 case $ac_arg in 1972 *=* | --config-cache | -C | -disable-* | --disable-* \ 1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1975 | -with-* | --with-* | -without-* | --without-* | --x) 1976 case "$ac_configure_args0 " in 1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1978 esac 1979 ;; 1980 -* ) ac_must_keep_next=true ;; 1981 esac 1982 fi 1983 as_fn_append ac_configure_args " '$ac_arg'" 1984 ;; 1985 esac 1986 done 1987done 1988{ ac_configure_args0=; unset ac_configure_args0;} 1989{ ac_configure_args1=; unset ac_configure_args1;} 1990 1991# When interrupted or exit'd, cleanup temporary files, and complete 1992# config.log. We remove comments because anyway the quotes in there 1993# would cause problems or look ugly. 1994# WARNING: Use '\'' to represent an apostrophe within the trap. 1995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1996trap 'exit_status=$? 1997 # Sanitize IFS. 1998 IFS=" "" $as_nl" 1999 # Save into config.log some information that might help in debugging. 2000 { 2001 echo 2002 2003 printf "%s\n" "## ---------------- ## 2004## Cache variables. ## 2005## ---------------- ##" 2006 echo 2007 # The following way of writing the cache mishandles newlines in values, 2008( 2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in #( 2012 *${as_nl}*) 2013 case $ac_var in #( 2014 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2015printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2016 esac 2017 case $ac_var in #( 2018 _ | IFS | as_nl) ;; #( 2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2020 *) { eval $ac_var=; unset $ac_var;} ;; 2021 esac ;; 2022 esac 2023 done 2024 (set) 2>&1 | 2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2026 *${as_nl}ac_space=\ *) 2027 sed -n \ 2028 "s/'\''/'\''\\\\'\'''\''/g; 2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2030 ;; #( 2031 *) 2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2033 ;; 2034 esac | 2035 sort 2036) 2037 echo 2038 2039 printf "%s\n" "## ----------------- ## 2040## Output variables. ## 2041## ----------------- ##" 2042 echo 2043 for ac_var in $ac_subst_vars 2044 do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in 2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2048 esac 2049 printf "%s\n" "$ac_var='\''$ac_val'\''" 2050 done | sort 2051 echo 2052 2053 if test -n "$ac_subst_files"; then 2054 printf "%s\n" "## ------------------- ## 2055## File substitutions. ## 2056## ------------------- ##" 2057 echo 2058 for ac_var in $ac_subst_files 2059 do 2060 eval ac_val=\$$ac_var 2061 case $ac_val in 2062 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2063 esac 2064 printf "%s\n" "$ac_var='\''$ac_val'\''" 2065 done | sort 2066 echo 2067 fi 2068 2069 if test -s confdefs.h; then 2070 printf "%s\n" "## ----------- ## 2071## confdefs.h. ## 2072## ----------- ##" 2073 echo 2074 cat confdefs.h 2075 echo 2076 fi 2077 test "$ac_signal" != 0 && 2078 printf "%s\n" "$as_me: caught signal $ac_signal" 2079 printf "%s\n" "$as_me: exit $exit_status" 2080 } >&5 2081 rm -f core *.core core.conftest.* && 2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2083 exit $exit_status 2084' 0 2085for ac_signal in 1 2 13 15; do 2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2087done 2088ac_signal=0 2089 2090# confdefs.h avoids OS command line length limits that DEFS can exceed. 2091rm -f -r conftest* confdefs.h 2092 2093printf "%s\n" "/* confdefs.h */" > confdefs.h 2094 2095# Predefined preprocessor variables. 2096 2097printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2098 2099printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2100 2101printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2102 2103printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2104 2105printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2106 2107printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2108 2109 2110# Let the site file select an alternate cache file if it wants to. 2111# Prefer an explicitly selected file to automatically selected ones. 2112if test -n "$CONFIG_SITE"; then 2113 ac_site_files="$CONFIG_SITE" 2114elif test "x$prefix" != xNONE; then 2115 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2116else 2117 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2118fi 2119 2120for ac_site_file in $ac_site_files 2121do 2122 case $ac_site_file in #( 2123 */*) : 2124 ;; #( 2125 *) : 2126 ac_site_file=./$ac_site_file ;; 2127esac 2128 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2130printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2131 sed 's/^/| /' "$ac_site_file" >&5 2132 . "$ac_site_file" \ 2133 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2135as_fn_error $? "failed to load site script $ac_site_file 2136See \`config.log' for more details" "$LINENO" 5; } 2137 fi 2138done 2139 2140if test -r "$cache_file"; then 2141 # Some versions of bash will fail to source /dev/null (special files 2142 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2143 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2145printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2146 case $cache_file in 2147 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2148 *) . "./$cache_file";; 2149 esac 2150 fi 2151else 2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2153printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2154 >$cache_file 2155fi 2156 2157# Test code for whether the C compiler supports C89 (global declarations) 2158ac_c_conftest_c89_globals=' 2159/* Does the compiler advertise C89 conformance? 2160 Do not test the value of __STDC__, because some compilers set it to 0 2161 while being otherwise adequately conformant. */ 2162#if !defined __STDC__ 2163# error "Compiler does not advertise C89 conformance" 2164#endif 2165 2166#include <stddef.h> 2167#include <stdarg.h> 2168struct stat; 2169/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2170struct buf { int x; }; 2171struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2172static char *e (p, i) 2173 char **p; 2174 int i; 2175{ 2176 return p[i]; 2177} 2178static char *f (char * (*g) (char **, int), char **p, ...) 2179{ 2180 char *s; 2181 va_list v; 2182 va_start (v,p); 2183 s = g (p, va_arg (v,int)); 2184 va_end (v); 2185 return s; 2186} 2187 2188/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2189 function prototypes and stuff, but not \xHH hex character constants. 2190 These do not provoke an error unfortunately, instead are silently treated 2191 as an "x". The following induces an error, until -std is added to get 2192 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2193 array size at least. It is necessary to write \x00 == 0 to get something 2194 that is true only with -std. */ 2195int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2196 2197/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2198 inside strings and character constants. */ 2199#define FOO(x) '\''x'\'' 2200int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2201 2202int test (int i, double x); 2203struct s1 {int (*f) (int a);}; 2204struct s2 {int (*f) (double a);}; 2205int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2206 int, int);' 2207 2208# Test code for whether the C compiler supports C89 (body of main). 2209ac_c_conftest_c89_main=' 2210ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2211' 2212 2213# Test code for whether the C compiler supports C99 (global declarations) 2214ac_c_conftest_c99_globals=' 2215// Does the compiler advertise C99 conformance? 2216#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2217# error "Compiler does not advertise C99 conformance" 2218#endif 2219 2220#include <stdbool.h> 2221extern int puts (const char *); 2222extern int printf (const char *, ...); 2223extern int dprintf (int, const char *, ...); 2224extern void *malloc (size_t); 2225 2226// Check varargs macros. These examples are taken from C99 6.10.3.5. 2227// dprintf is used instead of fprintf to avoid needing to declare 2228// FILE and stderr. 2229#define debug(...) dprintf (2, __VA_ARGS__) 2230#define showlist(...) puts (#__VA_ARGS__) 2231#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2232static void 2233test_varargs_macros (void) 2234{ 2235 int x = 1234; 2236 int y = 5678; 2237 debug ("Flag"); 2238 debug ("X = %d\n", x); 2239 showlist (The first, second, and third items.); 2240 report (x>y, "x is %d but y is %d", x, y); 2241} 2242 2243// Check long long types. 2244#define BIG64 18446744073709551615ull 2245#define BIG32 4294967295ul 2246#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2247#if !BIG_OK 2248 #error "your preprocessor is broken" 2249#endif 2250#if BIG_OK 2251#else 2252 #error "your preprocessor is broken" 2253#endif 2254static long long int bignum = -9223372036854775807LL; 2255static unsigned long long int ubignum = BIG64; 2256 2257struct incomplete_array 2258{ 2259 int datasize; 2260 double data[]; 2261}; 2262 2263struct named_init { 2264 int number; 2265 const wchar_t *name; 2266 double average; 2267}; 2268 2269typedef const char *ccp; 2270 2271static inline int 2272test_restrict (ccp restrict text) 2273{ 2274 // See if C++-style comments work. 2275 // Iterate through items via the restricted pointer. 2276 // Also check for declarations in for loops. 2277 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2278 continue; 2279 return 0; 2280} 2281 2282// Check varargs and va_copy. 2283static bool 2284test_varargs (const char *format, ...) 2285{ 2286 va_list args; 2287 va_start (args, format); 2288 va_list args_copy; 2289 va_copy (args_copy, args); 2290 2291 const char *str = ""; 2292 int number = 0; 2293 float fnumber = 0; 2294 2295 while (*format) 2296 { 2297 switch (*format++) 2298 { 2299 case '\''s'\'': // string 2300 str = va_arg (args_copy, const char *); 2301 break; 2302 case '\''d'\'': // int 2303 number = va_arg (args_copy, int); 2304 break; 2305 case '\''f'\'': // float 2306 fnumber = va_arg (args_copy, double); 2307 break; 2308 default: 2309 break; 2310 } 2311 } 2312 va_end (args_copy); 2313 va_end (args); 2314 2315 return *str && number && fnumber; 2316} 2317' 2318 2319# Test code for whether the C compiler supports C99 (body of main). 2320ac_c_conftest_c99_main=' 2321 // Check bool. 2322 _Bool success = false; 2323 success |= (argc != 0); 2324 2325 // Check restrict. 2326 if (test_restrict ("String literal") == 0) 2327 success = true; 2328 char *restrict newvar = "Another string"; 2329 2330 // Check varargs. 2331 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2332 test_varargs_macros (); 2333 2334 // Check flexible array members. 2335 struct incomplete_array *ia = 2336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2337 ia->datasize = 10; 2338 for (int i = 0; i < ia->datasize; ++i) 2339 ia->data[i] = i * 1.234; 2340 2341 // Check named initializers. 2342 struct named_init ni = { 2343 .number = 34, 2344 .name = L"Test wide string", 2345 .average = 543.34343, 2346 }; 2347 2348 ni.number = 58; 2349 2350 int dynamic_array[ni.number]; 2351 dynamic_array[0] = argv[0][0]; 2352 dynamic_array[ni.number - 1] = 543; 2353 2354 // work around unused variable warnings 2355 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2356 || dynamic_array[ni.number - 1] != 543); 2357' 2358 2359# Test code for whether the C compiler supports C11 (global declarations) 2360ac_c_conftest_c11_globals=' 2361// Does the compiler advertise C11 conformance? 2362#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2363# error "Compiler does not advertise C11 conformance" 2364#endif 2365 2366// Check _Alignas. 2367char _Alignas (double) aligned_as_double; 2368char _Alignas (0) no_special_alignment; 2369extern char aligned_as_int; 2370char _Alignas (0) _Alignas (int) aligned_as_int; 2371 2372// Check _Alignof. 2373enum 2374{ 2375 int_alignment = _Alignof (int), 2376 int_array_alignment = _Alignof (int[100]), 2377 char_alignment = _Alignof (char) 2378}; 2379_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2380 2381// Check _Noreturn. 2382int _Noreturn does_not_return (void) { for (;;) continue; } 2383 2384// Check _Static_assert. 2385struct test_static_assert 2386{ 2387 int x; 2388 _Static_assert (sizeof (int) <= sizeof (long int), 2389 "_Static_assert does not work in struct"); 2390 long int y; 2391}; 2392 2393// Check UTF-8 literals. 2394#define u8 syntax error! 2395char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2396 2397// Check duplicate typedefs. 2398typedef long *long_ptr; 2399typedef long int *long_ptr; 2400typedef long_ptr long_ptr; 2401 2402// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2403struct anonymous 2404{ 2405 union { 2406 struct { int i; int j; }; 2407 struct { int k; long int l; } w; 2408 }; 2409 int m; 2410} v1; 2411' 2412 2413# Test code for whether the C compiler supports C11 (body of main). 2414ac_c_conftest_c11_main=' 2415 _Static_assert ((offsetof (struct anonymous, i) 2416 == offsetof (struct anonymous, w.k)), 2417 "Anonymous union alignment botch"); 2418 v1.i = 2; 2419 v1.w.k = 5; 2420 ok |= v1.i != 5; 2421' 2422 2423# Test code for whether the C compiler supports C11 (complete). 2424ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2425${ac_c_conftest_c99_globals} 2426${ac_c_conftest_c11_globals} 2427 2428int 2429main (int argc, char **argv) 2430{ 2431 int ok = 0; 2432 ${ac_c_conftest_c89_main} 2433 ${ac_c_conftest_c99_main} 2434 ${ac_c_conftest_c11_main} 2435 return ok; 2436} 2437" 2438 2439# Test code for whether the C compiler supports C99 (complete). 2440ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2441${ac_c_conftest_c99_globals} 2442 2443int 2444main (int argc, char **argv) 2445{ 2446 int ok = 0; 2447 ${ac_c_conftest_c89_main} 2448 ${ac_c_conftest_c99_main} 2449 return ok; 2450} 2451" 2452 2453# Test code for whether the C compiler supports C89 (complete). 2454ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2455 2456int 2457main (int argc, char **argv) 2458{ 2459 int ok = 0; 2460 ${ac_c_conftest_c89_main} 2461 return ok; 2462} 2463" 2464 2465# Test code for whether the C++ compiler supports C++98 (global declarations) 2466ac_cxx_conftest_cxx98_globals=' 2467// Does the compiler advertise C++98 conformance? 2468#if !defined __cplusplus || __cplusplus < 199711L 2469# error "Compiler does not advertise C++98 conformance" 2470#endif 2471 2472// These inclusions are to reject old compilers that 2473// lack the unsuffixed header files. 2474#include <cstdlib> 2475#include <exception> 2476 2477// <cassert> and <cstring> are *not* freestanding headers in C++98. 2478extern void assert (int); 2479namespace std { 2480 extern int strcmp (const char *, const char *); 2481} 2482 2483// Namespaces, exceptions, and templates were all added after "C++ 2.0". 2484using std::exception; 2485using std::strcmp; 2486 2487namespace { 2488 2489void test_exception_syntax() 2490{ 2491 try { 2492 throw "test"; 2493 } catch (const char *s) { 2494 // Extra parentheses suppress a warning when building autoconf itself, 2495 // due to lint rules shared with more typical C programs. 2496 assert (!(strcmp) (s, "test")); 2497 } 2498} 2499 2500template <typename T> struct test_template 2501{ 2502 T const val; 2503 explicit test_template(T t) : val(t) {} 2504 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 2505}; 2506 2507} // anonymous namespace 2508' 2509 2510# Test code for whether the C++ compiler supports C++98 (body of main) 2511ac_cxx_conftest_cxx98_main=' 2512 assert (argc); 2513 assert (! argv[0]); 2514{ 2515 test_exception_syntax (); 2516 test_template<double> tt (2.0); 2517 assert (tt.add (4) == 6.0); 2518 assert (true && !false); 2519} 2520' 2521 2522# Test code for whether the C++ compiler supports C++11 (global declarations) 2523ac_cxx_conftest_cxx11_globals=' 2524// Does the compiler advertise C++ 2011 conformance? 2525#if !defined __cplusplus || __cplusplus < 201103L 2526# error "Compiler does not advertise C++11 conformance" 2527#endif 2528 2529namespace cxx11test 2530{ 2531 constexpr int get_val() { return 20; } 2532 2533 struct testinit 2534 { 2535 int i; 2536 double d; 2537 }; 2538 2539 class delegate 2540 { 2541 public: 2542 delegate(int n) : n(n) {} 2543 delegate(): delegate(2354) {} 2544 2545 virtual int getval() { return this->n; }; 2546 protected: 2547 int n; 2548 }; 2549 2550 class overridden : public delegate 2551 { 2552 public: 2553 overridden(int n): delegate(n) {} 2554 virtual int getval() override final { return this->n * 2; } 2555 }; 2556 2557 class nocopy 2558 { 2559 public: 2560 nocopy(int i): i(i) {} 2561 nocopy() = default; 2562 nocopy(const nocopy&) = delete; 2563 nocopy & operator=(const nocopy&) = delete; 2564 private: 2565 int i; 2566 }; 2567 2568 // for testing lambda expressions 2569 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 2570 { 2571 return f(v); 2572 } 2573 2574 // for testing variadic templates and trailing return types 2575 template <typename V> auto sum(V first) -> V 2576 { 2577 return first; 2578 } 2579 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 2580 { 2581 return first + sum(rest...); 2582 } 2583} 2584' 2585 2586# Test code for whether the C++ compiler supports C++11 (body of main) 2587ac_cxx_conftest_cxx11_main=' 2588{ 2589 // Test auto and decltype 2590 auto a1 = 6538; 2591 auto a2 = 48573953.4; 2592 auto a3 = "String literal"; 2593 2594 int total = 0; 2595 for (auto i = a3; *i; ++i) { total += *i; } 2596 2597 decltype(a2) a4 = 34895.034; 2598} 2599{ 2600 // Test constexpr 2601 short sa[cxx11test::get_val()] = { 0 }; 2602} 2603{ 2604 // Test initializer lists 2605 cxx11test::testinit il = { 4323, 435234.23544 }; 2606} 2607{ 2608 // Test range-based for 2609 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 2610 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 2611 for (auto &x : array) { x += 23; } 2612} 2613{ 2614 // Test lambda expressions 2615 using cxx11test::eval; 2616 assert (eval ([](int x) { return x*2; }, 21) == 42); 2617 double d = 2.0; 2618 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 2619 assert (d == 5.0); 2620 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 2621 assert (d == 5.0); 2622} 2623{ 2624 // Test use of variadic templates 2625 using cxx11test::sum; 2626 auto a = sum(1); 2627 auto b = sum(1, 2); 2628 auto c = sum(1.0, 2.0, 3.0); 2629} 2630{ 2631 // Test constructor delegation 2632 cxx11test::delegate d1; 2633 cxx11test::delegate d2(); 2634 cxx11test::delegate d3(45); 2635} 2636{ 2637 // Test override and final 2638 cxx11test::overridden o1(55464); 2639} 2640{ 2641 // Test nullptr 2642 char *c = nullptr; 2643} 2644{ 2645 // Test template brackets 2646 test_template<::test_template<int>> v(test_template<int>(12)); 2647} 2648{ 2649 // Unicode literals 2650 char const *utf8 = u8"UTF-8 string \u2500"; 2651 char16_t const *utf16 = u"UTF-8 string \u2500"; 2652 char32_t const *utf32 = U"UTF-32 string \u2500"; 2653} 2654' 2655 2656# Test code for whether the C compiler supports C++11 (complete). 2657ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 2658${ac_cxx_conftest_cxx11_globals} 2659 2660int 2661main (int argc, char **argv) 2662{ 2663 int ok = 0; 2664 ${ac_cxx_conftest_cxx98_main} 2665 ${ac_cxx_conftest_cxx11_main} 2666 return ok; 2667} 2668" 2669 2670# Test code for whether the C compiler supports C++98 (complete). 2671ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 2672int 2673main (int argc, char **argv) 2674{ 2675 int ok = 0; 2676 ${ac_cxx_conftest_cxx98_main} 2677 return ok; 2678} 2679" 2680 2681as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2682as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2683as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2684as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2685as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2686as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2687as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2688as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2689as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2690 2691# Auxiliary files required by this configure script. 2692ac_aux_files="compile ar-lib missing install-sh config.guess config.sub" 2693 2694# Locations in which to look for auxiliary files. 2695ac_aux_dir_candidates="${srcdir}/autotools" 2696 2697# Search for a directory containing all of the required auxiliary files, 2698# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2699# If we don't find one directory that contains all the files we need, 2700# we report the set of missing files from the *first* directory in 2701# $ac_aux_dir_candidates and give up. 2702ac_missing_aux_files="" 2703ac_first_candidate=: 2704printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2706as_found=false 2707for as_dir in $ac_aux_dir_candidates 2708do 2709 IFS=$as_save_IFS 2710 case $as_dir in #((( 2711 '') as_dir=./ ;; 2712 */) ;; 2713 *) as_dir=$as_dir/ ;; 2714 esac 2715 as_found=: 2716 2717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2718 ac_aux_dir_found=yes 2719 ac_install_sh= 2720 for ac_aux in $ac_aux_files 2721 do 2722 # As a special case, if "install-sh" is required, that requirement 2723 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2724 # and $ac_install_sh is set appropriately for whichever one is found. 2725 if test x"$ac_aux" = x"install-sh" 2726 then 2727 if test -f "${as_dir}install-sh"; then 2728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2729 ac_install_sh="${as_dir}install-sh -c" 2730 elif test -f "${as_dir}install.sh"; then 2731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2732 ac_install_sh="${as_dir}install.sh -c" 2733 elif test -f "${as_dir}shtool"; then 2734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2735 ac_install_sh="${as_dir}shtool install -c" 2736 else 2737 ac_aux_dir_found=no 2738 if $ac_first_candidate; then 2739 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2740 else 2741 break 2742 fi 2743 fi 2744 else 2745 if test -f "${as_dir}${ac_aux}"; then 2746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2747 else 2748 ac_aux_dir_found=no 2749 if $ac_first_candidate; then 2750 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2751 else 2752 break 2753 fi 2754 fi 2755 fi 2756 done 2757 if test "$ac_aux_dir_found" = yes; then 2758 ac_aux_dir="$as_dir" 2759 break 2760 fi 2761 ac_first_candidate=false 2762 2763 as_found=false 2764done 2765IFS=$as_save_IFS 2766if $as_found 2767then : 2768 2769else $as_nop 2770 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2771fi 2772 2773 2774# These three variables are undocumented and unsupported, 2775# and are intended to be withdrawn in a future Autoconf release. 2776# They can cause serious problems if a builder's source tree is in a directory 2777# whose full name contains unusual characters. 2778if test -f "${ac_aux_dir}config.guess"; then 2779 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2780fi 2781if test -f "${ac_aux_dir}config.sub"; then 2782 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2783fi 2784if test -f "$ac_aux_dir/configure"; then 2785 ac_configure="$SHELL ${ac_aux_dir}configure" 2786fi 2787 2788# Check that the precious variables saved in the cache have kept the same 2789# value. 2790ac_cache_corrupted=false 2791for ac_var in $ac_precious_vars; do 2792 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2793 eval ac_new_set=\$ac_env_${ac_var}_set 2794 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2795 eval ac_new_val=\$ac_env_${ac_var}_value 2796 case $ac_old_set,$ac_new_set in 2797 set,) 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2799printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2800 ac_cache_corrupted=: ;; 2801 ,set) 2802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2803printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2804 ac_cache_corrupted=: ;; 2805 ,);; 2806 *) 2807 if test "x$ac_old_val" != "x$ac_new_val"; then 2808 # differences in whitespace do not lead to failure. 2809 ac_old_val_w=`echo x $ac_old_val` 2810 ac_new_val_w=`echo x $ac_new_val` 2811 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2813printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2814 ac_cache_corrupted=: 2815 else 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2817printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2818 eval $ac_var=\$ac_old_val 2819 fi 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2821printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2823printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2824 fi;; 2825 esac 2826 # Pass precious variables to config.status. 2827 if test "$ac_new_set" = set; then 2828 case $ac_new_val in 2829 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2830 *) ac_arg=$ac_var=$ac_new_val ;; 2831 esac 2832 case " $ac_configure_args " in 2833 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2834 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2835 esac 2836 fi 2837done 2838if $ac_cache_corrupted; then 2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2840printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2842printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2843 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2844 and start over" "$LINENO" 5 2845fi 2846## -------------------- ## 2847## Main body of script. ## 2848## -------------------- ## 2849 2850ac_ext=c 2851ac_cpp='$CPP $CPPFLAGS' 2852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2854ac_compiler_gnu=$ac_cv_c_compiler_gnu 2855 2856 2857 2858 2859 2860 2861 2862 2863 # Make sure we can run config.sub. 2864$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 2865 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 2866 2867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2868printf %s "checking build system type... " >&6; } 2869if test ${ac_cv_build+y} 2870then : 2871 printf %s "(cached) " >&6 2872else $as_nop 2873 ac_build_alias=$build_alias 2874test "x$ac_build_alias" = x && 2875 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2876test "x$ac_build_alias" = x && 2877 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2878ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 2879 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 2880 2881fi 2882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2883printf "%s\n" "$ac_cv_build" >&6; } 2884case $ac_cv_build in 2885*-*-*) ;; 2886*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2887esac 2888build=$ac_cv_build 2889ac_save_IFS=$IFS; IFS='-' 2890set x $ac_cv_build 2891shift 2892build_cpu=$1 2893build_vendor=$2 2894shift; shift 2895# Remember, the first character of IFS is used to create $*, 2896# except with old shells: 2897build_os=$* 2898IFS=$ac_save_IFS 2899case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2900 2901 2902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2903printf %s "checking host system type... " >&6; } 2904if test ${ac_cv_host+y} 2905then : 2906 printf %s "(cached) " >&6 2907else $as_nop 2908 if test "x$host_alias" = x; then 2909 ac_cv_host=$ac_cv_build 2910else 2911 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 2912 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 2913fi 2914 2915fi 2916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2917printf "%s\n" "$ac_cv_host" >&6; } 2918case $ac_cv_host in 2919*-*-*) ;; 2920*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2921esac 2922host=$ac_cv_host 2923ac_save_IFS=$IFS; IFS='-' 2924set x $ac_cv_host 2925shift 2926host_cpu=$1 2927host_vendor=$2 2928shift; shift 2929# Remember, the first character of IFS is used to create $*, 2930# except with old shells: 2931host_os=$* 2932IFS=$ac_save_IFS 2933case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2934 2935 2936 2937am__api_version='1.16' 2938 2939 2940 # Find a good install program. We prefer a C program (faster), 2941# so one script is as good as another. But avoid the broken or 2942# incompatible versions: 2943# SysV /etc/install, /usr/sbin/install 2944# SunOS /usr/etc/install 2945# IRIX /sbin/install 2946# AIX /bin/install 2947# AmigaOS /C/install, which installs bootblocks on floppy discs 2948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2949# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2951# OS/2's system install, which has a completely different semantic 2952# ./install, which can be erroneously created by make from ./install.sh. 2953# Reject install programs that cannot install multiple files. 2954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2955printf %s "checking for a BSD-compatible install... " >&6; } 2956if test -z "$INSTALL"; then 2957if test ${ac_cv_path_install+y} 2958then : 2959 printf %s "(cached) " >&6 2960else $as_nop 2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 case $as_dir in #((( 2966 '') as_dir=./ ;; 2967 */) ;; 2968 *) as_dir=$as_dir/ ;; 2969 esac 2970 # Account for fact that we put trailing slashes in our PATH walk. 2971case $as_dir in #(( 2972 ./ | /[cC]/* | \ 2973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2974 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2975 /usr/ucb/* ) ;; 2976 *) 2977 # OSF1 and SCO ODT 3.0 have their own names for install. 2978 # Don't use installbsd from OSF since it installs stuff as root 2979 # by default. 2980 for ac_prog in ginstall scoinst install; do 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2983 if test $ac_prog = install && 2984 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2985 # AIX install. It has an incompatible calling convention. 2986 : 2987 elif test $ac_prog = install && 2988 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2989 # program-specific install script used by HP pwplus--don't use. 2990 : 2991 else 2992 rm -rf conftest.one conftest.two conftest.dir 2993 echo one > conftest.one 2994 echo two > conftest.two 2995 mkdir conftest.dir 2996 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2997 test -s conftest.one && test -s conftest.two && 2998 test -s conftest.dir/conftest.one && 2999 test -s conftest.dir/conftest.two 3000 then 3001 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3002 break 3 3003 fi 3004 fi 3005 fi 3006 done 3007 done 3008 ;; 3009esac 3010 3011 done 3012IFS=$as_save_IFS 3013 3014rm -rf conftest.one conftest.two conftest.dir 3015 3016fi 3017 if test ${ac_cv_path_install+y}; then 3018 INSTALL=$ac_cv_path_install 3019 else 3020 # As a last resort, use the slow shell script. Don't cache a 3021 # value for INSTALL within a source directory, because that will 3022 # break other packages using the cache if that directory is 3023 # removed, or if the value is a relative name. 3024 INSTALL=$ac_install_sh 3025 fi 3026fi 3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3028printf "%s\n" "$INSTALL" >&6; } 3029 3030# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3031# It thinks the first close brace ends the variable substitution. 3032test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3033 3034test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3035 3036test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3037 3038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3039printf %s "checking whether build environment is sane... " >&6; } 3040# Reject unsafe characters in $srcdir or the absolute working directory 3041# name. Accept space and tab only in the latter. 3042am_lf=' 3043' 3044case `pwd` in 3045 *[\\\"\#\$\&\'\`$am_lf]*) 3046 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3047esac 3048case $srcdir in 3049 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3050 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3051esac 3052 3053# Do 'set' in a subshell so we don't clobber the current shell's 3054# arguments. Must try -L first in case configure is actually a 3055# symlink; some systems play weird games with the mod time of symlinks 3056# (eg FreeBSD returns the mod time of the symlink's containing 3057# directory). 3058if ( 3059 am_has_slept=no 3060 for am_try in 1 2; do 3061 echo "timestamp, slept: $am_has_slept" > conftest.file 3062 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3063 if test "$*" = "X"; then 3064 # -L didn't work. 3065 set X `ls -t "$srcdir/configure" conftest.file` 3066 fi 3067 if test "$*" != "X $srcdir/configure conftest.file" \ 3068 && test "$*" != "X conftest.file $srcdir/configure"; then 3069 3070 # If neither matched, then we have a broken ls. This can happen 3071 # if, for instance, CONFIG_SHELL is bash and it inherits a 3072 # broken ls alias from the environment. This has actually 3073 # happened. Such a system could not be considered "sane". 3074 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3075 alias in your environment" "$LINENO" 5 3076 fi 3077 if test "$2" = conftest.file || test $am_try -eq 2; then 3078 break 3079 fi 3080 # Just in case. 3081 sleep 1 3082 am_has_slept=yes 3083 done 3084 test "$2" = conftest.file 3085 ) 3086then 3087 # Ok. 3088 : 3089else 3090 as_fn_error $? "newly created file is older than distributed files! 3091Check your system clock" "$LINENO" 5 3092fi 3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3094printf "%s\n" "yes" >&6; } 3095# If we didn't sleep, we still need to ensure time stamps of config.status and 3096# generated files are strictly newer. 3097am_sleep_pid= 3098if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3099 ( sleep 1 ) & 3100 am_sleep_pid=$! 3101fi 3102 3103rm -f conftest.file 3104 3105test "$program_prefix" != NONE && 3106 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3107# Use a double $ so make ignores it. 3108test "$program_suffix" != NONE && 3109 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3110# Double any \ or $. 3111# By default was `s,x,x', remove it if useless. 3112ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3113program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3114 3115 3116# Expand $ac_aux_dir to an absolute path. 3117am_aux_dir=`cd "$ac_aux_dir" && pwd` 3118 3119 3120 if test x"${MISSING+set}" != xset; then 3121 MISSING="\${SHELL} '$am_aux_dir/missing'" 3122fi 3123# Use eval to expand $SHELL 3124if eval "$MISSING --is-lightweight"; then 3125 am_missing_run="$MISSING " 3126else 3127 am_missing_run= 3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3129printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3130fi 3131 3132if test x"${install_sh+set}" != xset; then 3133 case $am_aux_dir in 3134 *\ * | *\ *) 3135 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3136 *) 3137 install_sh="\${SHELL} $am_aux_dir/install-sh" 3138 esac 3139fi 3140 3141# Installed binaries are usually stripped using 'strip' when the user 3142# run "make install-strip". However 'strip' might not be the right 3143# tool to use in cross-compilation environments, therefore Automake 3144# will honor the 'STRIP' environment variable to overrule this program. 3145if test "$cross_compiling" != no; then 3146 if test -n "$ac_tool_prefix"; then 3147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3148set dummy ${ac_tool_prefix}strip; ac_word=$2 3149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3150printf %s "checking for $ac_word... " >&6; } 3151if test ${ac_cv_prog_STRIP+y} 3152then : 3153 printf %s "(cached) " >&6 3154else $as_nop 3155 if test -n "$STRIP"; then 3156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3157else 3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3159for as_dir in $PATH 3160do 3161 IFS=$as_save_IFS 3162 case $as_dir in #((( 3163 '') as_dir=./ ;; 3164 */) ;; 3165 *) as_dir=$as_dir/ ;; 3166 esac 3167 for ac_exec_ext in '' $ac_executable_extensions; do 3168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3169 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3171 break 2 3172 fi 3173done 3174 done 3175IFS=$as_save_IFS 3176 3177fi 3178fi 3179STRIP=$ac_cv_prog_STRIP 3180if test -n "$STRIP"; then 3181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3182printf "%s\n" "$STRIP" >&6; } 3183else 3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185printf "%s\n" "no" >&6; } 3186fi 3187 3188 3189fi 3190if test -z "$ac_cv_prog_STRIP"; then 3191 ac_ct_STRIP=$STRIP 3192 # Extract the first word of "strip", so it can be a program name with args. 3193set dummy strip; ac_word=$2 3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3195printf %s "checking for $ac_word... " >&6; } 3196if test ${ac_cv_prog_ac_ct_STRIP+y} 3197then : 3198 printf %s "(cached) " >&6 3199else $as_nop 3200 if test -n "$ac_ct_STRIP"; then 3201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3202else 3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3204for as_dir in $PATH 3205do 3206 IFS=$as_save_IFS 3207 case $as_dir in #((( 3208 '') as_dir=./ ;; 3209 */) ;; 3210 *) as_dir=$as_dir/ ;; 3211 esac 3212 for ac_exec_ext in '' $ac_executable_extensions; do 3213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3214 ac_cv_prog_ac_ct_STRIP="strip" 3215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3216 break 2 3217 fi 3218done 3219 done 3220IFS=$as_save_IFS 3221 3222fi 3223fi 3224ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3225if test -n "$ac_ct_STRIP"; then 3226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3227printf "%s\n" "$ac_ct_STRIP" >&6; } 3228else 3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3230printf "%s\n" "no" >&6; } 3231fi 3232 3233 if test "x$ac_ct_STRIP" = x; then 3234 STRIP=":" 3235 else 3236 case $cross_compiling:$ac_tool_warned in 3237yes:) 3238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3239printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3240ac_tool_warned=yes ;; 3241esac 3242 STRIP=$ac_ct_STRIP 3243 fi 3244else 3245 STRIP="$ac_cv_prog_STRIP" 3246fi 3247 3248fi 3249INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3250 3251 3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3253printf %s "checking for a race-free mkdir -p... " >&6; } 3254if test -z "$MKDIR_P"; then 3255 if test ${ac_cv_path_mkdir+y} 3256then : 3257 printf %s "(cached) " >&6 3258else $as_nop 3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3260for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3261do 3262 IFS=$as_save_IFS 3263 case $as_dir in #((( 3264 '') as_dir=./ ;; 3265 */) ;; 3266 *) as_dir=$as_dir/ ;; 3267 esac 3268 for ac_prog in mkdir gmkdir; do 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3271 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3272 'mkdir ('*'coreutils) '* | \ 3273 'BusyBox '* | \ 3274 'mkdir (fileutils) '4.1*) 3275 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3276 break 3;; 3277 esac 3278 done 3279 done 3280 done 3281IFS=$as_save_IFS 3282 3283fi 3284 3285 test -d ./--version && rmdir ./--version 3286 if test ${ac_cv_path_mkdir+y}; then 3287 MKDIR_P="$ac_cv_path_mkdir -p" 3288 else 3289 # As a last resort, use the slow shell script. Don't cache a 3290 # value for MKDIR_P within a source directory, because that will 3291 # break other packages using the cache if that directory is 3292 # removed, or if the value is a relative name. 3293 MKDIR_P="$ac_install_sh -d" 3294 fi 3295fi 3296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3297printf "%s\n" "$MKDIR_P" >&6; } 3298 3299for ac_prog in gawk mawk nawk awk 3300do 3301 # Extract the first word of "$ac_prog", so it can be a program name with args. 3302set dummy $ac_prog; ac_word=$2 3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3304printf %s "checking for $ac_word... " >&6; } 3305if test ${ac_cv_prog_AWK+y} 3306then : 3307 printf %s "(cached) " >&6 3308else $as_nop 3309 if test -n "$AWK"; then 3310 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3311else 3312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313for as_dir in $PATH 3314do 3315 IFS=$as_save_IFS 3316 case $as_dir in #((( 3317 '') as_dir=./ ;; 3318 */) ;; 3319 *) as_dir=$as_dir/ ;; 3320 esac 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_AWK="$ac_prog" 3324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328 done 3329IFS=$as_save_IFS 3330 3331fi 3332fi 3333AWK=$ac_cv_prog_AWK 3334if test -n "$AWK"; then 3335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3336printf "%s\n" "$AWK" >&6; } 3337else 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339printf "%s\n" "no" >&6; } 3340fi 3341 3342 3343 test -n "$AWK" && break 3344done 3345 3346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3347printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3348set x ${MAKE-make} 3349ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3350if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3351then : 3352 printf %s "(cached) " >&6 3353else $as_nop 3354 cat >conftest.make <<\_ACEOF 3355SHELL = /bin/sh 3356all: 3357 @echo '@@@%%%=$(MAKE)=@@@%%%' 3358_ACEOF 3359# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3360case `${MAKE-make} -f conftest.make 2>/dev/null` in 3361 *@@@%%%=?*=@@@%%%*) 3362 eval ac_cv_prog_make_${ac_make}_set=yes;; 3363 *) 3364 eval ac_cv_prog_make_${ac_make}_set=no;; 3365esac 3366rm -f conftest.make 3367fi 3368if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3370printf "%s\n" "yes" >&6; } 3371 SET_MAKE= 3372else 3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3374printf "%s\n" "no" >&6; } 3375 SET_MAKE="MAKE=${MAKE-make}" 3376fi 3377 3378rm -rf .tst 2>/dev/null 3379mkdir .tst 2>/dev/null 3380if test -d .tst; then 3381 am__leading_dot=. 3382else 3383 am__leading_dot=_ 3384fi 3385rmdir .tst 2>/dev/null 3386 3387# Check whether --enable-silent-rules was given. 3388if test ${enable_silent_rules+y} 3389then : 3390 enableval=$enable_silent_rules; 3391fi 3392 3393case $enable_silent_rules in # ((( 3394 yes) AM_DEFAULT_VERBOSITY=0;; 3395 no) AM_DEFAULT_VERBOSITY=1;; 3396 *) AM_DEFAULT_VERBOSITY=1;; 3397esac 3398am_make=${MAKE-make} 3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3400printf %s "checking whether $am_make supports nested variables... " >&6; } 3401if test ${am_cv_make_support_nested_variables+y} 3402then : 3403 printf %s "(cached) " >&6 3404else $as_nop 3405 if printf "%s\n" 'TRUE=$(BAR$(V)) 3406BAR0=false 3407BAR1=true 3408V=1 3409am__doit: 3410 @$(TRUE) 3411.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3412 am_cv_make_support_nested_variables=yes 3413else 3414 am_cv_make_support_nested_variables=no 3415fi 3416fi 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3418printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3419if test $am_cv_make_support_nested_variables = yes; then 3420 AM_V='$(V)' 3421 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3422else 3423 AM_V=$AM_DEFAULT_VERBOSITY 3424 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3425fi 3426AM_BACKSLASH='\' 3427 3428if test "`cd $srcdir && pwd`" != "`pwd`"; then 3429 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3430 # is not polluted with repeated "-I." 3431 am__isrc=' -I$(srcdir)' 3432 # test to see if srcdir already configured 3433 if test -f $srcdir/config.status; then 3434 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3435 fi 3436fi 3437 3438# test whether we have cygpath 3439if test -z "$CYGPATH_W"; then 3440 if (cygpath --version) >/dev/null 2>/dev/null; then 3441 CYGPATH_W='cygpath -w' 3442 else 3443 CYGPATH_W=echo 3444 fi 3445fi 3446 3447 3448# Define the identity of the package. 3449 PACKAGE='breakpad' 3450 VERSION='0.1' 3451 3452 3453printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3454 3455 3456printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3457 3458# Some tools Automake needs. 3459 3460ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3461 3462 3463AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3464 3465 3466AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3467 3468 3469AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3470 3471 3472MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3473 3474# For better backward compatibility. To be removed once Automake 1.9.x 3475# dies out for good. For more background, see: 3476# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3477# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3478mkdir_p='$(MKDIR_P)' 3479 3480# We need awk for the "check" target (and possibly the TAP driver). The 3481# system "awk" is bad on some platforms. 3482# Always define AMTAR for backward compatibility. Yes, it's still used 3483# in the wild :-( We should find a proper way to deprecate it ... 3484AMTAR='$${TAR-tar}' 3485 3486 3487# We'll loop over all known methods to create a tar archive until one works. 3488_am_tools='gnutar plaintar pax cpio none' 3489 3490# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3491 # There is notably a 21 bits limit for the UID and the GID. In fact, 3492 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3493 # and bug#13588). 3494 am_max_uid=2097151 # 2^21 - 1 3495 am_max_gid=$am_max_uid 3496 # The $UID and $GID variables are not portable, so we need to resort 3497 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3498 # below are definitely unexpected, so allow the users to see them 3499 # (that is, avoid stderr redirection). 3500 am_uid=`id -u || echo unknown` 3501 am_gid=`id -g || echo unknown` 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3503printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3504 if test $am_uid -le $am_max_uid; then 3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506printf "%s\n" "yes" >&6; } 3507 else 3508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509printf "%s\n" "no" >&6; } 3510 _am_tools=none 3511 fi 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3513printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3514 if test $am_gid -le $am_max_gid; then 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3516printf "%s\n" "yes" >&6; } 3517 else 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519printf "%s\n" "no" >&6; } 3520 _am_tools=none 3521 fi 3522 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3524printf %s "checking how to create a ustar tar archive... " >&6; } 3525 3526 # Go ahead even if we have the value already cached. We do so because we 3527 # need to set the values for the 'am__tar' and 'am__untar' variables. 3528 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3529 3530 for _am_tool in $_am_tools; do 3531 case $_am_tool in 3532 gnutar) 3533 for _am_tar in tar gnutar gtar; do 3534 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3535 ($_am_tar --version) >&5 2>&5 3536 ac_status=$? 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); } && break 3539 done 3540 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3541 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3542 am__untar="$_am_tar -xf -" 3543 ;; 3544 plaintar) 3545 # Must skip GNU tar: if it does not support --format= it doesn't create 3546 # ustar tarball either. 3547 (tar --version) >/dev/null 2>&1 && continue 3548 am__tar='tar chf - "$$tardir"' 3549 am__tar_='tar chf - "$tardir"' 3550 am__untar='tar xf -' 3551 ;; 3552 pax) 3553 am__tar='pax -L -x ustar -w "$$tardir"' 3554 am__tar_='pax -L -x ustar -w "$tardir"' 3555 am__untar='pax -r' 3556 ;; 3557 cpio) 3558 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3559 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3560 am__untar='cpio -i -H ustar -d' 3561 ;; 3562 none) 3563 am__tar=false 3564 am__tar_=false 3565 am__untar=false 3566 ;; 3567 esac 3568 3569 # If the value was cached, stop now. We just wanted to have am__tar 3570 # and am__untar set. 3571 test -n "${am_cv_prog_tar_ustar}" && break 3572 3573 # tar/untar a dummy directory, and stop if the command works. 3574 rm -rf conftest.dir 3575 mkdir conftest.dir 3576 echo GrepMe > conftest.dir/file 3577 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3578 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3579 ac_status=$? 3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581 (exit $ac_status); } 3582 rm -rf conftest.dir 3583 if test -s conftest.tar; then 3584 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3585 ($am__untar <conftest.tar) >&5 2>&5 3586 ac_status=$? 3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3588 (exit $ac_status); } 3589 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3590 (cat conftest.dir/file) >&5 2>&5 3591 ac_status=$? 3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3593 (exit $ac_status); } 3594 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3595 fi 3596 done 3597 rm -rf conftest.dir 3598 3599 if test ${am_cv_prog_tar_ustar+y} 3600then : 3601 printf %s "(cached) " >&6 3602else $as_nop 3603 am_cv_prog_tar_ustar=$_am_tool 3604fi 3605 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3607printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3608 3609 3610 3611 3612 3613# Variables for tags utilities; see am/tags.am 3614if test -z "$CTAGS"; then 3615 CTAGS=ctags 3616fi 3617 3618if test -z "$ETAGS"; then 3619 ETAGS=etags 3620fi 3621 3622if test -z "$CSCOPE"; then 3623 CSCOPE=cscope 3624fi 3625 3626 3627 3628# POSIX will say in a future version that running "rm -f" with no argument 3629# is OK; and we want to be able to make that assumption in our Makefile 3630# recipes. So use an aggressive probe to check that the usage we want is 3631# actually supported "in the wild" to an acceptable degree. 3632# See automake bug#10828. 3633# To make any issue more visible, cause the running configure to be aborted 3634# by default if the 'rm' program in use doesn't match our expectations; the 3635# user can still override this though. 3636if rm -f && rm -fr && rm -rf; then : OK; else 3637 cat >&2 <<'END' 3638Oops! 3639 3640Your 'rm' program seems unable to run without file operands specified 3641on the command line, even when the '-f' option is present. This is contrary 3642to the behaviour of most rm programs out there, and not conforming with 3643the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3644 3645Please tell bug-automake@gnu.org about your system, including the value 3646of your $PATH and any error possibly output before this message. This 3647can help us improve future automake versions. 3648 3649END 3650 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3651 echo 'Configuration will proceed anyway, since you have set the' >&2 3652 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3653 echo >&2 3654 else 3655 cat >&2 <<'END' 3656Aborting the configuration process, to ensure you take notice of the issue. 3657 3658You can download and install GNU coreutils to get an 'rm' implementation 3659that behaves properly: <https://www.gnu.org/software/coreutils/>. 3660 3661If you want to complete the configuration process using your problematic 3662'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3663to "yes", and re-run configure. 3664 3665END 3666 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3667 fi 3668fi 3669 3670ac_config_headers="$ac_config_headers src/config.h" 3671 3672 3673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3674printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3675 # Check whether --enable-maintainer-mode was given. 3676if test ${enable_maintainer_mode+y} 3677then : 3678 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3679else $as_nop 3680 USE_MAINTAINER_MODE=no 3681fi 3682 3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3684printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3685 if test $USE_MAINTAINER_MODE = yes; then 3686 MAINTAINER_MODE_TRUE= 3687 MAINTAINER_MODE_FALSE='#' 3688else 3689 MAINTAINER_MODE_TRUE='#' 3690 MAINTAINER_MODE_FALSE= 3691fi 3692 3693 MAINT=$MAINTAINER_MODE_TRUE 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706DEPDIR="${am__leading_dot}deps" 3707 3708ac_config_commands="$ac_config_commands depfiles" 3709 3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3711printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3712cat > confinc.mk << 'END' 3713am__doit: 3714 @echo this is the am__doit target >confinc.out 3715.PHONY: am__doit 3716END 3717am__include="#" 3718am__quote= 3719# BSD make does it like this. 3720echo '.include "confinc.mk" # ignored' > confmf.BSD 3721# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3722echo 'include confinc.mk # ignored' > confmf.GNU 3723_am_result=no 3724for s in GNU BSD; do 3725 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3726 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3727 ac_status=$? 3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3729 (exit $ac_status); } 3730 case $?:`cat confinc.out 2>/dev/null` in #( 3731 '0:this is the am__doit target') : 3732 case $s in #( 3733 BSD) : 3734 am__include='.include' am__quote='"' ;; #( 3735 *) : 3736 am__include='include' am__quote='' ;; 3737esac ;; #( 3738 *) : 3739 ;; 3740esac 3741 if test "$am__include" != "#"; then 3742 _am_result="yes ($s style)" 3743 break 3744 fi 3745done 3746rm -f confinc.* confmf.* 3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3748printf "%s\n" "${_am_result}" >&6; } 3749 3750# Check whether --enable-dependency-tracking was given. 3751if test ${enable_dependency_tracking+y} 3752then : 3753 enableval=$enable_dependency_tracking; 3754fi 3755 3756if test "x$enable_dependency_tracking" != xno; then 3757 am_depcomp="$ac_aux_dir/depcomp" 3758 AMDEPBACKSLASH='\' 3759 am__nodep='_no' 3760fi 3761 if test "x$enable_dependency_tracking" != xno; then 3762 AMDEP_TRUE= 3763 AMDEP_FALSE='#' 3764else 3765 AMDEP_TRUE='#' 3766 AMDEP_FALSE= 3767fi 3768 3769 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775if test -n "$ac_tool_prefix"; then 3776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3777set dummy ${ac_tool_prefix}gcc; ac_word=$2 3778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3779printf %s "checking for $ac_word... " >&6; } 3780if test ${ac_cv_prog_CC+y} 3781then : 3782 printf %s "(cached) " >&6 3783else $as_nop 3784 if test -n "$CC"; then 3785 ac_cv_prog_CC="$CC" # Let the user override the test. 3786else 3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3788for as_dir in $PATH 3789do 3790 IFS=$as_save_IFS 3791 case $as_dir in #((( 3792 '') as_dir=./ ;; 3793 */) ;; 3794 *) as_dir=$as_dir/ ;; 3795 esac 3796 for ac_exec_ext in '' $ac_executable_extensions; do 3797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3798 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3800 break 2 3801 fi 3802done 3803 done 3804IFS=$as_save_IFS 3805 3806fi 3807fi 3808CC=$ac_cv_prog_CC 3809if test -n "$CC"; then 3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3811printf "%s\n" "$CC" >&6; } 3812else 3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3814printf "%s\n" "no" >&6; } 3815fi 3816 3817 3818fi 3819if test -z "$ac_cv_prog_CC"; then 3820 ac_ct_CC=$CC 3821 # Extract the first word of "gcc", so it can be a program name with args. 3822set dummy gcc; ac_word=$2 3823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3824printf %s "checking for $ac_word... " >&6; } 3825if test ${ac_cv_prog_ac_ct_CC+y} 3826then : 3827 printf %s "(cached) " >&6 3828else $as_nop 3829 if test -n "$ac_ct_CC"; then 3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3831else 3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3833for as_dir in $PATH 3834do 3835 IFS=$as_save_IFS 3836 case $as_dir in #((( 3837 '') as_dir=./ ;; 3838 */) ;; 3839 *) as_dir=$as_dir/ ;; 3840 esac 3841 for ac_exec_ext in '' $ac_executable_extensions; do 3842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3843 ac_cv_prog_ac_ct_CC="gcc" 3844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3845 break 2 3846 fi 3847done 3848 done 3849IFS=$as_save_IFS 3850 3851fi 3852fi 3853ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854if test -n "$ac_ct_CC"; then 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856printf "%s\n" "$ac_ct_CC" >&6; } 3857else 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859printf "%s\n" "no" >&6; } 3860fi 3861 3862 if test "x$ac_ct_CC" = x; then 3863 CC="" 3864 else 3865 case $cross_compiling:$ac_tool_warned in 3866yes:) 3867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3869ac_tool_warned=yes ;; 3870esac 3871 CC=$ac_ct_CC 3872 fi 3873else 3874 CC="$ac_cv_prog_CC" 3875fi 3876 3877if test -z "$CC"; then 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3880set dummy ${ac_tool_prefix}cc; ac_word=$2 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882printf %s "checking for $ac_word... " >&6; } 3883if test ${ac_cv_prog_CC+y} 3884then : 3885 printf %s "(cached) " >&6 3886else $as_nop 3887 if test -n "$CC"; then 3888 ac_cv_prog_CC="$CC" # Let the user override the test. 3889else 3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891for as_dir in $PATH 3892do 3893 IFS=$as_save_IFS 3894 case $as_dir in #((( 3895 '') as_dir=./ ;; 3896 */) ;; 3897 *) as_dir=$as_dir/ ;; 3898 esac 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3901 ac_cv_prog_CC="${ac_tool_prefix}cc" 3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905done 3906 done 3907IFS=$as_save_IFS 3908 3909fi 3910fi 3911CC=$ac_cv_prog_CC 3912if test -n "$CC"; then 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3914printf "%s\n" "$CC" >&6; } 3915else 3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3917printf "%s\n" "no" >&6; } 3918fi 3919 3920 3921 fi 3922fi 3923if test -z "$CC"; then 3924 # Extract the first word of "cc", so it can be a program name with args. 3925set dummy cc; ac_word=$2 3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3927printf %s "checking for $ac_word... " >&6; } 3928if test ${ac_cv_prog_CC+y} 3929then : 3930 printf %s "(cached) " >&6 3931else $as_nop 3932 if test -n "$CC"; then 3933 ac_cv_prog_CC="$CC" # Let the user override the test. 3934else 3935 ac_prog_rejected=no 3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3937for as_dir in $PATH 3938do 3939 IFS=$as_save_IFS 3940 case $as_dir in #((( 3941 '') as_dir=./ ;; 3942 */) ;; 3943 *) as_dir=$as_dir/ ;; 3944 esac 3945 for ac_exec_ext in '' $ac_executable_extensions; do 3946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3947 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3948 ac_prog_rejected=yes 3949 continue 3950 fi 3951 ac_cv_prog_CC="cc" 3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3953 break 2 3954 fi 3955done 3956 done 3957IFS=$as_save_IFS 3958 3959if test $ac_prog_rejected = yes; then 3960 # We found a bogon in the path, so make sure we never use it. 3961 set dummy $ac_cv_prog_CC 3962 shift 3963 if test $# != 0; then 3964 # We chose a different compiler from the bogus one. 3965 # However, it has the same basename, so the bogon will be chosen 3966 # first if we set CC to just the basename; use the full file name. 3967 shift 3968 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3969 fi 3970fi 3971fi 3972fi 3973CC=$ac_cv_prog_CC 3974if test -n "$CC"; then 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3976printf "%s\n" "$CC" >&6; } 3977else 3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3979printf "%s\n" "no" >&6; } 3980fi 3981 3982 3983fi 3984if test -z "$CC"; then 3985 if test -n "$ac_tool_prefix"; then 3986 for ac_prog in cl.exe 3987 do 3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3989set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991printf %s "checking for $ac_word... " >&6; } 3992if test ${ac_cv_prog_CC+y} 3993then : 3994 printf %s "(cached) " >&6 3995else $as_nop 3996 if test -n "$CC"; then 3997 ac_cv_prog_CC="$CC" # Let the user override the test. 3998else 3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000for as_dir in $PATH 4001do 4002 IFS=$as_save_IFS 4003 case $as_dir in #((( 4004 '') as_dir=./ ;; 4005 */) ;; 4006 *) as_dir=$as_dir/ ;; 4007 esac 4008 for ac_exec_ext in '' $ac_executable_extensions; do 4009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4012 break 2 4013 fi 4014done 4015 done 4016IFS=$as_save_IFS 4017 4018fi 4019fi 4020CC=$ac_cv_prog_CC 4021if test -n "$CC"; then 4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4023printf "%s\n" "$CC" >&6; } 4024else 4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4026printf "%s\n" "no" >&6; } 4027fi 4028 4029 4030 test -n "$CC" && break 4031 done 4032fi 4033if test -z "$CC"; then 4034 ac_ct_CC=$CC 4035 for ac_prog in cl.exe 4036do 4037 # Extract the first word of "$ac_prog", so it can be a program name with args. 4038set dummy $ac_prog; ac_word=$2 4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4040printf %s "checking for $ac_word... " >&6; } 4041if test ${ac_cv_prog_ac_ct_CC+y} 4042then : 4043 printf %s "(cached) " >&6 4044else $as_nop 4045 if test -n "$ac_ct_CC"; then 4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4047else 4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4049for as_dir in $PATH 4050do 4051 IFS=$as_save_IFS 4052 case $as_dir in #((( 4053 '') as_dir=./ ;; 4054 */) ;; 4055 *) as_dir=$as_dir/ ;; 4056 esac 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4059 ac_cv_prog_ac_ct_CC="$ac_prog" 4060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4061 break 2 4062 fi 4063done 4064 done 4065IFS=$as_save_IFS 4066 4067fi 4068fi 4069ac_ct_CC=$ac_cv_prog_ac_ct_CC 4070if test -n "$ac_ct_CC"; then 4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4072printf "%s\n" "$ac_ct_CC" >&6; } 4073else 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4075printf "%s\n" "no" >&6; } 4076fi 4077 4078 4079 test -n "$ac_ct_CC" && break 4080done 4081 4082 if test "x$ac_ct_CC" = x; then 4083 CC="" 4084 else 4085 case $cross_compiling:$ac_tool_warned in 4086yes:) 4087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4088printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4089ac_tool_warned=yes ;; 4090esac 4091 CC=$ac_ct_CC 4092 fi 4093fi 4094 4095fi 4096if test -z "$CC"; then 4097 if test -n "$ac_tool_prefix"; then 4098 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4099set dummy ${ac_tool_prefix}clang; ac_word=$2 4100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4101printf %s "checking for $ac_word... " >&6; } 4102if test ${ac_cv_prog_CC+y} 4103then : 4104 printf %s "(cached) " >&6 4105else $as_nop 4106 if test -n "$CC"; then 4107 ac_cv_prog_CC="$CC" # Let the user override the test. 4108else 4109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4110for as_dir in $PATH 4111do 4112 IFS=$as_save_IFS 4113 case $as_dir in #((( 4114 '') as_dir=./ ;; 4115 */) ;; 4116 *) as_dir=$as_dir/ ;; 4117 esac 4118 for ac_exec_ext in '' $ac_executable_extensions; do 4119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4120 ac_cv_prog_CC="${ac_tool_prefix}clang" 4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4122 break 2 4123 fi 4124done 4125 done 4126IFS=$as_save_IFS 4127 4128fi 4129fi 4130CC=$ac_cv_prog_CC 4131if test -n "$CC"; then 4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4133printf "%s\n" "$CC" >&6; } 4134else 4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4136printf "%s\n" "no" >&6; } 4137fi 4138 4139 4140fi 4141if test -z "$ac_cv_prog_CC"; then 4142 ac_ct_CC=$CC 4143 # Extract the first word of "clang", so it can be a program name with args. 4144set dummy clang; ac_word=$2 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4146printf %s "checking for $ac_word... " >&6; } 4147if test ${ac_cv_prog_ac_ct_CC+y} 4148then : 4149 printf %s "(cached) " >&6 4150else $as_nop 4151 if test -n "$ac_ct_CC"; then 4152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4153else 4154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4155for as_dir in $PATH 4156do 4157 IFS=$as_save_IFS 4158 case $as_dir in #((( 4159 '') as_dir=./ ;; 4160 */) ;; 4161 *) as_dir=$as_dir/ ;; 4162 esac 4163 for ac_exec_ext in '' $ac_executable_extensions; do 4164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4165 ac_cv_prog_ac_ct_CC="clang" 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4167 break 2 4168 fi 4169done 4170 done 4171IFS=$as_save_IFS 4172 4173fi 4174fi 4175ac_ct_CC=$ac_cv_prog_ac_ct_CC 4176if test -n "$ac_ct_CC"; then 4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4178printf "%s\n" "$ac_ct_CC" >&6; } 4179else 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4181printf "%s\n" "no" >&6; } 4182fi 4183 4184 if test "x$ac_ct_CC" = x; then 4185 CC="" 4186 else 4187 case $cross_compiling:$ac_tool_warned in 4188yes:) 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4191ac_tool_warned=yes ;; 4192esac 4193 CC=$ac_ct_CC 4194 fi 4195else 4196 CC="$ac_cv_prog_CC" 4197fi 4198 4199fi 4200 4201 4202test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4203printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4204as_fn_error $? "no acceptable C compiler found in \$PATH 4205See \`config.log' for more details" "$LINENO" 5; } 4206 4207# Provide some information about the compiler. 4208printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4209set X $ac_compile 4210ac_compiler=$2 4211for ac_option in --version -v -V -qversion -version; do 4212 { { ac_try="$ac_compiler $ac_option >&5" 4213case "(($ac_try" in 4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4215 *) ac_try_echo=$ac_try;; 4216esac 4217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4218printf "%s\n" "$ac_try_echo"; } >&5 4219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4220 ac_status=$? 4221 if test -s conftest.err; then 4222 sed '10a\ 4223... rest of stderr output deleted ... 4224 10q' conftest.err >conftest.er1 4225 cat conftest.er1 >&5 4226 fi 4227 rm -f conftest.er1 conftest.err 4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4229 test $ac_status = 0; } 4230done 4231 4232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main (void) 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243ac_clean_files_save=$ac_clean_files 4244ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4245# Try to create an executable without -o first, disregard a.out. 4246# It will help us diagnose broken compilers, and finding out an intuition 4247# of exeext. 4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4249printf %s "checking whether the C compiler works... " >&6; } 4250ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4251 4252# The possible output files: 4253ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4254 4255ac_rmfiles= 4256for ac_file in $ac_files 4257do 4258 case $ac_file in 4259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4260 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4261 esac 4262done 4263rm -f $ac_rmfiles 4264 4265if { { ac_try="$ac_link_default" 4266case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4271printf "%s\n" "$ac_try_echo"; } >&5 4272 (eval "$ac_link_default") 2>&5 4273 ac_status=$? 4274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4275 test $ac_status = 0; } 4276then : 4277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4278# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4279# in a Makefile. We should not override ac_cv_exeext if it was cached, 4280# so that the user can short-circuit this test for compilers unknown to 4281# Autoconf. 4282for ac_file in $ac_files '' 4283do 4284 test -f "$ac_file" || continue 4285 case $ac_file in 4286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4287 ;; 4288 [ab].out ) 4289 # We found the default executable, but exeext='' is most 4290 # certainly right. 4291 break;; 4292 *.* ) 4293 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4294 then :; else 4295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4296 fi 4297 # We set ac_cv_exeext here because the later test for it is not 4298 # safe: cross compilers may not add the suffix if given an `-o' 4299 # argument, so we may need to know it at that point already. 4300 # Even if this section looks crufty: it has the advantage of 4301 # actually working. 4302 break;; 4303 * ) 4304 break;; 4305 esac 4306done 4307test "$ac_cv_exeext" = no && ac_cv_exeext= 4308 4309else $as_nop 4310 ac_file='' 4311fi 4312if test -z "$ac_file" 4313then : 4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4315printf "%s\n" "no" >&6; } 4316printf "%s\n" "$as_me: failed program was:" >&5 4317sed 's/^/| /' conftest.$ac_ext >&5 4318 4319{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4320printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4321as_fn_error 77 "C compiler cannot create executables 4322See \`config.log' for more details" "$LINENO" 5; } 4323else $as_nop 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4325printf "%s\n" "yes" >&6; } 4326fi 4327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4328printf %s "checking for C compiler default output file name... " >&6; } 4329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4330printf "%s\n" "$ac_file" >&6; } 4331ac_exeext=$ac_cv_exeext 4332 4333rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4334ac_clean_files=$ac_clean_files_save 4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4336printf %s "checking for suffix of executables... " >&6; } 4337if { { ac_try="$ac_link" 4338case "(($ac_try" in 4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4340 *) ac_try_echo=$ac_try;; 4341esac 4342eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4343printf "%s\n" "$ac_try_echo"; } >&5 4344 (eval "$ac_link") 2>&5 4345 ac_status=$? 4346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4347 test $ac_status = 0; } 4348then : 4349 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4350# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4351# work properly (i.e., refer to `conftest.exe'), while it won't with 4352# `rm'. 4353for ac_file in conftest.exe conftest conftest.*; do 4354 test -f "$ac_file" || continue 4355 case $ac_file in 4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4358 break;; 4359 * ) break;; 4360 esac 4361done 4362else $as_nop 4363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4364printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4365as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4366See \`config.log' for more details" "$LINENO" 5; } 4367fi 4368rm -f conftest conftest$ac_cv_exeext 4369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4370printf "%s\n" "$ac_cv_exeext" >&6; } 4371 4372rm -f conftest.$ac_ext 4373EXEEXT=$ac_cv_exeext 4374ac_exeext=$EXEEXT 4375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376/* end confdefs.h. */ 4377#include <stdio.h> 4378int 4379main (void) 4380{ 4381FILE *f = fopen ("conftest.out", "w"); 4382 return ferror (f) || fclose (f) != 0; 4383 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388ac_clean_files="$ac_clean_files conftest.out" 4389# Check that the compiler produces executables we can run. If not, either 4390# the compiler is broken, or we cross compile. 4391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4392printf %s "checking whether we are cross compiling... " >&6; } 4393if test "$cross_compiling" != yes; then 4394 { { ac_try="$ac_link" 4395case "(($ac_try" in 4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4397 *) ac_try_echo=$ac_try;; 4398esac 4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4400printf "%s\n" "$ac_try_echo"; } >&5 4401 (eval "$ac_link") 2>&5 4402 ac_status=$? 4403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4404 test $ac_status = 0; } 4405 if { ac_try='./conftest$ac_cv_exeext' 4406 { { case "(($ac_try" in 4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4408 *) ac_try_echo=$ac_try;; 4409esac 4410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4411printf "%s\n" "$ac_try_echo"; } >&5 4412 (eval "$ac_try") 2>&5 4413 ac_status=$? 4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4415 test $ac_status = 0; }; }; then 4416 cross_compiling=no 4417 else 4418 if test "$cross_compiling" = maybe; then 4419 cross_compiling=yes 4420 else 4421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4422printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4423as_fn_error 77 "cannot run C compiled programs. 4424If you meant to cross compile, use \`--host'. 4425See \`config.log' for more details" "$LINENO" 5; } 4426 fi 4427 fi 4428fi 4429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4430printf "%s\n" "$cross_compiling" >&6; } 4431 4432rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4433ac_clean_files=$ac_clean_files_save 4434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4435printf %s "checking for suffix of object files... " >&6; } 4436if test ${ac_cv_objext+y} 4437then : 4438 printf %s "(cached) " >&6 4439else $as_nop 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442 4443int 4444main (void) 4445{ 4446 4447 ; 4448 return 0; 4449} 4450_ACEOF 4451rm -f conftest.o conftest.obj 4452if { { ac_try="$ac_compile" 4453case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4458printf "%s\n" "$ac_try_echo"; } >&5 4459 (eval "$ac_compile") 2>&5 4460 ac_status=$? 4461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4462 test $ac_status = 0; } 4463then : 4464 for ac_file in conftest.o conftest.obj conftest.*; do 4465 test -f "$ac_file" || continue; 4466 case $ac_file in 4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4468 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4469 break;; 4470 esac 4471done 4472else $as_nop 4473 printf "%s\n" "$as_me: failed program was:" >&5 4474sed 's/^/| /' conftest.$ac_ext >&5 4475 4476{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4477printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4478as_fn_error $? "cannot compute suffix of object files: cannot compile 4479See \`config.log' for more details" "$LINENO" 5; } 4480fi 4481rm -f conftest.$ac_cv_objext conftest.$ac_ext 4482fi 4483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4484printf "%s\n" "$ac_cv_objext" >&6; } 4485OBJEXT=$ac_cv_objext 4486ac_objext=$OBJEXT 4487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4488printf %s "checking whether the compiler supports GNU C... " >&6; } 4489if test ${ac_cv_c_compiler_gnu+y} 4490then : 4491 printf %s "(cached) " >&6 4492else $as_nop 4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4494/* end confdefs.h. */ 4495 4496int 4497main (void) 4498{ 4499#ifndef __GNUC__ 4500 choke me 4501#endif 4502 4503 ; 4504 return 0; 4505} 4506_ACEOF 4507if ac_fn_c_try_compile "$LINENO" 4508then : 4509 ac_compiler_gnu=yes 4510else $as_nop 4511 ac_compiler_gnu=no 4512fi 4513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4514ac_cv_c_compiler_gnu=$ac_compiler_gnu 4515 4516fi 4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4518printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4519ac_compiler_gnu=$ac_cv_c_compiler_gnu 4520 4521if test $ac_compiler_gnu = yes; then 4522 GCC=yes 4523else 4524 GCC= 4525fi 4526ac_test_CFLAGS=${CFLAGS+y} 4527ac_save_CFLAGS=$CFLAGS 4528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4529printf %s "checking whether $CC accepts -g... " >&6; } 4530if test ${ac_cv_prog_cc_g+y} 4531then : 4532 printf %s "(cached) " >&6 4533else $as_nop 4534 ac_save_c_werror_flag=$ac_c_werror_flag 4535 ac_c_werror_flag=yes 4536 ac_cv_prog_cc_g=no 4537 CFLAGS="-g" 4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539/* end confdefs.h. */ 4540 4541int 4542main (void) 4543{ 4544 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549if ac_fn_c_try_compile "$LINENO" 4550then : 4551 ac_cv_prog_cc_g=yes 4552else $as_nop 4553 CFLAGS="" 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556 4557int 4558main (void) 4559{ 4560 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_compile "$LINENO" 4566then : 4567 4568else $as_nop 4569 ac_c_werror_flag=$ac_save_c_werror_flag 4570 CFLAGS="-g" 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4572/* end confdefs.h. */ 4573 4574int 4575main (void) 4576{ 4577 4578 ; 4579 return 0; 4580} 4581_ACEOF 4582if ac_fn_c_try_compile "$LINENO" 4583then : 4584 ac_cv_prog_cc_g=yes 4585fi 4586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4587fi 4588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4591 ac_c_werror_flag=$ac_save_c_werror_flag 4592fi 4593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4594printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4595if test $ac_test_CFLAGS; then 4596 CFLAGS=$ac_save_CFLAGS 4597elif test $ac_cv_prog_cc_g = yes; then 4598 if test "$GCC" = yes; then 4599 CFLAGS="-g -O2" 4600 else 4601 CFLAGS="-g" 4602 fi 4603else 4604 if test "$GCC" = yes; then 4605 CFLAGS="-O2" 4606 else 4607 CFLAGS= 4608 fi 4609fi 4610ac_prog_cc_stdc=no 4611if test x$ac_prog_cc_stdc = xno 4612then : 4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4614printf %s "checking for $CC option to enable C11 features... " >&6; } 4615if test ${ac_cv_prog_cc_c11+y} 4616then : 4617 printf %s "(cached) " >&6 4618else $as_nop 4619 ac_cv_prog_cc_c11=no 4620ac_save_CC=$CC 4621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4622/* end confdefs.h. */ 4623$ac_c_conftest_c11_program 4624_ACEOF 4625for ac_arg in '' -std=gnu11 4626do 4627 CC="$ac_save_CC $ac_arg" 4628 if ac_fn_c_try_compile "$LINENO" 4629then : 4630 ac_cv_prog_cc_c11=$ac_arg 4631fi 4632rm -f core conftest.err conftest.$ac_objext conftest.beam 4633 test "x$ac_cv_prog_cc_c11" != "xno" && break 4634done 4635rm -f conftest.$ac_ext 4636CC=$ac_save_CC 4637fi 4638 4639if test "x$ac_cv_prog_cc_c11" = xno 4640then : 4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4642printf "%s\n" "unsupported" >&6; } 4643else $as_nop 4644 if test "x$ac_cv_prog_cc_c11" = x 4645then : 4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4647printf "%s\n" "none needed" >&6; } 4648else $as_nop 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4650printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4651 CC="$CC $ac_cv_prog_cc_c11" 4652fi 4653 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4654 ac_prog_cc_stdc=c11 4655fi 4656fi 4657if test x$ac_prog_cc_stdc = xno 4658then : 4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4660printf %s "checking for $CC option to enable C99 features... " >&6; } 4661if test ${ac_cv_prog_cc_c99+y} 4662then : 4663 printf %s "(cached) " >&6 4664else $as_nop 4665 ac_cv_prog_cc_c99=no 4666ac_save_CC=$CC 4667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669$ac_c_conftest_c99_program 4670_ACEOF 4671for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4672do 4673 CC="$ac_save_CC $ac_arg" 4674 if ac_fn_c_try_compile "$LINENO" 4675then : 4676 ac_cv_prog_cc_c99=$ac_arg 4677fi 4678rm -f core conftest.err conftest.$ac_objext conftest.beam 4679 test "x$ac_cv_prog_cc_c99" != "xno" && break 4680done 4681rm -f conftest.$ac_ext 4682CC=$ac_save_CC 4683fi 4684 4685if test "x$ac_cv_prog_cc_c99" = xno 4686then : 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4688printf "%s\n" "unsupported" >&6; } 4689else $as_nop 4690 if test "x$ac_cv_prog_cc_c99" = x 4691then : 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4693printf "%s\n" "none needed" >&6; } 4694else $as_nop 4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4696printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4697 CC="$CC $ac_cv_prog_cc_c99" 4698fi 4699 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4700 ac_prog_cc_stdc=c99 4701fi 4702fi 4703if test x$ac_prog_cc_stdc = xno 4704then : 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4706printf %s "checking for $CC option to enable C89 features... " >&6; } 4707if test ${ac_cv_prog_cc_c89+y} 4708then : 4709 printf %s "(cached) " >&6 4710else $as_nop 4711 ac_cv_prog_cc_c89=no 4712ac_save_CC=$CC 4713cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714/* end confdefs.h. */ 4715$ac_c_conftest_c89_program 4716_ACEOF 4717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4718do 4719 CC="$ac_save_CC $ac_arg" 4720 if ac_fn_c_try_compile "$LINENO" 4721then : 4722 ac_cv_prog_cc_c89=$ac_arg 4723fi 4724rm -f core conftest.err conftest.$ac_objext conftest.beam 4725 test "x$ac_cv_prog_cc_c89" != "xno" && break 4726done 4727rm -f conftest.$ac_ext 4728CC=$ac_save_CC 4729fi 4730 4731if test "x$ac_cv_prog_cc_c89" = xno 4732then : 4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4734printf "%s\n" "unsupported" >&6; } 4735else $as_nop 4736 if test "x$ac_cv_prog_cc_c89" = x 4737then : 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4739printf "%s\n" "none needed" >&6; } 4740else $as_nop 4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4742printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4743 CC="$CC $ac_cv_prog_cc_c89" 4744fi 4745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4746 ac_prog_cc_stdc=c89 4747fi 4748fi 4749 4750ac_ext=c 4751ac_cpp='$CPP $CPPFLAGS' 4752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4754ac_compiler_gnu=$ac_cv_c_compiler_gnu 4755 4756 4757 ac_ext=c 4758ac_cpp='$CPP $CPPFLAGS' 4759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4761ac_compiler_gnu=$ac_cv_c_compiler_gnu 4762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4763printf %s "checking whether $CC understands -c and -o together... " >&6; } 4764if test ${am_cv_prog_cc_c_o+y} 4765then : 4766 printf %s "(cached) " >&6 4767else $as_nop 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770 4771int 4772main (void) 4773{ 4774 4775 ; 4776 return 0; 4777} 4778_ACEOF 4779 # Make sure it works both with $CC and with simple cc. 4780 # Following AC_PROG_CC_C_O, we do the test twice because some 4781 # compilers refuse to overwrite an existing .o file with -o, 4782 # though they will create one. 4783 am_cv_prog_cc_c_o=yes 4784 for am_i in 1 2; do 4785 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4786 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); } \ 4790 && test -f conftest2.$ac_objext; then 4791 : OK 4792 else 4793 am_cv_prog_cc_c_o=no 4794 break 4795 fi 4796 done 4797 rm -f core conftest* 4798 unset am_i 4799fi 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4801printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4802if test "$am_cv_prog_cc_c_o" != yes; then 4803 # Losing compiler, so override with the script. 4804 # FIXME: It is wrong to rewrite CC. 4805 # But if we don't then we get into trouble of one sort or another. 4806 # A longer-term fix would be to have automake use am__CC in this case, 4807 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4808 CC="$am_aux_dir/compile $CC" 4809fi 4810ac_ext=c 4811ac_cpp='$CPP $CPPFLAGS' 4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4814ac_compiler_gnu=$ac_cv_c_compiler_gnu 4815 4816 4817depcc="$CC" am_compiler_list= 4818 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4820printf %s "checking dependency style of $depcc... " >&6; } 4821if test ${am_cv_CC_dependencies_compiler_type+y} 4822then : 4823 printf %s "(cached) " >&6 4824else $as_nop 4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4826 # We make a subdir and do the tests there. Otherwise we can end up 4827 # making bogus files that we don't know about and never remove. For 4828 # instance it was reported that on HP-UX the gcc test will end up 4829 # making a dummy file named 'D' -- because '-MD' means "put the output 4830 # in D". 4831 rm -rf conftest.dir 4832 mkdir conftest.dir 4833 # Copy depcomp to subdir because otherwise we won't find it if we're 4834 # using a relative directory. 4835 cp "$am_depcomp" conftest.dir 4836 cd conftest.dir 4837 # We will build objects and dependencies in a subdirectory because 4838 # it helps to detect inapplicable dependency modes. For instance 4839 # both Tru64's cc and ICC support -MD to output dependencies as a 4840 # side effect of compilation, but ICC will put the dependencies in 4841 # the current directory while Tru64 will put them in the object 4842 # directory. 4843 mkdir sub 4844 4845 am_cv_CC_dependencies_compiler_type=none 4846 if test "$am_compiler_list" = ""; then 4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4848 fi 4849 am__universal=false 4850 case " $depcc " in #( 4851 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4852 esac 4853 4854 for depmode in $am_compiler_list; do 4855 # Setup a source with many dependencies, because some compilers 4856 # like to wrap large dependency lists on column 80 (with \), and 4857 # we should not choose a depcomp mode which is confused by this. 4858 # 4859 # We need to recreate these files for each test, as the compiler may 4860 # overwrite some of them when testing with obscure command lines. 4861 # This happens at least with the AIX C compiler. 4862 : > sub/conftest.c 4863 for i in 1 2 3 4 5 6; do 4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4866 # Solaris 10 /bin/sh. 4867 echo '/* dummy */' > sub/conftst$i.h 4868 done 4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4870 4871 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4872 # mode. It turns out that the SunPro C++ compiler does not properly 4873 # handle '-M -o', and we need to detect this. Also, some Intel 4874 # versions had trouble with output in subdirs. 4875 am__obj=sub/conftest.${OBJEXT-o} 4876 am__minus_obj="-o $am__obj" 4877 case $depmode in 4878 gcc) 4879 # This depmode causes a compiler race in universal mode. 4880 test "$am__universal" = false || continue 4881 ;; 4882 nosideeffect) 4883 # After this tag, mechanisms are not by side-effect, so they'll 4884 # only be used when explicitly requested. 4885 if test "x$enable_dependency_tracking" = xyes; then 4886 continue 4887 else 4888 break 4889 fi 4890 ;; 4891 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4892 # This compiler won't grok '-c -o', but also, the minuso test has 4893 # not run yet. These depmodes are late enough in the game, and 4894 # so weak that their functioning should not be impacted. 4895 am__obj=conftest.${OBJEXT-o} 4896 am__minus_obj= 4897 ;; 4898 none) break ;; 4899 esac 4900 if depmode=$depmode \ 4901 source=sub/conftest.c object=$am__obj \ 4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4904 >/dev/null 2>conftest.err && 4905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4909 # icc doesn't choke on unknown options, it will just issue warnings 4910 # or remarks (even with -Werror). So we grep stderr for any message 4911 # that says an option was ignored or not supported. 4912 # When given -MP, icc 7.0 and 7.1 complain thusly: 4913 # icc: Command line warning: ignoring option '-M'; no argument required 4914 # The diagnosis changed in icc 8.0: 4915 # icc: Command line remark: option '-MP' not supported 4916 if (grep 'ignoring option' conftest.err || 4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4918 am_cv_CC_dependencies_compiler_type=$depmode 4919 break 4920 fi 4921 fi 4922 done 4923 4924 cd .. 4925 rm -rf conftest.dir 4926else 4927 am_cv_CC_dependencies_compiler_type=none 4928fi 4929 4930fi 4931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4932printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4934 4935 if 4936 test "x$enable_dependency_tracking" != xno \ 4937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4938 am__fastdepCC_TRUE= 4939 am__fastdepCC_FALSE='#' 4940else 4941 am__fastdepCC_TRUE='#' 4942 am__fastdepCC_FALSE= 4943fi 4944 4945 4946 4947 4948 if test -n "$ac_tool_prefix"; then 4949 for ac_prog in ar lib "link -lib" 4950 do 4951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4954printf %s "checking for $ac_word... " >&6; } 4955if test ${ac_cv_prog_AR+y} 4956then : 4957 printf %s "(cached) " >&6 4958else $as_nop 4959 if test -n "$AR"; then 4960 ac_cv_prog_AR="$AR" # Let the user override the test. 4961else 4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4963for as_dir in $PATH 4964do 4965 IFS=$as_save_IFS 4966 case $as_dir in #((( 4967 '') as_dir=./ ;; 4968 */) ;; 4969 *) as_dir=$as_dir/ ;; 4970 esac 4971 for ac_exec_ext in '' $ac_executable_extensions; do 4972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4973 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4975 break 2 4976 fi 4977done 4978 done 4979IFS=$as_save_IFS 4980 4981fi 4982fi 4983AR=$ac_cv_prog_AR 4984if test -n "$AR"; then 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4986printf "%s\n" "$AR" >&6; } 4987else 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4989printf "%s\n" "no" >&6; } 4990fi 4991 4992 4993 test -n "$AR" && break 4994 done 4995fi 4996if test -z "$AR"; then 4997 ac_ct_AR=$AR 4998 for ac_prog in ar lib "link -lib" 4999do 5000 # Extract the first word of "$ac_prog", so it can be a program name with args. 5001set dummy $ac_prog; ac_word=$2 5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003printf %s "checking for $ac_word... " >&6; } 5004if test ${ac_cv_prog_ac_ct_AR+y} 5005then : 5006 printf %s "(cached) " >&6 5007else $as_nop 5008 if test -n "$ac_ct_AR"; then 5009 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5010else 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 case $as_dir in #((( 5016 '') as_dir=./ ;; 5017 */) ;; 5018 *) as_dir=$as_dir/ ;; 5019 esac 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5022 ac_cv_prog_ac_ct_AR="$ac_prog" 5023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5024 break 2 5025 fi 5026done 5027 done 5028IFS=$as_save_IFS 5029 5030fi 5031fi 5032ac_ct_AR=$ac_cv_prog_ac_ct_AR 5033if test -n "$ac_ct_AR"; then 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5035printf "%s\n" "$ac_ct_AR" >&6; } 5036else 5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5038printf "%s\n" "no" >&6; } 5039fi 5040 5041 5042 test -n "$ac_ct_AR" && break 5043done 5044 5045 if test "x$ac_ct_AR" = x; then 5046 AR="false" 5047 else 5048 case $cross_compiling:$ac_tool_warned in 5049yes:) 5050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5051printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5052ac_tool_warned=yes ;; 5053esac 5054 AR=$ac_ct_AR 5055 fi 5056fi 5057 5058: ${AR=ar} 5059 5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5061printf %s "checking the archiver ($AR) interface... " >&6; } 5062if test ${am_cv_ar_interface+y} 5063then : 5064 printf %s "(cached) " >&6 5065else $as_nop 5066 ac_ext=c 5067ac_cpp='$CPP $CPPFLAGS' 5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5070ac_compiler_gnu=$ac_cv_c_compiler_gnu 5071 5072 am_cv_ar_interface=ar 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075int some_variable = 0; 5076_ACEOF 5077if ac_fn_c_try_compile "$LINENO" 5078then : 5079 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5081 (eval $am_ar_try) 2>&5 5082 ac_status=$? 5083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5084 test $ac_status = 0; } 5085 if test "$ac_status" -eq 0; then 5086 am_cv_ar_interface=ar 5087 else 5088 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5090 (eval $am_ar_try) 2>&5 5091 ac_status=$? 5092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5093 test $ac_status = 0; } 5094 if test "$ac_status" -eq 0; then 5095 am_cv_ar_interface=lib 5096 else 5097 am_cv_ar_interface=unknown 5098 fi 5099 fi 5100 rm -f conftest.lib libconftest.a 5101 5102fi 5103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5104 ac_ext=c 5105ac_cpp='$CPP $CPPFLAGS' 5106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5108ac_compiler_gnu=$ac_cv_c_compiler_gnu 5109 5110fi 5111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5112printf "%s\n" "$am_cv_ar_interface" >&6; } 5113 5114case $am_cv_ar_interface in 5115ar) 5116 ;; 5117lib) 5118 # Microsoft lib, so override with the ar-lib wrapper script. 5119 # FIXME: It is wrong to rewrite AR. 5120 # But if we don't then we get into trouble of one sort or another. 5121 # A longer-term fix would be to have automake use am__AR in this case, 5122 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5123 # similar. 5124 AR="$am_aux_dir/ar-lib $AR" 5125 ;; 5126unknown) 5127 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5128 ;; 5129esac 5130 5131# By default we simply use the C compiler to build assembly code. 5132 5133test "${CCAS+set}" = set || CCAS=$CC 5134test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 5135 5136 5137 5138depcc="$CCAS" am_compiler_list= 5139 5140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5141printf %s "checking dependency style of $depcc... " >&6; } 5142if test ${am_cv_CCAS_dependencies_compiler_type+y} 5143then : 5144 printf %s "(cached) " >&6 5145else $as_nop 5146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5147 # We make a subdir and do the tests there. Otherwise we can end up 5148 # making bogus files that we don't know about and never remove. For 5149 # instance it was reported that on HP-UX the gcc test will end up 5150 # making a dummy file named 'D' -- because '-MD' means "put the output 5151 # in D". 5152 rm -rf conftest.dir 5153 mkdir conftest.dir 5154 # Copy depcomp to subdir because otherwise we won't find it if we're 5155 # using a relative directory. 5156 cp "$am_depcomp" conftest.dir 5157 cd conftest.dir 5158 # We will build objects and dependencies in a subdirectory because 5159 # it helps to detect inapplicable dependency modes. For instance 5160 # both Tru64's cc and ICC support -MD to output dependencies as a 5161 # side effect of compilation, but ICC will put the dependencies in 5162 # the current directory while Tru64 will put them in the object 5163 # directory. 5164 mkdir sub 5165 5166 am_cv_CCAS_dependencies_compiler_type=none 5167 if test "$am_compiler_list" = ""; then 5168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5169 fi 5170 am__universal=false 5171 5172 5173 for depmode in $am_compiler_list; do 5174 # Setup a source with many dependencies, because some compilers 5175 # like to wrap large dependency lists on column 80 (with \), and 5176 # we should not choose a depcomp mode which is confused by this. 5177 # 5178 # We need to recreate these files for each test, as the compiler may 5179 # overwrite some of them when testing with obscure command lines. 5180 # This happens at least with the AIX C compiler. 5181 : > sub/conftest.c 5182 for i in 1 2 3 4 5 6; do 5183 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5184 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5185 # Solaris 10 /bin/sh. 5186 echo '/* dummy */' > sub/conftst$i.h 5187 done 5188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5189 5190 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5191 # mode. It turns out that the SunPro C++ compiler does not properly 5192 # handle '-M -o', and we need to detect this. Also, some Intel 5193 # versions had trouble with output in subdirs. 5194 am__obj=sub/conftest.${OBJEXT-o} 5195 am__minus_obj="-o $am__obj" 5196 case $depmode in 5197 gcc) 5198 # This depmode causes a compiler race in universal mode. 5199 test "$am__universal" = false || continue 5200 ;; 5201 nosideeffect) 5202 # After this tag, mechanisms are not by side-effect, so they'll 5203 # only be used when explicitly requested. 5204 if test "x$enable_dependency_tracking" = xyes; then 5205 continue 5206 else 5207 break 5208 fi 5209 ;; 5210 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5211 # This compiler won't grok '-c -o', but also, the minuso test has 5212 # not run yet. These depmodes are late enough in the game, and 5213 # so weak that their functioning should not be impacted. 5214 am__obj=conftest.${OBJEXT-o} 5215 am__minus_obj= 5216 ;; 5217 none) break ;; 5218 esac 5219 if depmode=$depmode \ 5220 source=sub/conftest.c object=$am__obj \ 5221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5223 >/dev/null 2>conftest.err && 5224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5228 # icc doesn't choke on unknown options, it will just issue warnings 5229 # or remarks (even with -Werror). So we grep stderr for any message 5230 # that says an option was ignored or not supported. 5231 # When given -MP, icc 7.0 and 7.1 complain thusly: 5232 # icc: Command line warning: ignoring option '-M'; no argument required 5233 # The diagnosis changed in icc 8.0: 5234 # icc: Command line remark: option '-MP' not supported 5235 if (grep 'ignoring option' conftest.err || 5236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5237 am_cv_CCAS_dependencies_compiler_type=$depmode 5238 break 5239 fi 5240 fi 5241 done 5242 5243 cd .. 5244 rm -rf conftest.dir 5245else 5246 am_cv_CCAS_dependencies_compiler_type=none 5247fi 5248 5249fi 5250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 5251printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; } 5252CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 5253 5254 if 5255 test "x$enable_dependency_tracking" != xno \ 5256 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 5257 am__fastdepCCAS_TRUE= 5258 am__fastdepCCAS_FALSE='#' 5259else 5260 am__fastdepCCAS_TRUE='#' 5261 am__fastdepCCAS_FALSE= 5262fi 5263 5264 5265ac_ext=c 5266ac_cpp='$CPP $CPPFLAGS' 5267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5269ac_compiler_gnu=$ac_cv_c_compiler_gnu 5270if test -n "$ac_tool_prefix"; then 5271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5272set dummy ${ac_tool_prefix}gcc; ac_word=$2 5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5274printf %s "checking for $ac_word... " >&6; } 5275if test ${ac_cv_prog_CC+y} 5276then : 5277 printf %s "(cached) " >&6 5278else $as_nop 5279 if test -n "$CC"; then 5280 ac_cv_prog_CC="$CC" # Let the user override the test. 5281else 5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5283for as_dir in $PATH 5284do 5285 IFS=$as_save_IFS 5286 case $as_dir in #((( 5287 '') as_dir=./ ;; 5288 */) ;; 5289 *) as_dir=$as_dir/ ;; 5290 esac 5291 for ac_exec_ext in '' $ac_executable_extensions; do 5292 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5293 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5295 break 2 5296 fi 5297done 5298 done 5299IFS=$as_save_IFS 5300 5301fi 5302fi 5303CC=$ac_cv_prog_CC 5304if test -n "$CC"; then 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5306printf "%s\n" "$CC" >&6; } 5307else 5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5309printf "%s\n" "no" >&6; } 5310fi 5311 5312 5313fi 5314if test -z "$ac_cv_prog_CC"; then 5315 ac_ct_CC=$CC 5316 # Extract the first word of "gcc", so it can be a program name with args. 5317set dummy gcc; ac_word=$2 5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319printf %s "checking for $ac_word... " >&6; } 5320if test ${ac_cv_prog_ac_ct_CC+y} 5321then : 5322 printf %s "(cached) " >&6 5323else $as_nop 5324 if test -n "$ac_ct_CC"; then 5325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5326else 5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328for as_dir in $PATH 5329do 5330 IFS=$as_save_IFS 5331 case $as_dir in #((( 5332 '') as_dir=./ ;; 5333 */) ;; 5334 *) as_dir=$as_dir/ ;; 5335 esac 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5338 ac_cv_prog_ac_ct_CC="gcc" 5339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342done 5343 done 5344IFS=$as_save_IFS 5345 5346fi 5347fi 5348ac_ct_CC=$ac_cv_prog_ac_ct_CC 5349if test -n "$ac_ct_CC"; then 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5351printf "%s\n" "$ac_ct_CC" >&6; } 5352else 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354printf "%s\n" "no" >&6; } 5355fi 5356 5357 if test "x$ac_ct_CC" = x; then 5358 CC="" 5359 else 5360 case $cross_compiling:$ac_tool_warned in 5361yes:) 5362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5363printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5364ac_tool_warned=yes ;; 5365esac 5366 CC=$ac_ct_CC 5367 fi 5368else 5369 CC="$ac_cv_prog_CC" 5370fi 5371 5372if test -z "$CC"; then 5373 if test -n "$ac_tool_prefix"; then 5374 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5375set dummy ${ac_tool_prefix}cc; ac_word=$2 5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377printf %s "checking for $ac_word... " >&6; } 5378if test ${ac_cv_prog_CC+y} 5379then : 5380 printf %s "(cached) " >&6 5381else $as_nop 5382 if test -n "$CC"; then 5383 ac_cv_prog_CC="$CC" # Let the user override the test. 5384else 5385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5386for as_dir in $PATH 5387do 5388 IFS=$as_save_IFS 5389 case $as_dir in #((( 5390 '') as_dir=./ ;; 5391 */) ;; 5392 *) as_dir=$as_dir/ ;; 5393 esac 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5396 ac_cv_prog_CC="${ac_tool_prefix}cc" 5397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400done 5401 done 5402IFS=$as_save_IFS 5403 5404fi 5405fi 5406CC=$ac_cv_prog_CC 5407if test -n "$CC"; then 5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5409printf "%s\n" "$CC" >&6; } 5410else 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5412printf "%s\n" "no" >&6; } 5413fi 5414 5415 5416 fi 5417fi 5418if test -z "$CC"; then 5419 # Extract the first word of "cc", so it can be a program name with args. 5420set dummy cc; ac_word=$2 5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5422printf %s "checking for $ac_word... " >&6; } 5423if test ${ac_cv_prog_CC+y} 5424then : 5425 printf %s "(cached) " >&6 5426else $as_nop 5427 if test -n "$CC"; then 5428 ac_cv_prog_CC="$CC" # Let the user override the test. 5429else 5430 ac_prog_rejected=no 5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432for as_dir in $PATH 5433do 5434 IFS=$as_save_IFS 5435 case $as_dir in #((( 5436 '') as_dir=./ ;; 5437 */) ;; 5438 *) as_dir=$as_dir/ ;; 5439 esac 5440 for ac_exec_ext in '' $ac_executable_extensions; do 5441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5442 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5443 ac_prog_rejected=yes 5444 continue 5445 fi 5446 ac_cv_prog_CC="cc" 5447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450done 5451 done 5452IFS=$as_save_IFS 5453 5454if test $ac_prog_rejected = yes; then 5455 # We found a bogon in the path, so make sure we never use it. 5456 set dummy $ac_cv_prog_CC 5457 shift 5458 if test $# != 0; then 5459 # We chose a different compiler from the bogus one. 5460 # However, it has the same basename, so the bogon will be chosen 5461 # first if we set CC to just the basename; use the full file name. 5462 shift 5463 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5464 fi 5465fi 5466fi 5467fi 5468CC=$ac_cv_prog_CC 5469if test -n "$CC"; then 5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5471printf "%s\n" "$CC" >&6; } 5472else 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474printf "%s\n" "no" >&6; } 5475fi 5476 5477 5478fi 5479if test -z "$CC"; then 5480 if test -n "$ac_tool_prefix"; then 5481 for ac_prog in cl.exe 5482 do 5483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5484set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486printf %s "checking for $ac_word... " >&6; } 5487if test ${ac_cv_prog_CC+y} 5488then : 5489 printf %s "(cached) " >&6 5490else $as_nop 5491 if test -n "$CC"; then 5492 ac_cv_prog_CC="$CC" # Let the user override the test. 5493else 5494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 case $as_dir in #((( 5499 '') as_dir=./ ;; 5500 */) ;; 5501 *) as_dir=$as_dir/ ;; 5502 esac 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509done 5510 done 5511IFS=$as_save_IFS 5512 5513fi 5514fi 5515CC=$ac_cv_prog_CC 5516if test -n "$CC"; then 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5518printf "%s\n" "$CC" >&6; } 5519else 5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5521printf "%s\n" "no" >&6; } 5522fi 5523 5524 5525 test -n "$CC" && break 5526 done 5527fi 5528if test -z "$CC"; then 5529 ac_ct_CC=$CC 5530 for ac_prog in cl.exe 5531do 5532 # Extract the first word of "$ac_prog", so it can be a program name with args. 5533set dummy $ac_prog; ac_word=$2 5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5535printf %s "checking for $ac_word... " >&6; } 5536if test ${ac_cv_prog_ac_ct_CC+y} 5537then : 5538 printf %s "(cached) " >&6 5539else $as_nop 5540 if test -n "$ac_ct_CC"; then 5541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5542else 5543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5544for as_dir in $PATH 5545do 5546 IFS=$as_save_IFS 5547 case $as_dir in #((( 5548 '') as_dir=./ ;; 5549 */) ;; 5550 *) as_dir=$as_dir/ ;; 5551 esac 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_ac_ct_CC="$ac_prog" 5555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558done 5559 done 5560IFS=$as_save_IFS 5561 5562fi 5563fi 5564ac_ct_CC=$ac_cv_prog_ac_ct_CC 5565if test -n "$ac_ct_CC"; then 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5567printf "%s\n" "$ac_ct_CC" >&6; } 5568else 5569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5570printf "%s\n" "no" >&6; } 5571fi 5572 5573 5574 test -n "$ac_ct_CC" && break 5575done 5576 5577 if test "x$ac_ct_CC" = x; then 5578 CC="" 5579 else 5580 case $cross_compiling:$ac_tool_warned in 5581yes:) 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5584ac_tool_warned=yes ;; 5585esac 5586 CC=$ac_ct_CC 5587 fi 5588fi 5589 5590fi 5591if test -z "$CC"; then 5592 if test -n "$ac_tool_prefix"; then 5593 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5594set dummy ${ac_tool_prefix}clang; ac_word=$2 5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5596printf %s "checking for $ac_word... " >&6; } 5597if test ${ac_cv_prog_CC+y} 5598then : 5599 printf %s "(cached) " >&6 5600else $as_nop 5601 if test -n "$CC"; then 5602 ac_cv_prog_CC="$CC" # Let the user override the test. 5603else 5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5605for as_dir in $PATH 5606do 5607 IFS=$as_save_IFS 5608 case $as_dir in #((( 5609 '') as_dir=./ ;; 5610 */) ;; 5611 *) as_dir=$as_dir/ ;; 5612 esac 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5615 ac_cv_prog_CC="${ac_tool_prefix}clang" 5616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625CC=$ac_cv_prog_CC 5626if test -n "$CC"; then 5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5628printf "%s\n" "$CC" >&6; } 5629else 5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631printf "%s\n" "no" >&6; } 5632fi 5633 5634 5635fi 5636if test -z "$ac_cv_prog_CC"; then 5637 ac_ct_CC=$CC 5638 # Extract the first word of "clang", so it can be a program name with args. 5639set dummy clang; ac_word=$2 5640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641printf %s "checking for $ac_word... " >&6; } 5642if test ${ac_cv_prog_ac_ct_CC+y} 5643then : 5644 printf %s "(cached) " >&6 5645else $as_nop 5646 if test -n "$ac_ct_CC"; then 5647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5648else 5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5650for as_dir in $PATH 5651do 5652 IFS=$as_save_IFS 5653 case $as_dir in #((( 5654 '') as_dir=./ ;; 5655 */) ;; 5656 *) as_dir=$as_dir/ ;; 5657 esac 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_ac_ct_CC="clang" 5661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670ac_ct_CC=$ac_cv_prog_ac_ct_CC 5671if test -n "$ac_ct_CC"; then 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5673printf "%s\n" "$ac_ct_CC" >&6; } 5674else 5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676printf "%s\n" "no" >&6; } 5677fi 5678 5679 if test "x$ac_ct_CC" = x; then 5680 CC="" 5681 else 5682 case $cross_compiling:$ac_tool_warned in 5683yes:) 5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5686ac_tool_warned=yes ;; 5687esac 5688 CC=$ac_ct_CC 5689 fi 5690else 5691 CC="$ac_cv_prog_CC" 5692fi 5693 5694fi 5695 5696 5697test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5698printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5699as_fn_error $? "no acceptable C compiler found in \$PATH 5700See \`config.log' for more details" "$LINENO" 5; } 5701 5702# Provide some information about the compiler. 5703printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5704set X $ac_compile 5705ac_compiler=$2 5706for ac_option in --version -v -V -qversion -version; do 5707 { { ac_try="$ac_compiler $ac_option >&5" 5708case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5713printf "%s\n" "$ac_try_echo"; } >&5 5714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5715 ac_status=$? 5716 if test -s conftest.err; then 5717 sed '10a\ 5718... rest of stderr output deleted ... 5719 10q' conftest.err >conftest.er1 5720 cat conftest.er1 >&5 5721 fi 5722 rm -f conftest.er1 conftest.err 5723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5724 test $ac_status = 0; } 5725done 5726 5727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5728printf %s "checking whether the compiler supports GNU C... " >&6; } 5729if test ${ac_cv_c_compiler_gnu+y} 5730then : 5731 printf %s "(cached) " >&6 5732else $as_nop 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735 5736int 5737main (void) 5738{ 5739#ifndef __GNUC__ 5740 choke me 5741#endif 5742 5743 ; 5744 return 0; 5745} 5746_ACEOF 5747if ac_fn_c_try_compile "$LINENO" 5748then : 5749 ac_compiler_gnu=yes 5750else $as_nop 5751 ac_compiler_gnu=no 5752fi 5753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5754ac_cv_c_compiler_gnu=$ac_compiler_gnu 5755 5756fi 5757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5758printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5759ac_compiler_gnu=$ac_cv_c_compiler_gnu 5760 5761if test $ac_compiler_gnu = yes; then 5762 GCC=yes 5763else 5764 GCC= 5765fi 5766ac_test_CFLAGS=${CFLAGS+y} 5767ac_save_CFLAGS=$CFLAGS 5768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5769printf %s "checking whether $CC accepts -g... " >&6; } 5770if test ${ac_cv_prog_cc_g+y} 5771then : 5772 printf %s "(cached) " >&6 5773else $as_nop 5774 ac_save_c_werror_flag=$ac_c_werror_flag 5775 ac_c_werror_flag=yes 5776 ac_cv_prog_cc_g=no 5777 CFLAGS="-g" 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780 5781int 5782main (void) 5783{ 5784 5785 ; 5786 return 0; 5787} 5788_ACEOF 5789if ac_fn_c_try_compile "$LINENO" 5790then : 5791 ac_cv_prog_cc_g=yes 5792else $as_nop 5793 CFLAGS="" 5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5795/* end confdefs.h. */ 5796 5797int 5798main (void) 5799{ 5800 5801 ; 5802 return 0; 5803} 5804_ACEOF 5805if ac_fn_c_try_compile "$LINENO" 5806then : 5807 5808else $as_nop 5809 ac_c_werror_flag=$ac_save_c_werror_flag 5810 CFLAGS="-g" 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813 5814int 5815main (void) 5816{ 5817 5818 ; 5819 return 0; 5820} 5821_ACEOF 5822if ac_fn_c_try_compile "$LINENO" 5823then : 5824 ac_cv_prog_cc_g=yes 5825fi 5826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5829fi 5830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5831 ac_c_werror_flag=$ac_save_c_werror_flag 5832fi 5833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5834printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5835if test $ac_test_CFLAGS; then 5836 CFLAGS=$ac_save_CFLAGS 5837elif test $ac_cv_prog_cc_g = yes; then 5838 if test "$GCC" = yes; then 5839 CFLAGS="-g -O2" 5840 else 5841 CFLAGS="-g" 5842 fi 5843else 5844 if test "$GCC" = yes; then 5845 CFLAGS="-O2" 5846 else 5847 CFLAGS= 5848 fi 5849fi 5850ac_prog_cc_stdc=no 5851if test x$ac_prog_cc_stdc = xno 5852then : 5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5854printf %s "checking for $CC option to enable C11 features... " >&6; } 5855if test ${ac_cv_prog_cc_c11+y} 5856then : 5857 printf %s "(cached) " >&6 5858else $as_nop 5859 ac_cv_prog_cc_c11=no 5860ac_save_CC=$CC 5861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863$ac_c_conftest_c11_program 5864_ACEOF 5865for ac_arg in '' -std=gnu11 5866do 5867 CC="$ac_save_CC $ac_arg" 5868 if ac_fn_c_try_compile "$LINENO" 5869then : 5870 ac_cv_prog_cc_c11=$ac_arg 5871fi 5872rm -f core conftest.err conftest.$ac_objext conftest.beam 5873 test "x$ac_cv_prog_cc_c11" != "xno" && break 5874done 5875rm -f conftest.$ac_ext 5876CC=$ac_save_CC 5877fi 5878 5879if test "x$ac_cv_prog_cc_c11" = xno 5880then : 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5882printf "%s\n" "unsupported" >&6; } 5883else $as_nop 5884 if test "x$ac_cv_prog_cc_c11" = x 5885then : 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5887printf "%s\n" "none needed" >&6; } 5888else $as_nop 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5890printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5891 CC="$CC $ac_cv_prog_cc_c11" 5892fi 5893 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5894 ac_prog_cc_stdc=c11 5895fi 5896fi 5897if test x$ac_prog_cc_stdc = xno 5898then : 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5900printf %s "checking for $CC option to enable C99 features... " >&6; } 5901if test ${ac_cv_prog_cc_c99+y} 5902then : 5903 printf %s "(cached) " >&6 5904else $as_nop 5905 ac_cv_prog_cc_c99=no 5906ac_save_CC=$CC 5907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5908/* end confdefs.h. */ 5909$ac_c_conftest_c99_program 5910_ACEOF 5911for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5912do 5913 CC="$ac_save_CC $ac_arg" 5914 if ac_fn_c_try_compile "$LINENO" 5915then : 5916 ac_cv_prog_cc_c99=$ac_arg 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.beam 5919 test "x$ac_cv_prog_cc_c99" != "xno" && break 5920done 5921rm -f conftest.$ac_ext 5922CC=$ac_save_CC 5923fi 5924 5925if test "x$ac_cv_prog_cc_c99" = xno 5926then : 5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5928printf "%s\n" "unsupported" >&6; } 5929else $as_nop 5930 if test "x$ac_cv_prog_cc_c99" = x 5931then : 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5933printf "%s\n" "none needed" >&6; } 5934else $as_nop 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5936printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5937 CC="$CC $ac_cv_prog_cc_c99" 5938fi 5939 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5940 ac_prog_cc_stdc=c99 5941fi 5942fi 5943if test x$ac_prog_cc_stdc = xno 5944then : 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5946printf %s "checking for $CC option to enable C89 features... " >&6; } 5947if test ${ac_cv_prog_cc_c89+y} 5948then : 5949 printf %s "(cached) " >&6 5950else $as_nop 5951 ac_cv_prog_cc_c89=no 5952ac_save_CC=$CC 5953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5954/* end confdefs.h. */ 5955$ac_c_conftest_c89_program 5956_ACEOF 5957for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5958do 5959 CC="$ac_save_CC $ac_arg" 5960 if ac_fn_c_try_compile "$LINENO" 5961then : 5962 ac_cv_prog_cc_c89=$ac_arg 5963fi 5964rm -f core conftest.err conftest.$ac_objext conftest.beam 5965 test "x$ac_cv_prog_cc_c89" != "xno" && break 5966done 5967rm -f conftest.$ac_ext 5968CC=$ac_save_CC 5969fi 5970 5971if test "x$ac_cv_prog_cc_c89" = xno 5972then : 5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5974printf "%s\n" "unsupported" >&6; } 5975else $as_nop 5976 if test "x$ac_cv_prog_cc_c89" = x 5977then : 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5979printf "%s\n" "none needed" >&6; } 5980else $as_nop 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5982printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5983 CC="$CC $ac_cv_prog_cc_c89" 5984fi 5985 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5986 ac_prog_cc_stdc=c89 5987fi 5988fi 5989 5990ac_ext=c 5991ac_cpp='$CPP $CPPFLAGS' 5992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5994ac_compiler_gnu=$ac_cv_c_compiler_gnu 5995 5996 5997 ac_ext=c 5998ac_cpp='$CPP $CPPFLAGS' 5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6001ac_compiler_gnu=$ac_cv_c_compiler_gnu 6002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6003printf %s "checking whether $CC understands -c and -o together... " >&6; } 6004if test ${am_cv_prog_cc_c_o+y} 6005then : 6006 printf %s "(cached) " >&6 6007else $as_nop 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010 6011int 6012main (void) 6013{ 6014 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019 # Make sure it works both with $CC and with simple cc. 6020 # Following AC_PROG_CC_C_O, we do the test twice because some 6021 # compilers refuse to overwrite an existing .o file with -o, 6022 # though they will create one. 6023 am_cv_prog_cc_c_o=yes 6024 for am_i in 1 2; do 6025 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6026 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6027 ac_status=$? 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); } \ 6030 && test -f conftest2.$ac_objext; then 6031 : OK 6032 else 6033 am_cv_prog_cc_c_o=no 6034 break 6035 fi 6036 done 6037 rm -f core conftest* 6038 unset am_i 6039fi 6040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6041printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 6042if test "$am_cv_prog_cc_c_o" != yes; then 6043 # Losing compiler, so override with the script. 6044 # FIXME: It is wrong to rewrite CC. 6045 # But if we don't then we get into trouble of one sort or another. 6046 # A longer-term fix would be to have automake use am__CC in this case, 6047 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6048 CC="$am_aux_dir/compile $CC" 6049fi 6050ac_ext=c 6051ac_cpp='$CPP $CPPFLAGS' 6052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6054ac_compiler_gnu=$ac_cv_c_compiler_gnu 6055 6056 6057depcc="$CC" am_compiler_list= 6058 6059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6060printf %s "checking dependency style of $depcc... " >&6; } 6061if test ${am_cv_CC_dependencies_compiler_type+y} 6062then : 6063 printf %s "(cached) " >&6 6064else $as_nop 6065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6066 # We make a subdir and do the tests there. Otherwise we can end up 6067 # making bogus files that we don't know about and never remove. For 6068 # instance it was reported that on HP-UX the gcc test will end up 6069 # making a dummy file named 'D' -- because '-MD' means "put the output 6070 # in D". 6071 rm -rf conftest.dir 6072 mkdir conftest.dir 6073 # Copy depcomp to subdir because otherwise we won't find it if we're 6074 # using a relative directory. 6075 cp "$am_depcomp" conftest.dir 6076 cd conftest.dir 6077 # We will build objects and dependencies in a subdirectory because 6078 # it helps to detect inapplicable dependency modes. For instance 6079 # both Tru64's cc and ICC support -MD to output dependencies as a 6080 # side effect of compilation, but ICC will put the dependencies in 6081 # the current directory while Tru64 will put them in the object 6082 # directory. 6083 mkdir sub 6084 6085 am_cv_CC_dependencies_compiler_type=none 6086 if test "$am_compiler_list" = ""; then 6087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6088 fi 6089 am__universal=false 6090 case " $depcc " in #( 6091 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6092 esac 6093 6094 for depmode in $am_compiler_list; do 6095 # Setup a source with many dependencies, because some compilers 6096 # like to wrap large dependency lists on column 80 (with \), and 6097 # we should not choose a depcomp mode which is confused by this. 6098 # 6099 # We need to recreate these files for each test, as the compiler may 6100 # overwrite some of them when testing with obscure command lines. 6101 # This happens at least with the AIX C compiler. 6102 : > sub/conftest.c 6103 for i in 1 2 3 4 5 6; do 6104 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6105 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6106 # Solaris 10 /bin/sh. 6107 echo '/* dummy */' > sub/conftst$i.h 6108 done 6109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6110 6111 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6112 # mode. It turns out that the SunPro C++ compiler does not properly 6113 # handle '-M -o', and we need to detect this. Also, some Intel 6114 # versions had trouble with output in subdirs. 6115 am__obj=sub/conftest.${OBJEXT-o} 6116 am__minus_obj="-o $am__obj" 6117 case $depmode in 6118 gcc) 6119 # This depmode causes a compiler race in universal mode. 6120 test "$am__universal" = false || continue 6121 ;; 6122 nosideeffect) 6123 # After this tag, mechanisms are not by side-effect, so they'll 6124 # only be used when explicitly requested. 6125 if test "x$enable_dependency_tracking" = xyes; then 6126 continue 6127 else 6128 break 6129 fi 6130 ;; 6131 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6132 # This compiler won't grok '-c -o', but also, the minuso test has 6133 # not run yet. These depmodes are late enough in the game, and 6134 # so weak that their functioning should not be impacted. 6135 am__obj=conftest.${OBJEXT-o} 6136 am__minus_obj= 6137 ;; 6138 none) break ;; 6139 esac 6140 if depmode=$depmode \ 6141 source=sub/conftest.c object=$am__obj \ 6142 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6143 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6144 >/dev/null 2>conftest.err && 6145 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6146 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6147 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6148 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6149 # icc doesn't choke on unknown options, it will just issue warnings 6150 # or remarks (even with -Werror). So we grep stderr for any message 6151 # that says an option was ignored or not supported. 6152 # When given -MP, icc 7.0 and 7.1 complain thusly: 6153 # icc: Command line warning: ignoring option '-M'; no argument required 6154 # The diagnosis changed in icc 8.0: 6155 # icc: Command line remark: option '-MP' not supported 6156 if (grep 'ignoring option' conftest.err || 6157 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6158 am_cv_CC_dependencies_compiler_type=$depmode 6159 break 6160 fi 6161 fi 6162 done 6163 6164 cd .. 6165 rm -rf conftest.dir 6166else 6167 am_cv_CC_dependencies_compiler_type=none 6168fi 6169 6170fi 6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6172printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6173CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6174 6175 if 6176 test "x$enable_dependency_tracking" != xno \ 6177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6178 am__fastdepCC_TRUE= 6179 am__fastdepCC_FALSE='#' 6180else 6181 am__fastdepCC_TRUE='#' 6182 am__fastdepCC_FALSE= 6183fi 6184 6185 6186 6187ac_ext=c 6188ac_cpp='$CPP $CPPFLAGS' 6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6191ac_compiler_gnu=$ac_cv_c_compiler_gnu 6192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6193printf %s "checking how to run the C preprocessor... " >&6; } 6194# On Suns, sometimes $CPP names a directory. 6195if test -n "$CPP" && test -d "$CPP"; then 6196 CPP= 6197fi 6198if test -z "$CPP"; then 6199 if test ${ac_cv_prog_CPP+y} 6200then : 6201 printf %s "(cached) " >&6 6202else $as_nop 6203 # Double quotes because $CC needs to be expanded 6204 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6205 do 6206 ac_preproc_ok=false 6207for ac_c_preproc_warn_flag in '' yes 6208do 6209 # Use a header file that comes with gcc, so configuring glibc 6210 # with a fresh cross-compiler works. 6211 # On the NeXT, cc -E runs the code through the compiler's parser, 6212 # not just through cpp. "Syntax error" is here to catch this case. 6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6214/* end confdefs.h. */ 6215#include <limits.h> 6216 Syntax error 6217_ACEOF 6218if ac_fn_c_try_cpp "$LINENO" 6219then : 6220 6221else $as_nop 6222 # Broken: fails on valid input. 6223continue 6224fi 6225rm -f conftest.err conftest.i conftest.$ac_ext 6226 6227 # OK, works on sane cases. Now check whether nonexistent headers 6228 # can be detected and how. 6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6230/* end confdefs.h. */ 6231#include <ac_nonexistent.h> 6232_ACEOF 6233if ac_fn_c_try_cpp "$LINENO" 6234then : 6235 # Broken: success on invalid input. 6236continue 6237else $as_nop 6238 # Passes both tests. 6239ac_preproc_ok=: 6240break 6241fi 6242rm -f conftest.err conftest.i conftest.$ac_ext 6243 6244done 6245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6246rm -f conftest.i conftest.err conftest.$ac_ext 6247if $ac_preproc_ok 6248then : 6249 break 6250fi 6251 6252 done 6253 ac_cv_prog_CPP=$CPP 6254 6255fi 6256 CPP=$ac_cv_prog_CPP 6257else 6258 ac_cv_prog_CPP=$CPP 6259fi 6260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6261printf "%s\n" "$CPP" >&6; } 6262ac_preproc_ok=false 6263for ac_c_preproc_warn_flag in '' yes 6264do 6265 # Use a header file that comes with gcc, so configuring glibc 6266 # with a fresh cross-compiler works. 6267 # On the NeXT, cc -E runs the code through the compiler's parser, 6268 # not just through cpp. "Syntax error" is here to catch this case. 6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6270/* end confdefs.h. */ 6271#include <limits.h> 6272 Syntax error 6273_ACEOF 6274if ac_fn_c_try_cpp "$LINENO" 6275then : 6276 6277else $as_nop 6278 # Broken: fails on valid input. 6279continue 6280fi 6281rm -f conftest.err conftest.i conftest.$ac_ext 6282 6283 # OK, works on sane cases. Now check whether nonexistent headers 6284 # can be detected and how. 6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6286/* end confdefs.h. */ 6287#include <ac_nonexistent.h> 6288_ACEOF 6289if ac_fn_c_try_cpp "$LINENO" 6290then : 6291 # Broken: success on invalid input. 6292continue 6293else $as_nop 6294 # Passes both tests. 6295ac_preproc_ok=: 6296break 6297fi 6298rm -f conftest.err conftest.i conftest.$ac_ext 6299 6300done 6301# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6302rm -f conftest.i conftest.err conftest.$ac_ext 6303if $ac_preproc_ok 6304then : 6305 6306else $as_nop 6307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6308printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6309as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6310See \`config.log' for more details" "$LINENO" 5; } 6311fi 6312 6313ac_ext=c 6314ac_cpp='$CPP $CPPFLAGS' 6315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6317ac_compiler_gnu=$ac_cv_c_compiler_gnu 6318 6319 6320 6321 6322 6323 6324 6325ac_ext=cpp 6326ac_cpp='$CXXCPP $CPPFLAGS' 6327ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6328ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6329ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6330if test -z "$CXX"; then 6331 if test -n "$CCC"; then 6332 CXX=$CCC 6333 else 6334 if test -n "$ac_tool_prefix"; then 6335 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 6336 do 6337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6338set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6340printf %s "checking for $ac_word... " >&6; } 6341if test ${ac_cv_prog_CXX+y} 6342then : 6343 printf %s "(cached) " >&6 6344else $as_nop 6345 if test -n "$CXX"; then 6346 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6347else 6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6349for as_dir in $PATH 6350do 6351 IFS=$as_save_IFS 6352 case $as_dir in #((( 6353 '') as_dir=./ ;; 6354 */) ;; 6355 *) as_dir=$as_dir/ ;; 6356 esac 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363done 6364 done 6365IFS=$as_save_IFS 6366 6367fi 6368fi 6369CXX=$ac_cv_prog_CXX 6370if test -n "$CXX"; then 6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6372printf "%s\n" "$CXX" >&6; } 6373else 6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6375printf "%s\n" "no" >&6; } 6376fi 6377 6378 6379 test -n "$CXX" && break 6380 done 6381fi 6382if test -z "$CXX"; then 6383 ac_ct_CXX=$CXX 6384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 6385do 6386 # Extract the first word of "$ac_prog", so it can be a program name with args. 6387set dummy $ac_prog; ac_word=$2 6388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6389printf %s "checking for $ac_word... " >&6; } 6390if test ${ac_cv_prog_ac_ct_CXX+y} 6391then : 6392 printf %s "(cached) " >&6 6393else $as_nop 6394 if test -n "$ac_ct_CXX"; then 6395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 case $as_dir in #((( 6402 '') as_dir=./ ;; 6403 */) ;; 6404 *) as_dir=$as_dir/ ;; 6405 esac 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6408 ac_cv_prog_ac_ct_CXX="$ac_prog" 6409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413 done 6414IFS=$as_save_IFS 6415 6416fi 6417fi 6418ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6419if test -n "$ac_ct_CXX"; then 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6421printf "%s\n" "$ac_ct_CXX" >&6; } 6422else 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424printf "%s\n" "no" >&6; } 6425fi 6426 6427 6428 test -n "$ac_ct_CXX" && break 6429done 6430 6431 if test "x$ac_ct_CXX" = x; then 6432 CXX="g++" 6433 else 6434 case $cross_compiling:$ac_tool_warned in 6435yes:) 6436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6437printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6438ac_tool_warned=yes ;; 6439esac 6440 CXX=$ac_ct_CXX 6441 fi 6442fi 6443 6444 fi 6445fi 6446# Provide some information about the compiler. 6447printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6448set X $ac_compile 6449ac_compiler=$2 6450for ac_option in --version -v -V -qversion; do 6451 { { ac_try="$ac_compiler $ac_option >&5" 6452case "(($ac_try" in 6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6454 *) ac_try_echo=$ac_try;; 6455esac 6456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6457printf "%s\n" "$ac_try_echo"; } >&5 6458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6459 ac_status=$? 6460 if test -s conftest.err; then 6461 sed '10a\ 6462... rest of stderr output deleted ... 6463 10q' conftest.err >conftest.er1 6464 cat conftest.er1 >&5 6465 fi 6466 rm -f conftest.er1 conftest.err 6467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6468 test $ac_status = 0; } 6469done 6470 6471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 6472printf %s "checking whether the compiler supports GNU C++... " >&6; } 6473if test ${ac_cv_cxx_compiler_gnu+y} 6474then : 6475 printf %s "(cached) " >&6 6476else $as_nop 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479 6480int 6481main (void) 6482{ 6483#ifndef __GNUC__ 6484 choke me 6485#endif 6486 6487 ; 6488 return 0; 6489} 6490_ACEOF 6491if ac_fn_cxx_try_compile "$LINENO" 6492then : 6493 ac_compiler_gnu=yes 6494else $as_nop 6495 ac_compiler_gnu=no 6496fi 6497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6498ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6499 6500fi 6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6502printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 6503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6504 6505if test $ac_compiler_gnu = yes; then 6506 GXX=yes 6507else 6508 GXX= 6509fi 6510ac_test_CXXFLAGS=${CXXFLAGS+y} 6511ac_save_CXXFLAGS=$CXXFLAGS 6512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6513printf %s "checking whether $CXX accepts -g... " >&6; } 6514if test ${ac_cv_prog_cxx_g+y} 6515then : 6516 printf %s "(cached) " >&6 6517else $as_nop 6518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6519 ac_cxx_werror_flag=yes 6520 ac_cv_prog_cxx_g=no 6521 CXXFLAGS="-g" 6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6523/* end confdefs.h. */ 6524 6525int 6526main (void) 6527{ 6528 6529 ; 6530 return 0; 6531} 6532_ACEOF 6533if ac_fn_cxx_try_compile "$LINENO" 6534then : 6535 ac_cv_prog_cxx_g=yes 6536else $as_nop 6537 CXXFLAGS="" 6538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539/* end confdefs.h. */ 6540 6541int 6542main (void) 6543{ 6544 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_cxx_try_compile "$LINENO" 6550then : 6551 6552else $as_nop 6553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6554 CXXFLAGS="-g" 6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6556/* end confdefs.h. */ 6557 6558int 6559main (void) 6560{ 6561 6562 ; 6563 return 0; 6564} 6565_ACEOF 6566if ac_fn_cxx_try_compile "$LINENO" 6567then : 6568 ac_cv_prog_cxx_g=yes 6569fi 6570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6571fi 6572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6576fi 6577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6578printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 6579if test $ac_test_CXXFLAGS; then 6580 CXXFLAGS=$ac_save_CXXFLAGS 6581elif test $ac_cv_prog_cxx_g = yes; then 6582 if test "$GXX" = yes; then 6583 CXXFLAGS="-g -O2" 6584 else 6585 CXXFLAGS="-g" 6586 fi 6587else 6588 if test "$GXX" = yes; then 6589 CXXFLAGS="-O2" 6590 else 6591 CXXFLAGS= 6592 fi 6593fi 6594ac_prog_cxx_stdcxx=no 6595if test x$ac_prog_cxx_stdcxx = xno 6596then : 6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 6598printf %s "checking for $CXX option to enable C++11 features... " >&6; } 6599if test ${ac_cv_prog_cxx_cxx11+y} 6600then : 6601 printf %s "(cached) " >&6 6602else $as_nop 6603 ac_cv_prog_cxx_cxx11=no 6604ac_save_CXX=$CXX 6605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607$ac_cxx_conftest_cxx11_program 6608_ACEOF 6609for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 6610do 6611 CXX="$ac_save_CXX $ac_arg" 6612 if ac_fn_cxx_try_compile "$LINENO" 6613then : 6614 ac_cv_prog_cxx_cxx11=$ac_arg 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.beam 6617 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 6618done 6619rm -f conftest.$ac_ext 6620CXX=$ac_save_CXX 6621fi 6622 6623if test "x$ac_cv_prog_cxx_cxx11" = xno 6624then : 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6626printf "%s\n" "unsupported" >&6; } 6627else $as_nop 6628 if test "x$ac_cv_prog_cxx_cxx11" = x 6629then : 6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6631printf "%s\n" "none needed" >&6; } 6632else $as_nop 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 6634printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 6635 CXX="$CXX $ac_cv_prog_cxx_cxx11" 6636fi 6637 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 6638 ac_prog_cxx_stdcxx=cxx11 6639fi 6640fi 6641if test x$ac_prog_cxx_stdcxx = xno 6642then : 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 6644printf %s "checking for $CXX option to enable C++98 features... " >&6; } 6645if test ${ac_cv_prog_cxx_cxx98+y} 6646then : 6647 printf %s "(cached) " >&6 6648else $as_nop 6649 ac_cv_prog_cxx_cxx98=no 6650ac_save_CXX=$CXX 6651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6652/* end confdefs.h. */ 6653$ac_cxx_conftest_cxx98_program 6654_ACEOF 6655for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 6656do 6657 CXX="$ac_save_CXX $ac_arg" 6658 if ac_fn_cxx_try_compile "$LINENO" 6659then : 6660 ac_cv_prog_cxx_cxx98=$ac_arg 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.beam 6663 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 6664done 6665rm -f conftest.$ac_ext 6666CXX=$ac_save_CXX 6667fi 6668 6669if test "x$ac_cv_prog_cxx_cxx98" = xno 6670then : 6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6672printf "%s\n" "unsupported" >&6; } 6673else $as_nop 6674 if test "x$ac_cv_prog_cxx_cxx98" = x 6675then : 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6677printf "%s\n" "none needed" >&6; } 6678else $as_nop 6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 6680printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 6681 CXX="$CXX $ac_cv_prog_cxx_cxx98" 6682fi 6683 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 6684 ac_prog_cxx_stdcxx=cxx98 6685fi 6686fi 6687 6688ac_ext=c 6689ac_cpp='$CPP $CPPFLAGS' 6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6692ac_compiler_gnu=$ac_cv_c_compiler_gnu 6693 6694depcc="$CXX" am_compiler_list= 6695 6696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6697printf %s "checking dependency style of $depcc... " >&6; } 6698if test ${am_cv_CXX_dependencies_compiler_type+y} 6699then : 6700 printf %s "(cached) " >&6 6701else $as_nop 6702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6703 # We make a subdir and do the tests there. Otherwise we can end up 6704 # making bogus files that we don't know about and never remove. For 6705 # instance it was reported that on HP-UX the gcc test will end up 6706 # making a dummy file named 'D' -- because '-MD' means "put the output 6707 # in D". 6708 rm -rf conftest.dir 6709 mkdir conftest.dir 6710 # Copy depcomp to subdir because otherwise we won't find it if we're 6711 # using a relative directory. 6712 cp "$am_depcomp" conftest.dir 6713 cd conftest.dir 6714 # We will build objects and dependencies in a subdirectory because 6715 # it helps to detect inapplicable dependency modes. For instance 6716 # both Tru64's cc and ICC support -MD to output dependencies as a 6717 # side effect of compilation, but ICC will put the dependencies in 6718 # the current directory while Tru64 will put them in the object 6719 # directory. 6720 mkdir sub 6721 6722 am_cv_CXX_dependencies_compiler_type=none 6723 if test "$am_compiler_list" = ""; then 6724 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6725 fi 6726 am__universal=false 6727 case " $depcc " in #( 6728 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6729 esac 6730 6731 for depmode in $am_compiler_list; do 6732 # Setup a source with many dependencies, because some compilers 6733 # like to wrap large dependency lists on column 80 (with \), and 6734 # we should not choose a depcomp mode which is confused by this. 6735 # 6736 # We need to recreate these files for each test, as the compiler may 6737 # overwrite some of them when testing with obscure command lines. 6738 # This happens at least with the AIX C compiler. 6739 : > sub/conftest.c 6740 for i in 1 2 3 4 5 6; do 6741 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6742 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6743 # Solaris 10 /bin/sh. 6744 echo '/* dummy */' > sub/conftst$i.h 6745 done 6746 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6747 6748 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6749 # mode. It turns out that the SunPro C++ compiler does not properly 6750 # handle '-M -o', and we need to detect this. Also, some Intel 6751 # versions had trouble with output in subdirs. 6752 am__obj=sub/conftest.${OBJEXT-o} 6753 am__minus_obj="-o $am__obj" 6754 case $depmode in 6755 gcc) 6756 # This depmode causes a compiler race in universal mode. 6757 test "$am__universal" = false || continue 6758 ;; 6759 nosideeffect) 6760 # After this tag, mechanisms are not by side-effect, so they'll 6761 # only be used when explicitly requested. 6762 if test "x$enable_dependency_tracking" = xyes; then 6763 continue 6764 else 6765 break 6766 fi 6767 ;; 6768 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6769 # This compiler won't grok '-c -o', but also, the minuso test has 6770 # not run yet. These depmodes are late enough in the game, and 6771 # so weak that their functioning should not be impacted. 6772 am__obj=conftest.${OBJEXT-o} 6773 am__minus_obj= 6774 ;; 6775 none) break ;; 6776 esac 6777 if depmode=$depmode \ 6778 source=sub/conftest.c object=$am__obj \ 6779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6780 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6781 >/dev/null 2>conftest.err && 6782 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6783 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6784 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6786 # icc doesn't choke on unknown options, it will just issue warnings 6787 # or remarks (even with -Werror). So we grep stderr for any message 6788 # that says an option was ignored or not supported. 6789 # When given -MP, icc 7.0 and 7.1 complain thusly: 6790 # icc: Command line warning: ignoring option '-M'; no argument required 6791 # The diagnosis changed in icc 8.0: 6792 # icc: Command line remark: option '-MP' not supported 6793 if (grep 'ignoring option' conftest.err || 6794 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6795 am_cv_CXX_dependencies_compiler_type=$depmode 6796 break 6797 fi 6798 fi 6799 done 6800 6801 cd .. 6802 rm -rf conftest.dir 6803else 6804 am_cv_CXX_dependencies_compiler_type=none 6805fi 6806 6807fi 6808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6809printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 6810CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6811 6812 if 6813 test "x$enable_dependency_tracking" != xno \ 6814 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6815 am__fastdepCXX_TRUE= 6816 am__fastdepCXX_FALSE='#' 6817else 6818 am__fastdepCXX_TRUE='#' 6819 am__fastdepCXX_FALSE= 6820fi 6821 6822 6823if test -n "$ac_tool_prefix"; then 6824 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6825set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6827printf %s "checking for $ac_word... " >&6; } 6828if test ${ac_cv_prog_RANLIB+y} 6829then : 6830 printf %s "(cached) " >&6 6831else $as_nop 6832 if test -n "$RANLIB"; then 6833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6834else 6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6836for as_dir in $PATH 6837do 6838 IFS=$as_save_IFS 6839 case $as_dir in #((( 6840 '') as_dir=./ ;; 6841 */) ;; 6842 *) as_dir=$as_dir/ ;; 6843 esac 6844 for ac_exec_ext in '' $ac_executable_extensions; do 6845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6848 break 2 6849 fi 6850done 6851 done 6852IFS=$as_save_IFS 6853 6854fi 6855fi 6856RANLIB=$ac_cv_prog_RANLIB 6857if test -n "$RANLIB"; then 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6859printf "%s\n" "$RANLIB" >&6; } 6860else 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6862printf "%s\n" "no" >&6; } 6863fi 6864 6865 6866fi 6867if test -z "$ac_cv_prog_RANLIB"; then 6868 ac_ct_RANLIB=$RANLIB 6869 # Extract the first word of "ranlib", so it can be a program name with args. 6870set dummy ranlib; ac_word=$2 6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6872printf %s "checking for $ac_word... " >&6; } 6873if test ${ac_cv_prog_ac_ct_RANLIB+y} 6874then : 6875 printf %s "(cached) " >&6 6876else $as_nop 6877 if test -n "$ac_ct_RANLIB"; then 6878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6879else 6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6881for as_dir in $PATH 6882do 6883 IFS=$as_save_IFS 6884 case $as_dir in #((( 6885 '') as_dir=./ ;; 6886 */) ;; 6887 *) as_dir=$as_dir/ ;; 6888 esac 6889 for ac_exec_ext in '' $ac_executable_extensions; do 6890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6891 ac_cv_prog_ac_ct_RANLIB="ranlib" 6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6893 break 2 6894 fi 6895done 6896 done 6897IFS=$as_save_IFS 6898 6899fi 6900fi 6901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6902if test -n "$ac_ct_RANLIB"; then 6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6904printf "%s\n" "$ac_ct_RANLIB" >&6; } 6905else 6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6907printf "%s\n" "no" >&6; } 6908fi 6909 6910 if test "x$ac_ct_RANLIB" = x; then 6911 RANLIB=":" 6912 else 6913 case $cross_compiling:$ac_tool_warned in 6914yes:) 6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6916printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6917ac_tool_warned=yes ;; 6918esac 6919 RANLIB=$ac_ct_RANLIB 6920 fi 6921else 6922 RANLIB="$ac_cv_prog_RANLIB" 6923fi 6924 6925 6926# Check whether --enable-m32 was given. 6927if test ${enable_m32+y} 6928then : 6929 enableval=$enable_m32; 6930else $as_nop 6931 enable_m32=no 6932fi 6933 6934if test "x$enable_m32" = xyes; then 6935 CFLAGS="${CFLAGS} -m32" 6936 CXXFLAGS="${CXXFLAGS} -m32" 6937fi 6938 6939# Check whether --enable-largefile was given. 6940if test ${enable_largefile+y} 6941then : 6942 enableval=$enable_largefile; 6943fi 6944 6945if test "$enable_largefile" != no; then 6946 6947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6948printf %s "checking for special C compiler options needed for large files... " >&6; } 6949if test ${ac_cv_sys_largefile_CC+y} 6950then : 6951 printf %s "(cached) " >&6 6952else $as_nop 6953 ac_cv_sys_largefile_CC=no 6954 if test "$GCC" != yes; then 6955 ac_save_CC=$CC 6956 while :; do 6957 # IRIX 6.2 and later do not support large files by default, 6958 # so use the C compiler's -n32 option if that helps. 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961#include <sys/types.h> 6962 /* Check that off_t can represent 2**63 - 1 correctly. 6963 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6964 since some C++ compilers masquerading as C compilers 6965 incorrectly reject 9223372036854775807. */ 6966#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 6967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6968 && LARGE_OFF_T % 2147483647 == 1) 6969 ? 1 : -1]; 6970int 6971main (void) 6972{ 6973 6974 ; 6975 return 0; 6976} 6977_ACEOF 6978 if ac_fn_c_try_compile "$LINENO" 6979then : 6980 break 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.beam 6983 CC="$CC -n32" 6984 if ac_fn_c_try_compile "$LINENO" 6985then : 6986 ac_cv_sys_largefile_CC=' -n32'; break 6987fi 6988rm -f core conftest.err conftest.$ac_objext conftest.beam 6989 break 6990 done 6991 CC=$ac_save_CC 6992 rm -f conftest.$ac_ext 6993 fi 6994fi 6995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6996printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 6997 if test "$ac_cv_sys_largefile_CC" != no; then 6998 CC=$CC$ac_cv_sys_largefile_CC 6999 fi 7000 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7002printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7003if test ${ac_cv_sys_file_offset_bits+y} 7004then : 7005 printf %s "(cached) " >&6 7006else $as_nop 7007 while :; do 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009/* end confdefs.h. */ 7010#include <sys/types.h> 7011 /* Check that off_t can represent 2**63 - 1 correctly. 7012 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7013 since some C++ compilers masquerading as C compilers 7014 incorrectly reject 9223372036854775807. */ 7015#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7016 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7017 && LARGE_OFF_T % 2147483647 == 1) 7018 ? 1 : -1]; 7019int 7020main (void) 7021{ 7022 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027if ac_fn_c_try_compile "$LINENO" 7028then : 7029 ac_cv_sys_file_offset_bits=no; break 7030fi 7031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034#define _FILE_OFFSET_BITS 64 7035#include <sys/types.h> 7036 /* Check that off_t can represent 2**63 - 1 correctly. 7037 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7038 since some C++ compilers masquerading as C compilers 7039 incorrectly reject 9223372036854775807. */ 7040#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7042 && LARGE_OFF_T % 2147483647 == 1) 7043 ? 1 : -1]; 7044int 7045main (void) 7046{ 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052if ac_fn_c_try_compile "$LINENO" 7053then : 7054 ac_cv_sys_file_offset_bits=64; break 7055fi 7056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7057 ac_cv_sys_file_offset_bits=unknown 7058 break 7059done 7060fi 7061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7062printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 7063case $ac_cv_sys_file_offset_bits in #( 7064 no | unknown) ;; 7065 *) 7066printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 7067;; 7068esac 7069rm -rf conftest* 7070 if test $ac_cv_sys_file_offset_bits = unknown; then 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7072printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 7073if test ${ac_cv_sys_large_files+y} 7074then : 7075 printf %s "(cached) " >&6 7076else $as_nop 7077 while :; do 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080#include <sys/types.h> 7081 /* Check that off_t can represent 2**63 - 1 correctly. 7082 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7083 since some C++ compilers masquerading as C compilers 7084 incorrectly reject 9223372036854775807. */ 7085#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7087 && LARGE_OFF_T % 2147483647 == 1) 7088 ? 1 : -1]; 7089int 7090main (void) 7091{ 7092 7093 ; 7094 return 0; 7095} 7096_ACEOF 7097if ac_fn_c_try_compile "$LINENO" 7098then : 7099 ac_cv_sys_large_files=no; break 7100fi 7101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7103/* end confdefs.h. */ 7104#define _LARGE_FILES 1 7105#include <sys/types.h> 7106 /* Check that off_t can represent 2**63 - 1 correctly. 7107 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7108 since some C++ compilers masquerading as C compilers 7109 incorrectly reject 9223372036854775807. */ 7110#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7112 && LARGE_OFF_T % 2147483647 == 1) 7113 ? 1 : -1]; 7114int 7115main (void) 7116{ 7117 7118 ; 7119 return 0; 7120} 7121_ACEOF 7122if ac_fn_c_try_compile "$LINENO" 7123then : 7124 ac_cv_sys_large_files=1; break 7125fi 7126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7127 ac_cv_sys_large_files=unknown 7128 break 7129done 7130fi 7131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7132printf "%s\n" "$ac_cv_sys_large_files" >&6; } 7133case $ac_cv_sys_large_files in #( 7134 no | unknown) ;; 7135 *) 7136printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 7137;; 7138esac 7139rm -rf conftest* 7140 fi 7141fi 7142 7143 7144 7145 7146ac_ext=c 7147ac_cpp='$CPP $CPPFLAGS' 7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7150ac_compiler_gnu=$ac_cv_c_compiler_gnu 7151 7152ax_pthread_ok=no 7153 7154# We used to check for pthread.h first, but this fails if pthread.h 7155# requires special compiler flags (e.g. on True64 or Sequent). 7156# It gets checked for in the link test anyway. 7157 7158# First of all, check if the user has set any of the PTHREAD_LIBS, 7159# etcetera environment variables, and if threads linking works using 7160# them: 7161if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 7162 save_CFLAGS="$CFLAGS" 7163 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7164 save_LIBS="$LIBS" 7165 LIBS="$PTHREAD_LIBS $LIBS" 7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 7167printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170 7171/* Override any GCC internal prototype to avoid an error. 7172 Use char because int might match the return type of a GCC 7173 builtin and then its argument prototype would still apply. */ 7174char pthread_join (); 7175int 7176main (void) 7177{ 7178return pthread_join (); 7179 ; 7180 return 0; 7181} 7182_ACEOF 7183if ac_fn_c_try_link "$LINENO" 7184then : 7185 ax_pthread_ok=yes 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7188 conftest$ac_exeext conftest.$ac_ext 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 7190printf "%s\n" "$ax_pthread_ok" >&6; } 7191 if test x"$ax_pthread_ok" = xno; then 7192 PTHREAD_LIBS="" 7193 PTHREAD_CFLAGS="" 7194 fi 7195 LIBS="$save_LIBS" 7196 CFLAGS="$save_CFLAGS" 7197fi 7198 7199# We must check for the threads library under a number of different 7200# names; the ordering is very important because some systems 7201# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 7202# libraries is broken (non-POSIX). 7203 7204# Create a list of thread flags to try. Items starting with a "-" are 7205# C compiler flags, and other items are library names, except for "none" 7206# which indicates that we try without any flags at all, and "pthread-config" 7207# which is a program returning the flags for the Pth emulation library. 7208 7209ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 7210 7211# The ordering *is* (sometimes) important. Some notes on the 7212# individual items follow: 7213 7214# pthreads: AIX (must check this before -lpthread) 7215# none: in case threads are in libc; should be tried before -Kthread and 7216# other compiler flags to prevent continual compiler warnings 7217# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 7218# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 7219# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 7220# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 7221# -pthreads: Solaris/gcc 7222# -mthreads: Mingw32/gcc, Lynx/gcc 7223# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 7224# doesn't hurt to check since this sometimes defines pthreads too; 7225# also defines -D_REENTRANT) 7226# ... -mt is also the pthreads flag for HP/aCC 7227# pthread: Linux, etcetera 7228# --thread-safe: KAI C++ 7229# pthread-config: use pthread-config program (for GNU Pth library) 7230 7231case "${host_cpu}-${host_os}" in 7232 *solaris*) 7233 7234 # On Solaris (at least, for some versions), libc contains stubbed 7235 # (non-functional) versions of the pthreads routines, so link-based 7236 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 7237 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 7238 # a function called by this macro, so we could check for that, but 7239 # who knows whether they'll stub that too in a future libc.) So, 7240 # we'll just look for -pthreads and -lpthread first: 7241 7242 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 7243 ;; 7244 7245 *-darwin*) 7246 acx_pthread_flags="-pthread $acx_pthread_flags" 7247 ;; 7248esac 7249 7250if test x"$ax_pthread_ok" = xno; then 7251for flag in $ax_pthread_flags; do 7252 7253 case $flag in 7254 none) 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 7256printf %s "checking whether pthreads work without any flags... " >&6; } 7257 ;; 7258 7259 -*) 7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 7261printf %s "checking whether pthreads work with $flag... " >&6; } 7262 PTHREAD_CFLAGS="$flag" 7263 ;; 7264 7265 pthread-config) 7266 # Extract the first word of "pthread-config", so it can be a program name with args. 7267set dummy pthread-config; ac_word=$2 7268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7269printf %s "checking for $ac_word... " >&6; } 7270if test ${ac_cv_prog_ax_pthread_config+y} 7271then : 7272 printf %s "(cached) " >&6 7273else $as_nop 7274 if test -n "$ax_pthread_config"; then 7275 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 7276else 7277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 case $as_dir in #((( 7282 '') as_dir=./ ;; 7283 */) ;; 7284 *) as_dir=$as_dir/ ;; 7285 esac 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7288 ac_cv_prog_ax_pthread_config="yes" 7289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292done 7293 done 7294IFS=$as_save_IFS 7295 7296 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 7297fi 7298fi 7299ax_pthread_config=$ac_cv_prog_ax_pthread_config 7300if test -n "$ax_pthread_config"; then 7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 7302printf "%s\n" "$ax_pthread_config" >&6; } 7303else 7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7305printf "%s\n" "no" >&6; } 7306fi 7307 7308 7309 if test x"$ax_pthread_config" = xno; then continue; fi 7310 PTHREAD_CFLAGS="`pthread-config --cflags`" 7311 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 7312 ;; 7313 7314 *) 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 7316printf %s "checking for the pthreads library -l$flag... " >&6; } 7317 PTHREAD_LIBS="-l$flag" 7318 ;; 7319 esac 7320 7321 save_LIBS="$LIBS" 7322 save_CFLAGS="$CFLAGS" 7323 LIBS="$PTHREAD_LIBS $LIBS" 7324 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7325 7326 # Check for various functions. We must include pthread.h, 7327 # since some functions may be macros. (On the Sequent, we 7328 # need a special flag -Kthread to make this header compile.) 7329 # We check for pthread_join because it is in -lpthread on IRIX 7330 # while pthread_create is in libc. We check for pthread_attr_init 7331 # due to DEC craziness with -lpthreads. We check for 7332 # pthread_cleanup_push because it is one of the few pthread 7333 # functions on Solaris that doesn't have a non-functional libc stub. 7334 # We try pthread_create on general principles. 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337#include <pthread.h> 7338 static void routine(void* a) {a=0;} 7339 static void* start_routine(void* a) {return a;} 7340int 7341main (void) 7342{ 7343pthread_t th; pthread_attr_t attr; 7344 pthread_join(th, 0); 7345 pthread_attr_init(&attr); 7346 pthread_cleanup_push(routine, 0); 7347 pthread_create(&th,0,start_routine,0); 7348 pthread_cleanup_pop(0); 7349 ; 7350 return 0; 7351} 7352_ACEOF 7353if ac_fn_c_try_link "$LINENO" 7354then : 7355 ax_pthread_ok=yes 7356fi 7357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7358 conftest$ac_exeext conftest.$ac_ext 7359 7360 LIBS="$save_LIBS" 7361 CFLAGS="$save_CFLAGS" 7362 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 7364printf "%s\n" "$ax_pthread_ok" >&6; } 7365 if test "x$ax_pthread_ok" = xyes; then 7366 break; 7367 fi 7368 7369 PTHREAD_LIBS="" 7370 PTHREAD_CFLAGS="" 7371done 7372fi 7373 7374# Various other checks: 7375if test "x$ax_pthread_ok" = xyes; then 7376 save_LIBS="$LIBS" 7377 LIBS="$PTHREAD_LIBS $LIBS" 7378 save_CFLAGS="$CFLAGS" 7379 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7380 7381 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 7383printf %s "checking for joinable pthread attribute... " >&6; } 7384 attr_name=unknown 7385 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387/* end confdefs.h. */ 7388#include <pthread.h> 7389int 7390main (void) 7391{ 7392int attr=$attr; return attr; 7393 ; 7394 return 0; 7395} 7396_ACEOF 7397if ac_fn_c_try_link "$LINENO" 7398then : 7399 attr_name=$attr; break 7400fi 7401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7402 conftest$ac_exeext conftest.$ac_ext 7403 done 7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 7405printf "%s\n" "$attr_name" >&6; } 7406 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 7407 7408printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h 7409 7410 fi 7411 7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 7413printf %s "checking if more special flags are required for pthreads... " >&6; } 7414 flag=no 7415 case "${host_cpu}-${host_os}" in 7416 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 7417 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 7418 esac 7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 7420printf "%s\n" "${flag}" >&6; } 7421 if test "x$flag" != xno; then 7422 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 7423 fi 7424 7425 LIBS="$save_LIBS" 7426 CFLAGS="$save_CFLAGS" 7427 7428 # More AIX lossage: must compile with xlc_r or cc_r 7429 if test x"$GCC" != xyes; then 7430 for ac_prog in xlc_r cc_r 7431do 7432 # Extract the first word of "$ac_prog", so it can be a program name with args. 7433set dummy $ac_prog; ac_word=$2 7434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435printf %s "checking for $ac_word... " >&6; } 7436if test ${ac_cv_prog_PTHREAD_CC+y} 7437then : 7438 printf %s "(cached) " >&6 7439else $as_nop 7440 if test -n "$PTHREAD_CC"; then 7441 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 7442else 7443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444for as_dir in $PATH 7445do 7446 IFS=$as_save_IFS 7447 case $as_dir in #((( 7448 '') as_dir=./ ;; 7449 */) ;; 7450 *) as_dir=$as_dir/ ;; 7451 esac 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7454 ac_cv_prog_PTHREAD_CC="$ac_prog" 7455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7456 break 2 7457 fi 7458done 7459 done 7460IFS=$as_save_IFS 7461 7462fi 7463fi 7464PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 7465if test -n "$PTHREAD_CC"; then 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 7467printf "%s\n" "$PTHREAD_CC" >&6; } 7468else 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7470printf "%s\n" "no" >&6; } 7471fi 7472 7473 7474 test -n "$PTHREAD_CC" && break 7475done 7476test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 7477 7478 else 7479 PTHREAD_CC=$CC 7480 fi 7481else 7482 PTHREAD_CC="$CC" 7483fi 7484 7485 7486 7487 7488 7489# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 7490if test x"$ax_pthread_ok" = xyes; then 7491 7492printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 7493 7494 : 7495else 7496 ax_pthread_ok=no 7497 7498fi 7499ac_ext=c 7500ac_cpp='$CPP $CPPFLAGS' 7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7503ac_compiler_gnu=$ac_cv_c_compiler_gnu 7504 7505 7506ac_header= ac_cache= 7507for ac_item in $ac_header_c_list 7508do 7509 if test $ac_cache; then 7510 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 7511 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 7512 printf "%s\n" "#define $ac_item 1" >> confdefs.h 7513 fi 7514 ac_header= ac_cache= 7515 elif test $ac_header; then 7516 ac_cache=$ac_item 7517 else 7518 ac_header=$ac_item 7519 fi 7520done 7521 7522 7523 7524 7525 7526 7527 7528 7529if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 7530then : 7531 7532printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 7533 7534fi 7535ac_fn_c_check_header_compile "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default" 7536if test "x$ac_cv_header_a_out_h" = xyes 7537then : 7538 printf "%s\n" "#define HAVE_A_OUT_H 1" >>confdefs.h 7539 7540fi 7541ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 7542if test "x$ac_cv_header_sys_mman_h" = xyes 7543then : 7544 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 7545 7546fi 7547ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 7548if test "x$ac_cv_header_sys_random_h" = xyes 7549then : 7550 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 7551 7552fi 7553 7554ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 7555if test "x$ac_cv_func_arc4random" = xyes 7556then : 7557 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 7558 7559fi 7560ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext" 7561if test "x$ac_cv_func_getcontext" = xyes 7562then : 7563 printf "%s\n" "#define HAVE_GETCONTEXT 1" >>confdefs.h 7564 7565fi 7566ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 7567if test "x$ac_cv_func_getrandom" = xyes 7568then : 7569 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 7570 7571fi 7572ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 7573if test "x$ac_cv_func_memfd_create" = xyes 7574then : 7575 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 7576 7577fi 7578 7579 if test "x$ac_cv_func_getcontext" = xyes; then 7580 HAVE_GETCONTEXT_TRUE= 7581 HAVE_GETCONTEXT_FALSE='#' 7582else 7583 HAVE_GETCONTEXT_TRUE='#' 7584 HAVE_GETCONTEXT_FALSE= 7585fi 7586 7587 if test "x$ac_cv_func_memfd_create" = xyes; then 7588 HAVE_MEMFD_CREATE_TRUE= 7589 HAVE_MEMFD_CREATE_FALSE='#' 7590else 7591 HAVE_MEMFD_CREATE_TRUE='#' 7592 HAVE_MEMFD_CREATE_FALSE= 7593fi 7594 7595 7596 7597 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=true 7598 ac_ext=cpp 7599ac_cpp='$CXXCPP $CPPFLAGS' 7600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7603 ac_success=no 7604 7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5 7606printf %s "checking whether $CXX supports C++17 features by default... " >&6; } 7607if test ${ax_cv_cxx_compile_cxx17+y} 7608then : 7609 printf %s "(cached) " >&6 7610else $as_nop 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613 7614 7615// If the compiler admits that it is not ready for C++11, why torture it? 7616// Hopefully, this will speed up the test. 7617 7618#ifndef __cplusplus 7619 7620#error "This is not a C++ compiler" 7621 7622// MSVC always sets __cplusplus to 199711L in older versions; newer versions 7623// only set it correctly if /Zc:__cplusplus is specified as well as a 7624// /std:c++NN switch: 7625// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 7626#elif __cplusplus < 201103L && !defined _MSC_VER 7627 7628#error "This is not a C++11 compiler" 7629 7630#else 7631 7632namespace cxx11 7633{ 7634 7635 namespace test_static_assert 7636 { 7637 7638 template <typename T> 7639 struct check 7640 { 7641 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7642 }; 7643 7644 } 7645 7646 namespace test_final_override 7647 { 7648 7649 struct Base 7650 { 7651 virtual ~Base() {} 7652 virtual void f() {} 7653 }; 7654 7655 struct Derived : public Base 7656 { 7657 virtual ~Derived() override {} 7658 virtual void f() override {} 7659 }; 7660 7661 } 7662 7663 namespace test_double_right_angle_brackets 7664 { 7665 7666 template < typename T > 7667 struct check {}; 7668 7669 typedef check<void> single_type; 7670 typedef check<check<void>> double_type; 7671 typedef check<check<check<void>>> triple_type; 7672 typedef check<check<check<check<void>>>> quadruple_type; 7673 7674 } 7675 7676 namespace test_decltype 7677 { 7678 7679 int 7680 f() 7681 { 7682 int a = 1; 7683 decltype(a) b = 2; 7684 return a + b; 7685 } 7686 7687 } 7688 7689 namespace test_type_deduction 7690 { 7691 7692 template < typename T1, typename T2 > 7693 struct is_same 7694 { 7695 static const bool value = false; 7696 }; 7697 7698 template < typename T > 7699 struct is_same<T, T> 7700 { 7701 static const bool value = true; 7702 }; 7703 7704 template < typename T1, typename T2 > 7705 auto 7706 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7707 { 7708 return a1 + a2; 7709 } 7710 7711 int 7712 test(const int c, volatile int v) 7713 { 7714 static_assert(is_same<int, decltype(0)>::value == true, ""); 7715 static_assert(is_same<int, decltype(c)>::value == false, ""); 7716 static_assert(is_same<int, decltype(v)>::value == false, ""); 7717 auto ac = c; 7718 auto av = v; 7719 auto sumi = ac + av + 'x'; 7720 auto sumf = ac + av + 1.0; 7721 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7722 static_assert(is_same<int, decltype(av)>::value == true, ""); 7723 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7724 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7725 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7726 return (sumf > 0.0) ? sumi : add(c, v); 7727 } 7728 7729 } 7730 7731 namespace test_noexcept 7732 { 7733 7734 int f() { return 0; } 7735 int g() noexcept { return 0; } 7736 7737 static_assert(noexcept(f()) == false, ""); 7738 static_assert(noexcept(g()) == true, ""); 7739 7740 } 7741 7742 namespace test_constexpr 7743 { 7744 7745 template < typename CharT > 7746 unsigned long constexpr 7747 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7748 { 7749 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7750 } 7751 7752 template < typename CharT > 7753 unsigned long constexpr 7754 strlen_c(const CharT *const s) noexcept 7755 { 7756 return strlen_c_r(s, 0UL); 7757 } 7758 7759 static_assert(strlen_c("") == 0UL, ""); 7760 static_assert(strlen_c("1") == 1UL, ""); 7761 static_assert(strlen_c("example") == 7UL, ""); 7762 static_assert(strlen_c("another\0example") == 7UL, ""); 7763 7764 } 7765 7766 namespace test_rvalue_references 7767 { 7768 7769 template < int N > 7770 struct answer 7771 { 7772 static constexpr int value = N; 7773 }; 7774 7775 answer<1> f(int&) { return answer<1>(); } 7776 answer<2> f(const int&) { return answer<2>(); } 7777 answer<3> f(int&&) { return answer<3>(); } 7778 7779 void 7780 test() 7781 { 7782 int i = 0; 7783 const int c = 0; 7784 static_assert(decltype(f(i))::value == 1, ""); 7785 static_assert(decltype(f(c))::value == 2, ""); 7786 static_assert(decltype(f(0))::value == 3, ""); 7787 } 7788 7789 } 7790 7791 namespace test_uniform_initialization 7792 { 7793 7794 struct test 7795 { 7796 static const int zero {}; 7797 static const int one {1}; 7798 }; 7799 7800 static_assert(test::zero == 0, ""); 7801 static_assert(test::one == 1, ""); 7802 7803 } 7804 7805 namespace test_lambdas 7806 { 7807 7808 void 7809 test1() 7810 { 7811 auto lambda1 = [](){}; 7812 auto lambda2 = lambda1; 7813 lambda1(); 7814 lambda2(); 7815 } 7816 7817 int 7818 test2() 7819 { 7820 auto a = [](int i, int j){ return i + j; }(1, 2); 7821 auto b = []() -> int { return '0'; }(); 7822 auto c = [=](){ return a + b; }(); 7823 auto d = [&](){ return c; }(); 7824 auto e = [a, &b](int x) mutable { 7825 const auto identity = [](int y){ return y; }; 7826 for (auto i = 0; i < a; ++i) 7827 a += b--; 7828 return x + identity(a + b); 7829 }(0); 7830 return a + b + c + d + e; 7831 } 7832 7833 int 7834 test3() 7835 { 7836 const auto nullary = [](){ return 0; }; 7837 const auto unary = [](int x){ return x; }; 7838 using nullary_t = decltype(nullary); 7839 using unary_t = decltype(unary); 7840 const auto higher1st = [](nullary_t f){ return f(); }; 7841 const auto higher2nd = [unary](nullary_t f1){ 7842 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 7843 }; 7844 return higher1st(nullary) + higher2nd(nullary)(unary); 7845 } 7846 7847 } 7848 7849 namespace test_variadic_templates 7850 { 7851 7852 template <int...> 7853 struct sum; 7854 7855 template <int N0, int... N1toN> 7856 struct sum<N0, N1toN...> 7857 { 7858 static constexpr auto value = N0 + sum<N1toN...>::value; 7859 }; 7860 7861 template <> 7862 struct sum<> 7863 { 7864 static constexpr auto value = 0; 7865 }; 7866 7867 static_assert(sum<>::value == 0, ""); 7868 static_assert(sum<1>::value == 1, ""); 7869 static_assert(sum<23>::value == 23, ""); 7870 static_assert(sum<1, 2>::value == 3, ""); 7871 static_assert(sum<5, 5, 11>::value == 21, ""); 7872 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 7873 7874 } 7875 7876 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 7877 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 7878 // because of this. 7879 namespace test_template_alias_sfinae 7880 { 7881 7882 struct foo {}; 7883 7884 template<typename T> 7885 using member = typename T::member_type; 7886 7887 template<typename T> 7888 void func(...) {} 7889 7890 template<typename T> 7891 void func(member<T>*) {} 7892 7893 void test(); 7894 7895 void test() { func<foo>(0); } 7896 7897 } 7898 7899} // namespace cxx11 7900 7901#endif // __cplusplus >= 201103L 7902 7903 7904 7905 7906// If the compiler admits that it is not ready for C++14, why torture it? 7907// Hopefully, this will speed up the test. 7908 7909#ifndef __cplusplus 7910 7911#error "This is not a C++ compiler" 7912 7913#elif __cplusplus < 201402L && !defined _MSC_VER 7914 7915#error "This is not a C++14 compiler" 7916 7917#else 7918 7919namespace cxx14 7920{ 7921 7922 namespace test_polymorphic_lambdas 7923 { 7924 7925 int 7926 test() 7927 { 7928 const auto lambda = [](auto&&... args){ 7929 const auto istiny = [](auto x){ 7930 return (sizeof(x) == 1UL) ? 1 : 0; 7931 }; 7932 const int aretiny[] = { istiny(args)... }; 7933 return aretiny[0]; 7934 }; 7935 return lambda(1, 1L, 1.0f, '1'); 7936 } 7937 7938 } 7939 7940 namespace test_binary_literals 7941 { 7942 7943 constexpr auto ivii = 0b0000000000101010; 7944 static_assert(ivii == 42, "wrong value"); 7945 7946 } 7947 7948 namespace test_generalized_constexpr 7949 { 7950 7951 template < typename CharT > 7952 constexpr unsigned long 7953 strlen_c(const CharT *const s) noexcept 7954 { 7955 auto length = 0UL; 7956 for (auto p = s; *p; ++p) 7957 ++length; 7958 return length; 7959 } 7960 7961 static_assert(strlen_c("") == 0UL, ""); 7962 static_assert(strlen_c("x") == 1UL, ""); 7963 static_assert(strlen_c("test") == 4UL, ""); 7964 static_assert(strlen_c("another\0test") == 7UL, ""); 7965 7966 } 7967 7968 namespace test_lambda_init_capture 7969 { 7970 7971 int 7972 test() 7973 { 7974 auto x = 0; 7975 const auto lambda1 = [a = x](int b){ return a + b; }; 7976 const auto lambda2 = [a = lambda1(x)](){ return a; }; 7977 return lambda2(); 7978 } 7979 7980 } 7981 7982 namespace test_digit_separators 7983 { 7984 7985 constexpr auto ten_million = 100'000'000; 7986 static_assert(ten_million == 100000000, ""); 7987 7988 } 7989 7990 namespace test_return_type_deduction 7991 { 7992 7993 auto f(int& x) { return x; } 7994 decltype(auto) g(int& x) { return x; } 7995 7996 template < typename T1, typename T2 > 7997 struct is_same 7998 { 7999 static constexpr auto value = false; 8000 }; 8001 8002 template < typename T > 8003 struct is_same<T, T> 8004 { 8005 static constexpr auto value = true; 8006 }; 8007 8008 int 8009 test() 8010 { 8011 auto x = 0; 8012 static_assert(is_same<int, decltype(f(x))>::value, ""); 8013 static_assert(is_same<int&, decltype(g(x))>::value, ""); 8014 return x; 8015 } 8016 8017 } 8018 8019} // namespace cxx14 8020 8021#endif // __cplusplus >= 201402L 8022 8023 8024 8025 8026// If the compiler admits that it is not ready for C++17, why torture it? 8027// Hopefully, this will speed up the test. 8028 8029#ifndef __cplusplus 8030 8031#error "This is not a C++ compiler" 8032 8033#elif __cplusplus < 201703L && !defined _MSC_VER 8034 8035#error "This is not a C++17 compiler" 8036 8037#else 8038 8039#include <initializer_list> 8040#include <utility> 8041#include <type_traits> 8042 8043namespace cxx17 8044{ 8045 8046 namespace test_constexpr_lambdas 8047 { 8048 8049 constexpr int foo = [](){return 42;}(); 8050 8051 } 8052 8053 namespace test::nested_namespace::definitions 8054 { 8055 8056 } 8057 8058 namespace test_fold_expression 8059 { 8060 8061 template<typename... Args> 8062 int multiply(Args... args) 8063 { 8064 return (args * ... * 1); 8065 } 8066 8067 template<typename... Args> 8068 bool all(Args... args) 8069 { 8070 return (args && ...); 8071 } 8072 8073 } 8074 8075 namespace test_extended_static_assert 8076 { 8077 8078 static_assert (true); 8079 8080 } 8081 8082 namespace test_auto_brace_init_list 8083 { 8084 8085 auto foo = {5}; 8086 auto bar {5}; 8087 8088 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 8089 static_assert(std::is_same<int, decltype(bar)>::value); 8090 } 8091 8092 namespace test_typename_in_template_template_parameter 8093 { 8094 8095 template<template<typename> typename X> struct D; 8096 8097 } 8098 8099 namespace test_fallthrough_nodiscard_maybe_unused_attributes 8100 { 8101 8102 int f1() 8103 { 8104 return 42; 8105 } 8106 8107 [[nodiscard]] int f2() 8108 { 8109 [[maybe_unused]] auto unused = f1(); 8110 8111 switch (f1()) 8112 { 8113 case 17: 8114 f1(); 8115 [[fallthrough]]; 8116 case 42: 8117 f1(); 8118 } 8119 return f1(); 8120 } 8121 8122 } 8123 8124 namespace test_extended_aggregate_initialization 8125 { 8126 8127 struct base1 8128 { 8129 int b1, b2 = 42; 8130 }; 8131 8132 struct base2 8133 { 8134 base2() { 8135 b3 = 42; 8136 } 8137 int b3; 8138 }; 8139 8140 struct derived : base1, base2 8141 { 8142 int d; 8143 }; 8144 8145 derived d1 {{1, 2}, {}, 4}; // full initialization 8146 derived d2 {{}, {}, 4}; // value-initialized bases 8147 8148 } 8149 8150 namespace test_general_range_based_for_loop 8151 { 8152 8153 struct iter 8154 { 8155 int i; 8156 8157 int& operator* () 8158 { 8159 return i; 8160 } 8161 8162 const int& operator* () const 8163 { 8164 return i; 8165 } 8166 8167 iter& operator++() 8168 { 8169 ++i; 8170 return *this; 8171 } 8172 }; 8173 8174 struct sentinel 8175 { 8176 int i; 8177 }; 8178 8179 bool operator== (const iter& i, const sentinel& s) 8180 { 8181 return i.i == s.i; 8182 } 8183 8184 bool operator!= (const iter& i, const sentinel& s) 8185 { 8186 return !(i == s); 8187 } 8188 8189 struct range 8190 { 8191 iter begin() const 8192 { 8193 return {0}; 8194 } 8195 8196 sentinel end() const 8197 { 8198 return {5}; 8199 } 8200 }; 8201 8202 void f() 8203 { 8204 range r {}; 8205 8206 for (auto i : r) 8207 { 8208 [[maybe_unused]] auto v = i; 8209 } 8210 } 8211 8212 } 8213 8214 namespace test_lambda_capture_asterisk_this_by_value 8215 { 8216 8217 struct t 8218 { 8219 int i; 8220 int foo() 8221 { 8222 return [*this]() 8223 { 8224 return i; 8225 }(); 8226 } 8227 }; 8228 8229 } 8230 8231 namespace test_enum_class_construction 8232 { 8233 8234 enum class byte : unsigned char 8235 {}; 8236 8237 byte foo {42}; 8238 8239 } 8240 8241 namespace test_constexpr_if 8242 { 8243 8244 template <bool cond> 8245 int f () 8246 { 8247 if constexpr(cond) 8248 { 8249 return 13; 8250 } 8251 else 8252 { 8253 return 42; 8254 } 8255 } 8256 8257 } 8258 8259 namespace test_selection_statement_with_initializer 8260 { 8261 8262 int f() 8263 { 8264 return 13; 8265 } 8266 8267 int f2() 8268 { 8269 if (auto i = f(); i > 0) 8270 { 8271 return 3; 8272 } 8273 8274 switch (auto i = f(); i + 4) 8275 { 8276 case 17: 8277 return 2; 8278 8279 default: 8280 return 1; 8281 } 8282 } 8283 8284 } 8285 8286 namespace test_template_argument_deduction_for_class_templates 8287 { 8288 8289 template <typename T1, typename T2> 8290 struct pair 8291 { 8292 pair (T1 p1, T2 p2) 8293 : m1 {p1}, 8294 m2 {p2} 8295 {} 8296 8297 T1 m1; 8298 T2 m2; 8299 }; 8300 8301 void f() 8302 { 8303 [[maybe_unused]] auto p = pair{13, 42u}; 8304 } 8305 8306 } 8307 8308 namespace test_non_type_auto_template_parameters 8309 { 8310 8311 template <auto n> 8312 struct B 8313 {}; 8314 8315 B<5> b1; 8316 B<'a'> b2; 8317 8318 } 8319 8320 namespace test_structured_bindings 8321 { 8322 8323 int arr[2] = { 1, 2 }; 8324 std::pair<int, int> pr = { 1, 2 }; 8325 8326 auto f1() -> int(&)[2] 8327 { 8328 return arr; 8329 } 8330 8331 auto f2() -> std::pair<int, int>& 8332 { 8333 return pr; 8334 } 8335 8336 struct S 8337 { 8338 int x1 : 2; 8339 volatile double y1; 8340 }; 8341 8342 S f3() 8343 { 8344 return {}; 8345 } 8346 8347 auto [ x1, y1 ] = f1(); 8348 auto& [ xr1, yr1 ] = f1(); 8349 auto [ x2, y2 ] = f2(); 8350 auto& [ xr2, yr2 ] = f2(); 8351 const auto [ x3, y3 ] = f3(); 8352 8353 } 8354 8355 namespace test_exception_spec_type_system 8356 { 8357 8358 struct Good {}; 8359 struct Bad {}; 8360 8361 void g1() noexcept; 8362 void g2(); 8363 8364 template<typename T> 8365 Bad 8366 f(T*, T*); 8367 8368 template<typename T1, typename T2> 8369 Good 8370 f(T1*, T2*); 8371 8372 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 8373 8374 } 8375 8376 namespace test_inline_variables 8377 { 8378 8379 template<class T> void f(T) 8380 {} 8381 8382 template<class T> inline T g(T) 8383 { 8384 return T{}; 8385 } 8386 8387 template<> inline void f<>(int) 8388 {} 8389 8390 template<> int g<>(int) 8391 { 8392 return 5; 8393 } 8394 8395 } 8396 8397} // namespace cxx17 8398 8399#endif // __cplusplus < 201703L && !defined _MSC_VER 8400 8401 8402 8403_ACEOF 8404if ac_fn_cxx_try_compile "$LINENO" 8405then : 8406 ax_cv_cxx_compile_cxx17=yes 8407else $as_nop 8408 ax_cv_cxx_compile_cxx17=no 8409fi 8410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8411fi 8412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5 8413printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; } 8414 if test x$ax_cv_cxx_compile_cxx17 = xyes; then 8415 ac_success=yes 8416 fi 8417 8418 if test x$ac_success = xno; then 8419 for alternative in ${ax_cxx_compile_alternatives}; do 8420 switch="-std=gnu++${alternative}" 8421 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 8423printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } 8424if eval test \${$cachevar+y} 8425then : 8426 printf %s "(cached) " >&6 8427else $as_nop 8428 ac_save_CXX="$CXX" 8429 CXX="$CXX $switch" 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432 8433 8434// If the compiler admits that it is not ready for C++11, why torture it? 8435// Hopefully, this will speed up the test. 8436 8437#ifndef __cplusplus 8438 8439#error "This is not a C++ compiler" 8440 8441// MSVC always sets __cplusplus to 199711L in older versions; newer versions 8442// only set it correctly if /Zc:__cplusplus is specified as well as a 8443// /std:c++NN switch: 8444// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 8445#elif __cplusplus < 201103L && !defined _MSC_VER 8446 8447#error "This is not a C++11 compiler" 8448 8449#else 8450 8451namespace cxx11 8452{ 8453 8454 namespace test_static_assert 8455 { 8456 8457 template <typename T> 8458 struct check 8459 { 8460 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 8461 }; 8462 8463 } 8464 8465 namespace test_final_override 8466 { 8467 8468 struct Base 8469 { 8470 virtual ~Base() {} 8471 virtual void f() {} 8472 }; 8473 8474 struct Derived : public Base 8475 { 8476 virtual ~Derived() override {} 8477 virtual void f() override {} 8478 }; 8479 8480 } 8481 8482 namespace test_double_right_angle_brackets 8483 { 8484 8485 template < typename T > 8486 struct check {}; 8487 8488 typedef check<void> single_type; 8489 typedef check<check<void>> double_type; 8490 typedef check<check<check<void>>> triple_type; 8491 typedef check<check<check<check<void>>>> quadruple_type; 8492 8493 } 8494 8495 namespace test_decltype 8496 { 8497 8498 int 8499 f() 8500 { 8501 int a = 1; 8502 decltype(a) b = 2; 8503 return a + b; 8504 } 8505 8506 } 8507 8508 namespace test_type_deduction 8509 { 8510 8511 template < typename T1, typename T2 > 8512 struct is_same 8513 { 8514 static const bool value = false; 8515 }; 8516 8517 template < typename T > 8518 struct is_same<T, T> 8519 { 8520 static const bool value = true; 8521 }; 8522 8523 template < typename T1, typename T2 > 8524 auto 8525 add(T1 a1, T2 a2) -> decltype(a1 + a2) 8526 { 8527 return a1 + a2; 8528 } 8529 8530 int 8531 test(const int c, volatile int v) 8532 { 8533 static_assert(is_same<int, decltype(0)>::value == true, ""); 8534 static_assert(is_same<int, decltype(c)>::value == false, ""); 8535 static_assert(is_same<int, decltype(v)>::value == false, ""); 8536 auto ac = c; 8537 auto av = v; 8538 auto sumi = ac + av + 'x'; 8539 auto sumf = ac + av + 1.0; 8540 static_assert(is_same<int, decltype(ac)>::value == true, ""); 8541 static_assert(is_same<int, decltype(av)>::value == true, ""); 8542 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 8543 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 8544 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 8545 return (sumf > 0.0) ? sumi : add(c, v); 8546 } 8547 8548 } 8549 8550 namespace test_noexcept 8551 { 8552 8553 int f() { return 0; } 8554 int g() noexcept { return 0; } 8555 8556 static_assert(noexcept(f()) == false, ""); 8557 static_assert(noexcept(g()) == true, ""); 8558 8559 } 8560 8561 namespace test_constexpr 8562 { 8563 8564 template < typename CharT > 8565 unsigned long constexpr 8566 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 8567 { 8568 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 8569 } 8570 8571 template < typename CharT > 8572 unsigned long constexpr 8573 strlen_c(const CharT *const s) noexcept 8574 { 8575 return strlen_c_r(s, 0UL); 8576 } 8577 8578 static_assert(strlen_c("") == 0UL, ""); 8579 static_assert(strlen_c("1") == 1UL, ""); 8580 static_assert(strlen_c("example") == 7UL, ""); 8581 static_assert(strlen_c("another\0example") == 7UL, ""); 8582 8583 } 8584 8585 namespace test_rvalue_references 8586 { 8587 8588 template < int N > 8589 struct answer 8590 { 8591 static constexpr int value = N; 8592 }; 8593 8594 answer<1> f(int&) { return answer<1>(); } 8595 answer<2> f(const int&) { return answer<2>(); } 8596 answer<3> f(int&&) { return answer<3>(); } 8597 8598 void 8599 test() 8600 { 8601 int i = 0; 8602 const int c = 0; 8603 static_assert(decltype(f(i))::value == 1, ""); 8604 static_assert(decltype(f(c))::value == 2, ""); 8605 static_assert(decltype(f(0))::value == 3, ""); 8606 } 8607 8608 } 8609 8610 namespace test_uniform_initialization 8611 { 8612 8613 struct test 8614 { 8615 static const int zero {}; 8616 static const int one {1}; 8617 }; 8618 8619 static_assert(test::zero == 0, ""); 8620 static_assert(test::one == 1, ""); 8621 8622 } 8623 8624 namespace test_lambdas 8625 { 8626 8627 void 8628 test1() 8629 { 8630 auto lambda1 = [](){}; 8631 auto lambda2 = lambda1; 8632 lambda1(); 8633 lambda2(); 8634 } 8635 8636 int 8637 test2() 8638 { 8639 auto a = [](int i, int j){ return i + j; }(1, 2); 8640 auto b = []() -> int { return '0'; }(); 8641 auto c = [=](){ return a + b; }(); 8642 auto d = [&](){ return c; }(); 8643 auto e = [a, &b](int x) mutable { 8644 const auto identity = [](int y){ return y; }; 8645 for (auto i = 0; i < a; ++i) 8646 a += b--; 8647 return x + identity(a + b); 8648 }(0); 8649 return a + b + c + d + e; 8650 } 8651 8652 int 8653 test3() 8654 { 8655 const auto nullary = [](){ return 0; }; 8656 const auto unary = [](int x){ return x; }; 8657 using nullary_t = decltype(nullary); 8658 using unary_t = decltype(unary); 8659 const auto higher1st = [](nullary_t f){ return f(); }; 8660 const auto higher2nd = [unary](nullary_t f1){ 8661 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 8662 }; 8663 return higher1st(nullary) + higher2nd(nullary)(unary); 8664 } 8665 8666 } 8667 8668 namespace test_variadic_templates 8669 { 8670 8671 template <int...> 8672 struct sum; 8673 8674 template <int N0, int... N1toN> 8675 struct sum<N0, N1toN...> 8676 { 8677 static constexpr auto value = N0 + sum<N1toN...>::value; 8678 }; 8679 8680 template <> 8681 struct sum<> 8682 { 8683 static constexpr auto value = 0; 8684 }; 8685 8686 static_assert(sum<>::value == 0, ""); 8687 static_assert(sum<1>::value == 1, ""); 8688 static_assert(sum<23>::value == 23, ""); 8689 static_assert(sum<1, 2>::value == 3, ""); 8690 static_assert(sum<5, 5, 11>::value == 21, ""); 8691 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 8692 8693 } 8694 8695 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 8696 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 8697 // because of this. 8698 namespace test_template_alias_sfinae 8699 { 8700 8701 struct foo {}; 8702 8703 template<typename T> 8704 using member = typename T::member_type; 8705 8706 template<typename T> 8707 void func(...) {} 8708 8709 template<typename T> 8710 void func(member<T>*) {} 8711 8712 void test(); 8713 8714 void test() { func<foo>(0); } 8715 8716 } 8717 8718} // namespace cxx11 8719 8720#endif // __cplusplus >= 201103L 8721 8722 8723 8724 8725// If the compiler admits that it is not ready for C++14, why torture it? 8726// Hopefully, this will speed up the test. 8727 8728#ifndef __cplusplus 8729 8730#error "This is not a C++ compiler" 8731 8732#elif __cplusplus < 201402L && !defined _MSC_VER 8733 8734#error "This is not a C++14 compiler" 8735 8736#else 8737 8738namespace cxx14 8739{ 8740 8741 namespace test_polymorphic_lambdas 8742 { 8743 8744 int 8745 test() 8746 { 8747 const auto lambda = [](auto&&... args){ 8748 const auto istiny = [](auto x){ 8749 return (sizeof(x) == 1UL) ? 1 : 0; 8750 }; 8751 const int aretiny[] = { istiny(args)... }; 8752 return aretiny[0]; 8753 }; 8754 return lambda(1, 1L, 1.0f, '1'); 8755 } 8756 8757 } 8758 8759 namespace test_binary_literals 8760 { 8761 8762 constexpr auto ivii = 0b0000000000101010; 8763 static_assert(ivii == 42, "wrong value"); 8764 8765 } 8766 8767 namespace test_generalized_constexpr 8768 { 8769 8770 template < typename CharT > 8771 constexpr unsigned long 8772 strlen_c(const CharT *const s) noexcept 8773 { 8774 auto length = 0UL; 8775 for (auto p = s; *p; ++p) 8776 ++length; 8777 return length; 8778 } 8779 8780 static_assert(strlen_c("") == 0UL, ""); 8781 static_assert(strlen_c("x") == 1UL, ""); 8782 static_assert(strlen_c("test") == 4UL, ""); 8783 static_assert(strlen_c("another\0test") == 7UL, ""); 8784 8785 } 8786 8787 namespace test_lambda_init_capture 8788 { 8789 8790 int 8791 test() 8792 { 8793 auto x = 0; 8794 const auto lambda1 = [a = x](int b){ return a + b; }; 8795 const auto lambda2 = [a = lambda1(x)](){ return a; }; 8796 return lambda2(); 8797 } 8798 8799 } 8800 8801 namespace test_digit_separators 8802 { 8803 8804 constexpr auto ten_million = 100'000'000; 8805 static_assert(ten_million == 100000000, ""); 8806 8807 } 8808 8809 namespace test_return_type_deduction 8810 { 8811 8812 auto f(int& x) { return x; } 8813 decltype(auto) g(int& x) { return x; } 8814 8815 template < typename T1, typename T2 > 8816 struct is_same 8817 { 8818 static constexpr auto value = false; 8819 }; 8820 8821 template < typename T > 8822 struct is_same<T, T> 8823 { 8824 static constexpr auto value = true; 8825 }; 8826 8827 int 8828 test() 8829 { 8830 auto x = 0; 8831 static_assert(is_same<int, decltype(f(x))>::value, ""); 8832 static_assert(is_same<int&, decltype(g(x))>::value, ""); 8833 return x; 8834 } 8835 8836 } 8837 8838} // namespace cxx14 8839 8840#endif // __cplusplus >= 201402L 8841 8842 8843 8844 8845// If the compiler admits that it is not ready for C++17, why torture it? 8846// Hopefully, this will speed up the test. 8847 8848#ifndef __cplusplus 8849 8850#error "This is not a C++ compiler" 8851 8852#elif __cplusplus < 201703L && !defined _MSC_VER 8853 8854#error "This is not a C++17 compiler" 8855 8856#else 8857 8858#include <initializer_list> 8859#include <utility> 8860#include <type_traits> 8861 8862namespace cxx17 8863{ 8864 8865 namespace test_constexpr_lambdas 8866 { 8867 8868 constexpr int foo = [](){return 42;}(); 8869 8870 } 8871 8872 namespace test::nested_namespace::definitions 8873 { 8874 8875 } 8876 8877 namespace test_fold_expression 8878 { 8879 8880 template<typename... Args> 8881 int multiply(Args... args) 8882 { 8883 return (args * ... * 1); 8884 } 8885 8886 template<typename... Args> 8887 bool all(Args... args) 8888 { 8889 return (args && ...); 8890 } 8891 8892 } 8893 8894 namespace test_extended_static_assert 8895 { 8896 8897 static_assert (true); 8898 8899 } 8900 8901 namespace test_auto_brace_init_list 8902 { 8903 8904 auto foo = {5}; 8905 auto bar {5}; 8906 8907 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 8908 static_assert(std::is_same<int, decltype(bar)>::value); 8909 } 8910 8911 namespace test_typename_in_template_template_parameter 8912 { 8913 8914 template<template<typename> typename X> struct D; 8915 8916 } 8917 8918 namespace test_fallthrough_nodiscard_maybe_unused_attributes 8919 { 8920 8921 int f1() 8922 { 8923 return 42; 8924 } 8925 8926 [[nodiscard]] int f2() 8927 { 8928 [[maybe_unused]] auto unused = f1(); 8929 8930 switch (f1()) 8931 { 8932 case 17: 8933 f1(); 8934 [[fallthrough]]; 8935 case 42: 8936 f1(); 8937 } 8938 return f1(); 8939 } 8940 8941 } 8942 8943 namespace test_extended_aggregate_initialization 8944 { 8945 8946 struct base1 8947 { 8948 int b1, b2 = 42; 8949 }; 8950 8951 struct base2 8952 { 8953 base2() { 8954 b3 = 42; 8955 } 8956 int b3; 8957 }; 8958 8959 struct derived : base1, base2 8960 { 8961 int d; 8962 }; 8963 8964 derived d1 {{1, 2}, {}, 4}; // full initialization 8965 derived d2 {{}, {}, 4}; // value-initialized bases 8966 8967 } 8968 8969 namespace test_general_range_based_for_loop 8970 { 8971 8972 struct iter 8973 { 8974 int i; 8975 8976 int& operator* () 8977 { 8978 return i; 8979 } 8980 8981 const int& operator* () const 8982 { 8983 return i; 8984 } 8985 8986 iter& operator++() 8987 { 8988 ++i; 8989 return *this; 8990 } 8991 }; 8992 8993 struct sentinel 8994 { 8995 int i; 8996 }; 8997 8998 bool operator== (const iter& i, const sentinel& s) 8999 { 9000 return i.i == s.i; 9001 } 9002 9003 bool operator!= (const iter& i, const sentinel& s) 9004 { 9005 return !(i == s); 9006 } 9007 9008 struct range 9009 { 9010 iter begin() const 9011 { 9012 return {0}; 9013 } 9014 9015 sentinel end() const 9016 { 9017 return {5}; 9018 } 9019 }; 9020 9021 void f() 9022 { 9023 range r {}; 9024 9025 for (auto i : r) 9026 { 9027 [[maybe_unused]] auto v = i; 9028 } 9029 } 9030 9031 } 9032 9033 namespace test_lambda_capture_asterisk_this_by_value 9034 { 9035 9036 struct t 9037 { 9038 int i; 9039 int foo() 9040 { 9041 return [*this]() 9042 { 9043 return i; 9044 }(); 9045 } 9046 }; 9047 9048 } 9049 9050 namespace test_enum_class_construction 9051 { 9052 9053 enum class byte : unsigned char 9054 {}; 9055 9056 byte foo {42}; 9057 9058 } 9059 9060 namespace test_constexpr_if 9061 { 9062 9063 template <bool cond> 9064 int f () 9065 { 9066 if constexpr(cond) 9067 { 9068 return 13; 9069 } 9070 else 9071 { 9072 return 42; 9073 } 9074 } 9075 9076 } 9077 9078 namespace test_selection_statement_with_initializer 9079 { 9080 9081 int f() 9082 { 9083 return 13; 9084 } 9085 9086 int f2() 9087 { 9088 if (auto i = f(); i > 0) 9089 { 9090 return 3; 9091 } 9092 9093 switch (auto i = f(); i + 4) 9094 { 9095 case 17: 9096 return 2; 9097 9098 default: 9099 return 1; 9100 } 9101 } 9102 9103 } 9104 9105 namespace test_template_argument_deduction_for_class_templates 9106 { 9107 9108 template <typename T1, typename T2> 9109 struct pair 9110 { 9111 pair (T1 p1, T2 p2) 9112 : m1 {p1}, 9113 m2 {p2} 9114 {} 9115 9116 T1 m1; 9117 T2 m2; 9118 }; 9119 9120 void f() 9121 { 9122 [[maybe_unused]] auto p = pair{13, 42u}; 9123 } 9124 9125 } 9126 9127 namespace test_non_type_auto_template_parameters 9128 { 9129 9130 template <auto n> 9131 struct B 9132 {}; 9133 9134 B<5> b1; 9135 B<'a'> b2; 9136 9137 } 9138 9139 namespace test_structured_bindings 9140 { 9141 9142 int arr[2] = { 1, 2 }; 9143 std::pair<int, int> pr = { 1, 2 }; 9144 9145 auto f1() -> int(&)[2] 9146 { 9147 return arr; 9148 } 9149 9150 auto f2() -> std::pair<int, int>& 9151 { 9152 return pr; 9153 } 9154 9155 struct S 9156 { 9157 int x1 : 2; 9158 volatile double y1; 9159 }; 9160 9161 S f3() 9162 { 9163 return {}; 9164 } 9165 9166 auto [ x1, y1 ] = f1(); 9167 auto& [ xr1, yr1 ] = f1(); 9168 auto [ x2, y2 ] = f2(); 9169 auto& [ xr2, yr2 ] = f2(); 9170 const auto [ x3, y3 ] = f3(); 9171 9172 } 9173 9174 namespace test_exception_spec_type_system 9175 { 9176 9177 struct Good {}; 9178 struct Bad {}; 9179 9180 void g1() noexcept; 9181 void g2(); 9182 9183 template<typename T> 9184 Bad 9185 f(T*, T*); 9186 9187 template<typename T1, typename T2> 9188 Good 9189 f(T1*, T2*); 9190 9191 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 9192 9193 } 9194 9195 namespace test_inline_variables 9196 { 9197 9198 template<class T> void f(T) 9199 {} 9200 9201 template<class T> inline T g(T) 9202 { 9203 return T{}; 9204 } 9205 9206 template<> inline void f<>(int) 9207 {} 9208 9209 template<> int g<>(int) 9210 { 9211 return 5; 9212 } 9213 9214 } 9215 9216} // namespace cxx17 9217 9218#endif // __cplusplus < 201703L && !defined _MSC_VER 9219 9220 9221 9222_ACEOF 9223if ac_fn_cxx_try_compile "$LINENO" 9224then : 9225 eval $cachevar=yes 9226else $as_nop 9227 eval $cachevar=no 9228fi 9229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9230 CXX="$ac_save_CXX" 9231fi 9232eval ac_res=\$$cachevar 9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9234printf "%s\n" "$ac_res" >&6; } 9235 if eval test x\$$cachevar = xyes; then 9236 CXX="$CXX $switch" 9237 if test -n "$CXXCPP" ; then 9238 CXXCPP="$CXXCPP $switch" 9239 fi 9240 ac_success=yes 9241 break 9242 fi 9243 done 9244 fi 9245 9246 if test x$ac_success = xno; then 9247 for alternative in ${ax_cxx_compile_alternatives}; do 9248 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 9249 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 9251printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; } 9252if eval test \${$cachevar+y} 9253then : 9254 printf %s "(cached) " >&6 9255else $as_nop 9256 ac_save_CXX="$CXX" 9257 CXX="$CXX $switch" 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260 9261 9262// If the compiler admits that it is not ready for C++11, why torture it? 9263// Hopefully, this will speed up the test. 9264 9265#ifndef __cplusplus 9266 9267#error "This is not a C++ compiler" 9268 9269// MSVC always sets __cplusplus to 199711L in older versions; newer versions 9270// only set it correctly if /Zc:__cplusplus is specified as well as a 9271// /std:c++NN switch: 9272// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 9273#elif __cplusplus < 201103L && !defined _MSC_VER 9274 9275#error "This is not a C++11 compiler" 9276 9277#else 9278 9279namespace cxx11 9280{ 9281 9282 namespace test_static_assert 9283 { 9284 9285 template <typename T> 9286 struct check 9287 { 9288 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 9289 }; 9290 9291 } 9292 9293 namespace test_final_override 9294 { 9295 9296 struct Base 9297 { 9298 virtual ~Base() {} 9299 virtual void f() {} 9300 }; 9301 9302 struct Derived : public Base 9303 { 9304 virtual ~Derived() override {} 9305 virtual void f() override {} 9306 }; 9307 9308 } 9309 9310 namespace test_double_right_angle_brackets 9311 { 9312 9313 template < typename T > 9314 struct check {}; 9315 9316 typedef check<void> single_type; 9317 typedef check<check<void>> double_type; 9318 typedef check<check<check<void>>> triple_type; 9319 typedef check<check<check<check<void>>>> quadruple_type; 9320 9321 } 9322 9323 namespace test_decltype 9324 { 9325 9326 int 9327 f() 9328 { 9329 int a = 1; 9330 decltype(a) b = 2; 9331 return a + b; 9332 } 9333 9334 } 9335 9336 namespace test_type_deduction 9337 { 9338 9339 template < typename T1, typename T2 > 9340 struct is_same 9341 { 9342 static const bool value = false; 9343 }; 9344 9345 template < typename T > 9346 struct is_same<T, T> 9347 { 9348 static const bool value = true; 9349 }; 9350 9351 template < typename T1, typename T2 > 9352 auto 9353 add(T1 a1, T2 a2) -> decltype(a1 + a2) 9354 { 9355 return a1 + a2; 9356 } 9357 9358 int 9359 test(const int c, volatile int v) 9360 { 9361 static_assert(is_same<int, decltype(0)>::value == true, ""); 9362 static_assert(is_same<int, decltype(c)>::value == false, ""); 9363 static_assert(is_same<int, decltype(v)>::value == false, ""); 9364 auto ac = c; 9365 auto av = v; 9366 auto sumi = ac + av + 'x'; 9367 auto sumf = ac + av + 1.0; 9368 static_assert(is_same<int, decltype(ac)>::value == true, ""); 9369 static_assert(is_same<int, decltype(av)>::value == true, ""); 9370 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 9371 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 9372 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 9373 return (sumf > 0.0) ? sumi : add(c, v); 9374 } 9375 9376 } 9377 9378 namespace test_noexcept 9379 { 9380 9381 int f() { return 0; } 9382 int g() noexcept { return 0; } 9383 9384 static_assert(noexcept(f()) == false, ""); 9385 static_assert(noexcept(g()) == true, ""); 9386 9387 } 9388 9389 namespace test_constexpr 9390 { 9391 9392 template < typename CharT > 9393 unsigned long constexpr 9394 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 9395 { 9396 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 9397 } 9398 9399 template < typename CharT > 9400 unsigned long constexpr 9401 strlen_c(const CharT *const s) noexcept 9402 { 9403 return strlen_c_r(s, 0UL); 9404 } 9405 9406 static_assert(strlen_c("") == 0UL, ""); 9407 static_assert(strlen_c("1") == 1UL, ""); 9408 static_assert(strlen_c("example") == 7UL, ""); 9409 static_assert(strlen_c("another\0example") == 7UL, ""); 9410 9411 } 9412 9413 namespace test_rvalue_references 9414 { 9415 9416 template < int N > 9417 struct answer 9418 { 9419 static constexpr int value = N; 9420 }; 9421 9422 answer<1> f(int&) { return answer<1>(); } 9423 answer<2> f(const int&) { return answer<2>(); } 9424 answer<3> f(int&&) { return answer<3>(); } 9425 9426 void 9427 test() 9428 { 9429 int i = 0; 9430 const int c = 0; 9431 static_assert(decltype(f(i))::value == 1, ""); 9432 static_assert(decltype(f(c))::value == 2, ""); 9433 static_assert(decltype(f(0))::value == 3, ""); 9434 } 9435 9436 } 9437 9438 namespace test_uniform_initialization 9439 { 9440 9441 struct test 9442 { 9443 static const int zero {}; 9444 static const int one {1}; 9445 }; 9446 9447 static_assert(test::zero == 0, ""); 9448 static_assert(test::one == 1, ""); 9449 9450 } 9451 9452 namespace test_lambdas 9453 { 9454 9455 void 9456 test1() 9457 { 9458 auto lambda1 = [](){}; 9459 auto lambda2 = lambda1; 9460 lambda1(); 9461 lambda2(); 9462 } 9463 9464 int 9465 test2() 9466 { 9467 auto a = [](int i, int j){ return i + j; }(1, 2); 9468 auto b = []() -> int { return '0'; }(); 9469 auto c = [=](){ return a + b; }(); 9470 auto d = [&](){ return c; }(); 9471 auto e = [a, &b](int x) mutable { 9472 const auto identity = [](int y){ return y; }; 9473 for (auto i = 0; i < a; ++i) 9474 a += b--; 9475 return x + identity(a + b); 9476 }(0); 9477 return a + b + c + d + e; 9478 } 9479 9480 int 9481 test3() 9482 { 9483 const auto nullary = [](){ return 0; }; 9484 const auto unary = [](int x){ return x; }; 9485 using nullary_t = decltype(nullary); 9486 using unary_t = decltype(unary); 9487 const auto higher1st = [](nullary_t f){ return f(); }; 9488 const auto higher2nd = [unary](nullary_t f1){ 9489 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 9490 }; 9491 return higher1st(nullary) + higher2nd(nullary)(unary); 9492 } 9493 9494 } 9495 9496 namespace test_variadic_templates 9497 { 9498 9499 template <int...> 9500 struct sum; 9501 9502 template <int N0, int... N1toN> 9503 struct sum<N0, N1toN...> 9504 { 9505 static constexpr auto value = N0 + sum<N1toN...>::value; 9506 }; 9507 9508 template <> 9509 struct sum<> 9510 { 9511 static constexpr auto value = 0; 9512 }; 9513 9514 static_assert(sum<>::value == 0, ""); 9515 static_assert(sum<1>::value == 1, ""); 9516 static_assert(sum<23>::value == 23, ""); 9517 static_assert(sum<1, 2>::value == 3, ""); 9518 static_assert(sum<5, 5, 11>::value == 21, ""); 9519 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 9520 9521 } 9522 9523 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 9524 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 9525 // because of this. 9526 namespace test_template_alias_sfinae 9527 { 9528 9529 struct foo {}; 9530 9531 template<typename T> 9532 using member = typename T::member_type; 9533 9534 template<typename T> 9535 void func(...) {} 9536 9537 template<typename T> 9538 void func(member<T>*) {} 9539 9540 void test(); 9541 9542 void test() { func<foo>(0); } 9543 9544 } 9545 9546} // namespace cxx11 9547 9548#endif // __cplusplus >= 201103L 9549 9550 9551 9552 9553// If the compiler admits that it is not ready for C++14, why torture it? 9554// Hopefully, this will speed up the test. 9555 9556#ifndef __cplusplus 9557 9558#error "This is not a C++ compiler" 9559 9560#elif __cplusplus < 201402L && !defined _MSC_VER 9561 9562#error "This is not a C++14 compiler" 9563 9564#else 9565 9566namespace cxx14 9567{ 9568 9569 namespace test_polymorphic_lambdas 9570 { 9571 9572 int 9573 test() 9574 { 9575 const auto lambda = [](auto&&... args){ 9576 const auto istiny = [](auto x){ 9577 return (sizeof(x) == 1UL) ? 1 : 0; 9578 }; 9579 const int aretiny[] = { istiny(args)... }; 9580 return aretiny[0]; 9581 }; 9582 return lambda(1, 1L, 1.0f, '1'); 9583 } 9584 9585 } 9586 9587 namespace test_binary_literals 9588 { 9589 9590 constexpr auto ivii = 0b0000000000101010; 9591 static_assert(ivii == 42, "wrong value"); 9592 9593 } 9594 9595 namespace test_generalized_constexpr 9596 { 9597 9598 template < typename CharT > 9599 constexpr unsigned long 9600 strlen_c(const CharT *const s) noexcept 9601 { 9602 auto length = 0UL; 9603 for (auto p = s; *p; ++p) 9604 ++length; 9605 return length; 9606 } 9607 9608 static_assert(strlen_c("") == 0UL, ""); 9609 static_assert(strlen_c("x") == 1UL, ""); 9610 static_assert(strlen_c("test") == 4UL, ""); 9611 static_assert(strlen_c("another\0test") == 7UL, ""); 9612 9613 } 9614 9615 namespace test_lambda_init_capture 9616 { 9617 9618 int 9619 test() 9620 { 9621 auto x = 0; 9622 const auto lambda1 = [a = x](int b){ return a + b; }; 9623 const auto lambda2 = [a = lambda1(x)](){ return a; }; 9624 return lambda2(); 9625 } 9626 9627 } 9628 9629 namespace test_digit_separators 9630 { 9631 9632 constexpr auto ten_million = 100'000'000; 9633 static_assert(ten_million == 100000000, ""); 9634 9635 } 9636 9637 namespace test_return_type_deduction 9638 { 9639 9640 auto f(int& x) { return x; } 9641 decltype(auto) g(int& x) { return x; } 9642 9643 template < typename T1, typename T2 > 9644 struct is_same 9645 { 9646 static constexpr auto value = false; 9647 }; 9648 9649 template < typename T > 9650 struct is_same<T, T> 9651 { 9652 static constexpr auto value = true; 9653 }; 9654 9655 int 9656 test() 9657 { 9658 auto x = 0; 9659 static_assert(is_same<int, decltype(f(x))>::value, ""); 9660 static_assert(is_same<int&, decltype(g(x))>::value, ""); 9661 return x; 9662 } 9663 9664 } 9665 9666} // namespace cxx14 9667 9668#endif // __cplusplus >= 201402L 9669 9670 9671 9672 9673// If the compiler admits that it is not ready for C++17, why torture it? 9674// Hopefully, this will speed up the test. 9675 9676#ifndef __cplusplus 9677 9678#error "This is not a C++ compiler" 9679 9680#elif __cplusplus < 201703L && !defined _MSC_VER 9681 9682#error "This is not a C++17 compiler" 9683 9684#else 9685 9686#include <initializer_list> 9687#include <utility> 9688#include <type_traits> 9689 9690namespace cxx17 9691{ 9692 9693 namespace test_constexpr_lambdas 9694 { 9695 9696 constexpr int foo = [](){return 42;}(); 9697 9698 } 9699 9700 namespace test::nested_namespace::definitions 9701 { 9702 9703 } 9704 9705 namespace test_fold_expression 9706 { 9707 9708 template<typename... Args> 9709 int multiply(Args... args) 9710 { 9711 return (args * ... * 1); 9712 } 9713 9714 template<typename... Args> 9715 bool all(Args... args) 9716 { 9717 return (args && ...); 9718 } 9719 9720 } 9721 9722 namespace test_extended_static_assert 9723 { 9724 9725 static_assert (true); 9726 9727 } 9728 9729 namespace test_auto_brace_init_list 9730 { 9731 9732 auto foo = {5}; 9733 auto bar {5}; 9734 9735 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 9736 static_assert(std::is_same<int, decltype(bar)>::value); 9737 } 9738 9739 namespace test_typename_in_template_template_parameter 9740 { 9741 9742 template<template<typename> typename X> struct D; 9743 9744 } 9745 9746 namespace test_fallthrough_nodiscard_maybe_unused_attributes 9747 { 9748 9749 int f1() 9750 { 9751 return 42; 9752 } 9753 9754 [[nodiscard]] int f2() 9755 { 9756 [[maybe_unused]] auto unused = f1(); 9757 9758 switch (f1()) 9759 { 9760 case 17: 9761 f1(); 9762 [[fallthrough]]; 9763 case 42: 9764 f1(); 9765 } 9766 return f1(); 9767 } 9768 9769 } 9770 9771 namespace test_extended_aggregate_initialization 9772 { 9773 9774 struct base1 9775 { 9776 int b1, b2 = 42; 9777 }; 9778 9779 struct base2 9780 { 9781 base2() { 9782 b3 = 42; 9783 } 9784 int b3; 9785 }; 9786 9787 struct derived : base1, base2 9788 { 9789 int d; 9790 }; 9791 9792 derived d1 {{1, 2}, {}, 4}; // full initialization 9793 derived d2 {{}, {}, 4}; // value-initialized bases 9794 9795 } 9796 9797 namespace test_general_range_based_for_loop 9798 { 9799 9800 struct iter 9801 { 9802 int i; 9803 9804 int& operator* () 9805 { 9806 return i; 9807 } 9808 9809 const int& operator* () const 9810 { 9811 return i; 9812 } 9813 9814 iter& operator++() 9815 { 9816 ++i; 9817 return *this; 9818 } 9819 }; 9820 9821 struct sentinel 9822 { 9823 int i; 9824 }; 9825 9826 bool operator== (const iter& i, const sentinel& s) 9827 { 9828 return i.i == s.i; 9829 } 9830 9831 bool operator!= (const iter& i, const sentinel& s) 9832 { 9833 return !(i == s); 9834 } 9835 9836 struct range 9837 { 9838 iter begin() const 9839 { 9840 return {0}; 9841 } 9842 9843 sentinel end() const 9844 { 9845 return {5}; 9846 } 9847 }; 9848 9849 void f() 9850 { 9851 range r {}; 9852 9853 for (auto i : r) 9854 { 9855 [[maybe_unused]] auto v = i; 9856 } 9857 } 9858 9859 } 9860 9861 namespace test_lambda_capture_asterisk_this_by_value 9862 { 9863 9864 struct t 9865 { 9866 int i; 9867 int foo() 9868 { 9869 return [*this]() 9870 { 9871 return i; 9872 }(); 9873 } 9874 }; 9875 9876 } 9877 9878 namespace test_enum_class_construction 9879 { 9880 9881 enum class byte : unsigned char 9882 {}; 9883 9884 byte foo {42}; 9885 9886 } 9887 9888 namespace test_constexpr_if 9889 { 9890 9891 template <bool cond> 9892 int f () 9893 { 9894 if constexpr(cond) 9895 { 9896 return 13; 9897 } 9898 else 9899 { 9900 return 42; 9901 } 9902 } 9903 9904 } 9905 9906 namespace test_selection_statement_with_initializer 9907 { 9908 9909 int f() 9910 { 9911 return 13; 9912 } 9913 9914 int f2() 9915 { 9916 if (auto i = f(); i > 0) 9917 { 9918 return 3; 9919 } 9920 9921 switch (auto i = f(); i + 4) 9922 { 9923 case 17: 9924 return 2; 9925 9926 default: 9927 return 1; 9928 } 9929 } 9930 9931 } 9932 9933 namespace test_template_argument_deduction_for_class_templates 9934 { 9935 9936 template <typename T1, typename T2> 9937 struct pair 9938 { 9939 pair (T1 p1, T2 p2) 9940 : m1 {p1}, 9941 m2 {p2} 9942 {} 9943 9944 T1 m1; 9945 T2 m2; 9946 }; 9947 9948 void f() 9949 { 9950 [[maybe_unused]] auto p = pair{13, 42u}; 9951 } 9952 9953 } 9954 9955 namespace test_non_type_auto_template_parameters 9956 { 9957 9958 template <auto n> 9959 struct B 9960 {}; 9961 9962 B<5> b1; 9963 B<'a'> b2; 9964 9965 } 9966 9967 namespace test_structured_bindings 9968 { 9969 9970 int arr[2] = { 1, 2 }; 9971 std::pair<int, int> pr = { 1, 2 }; 9972 9973 auto f1() -> int(&)[2] 9974 { 9975 return arr; 9976 } 9977 9978 auto f2() -> std::pair<int, int>& 9979 { 9980 return pr; 9981 } 9982 9983 struct S 9984 { 9985 int x1 : 2; 9986 volatile double y1; 9987 }; 9988 9989 S f3() 9990 { 9991 return {}; 9992 } 9993 9994 auto [ x1, y1 ] = f1(); 9995 auto& [ xr1, yr1 ] = f1(); 9996 auto [ x2, y2 ] = f2(); 9997 auto& [ xr2, yr2 ] = f2(); 9998 const auto [ x3, y3 ] = f3(); 9999 10000 } 10001 10002 namespace test_exception_spec_type_system 10003 { 10004 10005 struct Good {}; 10006 struct Bad {}; 10007 10008 void g1() noexcept; 10009 void g2(); 10010 10011 template<typename T> 10012 Bad 10013 f(T*, T*); 10014 10015 template<typename T1, typename T2> 10016 Good 10017 f(T1*, T2*); 10018 10019 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 10020 10021 } 10022 10023 namespace test_inline_variables 10024 { 10025 10026 template<class T> void f(T) 10027 {} 10028 10029 template<class T> inline T g(T) 10030 { 10031 return T{}; 10032 } 10033 10034 template<> inline void f<>(int) 10035 {} 10036 10037 template<> int g<>(int) 10038 { 10039 return 5; 10040 } 10041 10042 } 10043 10044} // namespace cxx17 10045 10046#endif // __cplusplus < 201703L && !defined _MSC_VER 10047 10048 10049 10050_ACEOF 10051if ac_fn_cxx_try_compile "$LINENO" 10052then : 10053 eval $cachevar=yes 10054else $as_nop 10055 eval $cachevar=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10058 CXX="$ac_save_CXX" 10059fi 10060eval ac_res=\$$cachevar 10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10062printf "%s\n" "$ac_res" >&6; } 10063 if eval test x\$$cachevar = xyes; then 10064 CXX="$CXX $switch" 10065 if test -n "$CXXCPP" ; then 10066 CXXCPP="$CXXCPP $switch" 10067 fi 10068 ac_success=yes 10069 break 10070 fi 10071 done 10072 if test x$ac_success = xyes; then 10073 break 10074 fi 10075 done 10076 fi 10077 ac_ext=c 10078ac_cpp='$CPP $CPPFLAGS' 10079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10081ac_compiler_gnu=$ac_cv_c_compiler_gnu 10082 10083 if test x$ax_cxx_compile_cxx17_required = xtrue; then 10084 if test x$ac_success = xno; then 10085 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5 10086 fi 10087 fi 10088 if test x$ac_success = xno; then 10089 HAVE_CXX17=0 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 10091printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;} 10092 else 10093 HAVE_CXX17=1 10094 10095printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h 10096 10097 fi 10098 10099 10100 10101WARN_CXXFLAGS= 10102ac_ext=cpp 10103ac_cpp='$CXXCPP $CPPFLAGS' 10104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10107 10108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5 10109printf %s "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; } 10110if test ${ax_cv_check_cxxflags___Werror_unknown_warning_option+y} 10111then : 10112 printf %s "(cached) " >&6 10113else $as_nop 10114 10115 ax_check_save_flags=$CXXFLAGS 10116 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option" 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119 10120int 10121main (void) 10122{ 10123 10124 ; 10125 return 0; 10126} 10127_ACEOF 10128if ac_fn_cxx_try_compile "$LINENO" 10129then : 10130 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes 10131else $as_nop 10132 ax_cv_check_cxxflags___Werror_unknown_warning_option=no 10133fi 10134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10135 CXXFLAGS=$ax_check_save_flags 10136fi 10137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5 10138printf "%s\n" "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; } 10139if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes 10140then : 10141 10142 ax_compiler_flags_test="-Werror=unknown-warning-option" 10143 10144else $as_nop 10145 10146 ax_compiler_flags_test="" 10147 10148fi 10149 10150 10151 10152 10153 10154for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do 10155 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh` 10156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5 10157printf %s "checking whether C++ compiler accepts $flag... " >&6; } 10158if eval test \${$as_CACHEVAR+y} 10159then : 10160 printf %s "(cached) " >&6 10161else $as_nop 10162 10163 ax_check_save_flags=$CXXFLAGS 10164 CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag" 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167 10168int 10169main (void) 10170{ 10171 10172 ; 10173 return 0; 10174} 10175_ACEOF 10176if ac_fn_cxx_try_compile "$LINENO" 10177then : 10178 eval "$as_CACHEVAR=yes" 10179else $as_nop 10180 eval "$as_CACHEVAR=no" 10181fi 10182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10183 CXXFLAGS=$ax_check_save_flags 10184fi 10185eval ac_res=\$$as_CACHEVAR 10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10187printf "%s\n" "$ac_res" >&6; } 10188if eval test \"x\$"$as_CACHEVAR"\" = x"yes" 10189then : 10190 10191if test ${WARN_CXXFLAGS+y} 10192then : 10193 10194 case " $WARN_CXXFLAGS " in #( 10195 *" $flag "*) : 10196 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5 10197 (: WARN_CXXFLAGS already contains $flag) 2>&5 10198 ac_status=$? 10199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10200 test $ac_status = 0; } ;; #( 10201 *) : 10202 10203 as_fn_append WARN_CXXFLAGS " $flag" 10204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10205 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10206 ac_status=$? 10207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10208 test $ac_status = 0; } 10209 ;; 10210esac 10211 10212else $as_nop 10213 10214 WARN_CXXFLAGS=$flag 10215 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5 10216 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5 10217 ac_status=$? 10218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10219 test $ac_status = 0; } 10220 10221fi 10222 10223else $as_nop 10224 : 10225fi 10226 10227done 10228 10229as_fn_append WARN_CXXFLAGS " -Werror" 10230ac_ext=c 10231ac_cpp='$CPP $CPPFLAGS' 10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10234ac_compiler_gnu=$ac_cv_c_compiler_gnu 10235 10236 10237 10238 10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5 10240printf %s "checking for O_CLOEXEC defined in fcntl.h... " >&6; } 10241if test ${ac_cv_defined_O_CLOEXEC_fcntl_h+y} 10242then : 10243 printf %s "(cached) " >&6 10244else $as_nop 10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10246/* end confdefs.h. */ 10247#include <fcntl.h> 10248int 10249main (void) 10250{ 10251 10252 #ifdef O_CLOEXEC 10253 int ok; 10254 #else 10255 choke me 10256 #endif 10257 10258 ; 10259 return 0; 10260} 10261_ACEOF 10262if ac_fn_c_try_compile "$LINENO" 10263then : 10264 ac_cv_defined_O_CLOEXEC_fcntl_h=yes 10265else $as_nop 10266 ac_cv_defined_O_CLOEXEC_fcntl_h=no 10267fi 10268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10269fi 10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5 10271printf "%s\n" "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; } 10272if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no" 10273then : 10274 10275else $as_nop 10276 10277printf "%s\n" "#define O_CLOEXEC 0" >>confdefs.h 10278 10279fi 10280 10281# Only build Linux client libs when compiling for Linux 10282case $host in 10283 *-*-linux* | *-android* ) 10284 LINUX_HOST=true 10285 ;; 10286esac 10287 if test x$LINUX_HOST = xtrue; then 10288 LINUX_HOST_TRUE= 10289 LINUX_HOST_FALSE='#' 10290else 10291 LINUX_HOST_TRUE='#' 10292 LINUX_HOST_FALSE= 10293fi 10294 10295 10296# Only use Android support headers when compiling for Android 10297case $host in 10298 *-android*) 10299 ANDROID_HOST=true 10300 ;; 10301esac 10302 if test x$ANDROID_HOST = xtrue; then 10303 ANDROID_HOST_TRUE= 10304 ANDROID_HOST_FALSE='#' 10305else 10306 ANDROID_HOST_TRUE='#' 10307 ANDROID_HOST_FALSE= 10308fi 10309 10310 10311# Some tools (like mac ones) only support x86 currently. 10312case $host_cpu in 10313 i?86|x86_64) 10314 X86_HOST=true 10315 ;; 10316esac 10317 if test x$X86_HOST = xtrue; then 10318 X86_HOST_TRUE= 10319 X86_HOST_FALSE='#' 10320else 10321 X86_HOST_TRUE='#' 10322 X86_HOST_FALSE= 10323fi 10324 10325 10326# Check whether --enable-processor was given. 10327if test ${enable_processor+y} 10328then : 10329 enableval=$enable_processor; 10330else $as_nop 10331 enable_processor=yes 10332fi 10333 10334 if test "x$enable_processor" != xyes; then 10335 DISABLE_PROCESSOR_TRUE= 10336 DISABLE_PROCESSOR_FALSE='#' 10337else 10338 DISABLE_PROCESSOR_TRUE='#' 10339 DISABLE_PROCESSOR_FALSE= 10340fi 10341 10342 10343# Check whether --enable-tools was given. 10344if test ${enable_tools+y} 10345then : 10346 enableval=$enable_tools; 10347else $as_nop 10348 enable_tools=yes 10349fi 10350 10351 if test "x$enable_tools" != xyes; then 10352 DISABLE_TOOLS_TRUE= 10353 DISABLE_TOOLS_FALSE='#' 10354else 10355 DISABLE_TOOLS_TRUE='#' 10356 DISABLE_TOOLS_FALSE= 10357fi 10358 10359 10360if test x$LINUX_HOST = xfalse -a "x$enable_processor" != xyes -a "x$enable_tools" != xyes; then 10361 as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5 10362fi 10363 10364# Check whether --enable-system-test-libs was given. 10365if test ${enable_system_test_libs+y} 10366then : 10367 enableval=$enable_system_test_libs; 10368else $as_nop 10369 enable_system_test_libs=no 10370fi 10371 10372 if test "x$enable_system_test_libs" = xyes; then 10373 SYSTEM_TEST_LIBS_TRUE= 10374 SYSTEM_TEST_LIBS_FALSE='#' 10375else 10376 SYSTEM_TEST_LIBS_TRUE='#' 10377 SYSTEM_TEST_LIBS_FALSE= 10378fi 10379 10380 10381 10382 10383 10384 10385if test "x$enable_system_test_libs" = xyes; then 10386 : "${GMOCK_CFLAGS:=-pthread}" 10387 : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}" 10388 : "${GTEST_CFLAGS:=-pthread}" 10389 : "${GTEST_LIBS:=-lgtest -pthread -lpthread}" 10390fi 10391 10392# Check whether --enable-selftest was given. 10393if test ${enable_selftest+y} 10394then : 10395 enableval=$enable_selftest; 10396else $as_nop 10397 enable_selftest=no 10398fi 10399 10400 if test "x$enable_selftest" = xyes; then 10401 SELFTEST_TRUE= 10402 SELFTEST_FALSE='#' 10403else 10404 SELFTEST_TRUE='#' 10405 SELFTEST_FALSE= 10406fi 10407 10408 10409 10410# Check whether --with-rustc-demangle was given. 10411if test ${with_rustc_demangle+y} 10412then : 10413 withval=$with_rustc_demangle; 10414else $as_nop 10415 with_rustc_demangle=no 10416fi 10417 10418 10419RUSTC_DEMANGLE_BASE_CFLAGS="-DHAVE_RUSTC_DEMANGLE" 10420RUSTC_DEMANGLE_BASE_LIBS="-lrustc_demangle -lpthread -ldl" 10421 10422if test "x${with_rustc_demangle}" != xno; then 10423 if ! test -f "${with_rustc_demangle}/Cargo.toml"; then 10424 as_fn_error $? "You must pass the path to the rustc-demangle crate for --with-rustc-demangle" "$LINENO" 5 10425 fi 10426 RUSTC_DEMANGLE_CFLAGS="-I${with_rustc_demangle}/crates/capi/include ${RUSTC_DEMANGLE_BASE_CFLAGS}" 10427 RUSTC_DEMANGLE_LIBS="-L${with_rustc_demangle}/target/release ${RUSTC_DEMANGLE_BASE_LIBS}" 10428fi 10429 10430# Check whether --enable-system-rustc-demangle was given. 10431if test ${enable_system_rustc_demangle+y} 10432then : 10433 enableval=$enable_system_rustc_demangle; 10434else $as_nop 10435 enable_system_rustc_demangle=no 10436fi 10437 10438 10439if test "x${enable_system_rustc_demangle}" != xno; then 10440 if test "x${with_rustc_demangle}" != xno; then 10441 as_fn_error $? "--enable-system-rustc-demangle and --with-rustc-demangle are mutually exclusive." "$LINENO" 5 10442 fi 10443 10444 RUSTC_DEMANGLE_CFLAGS="${RUSTC_DEMANGLE_BASE_CFLAGS}" 10445 RUSTC_DEMANGLE_LIBS="${RUSTC_DEMANGLE_BASE_LIBS}" 10446 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustc_demangle in -lrustc_demangle" >&5 10448printf %s "checking for rustc_demangle in -lrustc_demangle... " >&6; } 10449if test ${ac_cv_lib_rustc_demangle_rustc_demangle+y} 10450then : 10451 printf %s "(cached) " >&6 10452else $as_nop 10453 ac_check_lib_save_LIBS=$LIBS 10454LIBS="-lrustc_demangle $RUSTC_DEMANGLE_LIBS $LIBS" 10455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10456/* end confdefs.h. */ 10457 10458/* Override any GCC internal prototype to avoid an error. 10459 Use char because int might match the return type of a GCC 10460 builtin and then its argument prototype would still apply. */ 10461char rustc_demangle (); 10462int 10463main (void) 10464{ 10465return rustc_demangle (); 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO" 10471then : 10472 ac_cv_lib_rustc_demangle_rustc_demangle=yes 10473else $as_nop 10474 ac_cv_lib_rustc_demangle_rustc_demangle=no 10475fi 10476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10477 conftest$ac_exeext conftest.$ac_ext 10478LIBS=$ac_check_lib_save_LIBS 10479fi 10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustc_demangle_rustc_demangle" >&5 10481printf "%s\n" "$ac_cv_lib_rustc_demangle_rustc_demangle" >&6; } 10482if test "x$ac_cv_lib_rustc_demangle_rustc_demangle" = xyes 10483then : 10484 printf "%s\n" "#define HAVE_LIBRUSTC_DEMANGLE 1" >>confdefs.h 10485 10486 LIBS="-lrustc_demangle $LIBS" 10487 10488else $as_nop 10489 as_fn_error $? "librustc_demangle.a must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5 10490fi 10491 10492 for ac_header in rustc_demangle.h 10493do : 10494 ac_fn_c_check_header_compile "$LINENO" "rustc_demangle.h" "ac_cv_header_rustc_demangle_h" "$ac_includes_default" 10495if test "x$ac_cv_header_rustc_demangle_h" = xyes 10496then : 10497 printf "%s\n" "#define HAVE_RUSTC_DEMANGLE_H 1" >>confdefs.h 10498 10499else $as_nop 10500 as_fn_error $? "rustc_demangle.h must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5 10501fi 10502 10503done 10504fi 10505 10506 10507 10508 10509# Check whether --enable-zstd was given. 10510if test ${enable_zstd+y} 10511then : 10512 enableval=$enable_zstd; 10513else $as_nop 10514 enable_zstd=no 10515fi 10516 10517if test "x${enable_zstd}" != xno; then 10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompress in -lzstd" >&5 10519printf %s "checking for ZSTD_decompress in -lzstd... " >&6; } 10520if test ${ac_cv_lib_zstd_ZSTD_decompress+y} 10521then : 10522 printf %s "(cached) " >&6 10523else $as_nop 10524 ac_check_lib_save_LIBS=$LIBS 10525LIBS="-lzstd $LIBS" 10526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527/* end confdefs.h. */ 10528 10529/* Override any GCC internal prototype to avoid an error. 10530 Use char because int might match the return type of a GCC 10531 builtin and then its argument prototype would still apply. */ 10532char ZSTD_decompress (); 10533int 10534main (void) 10535{ 10536return ZSTD_decompress (); 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541if ac_fn_c_try_link "$LINENO" 10542then : 10543 ac_cv_lib_zstd_ZSTD_decompress=yes 10544else $as_nop 10545 ac_cv_lib_zstd_ZSTD_decompress=no 10546fi 10547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10548 conftest$ac_exeext conftest.$ac_ext 10549LIBS=$ac_check_lib_save_LIBS 10550fi 10551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompress" >&5 10552printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompress" >&6; } 10553if test "x$ac_cv_lib_zstd_ZSTD_decompress" = xyes 10554then : 10555 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 10556 10557 LIBS="-lzstd $LIBS" 10558 10559else $as_nop 10560 as_fn_error $? "zstd library not found." "$LINENO" 5 10561fi 10562 10563 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 10564if test "x$ac_cv_header_zstd_h" = xyes 10565then : 10566 10567else $as_nop 10568 as_fn_error $? "zstd header not found." "$LINENO" 5 10569fi 10570 10571fi 10572 10573 10574# Check whether --with-tests-as-root was given. 10575if test ${with_tests_as_root+y} 10576then : 10577 withval=$with_tests_as_root; 10578else $as_nop 10579 with_tests_as_root=no 10580fi 10581 10582 if test "x$with_tests_as_root" = xyes; then 10583 TESTS_AS_ROOT_TRUE= 10584 TESTS_AS_ROOT_FALSE='#' 10585else 10586 TESTS_AS_ROOT_TRUE='#' 10587 TESTS_AS_ROOT_FALSE= 10588fi 10589 10590 10591ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile" 10592 10593 10594cat >confcache <<\_ACEOF 10595# This file is a shell script that caches the results of configure 10596# tests run on this system so they can be shared between configure 10597# scripts and configure runs, see configure's option --config-cache. 10598# It is not useful on other systems. If it contains results you don't 10599# want to keep, you may remove or edit it. 10600# 10601# config.status only pays attention to the cache file if you give it 10602# the --recheck option to rerun configure. 10603# 10604# `ac_cv_env_foo' variables (set or unset) will be overridden when 10605# loading this file, other *unset* `ac_cv_foo' will be assigned the 10606# following values. 10607 10608_ACEOF 10609 10610# The following way of writing the cache mishandles newlines in values, 10611# but we know of no workaround that is simple, portable, and efficient. 10612# So, we kill variables containing newlines. 10613# Ultrix sh set writes to stderr and can't be redirected directly, 10614# and sets the high bit in the cache file unless we assign to the vars. 10615( 10616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10617 eval ac_val=\$$ac_var 10618 case $ac_val in #( 10619 *${as_nl}*) 10620 case $ac_var in #( 10621 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10622printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10623 esac 10624 case $ac_var in #( 10625 _ | IFS | as_nl) ;; #( 10626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10627 *) { eval $ac_var=; unset $ac_var;} ;; 10628 esac ;; 10629 esac 10630 done 10631 10632 (set) 2>&1 | 10633 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10634 *${as_nl}ac_space=\ *) 10635 # `set' does not quote correctly, so add quotes: double-quote 10636 # substitution turns \\\\ into \\, and sed turns \\ into \. 10637 sed -n \ 10638 "s/'/'\\\\''/g; 10639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10640 ;; #( 10641 *) 10642 # `set' quotes correctly as required by POSIX, so do not add quotes. 10643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10644 ;; 10645 esac | 10646 sort 10647) | 10648 sed ' 10649 /^ac_cv_env_/b end 10650 t clear 10651 :clear 10652 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 10653 t end 10654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10655 :end' >>confcache 10656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10657 if test -w "$cache_file"; then 10658 if test "x$cache_file" != "x/dev/null"; then 10659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10660printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 10661 if test ! -f "$cache_file" || test -h "$cache_file"; then 10662 cat confcache >"$cache_file" 10663 else 10664 case $cache_file in #( 10665 */* | ?:*) 10666 mv -f confcache "$cache_file"$$ && 10667 mv -f "$cache_file"$$ "$cache_file" ;; #( 10668 *) 10669 mv -f confcache "$cache_file" ;; 10670 esac 10671 fi 10672 fi 10673 else 10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10675printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 10676 fi 10677fi 10678rm -f confcache 10679 10680test "x$prefix" = xNONE && prefix=$ac_default_prefix 10681# Let make expand exec_prefix. 10682test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10683 10684DEFS=-DHAVE_CONFIG_H 10685 10686ac_libobjs= 10687ac_ltlibobjs= 10688U= 10689for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10690 # 1. Remove the extension, and $U if already installed. 10691 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10692 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 10693 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10694 # will be set to the directory where LIBOBJS objects are built. 10695 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10696 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10697done 10698LIBOBJS=$ac_libobjs 10699 10700LTLIBOBJS=$ac_ltlibobjs 10701 10702 10703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10704printf %s "checking that generated files are newer than configure... " >&6; } 10705 if test -n "$am_sleep_pid"; then 10706 # Hide warnings about reused PIDs. 10707 wait $am_sleep_pid 2>/dev/null 10708 fi 10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 10710printf "%s\n" "done" >&6; } 10711 if test -n "$EXEEXT"; then 10712 am__EXEEXT_TRUE= 10713 am__EXEEXT_FALSE='#' 10714else 10715 am__EXEEXT_TRUE='#' 10716 am__EXEEXT_FALSE= 10717fi 10718 10719if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10720 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10721Usually this means the macro was only invoked conditionally." "$LINENO" 5 10722fi 10723if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10724 as_fn_error $? "conditional \"AMDEP\" was never defined. 10725Usually this means the macro was only invoked conditionally." "$LINENO" 5 10726fi 10727if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10728 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10729Usually this means the macro was only invoked conditionally." "$LINENO" 5 10730fi 10731if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 10732 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 10733Usually this means the macro was only invoked conditionally." "$LINENO" 5 10734fi 10735if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10737Usually this means the macro was only invoked conditionally." "$LINENO" 5 10738fi 10739if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10740 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10741Usually this means the macro was only invoked conditionally." "$LINENO" 5 10742fi 10743if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then 10744 as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined. 10745Usually this means the macro was only invoked conditionally." "$LINENO" 5 10746fi 10747if test -z "${HAVE_MEMFD_CREATE_TRUE}" && test -z "${HAVE_MEMFD_CREATE_FALSE}"; then 10748 as_fn_error $? "conditional \"HAVE_MEMFD_CREATE\" was never defined. 10749Usually this means the macro was only invoked conditionally." "$LINENO" 5 10750fi 10751if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then 10752 as_fn_error $? "conditional \"LINUX_HOST\" was never defined. 10753Usually this means the macro was only invoked conditionally." "$LINENO" 5 10754fi 10755if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then 10756 as_fn_error $? "conditional \"ANDROID_HOST\" was never defined. 10757Usually this means the macro was only invoked conditionally." "$LINENO" 5 10758fi 10759if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then 10760 as_fn_error $? "conditional \"X86_HOST\" was never defined. 10761Usually this means the macro was only invoked conditionally." "$LINENO" 5 10762fi 10763if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then 10764 as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined. 10765Usually this means the macro was only invoked conditionally." "$LINENO" 5 10766fi 10767if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then 10768 as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined. 10769Usually this means the macro was only invoked conditionally." "$LINENO" 5 10770fi 10771if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then 10772 as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined. 10773Usually this means the macro was only invoked conditionally." "$LINENO" 5 10774fi 10775if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then 10776 as_fn_error $? "conditional \"SELFTEST\" was never defined. 10777Usually this means the macro was only invoked conditionally." "$LINENO" 5 10778fi 10779if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then 10780 as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined. 10781Usually this means the macro was only invoked conditionally." "$LINENO" 5 10782fi 10783 10784: "${CONFIG_STATUS=./config.status}" 10785ac_write_fail=0 10786ac_clean_files_save=$ac_clean_files 10787ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10789printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 10790as_write_fail=0 10791cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10792#! $SHELL 10793# Generated by $as_me. 10794# Run this file to recreate the current configuration. 10795# Compiler output produced by configure, useful for debugging 10796# configure, is in config.log if it exists. 10797 10798debug=false 10799ac_cs_recheck=false 10800ac_cs_silent=false 10801 10802SHELL=\${CONFIG_SHELL-$SHELL} 10803export SHELL 10804_ASEOF 10805cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10806## -------------------- ## 10807## M4sh Initialization. ## 10808## -------------------- ## 10809 10810# Be more Bourne compatible 10811DUALCASE=1; export DUALCASE # for MKS sh 10812as_nop=: 10813if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 10814then : 10815 emulate sh 10816 NULLCMD=: 10817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10818 # is contrary to our usage. Disable this feature. 10819 alias -g '${1+"$@"}'='"$@"' 10820 setopt NO_GLOB_SUBST 10821else $as_nop 10822 case `(set -o) 2>/dev/null` in #( 10823 *posix*) : 10824 set -o posix ;; #( 10825 *) : 10826 ;; 10827esac 10828fi 10829 10830 10831 10832# Reset variables that may have inherited troublesome values from 10833# the environment. 10834 10835# IFS needs to be set, to space, tab, and newline, in precisely that order. 10836# (If _AS_PATH_WALK were called with IFS unset, it would have the 10837# side effect of setting IFS to empty, thus disabling word splitting.) 10838# Quoting is to prevent editors from complaining about space-tab. 10839as_nl=' 10840' 10841export as_nl 10842IFS=" "" $as_nl" 10843 10844PS1='$ ' 10845PS2='> ' 10846PS4='+ ' 10847 10848# Ensure predictable behavior from utilities with locale-dependent output. 10849LC_ALL=C 10850export LC_ALL 10851LANGUAGE=C 10852export LANGUAGE 10853 10854# We cannot yet rely on "unset" to work, but we need these variables 10855# to be unset--not just set to an empty or harmless value--now, to 10856# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 10857# also avoids known problems related to "unset" and subshell syntax 10858# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 10859for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 10860do eval test \${$as_var+y} \ 10861 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10862done 10863 10864# Ensure that fds 0, 1, and 2 are open. 10865if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 10866if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 10867if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 10868 10869# The user is always right. 10870if ${PATH_SEPARATOR+false} :; then 10871 PATH_SEPARATOR=: 10872 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10873 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10874 PATH_SEPARATOR=';' 10875 } 10876fi 10877 10878 10879# Find who we are. Look in the path if we contain no directory separator. 10880as_myself= 10881case $0 in #(( 10882 *[\\/]* ) as_myself=$0 ;; 10883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10884for as_dir in $PATH 10885do 10886 IFS=$as_save_IFS 10887 case $as_dir in #((( 10888 '') as_dir=./ ;; 10889 */) ;; 10890 *) as_dir=$as_dir/ ;; 10891 esac 10892 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10893 done 10894IFS=$as_save_IFS 10895 10896 ;; 10897esac 10898# We did not find ourselves, most probably we were run as `sh COMMAND' 10899# in which case we are not to be found in the path. 10900if test "x$as_myself" = x; then 10901 as_myself=$0 10902fi 10903if test ! -f "$as_myself"; then 10904 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10905 exit 1 10906fi 10907 10908 10909 10910# as_fn_error STATUS ERROR [LINENO LOG_FD] 10911# ---------------------------------------- 10912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10914# script with STATUS, using 1 if that was 0. 10915as_fn_error () 10916{ 10917 as_status=$1; test $as_status -eq 0 && as_status=1 10918 if test "$4"; then 10919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10921 fi 10922 printf "%s\n" "$as_me: error: $2" >&2 10923 as_fn_exit $as_status 10924} # as_fn_error 10925 10926 10927 10928# as_fn_set_status STATUS 10929# ----------------------- 10930# Set $? to STATUS, without forking. 10931as_fn_set_status () 10932{ 10933 return $1 10934} # as_fn_set_status 10935 10936# as_fn_exit STATUS 10937# ----------------- 10938# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10939as_fn_exit () 10940{ 10941 set +e 10942 as_fn_set_status $1 10943 exit $1 10944} # as_fn_exit 10945 10946# as_fn_unset VAR 10947# --------------- 10948# Portably unset VAR. 10949as_fn_unset () 10950{ 10951 { eval $1=; unset $1;} 10952} 10953as_unset=as_fn_unset 10954 10955# as_fn_append VAR VALUE 10956# ---------------------- 10957# Append the text in VALUE to the end of the definition contained in VAR. Take 10958# advantage of any shell optimizations that allow amortized linear growth over 10959# repeated appends, instead of the typical quadratic growth present in naive 10960# implementations. 10961if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 10962then : 10963 eval 'as_fn_append () 10964 { 10965 eval $1+=\$2 10966 }' 10967else $as_nop 10968 as_fn_append () 10969 { 10970 eval $1=\$$1\$2 10971 } 10972fi # as_fn_append 10973 10974# as_fn_arith ARG... 10975# ------------------ 10976# Perform arithmetic evaluation on the ARGs, and store the result in the 10977# global $as_val. Take advantage of shells that can avoid forks. The arguments 10978# must be portable across $(()) and expr. 10979if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 10980then : 10981 eval 'as_fn_arith () 10982 { 10983 as_val=$(( $* )) 10984 }' 10985else $as_nop 10986 as_fn_arith () 10987 { 10988 as_val=`expr "$@" || test $? -eq 1` 10989 } 10990fi # as_fn_arith 10991 10992 10993if expr a : '\(a\)' >/dev/null 2>&1 && 10994 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10995 as_expr=expr 10996else 10997 as_expr=false 10998fi 10999 11000if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11001 as_basename=basename 11002else 11003 as_basename=false 11004fi 11005 11006if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11007 as_dirname=dirname 11008else 11009 as_dirname=false 11010fi 11011 11012as_me=`$as_basename -- "$0" || 11013$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11014 X"$0" : 'X\(//\)$' \| \ 11015 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11016printf "%s\n" X/"$0" | 11017 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11018 s//\1/ 11019 q 11020 } 11021 /^X\/\(\/\/\)$/{ 11022 s//\1/ 11023 q 11024 } 11025 /^X\/\(\/\).*/{ 11026 s//\1/ 11027 q 11028 } 11029 s/.*/./; q'` 11030 11031# Avoid depending upon Character Ranges. 11032as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11033as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11034as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11035as_cr_digits='0123456789' 11036as_cr_alnum=$as_cr_Letters$as_cr_digits 11037 11038 11039# Determine whether it's possible to make 'echo' print without a newline. 11040# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11041# for compatibility with existing Makefiles. 11042ECHO_C= ECHO_N= ECHO_T= 11043case `echo -n x` in #((((( 11044-n*) 11045 case `echo 'xy\c'` in 11046 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11047 xy) ECHO_C='\c';; 11048 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11049 ECHO_T=' ';; 11050 esac;; 11051*) 11052 ECHO_N='-n';; 11053esac 11054 11055# For backward compatibility with old third-party macros, we provide 11056# the shell variables $as_echo and $as_echo_n. New code should use 11057# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11058as_echo='printf %s\n' 11059as_echo_n='printf %s' 11060 11061rm -f conf$$ conf$$.exe conf$$.file 11062if test -d conf$$.dir; then 11063 rm -f conf$$.dir/conf$$.file 11064else 11065 rm -f conf$$.dir 11066 mkdir conf$$.dir 2>/dev/null 11067fi 11068if (echo >conf$$.file) 2>/dev/null; then 11069 if ln -s conf$$.file conf$$ 2>/dev/null; then 11070 as_ln_s='ln -s' 11071 # ... but there are two gotchas: 11072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11074 # In both cases, we have to default to `cp -pR'. 11075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11076 as_ln_s='cp -pR' 11077 elif ln conf$$.file conf$$ 2>/dev/null; then 11078 as_ln_s=ln 11079 else 11080 as_ln_s='cp -pR' 11081 fi 11082else 11083 as_ln_s='cp -pR' 11084fi 11085rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11086rmdir conf$$.dir 2>/dev/null 11087 11088 11089# as_fn_mkdir_p 11090# ------------- 11091# Create "$as_dir" as a directory, including parents if necessary. 11092as_fn_mkdir_p () 11093{ 11094 11095 case $as_dir in #( 11096 -*) as_dir=./$as_dir;; 11097 esac 11098 test -d "$as_dir" || eval $as_mkdir_p || { 11099 as_dirs= 11100 while :; do 11101 case $as_dir in #( 11102 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11103 *) as_qdir=$as_dir;; 11104 esac 11105 as_dirs="'$as_qdir' $as_dirs" 11106 as_dir=`$as_dirname -- "$as_dir" || 11107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11108 X"$as_dir" : 'X\(//\)[^/]' \| \ 11109 X"$as_dir" : 'X\(//\)$' \| \ 11110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11111printf "%s\n" X"$as_dir" | 11112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11113 s//\1/ 11114 q 11115 } 11116 /^X\(\/\/\)[^/].*/{ 11117 s//\1/ 11118 q 11119 } 11120 /^X\(\/\/\)$/{ 11121 s//\1/ 11122 q 11123 } 11124 /^X\(\/\).*/{ 11125 s//\1/ 11126 q 11127 } 11128 s/.*/./; q'` 11129 test -d "$as_dir" && break 11130 done 11131 test -z "$as_dirs" || eval "mkdir $as_dirs" 11132 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11133 11134 11135} # as_fn_mkdir_p 11136if mkdir -p . 2>/dev/null; then 11137 as_mkdir_p='mkdir -p "$as_dir"' 11138else 11139 test -d ./-p && rmdir ./-p 11140 as_mkdir_p=false 11141fi 11142 11143 11144# as_fn_executable_p FILE 11145# ----------------------- 11146# Test if FILE is an executable regular file. 11147as_fn_executable_p () 11148{ 11149 test -f "$1" && test -x "$1" 11150} # as_fn_executable_p 11151as_test_x='test -x' 11152as_executable_p=as_fn_executable_p 11153 11154# Sed expression to map a string onto a valid CPP name. 11155as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11156 11157# Sed expression to map a string onto a valid variable name. 11158as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11159 11160 11161exec 6>&1 11162## ----------------------------------- ## 11163## Main body of $CONFIG_STATUS script. ## 11164## ----------------------------------- ## 11165_ASEOF 11166test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11167 11168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11169# Save the log message, to keep $0 and so on meaningful, and to 11170# report actual input values of CONFIG_FILES etc. instead of their 11171# values after options handling. 11172ac_log=" 11173This file was extended by breakpad $as_me 0.1, which was 11174generated by GNU Autoconf 2.71. Invocation command line was 11175 11176 CONFIG_FILES = $CONFIG_FILES 11177 CONFIG_HEADERS = $CONFIG_HEADERS 11178 CONFIG_LINKS = $CONFIG_LINKS 11179 CONFIG_COMMANDS = $CONFIG_COMMANDS 11180 $ $0 $@ 11181 11182on `(hostname || uname -n) 2>/dev/null | sed 1q` 11183" 11184 11185_ACEOF 11186 11187case $ac_config_files in *" 11188"*) set x $ac_config_files; shift; ac_config_files=$*;; 11189esac 11190 11191case $ac_config_headers in *" 11192"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11193esac 11194 11195 11196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11197# Files that config.status was made for. 11198config_files="$ac_config_files" 11199config_headers="$ac_config_headers" 11200config_commands="$ac_config_commands" 11201 11202_ACEOF 11203 11204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11205ac_cs_usage="\ 11206\`$as_me' instantiates files and other configuration actions 11207from templates according to the current configuration. Unless the files 11208and actions are specified as TAGs, all are instantiated by default. 11209 11210Usage: $0 [OPTION]... [TAG]... 11211 11212 -h, --help print this help, then exit 11213 -V, --version print version number and configuration settings, then exit 11214 --config print configuration, then exit 11215 -q, --quiet, --silent 11216 do not print progress messages 11217 -d, --debug don't remove temporary files 11218 --recheck update $as_me by reconfiguring in the same conditions 11219 --file=FILE[:TEMPLATE] 11220 instantiate the configuration file FILE 11221 --header=FILE[:TEMPLATE] 11222 instantiate the configuration header FILE 11223 11224Configuration files: 11225$config_files 11226 11227Configuration headers: 11228$config_headers 11229 11230Configuration commands: 11231$config_commands 11232 11233Report bugs to <[email protected]>." 11234 11235_ACEOF 11236ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11237ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11239ac_cs_config='$ac_cs_config_escaped' 11240ac_cs_version="\\ 11241breakpad config.status 0.1 11242configured by $0, generated by GNU Autoconf 2.71, 11243 with options \\"\$ac_cs_config\\" 11244 11245Copyright (C) 2021 Free Software Foundation, Inc. 11246This config.status script is free software; the Free Software Foundation 11247gives unlimited permission to copy, distribute and modify it." 11248 11249ac_pwd='$ac_pwd' 11250srcdir='$srcdir' 11251INSTALL='$INSTALL' 11252MKDIR_P='$MKDIR_P' 11253AWK='$AWK' 11254test -n "\$AWK" || AWK=awk 11255_ACEOF 11256 11257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11258# The default lists apply if the user does not specify any file. 11259ac_need_defaults=: 11260while test $# != 0 11261do 11262 case $1 in 11263 --*=?*) 11264 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11265 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11266 ac_shift=: 11267 ;; 11268 --*=) 11269 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11270 ac_optarg= 11271 ac_shift=: 11272 ;; 11273 *) 11274 ac_option=$1 11275 ac_optarg=$2 11276 ac_shift=shift 11277 ;; 11278 esac 11279 11280 case $ac_option in 11281 # Handling of the options. 11282 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11283 ac_cs_recheck=: ;; 11284 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11285 printf "%s\n" "$ac_cs_version"; exit ;; 11286 --config | --confi | --conf | --con | --co | --c ) 11287 printf "%s\n" "$ac_cs_config"; exit ;; 11288 --debug | --debu | --deb | --de | --d | -d ) 11289 debug=: ;; 11290 --file | --fil | --fi | --f ) 11291 $ac_shift 11292 case $ac_optarg in 11293 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11294 '') as_fn_error $? "missing file argument" ;; 11295 esac 11296 as_fn_append CONFIG_FILES " '$ac_optarg'" 11297 ac_need_defaults=false;; 11298 --header | --heade | --head | --hea ) 11299 $ac_shift 11300 case $ac_optarg in 11301 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11302 esac 11303 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11304 ac_need_defaults=false;; 11305 --he | --h) 11306 # Conflict between --help and --header 11307 as_fn_error $? "ambiguous option: \`$1' 11308Try \`$0 --help' for more information.";; 11309 --help | --hel | -h ) 11310 printf "%s\n" "$ac_cs_usage"; exit ;; 11311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11312 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11313 ac_cs_silent=: ;; 11314 11315 # This is an error. 11316 -*) as_fn_error $? "unrecognized option: \`$1' 11317Try \`$0 --help' for more information." ;; 11318 11319 *) as_fn_append ac_config_targets " $1" 11320 ac_need_defaults=false ;; 11321 11322 esac 11323 shift 11324done 11325 11326ac_configure_extra_args= 11327 11328if $ac_cs_silent; then 11329 exec 6>/dev/null 11330 ac_configure_extra_args="$ac_configure_extra_args --silent" 11331fi 11332 11333_ACEOF 11334cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11335if \$ac_cs_recheck; then 11336 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11337 shift 11338 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11339 CONFIG_SHELL='$SHELL' 11340 export CONFIG_SHELL 11341 exec "\$@" 11342fi 11343 11344_ACEOF 11345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11346exec 5>>config.log 11347{ 11348 echo 11349 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11350## Running $as_me. ## 11351_ASBOX 11352 printf "%s\n" "$ac_log" 11353} >&5 11354 11355_ACEOF 11356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11357# 11358# INIT-COMMANDS 11359# 11360AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11361 11362_ACEOF 11363 11364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11365 11366# Handling of arguments. 11367for ac_config_target in $ac_config_targets 11368do 11369 case $ac_config_target in 11370 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 11371 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11372 "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;; 11373 "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;; 11374 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11375 11376 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11377 esac 11378done 11379 11380 11381# If the user did not use the arguments to specify the items to instantiate, 11382# then the envvar interface is used. Set only those that are not. 11383# We use the long form for the default assignment because of an extremely 11384# bizarre bug on SunOS 4.1.3. 11385if $ac_need_defaults; then 11386 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11387 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11388 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11389fi 11390 11391# Have a temporary directory for convenience. Make it in the build tree 11392# simply because there is no reason against having it here, and in addition, 11393# creating and moving files from /tmp can sometimes cause problems. 11394# Hook for its removal unless debugging. 11395# Note that there is a small window in which the directory will not be cleaned: 11396# after its creation but before its name has been assigned to `$tmp'. 11397$debug || 11398{ 11399 tmp= ac_tmp= 11400 trap 'exit_status=$? 11401 : "${ac_tmp:=$tmp}" 11402 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11403' 0 11404 trap 'as_fn_exit 1' 1 2 13 15 11405} 11406# Create a (secure) tmp directory for tmp files. 11407 11408{ 11409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11410 test -d "$tmp" 11411} || 11412{ 11413 tmp=./conf$$-$RANDOM 11414 (umask 077 && mkdir "$tmp") 11415} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11416ac_tmp=$tmp 11417 11418# Set up the scripts for CONFIG_FILES section. 11419# No need to generate them if there are no CONFIG_FILES. 11420# This happens for instance with `./config.status config.h'. 11421if test -n "$CONFIG_FILES"; then 11422 11423 11424ac_cr=`echo X | tr X '\015'` 11425# On cygwin, bash can eat \r inside `` if the user requested igncr. 11426# But we know of no other shell where ac_cr would be empty at this 11427# point, so we can use a bashism as a fallback. 11428if test "x$ac_cr" = x; then 11429 eval ac_cr=\$\'\\r\' 11430fi 11431ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11432if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11433 ac_cs_awk_cr='\\r' 11434else 11435 ac_cs_awk_cr=$ac_cr 11436fi 11437 11438echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11439_ACEOF 11440 11441 11442{ 11443 echo "cat >conf$$subs.awk <<_ACEOF" && 11444 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11445 echo "_ACEOF" 11446} >conf$$subs.sh || 11447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11448ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11449ac_delim='%!_!# ' 11450for ac_last_try in false false false false false :; do 11451 . ./conf$$subs.sh || 11452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11453 11454 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11455 if test $ac_delim_n = $ac_delim_num; then 11456 break 11457 elif $ac_last_try; then 11458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11459 else 11460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11461 fi 11462done 11463rm -f conf$$subs.sh 11464 11465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11466cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11467_ACEOF 11468sed -n ' 11469h 11470s/^/S["/; s/!.*/"]=/ 11471p 11472g 11473s/^[^!]*!// 11474:repl 11475t repl 11476s/'"$ac_delim"'$// 11477t delim 11478:nl 11479h 11480s/\(.\{148\}\)..*/\1/ 11481t more1 11482s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11483p 11484n 11485b repl 11486:more1 11487s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11488p 11489g 11490s/.\{148\}// 11491t nl 11492:delim 11493h 11494s/\(.\{148\}\)..*/\1/ 11495t more2 11496s/["\\]/\\&/g; s/^/"/; s/$/"/ 11497p 11498b 11499:more2 11500s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11501p 11502g 11503s/.\{148\}// 11504t delim 11505' <conf$$subs.awk | sed ' 11506/^[^""]/{ 11507 N 11508 s/\n// 11509} 11510' >>$CONFIG_STATUS || ac_write_fail=1 11511rm -f conf$$subs.awk 11512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11513_ACAWK 11514cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11515 for (key in S) S_is_set[key] = 1 11516 FS = "" 11517 11518} 11519{ 11520 line = $ 0 11521 nfields = split(line, field, "@") 11522 substed = 0 11523 len = length(field[1]) 11524 for (i = 2; i < nfields; i++) { 11525 key = field[i] 11526 keylen = length(key) 11527 if (S_is_set[key]) { 11528 value = S[key] 11529 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11530 len += length(value) + length(field[++i]) 11531 substed = 1 11532 } else 11533 len += 1 + keylen 11534 } 11535 11536 print line 11537} 11538 11539_ACAWK 11540_ACEOF 11541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11542if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11543 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11544else 11545 cat 11546fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11547 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11548_ACEOF 11549 11550# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11551# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11552# trailing colons and then remove the whole line if VPATH becomes empty 11553# (actually we leave an empty line to preserve line numbers). 11554if test "x$srcdir" = x.; then 11555 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11556h 11557s/// 11558s/^/:/ 11559s/[ ]*$/:/ 11560s/:\$(srcdir):/:/g 11561s/:\${srcdir}:/:/g 11562s/:@srcdir@:/:/g 11563s/^:*// 11564s/:*$// 11565x 11566s/\(=[ ]*\).*/\1/ 11567G 11568s/\n// 11569s/^[^=]*=[ ]*$// 11570}' 11571fi 11572 11573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11574fi # test -n "$CONFIG_FILES" 11575 11576# Set up the scripts for CONFIG_HEADERS section. 11577# No need to generate them if there are no CONFIG_HEADERS. 11578# This happens for instance with `./config.status Makefile'. 11579if test -n "$CONFIG_HEADERS"; then 11580cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11581BEGIN { 11582_ACEOF 11583 11584# Transform confdefs.h into an awk script `defines.awk', embedded as 11585# here-document in config.status, that substitutes the proper values into 11586# config.h.in to produce config.h. 11587 11588# Create a delimiter string that does not exist in confdefs.h, to ease 11589# handling of long lines. 11590ac_delim='%!_!# ' 11591for ac_last_try in false false :; do 11592 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11593 if test -z "$ac_tt"; then 11594 break 11595 elif $ac_last_try; then 11596 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11597 else 11598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11599 fi 11600done 11601 11602# For the awk script, D is an array of macro values keyed by name, 11603# likewise P contains macro parameters if any. Preserve backslash 11604# newline sequences. 11605 11606ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11607sed -n ' 11608s/.\{148\}/&'"$ac_delim"'/g 11609t rset 11610:rset 11611s/^[ ]*#[ ]*define[ ][ ]*/ / 11612t def 11613d 11614:def 11615s/\\$// 11616t bsnl 11617s/["\\]/\\&/g 11618s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11619D["\1"]=" \3"/p 11620s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11621d 11622:bsnl 11623s/["\\]/\\&/g 11624s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11625D["\1"]=" \3\\\\\\n"\\/p 11626t cont 11627s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11628t cont 11629d 11630:cont 11631n 11632s/.\{148\}/&'"$ac_delim"'/g 11633t clear 11634:clear 11635s/\\$// 11636t bsnlc 11637s/["\\]/\\&/g; s/^/"/; s/$/"/p 11638d 11639:bsnlc 11640s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11641b cont 11642' <confdefs.h | sed ' 11643s/'"$ac_delim"'/"\\\ 11644"/g' >>$CONFIG_STATUS || ac_write_fail=1 11645 11646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11647 for (key in D) D_is_set[key] = 1 11648 FS = "" 11649} 11650/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11651 line = \$ 0 11652 split(line, arg, " ") 11653 if (arg[1] == "#") { 11654 defundef = arg[2] 11655 mac1 = arg[3] 11656 } else { 11657 defundef = substr(arg[1], 2) 11658 mac1 = arg[2] 11659 } 11660 split(mac1, mac2, "(") #) 11661 macro = mac2[1] 11662 prefix = substr(line, 1, index(line, defundef) - 1) 11663 if (D_is_set[macro]) { 11664 # Preserve the white space surrounding the "#". 11665 print prefix "define", macro P[macro] D[macro] 11666 next 11667 } else { 11668 # Replace #undef with comments. This is necessary, for example, 11669 # in the case of _POSIX_SOURCE, which is predefined and required 11670 # on some systems where configure will not decide to define it. 11671 if (defundef == "undef") { 11672 print "/*", prefix defundef, macro, "*/" 11673 next 11674 } 11675 } 11676} 11677{ print } 11678_ACAWK 11679_ACEOF 11680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11681 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11682fi # test -n "$CONFIG_HEADERS" 11683 11684 11685eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11686shift 11687for ac_tag 11688do 11689 case $ac_tag in 11690 :[FHLC]) ac_mode=$ac_tag; continue;; 11691 esac 11692 case $ac_mode$ac_tag in 11693 :[FHL]*:*);; 11694 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11695 :[FH]-) ac_tag=-:-;; 11696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11697 esac 11698 ac_save_IFS=$IFS 11699 IFS=: 11700 set x $ac_tag 11701 IFS=$ac_save_IFS 11702 shift 11703 ac_file=$1 11704 shift 11705 11706 case $ac_mode in 11707 :L) ac_source=$1;; 11708 :[FH]) 11709 ac_file_inputs= 11710 for ac_f 11711 do 11712 case $ac_f in 11713 -) ac_f="$ac_tmp/stdin";; 11714 *) # Look for the file first in the build tree, then in the source tree 11715 # (if the path is not absolute). The absolute path cannot be DOS-style, 11716 # because $ac_f cannot contain `:'. 11717 test -f "$ac_f" || 11718 case $ac_f in 11719 [\\/$]*) false;; 11720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11721 esac || 11722 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11723 esac 11724 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11725 as_fn_append ac_file_inputs " '$ac_f'" 11726 done 11727 11728 # Let's still pretend it is `configure' which instantiates (i.e., don't 11729 # use $as_me), people would be surprised to read: 11730 # /* config.h. Generated by config.status. */ 11731 configure_input='Generated from '` 11732 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11733 `' by configure.' 11734 if test x"$ac_file" != x-; then 11735 configure_input="$ac_file. $configure_input" 11736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11737printf "%s\n" "$as_me: creating $ac_file" >&6;} 11738 fi 11739 # Neutralize special characters interpreted by sed in replacement strings. 11740 case $configure_input in #( 11741 *\&* | *\|* | *\\* ) 11742 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 11743 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11744 *) ac_sed_conf_input=$configure_input;; 11745 esac 11746 11747 case $ac_tag in 11748 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11750 esac 11751 ;; 11752 esac 11753 11754 ac_dir=`$as_dirname -- "$ac_file" || 11755$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11756 X"$ac_file" : 'X\(//\)[^/]' \| \ 11757 X"$ac_file" : 'X\(//\)$' \| \ 11758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11759printf "%s\n" X"$ac_file" | 11760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11761 s//\1/ 11762 q 11763 } 11764 /^X\(\/\/\)[^/].*/{ 11765 s//\1/ 11766 q 11767 } 11768 /^X\(\/\/\)$/{ 11769 s//\1/ 11770 q 11771 } 11772 /^X\(\/\).*/{ 11773 s//\1/ 11774 q 11775 } 11776 s/.*/./; q'` 11777 as_dir="$ac_dir"; as_fn_mkdir_p 11778 ac_builddir=. 11779 11780case "$ac_dir" in 11781.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11782*) 11783 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 11784 # A ".." for each directory in $ac_dir_suffix. 11785 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11786 case $ac_top_builddir_sub in 11787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11789 esac ;; 11790esac 11791ac_abs_top_builddir=$ac_pwd 11792ac_abs_builddir=$ac_pwd$ac_dir_suffix 11793# for backward compatibility: 11794ac_top_builddir=$ac_top_build_prefix 11795 11796case $srcdir in 11797 .) # We are building in place. 11798 ac_srcdir=. 11799 ac_top_srcdir=$ac_top_builddir_sub 11800 ac_abs_top_srcdir=$ac_pwd ;; 11801 [\\/]* | ?:[\\/]* ) # Absolute name. 11802 ac_srcdir=$srcdir$ac_dir_suffix; 11803 ac_top_srcdir=$srcdir 11804 ac_abs_top_srcdir=$srcdir ;; 11805 *) # Relative name. 11806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11807 ac_top_srcdir=$ac_top_build_prefix$srcdir 11808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11809esac 11810ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11811 11812 11813 case $ac_mode in 11814 :F) 11815 # 11816 # CONFIG_FILE 11817 # 11818 11819 case $INSTALL in 11820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11821 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11822 esac 11823 ac_MKDIR_P=$MKDIR_P 11824 case $MKDIR_P in 11825 [\\/$]* | ?:[\\/]* ) ;; 11826 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11827 esac 11828_ACEOF 11829 11830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11831# If the template does not know about datarootdir, expand it. 11832# FIXME: This hack should be removed a few years after 2.60. 11833ac_datarootdir_hack=; ac_datarootdir_seen= 11834ac_sed_dataroot=' 11835/datarootdir/ { 11836 p 11837 q 11838} 11839/@datadir@/p 11840/@docdir@/p 11841/@infodir@/p 11842/@localedir@/p 11843/@mandir@/p' 11844case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11845*datarootdir*) ac_datarootdir_seen=yes;; 11846*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11848printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11849_ACEOF 11850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11851 ac_datarootdir_hack=' 11852 s&@datadir@&$datadir&g 11853 s&@docdir@&$docdir&g 11854 s&@infodir@&$infodir&g 11855 s&@localedir@&$localedir&g 11856 s&@mandir@&$mandir&g 11857 s&\\\${datarootdir}&$datarootdir&g' ;; 11858esac 11859_ACEOF 11860 11861# Neutralize VPATH when `$srcdir' = `.'. 11862# Shell code in configure.ac might set extrasub. 11863# FIXME: do we really want to maintain this feature? 11864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11865ac_sed_extra="$ac_vpsub 11866$extrasub 11867_ACEOF 11868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11869:t 11870/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11871s|@configure_input@|$ac_sed_conf_input|;t t 11872s&@top_builddir@&$ac_top_builddir_sub&;t t 11873s&@top_build_prefix@&$ac_top_build_prefix&;t t 11874s&@srcdir@&$ac_srcdir&;t t 11875s&@abs_srcdir@&$ac_abs_srcdir&;t t 11876s&@top_srcdir@&$ac_top_srcdir&;t t 11877s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11878s&@builddir@&$ac_builddir&;t t 11879s&@abs_builddir@&$ac_abs_builddir&;t t 11880s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11881s&@INSTALL@&$ac_INSTALL&;t t 11882s&@MKDIR_P@&$ac_MKDIR_P&;t t 11883$ac_datarootdir_hack 11884" 11885eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11886 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11887 11888test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11889 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11891 "$ac_tmp/out"`; test -z "$ac_out"; } && 11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11893which seems to be undefined. Please make sure it is defined" >&5 11894printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11895which seems to be undefined. Please make sure it is defined" >&2;} 11896 11897 rm -f "$ac_tmp/stdin" 11898 case $ac_file in 11899 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11900 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11901 esac \ 11902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11903 ;; 11904 :H) 11905 # 11906 # CONFIG_HEADER 11907 # 11908 if test x"$ac_file" != x-; then 11909 { 11910 printf "%s\n" "/* $configure_input */" >&1 \ 11911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11912 } >"$ac_tmp/config.h" \ 11913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11914 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11916printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 11917 else 11918 rm -f "$ac_file" 11919 mv "$ac_tmp/config.h" "$ac_file" \ 11920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11921 fi 11922 else 11923 printf "%s\n" "/* $configure_input */" >&1 \ 11924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11925 || as_fn_error $? "could not create -" "$LINENO" 5 11926 fi 11927# Compute "$ac_file"'s index in $config_headers. 11928_am_arg="$ac_file" 11929_am_stamp_count=1 11930for _am_header in $config_headers :; do 11931 case $_am_header in 11932 $_am_arg | $_am_arg:* ) 11933 break ;; 11934 * ) 11935 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11936 esac 11937done 11938echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11939$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11940 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11941 X"$_am_arg" : 'X\(//\)$' \| \ 11942 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11943printf "%s\n" X"$_am_arg" | 11944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11945 s//\1/ 11946 q 11947 } 11948 /^X\(\/\/\)[^/].*/{ 11949 s//\1/ 11950 q 11951 } 11952 /^X\(\/\/\)$/{ 11953 s//\1/ 11954 q 11955 } 11956 /^X\(\/\).*/{ 11957 s//\1/ 11958 q 11959 } 11960 s/.*/./; q'`/stamp-h$_am_stamp_count 11961 ;; 11962 11963 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11964printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 11965 ;; 11966 esac 11967 11968 11969 case $ac_file$ac_mode in 11970 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11971 # Older Autoconf quotes --file arguments for eval, but not when files 11972 # are listed without --file. Let's play safe and only enable the eval 11973 # if we detect the quoting. 11974 # TODO: see whether this extra hack can be removed once we start 11975 # requiring Autoconf 2.70 or later. 11976 case $CONFIG_FILES in #( 11977 *\'*) : 11978 eval set x "$CONFIG_FILES" ;; #( 11979 *) : 11980 set x $CONFIG_FILES ;; #( 11981 *) : 11982 ;; 11983esac 11984 shift 11985 # Used to flag and report bootstrapping failures. 11986 am_rc=0 11987 for am_mf 11988 do 11989 # Strip MF so we end up with the name of the file. 11990 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 11991 # Check whether this is an Automake generated Makefile which includes 11992 # dependency-tracking related rules and includes. 11993 # Grep'ing the whole file directly is not great: AIX grep has a line 11994 # limit of 2048, but all sed's we know have understand at least 4000. 11995 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 11996 || continue 11997 am_dirpart=`$as_dirname -- "$am_mf" || 11998$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11999 X"$am_mf" : 'X\(//\)[^/]' \| \ 12000 X"$am_mf" : 'X\(//\)$' \| \ 12001 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12002printf "%s\n" X"$am_mf" | 12003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12004 s//\1/ 12005 q 12006 } 12007 /^X\(\/\/\)[^/].*/{ 12008 s//\1/ 12009 q 12010 } 12011 /^X\(\/\/\)$/{ 12012 s//\1/ 12013 q 12014 } 12015 /^X\(\/\).*/{ 12016 s//\1/ 12017 q 12018 } 12019 s/.*/./; q'` 12020 am_filepart=`$as_basename -- "$am_mf" || 12021$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12022 X"$am_mf" : 'X\(//\)$' \| \ 12023 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12024printf "%s\n" X/"$am_mf" | 12025 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12026 s//\1/ 12027 q 12028 } 12029 /^X\/\(\/\/\)$/{ 12030 s//\1/ 12031 q 12032 } 12033 /^X\/\(\/\).*/{ 12034 s//\1/ 12035 q 12036 } 12037 s/.*/./; q'` 12038 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12039 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12040 | $MAKE -f - am--depfiles" >&5 12041 (cd "$am_dirpart" \ 12042 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12043 | $MAKE -f - am--depfiles) >&5 2>&5 12044 ac_status=$? 12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12046 (exit $ac_status); } || am_rc=$? 12047 done 12048 if test $am_rc -ne 0; then 12049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12051as_fn_error $? "Something went wrong bootstrapping makefile fragments 12052 for automatic dependency tracking. If GNU make was not used, consider 12053 re-running the configure script with MAKE=\"gmake\" (or whatever is 12054 necessary). You can also try re-running configure with the 12055 '--disable-dependency-tracking' option to at least be able to build 12056 the package (albeit without support for automatic dependency tracking). 12057See \`config.log' for more details" "$LINENO" 5; } 12058 fi 12059 { am_dirpart=; unset am_dirpart;} 12060 { am_filepart=; unset am_filepart;} 12061 { am_mf=; unset am_mf;} 12062 { am_rc=; unset am_rc;} 12063 rm -f conftest-deps.mk 12064} 12065 ;; 12066 12067 esac 12068done # for ac_tag 12069 12070 12071as_fn_exit 0 12072_ACEOF 12073ac_clean_files=$ac_clean_files_save 12074 12075test $ac_write_fail = 0 || 12076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12077 12078 12079# configure is writing to config.log, and then calls config.status. 12080# config.status does its own redirection, appending to config.log. 12081# Unfortunately, on DOS this fails, as config.log is still kept open 12082# by configure, so config.status won't be able to write to it; its 12083# output is simply discarded. So we exec the FD to /dev/null, 12084# effectively closing config.log, so it can be properly (re)opened and 12085# appended to by config.status. When coming back to configure, we 12086# need to make the FD available again. 12087if test "$no_create" != yes; then 12088 ac_cs_success=: 12089 ac_config_status_args= 12090 test "$silent" = yes && 12091 ac_config_status_args="$ac_config_status_args --quiet" 12092 exec 5>/dev/null 12093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12094 exec 5>>config.log 12095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12096 # would make configure fail if this is the last instruction. 12097 $ac_cs_success || as_fn_exit 1 12098fi 12099if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12101printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12102fi 12103 12104 12105