1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for strace 4.25. 4# 5# Report bugs to <strace-devel@lists.strace.io>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13# 14# Copyright (c) 1999-2018 The strace developers. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139# Use a proper internal environment variable to ensure we don't fall 140 # into an infinite loop, continuously re-executing ourselves. 141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 142 _as_can_reexec=no; export _as_can_reexec; 143 # We cannot yet assume a decent shell, so we have to provide a 144# neutralization value for shells without unset; and this also 145# works around shells that cannot unset nonexistent variables. 146# Preserve -v and -x to the replacement shell. 147BASH_ENV=/dev/null 148ENV=/dev/null 149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 150case $- in # (((( 151 *v*x* | *x*v* ) as_opts=-vx ;; 152 *v* ) as_opts=-v ;; 153 *x* ) as_opts=-x ;; 154 * ) as_opts= ;; 155esac 156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 157# Admittedly, this is quite paranoid, since all the known shells bail 158# out after a failed `exec'. 159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 160as_fn_exit 255 161 fi 162 # We don't want this to propagate to other subprocesses. 163 { _as_can_reexec=; unset _as_can_reexec;} 164if test "x$CONFIG_SHELL" = x; then 165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 166 emulate sh 167 NULLCMD=: 168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 169 # is contrary to our usage. Disable this feature. 170 alias -g '\${1+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 193 194else 195 exitcode=1; echo positional parameters were not saved. 196fi 197test x\$exitcode = x0 || exit 1 198test -x / || exit 1" 199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 203test \$(( 1 + 1 )) = 2 || exit 1" 204 if (eval "$as_required") 2>/dev/null; then : 205 as_have_required=yes 206else 207 as_have_required=no 208fi 209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 210 211else 212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213as_found=false 214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 215do 216 IFS=$as_save_IFS 217 test -z "$as_dir" && as_dir=. 218 as_found=: 219 case $as_dir in #( 220 /*) 221 for as_base in sh bash ksh sh5; do 222 # Try only shells that exist, to save several forks. 223 as_shell=$as_dir/$as_base 224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 228 break 2 229fi 230fi 231 done;; 232 esac 233 as_found=false 234done 235$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 237 CONFIG_SHELL=$SHELL as_have_required=yes 238fi; } 239IFS=$as_save_IFS 240 241 242 if test "x$CONFIG_SHELL" != x; then : 243 export CONFIG_SHELL 244 # We cannot yet assume a decent shell, so we have to provide a 245# neutralization value for shells without unset; and this also 246# works around shells that cannot unset nonexistent variables. 247# Preserve -v and -x to the replacement shell. 248BASH_ENV=/dev/null 249ENV=/dev/null 250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 251case $- in # (((( 252 *v*x* | *x*v* ) as_opts=-vx ;; 253 *v* ) as_opts=-v ;; 254 *x* ) as_opts=-x ;; 255 * ) as_opts= ;; 256esac 257exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 258# Admittedly, this is quite paranoid, since all the known shells bail 259# out after a failed `exec'. 260$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 261exit 255 262fi 263 264 if test x$as_have_required = xno; then : 265 $as_echo "$0: This script requires a shell more modern than all" 266 $as_echo "$0: the shells that I found on your system." 267 if test x${ZSH_VERSION+set} = xset ; then 268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 269 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 270 else 271 $as_echo "$0: Please tell bug-autoconf@gnu.org and 272$0: strace-devel@lists.strace.io about your system, 273$0: including any error possibly output before this 274$0: message. Then install a modern shell, or manually run 275$0: the script under such a shell if you do have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316 317# as_fn_mkdir_p 318# ------------- 319# Create "$as_dir" as a directory, including parents if necessary. 320as_fn_mkdir_p () 321{ 322 323 case $as_dir in #( 324 -*) as_dir=./$as_dir;; 325 esac 326 test -d "$as_dir" || eval $as_mkdir_p || { 327 as_dirs= 328 while :; do 329 case $as_dir in #( 330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 331 *) as_qdir=$as_dir;; 332 esac 333 as_dirs="'$as_qdir' $as_dirs" 334 as_dir=`$as_dirname -- "$as_dir" || 335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 336 X"$as_dir" : 'X\(//\)[^/]' \| \ 337 X"$as_dir" : 'X\(//\)$' \| \ 338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 339$as_echo X"$as_dir" | 340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 341 s//\1/ 342 q 343 } 344 /^X\(\/\/\)[^/].*/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\).*/{ 353 s//\1/ 354 q 355 } 356 s/.*/./; q'` 357 test -d "$as_dir" && break 358 done 359 test -z "$as_dirs" || eval "mkdir $as_dirs" 360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 361 362 363} # as_fn_mkdir_p 364 365# as_fn_executable_p FILE 366# ----------------------- 367# Test if FILE is an executable regular file. 368as_fn_executable_p () 369{ 370 test -f "$1" && test -x "$1" 371} # as_fn_executable_p 372# as_fn_append VAR VALUE 373# ---------------------- 374# Append the text in VALUE to the end of the definition contained in VAR. Take 375# advantage of any shell optimizations that allow amortized linear growth over 376# repeated appends, instead of the typical quadratic growth present in naive 377# implementations. 378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 379 eval 'as_fn_append () 380 { 381 eval $1+=\$2 382 }' 383else 384 as_fn_append () 385 { 386 eval $1=\$$1\$2 387 } 388fi # as_fn_append 389 390# as_fn_arith ARG... 391# ------------------ 392# Perform arithmetic evaluation on the ARGs, and store the result in the 393# global $as_val. Take advantage of shells that can avoid forks. The arguments 394# must be portable across $(()) and expr. 395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 396 eval 'as_fn_arith () 397 { 398 as_val=$(( $* )) 399 }' 400else 401 as_fn_arith () 402 { 403 as_val=`expr "$@" || test $? -eq 1` 404 } 405fi # as_fn_arith 406 407 408# as_fn_error STATUS ERROR [LINENO LOG_FD] 409# ---------------------------------------- 410# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 411# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 412# script with STATUS, using 1 if that was 0. 413as_fn_error () 414{ 415 as_status=$1; test $as_status -eq 0 && as_status=1 416 if test "$4"; then 417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 419 fi 420 $as_echo "$as_me: error: $2" >&2 421 as_fn_exit $as_status 422} # as_fn_error 423 424if expr a : '\(a\)' >/dev/null 2>&1 && 425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 426 as_expr=expr 427else 428 as_expr=false 429fi 430 431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 432 as_basename=basename 433else 434 as_basename=false 435fi 436 437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 438 as_dirname=dirname 439else 440 as_dirname=false 441fi 442 443as_me=`$as_basename -- "$0" || 444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 445 X"$0" : 'X\(//\)$' \| \ 446 X"$0" : 'X\(/\)' \| . 2>/dev/null || 447$as_echo X/"$0" | 448 sed '/^.*\/\([^/][^/]*\)\/*$/{ 449 s//\1/ 450 q 451 } 452 /^X\/\(\/\/\)$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\).*/{ 457 s//\1/ 458 q 459 } 460 s/.*/./; q'` 461 462# Avoid depending upon Character Ranges. 463as_cr_letters='abcdefghijklmnopqrstuvwxyz' 464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 465as_cr_Letters=$as_cr_letters$as_cr_LETTERS 466as_cr_digits='0123456789' 467as_cr_alnum=$as_cr_Letters$as_cr_digits 468 469 470 as_lineno_1=$LINENO as_lineno_1a=$LINENO 471 as_lineno_2=$LINENO as_lineno_2a=$LINENO 472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 475 sed -n ' 476 p 477 /[$]LINENO/= 478 ' <$as_myself | 479 sed ' 480 s/[$]LINENO.*/&-/ 481 t lineno 482 b 483 :lineno 484 N 485 :loop 486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 487 t loop 488 s/-\n.*// 489 ' >$as_me.lineno && 490 chmod +x "$as_me.lineno" || 491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 492 493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 494 # already done that, so ensure we don't try to do so again and fall 495 # in an infinite loop. This has already happened in practice. 496 _as_can_reexec=no; export _as_can_reexec 497 # Don't try to exec as it changes $[0], causing all sort of problems 498 # (the dirname of $[0] is not the place where we might find the 499 # original and so on. Autoconf is especially sensitive to this). 500 . "./$as_me.lineno" 501 # Exit status is that of the last command. 502 exit 503} 504 505ECHO_C= ECHO_N= ECHO_T= 506case `echo -n x` in #((((( 507-n*) 508 case `echo 'xy\c'` in 509 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 510 xy) ECHO_C='\c';; 511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 512 ECHO_T=' ';; 513 esac;; 514*) 515 ECHO_N='-n';; 516esac 517 518rm -f conf$$ conf$$.exe conf$$.file 519if test -d conf$$.dir; then 520 rm -f conf$$.dir/conf$$.file 521else 522 rm -f conf$$.dir 523 mkdir conf$$.dir 2>/dev/null 524fi 525if (echo >conf$$.file) 2>/dev/null; then 526 if ln -s conf$$.file conf$$ 2>/dev/null; then 527 as_ln_s='ln -s' 528 # ... but there are two gotchas: 529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 531 # In both cases, we have to default to `cp -pR'. 532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 533 as_ln_s='cp -pR' 534 elif ln conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s=ln 536 else 537 as_ln_s='cp -pR' 538 fi 539else 540 as_ln_s='cp -pR' 541fi 542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 543rmdir conf$$.dir 2>/dev/null 544 545if mkdir -p . 2>/dev/null; then 546 as_mkdir_p='mkdir -p "$as_dir"' 547else 548 test -d ./-p && rmdir ./-p 549 as_mkdir_p=false 550fi 551 552as_test_x='test -x' 553as_executable_p=as_fn_executable_p 554 555# Sed expression to map a string onto a valid CPP name. 556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 557 558# Sed expression to map a string onto a valid variable name. 559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 560 561 562test -n "$DJDIR" || exec 7<&0 </dev/null 563exec 6>&1 564 565# Name of the host. 566# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 567# so uname gets run too. 568ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 569 570# 571# Initializations. 572# 573ac_default_prefix=/usr/local 574ac_clean_files= 575ac_config_libobj_dir=. 576LIBOBJS= 577cross_compiling=no 578subdirs= 579MFLAGS= 580MAKEFLAGS= 581 582# Identity of this package. 583PACKAGE_NAME='strace' 584PACKAGE_TARNAME='strace' 585PACKAGE_VERSION='4.25' 586PACKAGE_STRING='strace 4.25' 587PACKAGE_BUGREPORT='strace-devel@lists.strace.io' 588PACKAGE_URL='https://strace.io' 589 590ac_unique_file="strace.c" 591# Factoring default headers for most tests. 592ac_includes_default="\ 593#include <stdio.h> 594#ifdef HAVE_SYS_TYPES_H 595# include <sys/types.h> 596#endif 597#ifdef HAVE_SYS_STAT_H 598# include <sys/stat.h> 599#endif 600#ifdef STDC_HEADERS 601# include <stdlib.h> 602# include <stddef.h> 603#else 604# ifdef HAVE_STDLIB_H 605# include <stdlib.h> 606# endif 607#endif 608#ifdef HAVE_STRING_H 609# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 610# include <memory.h> 611# endif 612# include <string.h> 613#endif 614#ifdef HAVE_STRINGS_H 615# include <strings.h> 616#endif 617#ifdef HAVE_INTTYPES_H 618# include <inttypes.h> 619#endif 620#ifdef HAVE_STDINT_H 621# include <stdint.h> 622#endif 623#ifdef HAVE_UNISTD_H 624# include <unistd.h> 625#endif" 626 627ac_subst_vars='am__EXEEXT_FALSE 628am__EXEEXT_TRUE 629LTLIBOBJS 630LIBOBJS 631VALGRIND_CHECK_RULES 632valgrind_enabled_tools 633valgrind_tools 634ENABLE_VALGRIND_sgcheck 635ENABLE_VALGRIND_drd 636ENABLE_VALGRIND_helgrind 637ENABLE_VALGRIND_memcheck 638VALGRIND_ENABLED 639VALGRIND_ENABLED_FALSE 640VALGRIND_ENABLED_TRUE 641VALGRIND 642HAVE_MX32_MPERS_FALSE 643HAVE_MX32_MPERS_TRUE 644HAVE_MX32_RUNTIME_FALSE 645HAVE_MX32_RUNTIME_TRUE 646HAVE_M32_MPERS_FALSE 647HAVE_M32_MPERS_TRUE 648HAVE_M32_RUNTIME_FALSE 649HAVE_M32_RUNTIME_TRUE 650USE_DEMANGLE_FALSE 651USE_DEMANGLE_TRUE 652libiberty_CPPFLAGS 653libiberty_LDFLAGS 654libiberty_LIBS 655USE_LIBUNWIND_FALSE 656USE_LIBUNWIND_TRUE 657USE_LIBDW_FALSE 658USE_LIBDW_TRUE 659ENABLE_STACKTRACE_FALSE 660ENABLE_STACKTRACE_TRUE 661libunwind_CPPFLAGS 662libunwind_LDFLAGS 663libunwind_LIBS 664libdw_LIBS 665libdw_LDFLAGS 666libdw_CFLAGS 667libdw_CPPFLAGS 668READELF 669PERL 670mq_LIBS 671clock_LIBS 672timer_LIBS 673dl_LIBS 674SIZEOF_KERNEL_LONG_T 675SIZEOF_LONG 676MIPS_ABI 677arch_native 678cc_flags_mx32 679cc_flags_m32 680arch_mx32 681arch_m32 682arch 683MANPAGE_DATE 684COPYRIGHT_YEAR 685CODE_COVERAGE_RULES 686CODE_COVERAGE_LDFLAGS 687CODE_COVERAGE_LIBS 688CODE_COVERAGE_CXXFLAGS 689CODE_COVERAGE_CFLAGS 690CODE_COVERAGE_CPPFLAGS 691GENHTML 692LCOV 693GCOV 694CODE_COVERAGE_ENABLED 695CODE_COVERAGE_ENABLED_FALSE 696CODE_COVERAGE_ENABLED_TRUE 697SED 698EGREP 699GREP 700RANLIB 701WARN_CFLAGS_FOR_BUILD 702LDFLAGS_FOR_BUILD 703CPPFLAGS_FOR_BUILD 704CFLAGS_FOR_BUILD 705BUILD_OBJEXT 706BUILD_EXEEXT 707CPP_FOR_BUILD 708ac_ct_CC_FOR_BUILD 709CC_FOR_BUILD 710WARN_CFLAGS 711CPP 712am__fastdepCC_FALSE 713am__fastdepCC_TRUE 714CCDEPMODE 715am__nodep 716AMDEPBACKSLASH 717AMDEP_FALSE 718AMDEP_TRUE 719am__quote 720am__include 721DEPDIR 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729DEB_CHANGELOGTIME 730RPM_CHANGELOGTIME 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739MAINT 740MAINTAINER_MODE_FALSE 741MAINTAINER_MODE_TRUE 742AM_BACKSLASH 743AM_DEFAULT_VERBOSITY 744AM_DEFAULT_V 745AM_V 746am__untar 747am__tar 748AMTAR 749am__leading_dot 750SET_MAKE 751AWK 752mkdir_p 753MKDIR_P 754INSTALL_STRIP_PROGRAM 755STRIP 756install_sh 757MAKEINFO 758AUTOHEADER 759AUTOMAKE 760AUTOCONF 761ACLOCAL 762VERSION 763PACKAGE 764CYGPATH_W 765am__isrc 766INSTALL_DATA 767INSTALL_SCRIPT 768INSTALL_PROGRAM 769target_alias 770host_alias 771build_alias 772LIBS 773ECHO_T 774ECHO_N 775ECHO_C 776DEFS 777mandir 778localedir 779libdir 780psdir 781pdfdir 782dvidir 783htmldir 784infodir 785docdir 786oldincludedir 787includedir 788localstatedir 789sharedstatedir 790sysconfdir 791datadir 792datarootdir 793libexecdir 794sbindir 795bindir 796program_transform_name 797prefix 798exec_prefix 799PACKAGE_URL 800PACKAGE_BUGREPORT 801PACKAGE_STRING 802PACKAGE_VERSION 803PACKAGE_TARNAME 804PACKAGE_NAME 805PATH_SEPARATOR 806SHELL' 807ac_subst_files='' 808ac_user_opts=' 809enable_option_checking 810enable_silent_rules 811enable_maintainer_mode 812enable_dependency_tracking 813enable_gcc_Werror 814with_gcov 815enable_code_coverage 816enable_arm_oabi 817enable_stacktrace 818with_libdw 819with_libunwind 820with_libiberty 821enable_mpers 822enable_valgrind 823enable_valgrind_memcheck 824enable_valgrind_helgrind 825enable_valgrind_drd 826enable_valgrind_sgcheck 827' 828 ac_precious_vars='build_alias 829host_alias 830target_alias 831CC 832CFLAGS 833LDFLAGS 834LIBS 835CPPFLAGS 836CPP' 837 838 839# Initialize some variables set by options. 840ac_init_help= 841ac_init_version=false 842ac_unrecognized_opts= 843ac_unrecognized_sep= 844# The variables have the same names as the options, with 845# dashes changed to underlines. 846cache_file=/dev/null 847exec_prefix=NONE 848no_create= 849no_recursion= 850prefix=NONE 851program_prefix=NONE 852program_suffix=NONE 853program_transform_name=s,x,x, 854silent= 855site= 856srcdir= 857verbose= 858x_includes=NONE 859x_libraries=NONE 860 861# Installation directory options. 862# These are left unexpanded so users can "make install exec_prefix=/foo" 863# and all the variables that are supposed to be based on exec_prefix 864# by default will actually change. 865# Use braces instead of parens because sh, perl, etc. also accept them. 866# (The list follows the same order as the GNU Coding Standards.) 867bindir='${exec_prefix}/bin' 868sbindir='${exec_prefix}/sbin' 869libexecdir='${exec_prefix}/libexec' 870datarootdir='${prefix}/share' 871datadir='${datarootdir}' 872sysconfdir='${prefix}/etc' 873sharedstatedir='${prefix}/com' 874localstatedir='${prefix}/var' 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 # Accept the important Cygnus configure options, so we can diagnose typos. 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures strace 4.25 to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/strace] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of strace 4.25:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --enable-maintainer-mode 1458 enable make rules and dependencies not useful (and 1459 sometimes confusing) to the casual installer 1460 --enable-dependency-tracking 1461 do not reject slow dependency extractors 1462 --disable-dependency-tracking 1463 speeds up one-time build 1464 --enable-gcc-Werror turn on gcc's -Werror option 1465 --enable-code-coverage Whether to enable code coverage support 1466 --enable-arm-oabi enable OABI support on ARM EABI 1467 --enable-stacktrace=yes|no|check 1468 whether to enable stack tracing support, default is 1469 check 1470 --enable-mpers=yes|no|check|m32|mx32 1471 whether to enable multiple personalities support 1472 required for proper decoding of structures used by 1473 tracees with personalities that differ from the 1474 personality of strace, default is yes. 1475 --enable-valgrind Whether to enable Valgrind on the unit tests 1476 --disable-valgrind-memcheck 1477 Whether to skip memcheck during the Valgrind tests 1478 --disable-valgrind-helgrind 1479 Whether to skip helgrind during the Valgrind tests 1480 --disable-valgrind-drd Whether to skip drd during the Valgrind tests 1481 --enable-valgrind-sgcheck 1482 Whether to use sgcheck during the Valgrind tests 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). 1488 --with-libdw use libdw to implement stack tracing support 1489 1490 --with-libunwind use libunwind to implement stack tracing support 1491 --with-libiberty use libiberty to demangle symbols in stack trace 1492 1493Some influential environment variables: 1494 CC C compiler command 1495 CFLAGS C compiler flags 1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1497 nonstandard directory <lib dir> 1498 LIBS libraries to pass to the linker, e.g. -l<library> 1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1500 you have headers in a nonstandard directory <include dir> 1501 CPP C preprocessor 1502 1503Use these variables to override the choices made by `configure' or to help 1504it to find libraries and programs with nonstandard names/locations. 1505 1506Report bugs to <strace-devel@lists.strace.io>. 1507strace home page: <https://strace.io>. 1508_ACEOF 1509ac_status=$? 1510fi 1511 1512if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || 1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1517 continue 1518 ac_builddir=. 1519 1520case "$ac_dir" in 1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522*) 1523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1524 # A ".." for each directory in $ac_dir_suffix. 1525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1526 case $ac_top_builddir_sub in 1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1529 esac ;; 1530esac 1531ac_abs_top_builddir=$ac_pwd 1532ac_abs_builddir=$ac_pwd$ac_dir_suffix 1533# for backward compatibility: 1534ac_top_builddir=$ac_top_build_prefix 1535 1536case $srcdir in 1537 .) # We are building in place. 1538 ac_srcdir=. 1539 ac_top_srcdir=$ac_top_builddir_sub 1540 ac_abs_top_srcdir=$ac_pwd ;; 1541 [\\/]* | ?:[\\/]* ) # Absolute name. 1542 ac_srcdir=$srcdir$ac_dir_suffix; 1543 ac_top_srcdir=$srcdir 1544 ac_abs_top_srcdir=$srcdir ;; 1545 *) # Relative name. 1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1547 ac_top_srcdir=$ac_top_build_prefix$srcdir 1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1549esac 1550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1551 1552 cd "$ac_dir" || { ac_status=$?; continue; } 1553 # Check for guested configure. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570strace configure 4.25 1571generated by GNU Autoconf 2.69 1572 1573Copyright (C) 2012 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576 1577Copyright (c) 1999-2018 The strace developers. 1578_ACEOF 1579 exit 1580fi 1581 1582## ------------------------ ## 1583## Autoconf initialization. ## 1584## ------------------------ ## 1585 1586# ac_fn_c_try_compile LINENO 1587# -------------------------- 1588# Try to compile conftest.$ac_ext, and return whether this succeeded. 1589ac_fn_c_try_compile () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 rm -f conftest.$ac_objext 1593 if { { ac_try="$ac_compile" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_compile") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } && { 1609 test -z "$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 } && test -s conftest.$ac_objext; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_compile 1623 1624# ac_fn_c_try_cpp LINENO 1625# ---------------------- 1626# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1627ac_fn_c_try_cpp () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 if { { ac_try="$ac_cpp conftest.$ac_ext" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } > conftest.i && { 1646 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_cpp 1660 1661# ac_fn_c_try_link LINENO 1662# ----------------------- 1663# Try to link conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_link () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 rm -f conftest.$ac_objext conftest$ac_exeext 1668 if { { ac_try="$ac_link" 1669case "(($ac_try" in 1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1671 *) ac_try_echo=$ac_try;; 1672esac 1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1674$as_echo "$ac_try_echo"; } >&5 1675 (eval "$ac_link") 2>conftest.err 1676 ac_status=$? 1677 if test -s conftest.err; then 1678 grep -v '^ *+' conftest.err >conftest.er1 1679 cat conftest.er1 >&5 1680 mv -f conftest.er1 conftest.err 1681 fi 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { 1684 test -z "$ac_c_werror_flag" || 1685 test ! -s conftest.err 1686 } && test -s conftest$ac_exeext && { 1687 test "$cross_compiling" = yes || 1688 test -x conftest$ac_exeext 1689 }; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706 1707# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1708# ------------------------------------------------------- 1709# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1710# the include files in INCLUDES and setting the cache variable VAR 1711# accordingly. 1712ac_fn_c_check_header_mongrel () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if eval \${$3+:} false; then : 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1717$as_echo_n "checking for $2... " >&6; } 1718if eval \${$3+:} false; then : 1719 $as_echo_n "(cached) " >&6 1720fi 1721eval ac_res=\$$3 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1723$as_echo "$ac_res" >&6; } 1724else 1725 # Is the header compilable? 1726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1727$as_echo_n "checking $2 usability... " >&6; } 1728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729/* end confdefs.h. */ 1730$4 1731#include <$2> 1732_ACEOF 1733if ac_fn_c_try_compile "$LINENO"; then : 1734 ac_header_compiler=yes 1735else 1736 ac_header_compiler=no 1737fi 1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1740$as_echo "$ac_header_compiler" >&6; } 1741 1742# Is the header present? 1743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1744$as_echo_n "checking $2 presence... " >&6; } 1745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747#include <$2> 1748_ACEOF 1749if ac_fn_c_try_cpp "$LINENO"; then : 1750 ac_header_preproc=yes 1751else 1752 ac_header_preproc=no 1753fi 1754rm -f conftest.err conftest.i conftest.$ac_ext 1755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1756$as_echo "$ac_header_preproc" >&6; } 1757 1758# So? What about this header? 1759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1760 yes:no: ) 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1762$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1764$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1765 ;; 1766 no:yes:* ) 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1768$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1770$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1772$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1774$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1776$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1777( $as_echo "## ------------------------------------------- ## 1778## Report this to strace-devel@lists.strace.io ## 1779## ------------------------------------------- ##" 1780 ) | sed "s/^/$as_me: WARNING: /" >&2 1781 ;; 1782esac 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1784$as_echo_n "checking for $2... " >&6; } 1785if eval \${$3+:} false; then : 1786 $as_echo_n "(cached) " >&6 1787else 1788 eval "$3=\$ac_header_compiler" 1789fi 1790eval ac_res=\$$3 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792$as_echo "$ac_res" >&6; } 1793fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 1796} # ac_fn_c_check_header_mongrel 1797 1798# ac_fn_c_try_run LINENO 1799# ---------------------- 1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1801# that executables *can* be run. 1802ac_fn_c_try_run () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 if { { ac_try="$ac_link" 1806case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_link") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1816 { { case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_try") 2>&5 1823 ac_status=$? 1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1825 test $ac_status = 0; }; }; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: program exited with status $ac_status" >&5 1829 $as_echo "$as_me: failed program was:" >&5 1830sed 's/^/| /' conftest.$ac_ext >&5 1831 1832 ac_retval=$ac_status 1833fi 1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_c_try_run 1839 1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1841# ------------------------------------------------------- 1842# Tests whether HEADER exists and can be compiled using the include files in 1843# INCLUDES, setting the cache variable VAR accordingly. 1844ac_fn_c_check_header_compile () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1848$as_echo_n "checking for $2... " >&6; } 1849if eval \${$3+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855#include <$2> 1856_ACEOF 1857if ac_fn_c_try_compile "$LINENO"; then : 1858 eval "$3=yes" 1859else 1860 eval "$3=no" 1861fi 1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1863fi 1864eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866$as_echo "$ac_res" >&6; } 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 1869} # ac_fn_c_check_header_compile 1870 1871# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1872# -------------------------------------------- 1873# Tries to find the compile-time value of EXPR in a program that includes 1874# INCLUDES, setting VAR accordingly. Returns whether the value could be 1875# computed 1876ac_fn_c_compute_int () 1877{ 1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1879 if test "$cross_compiling" = yes; then 1880 # Depending upon the size, compute the lo and hi bounds. 1881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1882/* end confdefs.h. */ 1883$4 1884int 1885main () 1886{ 1887static int test_array [1 - 2 * !(($2) >= 0)]; 1888test_array [0] = 0; 1889return test_array [0]; 1890 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 ac_lo=0 ac_mid=0 1897 while :; do 1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900$4 1901int 1902main () 1903{ 1904static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1905test_array [0] = 0; 1906return test_array [0]; 1907 1908 ; 1909 return 0; 1910} 1911_ACEOF 1912if ac_fn_c_try_compile "$LINENO"; then : 1913 ac_hi=$ac_mid; break 1914else 1915 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1916 if test $ac_lo -le $ac_mid; then 1917 ac_lo= ac_hi= 1918 break 1919 fi 1920 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1921fi 1922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1923 done 1924else 1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1926/* end confdefs.h. */ 1927$4 1928int 1929main () 1930{ 1931static int test_array [1 - 2 * !(($2) < 0)]; 1932test_array [0] = 0; 1933return test_array [0]; 1934 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_hi=-1 ac_mid=-1 1941 while :; do 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1949test_array [0] = 0; 1950return test_array [0]; 1951 1952 ; 1953 return 0; 1954} 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 ac_lo=$ac_mid; break 1958else 1959 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1960 if test $ac_mid -le $ac_hi; then 1961 ac_lo= ac_hi= 1962 break 1963 fi 1964 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1965fi 1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1967 done 1968else 1969 ac_lo= ac_hi= 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1974# Binary search between lo and hi bounds. 1975while test "x$ac_lo" != "x$ac_hi"; do 1976 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978/* end confdefs.h. */ 1979$4 1980int 1981main () 1982{ 1983static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1984test_array [0] = 0; 1985return test_array [0]; 1986 1987 ; 1988 return 0; 1989} 1990_ACEOF 1991if ac_fn_c_try_compile "$LINENO"; then : 1992 ac_hi=$ac_mid 1993else 1994 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1995fi 1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1997done 1998case $ac_lo in #(( 1999?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2000'') ac_retval=1 ;; 2001esac 2002 else 2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004/* end confdefs.h. */ 2005$4 2006static long int longval () { return $2; } 2007static unsigned long int ulongval () { return $2; } 2008#include <stdio.h> 2009#include <stdlib.h> 2010int 2011main () 2012{ 2013 2014 FILE *f = fopen ("conftest.val", "w"); 2015 if (! f) 2016 return 1; 2017 if (($2) < 0) 2018 { 2019 long int i = longval (); 2020 if (i != ($2)) 2021 return 1; 2022 fprintf (f, "%ld", i); 2023 } 2024 else 2025 { 2026 unsigned long int i = ulongval (); 2027 if (i != ($2)) 2028 return 1; 2029 fprintf (f, "%lu", i); 2030 } 2031 /* Do not output a trailing newline, as this causes \r\n confusion 2032 on some platforms. */ 2033 return ferror (f) || fclose (f) != 0; 2034 2035 ; 2036 return 0; 2037} 2038_ACEOF 2039if ac_fn_c_try_run "$LINENO"; then : 2040 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2041else 2042 ac_retval=1 2043fi 2044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2045 conftest.$ac_objext conftest.beam conftest.$ac_ext 2046rm -f conftest.val 2047 2048 fi 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2050 as_fn_set_status $ac_retval 2051 2052} # ac_fn_c_compute_int 2053 2054# ac_fn_c_check_func LINENO FUNC VAR 2055# ---------------------------------- 2056# Tests whether FUNC exists, setting the cache variable VAR accordingly 2057ac_fn_c_check_func () 2058{ 2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2061$as_echo_n "checking for $2... " >&6; } 2062if eval \${$3+:} false; then : 2063 $as_echo_n "(cached) " >&6 2064else 2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2066/* end confdefs.h. */ 2067/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2068 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2069#define $2 innocuous_$2 2070 2071/* Tell GNU C headers to include stubs. */ 2072#define __need_GNU_STUBS_H 2073 2074/* System header to define __stub macros and hopefully few prototypes, 2075 which can conflict with char $2 (); below. 2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2077 <limits.h> exists even on freestanding compilers. */ 2078 2079#ifdef __STDC__ 2080# include <limits.h> 2081#else 2082# include <assert.h> 2083#endif 2084 2085#undef $2 2086 2087/* Override any GCC internal prototype to avoid an error. 2088 Use char because int might match the return type of a GCC 2089 builtin and then its argument prototype would still apply. */ 2090#ifdef __cplusplus 2091extern "C" 2092#endif 2093char $2 (); 2094/* The GNU C library defines this for functions which it implements 2095 to always fail with ENOSYS. Some functions are actually named 2096 something starting with __ and the normal name is an alias. */ 2097#if defined __stub_$2 || defined __stub___$2 2098choke me 2099#endif 2100 2101int 2102main () 2103{ 2104return $2 (); 2105 ; 2106 return 0; 2107} 2108_ACEOF 2109if ac_fn_c_try_link "$LINENO"; then : 2110 eval "$3=yes" 2111else 2112 if test "$GCC" = yes; then 2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2114/* end confdefs.h. */ 2115#undef $2 2116/* Declare this function with the same prototype as __builtin_$2. 2117 This removes a warning about conflicting types for built-in function $2 */ 2118__typeof__(__builtin_$2) $2; 2119__typeof__(__builtin_$2) *f = $2; 2120 2121int 2122main () 2123{ 2124return f != $2; 2125 ; 2126 return 0; 2127} 2128_ACEOF 2129if ac_fn_c_try_link "$LINENO"; then : 2130 eval "$3=yes" 2131else 2132 eval "$3=no" 2133fi 2134rm -f core conftest.err conftest.$ac_objext \ 2135 conftest$ac_exeext conftest.$ac_ext 2136 else 2137 eval "$3=no" 2138 fi 2139fi 2140rm -f core conftest.err conftest.$ac_objext \ 2141 conftest$ac_exeext conftest.$ac_ext 2142fi 2143eval ac_res=\$$3 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2145$as_echo "$ac_res" >&6; } 2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2147 2148} # ac_fn_c_check_func 2149 2150# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2151# ------------------------------------------- 2152# Tests whether TYPE exists after having included INCLUDES, setting cache 2153# variable VAR accordingly. 2154ac_fn_c_check_type () 2155{ 2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2158$as_echo_n "checking for $2... " >&6; } 2159if eval \${$3+:} false; then : 2160 $as_echo_n "(cached) " >&6 2161else 2162 eval "$3=no" 2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2164/* end confdefs.h. */ 2165$4 2166int 2167main () 2168{ 2169if (sizeof ($2)) 2170 return 0; 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$4 2179int 2180main () 2181{ 2182if (sizeof (($2))) 2183 return 0; 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_compile "$LINENO"; then : 2189 2190else 2191 eval "$3=yes" 2192fi 2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2194fi 2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2196fi 2197eval ac_res=\$$3 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2199$as_echo "$ac_res" >&6; } 2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2201 2202} # ac_fn_c_check_type 2203 2204# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2205# ---------------------------------------------------- 2206# Tries to find if the field MEMBER exists in type AGGR, after including 2207# INCLUDES, setting cache variable VAR accordingly. 2208ac_fn_c_check_member () 2209{ 2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2212$as_echo_n "checking for $2.$3... " >&6; } 2213if eval \${$4+:} false; then : 2214 $as_echo_n "(cached) " >&6 2215else 2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2217/* end confdefs.h. */ 2218$5 2219int 2220main () 2221{ 2222static $2 ac_aggr; 2223if (ac_aggr.$3) 2224return 0; 2225 ; 2226 return 0; 2227} 2228_ACEOF 2229if ac_fn_c_try_compile "$LINENO"; then : 2230 eval "$4=yes" 2231else 2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2233/* end confdefs.h. */ 2234$5 2235int 2236main () 2237{ 2238static $2 ac_aggr; 2239if (sizeof ac_aggr.$3) 2240return 0; 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_c_try_compile "$LINENO"; then : 2246 eval "$4=yes" 2247else 2248 eval "$4=no" 2249fi 2250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2251fi 2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2253fi 2254eval ac_res=\$$4 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2256$as_echo "$ac_res" >&6; } 2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2258 2259} # ac_fn_c_check_member 2260 2261# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2262# --------------------------------------------- 2263# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2264# accordingly. 2265ac_fn_c_check_decl () 2266{ 2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2268 as_decl_name=`echo $2|sed 's/ *(.*//'` 2269 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2271$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2272if eval \${$3+:} false; then : 2273 $as_echo_n "(cached) " >&6 2274else 2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2276/* end confdefs.h. */ 2277$4 2278int 2279main () 2280{ 2281#ifndef $as_decl_name 2282#ifdef __cplusplus 2283 (void) $as_decl_use; 2284#else 2285 (void) $as_decl_name; 2286#endif 2287#endif 2288 2289 ; 2290 return 0; 2291} 2292_ACEOF 2293if ac_fn_c_try_compile "$LINENO"; then : 2294 eval "$3=yes" 2295else 2296 eval "$3=no" 2297fi 2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2299fi 2300eval ac_res=\$$3 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2302$as_echo "$ac_res" >&6; } 2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2304 2305} # ac_fn_c_check_decl 2306cat >config.log <<_ACEOF 2307This file contains any messages produced by compilers while 2308running configure, to aid debugging if configure makes a mistake. 2309 2310It was created by strace $as_me 4.25, which was 2311generated by GNU Autoconf 2.69. Invocation command line was 2312 2313 $ $0 $@ 2314 2315_ACEOF 2316exec 5>>config.log 2317{ 2318cat <<_ASUNAME 2319## --------- ## 2320## Platform. ## 2321## --------- ## 2322 2323hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2324uname -m = `(uname -m) 2>/dev/null || echo unknown` 2325uname -r = `(uname -r) 2>/dev/null || echo unknown` 2326uname -s = `(uname -s) 2>/dev/null || echo unknown` 2327uname -v = `(uname -v) 2>/dev/null || echo unknown` 2328 2329/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2330/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2331 2332/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2333/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2334/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2335/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2336/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2337/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2338/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2339 2340_ASUNAME 2341 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 $as_echo "PATH: $as_dir" 2348 done 2349IFS=$as_save_IFS 2350 2351} >&5 2352 2353cat >&5 <<_ACEOF 2354 2355 2356## ----------- ## 2357## Core tests. ## 2358## ----------- ## 2359 2360_ACEOF 2361 2362 2363# Keep a trace of the command line. 2364# Strip out --no-create and --no-recursion so they do not pile up. 2365# Strip out --silent because we don't want to record it for future runs. 2366# Also quote any args containing shell meta-characters. 2367# Make two passes to allow for proper duplicate-argument suppression. 2368ac_configure_args= 2369ac_configure_args0= 2370ac_configure_args1= 2371ac_must_keep_next=false 2372for ac_pass in 1 2 2373do 2374 for ac_arg 2375 do 2376 case $ac_arg in 2377 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2379 | -silent | --silent | --silen | --sile | --sil) 2380 continue ;; 2381 *\'*) 2382 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2383 esac 2384 case $ac_pass in 2385 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2386 2) 2387 as_fn_append ac_configure_args1 " '$ac_arg'" 2388 if test $ac_must_keep_next = true; then 2389 ac_must_keep_next=false # Got value, back to normal. 2390 else 2391 case $ac_arg in 2392 *=* | --config-cache | -C | -disable-* | --disable-* \ 2393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2395 | -with-* | --with-* | -without-* | --without-* | --x) 2396 case "$ac_configure_args0 " in 2397 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2398 esac 2399 ;; 2400 -* ) ac_must_keep_next=true ;; 2401 esac 2402 fi 2403 as_fn_append ac_configure_args " '$ac_arg'" 2404 ;; 2405 esac 2406 done 2407done 2408{ ac_configure_args0=; unset ac_configure_args0;} 2409{ ac_configure_args1=; unset ac_configure_args1;} 2410 2411# When interrupted or exit'd, cleanup temporary files, and complete 2412# config.log. We remove comments because anyway the quotes in there 2413# would cause problems or look ugly. 2414# WARNING: Use '\'' to represent an apostrophe within the trap. 2415# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2416trap 'exit_status=$? 2417 # Sanitize IFS. 2418 IFS=" "" $as_nl" 2419 # Save into config.log some information that might help in debugging. 2420 { 2421 echo 2422 2423 $as_echo "## ---------------- ## 2424## Cache variables. ## 2425## ---------------- ##" 2426 echo 2427 # The following way of writing the cache mishandles newlines in values, 2428( 2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2430 eval ac_val=\$$ac_var 2431 case $ac_val in #( 2432 *${as_nl}*) 2433 case $ac_var in #( 2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2435$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2436 esac 2437 case $ac_var in #( 2438 _ | IFS | as_nl) ;; #( 2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2440 *) { eval $ac_var=; unset $ac_var;} ;; 2441 esac ;; 2442 esac 2443 done 2444 (set) 2>&1 | 2445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2446 *${as_nl}ac_space=\ *) 2447 sed -n \ 2448 "s/'\''/'\''\\\\'\'''\''/g; 2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2450 ;; #( 2451 *) 2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2453 ;; 2454 esac | 2455 sort 2456) 2457 echo 2458 2459 $as_echo "## ----------------- ## 2460## Output variables. ## 2461## ----------------- ##" 2462 echo 2463 for ac_var in $ac_subst_vars 2464 do 2465 eval ac_val=\$$ac_var 2466 case $ac_val in 2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2468 esac 2469 $as_echo "$ac_var='\''$ac_val'\''" 2470 done | sort 2471 echo 2472 2473 if test -n "$ac_subst_files"; then 2474 $as_echo "## ------------------- ## 2475## File substitutions. ## 2476## ------------------- ##" 2477 echo 2478 for ac_var in $ac_subst_files 2479 do 2480 eval ac_val=\$$ac_var 2481 case $ac_val in 2482 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2483 esac 2484 $as_echo "$ac_var='\''$ac_val'\''" 2485 done | sort 2486 echo 2487 fi 2488 2489 if test -s confdefs.h; then 2490 $as_echo "## ----------- ## 2491## confdefs.h. ## 2492## ----------- ##" 2493 echo 2494 cat confdefs.h 2495 echo 2496 fi 2497 test "$ac_signal" != 0 && 2498 $as_echo "$as_me: caught signal $ac_signal" 2499 $as_echo "$as_me: exit $exit_status" 2500 } >&5 2501 rm -f core *.core core.conftest.* && 2502 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2503 exit $exit_status 2504' 0 2505for ac_signal in 1 2 13 15; do 2506 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2507done 2508ac_signal=0 2509 2510# confdefs.h avoids OS command line length limits that DEFS can exceed. 2511rm -f -r conftest* confdefs.h 2512 2513$as_echo "/* confdefs.h */" > confdefs.h 2514 2515# Predefined preprocessor variables. 2516 2517cat >>confdefs.h <<_ACEOF 2518#define PACKAGE_NAME "$PACKAGE_NAME" 2519_ACEOF 2520 2521cat >>confdefs.h <<_ACEOF 2522#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2523_ACEOF 2524 2525cat >>confdefs.h <<_ACEOF 2526#define PACKAGE_VERSION "$PACKAGE_VERSION" 2527_ACEOF 2528 2529cat >>confdefs.h <<_ACEOF 2530#define PACKAGE_STRING "$PACKAGE_STRING" 2531_ACEOF 2532 2533cat >>confdefs.h <<_ACEOF 2534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2535_ACEOF 2536 2537cat >>confdefs.h <<_ACEOF 2538#define PACKAGE_URL "$PACKAGE_URL" 2539_ACEOF 2540 2541 2542# Let the site file select an alternate cache file if it wants to. 2543# Prefer an explicitly selected file to automatically selected ones. 2544ac_site_file1=NONE 2545ac_site_file2=NONE 2546if test -n "$CONFIG_SITE"; then 2547 # We do not want a PATH search for config.site. 2548 case $CONFIG_SITE in #(( 2549 -*) ac_site_file1=./$CONFIG_SITE;; 2550 */*) ac_site_file1=$CONFIG_SITE;; 2551 *) ac_site_file1=./$CONFIG_SITE;; 2552 esac 2553elif test "x$prefix" != xNONE; then 2554 ac_site_file1=$prefix/share/config.site 2555 ac_site_file2=$prefix/etc/config.site 2556else 2557 ac_site_file1=$ac_default_prefix/share/config.site 2558 ac_site_file2=$ac_default_prefix/etc/config.site 2559fi 2560for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2561do 2562 test "x$ac_site_file" = xNONE && continue 2563 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2565$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2566 sed 's/^/| /' "$ac_site_file" >&5 2567 . "$ac_site_file" \ 2568 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2570as_fn_error $? "failed to load site script $ac_site_file 2571See \`config.log' for more details" "$LINENO" 5; } 2572 fi 2573done 2574 2575if test -r "$cache_file"; then 2576 # Some versions of bash will fail to source /dev/null (special files 2577 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2578 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2580$as_echo "$as_me: loading cache $cache_file" >&6;} 2581 case $cache_file in 2582 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2583 *) . "./$cache_file";; 2584 esac 2585 fi 2586else 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2588$as_echo "$as_me: creating cache $cache_file" >&6;} 2589 >$cache_file 2590fi 2591 2592# Check that the precious variables saved in the cache have kept the same 2593# value. 2594ac_cache_corrupted=false 2595for ac_var in $ac_precious_vars; do 2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2597 eval ac_new_set=\$ac_env_${ac_var}_set 2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2599 eval ac_new_val=\$ac_env_${ac_var}_value 2600 case $ac_old_set,$ac_new_set in 2601 set,) 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2603$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2604 ac_cache_corrupted=: ;; 2605 ,set) 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2607$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2608 ac_cache_corrupted=: ;; 2609 ,);; 2610 *) 2611 if test "x$ac_old_val" != "x$ac_new_val"; then 2612 # differences in whitespace do not lead to failure. 2613 ac_old_val_w=`echo x $ac_old_val` 2614 ac_new_val_w=`echo x $ac_new_val` 2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2617$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2618 ac_cache_corrupted=: 2619 else 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2621$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2622 eval $ac_var=\$ac_old_val 2623 fi 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2625$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2627$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2628 fi;; 2629 esac 2630 # Pass precious variables to config.status. 2631 if test "$ac_new_set" = set; then 2632 case $ac_new_val in 2633 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2634 *) ac_arg=$ac_var=$ac_new_val ;; 2635 esac 2636 case " $ac_configure_args " in 2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2639 esac 2640 fi 2641done 2642if $ac_cache_corrupted; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2646$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2647 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2648fi 2649## -------------------- ## 2650## Main body of script. ## 2651## -------------------- ## 2652 2653ac_ext=c 2654ac_cpp='$CPP $CPPFLAGS' 2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2657ac_compiler_gnu=$ac_cv_c_compiler_gnu 2658 2659 2660 2661 2662 2663 2664ac_aux_dir= 2665for ac_dir in . "$srcdir"/.; do 2666 if test -f "$ac_dir/install-sh"; then 2667 ac_aux_dir=$ac_dir 2668 ac_install_sh="$ac_aux_dir/install-sh -c" 2669 break 2670 elif test -f "$ac_dir/install.sh"; then 2671 ac_aux_dir=$ac_dir 2672 ac_install_sh="$ac_aux_dir/install.sh -c" 2673 break 2674 elif test -f "$ac_dir/shtool"; then 2675 ac_aux_dir=$ac_dir 2676 ac_install_sh="$ac_aux_dir/shtool install -c" 2677 break 2678 fi 2679done 2680if test -z "$ac_aux_dir"; then 2681 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2682fi 2683 2684# These three variables are undocumented and unsupported, 2685# and are intended to be withdrawn in a future Autoconf release. 2686# They can cause serious problems if a builder's source tree is in a directory 2687# whose full name contains unusual characters. 2688ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2689ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2690ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2691 2692 2693ac_config_headers="$ac_config_headers config.h" 2694 2695am__api_version='1.14' 2696 2697# Find a good install program. We prefer a C program (faster), 2698# so one script is as good as another. But avoid the broken or 2699# incompatible versions: 2700# SysV /etc/install, /usr/sbin/install 2701# SunOS /usr/etc/install 2702# IRIX /sbin/install 2703# AIX /bin/install 2704# AmigaOS /C/install, which installs bootblocks on floppy discs 2705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2706# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2708# OS/2's system install, which has a completely different semantic 2709# ./install, which can be erroneously created by make from ./install.sh. 2710# Reject install programs that cannot install multiple files. 2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2712$as_echo_n "checking for a BSD-compatible install... " >&6; } 2713if test -z "$INSTALL"; then 2714if ${ac_cv_path_install+:} false; then : 2715 $as_echo_n "(cached) " >&6 2716else 2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 # Account for people who put trailing slashes in PATH elements. 2723case $as_dir/ in #(( 2724 ./ | .// | /[cC]/* | \ 2725 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2726 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2727 /usr/ucb/* ) ;; 2728 *) 2729 # OSF1 and SCO ODT 3.0 have their own names for install. 2730 # Don't use installbsd from OSF since it installs stuff as root 2731 # by default. 2732 for ac_prog in ginstall scoinst install; do 2733 for ac_exec_ext in '' $ac_executable_extensions; do 2734 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2735 if test $ac_prog = install && 2736 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2737 # AIX install. It has an incompatible calling convention. 2738 : 2739 elif test $ac_prog = install && 2740 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # program-specific install script used by HP pwplus--don't use. 2742 : 2743 else 2744 rm -rf conftest.one conftest.two conftest.dir 2745 echo one > conftest.one 2746 echo two > conftest.two 2747 mkdir conftest.dir 2748 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2749 test -s conftest.one && test -s conftest.two && 2750 test -s conftest.dir/conftest.one && 2751 test -s conftest.dir/conftest.two 2752 then 2753 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2754 break 3 2755 fi 2756 fi 2757 fi 2758 done 2759 done 2760 ;; 2761esac 2762 2763 done 2764IFS=$as_save_IFS 2765 2766rm -rf conftest.one conftest.two conftest.dir 2767 2768fi 2769 if test "${ac_cv_path_install+set}" = set; then 2770 INSTALL=$ac_cv_path_install 2771 else 2772 # As a last resort, use the slow shell script. Don't cache a 2773 # value for INSTALL within a source directory, because that will 2774 # break other packages using the cache if that directory is 2775 # removed, or if the value is a relative name. 2776 INSTALL=$ac_install_sh 2777 fi 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2780$as_echo "$INSTALL" >&6; } 2781 2782# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2783# It thinks the first close brace ends the variable substitution. 2784test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2785 2786test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2787 2788test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2789 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2791$as_echo_n "checking whether build environment is sane... " >&6; } 2792# Reject unsafe characters in $srcdir or the absolute working directory 2793# name. Accept space and tab only in the latter. 2794am_lf=' 2795' 2796case `pwd` in 2797 *[\\\"\#\$\&\'\`$am_lf]*) 2798 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2799esac 2800case $srcdir in 2801 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2802 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2803esac 2804 2805# Do 'set' in a subshell so we don't clobber the current shell's 2806# arguments. Must try -L first in case configure is actually a 2807# symlink; some systems play weird games with the mod time of symlinks 2808# (eg FreeBSD returns the mod time of the symlink's containing 2809# directory). 2810if ( 2811 am_has_slept=no 2812 for am_try in 1 2; do 2813 echo "timestamp, slept: $am_has_slept" > conftest.file 2814 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2815 if test "$*" = "X"; then 2816 # -L didn't work. 2817 set X `ls -t "$srcdir/configure" conftest.file` 2818 fi 2819 if test "$*" != "X $srcdir/configure conftest.file" \ 2820 && test "$*" != "X conftest.file $srcdir/configure"; then 2821 2822 # If neither matched, then we have a broken ls. This can happen 2823 # if, for instance, CONFIG_SHELL is bash and it inherits a 2824 # broken ls alias from the environment. This has actually 2825 # happened. Such a system could not be considered "sane". 2826 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2827 alias in your environment" "$LINENO" 5 2828 fi 2829 if test "$2" = conftest.file || test $am_try -eq 2; then 2830 break 2831 fi 2832 # Just in case. 2833 sleep 1 2834 am_has_slept=yes 2835 done 2836 test "$2" = conftest.file 2837 ) 2838then 2839 # Ok. 2840 : 2841else 2842 as_fn_error $? "newly created file is older than distributed files! 2843Check your system clock" "$LINENO" 5 2844fi 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2846$as_echo "yes" >&6; } 2847# If we didn't sleep, we still need to ensure time stamps of config.status and 2848# generated files are strictly newer. 2849am_sleep_pid= 2850if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2851 ( sleep 1 ) & 2852 am_sleep_pid=$! 2853fi 2854 2855rm -f conftest.file 2856 2857test "$program_prefix" != NONE && 2858 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2859# Use a double $ so make ignores it. 2860test "$program_suffix" != NONE && 2861 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2862# Double any \ or $. 2863# By default was `s,x,x', remove it if useless. 2864ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2865program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2866 2867# expand $ac_aux_dir to an absolute path 2868am_aux_dir=`cd $ac_aux_dir && pwd` 2869 2870if test x"${MISSING+set}" != xset; then 2871 case $am_aux_dir in 2872 *\ * | *\ *) 2873 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2874 *) 2875 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2876 esac 2877fi 2878# Use eval to expand $SHELL 2879if eval "$MISSING --is-lightweight"; then 2880 am_missing_run="$MISSING " 2881else 2882 am_missing_run= 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2884$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2885fi 2886 2887if test x"${install_sh}" != xset; then 2888 case $am_aux_dir in 2889 *\ * | *\ *) 2890 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2891 *) 2892 install_sh="\${SHELL} $am_aux_dir/install-sh" 2893 esac 2894fi 2895 2896# Installed binaries are usually stripped using 'strip' when the user 2897# run "make install-strip". However 'strip' might not be the right 2898# tool to use in cross-compilation environments, therefore Automake 2899# will honor the 'STRIP' environment variable to overrule this program. 2900if test "$cross_compiling" != no; then 2901 if test -n "$ac_tool_prefix"; then 2902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2903set dummy ${ac_tool_prefix}strip; ac_word=$2 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2905$as_echo_n "checking for $ac_word... " >&6; } 2906if ${ac_cv_prog_STRIP+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908else 2909 if test -n "$STRIP"; then 2910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2911else 2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2913for as_dir in $PATH 2914do 2915 IFS=$as_save_IFS 2916 test -z "$as_dir" && as_dir=. 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2919 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923done 2924 done 2925IFS=$as_save_IFS 2926 2927fi 2928fi 2929STRIP=$ac_cv_prog_STRIP 2930if test -n "$STRIP"; then 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2932$as_echo "$STRIP" >&6; } 2933else 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935$as_echo "no" >&6; } 2936fi 2937 2938 2939fi 2940if test -z "$ac_cv_prog_STRIP"; then 2941 ac_ct_STRIP=$STRIP 2942 # Extract the first word of "strip", so it can be a program name with args. 2943set dummy strip; ac_word=$2 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 if test -n "$ac_ct_STRIP"; then 2950 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2951else 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 test -z "$as_dir" && as_dir=. 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2959 ac_cv_prog_ac_ct_STRIP="strip" 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964 done 2965IFS=$as_save_IFS 2966 2967fi 2968fi 2969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2970if test -n "$ac_ct_STRIP"; then 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2972$as_echo "$ac_ct_STRIP" >&6; } 2973else 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975$as_echo "no" >&6; } 2976fi 2977 2978 if test "x$ac_ct_STRIP" = x; then 2979 STRIP=":" 2980 else 2981 case $cross_compiling:$ac_tool_warned in 2982yes:) 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2985ac_tool_warned=yes ;; 2986esac 2987 STRIP=$ac_ct_STRIP 2988 fi 2989else 2990 STRIP="$ac_cv_prog_STRIP" 2991fi 2992 2993fi 2994INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2995 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2997$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2998if test -z "$MKDIR_P"; then 2999 if ${ac_cv_path_mkdir+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_prog in mkdir gmkdir; do 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3010 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3011 'mkdir (GNU coreutils) '* | \ 3012 'mkdir (coreutils) '* | \ 3013 'mkdir (fileutils) '4.1*) 3014 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3015 break 3;; 3016 esac 3017 done 3018 done 3019 done 3020IFS=$as_save_IFS 3021 3022fi 3023 3024 test -d ./--version && rmdir ./--version 3025 if test "${ac_cv_path_mkdir+set}" = set; then 3026 MKDIR_P="$ac_cv_path_mkdir -p" 3027 else 3028 # As a last resort, use the slow shell script. Don't cache a 3029 # value for MKDIR_P within a source directory, because that will 3030 # break other packages using the cache if that directory is 3031 # removed, or if the value is a relative name. 3032 MKDIR_P="$ac_install_sh -d" 3033 fi 3034fi 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3036$as_echo "$MKDIR_P" >&6; } 3037 3038for ac_prog in gawk mawk nawk awk 3039do 3040 # Extract the first word of "$ac_prog", so it can be a program name with args. 3041set dummy $ac_prog; ac_word=$2 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3043$as_echo_n "checking for $ac_word... " >&6; } 3044if ${ac_cv_prog_AWK+:} false; then : 3045 $as_echo_n "(cached) " >&6 3046else 3047 if test -n "$AWK"; then 3048 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3049else 3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051for as_dir in $PATH 3052do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 ac_cv_prog_AWK="$ac_prog" 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061done 3062 done 3063IFS=$as_save_IFS 3064 3065fi 3066fi 3067AWK=$ac_cv_prog_AWK 3068if test -n "$AWK"; then 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3070$as_echo "$AWK" >&6; } 3071else 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073$as_echo "no" >&6; } 3074fi 3075 3076 3077 test -n "$AWK" && break 3078done 3079 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3081$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3082set x ${MAKE-make} 3083ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3084if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 cat >conftest.make <<\_ACEOF 3088SHELL = /bin/sh 3089all: 3090 @echo '@@@%%%=$(MAKE)=@@@%%%' 3091_ACEOF 3092# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3093case `${MAKE-make} -f conftest.make 2>/dev/null` in 3094 *@@@%%%=?*=@@@%%%*) 3095 eval ac_cv_prog_make_${ac_make}_set=yes;; 3096 *) 3097 eval ac_cv_prog_make_${ac_make}_set=no;; 3098esac 3099rm -f conftest.make 3100fi 3101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3103$as_echo "yes" >&6; } 3104 SET_MAKE= 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108 SET_MAKE="MAKE=${MAKE-make}" 3109fi 3110 3111rm -rf .tst 2>/dev/null 3112mkdir .tst 2>/dev/null 3113if test -d .tst; then 3114 am__leading_dot=. 3115else 3116 am__leading_dot=_ 3117fi 3118rmdir .tst 2>/dev/null 3119 3120# Check whether --enable-silent-rules was given. 3121if test "${enable_silent_rules+set}" = set; then : 3122 enableval=$enable_silent_rules; 3123fi 3124 3125case $enable_silent_rules in # ((( 3126 yes) AM_DEFAULT_VERBOSITY=0;; 3127 no) AM_DEFAULT_VERBOSITY=1;; 3128 *) AM_DEFAULT_VERBOSITY=1;; 3129esac 3130am_make=${MAKE-make} 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3132$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3133if ${am_cv_make_support_nested_variables+:} false; then : 3134 $as_echo_n "(cached) " >&6 3135else 3136 if $as_echo 'TRUE=$(BAR$(V)) 3137BAR0=false 3138BAR1=true 3139V=1 3140am__doit: 3141 @$(TRUE) 3142.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3143 am_cv_make_support_nested_variables=yes 3144else 3145 am_cv_make_support_nested_variables=no 3146fi 3147fi 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3149$as_echo "$am_cv_make_support_nested_variables" >&6; } 3150if test $am_cv_make_support_nested_variables = yes; then 3151 AM_V='$(V)' 3152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3153else 3154 AM_V=$AM_DEFAULT_VERBOSITY 3155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3156fi 3157AM_BACKSLASH='\' 3158 3159if test "`cd $srcdir && pwd`" != "`pwd`"; then 3160 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3161 # is not polluted with repeated "-I." 3162 am__isrc=' -I$(srcdir)' 3163 # test to see if srcdir already configured 3164 if test -f $srcdir/config.status; then 3165 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3166 fi 3167fi 3168 3169# test whether we have cygpath 3170if test -z "$CYGPATH_W"; then 3171 if (cygpath --version) >/dev/null 2>/dev/null; then 3172 CYGPATH_W='cygpath -w' 3173 else 3174 CYGPATH_W=echo 3175 fi 3176fi 3177 3178 3179# Define the identity of the package. 3180 PACKAGE='strace' 3181 VERSION='4.25' 3182 3183 3184cat >>confdefs.h <<_ACEOF 3185#define PACKAGE "$PACKAGE" 3186_ACEOF 3187 3188 3189cat >>confdefs.h <<_ACEOF 3190#define VERSION "$VERSION" 3191_ACEOF 3192 3193# Some tools Automake needs. 3194 3195ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3196 3197 3198AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3199 3200 3201AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3202 3203 3204AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3205 3206 3207MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3208 3209# For better backward compatibility. To be removed once Automake 1.9.x 3210# dies out for good. For more background, see: 3211# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3212# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3213mkdir_p='$(MKDIR_P)' 3214 3215# We need awk for the "check" target. The system "awk" is bad on 3216# some platforms. 3217# Always define AMTAR for backward compatibility. Yes, it's still used 3218# in the wild :-( We should find a proper way to deprecate it ... 3219AMTAR='$${TAR-tar}' 3220 3221 3222# We'll loop over all known methods to create a tar archive until one works. 3223_am_tools='gnutar pax cpio none' 3224 3225am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3226 3227 3228 3229 3230 3231 3232# POSIX will say in a future version that running "rm -f" with no argument 3233# is OK; and we want to be able to make that assumption in our Makefile 3234# recipes. So use an aggressive probe to check that the usage we want is 3235# actually supported "in the wild" to an acceptable degree. 3236# See automake bug#10828. 3237# To make any issue more visible, cause the running configure to be aborted 3238# by default if the 'rm' program in use doesn't match our expectations; the 3239# user can still override this though. 3240if rm -f && rm -fr && rm -rf; then : OK; else 3241 cat >&2 <<'END' 3242Oops! 3243 3244Your 'rm' program seems unable to run without file operands specified 3245on the command line, even when the '-f' option is present. This is contrary 3246to the behaviour of most rm programs out there, and not conforming with 3247the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3248 3249Please tell bug-automake@gnu.org about your system, including the value 3250of your $PATH and any error possibly output before this message. This 3251can help us improve future automake versions. 3252 3253END 3254 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3255 echo 'Configuration will proceed anyway, since you have set the' >&2 3256 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3257 echo >&2 3258 else 3259 cat >&2 <<'END' 3260Aborting the configuration process, to ensure you take notice of the issue. 3261 3262You can download and install GNU coreutils to get an 'rm' implementation 3263that behaves properly: <http://www.gnu.org/software/coreutils/>. 3264 3265If you want to complete the configuration process using your problematic 3266'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3267to "yes", and re-run configure. 3268 3269END 3270 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3271 fi 3272fi 3273 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3275$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3276 # Check whether --enable-maintainer-mode was given. 3277if test "${enable_maintainer_mode+set}" = set; then : 3278 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3279else 3280 USE_MAINTAINER_MODE=no 3281fi 3282 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3284$as_echo "$USE_MAINTAINER_MODE" >&6; } 3285 if test $USE_MAINTAINER_MODE = yes; then 3286 MAINTAINER_MODE_TRUE= 3287 MAINTAINER_MODE_FALSE='#' 3288else 3289 MAINTAINER_MODE_TRUE='#' 3290 MAINTAINER_MODE_FALSE= 3291fi 3292 3293 MAINT=$MAINTAINER_MODE_TRUE 3294 3295 3296# Make sure we can run config.sub. 3297$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3298 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3299 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3301$as_echo_n "checking build system type... " >&6; } 3302if ${ac_cv_build+:} false; then : 3303 $as_echo_n "(cached) " >&6 3304else 3305 ac_build_alias=$build_alias 3306test "x$ac_build_alias" = x && 3307 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3308test "x$ac_build_alias" = x && 3309 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3310ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3311 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3312 3313fi 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3315$as_echo "$ac_cv_build" >&6; } 3316case $ac_cv_build in 3317*-*-*) ;; 3318*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3319esac 3320build=$ac_cv_build 3321ac_save_IFS=$IFS; IFS='-' 3322set x $ac_cv_build 3323shift 3324build_cpu=$1 3325build_vendor=$2 3326shift; shift 3327# Remember, the first character of IFS is used to create $*, 3328# except with old shells: 3329build_os=$* 3330IFS=$ac_save_IFS 3331case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3332 3333 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3335$as_echo_n "checking host system type... " >&6; } 3336if ${ac_cv_host+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 if test "x$host_alias" = x; then 3340 ac_cv_host=$ac_cv_build 3341else 3342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3344fi 3345 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3348$as_echo "$ac_cv_host" >&6; } 3349case $ac_cv_host in 3350*-*-*) ;; 3351*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3352esac 3353host=$ac_cv_host 3354ac_save_IFS=$IFS; IFS='-' 3355set x $ac_cv_host 3356shift 3357host_cpu=$1 3358host_vendor=$2 3359shift; shift 3360# Remember, the first character of IFS is used to create $*, 3361# except with old shells: 3362host_os=$* 3363IFS=$ac_save_IFS 3364case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3365 3366 3367 3368RPM_CHANGELOGTIME="$(LC_TIME=C date -u '+%a %b %d %Y')" 3369 3370DEB_CHANGELOGTIME="$(LC_TIME=C date -u -R)" 3371 3372 3373ac_ext=c 3374ac_cpp='$CPP $CPPFLAGS' 3375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3377ac_compiler_gnu=$ac_cv_c_compiler_gnu 3378if test -n "$ac_tool_prefix"; then 3379 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3380set dummy ${ac_tool_prefix}gcc; ac_word=$2 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3382$as_echo_n "checking for $ac_word... " >&6; } 3383if ${ac_cv_prog_CC+:} false; then : 3384 $as_echo_n "(cached) " >&6 3385else 3386 if test -n "$CC"; then 3387 ac_cv_prog_CC="$CC" # Let the user override the test. 3388else 3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3390for as_dir in $PATH 3391do 3392 IFS=$as_save_IFS 3393 test -z "$as_dir" && as_dir=. 3394 for ac_exec_ext in '' $ac_executable_extensions; do 3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3396 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3398 break 2 3399 fi 3400done 3401 done 3402IFS=$as_save_IFS 3403 3404fi 3405fi 3406CC=$ac_cv_prog_CC 3407if test -n "$CC"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3409$as_echo "$CC" >&6; } 3410else 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3412$as_echo "no" >&6; } 3413fi 3414 3415 3416fi 3417if test -z "$ac_cv_prog_CC"; then 3418 ac_ct_CC=$CC 3419 # Extract the first word of "gcc", so it can be a program name with args. 3420set dummy gcc; ac_word=$2 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3422$as_echo_n "checking for $ac_word... " >&6; } 3423if ${ac_cv_prog_ac_ct_CC+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 if test -n "$ac_ct_CC"; then 3427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3428else 3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3430for as_dir in $PATH 3431do 3432 IFS=$as_save_IFS 3433 test -z "$as_dir" && as_dir=. 3434 for ac_exec_ext in '' $ac_executable_extensions; do 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3436 ac_cv_prog_ac_ct_CC="gcc" 3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3438 break 2 3439 fi 3440done 3441 done 3442IFS=$as_save_IFS 3443 3444fi 3445fi 3446ac_ct_CC=$ac_cv_prog_ac_ct_CC 3447if test -n "$ac_ct_CC"; then 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3449$as_echo "$ac_ct_CC" >&6; } 3450else 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3452$as_echo "no" >&6; } 3453fi 3454 3455 if test "x$ac_ct_CC" = x; then 3456 CC="" 3457 else 3458 case $cross_compiling:$ac_tool_warned in 3459yes:) 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3462ac_tool_warned=yes ;; 3463esac 3464 CC=$ac_ct_CC 3465 fi 3466else 3467 CC="$ac_cv_prog_CC" 3468fi 3469 3470if test -z "$CC"; then 3471 if test -n "$ac_tool_prefix"; then 3472 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3473set dummy ${ac_tool_prefix}cc; ac_word=$2 3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3475$as_echo_n "checking for $ac_word... " >&6; } 3476if ${ac_cv_prog_CC+:} false; then : 3477 $as_echo_n "(cached) " >&6 3478else 3479 if test -n "$CC"; then 3480 ac_cv_prog_CC="$CC" # Let the user override the test. 3481else 3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483for as_dir in $PATH 3484do 3485 IFS=$as_save_IFS 3486 test -z "$as_dir" && as_dir=. 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3489 ac_cv_prog_CC="${ac_tool_prefix}cc" 3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3491 break 2 3492 fi 3493done 3494 done 3495IFS=$as_save_IFS 3496 3497fi 3498fi 3499CC=$ac_cv_prog_CC 3500if test -n "$CC"; then 3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3502$as_echo "$CC" >&6; } 3503else 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3505$as_echo "no" >&6; } 3506fi 3507 3508 3509 fi 3510fi 3511if test -z "$CC"; then 3512 # Extract the first word of "cc", so it can be a program name with args. 3513set dummy cc; ac_word=$2 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3515$as_echo_n "checking for $ac_word... " >&6; } 3516if ${ac_cv_prog_CC+:} false; then : 3517 $as_echo_n "(cached) " >&6 3518else 3519 if test -n "$CC"; then 3520 ac_cv_prog_CC="$CC" # Let the user override the test. 3521else 3522 ac_prog_rejected=no 3523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3524for as_dir in $PATH 3525do 3526 IFS=$as_save_IFS 3527 test -z "$as_dir" && as_dir=. 3528 for ac_exec_ext in '' $ac_executable_extensions; do 3529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3530 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3531 ac_prog_rejected=yes 3532 continue 3533 fi 3534 ac_cv_prog_CC="cc" 3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3536 break 2 3537 fi 3538done 3539 done 3540IFS=$as_save_IFS 3541 3542if test $ac_prog_rejected = yes; then 3543 # We found a bogon in the path, so make sure we never use it. 3544 set dummy $ac_cv_prog_CC 3545 shift 3546 if test $# != 0; then 3547 # We chose a different compiler from the bogus one. 3548 # However, it has the same basename, so the bogon will be chosen 3549 # first if we set CC to just the basename; use the full file name. 3550 shift 3551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3552 fi 3553fi 3554fi 3555fi 3556CC=$ac_cv_prog_CC 3557if test -n "$CC"; then 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3559$as_echo "$CC" >&6; } 3560else 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3562$as_echo "no" >&6; } 3563fi 3564 3565 3566fi 3567if test -z "$CC"; then 3568 if test -n "$ac_tool_prefix"; then 3569 for ac_prog in cl.exe 3570 do 3571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3572set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574$as_echo_n "checking for $ac_word... " >&6; } 3575if ${ac_cv_prog_CC+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 if test -n "$CC"; then 3579 ac_cv_prog_CC="$CC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3588 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593 done 3594IFS=$as_save_IFS 3595 3596fi 3597fi 3598CC=$ac_cv_prog_CC 3599if test -n "$CC"; then 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3601$as_echo "$CC" >&6; } 3602else 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3604$as_echo "no" >&6; } 3605fi 3606 3607 3608 test -n "$CC" && break 3609 done 3610fi 3611if test -z "$CC"; then 3612 ac_ct_CC=$CC 3613 for ac_prog in cl.exe 3614do 3615 # Extract the first word of "$ac_prog", so it can be a program name with args. 3616set dummy $ac_prog; ac_word=$2 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3618$as_echo_n "checking for $ac_word... " >&6; } 3619if ${ac_cv_prog_ac_ct_CC+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 if test -n "$ac_ct_CC"; then 3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3624else 3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3626for as_dir in $PATH 3627do 3628 IFS=$as_save_IFS 3629 test -z "$as_dir" && as_dir=. 3630 for ac_exec_ext in '' $ac_executable_extensions; do 3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3632 ac_cv_prog_ac_ct_CC="$ac_prog" 3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3634 break 2 3635 fi 3636done 3637 done 3638IFS=$as_save_IFS 3639 3640fi 3641fi 3642ac_ct_CC=$ac_cv_prog_ac_ct_CC 3643if test -n "$ac_ct_CC"; then 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3645$as_echo "$ac_ct_CC" >&6; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3648$as_echo "no" >&6; } 3649fi 3650 3651 3652 test -n "$ac_ct_CC" && break 3653done 3654 3655 if test "x$ac_ct_CC" = x; then 3656 CC="" 3657 else 3658 case $cross_compiling:$ac_tool_warned in 3659yes:) 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3662ac_tool_warned=yes ;; 3663esac 3664 CC=$ac_ct_CC 3665 fi 3666fi 3667 3668fi 3669 3670 3671test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3673as_fn_error $? "no acceptable C compiler found in \$PATH 3674See \`config.log' for more details" "$LINENO" 5; } 3675 3676# Provide some information about the compiler. 3677$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3678set X $ac_compile 3679ac_compiler=$2 3680for ac_option in --version -v -V -qversion; do 3681 { { ac_try="$ac_compiler $ac_option >&5" 3682case "(($ac_try" in 3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3684 *) ac_try_echo=$ac_try;; 3685esac 3686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3687$as_echo "$ac_try_echo"; } >&5 3688 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3689 ac_status=$? 3690 if test -s conftest.err; then 3691 sed '10a\ 3692... rest of stderr output deleted ... 3693 10q' conftest.err >conftest.er1 3694 cat conftest.er1 >&5 3695 fi 3696 rm -f conftest.er1 conftest.err 3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3698 test $ac_status = 0; } 3699done 3700 3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703 3704int 3705main () 3706{ 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712ac_clean_files_save=$ac_clean_files 3713ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3714# Try to create an executable without -o first, disregard a.out. 3715# It will help us diagnose broken compilers, and finding out an intuition 3716# of exeext. 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3718$as_echo_n "checking whether the C compiler works... " >&6; } 3719ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3720 3721# The possible output files: 3722ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3723 3724ac_rmfiles= 3725for ac_file in $ac_files 3726do 3727 case $ac_file in 3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3729 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3730 esac 3731done 3732rm -f $ac_rmfiles 3733 3734if { { ac_try="$ac_link_default" 3735case "(($ac_try" in 3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3737 *) ac_try_echo=$ac_try;; 3738esac 3739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3740$as_echo "$ac_try_echo"; } >&5 3741 (eval "$ac_link_default") 2>&5 3742 ac_status=$? 3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3744 test $ac_status = 0; }; then : 3745 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3746# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3747# in a Makefile. We should not override ac_cv_exeext if it was cached, 3748# so that the user can short-circuit this test for compilers unknown to 3749# Autoconf. 3750for ac_file in $ac_files '' 3751do 3752 test -f "$ac_file" || continue 3753 case $ac_file in 3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3755 ;; 3756 [ab].out ) 3757 # We found the default executable, but exeext='' is most 3758 # certainly right. 3759 break;; 3760 *.* ) 3761 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3762 then :; else 3763 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3764 fi 3765 # We set ac_cv_exeext here because the later test for it is not 3766 # safe: cross compilers may not add the suffix if given an `-o' 3767 # argument, so we may need to know it at that point already. 3768 # Even if this section looks crufty: it has the advantage of 3769 # actually working. 3770 break;; 3771 * ) 3772 break;; 3773 esac 3774done 3775test "$ac_cv_exeext" = no && ac_cv_exeext= 3776 3777else 3778 ac_file='' 3779fi 3780if test -z "$ac_file"; then : 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3782$as_echo "no" >&6; } 3783$as_echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error 77 "C compiler cannot create executables 3789See \`config.log' for more details" "$LINENO" 5; } 3790else 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3792$as_echo "yes" >&6; } 3793fi 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3795$as_echo_n "checking for C compiler default output file name... " >&6; } 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3797$as_echo "$ac_file" >&6; } 3798ac_exeext=$ac_cv_exeext 3799 3800rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3801ac_clean_files=$ac_clean_files_save 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3803$as_echo_n "checking for suffix of executables... " >&6; } 3804if { { ac_try="$ac_link" 3805case "(($ac_try" in 3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3807 *) ac_try_echo=$ac_try;; 3808esac 3809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3810$as_echo "$ac_try_echo"; } >&5 3811 (eval "$ac_link") 2>&5 3812 ac_status=$? 3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3814 test $ac_status = 0; }; then : 3815 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3816# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3817# work properly (i.e., refer to `conftest.exe'), while it won't with 3818# `rm'. 3819for ac_file in conftest.exe conftest conftest.*; do 3820 test -f "$ac_file" || continue 3821 case $ac_file in 3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3823 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3824 break;; 3825 * ) break;; 3826 esac 3827done 3828else 3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3831as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3832See \`config.log' for more details" "$LINENO" 5; } 3833fi 3834rm -f conftest conftest$ac_cv_exeext 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3836$as_echo "$ac_cv_exeext" >&6; } 3837 3838rm -f conftest.$ac_ext 3839EXEEXT=$ac_cv_exeext 3840ac_exeext=$EXEEXT 3841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843#include <stdio.h> 3844int 3845main () 3846{ 3847FILE *f = fopen ("conftest.out", "w"); 3848 return ferror (f) || fclose (f) != 0; 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854ac_clean_files="$ac_clean_files conftest.out" 3855# Check that the compiler produces executables we can run. If not, either 3856# the compiler is broken, or we cross compile. 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3858$as_echo_n "checking whether we are cross compiling... " >&6; } 3859if test "$cross_compiling" != yes; then 3860 { { ac_try="$ac_link" 3861case "(($ac_try" in 3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3863 *) ac_try_echo=$ac_try;; 3864esac 3865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3866$as_echo "$ac_try_echo"; } >&5 3867 (eval "$ac_link") 2>&5 3868 ac_status=$? 3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3870 test $ac_status = 0; } 3871 if { ac_try='./conftest$ac_cv_exeext' 3872 { { case "(($ac_try" in 3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3874 *) ac_try_echo=$ac_try;; 3875esac 3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3877$as_echo "$ac_try_echo"; } >&5 3878 (eval "$ac_try") 2>&5 3879 ac_status=$? 3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3881 test $ac_status = 0; }; }; then 3882 cross_compiling=no 3883 else 3884 if test "$cross_compiling" = maybe; then 3885 cross_compiling=yes 3886 else 3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3889as_fn_error $? "cannot run C compiled programs. 3890If you meant to cross compile, use \`--host'. 3891See \`config.log' for more details" "$LINENO" 5; } 3892 fi 3893 fi 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3896$as_echo "$cross_compiling" >&6; } 3897 3898rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3899ac_clean_files=$ac_clean_files_save 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3901$as_echo_n "checking for suffix of object files... " >&6; } 3902if ${ac_cv_objext+:} false; then : 3903 $as_echo_n "(cached) " >&6 3904else 3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906/* end confdefs.h. */ 3907 3908int 3909main () 3910{ 3911 3912 ; 3913 return 0; 3914} 3915_ACEOF 3916rm -f conftest.o conftest.obj 3917if { { ac_try="$ac_compile" 3918case "(($ac_try" in 3919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3920 *) ac_try_echo=$ac_try;; 3921esac 3922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3923$as_echo "$ac_try_echo"; } >&5 3924 (eval "$ac_compile") 2>&5 3925 ac_status=$? 3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3927 test $ac_status = 0; }; then : 3928 for ac_file in conftest.o conftest.obj conftest.*; do 3929 test -f "$ac_file" || continue; 3930 case $ac_file in 3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3933 break;; 3934 esac 3935done 3936else 3937 $as_echo "$as_me: failed program was:" >&5 3938sed 's/^/| /' conftest.$ac_ext >&5 3939 3940{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3942as_fn_error $? "cannot compute suffix of object files: cannot compile 3943See \`config.log' for more details" "$LINENO" 5; } 3944fi 3945rm -f conftest.$ac_cv_objext conftest.$ac_ext 3946fi 3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3948$as_echo "$ac_cv_objext" >&6; } 3949OBJEXT=$ac_cv_objext 3950ac_objext=$OBJEXT 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3952$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3953if ${ac_cv_c_compiler_gnu+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958 3959int 3960main () 3961{ 3962#ifndef __GNUC__ 3963 choke me 3964#endif 3965 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970if ac_fn_c_try_compile "$LINENO"; then : 3971 ac_compiler_gnu=yes 3972else 3973 ac_compiler_gnu=no 3974fi 3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3976ac_cv_c_compiler_gnu=$ac_compiler_gnu 3977 3978fi 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3980$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3981if test $ac_compiler_gnu = yes; then 3982 GCC=yes 3983else 3984 GCC= 3985fi 3986ac_test_CFLAGS=${CFLAGS+set} 3987ac_save_CFLAGS=$CFLAGS 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3989$as_echo_n "checking whether $CC accepts -g... " >&6; } 3990if ${ac_cv_prog_cc_g+:} false; then : 3991 $as_echo_n "(cached) " >&6 3992else 3993 ac_save_c_werror_flag=$ac_c_werror_flag 3994 ac_c_werror_flag=yes 3995 ac_cv_prog_cc_g=no 3996 CFLAGS="-g" 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999 4000int 4001main () 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008if ac_fn_c_try_compile "$LINENO"; then : 4009 ac_cv_prog_cc_g=yes 4010else 4011 CFLAGS="" 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main () 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023if ac_fn_c_try_compile "$LINENO"; then : 4024 4025else 4026 ac_c_werror_flag=$ac_save_c_werror_flag 4027 CFLAGS="-g" 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039if ac_fn_c_try_compile "$LINENO"; then : 4040 ac_cv_prog_cc_g=yes 4041fi 4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4043fi 4044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4045fi 4046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4047 ac_c_werror_flag=$ac_save_c_werror_flag 4048fi 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4050$as_echo "$ac_cv_prog_cc_g" >&6; } 4051if test "$ac_test_CFLAGS" = set; then 4052 CFLAGS=$ac_save_CFLAGS 4053elif test $ac_cv_prog_cc_g = yes; then 4054 if test "$GCC" = yes; then 4055 CFLAGS="-g -O2" 4056 else 4057 CFLAGS="-g" 4058 fi 4059else 4060 if test "$GCC" = yes; then 4061 CFLAGS="-O2" 4062 else 4063 CFLAGS= 4064 fi 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4067$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4068if ${ac_cv_prog_cc_c89+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 ac_cv_prog_cc_c89=no 4072ac_save_CC=$CC 4073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075#include <stdarg.h> 4076#include <stdio.h> 4077struct stat; 4078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4079struct buf { int x; }; 4080FILE * (*rcsopen) (struct buf *, struct stat *, int); 4081static char *e (p, i) 4082 char **p; 4083 int i; 4084{ 4085 return p[i]; 4086} 4087static char *f (char * (*g) (char **, int), char **p, ...) 4088{ 4089 char *s; 4090 va_list v; 4091 va_start (v,p); 4092 s = g (p, va_arg (v,int)); 4093 va_end (v); 4094 return s; 4095} 4096 4097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4098 function prototypes and stuff, but not '\xHH' hex character constants. 4099 These don't provoke an error unfortunately, instead are silently treated 4100 as 'x'. The following induces an error, until -std is added to get 4101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4102 array size at least. It's necessary to write '\x00'==0 to get something 4103 that's true only with -std. */ 4104int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4105 4106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4107 inside strings and character constants. */ 4108#define FOO(x) 'x' 4109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4110 4111int test (int i, double x); 4112struct s1 {int (*f) (int a);}; 4113struct s2 {int (*f) (double a);}; 4114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4115int argc; 4116char **argv; 4117int 4118main () 4119{ 4120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4127do 4128 CC="$ac_save_CC $ac_arg" 4129 if ac_fn_c_try_compile "$LINENO"; then : 4130 ac_cv_prog_cc_c89=$ac_arg 4131fi 4132rm -f core conftest.err conftest.$ac_objext 4133 test "x$ac_cv_prog_cc_c89" != "xno" && break 4134done 4135rm -f conftest.$ac_ext 4136CC=$ac_save_CC 4137 4138fi 4139# AC_CACHE_VAL 4140case "x$ac_cv_prog_cc_c89" in 4141 x) 4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4143$as_echo "none needed" >&6; } ;; 4144 xno) 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4146$as_echo "unsupported" >&6; } ;; 4147 *) 4148 CC="$CC $ac_cv_prog_cc_c89" 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4150$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4151esac 4152if test "x$ac_cv_prog_cc_c89" != xno; then : 4153 4154fi 4155 4156ac_ext=c 4157ac_cpp='$CPP $CPPFLAGS' 4158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4160ac_compiler_gnu=$ac_cv_c_compiler_gnu 4161 4162ac_ext=c 4163ac_cpp='$CPP $CPPFLAGS' 4164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4166ac_compiler_gnu=$ac_cv_c_compiler_gnu 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4168$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4169if ${am_cv_prog_cc_c_o+:} false; then : 4170 $as_echo_n "(cached) " >&6 4171else 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174 4175int 4176main () 4177{ 4178 4179 ; 4180 return 0; 4181} 4182_ACEOF 4183 # Make sure it works both with $CC and with simple cc. 4184 # Following AC_PROG_CC_C_O, we do the test twice because some 4185 # compilers refuse to overwrite an existing .o file with -o, 4186 # though they will create one. 4187 am_cv_prog_cc_c_o=yes 4188 for am_i in 1 2; do 4189 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4190 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4191 ac_status=$? 4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4193 (exit $ac_status); } \ 4194 && test -f conftest2.$ac_objext; then 4195 : OK 4196 else 4197 am_cv_prog_cc_c_o=no 4198 break 4199 fi 4200 done 4201 rm -f core conftest* 4202 unset am_i 4203fi 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4205$as_echo "$am_cv_prog_cc_c_o" >&6; } 4206if test "$am_cv_prog_cc_c_o" != yes; then 4207 # Losing compiler, so override with the script. 4208 # FIXME: It is wrong to rewrite CC. 4209 # But if we don't then we get into trouble of one sort or another. 4210 # A longer-term fix would be to have automake use am__CC in this case, 4211 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4212 CC="$am_aux_dir/compile $CC" 4213fi 4214ac_ext=c 4215ac_cpp='$CPP $CPPFLAGS' 4216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4218ac_compiler_gnu=$ac_cv_c_compiler_gnu 4219 4220DEPDIR="${am__leading_dot}deps" 4221 4222ac_config_commands="$ac_config_commands depfiles" 4223 4224 4225am_make=${MAKE-make} 4226cat > confinc << 'END' 4227am__doit: 4228 @echo this is the am__doit target 4229.PHONY: am__doit 4230END 4231# If we don't find an include directive, just comment out the code. 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4233$as_echo_n "checking for style of include used by $am_make... " >&6; } 4234am__include="#" 4235am__quote= 4236_am_result=none 4237# First try GNU make style include. 4238echo "include confinc" > confmf 4239# Ignore all kinds of additional output from 'make'. 4240case `$am_make -s -f confmf 2> /dev/null` in #( 4241*the\ am__doit\ target*) 4242 am__include=include 4243 am__quote= 4244 _am_result=GNU 4245 ;; 4246esac 4247# Now try BSD make style include. 4248if test "$am__include" = "#"; then 4249 echo '.include "confinc"' > confmf 4250 case `$am_make -s -f confmf 2> /dev/null` in #( 4251 *the\ am__doit\ target*) 4252 am__include=.include 4253 am__quote="\"" 4254 _am_result=BSD 4255 ;; 4256 esac 4257fi 4258 4259 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4261$as_echo "$_am_result" >&6; } 4262rm -f confinc confmf 4263 4264# Check whether --enable-dependency-tracking was given. 4265if test "${enable_dependency_tracking+set}" = set; then : 4266 enableval=$enable_dependency_tracking; 4267fi 4268 4269if test "x$enable_dependency_tracking" != xno; then 4270 am_depcomp="$ac_aux_dir/depcomp" 4271 AMDEPBACKSLASH='\' 4272 am__nodep='_no' 4273fi 4274 if test "x$enable_dependency_tracking" != xno; then 4275 AMDEP_TRUE= 4276 AMDEP_FALSE='#' 4277else 4278 AMDEP_TRUE='#' 4279 AMDEP_FALSE= 4280fi 4281 4282 4283 4284depcc="$CC" am_compiler_list= 4285 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4287$as_echo_n "checking dependency style of $depcc... " >&6; } 4288if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4292 # We make a subdir and do the tests there. Otherwise we can end up 4293 # making bogus files that we don't know about and never remove. For 4294 # instance it was reported that on HP-UX the gcc test will end up 4295 # making a dummy file named 'D' -- because '-MD' means "put the output 4296 # in D". 4297 rm -rf conftest.dir 4298 mkdir conftest.dir 4299 # Copy depcomp to subdir because otherwise we won't find it if we're 4300 # using a relative directory. 4301 cp "$am_depcomp" conftest.dir 4302 cd conftest.dir 4303 # We will build objects and dependencies in a subdirectory because 4304 # it helps to detect inapplicable dependency modes. For instance 4305 # both Tru64's cc and ICC support -MD to output dependencies as a 4306 # side effect of compilation, but ICC will put the dependencies in 4307 # the current directory while Tru64 will put them in the object 4308 # directory. 4309 mkdir sub 4310 4311 am_cv_CC_dependencies_compiler_type=none 4312 if test "$am_compiler_list" = ""; then 4313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4314 fi 4315 am__universal=false 4316 case " $depcc " in #( 4317 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4318 esac 4319 4320 for depmode in $am_compiler_list; do 4321 # Setup a source with many dependencies, because some compilers 4322 # like to wrap large dependency lists on column 80 (with \), and 4323 # we should not choose a depcomp mode which is confused by this. 4324 # 4325 # We need to recreate these files for each test, as the compiler may 4326 # overwrite some of them when testing with obscure command lines. 4327 # This happens at least with the AIX C compiler. 4328 : > sub/conftest.c 4329 for i in 1 2 3 4 5 6; do 4330 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4331 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4332 # Solaris 10 /bin/sh. 4333 echo '/* dummy */' > sub/conftst$i.h 4334 done 4335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4336 4337 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4338 # mode. It turns out that the SunPro C++ compiler does not properly 4339 # handle '-M -o', and we need to detect this. Also, some Intel 4340 # versions had trouble with output in subdirs. 4341 am__obj=sub/conftest.${OBJEXT-o} 4342 am__minus_obj="-o $am__obj" 4343 case $depmode in 4344 gcc) 4345 # This depmode causes a compiler race in universal mode. 4346 test "$am__universal" = false || continue 4347 ;; 4348 nosideeffect) 4349 # After this tag, mechanisms are not by side-effect, so they'll 4350 # only be used when explicitly requested. 4351 if test "x$enable_dependency_tracking" = xyes; then 4352 continue 4353 else 4354 break 4355 fi 4356 ;; 4357 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4358 # This compiler won't grok '-c -o', but also, the minuso test has 4359 # not run yet. These depmodes are late enough in the game, and 4360 # so weak that their functioning should not be impacted. 4361 am__obj=conftest.${OBJEXT-o} 4362 am__minus_obj= 4363 ;; 4364 none) break ;; 4365 esac 4366 if depmode=$depmode \ 4367 source=sub/conftest.c object=$am__obj \ 4368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4370 >/dev/null 2>conftest.err && 4371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4375 # icc doesn't choke on unknown options, it will just issue warnings 4376 # or remarks (even with -Werror). So we grep stderr for any message 4377 # that says an option was ignored or not supported. 4378 # When given -MP, icc 7.0 and 7.1 complain thusly: 4379 # icc: Command line warning: ignoring option '-M'; no argument required 4380 # The diagnosis changed in icc 8.0: 4381 # icc: Command line remark: option '-MP' not supported 4382 if (grep 'ignoring option' conftest.err || 4383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4384 am_cv_CC_dependencies_compiler_type=$depmode 4385 break 4386 fi 4387 fi 4388 done 4389 4390 cd .. 4391 rm -rf conftest.dir 4392else 4393 am_cv_CC_dependencies_compiler_type=none 4394fi 4395 4396fi 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4398$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4399CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4400 4401 if 4402 test "x$enable_dependency_tracking" != xno \ 4403 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4404 am__fastdepCC_TRUE= 4405 am__fastdepCC_FALSE='#' 4406else 4407 am__fastdepCC_TRUE='#' 4408 am__fastdepCC_FALSE= 4409fi 4410 4411 4412 case $ac_cv_prog_cc_stdc in #( 4413 no) : 4414 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4415 *) : 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4417$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4418if ${ac_cv_prog_cc_c99+:} false; then : 4419 $as_echo_n "(cached) " >&6 4420else 4421 ac_cv_prog_cc_c99=no 4422ac_save_CC=$CC 4423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424/* end confdefs.h. */ 4425#include <stdarg.h> 4426#include <stdbool.h> 4427#include <stdlib.h> 4428#include <wchar.h> 4429#include <stdio.h> 4430 4431// Check varargs macros. These examples are taken from C99 6.10.3.5. 4432#define debug(...) fprintf (stderr, __VA_ARGS__) 4433#define showlist(...) puts (#__VA_ARGS__) 4434#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4435static void 4436test_varargs_macros (void) 4437{ 4438 int x = 1234; 4439 int y = 5678; 4440 debug ("Flag"); 4441 debug ("X = %d\n", x); 4442 showlist (The first, second, and third items.); 4443 report (x>y, "x is %d but y is %d", x, y); 4444} 4445 4446// Check long long types. 4447#define BIG64 18446744073709551615ull 4448#define BIG32 4294967295ul 4449#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4450#if !BIG_OK 4451 your preprocessor is broken; 4452#endif 4453#if BIG_OK 4454#else 4455 your preprocessor is broken; 4456#endif 4457static long long int bignum = -9223372036854775807LL; 4458static unsigned long long int ubignum = BIG64; 4459 4460struct incomplete_array 4461{ 4462 int datasize; 4463 double data[]; 4464}; 4465 4466struct named_init { 4467 int number; 4468 const wchar_t *name; 4469 double average; 4470}; 4471 4472typedef const char *ccp; 4473 4474static inline int 4475test_restrict (ccp restrict text) 4476{ 4477 // See if C++-style comments work. 4478 // Iterate through items via the restricted pointer. 4479 // Also check for declarations in for loops. 4480 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4481 continue; 4482 return 0; 4483} 4484 4485// Check varargs and va_copy. 4486static void 4487test_varargs (const char *format, ...) 4488{ 4489 va_list args; 4490 va_start (args, format); 4491 va_list args_copy; 4492 va_copy (args_copy, args); 4493 4494 const char *str; 4495 int number; 4496 float fnumber; 4497 4498 while (*format) 4499 { 4500 switch (*format++) 4501 { 4502 case 's': // string 4503 str = va_arg (args_copy, const char *); 4504 break; 4505 case 'd': // int 4506 number = va_arg (args_copy, int); 4507 break; 4508 case 'f': // float 4509 fnumber = va_arg (args_copy, double); 4510 break; 4511 default: 4512 break; 4513 } 4514 } 4515 va_end (args_copy); 4516 va_end (args); 4517} 4518 4519int 4520main () 4521{ 4522 4523 // Check bool. 4524 _Bool success = false; 4525 4526 // Check restrict. 4527 if (test_restrict ("String literal") == 0) 4528 success = true; 4529 char *restrict newvar = "Another string"; 4530 4531 // Check varargs. 4532 test_varargs ("s, d' f .", "string", 65, 34.234); 4533 test_varargs_macros (); 4534 4535 // Check flexible array members. 4536 struct incomplete_array *ia = 4537 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4538 ia->datasize = 10; 4539 for (int i = 0; i < ia->datasize; ++i) 4540 ia->data[i] = i * 1.234; 4541 4542 // Check named initializers. 4543 struct named_init ni = { 4544 .number = 34, 4545 .name = L"Test wide string", 4546 .average = 543.34343, 4547 }; 4548 4549 ni.number = 58; 4550 4551 int dynamic_array[ni.number]; 4552 dynamic_array[ni.number - 1] = 543; 4553 4554 // work around unused variable warnings 4555 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4556 || dynamic_array[ni.number - 1] != 543); 4557 4558 ; 4559 return 0; 4560} 4561_ACEOF 4562for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4563do 4564 CC="$ac_save_CC $ac_arg" 4565 if ac_fn_c_try_compile "$LINENO"; then : 4566 ac_cv_prog_cc_c99=$ac_arg 4567fi 4568rm -f core conftest.err conftest.$ac_objext 4569 test "x$ac_cv_prog_cc_c99" != "xno" && break 4570done 4571rm -f conftest.$ac_ext 4572CC=$ac_save_CC 4573 4574fi 4575# AC_CACHE_VAL 4576case "x$ac_cv_prog_cc_c99" in 4577 x) 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4579$as_echo "none needed" >&6; } ;; 4580 xno) 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4582$as_echo "unsupported" >&6; } ;; 4583 *) 4584 CC="$CC $ac_cv_prog_cc_c99" 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4586$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4587esac 4588if test "x$ac_cv_prog_cc_c99" != xno; then : 4589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4590else 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4592$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4593if ${ac_cv_prog_cc_c89+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 ac_cv_prog_cc_c89=no 4597ac_save_CC=$CC 4598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4599/* end confdefs.h. */ 4600#include <stdarg.h> 4601#include <stdio.h> 4602struct stat; 4603/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4604struct buf { int x; }; 4605FILE * (*rcsopen) (struct buf *, struct stat *, int); 4606static char *e (p, i) 4607 char **p; 4608 int i; 4609{ 4610 return p[i]; 4611} 4612static char *f (char * (*g) (char **, int), char **p, ...) 4613{ 4614 char *s; 4615 va_list v; 4616 va_start (v,p); 4617 s = g (p, va_arg (v,int)); 4618 va_end (v); 4619 return s; 4620} 4621 4622/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4623 function prototypes and stuff, but not '\xHH' hex character constants. 4624 These don't provoke an error unfortunately, instead are silently treated 4625 as 'x'. The following induces an error, until -std is added to get 4626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4627 array size at least. It's necessary to write '\x00'==0 to get something 4628 that's true only with -std. */ 4629int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4630 4631/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4632 inside strings and character constants. */ 4633#define FOO(x) 'x' 4634int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4635 4636int test (int i, double x); 4637struct s1 {int (*f) (int a);}; 4638struct s2 {int (*f) (double a);}; 4639int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4640int argc; 4641char **argv; 4642int 4643main () 4644{ 4645return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4646 ; 4647 return 0; 4648} 4649_ACEOF 4650for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4652do 4653 CC="$ac_save_CC $ac_arg" 4654 if ac_fn_c_try_compile "$LINENO"; then : 4655 ac_cv_prog_cc_c89=$ac_arg 4656fi 4657rm -f core conftest.err conftest.$ac_objext 4658 test "x$ac_cv_prog_cc_c89" != "xno" && break 4659done 4660rm -f conftest.$ac_ext 4661CC=$ac_save_CC 4662 4663fi 4664# AC_CACHE_VAL 4665case "x$ac_cv_prog_cc_c89" in 4666 x) 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4668$as_echo "none needed" >&6; } ;; 4669 xno) 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4671$as_echo "unsupported" >&6; } ;; 4672 *) 4673 CC="$CC $ac_cv_prog_cc_c89" 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4675$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4676esac 4677if test "x$ac_cv_prog_cc_c89" != xno; then : 4678 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4679else 4680 ac_cv_prog_cc_stdc=no 4681fi 4682 4683fi 4684 ;; 4685esac 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4687$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4688 if ${ac_cv_prog_cc_stdc+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690fi 4691 4692 case $ac_cv_prog_cc_stdc in #( 4693 no) : 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4695$as_echo "unsupported" >&6; } ;; #( 4696 '') : 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4698$as_echo "none needed" >&6; } ;; #( 4699 *) : 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4701$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4702esac 4703 4704ac_ext=c 4705ac_cpp='$CPP $CPPFLAGS' 4706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4708ac_compiler_gnu=$ac_cv_c_compiler_gnu 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4710$as_echo_n "checking how to run the C preprocessor... " >&6; } 4711# On Suns, sometimes $CPP names a directory. 4712if test -n "$CPP" && test -d "$CPP"; then 4713 CPP= 4714fi 4715if test -z "$CPP"; then 4716 if ${ac_cv_prog_CPP+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 # Double quotes because CPP needs to be expanded 4720 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4721 do 4722 ac_preproc_ok=false 4723for ac_c_preproc_warn_flag in '' yes 4724do 4725 # Use a header file that comes with gcc, so configuring glibc 4726 # with a fresh cross-compiler works. 4727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4728 # <limits.h> exists even on freestanding compilers. 4729 # On the NeXT, cc -E runs the code through the compiler's parser, 4730 # not just through cpp. "Syntax error" is here to catch this case. 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733#ifdef __STDC__ 4734# include <limits.h> 4735#else 4736# include <assert.h> 4737#endif 4738 Syntax error 4739_ACEOF 4740if ac_fn_c_try_cpp "$LINENO"; then : 4741 4742else 4743 # Broken: fails on valid input. 4744continue 4745fi 4746rm -f conftest.err conftest.i conftest.$ac_ext 4747 4748 # OK, works on sane cases. Now check whether nonexistent headers 4749 # can be detected and how. 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4751/* end confdefs.h. */ 4752#include <ac_nonexistent.h> 4753_ACEOF 4754if ac_fn_c_try_cpp "$LINENO"; then : 4755 # Broken: success on invalid input. 4756continue 4757else 4758 # Passes both tests. 4759ac_preproc_ok=: 4760break 4761fi 4762rm -f conftest.err conftest.i conftest.$ac_ext 4763 4764done 4765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4766rm -f conftest.i conftest.err conftest.$ac_ext 4767if $ac_preproc_ok; then : 4768 break 4769fi 4770 4771 done 4772 ac_cv_prog_CPP=$CPP 4773 4774fi 4775 CPP=$ac_cv_prog_CPP 4776else 4777 ac_cv_prog_CPP=$CPP 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4780$as_echo "$CPP" >&6; } 4781ac_preproc_ok=false 4782for ac_c_preproc_warn_flag in '' yes 4783do 4784 # Use a header file that comes with gcc, so configuring glibc 4785 # with a fresh cross-compiler works. 4786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4787 # <limits.h> exists even on freestanding compilers. 4788 # On the NeXT, cc -E runs the code through the compiler's parser, 4789 # not just through cpp. "Syntax error" is here to catch this case. 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792#ifdef __STDC__ 4793# include <limits.h> 4794#else 4795# include <assert.h> 4796#endif 4797 Syntax error 4798_ACEOF 4799if ac_fn_c_try_cpp "$LINENO"; then : 4800 4801else 4802 # Broken: fails on valid input. 4803continue 4804fi 4805rm -f conftest.err conftest.i conftest.$ac_ext 4806 4807 # OK, works on sane cases. Now check whether nonexistent headers 4808 # can be detected and how. 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811#include <ac_nonexistent.h> 4812_ACEOF 4813if ac_fn_c_try_cpp "$LINENO"; then : 4814 # Broken: success on invalid input. 4815continue 4816else 4817 # Passes both tests. 4818ac_preproc_ok=: 4819break 4820fi 4821rm -f conftest.err conftest.i conftest.$ac_ext 4822 4823done 4824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4825rm -f conftest.i conftest.err conftest.$ac_ext 4826if $ac_preproc_ok; then : 4827 4828else 4829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4831as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4832See \`config.log' for more details" "$LINENO" 5; } 4833fi 4834 4835ac_ext=c 4836ac_cpp='$CPP $CPPFLAGS' 4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4839ac_compiler_gnu=$ac_cv_c_compiler_gnu 4840 4841 4842if test x${gl_unknown_warnings_are_errors+set} = x; then : 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 4844$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 4845if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 4849 gl_save_compiler_FLAGS="$CFLAGS" 4850 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853 4854int 4855main () 4856{ 4857 4858 ; 4859 return 0; 4860} 4861_ACEOF 4862if ac_fn_c_try_link "$LINENO"; then : 4863 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 4864else 4865 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext \ 4868 conftest$ac_exeext conftest.$ac_ext 4869 CFLAGS="$gl_save_compiler_FLAGS" 4870 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 4873$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 4874if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 4875 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 4876else 4877 gl_unknown_warnings_are_errors= 4878fi 4879 4880 4881fi 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wall" >&5 4884$as_echo_n "checking whether $CC handles -Wall... " >&6; } 4885if ${gl_cv_warn_CFLAGS__Wall+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 4889 gl_save_compiler_FLAGS="$CFLAGS" 4890 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wall" 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893 4894int 4895main () 4896{ 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902if ac_fn_c_try_link "$LINENO"; then : 4903 gl_cv_warn_CFLAGS__Wall=yes 4904else 4905 gl_cv_warn_CFLAGS__Wall=no 4906fi 4907rm -f core conftest.err conftest.$ac_objext \ 4908 conftest$ac_exeext conftest.$ac_ext 4909 CFLAGS="$gl_save_compiler_FLAGS" 4910 4911fi 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wall" >&5 4913$as_echo "$gl_cv_warn_CFLAGS__Wall" >&6; } 4914if test "x$gl_cv_warn_CFLAGS__Wall" = xyes; then : 4915 as_fn_append WARN_CFLAGS " -Wall" 4916fi 4917 4918 4919if test x${gl_unknown_warnings_are_errors+set} = x; then : 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 4921$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 4922if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 4926 gl_save_compiler_FLAGS="$CFLAGS" 4927 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4929/* end confdefs.h. */ 4930 4931int 4932main () 4933{ 4934 4935 ; 4936 return 0; 4937} 4938_ACEOF 4939if ac_fn_c_try_link "$LINENO"; then : 4940 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 4941else 4942 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 4943fi 4944rm -f core conftest.err conftest.$ac_objext \ 4945 conftest$ac_exeext conftest.$ac_ext 4946 CFLAGS="$gl_save_compiler_FLAGS" 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 4950$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 4951if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 4952 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 4953else 4954 gl_unknown_warnings_are_errors= 4955fi 4956 4957 4958fi 4959 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wempty-body" >&5 4961$as_echo_n "checking whether $CC handles -Wempty-body... " >&6; } 4962if ${gl_cv_warn_CFLAGS__Wempty_body+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 4966 gl_save_compiler_FLAGS="$CFLAGS" 4967 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wempty-body" 4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4969/* end confdefs.h. */ 4970 4971int 4972main () 4973{ 4974 4975 ; 4976 return 0; 4977} 4978_ACEOF 4979if ac_fn_c_try_link "$LINENO"; then : 4980 gl_cv_warn_CFLAGS__Wempty_body=yes 4981else 4982 gl_cv_warn_CFLAGS__Wempty_body=no 4983fi 4984rm -f core conftest.err conftest.$ac_objext \ 4985 conftest$ac_exeext conftest.$ac_ext 4986 CFLAGS="$gl_save_compiler_FLAGS" 4987 4988fi 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wempty_body" >&5 4990$as_echo "$gl_cv_warn_CFLAGS__Wempty_body" >&6; } 4991if test "x$gl_cv_warn_CFLAGS__Wempty_body" = xyes; then : 4992 as_fn_append WARN_CFLAGS " -Wempty-body" 4993fi 4994 4995 4996if test x${gl_unknown_warnings_are_errors+set} = x; then : 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 4998$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 4999if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 5003 gl_save_compiler_FLAGS="$CFLAGS" 5004 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007 5008int 5009main () 5010{ 5011 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_c_try_link "$LINENO"; then : 5017 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5018else 5019 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext \ 5022 conftest$ac_exeext conftest.$ac_ext 5023 CFLAGS="$gl_save_compiler_FLAGS" 5024 5025fi 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5027$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5028if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5029 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5030else 5031 gl_unknown_warnings_are_errors= 5032fi 5033 5034 5035fi 5036 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wformat-security" >&5 5038$as_echo_n "checking whether $CC handles -Wformat-security... " >&6; } 5039if ${gl_cv_warn_CFLAGS__Wformat_security+:} false; then : 5040 $as_echo_n "(cached) " >&6 5041else 5042 5043 gl_save_compiler_FLAGS="$CFLAGS" 5044 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-security" 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047 5048int 5049main () 5050{ 5051 5052 ; 5053 return 0; 5054} 5055_ACEOF 5056if ac_fn_c_try_link "$LINENO"; then : 5057 gl_cv_warn_CFLAGS__Wformat_security=yes 5058else 5059 gl_cv_warn_CFLAGS__Wformat_security=no 5060fi 5061rm -f core conftest.err conftest.$ac_objext \ 5062 conftest$ac_exeext conftest.$ac_ext 5063 CFLAGS="$gl_save_compiler_FLAGS" 5064 5065fi 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wformat_security" >&5 5067$as_echo "$gl_cv_warn_CFLAGS__Wformat_security" >&6; } 5068if test "x$gl_cv_warn_CFLAGS__Wformat_security" = xyes; then : 5069 as_fn_append WARN_CFLAGS " -Wformat-security" 5070fi 5071 5072 5073if test x${gl_unknown_warnings_are_errors+set} = x; then : 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5075$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5076if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 5080 gl_save_compiler_FLAGS="$CFLAGS" 5081 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084 5085int 5086main () 5087{ 5088 5089 ; 5090 return 0; 5091} 5092_ACEOF 5093if ac_fn_c_try_link "$LINENO"; then : 5094 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5095else 5096 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5097fi 5098rm -f core conftest.err conftest.$ac_objext \ 5099 conftest$ac_exeext conftest.$ac_ext 5100 CFLAGS="$gl_save_compiler_FLAGS" 5101 5102fi 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5104$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5105if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5106 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5107else 5108 gl_unknown_warnings_are_errors= 5109fi 5110 5111 5112fi 5113 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wignored-qualifiers" >&5 5115$as_echo_n "checking whether $CC handles -Wignored-qualifiers... " >&6; } 5116if ${gl_cv_warn_CFLAGS__Wignored_qualifiers+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 5120 gl_save_compiler_FLAGS="$CFLAGS" 5121 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wignored-qualifiers" 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124 5125int 5126main () 5127{ 5128 5129 ; 5130 return 0; 5131} 5132_ACEOF 5133if ac_fn_c_try_link "$LINENO"; then : 5134 gl_cv_warn_CFLAGS__Wignored_qualifiers=yes 5135else 5136 gl_cv_warn_CFLAGS__Wignored_qualifiers=no 5137fi 5138rm -f core conftest.err conftest.$ac_objext \ 5139 conftest$ac_exeext conftest.$ac_ext 5140 CFLAGS="$gl_save_compiler_FLAGS" 5141 5142fi 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wignored_qualifiers" >&5 5144$as_echo "$gl_cv_warn_CFLAGS__Wignored_qualifiers" >&6; } 5145if test "x$gl_cv_warn_CFLAGS__Wignored_qualifiers" = xyes; then : 5146 as_fn_append WARN_CFLAGS " -Wignored-qualifiers" 5147fi 5148 5149 5150if test x${gl_unknown_warnings_are_errors+set} = x; then : 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5152$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5153if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 5157 gl_save_compiler_FLAGS="$CFLAGS" 5158 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160/* end confdefs.h. */ 5161 5162int 5163main () 5164{ 5165 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_c_try_link "$LINENO"; then : 5171 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5172else 5173 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5174fi 5175rm -f core conftest.err conftest.$ac_objext \ 5176 conftest$ac_exeext conftest.$ac_ext 5177 CFLAGS="$gl_save_compiler_FLAGS" 5178 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5181$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5182if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5183 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5184else 5185 gl_unknown_warnings_are_errors= 5186fi 5187 5188 5189fi 5190 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wimplicit-fallthrough=5" >&5 5192$as_echo_n "checking whether $CC handles -Wimplicit-fallthrough=5... " >&6; } 5193if ${gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 5197 gl_save_compiler_FLAGS="$CFLAGS" 5198 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wimplicit-fallthrough=5" 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201 5202int 5203main () 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210if ac_fn_c_try_link "$LINENO"; then : 5211 gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5=yes 5212else 5213 gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5=no 5214fi 5215rm -f core conftest.err conftest.$ac_objext \ 5216 conftest$ac_exeext conftest.$ac_ext 5217 CFLAGS="$gl_save_compiler_FLAGS" 5218 5219fi 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5" >&5 5221$as_echo "$gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5" >&6; } 5222if test "x$gl_cv_warn_CFLAGS__Wimplicit_fallthrough_5" = xyes; then : 5223 as_fn_append WARN_CFLAGS " -Wimplicit-fallthrough=5" 5224fi 5225 5226 5227if test x${gl_unknown_warnings_are_errors+set} = x; then : 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5229$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5230if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 5234 gl_save_compiler_FLAGS="$CFLAGS" 5235 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5237/* end confdefs.h. */ 5238 5239int 5240main () 5241{ 5242 5243 ; 5244 return 0; 5245} 5246_ACEOF 5247if ac_fn_c_try_link "$LINENO"; then : 5248 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5249else 5250 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5251fi 5252rm -f core conftest.err conftest.$ac_objext \ 5253 conftest$ac_exeext conftest.$ac_ext 5254 CFLAGS="$gl_save_compiler_FLAGS" 5255 5256fi 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5258$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5259if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5260 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5261else 5262 gl_unknown_warnings_are_errors= 5263fi 5264 5265 5266fi 5267 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Winit-self" >&5 5269$as_echo_n "checking whether $CC handles -Winit-self... " >&6; } 5270if ${gl_cv_warn_CFLAGS__Winit_self+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 5274 gl_save_compiler_FLAGS="$CFLAGS" 5275 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Winit-self" 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278 5279int 5280main () 5281{ 5282 5283 ; 5284 return 0; 5285} 5286_ACEOF 5287if ac_fn_c_try_link "$LINENO"; then : 5288 gl_cv_warn_CFLAGS__Winit_self=yes 5289else 5290 gl_cv_warn_CFLAGS__Winit_self=no 5291fi 5292rm -f core conftest.err conftest.$ac_objext \ 5293 conftest$ac_exeext conftest.$ac_ext 5294 CFLAGS="$gl_save_compiler_FLAGS" 5295 5296fi 5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Winit_self" >&5 5298$as_echo "$gl_cv_warn_CFLAGS__Winit_self" >&6; } 5299if test "x$gl_cv_warn_CFLAGS__Winit_self" = xyes; then : 5300 as_fn_append WARN_CFLAGS " -Winit-self" 5301fi 5302 5303 5304if test x${gl_unknown_warnings_are_errors+set} = x; then : 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5306$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5307if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 5311 gl_save_compiler_FLAGS="$CFLAGS" 5312 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315 5316int 5317main () 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324if ac_fn_c_try_link "$LINENO"; then : 5325 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5326else 5327 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext \ 5330 conftest$ac_exeext conftest.$ac_ext 5331 CFLAGS="$gl_save_compiler_FLAGS" 5332 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5335$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5336if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5337 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5338else 5339 gl_unknown_warnings_are_errors= 5340fi 5341 5342 5343fi 5344 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Winitializer-overrides" >&5 5346$as_echo_n "checking whether $CC handles -Winitializer-overrides... " >&6; } 5347if ${gl_cv_warn_CFLAGS__Winitializer_overrides+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349else 5350 5351 gl_save_compiler_FLAGS="$CFLAGS" 5352 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Winitializer-overrides" 5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5354/* end confdefs.h. */ 5355 5356int 5357main () 5358{ 5359 5360 ; 5361 return 0; 5362} 5363_ACEOF 5364if ac_fn_c_try_link "$LINENO"; then : 5365 gl_cv_warn_CFLAGS__Winitializer_overrides=yes 5366else 5367 gl_cv_warn_CFLAGS__Winitializer_overrides=no 5368fi 5369rm -f core conftest.err conftest.$ac_objext \ 5370 conftest$ac_exeext conftest.$ac_ext 5371 CFLAGS="$gl_save_compiler_FLAGS" 5372 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Winitializer_overrides" >&5 5375$as_echo "$gl_cv_warn_CFLAGS__Winitializer_overrides" >&6; } 5376if test "x$gl_cv_warn_CFLAGS__Winitializer_overrides" = xyes; then : 5377 as_fn_append WARN_CFLAGS " -Winitializer-overrides" 5378fi 5379 5380 5381if test x${gl_unknown_warnings_are_errors+set} = x; then : 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5383$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5384if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5385 $as_echo_n "(cached) " >&6 5386else 5387 5388 gl_save_compiler_FLAGS="$CFLAGS" 5389 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392 5393int 5394main () 5395{ 5396 5397 ; 5398 return 0; 5399} 5400_ACEOF 5401if ac_fn_c_try_link "$LINENO"; then : 5402 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5403else 5404 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5405fi 5406rm -f core conftest.err conftest.$ac_objext \ 5407 conftest$ac_exeext conftest.$ac_ext 5408 CFLAGS="$gl_save_compiler_FLAGS" 5409 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5412$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5413if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5414 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5415else 5416 gl_unknown_warnings_are_errors= 5417fi 5418 5419 5420fi 5421 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wlogical-op" >&5 5423$as_echo_n "checking whether $CC handles -Wlogical-op... " >&6; } 5424if ${gl_cv_warn_CFLAGS__Wlogical_op+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 5428 gl_save_compiler_FLAGS="$CFLAGS" 5429 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op" 5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431/* end confdefs.h. */ 5432 5433int 5434main () 5435{ 5436 5437 ; 5438 return 0; 5439} 5440_ACEOF 5441if ac_fn_c_try_link "$LINENO"; then : 5442 gl_cv_warn_CFLAGS__Wlogical_op=yes 5443else 5444 gl_cv_warn_CFLAGS__Wlogical_op=no 5445fi 5446rm -f core conftest.err conftest.$ac_objext \ 5447 conftest$ac_exeext conftest.$ac_ext 5448 CFLAGS="$gl_save_compiler_FLAGS" 5449 5450fi 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wlogical_op" >&5 5452$as_echo "$gl_cv_warn_CFLAGS__Wlogical_op" >&6; } 5453if test "x$gl_cv_warn_CFLAGS__Wlogical_op" = xyes; then : 5454 as_fn_append WARN_CFLAGS " -Wlogical-op" 5455fi 5456 5457 5458if test x${gl_unknown_warnings_are_errors+set} = x; then : 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5460$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5461if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 5465 gl_save_compiler_FLAGS="$CFLAGS" 5466 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5468/* end confdefs.h. */ 5469 5470int 5471main () 5472{ 5473 5474 ; 5475 return 0; 5476} 5477_ACEOF 5478if ac_fn_c_try_link "$LINENO"; then : 5479 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5480else 5481 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5482fi 5483rm -f core conftest.err conftest.$ac_objext \ 5484 conftest$ac_exeext conftest.$ac_ext 5485 CFLAGS="$gl_save_compiler_FLAGS" 5486 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5489$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5490if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5491 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5492else 5493 gl_unknown_warnings_are_errors= 5494fi 5495 5496 5497fi 5498 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wmissing-parameter-type" >&5 5500$as_echo_n "checking whether $CC handles -Wmissing-parameter-type... " >&6; } 5501if ${gl_cv_warn_CFLAGS__Wmissing_parameter_type+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 5505 gl_save_compiler_FLAGS="$CFLAGS" 5506 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-parameter-type" 5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5508/* end confdefs.h. */ 5509 5510int 5511main () 5512{ 5513 5514 ; 5515 return 0; 5516} 5517_ACEOF 5518if ac_fn_c_try_link "$LINENO"; then : 5519 gl_cv_warn_CFLAGS__Wmissing_parameter_type=yes 5520else 5521 gl_cv_warn_CFLAGS__Wmissing_parameter_type=no 5522fi 5523rm -f core conftest.err conftest.$ac_objext \ 5524 conftest$ac_exeext conftest.$ac_ext 5525 CFLAGS="$gl_save_compiler_FLAGS" 5526 5527fi 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wmissing_parameter_type" >&5 5529$as_echo "$gl_cv_warn_CFLAGS__Wmissing_parameter_type" >&6; } 5530if test "x$gl_cv_warn_CFLAGS__Wmissing_parameter_type" = xyes; then : 5531 as_fn_append WARN_CFLAGS " -Wmissing-parameter-type" 5532fi 5533 5534 5535if test x${gl_unknown_warnings_are_errors+set} = x; then : 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5537$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5538if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 5542 gl_save_compiler_FLAGS="$CFLAGS" 5543 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545/* end confdefs.h. */ 5546 5547int 5548main () 5549{ 5550 5551 ; 5552 return 0; 5553} 5554_ACEOF 5555if ac_fn_c_try_link "$LINENO"; then : 5556 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5557else 5558 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5559fi 5560rm -f core conftest.err conftest.$ac_objext \ 5561 conftest$ac_exeext conftest.$ac_ext 5562 CFLAGS="$gl_save_compiler_FLAGS" 5563 5564fi 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5566$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5567if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5568 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5569else 5570 gl_unknown_warnings_are_errors= 5571fi 5572 5573 5574fi 5575 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wnested-externs" >&5 5577$as_echo_n "checking whether $CC handles -Wnested-externs... " >&6; } 5578if ${gl_cv_warn_CFLAGS__Wnested_externs+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 5582 gl_save_compiler_FLAGS="$CFLAGS" 5583 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wnested-externs" 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586 5587int 5588main () 5589{ 5590 5591 ; 5592 return 0; 5593} 5594_ACEOF 5595if ac_fn_c_try_link "$LINENO"; then : 5596 gl_cv_warn_CFLAGS__Wnested_externs=yes 5597else 5598 gl_cv_warn_CFLAGS__Wnested_externs=no 5599fi 5600rm -f core conftest.err conftest.$ac_objext \ 5601 conftest$ac_exeext conftest.$ac_ext 5602 CFLAGS="$gl_save_compiler_FLAGS" 5603 5604fi 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wnested_externs" >&5 5606$as_echo "$gl_cv_warn_CFLAGS__Wnested_externs" >&6; } 5607if test "x$gl_cv_warn_CFLAGS__Wnested_externs" = xyes; then : 5608 as_fn_append WARN_CFLAGS " -Wnested-externs" 5609fi 5610 5611 5612if test x${gl_unknown_warnings_are_errors+set} = x; then : 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5614$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5615if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 5619 gl_save_compiler_FLAGS="$CFLAGS" 5620 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5622/* end confdefs.h. */ 5623 5624int 5625main () 5626{ 5627 5628 ; 5629 return 0; 5630} 5631_ACEOF 5632if ac_fn_c_try_link "$LINENO"; then : 5633 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5634else 5635 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5636fi 5637rm -f core conftest.err conftest.$ac_objext \ 5638 conftest$ac_exeext conftest.$ac_ext 5639 CFLAGS="$gl_save_compiler_FLAGS" 5640 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5643$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5644if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5645 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5646else 5647 gl_unknown_warnings_are_errors= 5648fi 5649 5650 5651fi 5652 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wold-style-declaration" >&5 5654$as_echo_n "checking whether $CC handles -Wold-style-declaration... " >&6; } 5655if ${gl_cv_warn_CFLAGS__Wold_style_declaration+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 5659 gl_save_compiler_FLAGS="$CFLAGS" 5660 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wold-style-declaration" 5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5662/* end confdefs.h. */ 5663 5664int 5665main () 5666{ 5667 5668 ; 5669 return 0; 5670} 5671_ACEOF 5672if ac_fn_c_try_link "$LINENO"; then : 5673 gl_cv_warn_CFLAGS__Wold_style_declaration=yes 5674else 5675 gl_cv_warn_CFLAGS__Wold_style_declaration=no 5676fi 5677rm -f core conftest.err conftest.$ac_objext \ 5678 conftest$ac_exeext conftest.$ac_ext 5679 CFLAGS="$gl_save_compiler_FLAGS" 5680 5681fi 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wold_style_declaration" >&5 5683$as_echo "$gl_cv_warn_CFLAGS__Wold_style_declaration" >&6; } 5684if test "x$gl_cv_warn_CFLAGS__Wold_style_declaration" = xyes; then : 5685 as_fn_append WARN_CFLAGS " -Wold-style-declaration" 5686fi 5687 5688 5689if test x${gl_unknown_warnings_are_errors+set} = x; then : 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5691$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5692if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 5696 gl_save_compiler_FLAGS="$CFLAGS" 5697 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700 5701int 5702main () 5703{ 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709if ac_fn_c_try_link "$LINENO"; then : 5710 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5711else 5712 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext \ 5715 conftest$ac_exeext conftest.$ac_ext 5716 CFLAGS="$gl_save_compiler_FLAGS" 5717 5718fi 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5720$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5721if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5722 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5723else 5724 gl_unknown_warnings_are_errors= 5725fi 5726 5727 5728fi 5729 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wold-style-definition" >&5 5731$as_echo_n "checking whether $CC handles -Wold-style-definition... " >&6; } 5732if ${gl_cv_warn_CFLAGS__Wold_style_definition+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 5736 gl_save_compiler_FLAGS="$CFLAGS" 5737 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wold-style-definition" 5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5739/* end confdefs.h. */ 5740 5741int 5742main () 5743{ 5744 5745 ; 5746 return 0; 5747} 5748_ACEOF 5749if ac_fn_c_try_link "$LINENO"; then : 5750 gl_cv_warn_CFLAGS__Wold_style_definition=yes 5751else 5752 gl_cv_warn_CFLAGS__Wold_style_definition=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext \ 5755 conftest$ac_exeext conftest.$ac_ext 5756 CFLAGS="$gl_save_compiler_FLAGS" 5757 5758fi 5759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wold_style_definition" >&5 5760$as_echo "$gl_cv_warn_CFLAGS__Wold_style_definition" >&6; } 5761if test "x$gl_cv_warn_CFLAGS__Wold_style_definition" = xyes; then : 5762 as_fn_append WARN_CFLAGS " -Wold-style-definition" 5763fi 5764 5765 5766if test x${gl_unknown_warnings_are_errors+set} = x; then : 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5768$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5769if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5770 $as_echo_n "(cached) " >&6 5771else 5772 5773 gl_save_compiler_FLAGS="$CFLAGS" 5774 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777 5778int 5779main () 5780{ 5781 5782 ; 5783 return 0; 5784} 5785_ACEOF 5786if ac_fn_c_try_link "$LINENO"; then : 5787 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5788else 5789 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5790fi 5791rm -f core conftest.err conftest.$ac_objext \ 5792 conftest$ac_exeext conftest.$ac_ext 5793 CFLAGS="$gl_save_compiler_FLAGS" 5794 5795fi 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5797$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5798if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5799 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5800else 5801 gl_unknown_warnings_are_errors= 5802fi 5803 5804 5805fi 5806 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Woverride-init" >&5 5808$as_echo_n "checking whether $CC handles -Woverride-init... " >&6; } 5809if ${gl_cv_warn_CFLAGS__Woverride_init+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811else 5812 5813 gl_save_compiler_FLAGS="$CFLAGS" 5814 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Woverride-init" 5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5816/* end confdefs.h. */ 5817 5818int 5819main () 5820{ 5821 5822 ; 5823 return 0; 5824} 5825_ACEOF 5826if ac_fn_c_try_link "$LINENO"; then : 5827 gl_cv_warn_CFLAGS__Woverride_init=yes 5828else 5829 gl_cv_warn_CFLAGS__Woverride_init=no 5830fi 5831rm -f core conftest.err conftest.$ac_objext \ 5832 conftest$ac_exeext conftest.$ac_ext 5833 CFLAGS="$gl_save_compiler_FLAGS" 5834 5835fi 5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Woverride_init" >&5 5837$as_echo "$gl_cv_warn_CFLAGS__Woverride_init" >&6; } 5838if test "x$gl_cv_warn_CFLAGS__Woverride_init" = xyes; then : 5839 as_fn_append WARN_CFLAGS " -Woverride-init" 5840fi 5841 5842 5843if test x${gl_unknown_warnings_are_errors+set} = x; then : 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5845$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5846if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5847 $as_echo_n "(cached) " >&6 5848else 5849 5850 gl_save_compiler_FLAGS="$CFLAGS" 5851 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5853/* end confdefs.h. */ 5854 5855int 5856main () 5857{ 5858 5859 ; 5860 return 0; 5861} 5862_ACEOF 5863if ac_fn_c_try_link "$LINENO"; then : 5864 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5865else 5866 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5867fi 5868rm -f core conftest.err conftest.$ac_objext \ 5869 conftest$ac_exeext conftest.$ac_ext 5870 CFLAGS="$gl_save_compiler_FLAGS" 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5874$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5875if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5876 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5877else 5878 gl_unknown_warnings_are_errors= 5879fi 5880 5881 5882fi 5883 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wsign-compare" >&5 5885$as_echo_n "checking whether $CC handles -Wsign-compare... " >&6; } 5886if ${gl_cv_warn_CFLAGS__Wsign_compare+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 5890 gl_save_compiler_FLAGS="$CFLAGS" 5891 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare" 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894 5895int 5896main () 5897{ 5898 5899 ; 5900 return 0; 5901} 5902_ACEOF 5903if ac_fn_c_try_link "$LINENO"; then : 5904 gl_cv_warn_CFLAGS__Wsign_compare=yes 5905else 5906 gl_cv_warn_CFLAGS__Wsign_compare=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext \ 5909 conftest$ac_exeext conftest.$ac_ext 5910 CFLAGS="$gl_save_compiler_FLAGS" 5911 5912fi 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wsign_compare" >&5 5914$as_echo "$gl_cv_warn_CFLAGS__Wsign_compare" >&6; } 5915if test "x$gl_cv_warn_CFLAGS__Wsign_compare" = xyes; then : 5916 as_fn_append WARN_CFLAGS " -Wsign-compare" 5917fi 5918 5919 5920if test x${gl_unknown_warnings_are_errors+set} = x; then : 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5922$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 5923if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925else 5926 5927 gl_save_compiler_FLAGS="$CFLAGS" 5928 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5930/* end confdefs.h. */ 5931 5932int 5933main () 5934{ 5935 5936 ; 5937 return 0; 5938} 5939_ACEOF 5940if ac_fn_c_try_link "$LINENO"; then : 5941 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 5942else 5943 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 5944fi 5945rm -f core conftest.err conftest.$ac_objext \ 5946 conftest$ac_exeext conftest.$ac_ext 5947 CFLAGS="$gl_save_compiler_FLAGS" 5948 5949fi 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 5951$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 5952if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 5953 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 5954else 5955 gl_unknown_warnings_are_errors= 5956fi 5957 5958 5959fi 5960 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wtype-limits" >&5 5962$as_echo_n "checking whether $CC handles -Wtype-limits... " >&6; } 5963if ${gl_cv_warn_CFLAGS__Wtype_limits+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 5967 gl_save_compiler_FLAGS="$CFLAGS" 5968 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wtype-limits" 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971 5972int 5973main () 5974{ 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_link "$LINENO"; then : 5981 gl_cv_warn_CFLAGS__Wtype_limits=yes 5982else 5983 gl_cv_warn_CFLAGS__Wtype_limits=no 5984fi 5985rm -f core conftest.err conftest.$ac_objext \ 5986 conftest$ac_exeext conftest.$ac_ext 5987 CFLAGS="$gl_save_compiler_FLAGS" 5988 5989fi 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wtype_limits" >&5 5991$as_echo "$gl_cv_warn_CFLAGS__Wtype_limits" >&6; } 5992if test "x$gl_cv_warn_CFLAGS__Wtype_limits" = xyes; then : 5993 as_fn_append WARN_CFLAGS " -Wtype-limits" 5994fi 5995 5996 5997if test x${gl_unknown_warnings_are_errors+set} = x; then : 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 5999$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 6000if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 6004 gl_save_compiler_FLAGS="$CFLAGS" 6005 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007/* end confdefs.h. */ 6008 6009int 6010main () 6011{ 6012 6013 ; 6014 return 0; 6015} 6016_ACEOF 6017if ac_fn_c_try_link "$LINENO"; then : 6018 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 6019else 6020 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 6021fi 6022rm -f core conftest.err conftest.$ac_objext \ 6023 conftest$ac_exeext conftest.$ac_ext 6024 CFLAGS="$gl_save_compiler_FLAGS" 6025 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 6028$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 6029if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 6030 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 6031else 6032 gl_unknown_warnings_are_errors= 6033fi 6034 6035 6036fi 6037 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Wwrite-strings" >&5 6039$as_echo_n "checking whether $CC handles -Wwrite-strings... " >&6; } 6040if ${gl_cv_warn_CFLAGS__Wwrite_strings+:} false; then : 6041 $as_echo_n "(cached) " >&6 6042else 6043 6044 gl_save_compiler_FLAGS="$CFLAGS" 6045 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings" 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047/* end confdefs.h. */ 6048 6049int 6050main () 6051{ 6052 6053 ; 6054 return 0; 6055} 6056_ACEOF 6057if ac_fn_c_try_link "$LINENO"; then : 6058 gl_cv_warn_CFLAGS__Wwrite_strings=yes 6059else 6060 gl_cv_warn_CFLAGS__Wwrite_strings=no 6061fi 6062rm -f core conftest.err conftest.$ac_objext \ 6063 conftest$ac_exeext conftest.$ac_ext 6064 CFLAGS="$gl_save_compiler_FLAGS" 6065 6066fi 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Wwrite_strings" >&5 6068$as_echo "$gl_cv_warn_CFLAGS__Wwrite_strings" >&6; } 6069if test "x$gl_cv_warn_CFLAGS__Wwrite_strings" = xyes; then : 6070 as_fn_append WARN_CFLAGS " -Wwrite-strings" 6071fi 6072 6073 6074# Check whether --enable-gcc-Werror was given. 6075if test "${enable_gcc_Werror+set}" = set; then : 6076 enableval=$enable_gcc_Werror; case $enableval in 6077 yes) if test x${gl_unknown_warnings_are_errors+set} = x; then : 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror -Wunknown-warning-option" >&5 6079$as_echo_n "checking whether $CC handles -Werror -Wunknown-warning-option... " >&6; } 6080if ${gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 6084 gl_save_compiler_FLAGS="$CFLAGS" 6085 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088 6089int 6090main () 6091{ 6092 6093 ; 6094 return 0; 6095} 6096_ACEOF 6097if ac_fn_c_try_link "$LINENO"; then : 6098 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=yes 6099else 6100 gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option=no 6101fi 6102rm -f core conftest.err conftest.$ac_objext \ 6103 conftest$ac_exeext conftest.$ac_ext 6104 CFLAGS="$gl_save_compiler_FLAGS" 6105 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&5 6108$as_echo "$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" >&6; } 6109if test "x$gl_cv_warn_CFLAGS__Werror__Wunknown_warning_option" = xyes; then : 6110 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 6111else 6112 gl_unknown_warnings_are_errors= 6113fi 6114 6115 6116fi 6117 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC handles -Werror" >&5 6119$as_echo_n "checking whether $CC handles -Werror... " >&6; } 6120if ${gl_cv_warn_CFLAGS__Werror+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 6124 gl_save_compiler_FLAGS="$CFLAGS" 6125 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror" 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128 6129int 6130main () 6131{ 6132 6133 ; 6134 return 0; 6135} 6136_ACEOF 6137if ac_fn_c_try_link "$LINENO"; then : 6138 gl_cv_warn_CFLAGS__Werror=yes 6139else 6140 gl_cv_warn_CFLAGS__Werror=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext \ 6143 conftest$ac_exeext conftest.$ac_ext 6144 CFLAGS="$gl_save_compiler_FLAGS" 6145 6146fi 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS__Werror" >&5 6148$as_echo "$gl_cv_warn_CFLAGS__Werror" >&6; } 6149if test "x$gl_cv_warn_CFLAGS__Werror" = xyes; then : 6150 as_fn_append WARN_CFLAGS " -Werror" 6151fi 6152 6153 ;; 6154 no) ;; 6155 *) as_fn_error $? "bad value $enableval for gcc-Werror option" "$LINENO" 5 ;; 6156 esac 6157 6158fi 6159 6160 6161 6162 6163 6164 6165if test -n "${ac_c_decl_warn_flag+set}"; then : 6166 st_saved_ac_c_decl_warn_flag="${ac_c_decl_warn_flag}"; unset ac_c_decl_warn_flag 6167fi 6168 6169if test -n "${ac_c_preproc_warn_flag+set}"; then : 6170 st_saved_ac_c_preproc_warn_flag="${ac_c_preproc_warn_flag}"; unset ac_c_preproc_warn_flag 6171fi 6172 6173if test -n "${ac_c_werror_flag+set}"; then : 6174 st_saved_ac_c_werror_flag="${ac_c_werror_flag}"; unset ac_c_werror_flag 6175fi 6176 6177if test -n "${ac_compile+set}"; then : 6178 st_saved_ac_compile="${ac_compile}"; unset ac_compile 6179fi 6180 6181if test -n "${ac_compiler_gnu+set}"; then : 6182 st_saved_ac_compiler_gnu="${ac_compiler_gnu}"; unset ac_compiler_gnu 6183fi 6184 6185if test -n "${ac_cpp+set}"; then : 6186 st_saved_ac_cpp="${ac_cpp}"; unset ac_cpp 6187fi 6188 6189if test -n "${ac_cv_c_compiler_gnu+set}"; then : 6190 st_saved_ac_cv_c_compiler_gnu="${ac_cv_c_compiler_gnu}"; unset ac_cv_c_compiler_gnu 6191fi 6192 6193if test -n "${ac_cv_c_decl_report+set}"; then : 6194 st_saved_ac_cv_c_decl_report="${ac_cv_c_decl_report}"; unset ac_cv_c_decl_report 6195fi 6196 6197if test -n "${ac_link+set}"; then : 6198 st_saved_ac_link="${ac_link}"; unset ac_link 6199fi 6200 6201if test -n "${ac_tool_prefix+set}"; then : 6202 st_saved_ac_tool_prefix="${ac_tool_prefix}"; unset ac_tool_prefix 6203fi 6204 6205if test -n "${cross_compiling+set}"; then : 6206 st_saved_cross_compiling="${cross_compiling}"; unset cross_compiling 6207fi 6208 6209cross_compiling=no 6210 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: looking for a C compiler that generates native executables" >&5 6212$as_echo "$as_me: looking for a C compiler that generates native executables" >&6;} 6213ac_ext=c 6214ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6215ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6216ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6217ac_compiler_gnu=$ac_cv_c_compiler_gnu 6218if test -n "$ac_tool_prefix"; then 6219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6220set dummy ${ac_tool_prefix}gcc; ac_word=$2 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222$as_echo_n "checking for $ac_word... " >&6; } 6223if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 if test -n "$CC_FOR_BUILD"; then 6227 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244fi 6245fi 6246CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6247if test -n "$CC_FOR_BUILD"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6249$as_echo "$CC_FOR_BUILD" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252$as_echo "no" >&6; } 6253fi 6254 6255 6256fi 6257if test -z "$ac_cv_prog_CC_FOR_BUILD"; then 6258 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6259 # Extract the first word of "gcc", so it can be a program name with args. 6260set dummy gcc; ac_word=$2 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6262$as_echo_n "checking for $ac_word... " >&6; } 6263if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 if test -n "$ac_ct_CC_FOR_BUILD"; then 6267 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6268else 6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6270for as_dir in $PATH 6271do 6272 IFS=$as_save_IFS 6273 test -z "$as_dir" && as_dir=. 6274 for ac_exec_ext in '' $ac_executable_extensions; do 6275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6276 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc" 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6278 break 2 6279 fi 6280done 6281 done 6282IFS=$as_save_IFS 6283 6284fi 6285fi 6286ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6287if test -n "$ac_ct_CC_FOR_BUILD"; then 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6289$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 6290else 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6292$as_echo "no" >&6; } 6293fi 6294 6295 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6296 CC_FOR_BUILD="" 6297 else 6298 case $cross_compiling:$ac_tool_warned in 6299yes:) 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6301$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6302ac_tool_warned=yes ;; 6303esac 6304 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6305 fi 6306else 6307 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD" 6308fi 6309 6310if test -z "$CC_FOR_BUILD"; then 6311 if test -n "$ac_tool_prefix"; then 6312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6313set dummy ${ac_tool_prefix}cc; ac_word=$2 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315$as_echo_n "checking for $ac_word... " >&6; } 6316if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 if test -n "$CC_FOR_BUILD"; then 6320 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6321else 6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6329 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc" 6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333done 6334 done 6335IFS=$as_save_IFS 6336 6337fi 6338fi 6339CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6340if test -n "$CC_FOR_BUILD"; then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6342$as_echo "$CC_FOR_BUILD" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6345$as_echo "no" >&6; } 6346fi 6347 6348 6349 fi 6350fi 6351if test -z "$CC_FOR_BUILD"; then 6352 # Extract the first word of "cc", so it can be a program name with args. 6353set dummy cc; ac_word=$2 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6355$as_echo_n "checking for $ac_word... " >&6; } 6356if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 if test -n "$CC_FOR_BUILD"; then 6360 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6361else 6362 ac_prog_rejected=no 6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6364for as_dir in $PATH 6365do 6366 IFS=$as_save_IFS 6367 test -z "$as_dir" && as_dir=. 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6371 ac_prog_rejected=yes 6372 continue 6373 fi 6374 ac_cv_prog_CC_FOR_BUILD="cc" 6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6376 break 2 6377 fi 6378done 6379 done 6380IFS=$as_save_IFS 6381 6382if test $ac_prog_rejected = yes; then 6383 # We found a bogon in the path, so make sure we never use it. 6384 set dummy $ac_cv_prog_CC_FOR_BUILD 6385 shift 6386 if test $# != 0; then 6387 # We chose a different compiler from the bogus one. 6388 # However, it has the same basename, so the bogon will be chosen 6389 # first if we set CC_FOR_BUILD to just the basename; use the full file name. 6390 shift 6391 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@" 6392 fi 6393fi 6394fi 6395fi 6396CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6397if test -n "$CC_FOR_BUILD"; then 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6399$as_echo "$CC_FOR_BUILD" >&6; } 6400else 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6402$as_echo "no" >&6; } 6403fi 6404 6405 6406fi 6407if test -z "$CC_FOR_BUILD"; then 6408 if test -n "$ac_tool_prefix"; then 6409 for ac_prog in cl.exe 6410 do 6411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6412set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6414$as_echo_n "checking for $ac_word... " >&6; } 6415if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 if test -n "$CC_FOR_BUILD"; then 6419 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 6420else 6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422for as_dir in $PATH 6423do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6428 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog" 6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 break 2 6431 fi 6432done 6433 done 6434IFS=$as_save_IFS 6435 6436fi 6437fi 6438CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 6439if test -n "$CC_FOR_BUILD"; then 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 6441$as_echo "$CC_FOR_BUILD" >&6; } 6442else 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6444$as_echo "no" >&6; } 6445fi 6446 6447 6448 test -n "$CC_FOR_BUILD" && break 6449 done 6450fi 6451if test -z "$CC_FOR_BUILD"; then 6452 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD 6453 for ac_prog in cl.exe 6454do 6455 # Extract the first word of "$ac_prog", so it can be a program name with args. 6456set dummy $ac_prog; ac_word=$2 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6458$as_echo_n "checking for $ac_word... " >&6; } 6459if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then : 6460 $as_echo_n "(cached) " >&6 6461else 6462 if test -n "$ac_ct_CC_FOR_BUILD"; then 6463 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test. 6464else 6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6466for as_dir in $PATH 6467do 6468 IFS=$as_save_IFS 6469 test -z "$as_dir" && as_dir=. 6470 for ac_exec_ext in '' $ac_executable_extensions; do 6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6472 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog" 6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6474 break 2 6475 fi 6476done 6477 done 6478IFS=$as_save_IFS 6479 6480fi 6481fi 6482ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD 6483if test -n "$ac_ct_CC_FOR_BUILD"; then 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5 6485$as_echo "$ac_ct_CC_FOR_BUILD" >&6; } 6486else 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488$as_echo "no" >&6; } 6489fi 6490 6491 6492 test -n "$ac_ct_CC_FOR_BUILD" && break 6493done 6494 6495 if test "x$ac_ct_CC_FOR_BUILD" = x; then 6496 CC_FOR_BUILD="" 6497 else 6498 case $cross_compiling:$ac_tool_warned in 6499yes:) 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5 6501$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;} 6502ac_tool_warned=yes ;; 6503esac 6504 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD 6505 fi 6506fi 6507 6508fi 6509 6510 6511test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6513as_fn_error $? "no acceptable C compiler found in \$PATH 6514See \`config.log' for more details" "$LINENO" 5; } 6515 6516# Provide some information about the compiler. 6517$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6518set X $ac_compile 6519ac_compiler=$2 6520for ac_option in --version -v -V -qversion; do 6521 { { ac_try="$ac_compiler $ac_option >&5" 6522case "(($ac_try" in 6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6524 *) ac_try_echo=$ac_try;; 6525esac 6526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6527$as_echo "$ac_try_echo"; } >&5 6528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6529 ac_status=$? 6530 if test -s conftest.err; then 6531 sed '10a\ 6532... rest of stderr output deleted ... 6533 10q' conftest.err >conftest.er1 6534 cat conftest.er1 >&5 6535 fi 6536 rm -f conftest.er1 conftest.err 6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 test $ac_status = 0; } 6539done 6540 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6542$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6543if ${ac_cv_c_compiler_gnu+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6547/* end confdefs.h. */ 6548 6549int 6550main () 6551{ 6552#ifndef __GNUC__ 6553 choke me 6554#endif 6555 6556 ; 6557 return 0; 6558} 6559_ACEOF 6560if ac_fn_c_try_compile "$LINENO"; then : 6561 ac_compiler_gnu=yes 6562else 6563 ac_compiler_gnu=no 6564fi 6565rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 6566ac_cv_c_compiler_gnu=$ac_compiler_gnu 6567 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6570$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6571if test $ac_compiler_gnu = yes; then 6572 GCC=yes 6573else 6574 GCC= 6575fi 6576ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set} 6577ac_save_CFLAGS=$CFLAGS_FOR_BUILD 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5 6579$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; } 6580if ${ac_cv_build_prog_cc_g+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 ac_save_c_werror_flag=$ac_c_werror_flag 6584 ac_c_werror_flag=yes 6585 ac_cv_build_prog_cc_g=no 6586 CFLAGS_FOR_BUILD="-g" 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589 6590int 6591main () 6592{ 6593 6594 ; 6595 return 0; 6596} 6597_ACEOF 6598if ac_fn_c_try_compile "$LINENO"; then : 6599 ac_cv_build_prog_cc_g=yes 6600else 6601 CFLAGS_FOR_BUILD="" 6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604 6605int 6606main () 6607{ 6608 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613if ac_fn_c_try_compile "$LINENO"; then : 6614 6615else 6616 ac_c_werror_flag=$ac_save_c_werror_flag 6617 CFLAGS_FOR_BUILD="-g" 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619/* end confdefs.h. */ 6620 6621int 6622main () 6623{ 6624 6625 ; 6626 return 0; 6627} 6628_ACEOF 6629if ac_fn_c_try_compile "$LINENO"; then : 6630 ac_cv_build_prog_cc_g=yes 6631fi 6632rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 6633fi 6634rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 6635fi 6636rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext 6637 ac_c_werror_flag=$ac_save_c_werror_flag 6638fi 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5 6640$as_echo "$ac_cv_build_prog_cc_g" >&6; } 6641if test "$ac_test_CFLAGS" = set; then 6642 CFLAGS_FOR_BUILD=$ac_save_CFLAGS 6643elif test $ac_cv_build_prog_cc_g = yes; then 6644 if test "$GCC" = yes; then 6645 CFLAGS_FOR_BUILD="-g -O2" 6646 else 6647 CFLAGS_FOR_BUILD="-g" 6648 fi 6649else 6650 if test "$GCC" = yes; then 6651 CFLAGS_FOR_BUILD="-O2" 6652 else 6653 CFLAGS_FOR_BUILD= 6654 fi 6655fi 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5 6657$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; } 6658if ${ac_cv_build_prog_cc_c89+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 ac_cv_build_prog_cc_c89=no 6662ac_save_CC=$CC_FOR_BUILD 6663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6664/* end confdefs.h. */ 6665#include <stdarg.h> 6666#include <stdio.h> 6667struct stat; 6668/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6669struct buf { int x; }; 6670FILE * (*rcsopen) (struct buf *, struct stat *, int); 6671static char *e (p, i) 6672 char **p; 6673 int i; 6674{ 6675 return p[i]; 6676} 6677static char *f (char * (*g) (char **, int), char **p, ...) 6678{ 6679 char *s; 6680 va_list v; 6681 va_start (v,p); 6682 s = g (p, va_arg (v,int)); 6683 va_end (v); 6684 return s; 6685} 6686 6687/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6688 function prototypes and stuff, but not '\xHH' hex character constants. 6689 These don't provoke an error unfortunately, instead are silently treated 6690 as 'x'. The following induces an error, until -std is added to get 6691 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6692 array size at least. It's necessary to write '\x00'==0 to get something 6693 that's true only with -std. */ 6694int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6695 6696/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6697 inside strings and character constants. */ 6698#define FOO(x) 'x' 6699int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6700 6701int test (int i, double x); 6702struct s1 {int (*f) (int a);}; 6703struct s2 {int (*f) (double a);}; 6704int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6705int argc; 6706char **argv; 6707int 6708main () 6709{ 6710return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6716 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6717do 6718 CC_FOR_BUILD="$ac_save_CC $ac_arg" 6719 if ac_fn_c_try_compile "$LINENO"; then : 6720 ac_cv_build_prog_cc_c89=$ac_arg 6721fi 6722rm -f core conftest.err conftest.$ac_build_objext 6723 test "x$ac_cv_build_prog_cc_c89" != "xno" && break 6724done 6725rm -f conftest.$ac_ext 6726CC_FOR_BUILD=$ac_save_CC 6727 6728fi 6729# AC_CACHE_VAL 6730case "x$ac_cv_build_prog_cc_c89" in 6731 x) 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6733$as_echo "none needed" >&6; } ;; 6734 xno) 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6736$as_echo "unsupported" >&6; } ;; 6737 *) 6738 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_c89" 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_c89" >&5 6740$as_echo "$ac_cv_build_prog_cc_c89" >&6; } ;; 6741esac 6742if test "x$ac_cv_build_prog_cc_c89" != xno; then : 6743 6744fi 6745 6746ac_ext=c 6747ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6748ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6749ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6750ac_compiler_gnu=$ac_cv_c_compiler_gnu 6751 6752ac_ext=c 6753ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6754ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6755ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6756ac_compiler_gnu=$ac_cv_c_compiler_gnu 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5 6758$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; } 6759if ${am_cv_build_prog_cc_c_o+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764 6765int 6766main () 6767{ 6768 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773 # Make sure it works both with $CC and with simple cc. 6774 # Following AC_PROG_CC_C_O, we do the test twice because some 6775 # compilers refuse to overwrite an existing .o file with -o, 6776 # though they will create one. 6777 am_cv_build_prog_cc_c_o=yes 6778 for am_i in 1 2; do 6779 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5 6780 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5 6781 ac_status=$? 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); } \ 6784 && test -f conftest2.$ac_build_objext; then 6785 : OK 6786 else 6787 am_cv_build_prog_cc_c_o=no 6788 break 6789 fi 6790 done 6791 rm -f core conftest* 6792 unset am_i 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_prog_cc_c_o" >&5 6795$as_echo "$am_cv_build_prog_cc_c_o" >&6; } 6796if test "$am_cv_build_prog_cc_c_o" != yes; then 6797 # Losing compiler, so override with the script. 6798 # FIXME: It is wrong to rewrite CC. 6799 # But if we don't then we get into trouble of one sort or another. 6800 # A longer-term fix would be to have automake use am__CC in this case, 6801 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6802 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD" 6803fi 6804ac_ext=c 6805ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6806ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6807ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6808ac_compiler_gnu=$ac_cv_c_compiler_gnu 6809 6810 6811depcc="$CC_FOR_BUILD" am_compiler_list= 6812 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6814$as_echo_n "checking dependency style of $depcc... " >&6; } 6815if ${am_cv_build_CC_dependencies_compiler_type+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817else 6818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6819 # We make a subdir and do the tests there. Otherwise we can end up 6820 # making bogus files that we don't know about and never remove. For 6821 # instance it was reported that on HP-UX the gcc test will end up 6822 # making a dummy file named 'D' -- because '-MD' means "put the output 6823 # in D". 6824 rm -rf conftest.dir 6825 mkdir conftest.dir 6826 # Copy depcomp to subdir because otherwise we won't find it if we're 6827 # using a relative directory. 6828 cp "$am_depcomp" conftest.dir 6829 cd conftest.dir 6830 # We will build objects and dependencies in a subdirectory because 6831 # it helps to detect inapplicable dependency modes. For instance 6832 # both Tru64's cc and ICC support -MD to output dependencies as a 6833 # side effect of compilation, but ICC will put the dependencies in 6834 # the current directory while Tru64 will put them in the object 6835 # directory. 6836 mkdir sub 6837 6838 am_cv_build_CC_dependencies_compiler_type=none 6839 if test "$am_compiler_list" = ""; then 6840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6841 fi 6842 am__universal=false 6843 case " $depcc " in #( 6844 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6845 esac 6846 6847 for depmode in $am_compiler_list; do 6848 # Setup a source with many dependencies, because some compilers 6849 # like to wrap large dependency lists on column 80 (with \), and 6850 # we should not choose a depcomp mode which is confused by this. 6851 # 6852 # We need to recreate these files for each test, as the compiler may 6853 # overwrite some of them when testing with obscure command lines. 6854 # This happens at least with the AIX C compiler. 6855 : > sub/conftest.c 6856 for i in 1 2 3 4 5 6; do 6857 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6858 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6859 # Solaris 10 /bin/sh. 6860 echo '/* dummy */' > sub/conftst$i.h 6861 done 6862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6863 6864 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6865 # mode. It turns out that the SunPro C++ compiler does not properly 6866 # handle '-M -o', and we need to detect this. Also, some Intel 6867 # versions had trouble with output in subdirs. 6868 am__obj=sub/conftest.${OBJEXT-o} 6869 am__minus_obj="-o $am__obj" 6870 case $depmode in 6871 gcc) 6872 # This depmode causes a compiler race in universal mode. 6873 test "$am__universal" = false || continue 6874 ;; 6875 nosideeffect) 6876 # After this tag, mechanisms are not by side-effect, so they'll 6877 # only be used when explicitly requested. 6878 if test "x$enable_dependency_tracking" = xyes; then 6879 continue 6880 else 6881 break 6882 fi 6883 ;; 6884 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6885 # This compiler won't grok '-c -o', but also, the minuso test has 6886 # not run yet. These depmodes are late enough in the game, and 6887 # so weak that their functioning should not be impacted. 6888 am__obj=conftest.${OBJEXT-o} 6889 am__minus_obj= 6890 ;; 6891 none) break ;; 6892 esac 6893 if depmode=$depmode \ 6894 source=sub/conftest.c object=$am__obj \ 6895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6897 >/dev/null 2>conftest.err && 6898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6902 # icc doesn't choke on unknown options, it will just issue warnings 6903 # or remarks (even with -Werror). So we grep stderr for any message 6904 # that says an option was ignored or not supported. 6905 # When given -MP, icc 7.0 and 7.1 complain thusly: 6906 # icc: Command line warning: ignoring option '-M'; no argument required 6907 # The diagnosis changed in icc 8.0: 6908 # icc: Command line remark: option '-MP' not supported 6909 if (grep 'ignoring option' conftest.err || 6910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6911 am_cv_build_CC_dependencies_compiler_type=$depmode 6912 break 6913 fi 6914 fi 6915 done 6916 6917 cd .. 6918 rm -rf conftest.dir 6919else 6920 am_cv_build_CC_dependencies_compiler_type=none 6921fi 6922 6923fi 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_build_CC_dependencies_compiler_type" >&5 6925$as_echo "$am_cv_build_CC_dependencies_compiler_type" >&6; } 6926CCDEPMODE=depmode=$am_cv_build_CC_dependencies_compiler_type 6927 6928 if 6929 test "x$enable_dependency_tracking" != xno \ 6930 && test "$am_cv_build_CC_dependencies_compiler_type" = gcc3; then 6931 am__fastdepCC_TRUE= 6932 am__fastdepCC_FALSE='#' 6933else 6934 am__fastdepCC_TRUE='#' 6935 am__fastdepCC_FALSE= 6936fi 6937 6938 6939ac_ext=c 6940ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 6941ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 6942ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 6943ac_compiler_gnu=$ac_cv_c_compiler_gnu 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6945$as_echo_n "checking how to run the C preprocessor... " >&6; } 6946# On Suns, sometimes $CPP names a directory. 6947if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then 6948 CPP_FOR_BUILD= 6949fi 6950if test -z "$CPP_FOR_BUILD"; then 6951 if ${ac_cv_build_prog_CPP+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 # Double quotes because CPP needs to be expanded 6955 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp" 6956 do 6957 ac_preproc_ok=false 6958for ac_c_preproc_warn_flag in '' yes 6959do 6960 # Use a header file that comes with gcc, so configuring glibc 6961 # with a fresh cross-compiler works. 6962 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6963 # <limits.h> exists even on freestanding compilers. 6964 # On the NeXT, cc -E runs the code through the compiler's parser, 6965 # not just through cpp. "Syntax error" is here to catch this case. 6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968#ifdef __STDC__ 6969# include <limits.h> 6970#else 6971# include <assert.h> 6972#endif 6973 Syntax error 6974_ACEOF 6975if ac_fn_c_try_cpp "$LINENO"; then : 6976 6977else 6978 # Broken: fails on valid input. 6979continue 6980fi 6981rm -f conftest.err conftest.i conftest.$ac_ext 6982 6983 # OK, works on sane cases. Now check whether nonexistent headers 6984 # can be detected and how. 6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6986/* end confdefs.h. */ 6987#include <ac_nonexistent.h> 6988_ACEOF 6989if ac_fn_c_try_cpp "$LINENO"; then : 6990 # Broken: success on invalid input. 6991continue 6992else 6993 # Passes both tests. 6994ac_preproc_ok=: 6995break 6996fi 6997rm -f conftest.err conftest.i conftest.$ac_ext 6998 6999done 7000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7001rm -f conftest.i conftest.err conftest.$ac_ext 7002if $ac_preproc_ok; then : 7003 break 7004fi 7005 7006 done 7007 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7008 7009fi 7010 CPP_FOR_BUILD=$ac_cv_build_prog_CPP 7011else 7012 ac_cv_build_prog_CPP=$CPP_FOR_BUILD 7013fi 7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 7015$as_echo "$CPP_FOR_BUILD" >&6; } 7016ac_preproc_ok=false 7017for ac_c_preproc_warn_flag in '' yes 7018do 7019 # Use a header file that comes with gcc, so configuring glibc 7020 # with a fresh cross-compiler works. 7021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7022 # <limits.h> exists even on freestanding compilers. 7023 # On the NeXT, cc -E runs the code through the compiler's parser, 7024 # not just through cpp. "Syntax error" is here to catch this case. 7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7026/* end confdefs.h. */ 7027#ifdef __STDC__ 7028# include <limits.h> 7029#else 7030# include <assert.h> 7031#endif 7032 Syntax error 7033_ACEOF 7034if ac_fn_c_try_cpp "$LINENO"; then : 7035 7036else 7037 # Broken: fails on valid input. 7038continue 7039fi 7040rm -f conftest.err conftest.i conftest.$ac_ext 7041 7042 # OK, works on sane cases. Now check whether nonexistent headers 7043 # can be detected and how. 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046#include <ac_nonexistent.h> 7047_ACEOF 7048if ac_fn_c_try_cpp "$LINENO"; then : 7049 # Broken: success on invalid input. 7050continue 7051else 7052 # Passes both tests. 7053ac_preproc_ok=: 7054break 7055fi 7056rm -f conftest.err conftest.i conftest.$ac_ext 7057 7058done 7059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7060rm -f conftest.i conftest.err conftest.$ac_ext 7061if $ac_preproc_ok; then : 7062 7063else 7064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7066as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check 7067See \`config.log' for more details" "$LINENO" 5; } 7068fi 7069 7070ac_ext=c 7071ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD' 7072ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5' 7073ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5' 7074ac_compiler_gnu=$ac_cv_c_compiler_gnu 7075 7076 7077 7078if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7080$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7081if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 7085 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7086 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_link "$LINENO"; then : 7099 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7100else 7101 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7102fi 7103rm -f core conftest.err conftest.$ac_build_objext \ 7104 conftest$ac_build_exeext conftest.$ac_ext 7105 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7106 7107fi 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7109$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7110if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7111 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7112else 7113 gl_build_unknown_warnings_are_errors= 7114fi 7115 7116 7117fi 7118 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wall" >&5 7120$as_echo_n "checking whether $CC_FOR_BUILD handles -Wall... " >&6; } 7121if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wall+:} false; then : 7122 $as_echo_n "(cached) " >&6 7123else 7124 7125 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7126 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wall" 7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128/* end confdefs.h. */ 7129 7130int 7131main () 7132{ 7133 7134 ; 7135 return 0; 7136} 7137_ACEOF 7138if ac_fn_c_try_link "$LINENO"; then : 7139 gl_cv_warn_CFLAGS_FOR_BUILD__Wall=yes 7140else 7141 gl_cv_warn_CFLAGS_FOR_BUILD__Wall=no 7142fi 7143rm -f core conftest.err conftest.$ac_build_objext \ 7144 conftest$ac_build_exeext conftest.$ac_ext 7145 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7146 7147fi 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wall" >&5 7149$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wall" >&6; } 7150if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wall" = xyes; then : 7151 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wall" 7152fi 7153 7154 7155if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7157$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7158if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 7162 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7163 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7165/* end confdefs.h. */ 7166 7167int 7168main () 7169{ 7170 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175if ac_fn_c_try_link "$LINENO"; then : 7176 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7177else 7178 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7179fi 7180rm -f core conftest.err conftest.$ac_build_objext \ 7181 conftest$ac_build_exeext conftest.$ac_ext 7182 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7183 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7186$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7187if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7188 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7189else 7190 gl_build_unknown_warnings_are_errors= 7191fi 7192 7193 7194fi 7195 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wempty-body" >&5 7197$as_echo_n "checking whether $CC_FOR_BUILD handles -Wempty-body... " >&6; } 7198if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 7202 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7203 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wempty-body" 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206 7207int 7208main () 7209{ 7210 7211 ; 7212 return 0; 7213} 7214_ACEOF 7215if ac_fn_c_try_link "$LINENO"; then : 7216 gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body=yes 7217else 7218 gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body=no 7219fi 7220rm -f core conftest.err conftest.$ac_build_objext \ 7221 conftest$ac_build_exeext conftest.$ac_ext 7222 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7223 7224fi 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body" >&5 7226$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body" >&6; } 7227if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wempty_body" = xyes; then : 7228 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wempty-body" 7229fi 7230 7231 7232if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7234$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7235if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 7239 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7240 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243 7244int 7245main () 7246{ 7247 7248 ; 7249 return 0; 7250} 7251_ACEOF 7252if ac_fn_c_try_link "$LINENO"; then : 7253 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7254else 7255 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7256fi 7257rm -f core conftest.err conftest.$ac_build_objext \ 7258 conftest$ac_build_exeext conftest.$ac_ext 7259 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7260 7261fi 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7263$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7264if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7265 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7266else 7267 gl_build_unknown_warnings_are_errors= 7268fi 7269 7270 7271fi 7272 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wformat-security" >&5 7274$as_echo_n "checking whether $CC_FOR_BUILD handles -Wformat-security... " >&6; } 7275if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 7279 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7280 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wformat-security" 7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7282/* end confdefs.h. */ 7283 7284int 7285main () 7286{ 7287 7288 ; 7289 return 0; 7290} 7291_ACEOF 7292if ac_fn_c_try_link "$LINENO"; then : 7293 gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security=yes 7294else 7295 gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security=no 7296fi 7297rm -f core conftest.err conftest.$ac_build_objext \ 7298 conftest$ac_build_exeext conftest.$ac_ext 7299 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7300 7301fi 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security" >&5 7303$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security" >&6; } 7304if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wformat_security" = xyes; then : 7305 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wformat-security" 7306fi 7307 7308 7309if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7311$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7312if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 7316 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7317 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319/* end confdefs.h. */ 7320 7321int 7322main () 7323{ 7324 7325 ; 7326 return 0; 7327} 7328_ACEOF 7329if ac_fn_c_try_link "$LINENO"; then : 7330 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7331else 7332 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7333fi 7334rm -f core conftest.err conftest.$ac_build_objext \ 7335 conftest$ac_build_exeext conftest.$ac_ext 7336 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7337 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7340$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7341if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7342 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7343else 7344 gl_build_unknown_warnings_are_errors= 7345fi 7346 7347 7348fi 7349 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wignored-qualifiers" >&5 7351$as_echo_n "checking whether $CC_FOR_BUILD handles -Wignored-qualifiers... " >&6; } 7352if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 7356 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7357 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wignored-qualifiers" 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360 7361int 7362main () 7363{ 7364 7365 ; 7366 return 0; 7367} 7368_ACEOF 7369if ac_fn_c_try_link "$LINENO"; then : 7370 gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers=yes 7371else 7372 gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers=no 7373fi 7374rm -f core conftest.err conftest.$ac_build_objext \ 7375 conftest$ac_build_exeext conftest.$ac_ext 7376 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7377 7378fi 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers" >&5 7380$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers" >&6; } 7381if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wignored_qualifiers" = xyes; then : 7382 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wignored-qualifiers" 7383fi 7384 7385 7386if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7388$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7389if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 7393 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7394 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397 7398int 7399main () 7400{ 7401 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_link "$LINENO"; then : 7407 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7408else 7409 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7410fi 7411rm -f core conftest.err conftest.$ac_build_objext \ 7412 conftest$ac_build_exeext conftest.$ac_ext 7413 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7414 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7417$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7418if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7419 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7420else 7421 gl_build_unknown_warnings_are_errors= 7422fi 7423 7424 7425fi 7426 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wimplicit-fallthrough=5" >&5 7428$as_echo_n "checking whether $CC_FOR_BUILD handles -Wimplicit-fallthrough=5... " >&6; } 7429if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 7432 7433 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7434 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wimplicit-fallthrough=5" 7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7436/* end confdefs.h. */ 7437 7438int 7439main () 7440{ 7441 7442 ; 7443 return 0; 7444} 7445_ACEOF 7446if ac_fn_c_try_link "$LINENO"; then : 7447 gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5=yes 7448else 7449 gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5=no 7450fi 7451rm -f core conftest.err conftest.$ac_build_objext \ 7452 conftest$ac_build_exeext conftest.$ac_ext 7453 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7454 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5" >&5 7457$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5" >&6; } 7458if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wimplicit_fallthrough_5" = xyes; then : 7459 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wimplicit-fallthrough=5" 7460fi 7461 7462 7463if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7465$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7466if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 7470 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7471 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474 7475int 7476main () 7477{ 7478 7479 ; 7480 return 0; 7481} 7482_ACEOF 7483if ac_fn_c_try_link "$LINENO"; then : 7484 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7485else 7486 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7487fi 7488rm -f core conftest.err conftest.$ac_build_objext \ 7489 conftest$ac_build_exeext conftest.$ac_ext 7490 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7491 7492fi 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7494$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7495if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7496 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7497else 7498 gl_build_unknown_warnings_are_errors= 7499fi 7500 7501 7502fi 7503 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Winit-self" >&5 7505$as_echo_n "checking whether $CC_FOR_BUILD handles -Winit-self... " >&6; } 7506if ${gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 7510 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7511 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Winit-self" 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514 7515int 7516main () 7517{ 7518 7519 ; 7520 return 0; 7521} 7522_ACEOF 7523if ac_fn_c_try_link "$LINENO"; then : 7524 gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self=yes 7525else 7526 gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self=no 7527fi 7528rm -f core conftest.err conftest.$ac_build_objext \ 7529 conftest$ac_build_exeext conftest.$ac_ext 7530 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7531 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self" >&5 7534$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self" >&6; } 7535if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Winit_self" = xyes; then : 7536 as_fn_append WARN_CFLAGS_FOR_BUILD " -Winit-self" 7537fi 7538 7539 7540if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7542$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7543if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7544 $as_echo_n "(cached) " >&6 7545else 7546 7547 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7548 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551 7552int 7553main () 7554{ 7555 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560if ac_fn_c_try_link "$LINENO"; then : 7561 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7562else 7563 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7564fi 7565rm -f core conftest.err conftest.$ac_build_objext \ 7566 conftest$ac_build_exeext conftest.$ac_ext 7567 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7568 7569fi 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7571$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7572if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7573 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7574else 7575 gl_build_unknown_warnings_are_errors= 7576fi 7577 7578 7579fi 7580 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Winitializer-overrides" >&5 7582$as_echo_n "checking whether $CC_FOR_BUILD handles -Winitializer-overrides... " >&6; } 7583if ${gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 7587 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7588 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Winitializer-overrides" 7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7590/* end confdefs.h. */ 7591 7592int 7593main () 7594{ 7595 7596 ; 7597 return 0; 7598} 7599_ACEOF 7600if ac_fn_c_try_link "$LINENO"; then : 7601 gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides=yes 7602else 7603 gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides=no 7604fi 7605rm -f core conftest.err conftest.$ac_build_objext \ 7606 conftest$ac_build_exeext conftest.$ac_ext 7607 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7608 7609fi 7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides" >&5 7611$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides" >&6; } 7612if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Winitializer_overrides" = xyes; then : 7613 as_fn_append WARN_CFLAGS_FOR_BUILD " -Winitializer-overrides" 7614fi 7615 7616 7617if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7619$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7620if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 7624 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7625 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628 7629int 7630main () 7631{ 7632 7633 ; 7634 return 0; 7635} 7636_ACEOF 7637if ac_fn_c_try_link "$LINENO"; then : 7638 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7639else 7640 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7641fi 7642rm -f core conftest.err conftest.$ac_build_objext \ 7643 conftest$ac_build_exeext conftest.$ac_ext 7644 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7645 7646fi 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7648$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7649if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7650 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7651else 7652 gl_build_unknown_warnings_are_errors= 7653fi 7654 7655 7656fi 7657 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wlogical-op" >&5 7659$as_echo_n "checking whether $CC_FOR_BUILD handles -Wlogical-op... " >&6; } 7660if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 7664 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7665 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wlogical-op" 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667/* end confdefs.h. */ 7668 7669int 7670main () 7671{ 7672 7673 ; 7674 return 0; 7675} 7676_ACEOF 7677if ac_fn_c_try_link "$LINENO"; then : 7678 gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op=yes 7679else 7680 gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op=no 7681fi 7682rm -f core conftest.err conftest.$ac_build_objext \ 7683 conftest$ac_build_exeext conftest.$ac_ext 7684 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7685 7686fi 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op" >&5 7688$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op" >&6; } 7689if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wlogical_op" = xyes; then : 7690 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wlogical-op" 7691fi 7692 7693 7694if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7696$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7697if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 7701 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7702 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705 7706int 7707main () 7708{ 7709 7710 ; 7711 return 0; 7712} 7713_ACEOF 7714if ac_fn_c_try_link "$LINENO"; then : 7715 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7716else 7717 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7718fi 7719rm -f core conftest.err conftest.$ac_build_objext \ 7720 conftest$ac_build_exeext conftest.$ac_ext 7721 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7722 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7725$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7726if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7727 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7728else 7729 gl_build_unknown_warnings_are_errors= 7730fi 7731 7732 7733fi 7734 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wmissing-parameter-type" >&5 7736$as_echo_n "checking whether $CC_FOR_BUILD handles -Wmissing-parameter-type... " >&6; } 7737if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 7741 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7742 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wmissing-parameter-type" 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744/* end confdefs.h. */ 7745 7746int 7747main () 7748{ 7749 7750 ; 7751 return 0; 7752} 7753_ACEOF 7754if ac_fn_c_try_link "$LINENO"; then : 7755 gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type=yes 7756else 7757 gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type=no 7758fi 7759rm -f core conftest.err conftest.$ac_build_objext \ 7760 conftest$ac_build_exeext conftest.$ac_ext 7761 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7762 7763fi 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type" >&5 7765$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type" >&6; } 7766if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wmissing_parameter_type" = xyes; then : 7767 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wmissing-parameter-type" 7768fi 7769 7770 7771if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7773$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7774if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7775 $as_echo_n "(cached) " >&6 7776else 7777 7778 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7779 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782 7783int 7784main () 7785{ 7786 7787 ; 7788 return 0; 7789} 7790_ACEOF 7791if ac_fn_c_try_link "$LINENO"; then : 7792 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7793else 7794 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7795fi 7796rm -f core conftest.err conftest.$ac_build_objext \ 7797 conftest$ac_build_exeext conftest.$ac_ext 7798 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7799 7800fi 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7802$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7803if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7804 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7805else 7806 gl_build_unknown_warnings_are_errors= 7807fi 7808 7809 7810fi 7811 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wnested-externs" >&5 7813$as_echo_n "checking whether $CC_FOR_BUILD handles -Wnested-externs... " >&6; } 7814if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 7818 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7819 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wnested-externs" 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822 7823int 7824main () 7825{ 7826 7827 ; 7828 return 0; 7829} 7830_ACEOF 7831if ac_fn_c_try_link "$LINENO"; then : 7832 gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs=yes 7833else 7834 gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs=no 7835fi 7836rm -f core conftest.err conftest.$ac_build_objext \ 7837 conftest$ac_build_exeext conftest.$ac_ext 7838 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7839 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs" >&5 7842$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs" >&6; } 7843if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wnested_externs" = xyes; then : 7844 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wnested-externs" 7845fi 7846 7847 7848if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7850$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7851if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7852 $as_echo_n "(cached) " >&6 7853else 7854 7855 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7856 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858/* end confdefs.h. */ 7859 7860int 7861main () 7862{ 7863 7864 ; 7865 return 0; 7866} 7867_ACEOF 7868if ac_fn_c_try_link "$LINENO"; then : 7869 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7870else 7871 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7872fi 7873rm -f core conftest.err conftest.$ac_build_objext \ 7874 conftest$ac_build_exeext conftest.$ac_ext 7875 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7876 7877fi 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7879$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7880if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7881 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7882else 7883 gl_build_unknown_warnings_are_errors= 7884fi 7885 7886 7887fi 7888 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wold-style-declaration" >&5 7890$as_echo_n "checking whether $CC_FOR_BUILD handles -Wold-style-declaration... " >&6; } 7891if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 7895 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7896 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wold-style-declaration" 7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7898/* end confdefs.h. */ 7899 7900int 7901main () 7902{ 7903 7904 ; 7905 return 0; 7906} 7907_ACEOF 7908if ac_fn_c_try_link "$LINENO"; then : 7909 gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration=yes 7910else 7911 gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration=no 7912fi 7913rm -f core conftest.err conftest.$ac_build_objext \ 7914 conftest$ac_build_exeext conftest.$ac_ext 7915 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7916 7917fi 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration" >&5 7919$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration" >&6; } 7920if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_declaration" = xyes; then : 7921 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wold-style-declaration" 7922fi 7923 7924 7925if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 7927$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 7928if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 7932 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7933 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936 7937int 7938main () 7939{ 7940 7941 ; 7942 return 0; 7943} 7944_ACEOF 7945if ac_fn_c_try_link "$LINENO"; then : 7946 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 7947else 7948 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 7949fi 7950rm -f core conftest.err conftest.$ac_build_objext \ 7951 conftest$ac_build_exeext conftest.$ac_ext 7952 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7953 7954fi 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 7956$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 7957if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 7958 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 7959else 7960 gl_build_unknown_warnings_are_errors= 7961fi 7962 7963 7964fi 7965 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wold-style-definition" >&5 7967$as_echo_n "checking whether $CC_FOR_BUILD handles -Wold-style-definition... " >&6; } 7968if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 7972 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 7973 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wold-style-definition" 7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975/* end confdefs.h. */ 7976 7977int 7978main () 7979{ 7980 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985if ac_fn_c_try_link "$LINENO"; then : 7986 gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition=yes 7987else 7988 gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition=no 7989fi 7990rm -f core conftest.err conftest.$ac_build_objext \ 7991 conftest$ac_build_exeext conftest.$ac_ext 7992 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 7993 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition" >&5 7996$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition" >&6; } 7997if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wold_style_definition" = xyes; then : 7998 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wold-style-definition" 7999fi 8000 8001 8002if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 8004$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 8005if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 8009 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8010 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8012/* end confdefs.h. */ 8013 8014int 8015main () 8016{ 8017 8018 ; 8019 return 0; 8020} 8021_ACEOF 8022if ac_fn_c_try_link "$LINENO"; then : 8023 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 8024else 8025 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 8026fi 8027rm -f core conftest.err conftest.$ac_build_objext \ 8028 conftest$ac_build_exeext conftest.$ac_ext 8029 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8030 8031fi 8032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 8033$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 8034if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 8035 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 8036else 8037 gl_build_unknown_warnings_are_errors= 8038fi 8039 8040 8041fi 8042 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Woverride-init" >&5 8044$as_echo_n "checking whether $CC_FOR_BUILD handles -Woverride-init... " >&6; } 8045if ${gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 8049 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8050 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Woverride-init" 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8052/* end confdefs.h. */ 8053 8054int 8055main () 8056{ 8057 8058 ; 8059 return 0; 8060} 8061_ACEOF 8062if ac_fn_c_try_link "$LINENO"; then : 8063 gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init=yes 8064else 8065 gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init=no 8066fi 8067rm -f core conftest.err conftest.$ac_build_objext \ 8068 conftest$ac_build_exeext conftest.$ac_ext 8069 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8070 8071fi 8072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init" >&5 8073$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init" >&6; } 8074if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Woverride_init" = xyes; then : 8075 as_fn_append WARN_CFLAGS_FOR_BUILD " -Woverride-init" 8076fi 8077 8078 8079if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 8081$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 8082if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 8086 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8087 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090 8091int 8092main () 8093{ 8094 8095 ; 8096 return 0; 8097} 8098_ACEOF 8099if ac_fn_c_try_link "$LINENO"; then : 8100 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 8101else 8102 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 8103fi 8104rm -f core conftest.err conftest.$ac_build_objext \ 8105 conftest$ac_build_exeext conftest.$ac_ext 8106 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8107 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 8110$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 8111if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 8112 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 8113else 8114 gl_build_unknown_warnings_are_errors= 8115fi 8116 8117 8118fi 8119 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wsign-compare" >&5 8121$as_echo_n "checking whether $CC_FOR_BUILD handles -Wsign-compare... " >&6; } 8122if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124else 8125 8126 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8127 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wsign-compare" 8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130 8131int 8132main () 8133{ 8134 8135 ; 8136 return 0; 8137} 8138_ACEOF 8139if ac_fn_c_try_link "$LINENO"; then : 8140 gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare=yes 8141else 8142 gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare=no 8143fi 8144rm -f core conftest.err conftest.$ac_build_objext \ 8145 conftest$ac_build_exeext conftest.$ac_ext 8146 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8147 8148fi 8149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare" >&5 8150$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare" >&6; } 8151if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wsign_compare" = xyes; then : 8152 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wsign-compare" 8153fi 8154 8155 8156if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 8158$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 8159if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 8163 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8164 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8166/* end confdefs.h. */ 8167 8168int 8169main () 8170{ 8171 8172 ; 8173 return 0; 8174} 8175_ACEOF 8176if ac_fn_c_try_link "$LINENO"; then : 8177 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 8178else 8179 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 8180fi 8181rm -f core conftest.err conftest.$ac_build_objext \ 8182 conftest$ac_build_exeext conftest.$ac_ext 8183 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8184 8185fi 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 8187$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 8188if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 8189 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 8190else 8191 gl_build_unknown_warnings_are_errors= 8192fi 8193 8194 8195fi 8196 8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wtype-limits" >&5 8198$as_echo_n "checking whether $CC_FOR_BUILD handles -Wtype-limits... " >&6; } 8199if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 8203 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8204 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wtype-limits" 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206/* end confdefs.h. */ 8207 8208int 8209main () 8210{ 8211 8212 ; 8213 return 0; 8214} 8215_ACEOF 8216if ac_fn_c_try_link "$LINENO"; then : 8217 gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits=yes 8218else 8219 gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits=no 8220fi 8221rm -f core conftest.err conftest.$ac_build_objext \ 8222 conftest$ac_build_exeext conftest.$ac_ext 8223 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8224 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits" >&5 8227$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits" >&6; } 8228if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wtype_limits" = xyes; then : 8229 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wtype-limits" 8230fi 8231 8232 8233if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 8235$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 8236if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 8240 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8241 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244 8245int 8246main () 8247{ 8248 8249 ; 8250 return 0; 8251} 8252_ACEOF 8253if ac_fn_c_try_link "$LINENO"; then : 8254 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 8255else 8256 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 8257fi 8258rm -f core conftest.err conftest.$ac_build_objext \ 8259 conftest$ac_build_exeext conftest.$ac_ext 8260 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8261 8262fi 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 8264$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 8265if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 8266 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 8267else 8268 gl_build_unknown_warnings_are_errors= 8269fi 8270 8271 8272fi 8273 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Wwrite-strings" >&5 8275$as_echo_n "checking whether $CC_FOR_BUILD handles -Wwrite-strings... " >&6; } 8276if ${gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 8280 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8281 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Wwrite-strings" 8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8283/* end confdefs.h. */ 8284 8285int 8286main () 8287{ 8288 8289 ; 8290 return 0; 8291} 8292_ACEOF 8293if ac_fn_c_try_link "$LINENO"; then : 8294 gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings=yes 8295else 8296 gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings=no 8297fi 8298rm -f core conftest.err conftest.$ac_build_objext \ 8299 conftest$ac_build_exeext conftest.$ac_ext 8300 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8301 8302fi 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings" >&5 8304$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings" >&6; } 8305if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Wwrite_strings" = xyes; then : 8306 as_fn_append WARN_CFLAGS_FOR_BUILD " -Wwrite-strings" 8307fi 8308 8309 8310# Check whether --enable-gcc-Werror was given. 8311if test "${enable_gcc_Werror+set}" = set; then : 8312 enableval=$enable_gcc_Werror; case $enableval in 8313 yes) if test x${gl_build_unknown_warnings_are_errors+set} = x; then : 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option" >&5 8315$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror -Wunknown-warning-option... " >&6; } 8316if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 8320 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8321 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324 8325int 8326main () 8327{ 8328 8329 ; 8330 return 0; 8331} 8332_ACEOF 8333if ac_fn_c_try_link "$LINENO"; then : 8334 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=yes 8335else 8336 gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option=no 8337fi 8338rm -f core conftest.err conftest.$ac_build_objext \ 8339 conftest$ac_build_exeext conftest.$ac_ext 8340 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8341 8342fi 8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&5 8344$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" >&6; } 8345if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror__Wunknown_warning_option" = xyes; then : 8346 gl_build_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 8347else 8348 gl_build_unknown_warnings_are_errors= 8349fi 8350 8351 8352fi 8353 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD handles -Werror" >&5 8355$as_echo_n "checking whether $CC_FOR_BUILD handles -Werror... " >&6; } 8356if ${gl_cv_warn_CFLAGS_FOR_BUILD__Werror+:} false; then : 8357 $as_echo_n "(cached) " >&6 8358else 8359 8360 gl_save_compiler_FLAGS="$CFLAGS_FOR_BUILD" 8361 as_fn_append CFLAGS_FOR_BUILD " $gl_build_unknown_warnings_are_errors -Werror" 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364 8365int 8366main () 8367{ 8368 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373if ac_fn_c_try_link "$LINENO"; then : 8374 gl_cv_warn_CFLAGS_FOR_BUILD__Werror=yes 8375else 8376 gl_cv_warn_CFLAGS_FOR_BUILD__Werror=no 8377fi 8378rm -f core conftest.err conftest.$ac_build_objext \ 8379 conftest$ac_build_exeext conftest.$ac_ext 8380 CFLAGS_FOR_BUILD="$gl_save_compiler_FLAGS" 8381 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_CFLAGS_FOR_BUILD__Werror" >&5 8384$as_echo "$gl_cv_warn_CFLAGS_FOR_BUILD__Werror" >&6; } 8385if test "x$gl_cv_warn_CFLAGS_FOR_BUILD__Werror" = xyes; then : 8386 as_fn_append WARN_CFLAGS_FOR_BUILD " -Werror" 8387fi 8388 8389 ;; 8390 no) ;; 8391 *) as_fn_error $? "bad value $enableval for gcc-Werror option" "$LINENO" 5 ;; 8392 esac 8393 8394fi 8395 8396 8397 8398 8399if test -n "${st_saved_cross_compiling+set}"; then : 8400 cross_compiling="${st_saved_cross_compiling}"; unset st_saved_cross_compiling 8401fi 8402 8403if test -n "${st_saved_ac_tool_prefix+set}"; then : 8404 ac_tool_prefix="${st_saved_ac_tool_prefix}"; unset st_saved_ac_tool_prefix 8405fi 8406 8407if test -n "${st_saved_ac_link+set}"; then : 8408 ac_link="${st_saved_ac_link}"; unset st_saved_ac_link 8409fi 8410 8411if test -n "${st_saved_ac_cv_c_decl_report+set}"; then : 8412 ac_cv_c_decl_report="${st_saved_ac_cv_c_decl_report}"; unset st_saved_ac_cv_c_decl_report 8413fi 8414 8415if test -n "${st_saved_ac_cv_c_compiler_gnu+set}"; then : 8416 ac_cv_c_compiler_gnu="${st_saved_ac_cv_c_compiler_gnu}"; unset st_saved_ac_cv_c_compiler_gnu 8417fi 8418 8419if test -n "${st_saved_ac_cpp+set}"; then : 8420 ac_cpp="${st_saved_ac_cpp}"; unset st_saved_ac_cpp 8421fi 8422 8423if test -n "${st_saved_ac_compiler_gnu+set}"; then : 8424 ac_compiler_gnu="${st_saved_ac_compiler_gnu}"; unset st_saved_ac_compiler_gnu 8425fi 8426 8427if test -n "${st_saved_ac_compile+set}"; then : 8428 ac_compile="${st_saved_ac_compile}"; unset st_saved_ac_compile 8429fi 8430 8431if test -n "${st_saved_ac_c_werror_flag+set}"; then : 8432 ac_c_werror_flag="${st_saved_ac_c_werror_flag}"; unset st_saved_ac_c_werror_flag 8433fi 8434 8435if test -n "${st_saved_ac_c_preproc_warn_flag+set}"; then : 8436 ac_c_preproc_warn_flag="${st_saved_ac_c_preproc_warn_flag}"; unset st_saved_ac_c_preproc_warn_flag 8437fi 8438 8439if test -n "${st_saved_ac_c_decl_warn_flag+set}"; then : 8440 ac_c_decl_warn_flag="${st_saved_ac_c_decl_warn_flag}"; unset st_saved_ac_c_decl_warn_flag 8441fi 8442 8443 8444 8445BUILD_EXEEXT=$ac_build_exeext 8446BUILD_OBJEXT=$ac_build_objext 8447 8448 8449if test -n "$ac_tool_prefix"; then 8450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8451set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453$as_echo_n "checking for $ac_word... " >&6; } 8454if ${ac_cv_prog_RANLIB+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 if test -n "$RANLIB"; then 8458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8459else 8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8461for as_dir in $PATH 8462do 8463 IFS=$as_save_IFS 8464 test -z "$as_dir" && as_dir=. 8465 for ac_exec_ext in '' $ac_executable_extensions; do 8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8469 break 2 8470 fi 8471done 8472 done 8473IFS=$as_save_IFS 8474 8475fi 8476fi 8477RANLIB=$ac_cv_prog_RANLIB 8478if test -n "$RANLIB"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8480$as_echo "$RANLIB" >&6; } 8481else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483$as_echo "no" >&6; } 8484fi 8485 8486 8487fi 8488if test -z "$ac_cv_prog_RANLIB"; then 8489 ac_ct_RANLIB=$RANLIB 8490 # Extract the first word of "ranlib", so it can be a program name with args. 8491set dummy ranlib; ac_word=$2 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493$as_echo_n "checking for $ac_word... " >&6; } 8494if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 if test -n "$ac_ct_RANLIB"; then 8498 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8499else 8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501for as_dir in $PATH 8502do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_prog_ac_ct_RANLIB="ranlib" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511done 8512 done 8513IFS=$as_save_IFS 8514 8515fi 8516fi 8517ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8518if test -n "$ac_ct_RANLIB"; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8520$as_echo "$ac_ct_RANLIB" >&6; } 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8523$as_echo "no" >&6; } 8524fi 8525 8526 if test "x$ac_ct_RANLIB" = x; then 8527 RANLIB=":" 8528 else 8529 case $cross_compiling:$ac_tool_warned in 8530yes:) 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8533ac_tool_warned=yes ;; 8534esac 8535 RANLIB=$ac_ct_RANLIB 8536 fi 8537else 8538 RANLIB="$ac_cv_prog_RANLIB" 8539fi 8540 8541 8542 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 8544$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 8545if ${ac_cv_path_GREP+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 if test -z "$GREP"; then 8549 ac_path_GREP_found=false 8550 # Loop through the user's path and test for each of PROGNAME-LIST 8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_prog in grep ggrep; do 8557 for ac_exec_ext in '' $ac_executable_extensions; do 8558 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 8559 as_fn_executable_p "$ac_path_GREP" || continue 8560# Check for GNU ac_path_GREP and select it if it is found. 8561 # Check for GNU $ac_path_GREP 8562case `"$ac_path_GREP" --version 2>&1` in 8563*GNU*) 8564 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 8565*) 8566 ac_count=0 8567 $as_echo_n 0123456789 >"conftest.in" 8568 while : 8569 do 8570 cat "conftest.in" "conftest.in" >"conftest.tmp" 8571 mv "conftest.tmp" "conftest.in" 8572 cp "conftest.in" "conftest.nl" 8573 $as_echo 'GREP' >> "conftest.nl" 8574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8576 as_fn_arith $ac_count + 1 && ac_count=$as_val 8577 if test $ac_count -gt ${ac_path_GREP_max-0}; then 8578 # Best one so far, save it but keep looking for a better one 8579 ac_cv_path_GREP="$ac_path_GREP" 8580 ac_path_GREP_max=$ac_count 8581 fi 8582 # 10*(2^10) chars as input seems more than enough 8583 test $ac_count -gt 10 && break 8584 done 8585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8586esac 8587 8588 $ac_path_GREP_found && break 3 8589 done 8590 done 8591 done 8592IFS=$as_save_IFS 8593 if test -z "$ac_cv_path_GREP"; then 8594 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8595 fi 8596else 8597 ac_cv_path_GREP=$GREP 8598fi 8599 8600fi 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 8602$as_echo "$ac_cv_path_GREP" >&6; } 8603 GREP="$ac_cv_path_GREP" 8604 8605 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 8607$as_echo_n "checking for egrep... " >&6; } 8608if ${ac_cv_path_EGREP+:} false; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 8612 then ac_cv_path_EGREP="$GREP -E" 8613 else 8614 if test -z "$EGREP"; then 8615 ac_path_EGREP_found=false 8616 # Loop through the user's path and test for each of PROGNAME-LIST 8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8619do 8620 IFS=$as_save_IFS 8621 test -z "$as_dir" && as_dir=. 8622 for ac_prog in egrep; do 8623 for ac_exec_ext in '' $ac_executable_extensions; do 8624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 8625 as_fn_executable_p "$ac_path_EGREP" || continue 8626# Check for GNU ac_path_EGREP and select it if it is found. 8627 # Check for GNU $ac_path_EGREP 8628case `"$ac_path_EGREP" --version 2>&1` in 8629*GNU*) 8630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 8631*) 8632 ac_count=0 8633 $as_echo_n 0123456789 >"conftest.in" 8634 while : 8635 do 8636 cat "conftest.in" "conftest.in" >"conftest.tmp" 8637 mv "conftest.tmp" "conftest.in" 8638 cp "conftest.in" "conftest.nl" 8639 $as_echo 'EGREP' >> "conftest.nl" 8640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 8641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8642 as_fn_arith $ac_count + 1 && ac_count=$as_val 8643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 8644 # Best one so far, save it but keep looking for a better one 8645 ac_cv_path_EGREP="$ac_path_EGREP" 8646 ac_path_EGREP_max=$ac_count 8647 fi 8648 # 10*(2^10) chars as input seems more than enough 8649 test $ac_count -gt 10 && break 8650 done 8651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8652esac 8653 8654 $ac_path_EGREP_found && break 3 8655 done 8656 done 8657 done 8658IFS=$as_save_IFS 8659 if test -z "$ac_cv_path_EGREP"; then 8660 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8661 fi 8662else 8663 ac_cv_path_EGREP=$EGREP 8664fi 8665 8666 fi 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 8669$as_echo "$ac_cv_path_EGREP" >&6; } 8670 EGREP="$ac_cv_path_EGREP" 8671 8672 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8674$as_echo_n "checking for ANSI C header files... " >&6; } 8675if ${ac_cv_header_stdc+:} false; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8679/* end confdefs.h. */ 8680#include <stdlib.h> 8681#include <stdarg.h> 8682#include <string.h> 8683#include <float.h> 8684 8685int 8686main () 8687{ 8688 8689 ; 8690 return 0; 8691} 8692_ACEOF 8693if ac_fn_c_try_compile "$LINENO"; then : 8694 ac_cv_header_stdc=yes 8695else 8696 ac_cv_header_stdc=no 8697fi 8698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8699 8700if test $ac_cv_header_stdc = yes; then 8701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8703/* end confdefs.h. */ 8704#include <string.h> 8705 8706_ACEOF 8707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8708 $EGREP "memchr" >/dev/null 2>&1; then : 8709 8710else 8711 ac_cv_header_stdc=no 8712fi 8713rm -f conftest* 8714 8715fi 8716 8717if test $ac_cv_header_stdc = yes; then 8718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8720/* end confdefs.h. */ 8721#include <stdlib.h> 8722 8723_ACEOF 8724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8725 $EGREP "free" >/dev/null 2>&1; then : 8726 8727else 8728 ac_cv_header_stdc=no 8729fi 8730rm -f conftest* 8731 8732fi 8733 8734if test $ac_cv_header_stdc = yes; then 8735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8736 if test "$cross_compiling" = yes; then : 8737 : 8738else 8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741#include <ctype.h> 8742#include <stdlib.h> 8743#if ((' ' & 0x0FF) == 0x020) 8744# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8745# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8746#else 8747# define ISLOWER(c) \ 8748 (('a' <= (c) && (c) <= 'i') \ 8749 || ('j' <= (c) && (c) <= 'r') \ 8750 || ('s' <= (c) && (c) <= 'z')) 8751# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8752#endif 8753 8754#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8755int 8756main () 8757{ 8758 int i; 8759 for (i = 0; i < 256; i++) 8760 if (XOR (islower (i), ISLOWER (i)) 8761 || toupper (i) != TOUPPER (i)) 8762 return 2; 8763 return 0; 8764} 8765_ACEOF 8766if ac_fn_c_try_run "$LINENO"; then : 8767 8768else 8769 ac_cv_header_stdc=no 8770fi 8771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8772 conftest.$ac_objext conftest.beam conftest.$ac_ext 8773fi 8774 8775fi 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8778$as_echo "$ac_cv_header_stdc" >&6; } 8779if test $ac_cv_header_stdc = yes; then 8780 8781$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8782 8783fi 8784 8785# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8786for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8787 inttypes.h stdint.h unistd.h 8788do : 8789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8790ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8791" 8792if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8793 cat >>confdefs.h <<_ACEOF 8794#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8795_ACEOF 8796 8797fi 8798 8799done 8800 8801 8802 8803 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 8804if test "x$ac_cv_header_minix_config_h" = xyes; then : 8805 MINIX=yes 8806else 8807 MINIX= 8808fi 8809 8810 8811 if test "$MINIX" = yes; then 8812 8813$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 8814 8815 8816$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 8817 8818 8819$as_echo "#define _MINIX 1" >>confdefs.h 8820 8821 fi 8822 8823 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 8825$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 8826if ${ac_cv_safe_to_define___extensions__+:} false; then : 8827 $as_echo_n "(cached) " >&6 8828else 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831 8832# define __EXTENSIONS__ 1 8833 $ac_includes_default 8834int 8835main () 8836{ 8837 8838 ; 8839 return 0; 8840} 8841_ACEOF 8842if ac_fn_c_try_compile "$LINENO"; then : 8843 ac_cv_safe_to_define___extensions__=yes 8844else 8845 ac_cv_safe_to_define___extensions__=no 8846fi 8847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8848fi 8849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 8850$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 8851 test $ac_cv_safe_to_define___extensions__ = yes && 8852 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 8853 8854 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 8855 8856 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 8857 8858 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 8859 8860 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 8861 8862 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8864$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8865if ${ac_cv_path_SED+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8869 for ac_i in 1 2 3 4 5 6 7; do 8870 ac_script="$ac_script$as_nl$ac_script" 8871 done 8872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8873 { ac_script=; unset ac_script;} 8874 if test -z "$SED"; then 8875 ac_path_SED_found=false 8876 # Loop through the user's path and test for each of PROGNAME-LIST 8877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8878for as_dir in $PATH 8879do 8880 IFS=$as_save_IFS 8881 test -z "$as_dir" && as_dir=. 8882 for ac_prog in sed gsed; do 8883 for ac_exec_ext in '' $ac_executable_extensions; do 8884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8885 as_fn_executable_p "$ac_path_SED" || continue 8886# Check for GNU ac_path_SED and select it if it is found. 8887 # Check for GNU $ac_path_SED 8888case `"$ac_path_SED" --version 2>&1` in 8889*GNU*) 8890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8891*) 8892 ac_count=0 8893 $as_echo_n 0123456789 >"conftest.in" 8894 while : 8895 do 8896 cat "conftest.in" "conftest.in" >"conftest.tmp" 8897 mv "conftest.tmp" "conftest.in" 8898 cp "conftest.in" "conftest.nl" 8899 $as_echo '' >> "conftest.nl" 8900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8902 as_fn_arith $ac_count + 1 && ac_count=$as_val 8903 if test $ac_count -gt ${ac_path_SED_max-0}; then 8904 # Best one so far, save it but keep looking for a better one 8905 ac_cv_path_SED="$ac_path_SED" 8906 ac_path_SED_max=$ac_count 8907 fi 8908 # 10*(2^10) chars as input seems more than enough 8909 test $ac_count -gt 10 && break 8910 done 8911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8912esac 8913 8914 $ac_path_SED_found && break 3 8915 done 8916 done 8917 done 8918IFS=$as_save_IFS 8919 if test -z "$ac_cv_path_SED"; then 8920 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8921 fi 8922else 8923 ac_cv_path_SED=$SED 8924fi 8925 8926fi 8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8928$as_echo "$ac_cv_path_SED" >&6; } 8929 SED="$ac_cv_path_SED" 8930 rm -f conftest.sed 8931 8932 8933 8934 8935 # allow to override gcov location 8936 8937# Check whether --with-gcov was given. 8938if test "${with_gcov+set}" = set; then : 8939 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov 8940else 8941 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov 8942fi 8943 8944 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 8946$as_echo_n "checking whether to build with code coverage support... " >&6; } 8947 # Check whether --enable-code-coverage was given. 8948if test "${enable_code_coverage+set}" = set; then : 8949 enableval=$enable_code_coverage; 8950else 8951 enable_code_coverage=no 8952fi 8953 8954 8955 if test x$enable_code_coverage = xyes; then 8956 CODE_COVERAGE_ENABLED_TRUE= 8957 CODE_COVERAGE_ENABLED_FALSE='#' 8958else 8959 CODE_COVERAGE_ENABLED_TRUE='#' 8960 CODE_COVERAGE_ENABLED_FALSE= 8961fi 8962 8963 CODE_COVERAGE_ENABLED=$enable_code_coverage 8964 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 8966$as_echo "$enable_code_coverage" >&6; } 8967 8968 if test "$enable_code_coverage" = "yes" ; then : 8969 8970 # check for gcov 8971 if test -n "$ac_tool_prefix"; then 8972 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 8973set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8975$as_echo_n "checking for $ac_word... " >&6; } 8976if ${ac_cv_prog_GCOV+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978else 8979 if test -n "$GCOV"; then 8980 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 8981else 8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8983for as_dir in $PATH 8984do 8985 IFS=$as_save_IFS 8986 test -z "$as_dir" && as_dir=. 8987 for ac_exec_ext in '' $ac_executable_extensions; do 8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8989 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8991 break 2 8992 fi 8993done 8994 done 8995IFS=$as_save_IFS 8996 8997fi 8998fi 8999GCOV=$ac_cv_prog_GCOV 9000if test -n "$GCOV"; then 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 9002$as_echo "$GCOV" >&6; } 9003else 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9005$as_echo "no" >&6; } 9006fi 9007 9008 9009fi 9010if test -z "$ac_cv_prog_GCOV"; then 9011 ac_ct_GCOV=$GCOV 9012 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 9013set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9015$as_echo_n "checking for $ac_word... " >&6; } 9016if ${ac_cv_prog_ac_ct_GCOV+:} false; then : 9017 $as_echo_n "(cached) " >&6 9018else 9019 if test -n "$ac_ct_GCOV"; then 9020 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 9021else 9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9023for as_dir in $PATH 9024do 9025 IFS=$as_save_IFS 9026 test -z "$as_dir" && as_dir=. 9027 for ac_exec_ext in '' $ac_executable_extensions; do 9028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9029 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9031 break 2 9032 fi 9033done 9034 done 9035IFS=$as_save_IFS 9036 9037fi 9038fi 9039ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 9040if test -n "$ac_ct_GCOV"; then 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 9042$as_echo "$ac_ct_GCOV" >&6; } 9043else 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9045$as_echo "no" >&6; } 9046fi 9047 9048 if test "x$ac_ct_GCOV" = x; then 9049 GCOV=":" 9050 else 9051 case $cross_compiling:$ac_tool_warned in 9052yes:) 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9055ac_tool_warned=yes ;; 9056esac 9057 GCOV=$ac_ct_GCOV 9058 fi 9059else 9060 GCOV="$ac_cv_prog_GCOV" 9061fi 9062 9063 if test "X$GCOV" = "X:"; then : 9064 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 9065fi 9066 9067 9068 if test "$GCC" = "no" ; then : 9069 9070 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 9071 9072fi 9073 9074 # Extract the first word of "lcov", so it can be a program name with args. 9075set dummy lcov; ac_word=$2 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9077$as_echo_n "checking for $ac_word... " >&6; } 9078if ${ac_cv_prog_LCOV+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 if test -n "$LCOV"; then 9082 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 9083else 9084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9085for as_dir in $PATH 9086do 9087 IFS=$as_save_IFS 9088 test -z "$as_dir" && as_dir=. 9089 for ac_exec_ext in '' $ac_executable_extensions; do 9090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9091 ac_cv_prog_LCOV="lcov" 9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9093 break 2 9094 fi 9095done 9096 done 9097IFS=$as_save_IFS 9098 9099fi 9100fi 9101LCOV=$ac_cv_prog_LCOV 9102if test -n "$LCOV"; then 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 9104$as_echo "$LCOV" >&6; } 9105else 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9107$as_echo "no" >&6; } 9108fi 9109 9110 9111 # Extract the first word of "genhtml", so it can be a program name with args. 9112set dummy genhtml; ac_word=$2 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9114$as_echo_n "checking for $ac_word... " >&6; } 9115if ${ac_cv_prog_GENHTML+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 if test -n "$GENHTML"; then 9119 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 9120else 9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9122for as_dir in $PATH 9123do 9124 IFS=$as_save_IFS 9125 test -z "$as_dir" && as_dir=. 9126 for ac_exec_ext in '' $ac_executable_extensions; do 9127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9128 ac_cv_prog_GENHTML="genhtml" 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9130 break 2 9131 fi 9132done 9133 done 9134IFS=$as_save_IFS 9135 9136fi 9137fi 9138GENHTML=$ac_cv_prog_GENHTML 9139if test -n "$GENHTML"; then 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 9141$as_echo "$GENHTML" >&6; } 9142else 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9144$as_echo "no" >&6; } 9145fi 9146 9147 9148 9149 if test -z "$LCOV" ; then : 9150 9151 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5 9152 9153fi 9154 9155 if test -z "$GENHTML" ; then : 9156 9157 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 9158 9159fi 9160 9161 CODE_COVERAGE_CPPFLAGS="-DENABLE_COVERAGE_GCOV -DNDEBUG" 9162 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 9163 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 9164 CODE_COVERAGE_LIBS="-lgcov" 9165 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS" 9166 9167 9168 9169 9170 9171 9172 9173 CODE_COVERAGE_RULES_CHECK=' 9174 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check 9175 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture 9176' 9177 CODE_COVERAGE_RULES_CAPTURE=' 9178 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS) 9179 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS) 9180 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp 9181 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS) 9182 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html" 9183' 9184 CODE_COVERAGE_RULES_CLEAN=' 9185clean: code-coverage-clean 9186distclean: code-coverage-clean 9187code-coverage-clean: 9188 -$(LCOV) --directory $(top_builddir) -z 9189 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY) 9190 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete 9191' 9192 9193else 9194 9195 CODE_COVERAGE_RULES_CHECK=' 9196 @echo "Need to reconfigure with --enable-code-coverage" 9197' 9198 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK" 9199 CODE_COVERAGE_RULES_CLEAN='' 9200 9201fi 9202 9203CODE_COVERAGE_RULES=' 9204# Code coverage 9205# 9206# Optional: 9207# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting. 9208# Multiple directories may be specified, separated by whitespace. 9209# (Default: $(top_builddir)) 9210# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated 9211# by lcov for code coverage. (Default: 9212# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info) 9213# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage 9214# reports to be created. (Default: 9215# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage) 9216# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage, 9217# set to 0 to disable it and leave empty to stay with the default. 9218# (Default: empty) 9219# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov 9220# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) 9221# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov 9222# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) 9223# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov 9224# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the 9225# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) 9226# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov 9227# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) 9228# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering 9229# lcov instance. (Default: empty) 9230# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov 9231# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) 9232# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the 9233# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE) 9234# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml 9235# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) 9236# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore 9237# 9238# The generated report will be titled using the $(PACKAGE_NAME) and 9239# $(PACKAGE_VERSION). In order to add the current git hash to the title, 9240# use the git-version-gen script, available online. 9241 9242# Optional variables 9243CODE_COVERAGE_DIRECTORY ?= $(top_builddir) 9244CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info 9245CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage 9246CODE_COVERAGE_BRANCH_COVERAGE ?= 9247CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ 9248--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) 9249CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) 9250CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)" 9251CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) 9252CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) 9253CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?= 9254CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) 9255CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\ 9256$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\ 9257--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE)) 9258CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) 9259CODE_COVERAGE_IGNORE_PATTERN ?= 9260 9261code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V)) 9262code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY)) 9263code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\ 9264 $(CODE_COVERAGE_OUTPUT_FILE); 9265code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V)) 9266code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY)) 9267code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\ 9268 $(CODE_COVERAGE_IGNORE_PATTERN); 9269code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V)) 9270code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY)) 9271code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY); 9272code_coverage_quiet = $(code_coverage_quiet_$(V)) 9273code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY)) 9274code_coverage_quiet_0 = --quiet 9275 9276# sanitizes the test-name: replaces with underscores: dashes and dots 9277code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1))) 9278 9279# Use recursive makes in order to ignore errors during check 9280check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"' 9281 9282# Capture code coverage data 9283code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"' 9284 9285# Hook rule executed before code-coverage-capture, overridable by the user 9286code-coverage-capture-hook: 9287 9288'"$CODE_COVERAGE_RULES_CLEAN"' 9289 9290GITIGNOREFILES ?= 9291GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY) 9292 9293A''M_DISTCHECK_CONFIGURE_FLAGS ?= 9294A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage 9295 9296.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean 9297' 9298 9299 9300 9301 9302 9303 9304$as_echo "#define COPYRIGHT_YEAR \"2018\"" >>confdefs.h 9305 9306COPYRIGHT_YEAR=2018 9307 9308 9309 9310$as_echo "#define MANPAGE_DATE \"2018-07-07\"" >>confdefs.h 9311 9312MANPAGE_DATE=2018-07-07 9313 9314 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported architecture" >&5 9316$as_echo_n "checking for supported architecture... " >&6; } 9317arch_m32= 9318arch_mx32= 9319cc_flags_m32=-m32 9320cc_flags_mx32=-mx32 9321case "$host_cpu" in 9322aarch64*) 9323 arch=aarch64 9324 arch_m32=arm 9325 9326$as_echo "#define AARCH64 1" >>confdefs.h 9327 9328 ;; 9329alpha*) 9330 arch=alpha 9331 9332$as_echo "#define ALPHA 1" >>confdefs.h 9333 9334 ;; 9335arc*) 9336 arch=arc 9337 9338$as_echo "#define ARC 1" >>confdefs.h 9339 9340 ;; 9341arm*) 9342 arch=arm 9343 9344$as_echo "#define ARM 1" >>confdefs.h 9345 9346 ;; 9347avr32*) 9348 arch=avr32 9349 9350$as_echo "#define AVR32 1" >>confdefs.h 9351 9352 ;; 9353bfin) 9354 arch=bfin 9355 9356$as_echo "#define BFIN 1" >>confdefs.h 9357 9358 ;; 9359hppa*|parisc*) 9360 arch=hppa 9361 9362$as_echo "#define HPPA 1" >>confdefs.h 9363 9364 ;; 9365i[3456]86|pentium) 9366 arch=i386 9367 9368$as_echo "#define I386 1" >>confdefs.h 9369 9370 ;; 9371ia64) 9372 arch=ia64 9373 9374$as_echo "#define IA64 1" >>confdefs.h 9375 9376 ;; 9377m68k) 9378 arch=m68k 9379 9380$as_echo "#define M68K 1" >>confdefs.h 9381 9382 ;; 9383metag*) 9384 arch=metag 9385 9386$as_echo "#define METAG 1" >>confdefs.h 9387 9388 ;; 9389microblaze*) 9390 arch=microblaze 9391 9392$as_echo "#define MICROBLAZE 1" >>confdefs.h 9393 9394 ;; 9395mips*) 9396 arch=mips 9397 9398$as_echo "#define MIPS 1" >>confdefs.h 9399 9400 ;; 9401nios2*) 9402 arch=nios2 9403 9404$as_echo "#define NIOS2 1" >>confdefs.h 9405 9406 ;; 9407or1k*) 9408 arch=or1k 9409 9410$as_echo "#define OR1K 1" >>confdefs.h 9411 9412 ;; 9413powerpc*) 9414 9415$as_echo "#define POWERPC 1" >>confdefs.h 9416 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419#ifndef __LP64__ 9420# error 32 bit 9421#endif 9422int 9423main () 9424{ 9425 9426 ; 9427 return 0; 9428} 9429_ACEOF 9430if ac_fn_c_try_compile "$LINENO"; then : 9431 arch=powerpc64 9432else 9433 arch=powerpc 9434fi 9435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9436 if test "$arch" = "powerpc64"; then 9437 arch_m32=powerpc 9438 9439$as_echo "#define POWERPC64 1" >>confdefs.h 9440 9441 fi 9442 ;; 9443riscv*) 9444 arch=riscv 9445 9446$as_echo "#define RISCV 1" >>confdefs.h 9447 9448 ;; 9449s390) 9450 arch=s390 9451 9452$as_echo "#define S390 1" >>confdefs.h 9453 9454 ;; 9455s390x) 9456 arch=s390x 9457 arch_m32=s390 9458 cc_flags_m32=-m31 9459 9460$as_echo "#define S390X 1" >>confdefs.h 9461 9462 ;; 9463sh64*) 9464 arch=sh64 9465 9466$as_echo "#define SH64 1" >>confdefs.h 9467 9468 ;; 9469sh*) 9470 arch=sh 9471 9472$as_echo "#define SH 1" >>confdefs.h 9473 9474 ;; 9475sparc64*) 9476 arch=sparc64 9477 arch_m32=sparc 9478 9479$as_echo "#define SPARC64 1" >>confdefs.h 9480 9481 ;; 9482sparc*) 9483 arch=sparc 9484 9485$as_echo "#define SPARC 1" >>confdefs.h 9486 9487 ;; 9488tile*) 9489 arch=tile 9490 9491$as_echo "#define TILE 1" >>confdefs.h 9492 9493 ;; 9494x86?64*) 9495 arch_m32=i386 9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497/* end confdefs.h. */ 9498#ifndef __ILP32__ 9499# error not x32 9500#endif 9501int 9502main () 9503{ 9504 9505 ; 9506 return 0; 9507} 9508_ACEOF 9509if ac_fn_c_try_compile "$LINENO"; then : 9510 arch=x32 9511else 9512 arch=x86_64 9513fi 9514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9515 if test "$arch" = "x86_64"; then 9516 arch_mx32=x32 9517 9518$as_echo "#define X86_64 1" >>confdefs.h 9519 9520 else 9521 9522$as_echo "#define X32 1" >>confdefs.h 9523 9524 fi 9525 ;; 9526xtensa*) 9527 arch=xtensa 9528 9529$as_echo "#define XTENSA 1" >>confdefs.h 9530 9531 ;; 9532*) 9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: NO!" >&5 9534$as_echo "NO!" >&6; } 9535 as_fn_error $? "architecture $host_cpu is not supported by strace" "$LINENO" 5 9536 ;; 9537esac 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $arch" >&5 9539$as_echo "$arch" >&6; } 9540 9541arch_native=$arch 9542 9543test -n "$arch_m32" || 9544 arch_m32=$arch 9545test -n "$arch_mx32" || 9546 arch_mx32=$arch 9547 9548 9549 9550 9551 9552 9553 9554MIPS_ABI= 9555if test "$arch" = mips; then 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _MIPS_SIM" >&5 9557$as_echo_n "checking for _MIPS_SIM... " >&6; } 9558if ${st_cv__MIPS_SIM+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 if ac_fn_c_compute_int "$LINENO" "_MIPS_SIM" "st_cv__MIPS_SIM" ""; then : 9562 9563else 9564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9566as_fn_error $? "_MIPS_SIM cannot be determined 9567See \`config.log' for more details" "$LINENO" 5; } 9568fi 9569 9570fi 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv__MIPS_SIM" >&5 9572$as_echo "$st_cv__MIPS_SIM" >&6; } 9573 9574 # requires GCC >= 3.4 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPS ABI" >&5 9576$as_echo_n "checking for MIPS ABI... " >&6; } 9577if ${st_cv_mips_abi+:} false; then : 9578 $as_echo_n "(cached) " >&6 9579else 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582 9583int 9584main () 9585{ 9586int i[_MIPS_SIM == _ABIO32 ? 1 : - 1]; 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_compile "$LINENO"; then : 9592 st_cv_mips_abi=o32 9593else 9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595/* end confdefs.h. */ 9596 9597int 9598main () 9599{ 9600int i[_MIPS_SIM == _ABIN32 ? 1 : - 1]; 9601 ; 9602 return 0; 9603} 9604_ACEOF 9605if ac_fn_c_try_compile "$LINENO"; then : 9606 st_cv_mips_abi=n32 9607else 9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610 9611int 9612main () 9613{ 9614int i[_MIPS_SIM == _ABI64 ? 1 : - 1]; 9615 ; 9616 return 0; 9617} 9618_ACEOF 9619if ac_fn_c_try_compile "$LINENO"; then : 9620 st_cv_mips_abi=n64 9621else 9622 st_cv_mips_abi=unknown 9623fi 9624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9625fi 9626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9627fi 9628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9629fi 9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_mips_abi" >&5 9631$as_echo "$st_cv_mips_abi" >&6; } 9632 9633 case "$st_cv_mips_abi" in 9634 o32) 9635$as_echo "#define LINUX_MIPSO32 1" >>confdefs.h 9636;; 9637 n32) 9638$as_echo "#define LINUX_MIPSN32 1" >>confdefs.h 9639;; 9640 n64) 9641$as_echo "#define LINUX_MIPSN64 1" >>confdefs.h 9642;; 9643 *) as_fn_error $? "Unsupported _MIPS_SIM" "$LINENO" 5;; 9644 esac 9645 MIPS_ABI="$st_cv_mips_abi" 9646fi 9647 9648 9649# Check whether --enable-arm-oabi was given. 9650if test "${enable_arm_oabi+set}" = set; then : 9651 enableval=$enable_arm_oabi; 9652else 9653 enable_arm_oabi=no 9654fi 9655 9656case "$enable_arm_oabi" in 9657 yes) enable_arm_oabi=1 ;; 9658 no) enable_arm_oabi=0 ;; 9659 *) as_fn_error $? "bad value $enable_arm_oabi for arm-oabi option" "$LINENO" 5 ;; 9660esac 9661 9662cat >>confdefs.h <<_ACEOF 9663#define ENABLE_ARM_OABI $enable_arm_oabi 9664_ACEOF 9665 9666 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9668$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9669if ${ac_cv_c_bigendian+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 ac_cv_c_bigendian=unknown 9673 # See if we're dealing with a universal compiler. 9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9675/* end confdefs.h. */ 9676#ifndef __APPLE_CC__ 9677 not a universal capable compiler 9678 #endif 9679 typedef int dummy; 9680 9681_ACEOF 9682if ac_fn_c_try_compile "$LINENO"; then : 9683 9684 # Check for potential -arch flags. It is not universal unless 9685 # there are at least two -arch flags with different values. 9686 ac_arch= 9687 ac_prev= 9688 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9689 if test -n "$ac_prev"; then 9690 case $ac_word in 9691 i?86 | x86_64 | ppc | ppc64) 9692 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9693 ac_arch=$ac_word 9694 else 9695 ac_cv_c_bigendian=universal 9696 break 9697 fi 9698 ;; 9699 esac 9700 ac_prev= 9701 elif test "x$ac_word" = "x-arch"; then 9702 ac_prev=arch 9703 fi 9704 done 9705fi 9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9707 if test $ac_cv_c_bigendian = unknown; then 9708 # See if sys/param.h defines the BYTE_ORDER macro. 9709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9710/* end confdefs.h. */ 9711#include <sys/types.h> 9712 #include <sys/param.h> 9713 9714int 9715main () 9716{ 9717#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9718 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9719 && LITTLE_ENDIAN) 9720 bogus endian macros 9721 #endif 9722 9723 ; 9724 return 0; 9725} 9726_ACEOF 9727if ac_fn_c_try_compile "$LINENO"; then : 9728 # It does; now see whether it defined to BIG_ENDIAN or not. 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731#include <sys/types.h> 9732 #include <sys/param.h> 9733 9734int 9735main () 9736{ 9737#if BYTE_ORDER != BIG_ENDIAN 9738 not big endian 9739 #endif 9740 9741 ; 9742 return 0; 9743} 9744_ACEOF 9745if ac_fn_c_try_compile "$LINENO"; then : 9746 ac_cv_c_bigendian=yes 9747else 9748 ac_cv_c_bigendian=no 9749fi 9750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9751fi 9752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9753 fi 9754 if test $ac_cv_c_bigendian = unknown; then 9755 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9757/* end confdefs.h. */ 9758#include <limits.h> 9759 9760int 9761main () 9762{ 9763#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9764 bogus endian macros 9765 #endif 9766 9767 ; 9768 return 0; 9769} 9770_ACEOF 9771if ac_fn_c_try_compile "$LINENO"; then : 9772 # It does; now see whether it defined to _BIG_ENDIAN or not. 9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774/* end confdefs.h. */ 9775#include <limits.h> 9776 9777int 9778main () 9779{ 9780#ifndef _BIG_ENDIAN 9781 not big endian 9782 #endif 9783 9784 ; 9785 return 0; 9786} 9787_ACEOF 9788if ac_fn_c_try_compile "$LINENO"; then : 9789 ac_cv_c_bigendian=yes 9790else 9791 ac_cv_c_bigendian=no 9792fi 9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9794fi 9795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9796 fi 9797 if test $ac_cv_c_bigendian = unknown; then 9798 # Compile a test program. 9799 if test "$cross_compiling" = yes; then : 9800 # Try to guess by grepping values from an object file. 9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802/* end confdefs.h. */ 9803short int ascii_mm[] = 9804 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9805 short int ascii_ii[] = 9806 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9807 int use_ascii (int i) { 9808 return ascii_mm[i] + ascii_ii[i]; 9809 } 9810 short int ebcdic_ii[] = 9811 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9812 short int ebcdic_mm[] = 9813 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9814 int use_ebcdic (int i) { 9815 return ebcdic_mm[i] + ebcdic_ii[i]; 9816 } 9817 extern int foo; 9818 9819int 9820main () 9821{ 9822return use_ascii (foo) == use_ebcdic (foo); 9823 ; 9824 return 0; 9825} 9826_ACEOF 9827if ac_fn_c_try_compile "$LINENO"; then : 9828 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9829 ac_cv_c_bigendian=yes 9830 fi 9831 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9832 if test "$ac_cv_c_bigendian" = unknown; then 9833 ac_cv_c_bigendian=no 9834 else 9835 # finding both strings is unlikely to happen, but who knows? 9836 ac_cv_c_bigendian=unknown 9837 fi 9838 fi 9839fi 9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9841else 9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843/* end confdefs.h. */ 9844$ac_includes_default 9845int 9846main () 9847{ 9848 9849 /* Are we little or big endian? From Harbison&Steele. */ 9850 union 9851 { 9852 long int l; 9853 char c[sizeof (long int)]; 9854 } u; 9855 u.l = 1; 9856 return u.c[sizeof (long int) - 1] == 1; 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_run "$LINENO"; then : 9863 ac_cv_c_bigendian=no 9864else 9865 ac_cv_c_bigendian=yes 9866fi 9867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9868 conftest.$ac_objext conftest.beam conftest.$ac_ext 9869fi 9870 9871 fi 9872fi 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9874$as_echo "$ac_cv_c_bigendian" >&6; } 9875 case $ac_cv_c_bigendian in #( 9876 yes) 9877 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9878;; #( 9879 no) 9880 ;; #( 9881 universal) 9882 9883$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9884 9885 ;; #( 9886 *) 9887 as_fn_error $? "unknown endianness 9888 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9889 esac 9890 9891 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 9893$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; } 9894if ${ac_cv_c_typeof+:} false; then : 9895 $as_echo_n "(cached) " >&6 9896else 9897 ac_cv_c_typeof=no 9898 for ac_kw in typeof __typeof__ no; do 9899 test $ac_kw = no && break 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9901/* end confdefs.h. */ 9902 9903int 9904main () 9905{ 9906 9907 int value; 9908 typedef struct { 9909 char a [1 9910 + ! (($ac_kw (value)) 9911 (($ac_kw (value)) 0 < ($ac_kw (value)) -1 9912 ? ($ac_kw (value)) - 1 9913 : ~ (~ ($ac_kw (value)) 0 9914 << sizeof ($ac_kw (value)))))]; } 9915 ac__typeof_type_; 9916 return 9917 (! ((void) ((ac__typeof_type_ *) 0), 0)); 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923if ac_fn_c_try_compile "$LINENO"; then : 9924 ac_cv_c_typeof=$ac_kw 9925fi 9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9927 test $ac_cv_c_typeof != no && break 9928 done 9929fi 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 9931$as_echo "$ac_cv_c_typeof" >&6; } 9932 if test $ac_cv_c_typeof != no; then 9933 9934$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 9935 9936 if test $ac_cv_c_typeof != typeof; then 9937 9938cat >>confdefs.h <<_ACEOF 9939#define typeof $ac_cv_c_typeof 9940_ACEOF 9941 9942 fi 9943 fi 9944 9945 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 9947$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 9948if ${ac_cv_type_uid_t+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950else 9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952/* end confdefs.h. */ 9953#include <sys/types.h> 9954 9955_ACEOF 9956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9957 $EGREP "uid_t" >/dev/null 2>&1; then : 9958 ac_cv_type_uid_t=yes 9959else 9960 ac_cv_type_uid_t=no 9961fi 9962rm -f conftest* 9963 9964fi 9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 9966$as_echo "$ac_cv_type_uid_t" >&6; } 9967if test $ac_cv_type_uid_t = no; then 9968 9969$as_echo "#define uid_t int" >>confdefs.h 9970 9971 9972$as_echo "#define gid_t int" >>confdefs.h 9973 9974fi 9975 9976 9977for ac_func in accept4 be64toh fallocate fanotify_mark fopen64 fork fputs_unlocked fstatat ftruncate futimens iconv_open if_indextoname open64 prctl preadv process_vm_readv pwritev readahead signalfd stpcpy strerror strndup strsignal sync_file_range utimensat 9978do : 9979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9981if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9982 cat >>confdefs.h <<_ACEOF 9983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9984_ACEOF 9985 9986fi 9987done 9988 9989 9990ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h> 9991" 9992if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 9993 9994cat >>confdefs.h <<_ACEOF 9995#define HAVE_SIG_ATOMIC_T 1 9996_ACEOF 9997 9998 9999fi 10000ac_fn_c_check_type "$LINENO" "struct sigcontext" "ac_cv_type_struct_sigcontext" "#include <signal.h> 10001" 10002if test "x$ac_cv_type_struct_sigcontext" = xyes; then : 10003 10004cat >>confdefs.h <<_ACEOF 10005#define HAVE_STRUCT_SIGCONTEXT 1 10006_ACEOF 10007 10008 10009fi 10010 10011 10012ac_fn_c_check_type "$LINENO" "struct mmsghdr" "ac_cv_type_struct_mmsghdr" "#include <sys/socket.h> 10013" 10014if test "x$ac_cv_type_struct_mmsghdr" = xyes; then : 10015 10016cat >>confdefs.h <<_ACEOF 10017#define HAVE_STRUCT_MMSGHDR 1 10018_ACEOF 10019 10020 10021fi 10022 10023 10024ac_fn_c_check_type "$LINENO" "__kernel_long_t" "ac_cv_type___kernel_long_t" "#include <asm/posix_types.h> 10025" 10026if test "x$ac_cv_type___kernel_long_t" = xyes; then : 10027 10028cat >>confdefs.h <<_ACEOF 10029#define HAVE___KERNEL_LONG_T 1 10030_ACEOF 10031 10032 10033fi 10034ac_fn_c_check_type "$LINENO" "__kernel_ulong_t" "ac_cv_type___kernel_ulong_t" "#include <asm/posix_types.h> 10035" 10036if test "x$ac_cv_type___kernel_ulong_t" = xyes; then : 10037 10038cat >>confdefs.h <<_ACEOF 10039#define HAVE___KERNEL_ULONG_T 1 10040_ACEOF 10041 10042 10043fi 10044 10045 10046ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "#include <sys/types.h> 10047#include <asm/stat.h> 10048" 10049if test "x$ac_cv_type_struct_stat64" = xyes; then : 10050 10051cat >>confdefs.h <<_ACEOF 10052#define HAVE_STRUCT_STAT64 1 10053_ACEOF 10054 10055 10056fi 10057ac_fn_c_check_type "$LINENO" "struct __old_kernel_stat" "ac_cv_type_struct___old_kernel_stat" "#include <sys/types.h> 10058#include <asm/stat.h> 10059" 10060if test "x$ac_cv_type_struct___old_kernel_stat" = xyes; then : 10061 10062cat >>confdefs.h <<_ACEOF 10063#define HAVE_STRUCT___OLD_KERNEL_STAT 1 10064_ACEOF 10065 10066 10067fi 10068 10069 10070ac_fn_c_check_type "$LINENO" "struct user_desc" "ac_cv_type_struct_user_desc" "#include <asm/ldt.h> 10071" 10072if test "x$ac_cv_type_struct_user_desc" = xyes; then : 10073 10074cat >>confdefs.h <<_ACEOF 10075#define HAVE_STRUCT_USER_DESC 1 10076_ACEOF 10077 10078ac_fn_c_check_member "$LINENO" "struct user_desc" "lm" "ac_cv_member_struct_user_desc_lm" "#include <asm/ldt.h> 10079" 10080if test "x$ac_cv_member_struct_user_desc_lm" = xyes; then : 10081 10082cat >>confdefs.h <<_ACEOF 10083#define HAVE_STRUCT_USER_DESC_LM 1 10084_ACEOF 10085 10086 10087fi 10088 10089fi 10090 10091 10092ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_nsec" "ac_cv_member_struct_stat_st_mtime_nsec" "#include <sys/types.h> 10093#include <asm/stat.h> 10094" 10095if test "x$ac_cv_member_struct_stat_st_mtime_nsec" = xyes; then : 10096 10097cat >>confdefs.h <<_ACEOF 10098#define HAVE_STRUCT_STAT_ST_MTIME_NSEC 1 10099_ACEOF 10100 10101 10102fi 10103ac_fn_c_check_member "$LINENO" "struct stat64" "st_mtime_nsec" "ac_cv_member_struct_stat64_st_mtime_nsec" "#include <sys/types.h> 10104#include <asm/stat.h> 10105" 10106if test "x$ac_cv_member_struct_stat64_st_mtime_nsec" = xyes; then : 10107 10108cat >>confdefs.h <<_ACEOF 10109#define HAVE_STRUCT_STAT64_ST_MTIME_NSEC 1 10110_ACEOF 10111 10112 10113fi 10114 10115 10116ac_fn_c_check_type "$LINENO" "struct pt_all_user_regs" "ac_cv_type_struct_pt_all_user_regs" "#include <sys/ptrace.h> 10117" 10118if test "x$ac_cv_type_struct_pt_all_user_regs" = xyes; then : 10119 10120cat >>confdefs.h <<_ACEOF 10121#define HAVE_STRUCT_PT_ALL_USER_REGS 1 10122_ACEOF 10123 10124 10125fi 10126ac_fn_c_check_type "$LINENO" "struct ia64_fpreg" "ac_cv_type_struct_ia64_fpreg" "#include <sys/ptrace.h> 10127" 10128if test "x$ac_cv_type_struct_ia64_fpreg" = xyes; then : 10129 10130cat >>confdefs.h <<_ACEOF 10131#define HAVE_STRUCT_IA64_FPREG 1 10132_ACEOF 10133 10134 10135fi 10136ac_fn_c_check_type "$LINENO" "struct ptrace_peeksiginfo_args" "ac_cv_type_struct_ptrace_peeksiginfo_args" "#include <sys/ptrace.h> 10137" 10138if test "x$ac_cv_type_struct_ptrace_peeksiginfo_args" = xyes; then : 10139 10140cat >>confdefs.h <<_ACEOF 10141#define HAVE_STRUCT_PTRACE_PEEKSIGINFO_ARGS 1 10142_ACEOF 10143 10144 10145fi 10146 10147 10148# For kernels that do not have v3.10-rc1~201^2~11 10149ac_fn_c_check_type "$LINENO" "s390_compat_regs" "ac_cv_type_s390_compat_regs" "#include <asm/ptrace.h> 10150" 10151if test "x$ac_cv_type_s390_compat_regs" = xyes; then : 10152 10153cat >>confdefs.h <<_ACEOF 10154#define HAVE_S390_COMPAT_REGS 1 10155_ACEOF 10156 10157 10158fi 10159 10160 10161ac_fn_c_check_type "$LINENO" "struct flock" "ac_cv_type_struct_flock" "#include <sys/types.h> 10162#include <linux/fcntl.h> 10163" 10164if test "x$ac_cv_type_struct_flock" = xyes; then : 10165 10166cat >>confdefs.h <<_ACEOF 10167#define HAVE_STRUCT_FLOCK 1 10168_ACEOF 10169 10170 10171fi 10172ac_fn_c_check_type "$LINENO" "struct flock64" "ac_cv_type_struct_flock64" "#include <sys/types.h> 10173#include <linux/fcntl.h> 10174" 10175if test "x$ac_cv_type_struct_flock64" = xyes; then : 10176 10177cat >>confdefs.h <<_ACEOF 10178#define HAVE_STRUCT_FLOCK64 1 10179_ACEOF 10180 10181 10182fi 10183ac_fn_c_check_type "$LINENO" "struct __kernel_flock" "ac_cv_type_struct___kernel_flock" "#include <sys/types.h> 10184#include <linux/fcntl.h> 10185" 10186if test "x$ac_cv_type_struct___kernel_flock" = xyes; then : 10187 10188cat >>confdefs.h <<_ACEOF 10189#define HAVE_STRUCT___KERNEL_FLOCK 1 10190_ACEOF 10191 10192 10193fi 10194ac_fn_c_check_type "$LINENO" "struct __kernel_flock64" "ac_cv_type_struct___kernel_flock64" "#include <sys/types.h> 10195#include <linux/fcntl.h> 10196" 10197if test "x$ac_cv_type_struct___kernel_flock64" = xyes; then : 10198 10199cat >>confdefs.h <<_ACEOF 10200#define HAVE_STRUCT___KERNEL_FLOCK64 1 10201_ACEOF 10202 10203 10204fi 10205ac_fn_c_check_type "$LINENO" "struct f_owner_ex" "ac_cv_type_struct_f_owner_ex" "#include <sys/types.h> 10206#include <linux/fcntl.h> 10207" 10208if test "x$ac_cv_type_struct_f_owner_ex" = xyes; then : 10209 10210cat >>confdefs.h <<_ACEOF 10211#define HAVE_STRUCT_F_OWNER_EX 1 10212_ACEOF 10213 10214 10215fi 10216ac_fn_c_check_type "$LINENO" "struct __kernel_f_owner_ex" "ac_cv_type_struct___kernel_f_owner_ex" "#include <sys/types.h> 10217#include <linux/fcntl.h> 10218" 10219if test "x$ac_cv_type_struct___kernel_f_owner_ex" = xyes; then : 10220 10221cat >>confdefs.h <<_ACEOF 10222#define HAVE_STRUCT___KERNEL_F_OWNER_EX 1 10223_ACEOF 10224 10225 10226fi 10227 10228 10229ac_fn_c_check_type "$LINENO" "struct crypto_report_aead" "ac_cv_type_struct_crypto_report_aead" "#include <linux/cryptouser.h> 10230" 10231if test "x$ac_cv_type_struct_crypto_report_aead" = xyes; then : 10232 10233cat >>confdefs.h <<_ACEOF 10234#define HAVE_STRUCT_CRYPTO_REPORT_AEAD 1 10235_ACEOF 10236 10237 10238fi 10239ac_fn_c_check_type "$LINENO" "struct crypto_report_blkcipher" "ac_cv_type_struct_crypto_report_blkcipher" "#include <linux/cryptouser.h> 10240" 10241if test "x$ac_cv_type_struct_crypto_report_blkcipher" = xyes; then : 10242 10243cat >>confdefs.h <<_ACEOF 10244#define HAVE_STRUCT_CRYPTO_REPORT_BLKCIPHER 1 10245_ACEOF 10246 10247 10248fi 10249ac_fn_c_check_type "$LINENO" "struct crypto_report_cipher" "ac_cv_type_struct_crypto_report_cipher" "#include <linux/cryptouser.h> 10250" 10251if test "x$ac_cv_type_struct_crypto_report_cipher" = xyes; then : 10252 10253cat >>confdefs.h <<_ACEOF 10254#define HAVE_STRUCT_CRYPTO_REPORT_CIPHER 1 10255_ACEOF 10256 10257 10258fi 10259ac_fn_c_check_type "$LINENO" "struct crypto_report_hash" "ac_cv_type_struct_crypto_report_hash" "#include <linux/cryptouser.h> 10260" 10261if test "x$ac_cv_type_struct_crypto_report_hash" = xyes; then : 10262 10263cat >>confdefs.h <<_ACEOF 10264#define HAVE_STRUCT_CRYPTO_REPORT_HASH 1 10265_ACEOF 10266 10267 10268fi 10269ac_fn_c_check_type "$LINENO" "struct crypto_report_rng" "ac_cv_type_struct_crypto_report_rng" "#include <linux/cryptouser.h> 10270" 10271if test "x$ac_cv_type_struct_crypto_report_rng" = xyes; then : 10272 10273cat >>confdefs.h <<_ACEOF 10274#define HAVE_STRUCT_CRYPTO_REPORT_RNG 1 10275_ACEOF 10276 10277 10278fi 10279 10280 10281ac_fn_c_check_type "$LINENO" "struct kcmp_epoll_slot" "ac_cv_type_struct_kcmp_epoll_slot" "#include <linux/kcmp.h> 10282" 10283if test "x$ac_cv_type_struct_kcmp_epoll_slot" = xyes; then : 10284 10285cat >>confdefs.h <<_ACEOF 10286#define HAVE_STRUCT_KCMP_EPOLL_SLOT 1 10287_ACEOF 10288 10289 10290fi 10291 10292 10293ac_fn_c_check_type "$LINENO" "struct keyctl_kdf_params" "ac_cv_type_struct_keyctl_kdf_params" "#include <linux/keyctl.h> 10294" 10295if test "x$ac_cv_type_struct_keyctl_kdf_params" = xyes; then : 10296 10297cat >>confdefs.h <<_ACEOF 10298#define HAVE_STRUCT_KEYCTL_KDF_PARAMS 1 10299_ACEOF 10300 10301 10302fi 10303 10304 10305ac_fn_c_check_member "$LINENO" "struct timex" "tai" "ac_cv_member_struct_timex_tai" "#include <sys/timex.h> 10306" 10307if test "x$ac_cv_member_struct_timex_tai" = xyes; then : 10308 10309cat >>confdefs.h <<_ACEOF 10310#define HAVE_STRUCT_TIMEX_TAI 1 10311_ACEOF 10312 10313 10314fi 10315 10316 10317ac_fn_c_check_member "$LINENO" "struct utsname" "domainname" "ac_cv_member_struct_utsname_domainname" "#include <sys/utsname.h> 10318" 10319if test "x$ac_cv_member_struct_utsname_domainname" = xyes; then : 10320 10321cat >>confdefs.h <<_ACEOF 10322#define HAVE_STRUCT_UTSNAME_DOMAINNAME 1 10323_ACEOF 10324 10325 10326fi 10327 10328 10329ac_fn_c_check_member "$LINENO" "siginfo_t" "si_syscall" "ac_cv_member_siginfo_t_si_syscall" "#include <signal.h> 10330" 10331if test "x$ac_cv_member_siginfo_t_si_syscall" = xyes; then : 10332 10333cat >>confdefs.h <<_ACEOF 10334#define HAVE_SIGINFO_T_SI_SYSCALL 1 10335_ACEOF 10336 10337 10338fi 10339ac_fn_c_check_member "$LINENO" "siginfo_t" "si_timerid" "ac_cv_member_siginfo_t_si_timerid" "#include <signal.h> 10340" 10341if test "x$ac_cv_member_siginfo_t_si_timerid" = xyes; then : 10342 10343cat >>confdefs.h <<_ACEOF 10344#define HAVE_SIGINFO_T_SI_TIMERID 1 10345_ACEOF 10346 10347 10348fi 10349ac_fn_c_check_member "$LINENO" "siginfo_t" "si_overrun" "ac_cv_member_siginfo_t_si_overrun" "#include <signal.h> 10350" 10351if test "x$ac_cv_member_siginfo_t_si_overrun" = xyes; then : 10352 10353cat >>confdefs.h <<_ACEOF 10354#define HAVE_SIGINFO_T_SI_OVERRUN 1 10355_ACEOF 10356 10357 10358fi 10359 10360 10361ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "precise_ip" "ac_cv_member_struct_perf_event_attr_precise_ip" "#include <linux/perf_event.h> 10362" 10363if test "x$ac_cv_member_struct_perf_event_attr_precise_ip" = xyes; then : 10364 10365cat >>confdefs.h <<_ACEOF 10366#define HAVE_STRUCT_PERF_EVENT_ATTR_PRECISE_IP 1 10367_ACEOF 10368 10369 10370fi 10371ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "mmap_data" "ac_cv_member_struct_perf_event_attr_mmap_data" "#include <linux/perf_event.h> 10372" 10373if test "x$ac_cv_member_struct_perf_event_attr_mmap_data" = xyes; then : 10374 10375cat >>confdefs.h <<_ACEOF 10376#define HAVE_STRUCT_PERF_EVENT_ATTR_MMAP_DATA 1 10377_ACEOF 10378 10379 10380fi 10381ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "sample_id_all" "ac_cv_member_struct_perf_event_attr_sample_id_all" "#include <linux/perf_event.h> 10382" 10383if test "x$ac_cv_member_struct_perf_event_attr_sample_id_all" = xyes; then : 10384 10385cat >>confdefs.h <<_ACEOF 10386#define HAVE_STRUCT_PERF_EVENT_ATTR_SAMPLE_ID_ALL 1 10387_ACEOF 10388 10389 10390fi 10391ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "exclude_host" "ac_cv_member_struct_perf_event_attr_exclude_host" "#include <linux/perf_event.h> 10392" 10393if test "x$ac_cv_member_struct_perf_event_attr_exclude_host" = xyes; then : 10394 10395cat >>confdefs.h <<_ACEOF 10396#define HAVE_STRUCT_PERF_EVENT_ATTR_EXCLUDE_HOST 1 10397_ACEOF 10398 10399 10400fi 10401ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "exclude_guest" "ac_cv_member_struct_perf_event_attr_exclude_guest" "#include <linux/perf_event.h> 10402" 10403if test "x$ac_cv_member_struct_perf_event_attr_exclude_guest" = xyes; then : 10404 10405cat >>confdefs.h <<_ACEOF 10406#define HAVE_STRUCT_PERF_EVENT_ATTR_EXCLUDE_GUEST 1 10407_ACEOF 10408 10409 10410fi 10411ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "exclude_callchain_kernel" "ac_cv_member_struct_perf_event_attr_exclude_callchain_kernel" "#include <linux/perf_event.h> 10412" 10413if test "x$ac_cv_member_struct_perf_event_attr_exclude_callchain_kernel" = xyes; then : 10414 10415cat >>confdefs.h <<_ACEOF 10416#define HAVE_STRUCT_PERF_EVENT_ATTR_EXCLUDE_CALLCHAIN_KERNEL 1 10417_ACEOF 10418 10419 10420fi 10421ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "exclude_callchain_user" "ac_cv_member_struct_perf_event_attr_exclude_callchain_user" "#include <linux/perf_event.h> 10422" 10423if test "x$ac_cv_member_struct_perf_event_attr_exclude_callchain_user" = xyes; then : 10424 10425cat >>confdefs.h <<_ACEOF 10426#define HAVE_STRUCT_PERF_EVENT_ATTR_EXCLUDE_CALLCHAIN_USER 1 10427_ACEOF 10428 10429 10430fi 10431ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "mmap2" "ac_cv_member_struct_perf_event_attr_mmap2" "#include <linux/perf_event.h> 10432" 10433if test "x$ac_cv_member_struct_perf_event_attr_mmap2" = xyes; then : 10434 10435cat >>confdefs.h <<_ACEOF 10436#define HAVE_STRUCT_PERF_EVENT_ATTR_MMAP2 1 10437_ACEOF 10438 10439 10440fi 10441ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "comm_exec" "ac_cv_member_struct_perf_event_attr_comm_exec" "#include <linux/perf_event.h> 10442" 10443if test "x$ac_cv_member_struct_perf_event_attr_comm_exec" = xyes; then : 10444 10445cat >>confdefs.h <<_ACEOF 10446#define HAVE_STRUCT_PERF_EVENT_ATTR_COMM_EXEC 1 10447_ACEOF 10448 10449 10450fi 10451ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "use_clockid" "ac_cv_member_struct_perf_event_attr_use_clockid" "#include <linux/perf_event.h> 10452" 10453if test "x$ac_cv_member_struct_perf_event_attr_use_clockid" = xyes; then : 10454 10455cat >>confdefs.h <<_ACEOF 10456#define HAVE_STRUCT_PERF_EVENT_ATTR_USE_CLOCKID 1 10457_ACEOF 10458 10459 10460fi 10461ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "context_switch" "ac_cv_member_struct_perf_event_attr_context_switch" "#include <linux/perf_event.h> 10462" 10463if test "x$ac_cv_member_struct_perf_event_attr_context_switch" = xyes; then : 10464 10465cat >>confdefs.h <<_ACEOF 10466#define HAVE_STRUCT_PERF_EVENT_ATTR_CONTEXT_SWITCH 1 10467_ACEOF 10468 10469 10470fi 10471ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "write_backward" "ac_cv_member_struct_perf_event_attr_write_backward" "#include <linux/perf_event.h> 10472" 10473if test "x$ac_cv_member_struct_perf_event_attr_write_backward" = xyes; then : 10474 10475cat >>confdefs.h <<_ACEOF 10476#define HAVE_STRUCT_PERF_EVENT_ATTR_WRITE_BACKWARD 1 10477_ACEOF 10478 10479 10480fi 10481ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "namespaces" "ac_cv_member_struct_perf_event_attr_namespaces" "#include <linux/perf_event.h> 10482" 10483if test "x$ac_cv_member_struct_perf_event_attr_namespaces" = xyes; then : 10484 10485cat >>confdefs.h <<_ACEOF 10486#define HAVE_STRUCT_PERF_EVENT_ATTR_NAMESPACES 1 10487_ACEOF 10488 10489 10490fi 10491ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "bp_type" "ac_cv_member_struct_perf_event_attr_bp_type" "#include <linux/perf_event.h> 10492" 10493if test "x$ac_cv_member_struct_perf_event_attr_bp_type" = xyes; then : 10494 10495cat >>confdefs.h <<_ACEOF 10496#define HAVE_STRUCT_PERF_EVENT_ATTR_BP_TYPE 1 10497_ACEOF 10498 10499 10500fi 10501ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "config1" "ac_cv_member_struct_perf_event_attr_config1" "#include <linux/perf_event.h> 10502" 10503if test "x$ac_cv_member_struct_perf_event_attr_config1" = xyes; then : 10504 10505cat >>confdefs.h <<_ACEOF 10506#define HAVE_STRUCT_PERF_EVENT_ATTR_CONFIG1 1 10507_ACEOF 10508 10509 10510fi 10511ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "config2" "ac_cv_member_struct_perf_event_attr_config2" "#include <linux/perf_event.h> 10512" 10513if test "x$ac_cv_member_struct_perf_event_attr_config2" = xyes; then : 10514 10515cat >>confdefs.h <<_ACEOF 10516#define HAVE_STRUCT_PERF_EVENT_ATTR_CONFIG2 1 10517_ACEOF 10518 10519 10520fi 10521ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "branch_sample_type" "ac_cv_member_struct_perf_event_attr_branch_sample_type" "#include <linux/perf_event.h> 10522" 10523if test "x$ac_cv_member_struct_perf_event_attr_branch_sample_type" = xyes; then : 10524 10525cat >>confdefs.h <<_ACEOF 10526#define HAVE_STRUCT_PERF_EVENT_ATTR_BRANCH_SAMPLE_TYPE 1 10527_ACEOF 10528 10529 10530fi 10531ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "sample_regs_user" "ac_cv_member_struct_perf_event_attr_sample_regs_user" "#include <linux/perf_event.h> 10532" 10533if test "x$ac_cv_member_struct_perf_event_attr_sample_regs_user" = xyes; then : 10534 10535cat >>confdefs.h <<_ACEOF 10536#define HAVE_STRUCT_PERF_EVENT_ATTR_SAMPLE_REGS_USER 1 10537_ACEOF 10538 10539 10540fi 10541ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "sample_stack_user" "ac_cv_member_struct_perf_event_attr_sample_stack_user" "#include <linux/perf_event.h> 10542" 10543if test "x$ac_cv_member_struct_perf_event_attr_sample_stack_user" = xyes; then : 10544 10545cat >>confdefs.h <<_ACEOF 10546#define HAVE_STRUCT_PERF_EVENT_ATTR_SAMPLE_STACK_USER 1 10547_ACEOF 10548 10549 10550fi 10551ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "sample_regs_intr" "ac_cv_member_struct_perf_event_attr_sample_regs_intr" "#include <linux/perf_event.h> 10552" 10553if test "x$ac_cv_member_struct_perf_event_attr_sample_regs_intr" = xyes; then : 10554 10555cat >>confdefs.h <<_ACEOF 10556#define HAVE_STRUCT_PERF_EVENT_ATTR_SAMPLE_REGS_INTR 1 10557_ACEOF 10558 10559 10560fi 10561ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "aux_watermark" "ac_cv_member_struct_perf_event_attr_aux_watermark" "#include <linux/perf_event.h> 10562" 10563if test "x$ac_cv_member_struct_perf_event_attr_aux_watermark" = xyes; then : 10564 10565cat >>confdefs.h <<_ACEOF 10566#define HAVE_STRUCT_PERF_EVENT_ATTR_AUX_WATERMARK 1 10567_ACEOF 10568 10569 10570fi 10571ac_fn_c_check_member "$LINENO" "struct perf_event_attr" "sample_max_stack" "ac_cv_member_struct_perf_event_attr_sample_max_stack" "#include <linux/perf_event.h> 10572" 10573if test "x$ac_cv_member_struct_perf_event_attr_sample_max_stack" = xyes; then : 10574 10575cat >>confdefs.h <<_ACEOF 10576#define HAVE_STRUCT_PERF_EVENT_ATTR_SAMPLE_MAX_STACK 1 10577_ACEOF 10578 10579 10580fi 10581 10582 10583for ac_header in asm/cachectl.h asm/guarded_storage.h asm/sysmips.h elf.h iconv.h inttypes.h linux/bsg.h linux/cryptouser.h linux/dm-ioctl.h linux/dqblk_xfs.h linux/falloc.h linux/fib_rules.h linux/fiemap.h linux/genetlink.h linux/hiddev.h linux/if_addr.h linux/if_link.h linux/ip_vs.h linux/ipc.h linux/kcmp.h linux/kvm.h linux/memfd.h linux/mmtimer.h linux/msg.h linux/neighbour.h linux/netfilter/ipset/ip_set.h linux/netfilter/nf_tables.h linux/netfilter/nf_tables_compat.h linux/netfilter/nfnetlink.h linux/netfilter/nfnetlink_acct.h linux/netfilter/nfnetlink_conntrack.h linux/netfilter/nfnetlink_cthelper.h linux/netfilter/nfnetlink_cttimeout.h linux/netfilter/nfnetlink_log.h linux/netfilter/nfnetlink_queue.h linux/nsfs.h linux/perf_event.h linux/quota.h linux/seccomp.h linux/securebits.h linux/sem.h linux/shm.h linux/userfaultfd.h linux/utsname.h mqueue.h netinet/sctp.h netipx/ipx.h paths.h scsi/sg.h stropts.h sys/conf.h sys/eventfd.h sys/fanotify.h sys/ipc.h sys/msg.h sys/quota.h sys/sem.h sys/shm.h sys/signalfd.h sys/xattr.h ustat.h 10584do : 10585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10586ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10587if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10588 cat >>confdefs.h <<_ACEOF 10589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10590_ACEOF 10591 10592fi 10593 10594done 10595 10596 10597for ac_header in asm/sigcontext.h 10598do : 10599 ac_fn_c_check_header_compile "$LINENO" "asm/sigcontext.h" "ac_cv_header_asm_sigcontext_h" "#include <signal.h> 10600" 10601if test "x$ac_cv_header_asm_sigcontext_h" = xyes; then : 10602 cat >>confdefs.h <<_ACEOF 10603#define HAVE_ASM_SIGCONTEXT_H 1 10604_ACEOF 10605 10606fi 10607 10608done 10609 10610 10611for ac_header in netinet/tcp.h netinet/udp.h 10612do : 10613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10614ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <netinet/in.h> 10615" 10616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10617 cat >>confdefs.h <<_ACEOF 10618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10619_ACEOF 10620 10621fi 10622 10623done 10624 10625 10626for ac_header in linux/mqueue.h 10627do : 10628 ac_fn_c_check_header_compile "$LINENO" "linux/mqueue.h" "ac_cv_header_linux_mqueue_h" "#include <linux/types.h> 10629" 10630if test "x$ac_cv_header_linux_mqueue_h" = xyes; then : 10631 cat >>confdefs.h <<_ACEOF 10632#define HAVE_LINUX_MQUEUE_H 1 10633_ACEOF 10634 10635fi 10636 10637done 10638 10639 10640for ac_header in linux/netfilter/xt_osf.h 10641do : 10642 ac_fn_c_check_header_compile "$LINENO" "linux/netfilter/xt_osf.h" "ac_cv_header_linux_netfilter_xt_osf_h" "#include <linux/ip.h> 10643#include <linux/tcp.h> 10644" 10645if test "x$ac_cv_header_linux_netfilter_xt_osf_h" = xyes; then : 10646 cat >>confdefs.h <<_ACEOF 10647#define HAVE_LINUX_NETFILTER_XT_OSF_H 1 10648_ACEOF 10649 10650fi 10651 10652done 10653 10654 10655for ac_header in linux/netfilter_arp/arp_tables.h linux/netfilter_bridge/ebtables.h linux/netfilter_ipv4/ip_tables.h linux/netfilter_ipv6/ip6_tables.h 10656do : 10657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10658ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <netinet/in.h> 10659#include <net/if.h> 10660" 10661if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10662 cat >>confdefs.h <<_ACEOF 10663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10664_ACEOF 10665 10666fi 10667 10668done 10669 10670 10671for ac_header in linux/input.h 10672do : 10673 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default" 10674if test "x$ac_cv_header_linux_input_h" = xyes; then : 10675 cat >>confdefs.h <<_ACEOF 10676#define HAVE_LINUX_INPUT_H 1 10677_ACEOF 10678 10679 ac_fn_c_check_member "$LINENO" "struct input_absinfo" "resolution" "ac_cv_member_struct_input_absinfo_resolution" "#include <linux/input.h> 10680" 10681if test "x$ac_cv_member_struct_input_absinfo_resolution" = xyes; then : 10682 10683cat >>confdefs.h <<_ACEOF 10684#define HAVE_STRUCT_INPUT_ABSINFO_RESOLUTION 1 10685_ACEOF 10686 10687 10688fi 10689 10690 10691fi 10692 10693done 10694 10695 10696for ac_header in linux/bpf.h 10697do : 10698 ac_fn_c_check_header_mongrel "$LINENO" "linux/bpf.h" "ac_cv_header_linux_bpf_h" "$ac_includes_default" 10699if test "x$ac_cv_header_linux_bpf_h" = xyes; then : 10700 cat >>confdefs.h <<_ACEOF 10701#define HAVE_LINUX_BPF_H 1 10702_ACEOF 10703 10704 ac_fn_c_check_type "$LINENO" "struct bpf_insn" "ac_cv_type_struct_bpf_insn" "#include <linux/bpf.h> 10705" 10706if test "x$ac_cv_type_struct_bpf_insn" = xyes; then : 10707 10708cat >>confdefs.h <<_ACEOF 10709#define HAVE_STRUCT_BPF_INSN 1 10710_ACEOF 10711 10712 10713fi 10714ac_fn_c_check_type "$LINENO" "struct bpf_map_info" "ac_cv_type_struct_bpf_map_info" "#include <linux/bpf.h> 10715" 10716if test "x$ac_cv_type_struct_bpf_map_info" = xyes; then : 10717 10718cat >>confdefs.h <<_ACEOF 10719#define HAVE_STRUCT_BPF_MAP_INFO 1 10720_ACEOF 10721 10722 10723fi 10724ac_fn_c_check_type "$LINENO" "struct bpf_prog_info" "ac_cv_type_struct_bpf_prog_info" "#include <linux/bpf.h> 10725" 10726if test "x$ac_cv_type_struct_bpf_prog_info" = xyes; then : 10727 10728cat >>confdefs.h <<_ACEOF 10729#define HAVE_STRUCT_BPF_PROG_INFO 1 10730_ACEOF 10731 10732 10733fi 10734 10735 ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "id" "ac_cv_member_struct_bpf_map_info_id" "#include <linux/bpf.h> 10736" 10737if test "x$ac_cv_member_struct_bpf_map_info_id" = xyes; then : 10738 10739cat >>confdefs.h <<_ACEOF 10740#define HAVE_STRUCT_BPF_MAP_INFO_ID 1 10741_ACEOF 10742 10743 10744fi 10745ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "ifindex" "ac_cv_member_struct_bpf_map_info_ifindex" "#include <linux/bpf.h> 10746" 10747if test "x$ac_cv_member_struct_bpf_map_info_ifindex" = xyes; then : 10748 10749cat >>confdefs.h <<_ACEOF 10750#define HAVE_STRUCT_BPF_MAP_INFO_IFINDEX 1 10751_ACEOF 10752 10753 10754fi 10755ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "key_size" "ac_cv_member_struct_bpf_map_info_key_size" "#include <linux/bpf.h> 10756" 10757if test "x$ac_cv_member_struct_bpf_map_info_key_size" = xyes; then : 10758 10759cat >>confdefs.h <<_ACEOF 10760#define HAVE_STRUCT_BPF_MAP_INFO_KEY_SIZE 1 10761_ACEOF 10762 10763 10764fi 10765ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "map_flags" "ac_cv_member_struct_bpf_map_info_map_flags" "#include <linux/bpf.h> 10766" 10767if test "x$ac_cv_member_struct_bpf_map_info_map_flags" = xyes; then : 10768 10769cat >>confdefs.h <<_ACEOF 10770#define HAVE_STRUCT_BPF_MAP_INFO_MAP_FLAGS 1 10771_ACEOF 10772 10773 10774fi 10775ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "max_entries" "ac_cv_member_struct_bpf_map_info_max_entries" "#include <linux/bpf.h> 10776" 10777if test "x$ac_cv_member_struct_bpf_map_info_max_entries" = xyes; then : 10778 10779cat >>confdefs.h <<_ACEOF 10780#define HAVE_STRUCT_BPF_MAP_INFO_MAX_ENTRIES 1 10781_ACEOF 10782 10783 10784fi 10785ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "name" "ac_cv_member_struct_bpf_map_info_name" "#include <linux/bpf.h> 10786" 10787if test "x$ac_cv_member_struct_bpf_map_info_name" = xyes; then : 10788 10789cat >>confdefs.h <<_ACEOF 10790#define HAVE_STRUCT_BPF_MAP_INFO_NAME 1 10791_ACEOF 10792 10793 10794fi 10795ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "type" "ac_cv_member_struct_bpf_map_info_type" "#include <linux/bpf.h> 10796" 10797if test "x$ac_cv_member_struct_bpf_map_info_type" = xyes; then : 10798 10799cat >>confdefs.h <<_ACEOF 10800#define HAVE_STRUCT_BPF_MAP_INFO_TYPE 1 10801_ACEOF 10802 10803 10804fi 10805ac_fn_c_check_member "$LINENO" "struct bpf_map_info" "value_size" "ac_cv_member_struct_bpf_map_info_value_size" "#include <linux/bpf.h> 10806" 10807if test "x$ac_cv_member_struct_bpf_map_info_value_size" = xyes; then : 10808 10809cat >>confdefs.h <<_ACEOF 10810#define HAVE_STRUCT_BPF_MAP_INFO_VALUE_SIZE 1 10811_ACEOF 10812 10813 10814fi 10815ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "created_by_uid" "ac_cv_member_struct_bpf_prog_info_created_by_uid" "#include <linux/bpf.h> 10816" 10817if test "x$ac_cv_member_struct_bpf_prog_info_created_by_uid" = xyes; then : 10818 10819cat >>confdefs.h <<_ACEOF 10820#define HAVE_STRUCT_BPF_PROG_INFO_CREATED_BY_UID 1 10821_ACEOF 10822 10823 10824fi 10825ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "id" "ac_cv_member_struct_bpf_prog_info_id" "#include <linux/bpf.h> 10826" 10827if test "x$ac_cv_member_struct_bpf_prog_info_id" = xyes; then : 10828 10829cat >>confdefs.h <<_ACEOF 10830#define HAVE_STRUCT_BPF_PROG_INFO_ID 1 10831_ACEOF 10832 10833 10834fi 10835ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "ifindex" "ac_cv_member_struct_bpf_prog_info_ifindex" "#include <linux/bpf.h> 10836" 10837if test "x$ac_cv_member_struct_bpf_prog_info_ifindex" = xyes; then : 10838 10839cat >>confdefs.h <<_ACEOF 10840#define HAVE_STRUCT_BPF_PROG_INFO_IFINDEX 1 10841_ACEOF 10842 10843 10844fi 10845ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "jited_prog_insns" "ac_cv_member_struct_bpf_prog_info_jited_prog_insns" "#include <linux/bpf.h> 10846" 10847if test "x$ac_cv_member_struct_bpf_prog_info_jited_prog_insns" = xyes; then : 10848 10849cat >>confdefs.h <<_ACEOF 10850#define HAVE_STRUCT_BPF_PROG_INFO_JITED_PROG_INSNS 1 10851_ACEOF 10852 10853 10854fi 10855ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "jited_prog_len" "ac_cv_member_struct_bpf_prog_info_jited_prog_len" "#include <linux/bpf.h> 10856" 10857if test "x$ac_cv_member_struct_bpf_prog_info_jited_prog_len" = xyes; then : 10858 10859cat >>confdefs.h <<_ACEOF 10860#define HAVE_STRUCT_BPF_PROG_INFO_JITED_PROG_LEN 1 10861_ACEOF 10862 10863 10864fi 10865ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "load_time" "ac_cv_member_struct_bpf_prog_info_load_time" "#include <linux/bpf.h> 10866" 10867if test "x$ac_cv_member_struct_bpf_prog_info_load_time" = xyes; then : 10868 10869cat >>confdefs.h <<_ACEOF 10870#define HAVE_STRUCT_BPF_PROG_INFO_LOAD_TIME 1 10871_ACEOF 10872 10873 10874fi 10875ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "map_ids" "ac_cv_member_struct_bpf_prog_info_map_ids" "#include <linux/bpf.h> 10876" 10877if test "x$ac_cv_member_struct_bpf_prog_info_map_ids" = xyes; then : 10878 10879cat >>confdefs.h <<_ACEOF 10880#define HAVE_STRUCT_BPF_PROG_INFO_MAP_IDS 1 10881_ACEOF 10882 10883 10884fi 10885ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "name" "ac_cv_member_struct_bpf_prog_info_name" "#include <linux/bpf.h> 10886" 10887if test "x$ac_cv_member_struct_bpf_prog_info_name" = xyes; then : 10888 10889cat >>confdefs.h <<_ACEOF 10890#define HAVE_STRUCT_BPF_PROG_INFO_NAME 1 10891_ACEOF 10892 10893 10894fi 10895ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "nr_map_ids" "ac_cv_member_struct_bpf_prog_info_nr_map_ids" "#include <linux/bpf.h> 10896" 10897if test "x$ac_cv_member_struct_bpf_prog_info_nr_map_ids" = xyes; then : 10898 10899cat >>confdefs.h <<_ACEOF 10900#define HAVE_STRUCT_BPF_PROG_INFO_NR_MAP_IDS 1 10901_ACEOF 10902 10903 10904fi 10905ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "tag" "ac_cv_member_struct_bpf_prog_info_tag" "#include <linux/bpf.h> 10906" 10907if test "x$ac_cv_member_struct_bpf_prog_info_tag" = xyes; then : 10908 10909cat >>confdefs.h <<_ACEOF 10910#define HAVE_STRUCT_BPF_PROG_INFO_TAG 1 10911_ACEOF 10912 10913 10914fi 10915ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "type" "ac_cv_member_struct_bpf_prog_info_type" "#include <linux/bpf.h> 10916" 10917if test "x$ac_cv_member_struct_bpf_prog_info_type" = xyes; then : 10918 10919cat >>confdefs.h <<_ACEOF 10920#define HAVE_STRUCT_BPF_PROG_INFO_TYPE 1 10921_ACEOF 10922 10923 10924fi 10925ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "xlated_prog_insns" "ac_cv_member_struct_bpf_prog_info_xlated_prog_insns" "#include <linux/bpf.h> 10926" 10927if test "x$ac_cv_member_struct_bpf_prog_info_xlated_prog_insns" = xyes; then : 10928 10929cat >>confdefs.h <<_ACEOF 10930#define HAVE_STRUCT_BPF_PROG_INFO_XLATED_PROG_INSNS 1 10931_ACEOF 10932 10933 10934fi 10935ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "xlated_prog_len" "ac_cv_member_struct_bpf_prog_info_xlated_prog_len" "#include <linux/bpf.h> 10936" 10937if test "x$ac_cv_member_struct_bpf_prog_info_xlated_prog_len" = xyes; then : 10938 10939cat >>confdefs.h <<_ACEOF 10940#define HAVE_STRUCT_BPF_PROG_INFO_XLATED_PROG_LEN 1 10941_ACEOF 10942 10943 10944fi 10945ac_fn_c_check_member "$LINENO" "union bpf_attr" "attach_bpf_fd" "ac_cv_member_union_bpf_attr_attach_bpf_fd" "#include <linux/bpf.h> 10946" 10947if test "x$ac_cv_member_union_bpf_attr_attach_bpf_fd" = xyes; then : 10948 10949cat >>confdefs.h <<_ACEOF 10950#define HAVE_UNION_BPF_ATTR_ATTACH_BPF_FD 1 10951_ACEOF 10952 10953 10954fi 10955ac_fn_c_check_member "$LINENO" "union bpf_attr" "attach_flags" "ac_cv_member_union_bpf_attr_attach_flags" "#include <linux/bpf.h> 10956" 10957if test "x$ac_cv_member_union_bpf_attr_attach_flags" = xyes; then : 10958 10959cat >>confdefs.h <<_ACEOF 10960#define HAVE_UNION_BPF_ATTR_ATTACH_FLAGS 1 10961_ACEOF 10962 10963 10964fi 10965ac_fn_c_check_member "$LINENO" "union bpf_attr" "attach_type" "ac_cv_member_union_bpf_attr_attach_type" "#include <linux/bpf.h> 10966" 10967if test "x$ac_cv_member_union_bpf_attr_attach_type" = xyes; then : 10968 10969cat >>confdefs.h <<_ACEOF 10970#define HAVE_UNION_BPF_ATTR_ATTACH_TYPE 1 10971_ACEOF 10972 10973 10974fi 10975ac_fn_c_check_member "$LINENO" "union bpf_attr" "bpf_fd" "ac_cv_member_union_bpf_attr_bpf_fd" "#include <linux/bpf.h> 10976" 10977if test "x$ac_cv_member_union_bpf_attr_bpf_fd" = xyes; then : 10978 10979cat >>confdefs.h <<_ACEOF 10980#define HAVE_UNION_BPF_ATTR_BPF_FD 1 10981_ACEOF 10982 10983 10984fi 10985ac_fn_c_check_member "$LINENO" "union bpf_attr" "dummy" "ac_cv_member_union_bpf_attr_dummy" "#include <linux/bpf.h> 10986" 10987if test "x$ac_cv_member_union_bpf_attr_dummy" = xyes; then : 10988 10989cat >>confdefs.h <<_ACEOF 10990#define HAVE_UNION_BPF_ATTR_DUMMY 1 10991_ACEOF 10992 10993 10994fi 10995ac_fn_c_check_member "$LINENO" "union bpf_attr" "expected_attach_type" "ac_cv_member_union_bpf_attr_expected_attach_type" "#include <linux/bpf.h> 10996" 10997if test "x$ac_cv_member_union_bpf_attr_expected_attach_type" = xyes; then : 10998 10999cat >>confdefs.h <<_ACEOF 11000#define HAVE_UNION_BPF_ATTR_EXPECTED_ATTACH_TYPE 1 11001_ACEOF 11002 11003 11004fi 11005ac_fn_c_check_member "$LINENO" "union bpf_attr" "file_flags" "ac_cv_member_union_bpf_attr_file_flags" "#include <linux/bpf.h> 11006" 11007if test "x$ac_cv_member_union_bpf_attr_file_flags" = xyes; then : 11008 11009cat >>confdefs.h <<_ACEOF 11010#define HAVE_UNION_BPF_ATTR_FILE_FLAGS 1 11011_ACEOF 11012 11013 11014fi 11015ac_fn_c_check_member "$LINENO" "union bpf_attr" "flags" "ac_cv_member_union_bpf_attr_flags" "#include <linux/bpf.h> 11016" 11017if test "x$ac_cv_member_union_bpf_attr_flags" = xyes; then : 11018 11019cat >>confdefs.h <<_ACEOF 11020#define HAVE_UNION_BPF_ATTR_FLAGS 1 11021_ACEOF 11022 11023 11024fi 11025ac_fn_c_check_member "$LINENO" "union bpf_attr" "info.bpf_fd" "ac_cv_member_union_bpf_attr_info_bpf_fd" "#include <linux/bpf.h> 11026" 11027if test "x$ac_cv_member_union_bpf_attr_info_bpf_fd" = xyes; then : 11028 11029cat >>confdefs.h <<_ACEOF 11030#define HAVE_UNION_BPF_ATTR_INFO_BPF_FD 1 11031_ACEOF 11032 11033 11034fi 11035ac_fn_c_check_member "$LINENO" "union bpf_attr" "info.info" "ac_cv_member_union_bpf_attr_info_info" "#include <linux/bpf.h> 11036" 11037if test "x$ac_cv_member_union_bpf_attr_info_info" = xyes; then : 11038 11039cat >>confdefs.h <<_ACEOF 11040#define HAVE_UNION_BPF_ATTR_INFO_INFO 1 11041_ACEOF 11042 11043 11044fi 11045ac_fn_c_check_member "$LINENO" "union bpf_attr" "info.info_len" "ac_cv_member_union_bpf_attr_info_info_len" "#include <linux/bpf.h> 11046" 11047if test "x$ac_cv_member_union_bpf_attr_info_info_len" = xyes; then : 11048 11049cat >>confdefs.h <<_ACEOF 11050#define HAVE_UNION_BPF_ATTR_INFO_INFO_LEN 1 11051_ACEOF 11052 11053 11054fi 11055ac_fn_c_check_member "$LINENO" "union bpf_attr" "inner_map_fd" "ac_cv_member_union_bpf_attr_inner_map_fd" "#include <linux/bpf.h> 11056" 11057if test "x$ac_cv_member_union_bpf_attr_inner_map_fd" = xyes; then : 11058 11059cat >>confdefs.h <<_ACEOF 11060#define HAVE_UNION_BPF_ATTR_INNER_MAP_FD 1 11061_ACEOF 11062 11063 11064fi 11065ac_fn_c_check_member "$LINENO" "union bpf_attr" "insn_cnt" "ac_cv_member_union_bpf_attr_insn_cnt" "#include <linux/bpf.h> 11066" 11067if test "x$ac_cv_member_union_bpf_attr_insn_cnt" = xyes; then : 11068 11069cat >>confdefs.h <<_ACEOF 11070#define HAVE_UNION_BPF_ATTR_INSN_CNT 1 11071_ACEOF 11072 11073 11074fi 11075ac_fn_c_check_member "$LINENO" "union bpf_attr" "insns" "ac_cv_member_union_bpf_attr_insns" "#include <linux/bpf.h> 11076" 11077if test "x$ac_cv_member_union_bpf_attr_insns" = xyes; then : 11078 11079cat >>confdefs.h <<_ACEOF 11080#define HAVE_UNION_BPF_ATTR_INSNS 1 11081_ACEOF 11082 11083 11084fi 11085ac_fn_c_check_member "$LINENO" "union bpf_attr" "kern_version" "ac_cv_member_union_bpf_attr_kern_version" "#include <linux/bpf.h> 11086" 11087if test "x$ac_cv_member_union_bpf_attr_kern_version" = xyes; then : 11088 11089cat >>confdefs.h <<_ACEOF 11090#define HAVE_UNION_BPF_ATTR_KERN_VERSION 1 11091_ACEOF 11092 11093 11094fi 11095ac_fn_c_check_member "$LINENO" "union bpf_attr" "key" "ac_cv_member_union_bpf_attr_key" "#include <linux/bpf.h> 11096" 11097if test "x$ac_cv_member_union_bpf_attr_key" = xyes; then : 11098 11099cat >>confdefs.h <<_ACEOF 11100#define HAVE_UNION_BPF_ATTR_KEY 1 11101_ACEOF 11102 11103 11104fi 11105ac_fn_c_check_member "$LINENO" "union bpf_attr" "key_size" "ac_cv_member_union_bpf_attr_key_size" "#include <linux/bpf.h> 11106" 11107if test "x$ac_cv_member_union_bpf_attr_key_size" = xyes; then : 11108 11109cat >>confdefs.h <<_ACEOF 11110#define HAVE_UNION_BPF_ATTR_KEY_SIZE 1 11111_ACEOF 11112 11113 11114fi 11115ac_fn_c_check_member "$LINENO" "union bpf_attr" "license" "ac_cv_member_union_bpf_attr_license" "#include <linux/bpf.h> 11116" 11117if test "x$ac_cv_member_union_bpf_attr_license" = xyes; then : 11118 11119cat >>confdefs.h <<_ACEOF 11120#define HAVE_UNION_BPF_ATTR_LICENSE 1 11121_ACEOF 11122 11123 11124fi 11125ac_fn_c_check_member "$LINENO" "union bpf_attr" "log_buf" "ac_cv_member_union_bpf_attr_log_buf" "#include <linux/bpf.h> 11126" 11127if test "x$ac_cv_member_union_bpf_attr_log_buf" = xyes; then : 11128 11129cat >>confdefs.h <<_ACEOF 11130#define HAVE_UNION_BPF_ATTR_LOG_BUF 1 11131_ACEOF 11132 11133 11134fi 11135ac_fn_c_check_member "$LINENO" "union bpf_attr" "log_level" "ac_cv_member_union_bpf_attr_log_level" "#include <linux/bpf.h> 11136" 11137if test "x$ac_cv_member_union_bpf_attr_log_level" = xyes; then : 11138 11139cat >>confdefs.h <<_ACEOF 11140#define HAVE_UNION_BPF_ATTR_LOG_LEVEL 1 11141_ACEOF 11142 11143 11144fi 11145ac_fn_c_check_member "$LINENO" "union bpf_attr" "log_size" "ac_cv_member_union_bpf_attr_log_size" "#include <linux/bpf.h> 11146" 11147if test "x$ac_cv_member_union_bpf_attr_log_size" = xyes; then : 11148 11149cat >>confdefs.h <<_ACEOF 11150#define HAVE_UNION_BPF_ATTR_LOG_SIZE 1 11151_ACEOF 11152 11153 11154fi 11155ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_fd" "ac_cv_member_union_bpf_attr_map_fd" "#include <linux/bpf.h> 11156" 11157if test "x$ac_cv_member_union_bpf_attr_map_fd" = xyes; then : 11158 11159cat >>confdefs.h <<_ACEOF 11160#define HAVE_UNION_BPF_ATTR_MAP_FD 1 11161_ACEOF 11162 11163 11164fi 11165ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_flags" "ac_cv_member_union_bpf_attr_map_flags" "#include <linux/bpf.h> 11166" 11167if test "x$ac_cv_member_union_bpf_attr_map_flags" = xyes; then : 11168 11169cat >>confdefs.h <<_ACEOF 11170#define HAVE_UNION_BPF_ATTR_MAP_FLAGS 1 11171_ACEOF 11172 11173 11174fi 11175ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_id" "ac_cv_member_union_bpf_attr_map_id" "#include <linux/bpf.h> 11176" 11177if test "x$ac_cv_member_union_bpf_attr_map_id" = xyes; then : 11178 11179cat >>confdefs.h <<_ACEOF 11180#define HAVE_UNION_BPF_ATTR_MAP_ID 1 11181_ACEOF 11182 11183 11184fi 11185ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_ifindex" "ac_cv_member_union_bpf_attr_map_ifindex" "#include <linux/bpf.h> 11186" 11187if test "x$ac_cv_member_union_bpf_attr_map_ifindex" = xyes; then : 11188 11189cat >>confdefs.h <<_ACEOF 11190#define HAVE_UNION_BPF_ATTR_MAP_IFINDEX 1 11191_ACEOF 11192 11193 11194fi 11195ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_name" "ac_cv_member_union_bpf_attr_map_name" "#include <linux/bpf.h> 11196" 11197if test "x$ac_cv_member_union_bpf_attr_map_name" = xyes; then : 11198 11199cat >>confdefs.h <<_ACEOF 11200#define HAVE_UNION_BPF_ATTR_MAP_NAME 1 11201_ACEOF 11202 11203 11204fi 11205ac_fn_c_check_member "$LINENO" "union bpf_attr" "map_type" "ac_cv_member_union_bpf_attr_map_type" "#include <linux/bpf.h> 11206" 11207if test "x$ac_cv_member_union_bpf_attr_map_type" = xyes; then : 11208 11209cat >>confdefs.h <<_ACEOF 11210#define HAVE_UNION_BPF_ATTR_MAP_TYPE 1 11211_ACEOF 11212 11213 11214fi 11215ac_fn_c_check_member "$LINENO" "union bpf_attr" "max_entries" "ac_cv_member_union_bpf_attr_max_entries" "#include <linux/bpf.h> 11216" 11217if test "x$ac_cv_member_union_bpf_attr_max_entries" = xyes; then : 11218 11219cat >>confdefs.h <<_ACEOF 11220#define HAVE_UNION_BPF_ATTR_MAX_ENTRIES 1 11221_ACEOF 11222 11223 11224fi 11225ac_fn_c_check_member "$LINENO" "union bpf_attr" "next_id" "ac_cv_member_union_bpf_attr_next_id" "#include <linux/bpf.h> 11226" 11227if test "x$ac_cv_member_union_bpf_attr_next_id" = xyes; then : 11228 11229cat >>confdefs.h <<_ACEOF 11230#define HAVE_UNION_BPF_ATTR_NEXT_ID 1 11231_ACEOF 11232 11233 11234fi 11235ac_fn_c_check_member "$LINENO" "union bpf_attr" "next_key" "ac_cv_member_union_bpf_attr_next_key" "#include <linux/bpf.h> 11236" 11237if test "x$ac_cv_member_union_bpf_attr_next_key" = xyes; then : 11238 11239cat >>confdefs.h <<_ACEOF 11240#define HAVE_UNION_BPF_ATTR_NEXT_KEY 1 11241_ACEOF 11242 11243 11244fi 11245ac_fn_c_check_member "$LINENO" "union bpf_attr" "numa_node" "ac_cv_member_union_bpf_attr_numa_node" "#include <linux/bpf.h> 11246" 11247if test "x$ac_cv_member_union_bpf_attr_numa_node" = xyes; then : 11248 11249cat >>confdefs.h <<_ACEOF 11250#define HAVE_UNION_BPF_ATTR_NUMA_NODE 1 11251_ACEOF 11252 11253 11254fi 11255ac_fn_c_check_member "$LINENO" "union bpf_attr" "open_flags" "ac_cv_member_union_bpf_attr_open_flags" "#include <linux/bpf.h> 11256" 11257if test "x$ac_cv_member_union_bpf_attr_open_flags" = xyes; then : 11258 11259cat >>confdefs.h <<_ACEOF 11260#define HAVE_UNION_BPF_ATTR_OPEN_FLAGS 1 11261_ACEOF 11262 11263 11264fi 11265ac_fn_c_check_member "$LINENO" "union bpf_attr" "pathname" "ac_cv_member_union_bpf_attr_pathname" "#include <linux/bpf.h> 11266" 11267if test "x$ac_cv_member_union_bpf_attr_pathname" = xyes; then : 11268 11269cat >>confdefs.h <<_ACEOF 11270#define HAVE_UNION_BPF_ATTR_PATHNAME 1 11271_ACEOF 11272 11273 11274fi 11275ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_flags" "ac_cv_member_union_bpf_attr_prog_flags" "#include <linux/bpf.h> 11276" 11277if test "x$ac_cv_member_union_bpf_attr_prog_flags" = xyes; then : 11278 11279cat >>confdefs.h <<_ACEOF 11280#define HAVE_UNION_BPF_ATTR_PROG_FLAGS 1 11281_ACEOF 11282 11283 11284fi 11285ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_id" "ac_cv_member_union_bpf_attr_prog_id" "#include <linux/bpf.h> 11286" 11287if test "x$ac_cv_member_union_bpf_attr_prog_id" = xyes; then : 11288 11289cat >>confdefs.h <<_ACEOF 11290#define HAVE_UNION_BPF_ATTR_PROG_ID 1 11291_ACEOF 11292 11293 11294fi 11295ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_ifindex" "ac_cv_member_union_bpf_attr_prog_ifindex" "#include <linux/bpf.h> 11296" 11297if test "x$ac_cv_member_union_bpf_attr_prog_ifindex" = xyes; then : 11298 11299cat >>confdefs.h <<_ACEOF 11300#define HAVE_UNION_BPF_ATTR_PROG_IFINDEX 1 11301_ACEOF 11302 11303 11304fi 11305ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_name" "ac_cv_member_union_bpf_attr_prog_name" "#include <linux/bpf.h> 11306" 11307if test "x$ac_cv_member_union_bpf_attr_prog_name" = xyes; then : 11308 11309cat >>confdefs.h <<_ACEOF 11310#define HAVE_UNION_BPF_ATTR_PROG_NAME 1 11311_ACEOF 11312 11313 11314fi 11315ac_fn_c_check_member "$LINENO" "union bpf_attr" "prog_type" "ac_cv_member_union_bpf_attr_prog_type" "#include <linux/bpf.h> 11316" 11317if test "x$ac_cv_member_union_bpf_attr_prog_type" = xyes; then : 11318 11319cat >>confdefs.h <<_ACEOF 11320#define HAVE_UNION_BPF_ATTR_PROG_TYPE 1 11321_ACEOF 11322 11323 11324fi 11325ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.attach_flags" "ac_cv_member_union_bpf_attr_query_attach_flags" "#include <linux/bpf.h> 11326" 11327if test "x$ac_cv_member_union_bpf_attr_query_attach_flags" = xyes; then : 11328 11329cat >>confdefs.h <<_ACEOF 11330#define HAVE_UNION_BPF_ATTR_QUERY_ATTACH_FLAGS 1 11331_ACEOF 11332 11333 11334fi 11335ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.attach_type" "ac_cv_member_union_bpf_attr_query_attach_type" "#include <linux/bpf.h> 11336" 11337if test "x$ac_cv_member_union_bpf_attr_query_attach_type" = xyes; then : 11338 11339cat >>confdefs.h <<_ACEOF 11340#define HAVE_UNION_BPF_ATTR_QUERY_ATTACH_TYPE 1 11341_ACEOF 11342 11343 11344fi 11345ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.prog_cnt" "ac_cv_member_union_bpf_attr_query_prog_cnt" "#include <linux/bpf.h> 11346" 11347if test "x$ac_cv_member_union_bpf_attr_query_prog_cnt" = xyes; then : 11348 11349cat >>confdefs.h <<_ACEOF 11350#define HAVE_UNION_BPF_ATTR_QUERY_PROG_CNT 1 11351_ACEOF 11352 11353 11354fi 11355ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.prog_ids" "ac_cv_member_union_bpf_attr_query_prog_ids" "#include <linux/bpf.h> 11356" 11357if test "x$ac_cv_member_union_bpf_attr_query_prog_ids" = xyes; then : 11358 11359cat >>confdefs.h <<_ACEOF 11360#define HAVE_UNION_BPF_ATTR_QUERY_PROG_IDS 1 11361_ACEOF 11362 11363 11364fi 11365ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.query_flags" "ac_cv_member_union_bpf_attr_query_query_flags" "#include <linux/bpf.h> 11366" 11367if test "x$ac_cv_member_union_bpf_attr_query_query_flags" = xyes; then : 11368 11369cat >>confdefs.h <<_ACEOF 11370#define HAVE_UNION_BPF_ATTR_QUERY_QUERY_FLAGS 1 11371_ACEOF 11372 11373 11374fi 11375ac_fn_c_check_member "$LINENO" "union bpf_attr" "query.target_fd" "ac_cv_member_union_bpf_attr_query_target_fd" "#include <linux/bpf.h> 11376" 11377if test "x$ac_cv_member_union_bpf_attr_query_target_fd" = xyes; then : 11378 11379cat >>confdefs.h <<_ACEOF 11380#define HAVE_UNION_BPF_ATTR_QUERY_TARGET_FD 1 11381_ACEOF 11382 11383 11384fi 11385ac_fn_c_check_member "$LINENO" "union bpf_attr" "raw_tracepoint.name" "ac_cv_member_union_bpf_attr_raw_tracepoint_name" "#include <linux/bpf.h> 11386" 11387if test "x$ac_cv_member_union_bpf_attr_raw_tracepoint_name" = xyes; then : 11388 11389cat >>confdefs.h <<_ACEOF 11390#define HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_NAME 1 11391_ACEOF 11392 11393 11394fi 11395ac_fn_c_check_member "$LINENO" "union bpf_attr" "raw_tracepoint.prog_fd" "ac_cv_member_union_bpf_attr_raw_tracepoint_prog_fd" "#include <linux/bpf.h> 11396" 11397if test "x$ac_cv_member_union_bpf_attr_raw_tracepoint_prog_fd" = xyes; then : 11398 11399cat >>confdefs.h <<_ACEOF 11400#define HAVE_UNION_BPF_ATTR_RAW_TRACEPOINT_PROG_FD 1 11401_ACEOF 11402 11403 11404fi 11405ac_fn_c_check_member "$LINENO" "union bpf_attr" "start_id" "ac_cv_member_union_bpf_attr_start_id" "#include <linux/bpf.h> 11406" 11407if test "x$ac_cv_member_union_bpf_attr_start_id" = xyes; then : 11408 11409cat >>confdefs.h <<_ACEOF 11410#define HAVE_UNION_BPF_ATTR_START_ID 1 11411_ACEOF 11412 11413 11414fi 11415ac_fn_c_check_member "$LINENO" "union bpf_attr" "target_fd" "ac_cv_member_union_bpf_attr_target_fd" "#include <linux/bpf.h> 11416" 11417if test "x$ac_cv_member_union_bpf_attr_target_fd" = xyes; then : 11418 11419cat >>confdefs.h <<_ACEOF 11420#define HAVE_UNION_BPF_ATTR_TARGET_FD 1 11421_ACEOF 11422 11423 11424fi 11425ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.data_in" "ac_cv_member_union_bpf_attr_test_data_in" "#include <linux/bpf.h> 11426" 11427if test "x$ac_cv_member_union_bpf_attr_test_data_in" = xyes; then : 11428 11429cat >>confdefs.h <<_ACEOF 11430#define HAVE_UNION_BPF_ATTR_TEST_DATA_IN 1 11431_ACEOF 11432 11433 11434fi 11435ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.data_out" "ac_cv_member_union_bpf_attr_test_data_out" "#include <linux/bpf.h> 11436" 11437if test "x$ac_cv_member_union_bpf_attr_test_data_out" = xyes; then : 11438 11439cat >>confdefs.h <<_ACEOF 11440#define HAVE_UNION_BPF_ATTR_TEST_DATA_OUT 1 11441_ACEOF 11442 11443 11444fi 11445ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.data_size_in" "ac_cv_member_union_bpf_attr_test_data_size_in" "#include <linux/bpf.h> 11446" 11447if test "x$ac_cv_member_union_bpf_attr_test_data_size_in" = xyes; then : 11448 11449cat >>confdefs.h <<_ACEOF 11450#define HAVE_UNION_BPF_ATTR_TEST_DATA_SIZE_IN 1 11451_ACEOF 11452 11453 11454fi 11455ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.data_size_out" "ac_cv_member_union_bpf_attr_test_data_size_out" "#include <linux/bpf.h> 11456" 11457if test "x$ac_cv_member_union_bpf_attr_test_data_size_out" = xyes; then : 11458 11459cat >>confdefs.h <<_ACEOF 11460#define HAVE_UNION_BPF_ATTR_TEST_DATA_SIZE_OUT 1 11461_ACEOF 11462 11463 11464fi 11465ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.duration" "ac_cv_member_union_bpf_attr_test_duration" "#include <linux/bpf.h> 11466" 11467if test "x$ac_cv_member_union_bpf_attr_test_duration" = xyes; then : 11468 11469cat >>confdefs.h <<_ACEOF 11470#define HAVE_UNION_BPF_ATTR_TEST_DURATION 1 11471_ACEOF 11472 11473 11474fi 11475ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.prog_fd" "ac_cv_member_union_bpf_attr_test_prog_fd" "#include <linux/bpf.h> 11476" 11477if test "x$ac_cv_member_union_bpf_attr_test_prog_fd" = xyes; then : 11478 11479cat >>confdefs.h <<_ACEOF 11480#define HAVE_UNION_BPF_ATTR_TEST_PROG_FD 1 11481_ACEOF 11482 11483 11484fi 11485ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.repeat" "ac_cv_member_union_bpf_attr_test_repeat" "#include <linux/bpf.h> 11486" 11487if test "x$ac_cv_member_union_bpf_attr_test_repeat" = xyes; then : 11488 11489cat >>confdefs.h <<_ACEOF 11490#define HAVE_UNION_BPF_ATTR_TEST_REPEAT 1 11491_ACEOF 11492 11493 11494fi 11495ac_fn_c_check_member "$LINENO" "union bpf_attr" "test.retval" "ac_cv_member_union_bpf_attr_test_retval" "#include <linux/bpf.h> 11496" 11497if test "x$ac_cv_member_union_bpf_attr_test_retval" = xyes; then : 11498 11499cat >>confdefs.h <<_ACEOF 11500#define HAVE_UNION_BPF_ATTR_TEST_RETVAL 1 11501_ACEOF 11502 11503 11504fi 11505ac_fn_c_check_member "$LINENO" "union bpf_attr" "value" "ac_cv_member_union_bpf_attr_value" "#include <linux/bpf.h> 11506" 11507if test "x$ac_cv_member_union_bpf_attr_value" = xyes; then : 11508 11509cat >>confdefs.h <<_ACEOF 11510#define HAVE_UNION_BPF_ATTR_VALUE 1 11511_ACEOF 11512 11513 11514fi 11515ac_fn_c_check_member "$LINENO" "union bpf_attr" "value_size" "ac_cv_member_union_bpf_attr_value_size" "#include <linux/bpf.h> 11516" 11517if test "x$ac_cv_member_union_bpf_attr_value_size" = xyes; then : 11518 11519cat >>confdefs.h <<_ACEOF 11520#define HAVE_UNION_BPF_ATTR_VALUE_SIZE 1 11521_ACEOF 11522 11523 11524fi 11525ac_fn_c_check_member "$LINENO" "union bpf_attr" "dummy" "ac_cv_member_union_bpf_attr_dummy" "#include <linux/bpf.h> 11526" 11527if test "x$ac_cv_member_union_bpf_attr_dummy" = xyes; then : 11528 11529cat >>confdefs.h <<_ACEOF 11530#define HAVE_UNION_BPF_ATTR_DUMMY 1 11531_ACEOF 11532 11533 11534fi 11535 11536 11537 11538fi 11539 11540done 11541 11542 11543for ac_header in bluetooth/bluetooth.h 11544do : 11545 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 11546if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 11547 cat >>confdefs.h <<_ACEOF 11548#define HAVE_BLUETOOTH_BLUETOOTH_H 1 11549_ACEOF 11550 11551 ac_fn_c_check_member "$LINENO" "struct sockaddr_l2" "l2_bdaddr_type" "ac_cv_member_struct_sockaddr_l2_l2_bdaddr_type" "#include <bluetooth/bluetooth.h> 11552 #include <bluetooth/l2cap.h> 11553" 11554if test "x$ac_cv_member_struct_sockaddr_l2_l2_bdaddr_type" = xyes; then : 11555 11556cat >>confdefs.h <<_ACEOF 11557#define HAVE_STRUCT_SOCKADDR_L2_L2_BDADDR_TYPE 1 11558_ACEOF 11559 11560 11561fi 11562 11563 11564fi 11565 11566done 11567 11568 11569ac_fn_c_check_type "$LINENO" "struct br_mdb_entry" "ac_cv_type_struct_br_mdb_entry" "#include <linux/if_bridge.h> 11570" 11571if test "x$ac_cv_type_struct_br_mdb_entry" = xyes; then : 11572 11573cat >>confdefs.h <<_ACEOF 11574#define HAVE_STRUCT_BR_MDB_ENTRY 1 11575_ACEOF 11576 11577 11578fi 11579ac_fn_c_check_type "$LINENO" "struct br_port_msg" "ac_cv_type_struct_br_port_msg" "#include <linux/if_bridge.h> 11580" 11581if test "x$ac_cv_type_struct_br_port_msg" = xyes; then : 11582 11583cat >>confdefs.h <<_ACEOF 11584#define HAVE_STRUCT_BR_PORT_MSG 1 11585_ACEOF 11586 11587 11588fi 11589 11590ac_fn_c_check_member "$LINENO" "struct br_mdb_entry" "flags" "ac_cv_member_struct_br_mdb_entry_flags" "#include <linux/if_bridge.h> 11591" 11592if test "x$ac_cv_member_struct_br_mdb_entry_flags" = xyes; then : 11593 11594cat >>confdefs.h <<_ACEOF 11595#define HAVE_STRUCT_BR_MDB_ENTRY_FLAGS 1 11596_ACEOF 11597 11598 11599fi 11600ac_fn_c_check_member "$LINENO" "struct br_mdb_entry" "vid" "ac_cv_member_struct_br_mdb_entry_vid" "#include <linux/if_bridge.h> 11601" 11602if test "x$ac_cv_member_struct_br_mdb_entry_vid" = xyes; then : 11603 11604cat >>confdefs.h <<_ACEOF 11605#define HAVE_STRUCT_BR_MDB_ENTRY_VID 1 11606_ACEOF 11607 11608 11609fi 11610 11611 11612ac_fn_c_check_type "$LINENO" "struct dcbmsg" "ac_cv_type_struct_dcbmsg" "#include <linux/dcbnl.h> 11613" 11614if test "x$ac_cv_type_struct_dcbmsg" = xyes; then : 11615 11616cat >>confdefs.h <<_ACEOF 11617#define HAVE_STRUCT_DCBMSG 1 11618_ACEOF 11619 11620 11621fi 11622 11623ac_fn_c_check_type "$LINENO" "struct ifaddrlblmsg" "ac_cv_type_struct_ifaddrlblmsg" "#include <linux/if_addrlabel.h> 11624" 11625if test "x$ac_cv_type_struct_ifaddrlblmsg" = xyes; then : 11626 11627cat >>confdefs.h <<_ACEOF 11628#define HAVE_STRUCT_IFADDRLBLMSG 1 11629_ACEOF 11630 11631 11632fi 11633 11634ac_fn_c_check_type "$LINENO" "struct netconfmsg" "ac_cv_type_struct_netconfmsg" "#include <linux/netconf.h> 11635" 11636if test "x$ac_cv_type_struct_netconfmsg" = xyes; then : 11637 11638cat >>confdefs.h <<_ACEOF 11639#define HAVE_STRUCT_NETCONFMSG 1 11640_ACEOF 11641 11642 11643fi 11644 11645 11646ac_fn_c_check_type "$LINENO" "struct rta_mfc_stats" "ac_cv_type_struct_rta_mfc_stats" "#include <sys/socket.h> 11647#include <linux/rtnetlink.h> 11648" 11649if test "x$ac_cv_type_struct_rta_mfc_stats" = xyes; then : 11650 11651cat >>confdefs.h <<_ACEOF 11652#define HAVE_STRUCT_RTA_MFC_STATS 1 11653_ACEOF 11654 11655 11656fi 11657ac_fn_c_check_type "$LINENO" "struct rtvia" "ac_cv_type_struct_rtvia" "#include <sys/socket.h> 11658#include <linux/rtnetlink.h> 11659" 11660if test "x$ac_cv_type_struct_rtvia" = xyes; then : 11661 11662cat >>confdefs.h <<_ACEOF 11663#define HAVE_STRUCT_RTVIA 1 11664_ACEOF 11665 11666 11667fi 11668 11669 11670ac_fn_c_check_member "$LINENO" "struct ndt_stats" "ndts_table_fulls" "ac_cv_member_struct_ndt_stats_ndts_table_fulls" "#include <linux/neighbour.h> 11671" 11672if test "x$ac_cv_member_struct_ndt_stats_ndts_table_fulls" = xyes; then : 11673 11674cat >>confdefs.h <<_ACEOF 11675#define HAVE_STRUCT_NDT_STATS_NDTS_TABLE_FULLS 1 11676_ACEOF 11677 11678 11679fi 11680 11681ac_fn_c_check_type "$LINENO" "struct ndt_config" "ac_cv_type_struct_ndt_config" "#include <linux/neighbour.h> 11682" 11683if test "x$ac_cv_type_struct_ndt_config" = xyes; then : 11684 11685cat >>confdefs.h <<_ACEOF 11686#define HAVE_STRUCT_NDT_CONFIG 1 11687_ACEOF 11688 11689 11690fi 11691ac_fn_c_check_type "$LINENO" "struct ndt_stats" "ac_cv_type_struct_ndt_stats" "#include <linux/neighbour.h> 11692" 11693if test "x$ac_cv_type_struct_ndt_stats" = xyes; then : 11694 11695cat >>confdefs.h <<_ACEOF 11696#define HAVE_STRUCT_NDT_STATS 1 11697_ACEOF 11698 11699 11700fi 11701 11702 11703ac_fn_c_check_type "$LINENO" "struct ifla_bridge_id" "ac_cv_type_struct_ifla_bridge_id" "#include <sys/socket.h> 11704#include <linux/rtnetlink.h> 11705" 11706if test "x$ac_cv_type_struct_ifla_bridge_id" = xyes; then : 11707 11708cat >>confdefs.h <<_ACEOF 11709#define HAVE_STRUCT_IFLA_BRIDGE_ID 1 11710_ACEOF 11711 11712 11713fi 11714ac_fn_c_check_type "$LINENO" "struct ifla_cacheinfo" "ac_cv_type_struct_ifla_cacheinfo" "#include <sys/socket.h> 11715#include <linux/rtnetlink.h> 11716" 11717if test "x$ac_cv_type_struct_ifla_cacheinfo" = xyes; then : 11718 11719cat >>confdefs.h <<_ACEOF 11720#define HAVE_STRUCT_IFLA_CACHEINFO 1 11721_ACEOF 11722 11723 11724fi 11725ac_fn_c_check_type "$LINENO" "struct ifla_port_vsi" "ac_cv_type_struct_ifla_port_vsi" "#include <sys/socket.h> 11726#include <linux/rtnetlink.h> 11727" 11728if test "x$ac_cv_type_struct_ifla_port_vsi" = xyes; then : 11729 11730cat >>confdefs.h <<_ACEOF 11731#define HAVE_STRUCT_IFLA_PORT_VSI 1 11732_ACEOF 11733 11734 11735fi 11736ac_fn_c_check_type "$LINENO" "struct rtnl_link_stats64" "ac_cv_type_struct_rtnl_link_stats64" "#include <sys/socket.h> 11737#include <linux/rtnetlink.h> 11738" 11739if test "x$ac_cv_type_struct_rtnl_link_stats64" = xyes; then : 11740 11741cat >>confdefs.h <<_ACEOF 11742#define HAVE_STRUCT_RTNL_LINK_STATS64 1 11743_ACEOF 11744 11745 11746fi 11747 11748ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats" "rx_nohandler" "ac_cv_member_struct_rtnl_link_stats_rx_nohandler" "#include <sys/socket.h> 11749#include <linux/rtnetlink.h> 11750" 11751if test "x$ac_cv_member_struct_rtnl_link_stats_rx_nohandler" = xyes; then : 11752 11753cat >>confdefs.h <<_ACEOF 11754#define HAVE_STRUCT_RTNL_LINK_STATS_RX_NOHANDLER 1 11755_ACEOF 11756 11757 11758fi 11759ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats64" "rx_nohandler" "ac_cv_member_struct_rtnl_link_stats64_rx_nohandler" "#include <sys/socket.h> 11760#include <linux/rtnetlink.h> 11761" 11762if test "x$ac_cv_member_struct_rtnl_link_stats64_rx_nohandler" = xyes; then : 11763 11764cat >>confdefs.h <<_ACEOF 11765#define HAVE_STRUCT_RTNL_LINK_STATS64_RX_NOHANDLER 1 11766_ACEOF 11767 11768 11769fi 11770 11771ac_fn_c_check_decl "$LINENO" "IFLA_PORT_SELF" "ac_cv_have_decl_IFLA_PORT_SELF" "#include <sys/socket.h> 11772#include <linux/rtnetlink.h> 11773" 11774if test "x$ac_cv_have_decl_IFLA_PORT_SELF" = xyes; then : 11775 ac_have_decl=1 11776else 11777 ac_have_decl=0 11778fi 11779 11780cat >>confdefs.h <<_ACEOF 11781#define HAVE_DECL_IFLA_PORT_SELF $ac_have_decl 11782_ACEOF 11783ac_fn_c_check_decl "$LINENO" "IFLA_PROTINFO" "ac_cv_have_decl_IFLA_PROTINFO" "#include <sys/socket.h> 11784#include <linux/rtnetlink.h> 11785" 11786if test "x$ac_cv_have_decl_IFLA_PROTINFO" = xyes; then : 11787 ac_have_decl=1 11788else 11789 ac_have_decl=0 11790fi 11791 11792cat >>confdefs.h <<_ACEOF 11793#define HAVE_DECL_IFLA_PROTINFO $ac_have_decl 11794_ACEOF 11795ac_fn_c_check_decl "$LINENO" "IFLA_AF_SPEC" "ac_cv_have_decl_IFLA_AF_SPEC" "#include <sys/socket.h> 11796#include <linux/rtnetlink.h> 11797" 11798if test "x$ac_cv_have_decl_IFLA_AF_SPEC" = xyes; then : 11799 ac_have_decl=1 11800else 11801 ac_have_decl=0 11802fi 11803 11804cat >>confdefs.h <<_ACEOF 11805#define HAVE_DECL_IFLA_AF_SPEC $ac_have_decl 11806_ACEOF 11807ac_fn_c_check_decl "$LINENO" "IFLA_XDP" "ac_cv_have_decl_IFLA_XDP" "#include <sys/socket.h> 11808#include <linux/rtnetlink.h> 11809" 11810if test "x$ac_cv_have_decl_IFLA_XDP" = xyes; then : 11811 ac_have_decl=1 11812else 11813 ac_have_decl=0 11814fi 11815 11816cat >>confdefs.h <<_ACEOF 11817#define HAVE_DECL_IFLA_XDP $ac_have_decl 11818_ACEOF 11819 11820 11821ac_fn_c_check_type "$LINENO" "struct gnet_stats_basic" "ac_cv_type_struct_gnet_stats_basic" "#include <linux/gen_stats.h> 11822" 11823if test "x$ac_cv_type_struct_gnet_stats_basic" = xyes; then : 11824 11825cat >>confdefs.h <<_ACEOF 11826#define HAVE_STRUCT_GNET_STATS_BASIC 1 11827_ACEOF 11828 11829 11830fi 11831ac_fn_c_check_type "$LINENO" "struct gnet_stats_queue" "ac_cv_type_struct_gnet_stats_queue" "#include <linux/gen_stats.h> 11832" 11833if test "x$ac_cv_type_struct_gnet_stats_queue" = xyes; then : 11834 11835cat >>confdefs.h <<_ACEOF 11836#define HAVE_STRUCT_GNET_STATS_QUEUE 1 11837_ACEOF 11838 11839 11840fi 11841ac_fn_c_check_type "$LINENO" "struct gnet_stats_rate_est" "ac_cv_type_struct_gnet_stats_rate_est" "#include <linux/gen_stats.h> 11842" 11843if test "x$ac_cv_type_struct_gnet_stats_rate_est" = xyes; then : 11844 11845cat >>confdefs.h <<_ACEOF 11846#define HAVE_STRUCT_GNET_STATS_RATE_EST 1 11847_ACEOF 11848 11849 11850fi 11851ac_fn_c_check_type "$LINENO" "struct gnet_stats_rate_est64" "ac_cv_type_struct_gnet_stats_rate_est64" "#include <linux/gen_stats.h> 11852" 11853if test "x$ac_cv_type_struct_gnet_stats_rate_est64" = xyes; then : 11854 11855cat >>confdefs.h <<_ACEOF 11856#define HAVE_STRUCT_GNET_STATS_RATE_EST64 1 11857_ACEOF 11858 11859 11860fi 11861 11862 11863ac_fn_c_check_type "$LINENO" "struct tc_sizespec" "ac_cv_type_struct_tc_sizespec" "#include <linux/types.h> 11864#include <linux/pkt_sched.h> 11865" 11866if test "x$ac_cv_type_struct_tc_sizespec" = xyes; then : 11867 11868cat >>confdefs.h <<_ACEOF 11869#define HAVE_STRUCT_TC_SIZESPEC 1 11870_ACEOF 11871 11872 11873fi 11874 11875ac_fn_c_check_decl "$LINENO" "TCA_STAB_DATA" "ac_cv_have_decl_TCA_STAB_DATA" "#include <linux/types.h> 11876#include <linux/pkt_sched.h> 11877" 11878if test "x$ac_cv_have_decl_TCA_STAB_DATA" = xyes; then : 11879 ac_have_decl=1 11880else 11881 ac_have_decl=0 11882fi 11883 11884cat >>confdefs.h <<_ACEOF 11885#define HAVE_DECL_TCA_STAB_DATA $ac_have_decl 11886_ACEOF 11887 11888 11889ac_fn_c_check_type "$LINENO" "struct fib_rule_uid_range" "ac_cv_type_struct_fib_rule_uid_range" "#include <linux/fib_rules.h> 11890" 11891if test "x$ac_cv_type_struct_fib_rule_uid_range" = xyes; then : 11892 11893cat >>confdefs.h <<_ACEOF 11894#define HAVE_STRUCT_FIB_RULE_UID_RANGE 1 11895_ACEOF 11896 11897 11898fi 11899ac_fn_c_check_type "$LINENO" "struct fib_rule_port_range" "ac_cv_type_struct_fib_rule_port_range" "#include <linux/fib_rules.h> 11900" 11901if test "x$ac_cv_type_struct_fib_rule_port_range" = xyes; then : 11902 11903cat >>confdefs.h <<_ACEOF 11904#define HAVE_STRUCT_FIB_RULE_PORT_RANGE 1 11905_ACEOF 11906 11907 11908fi 11909 11910 11911ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#include <linux/types.h> 11912#include <asm/statfs.h> 11913" 11914if test "x$ac_cv_type_struct_statfs" = xyes; then : 11915 11916cat >>confdefs.h <<_ACEOF 11917#define HAVE_STRUCT_STATFS 1 11918_ACEOF 11919 11920 11921 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <linux/types.h> 11922#include <asm/statfs.h> 11923" 11924if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then : 11925 11926cat >>confdefs.h <<_ACEOF 11927#define HAVE_STRUCT_STATFS_F_FRSIZE 1 11928_ACEOF 11929 11930 11931fi 11932ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "#include <linux/types.h> 11933#include <asm/statfs.h> 11934" 11935if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : 11936 11937cat >>confdefs.h <<_ACEOF 11938#define HAVE_STRUCT_STATFS_F_FLAGS 1 11939_ACEOF 11940 11941 11942fi 11943ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsid.val" "ac_cv_member_struct_statfs_f_fsid_val" "#include <linux/types.h> 11944#include <asm/statfs.h> 11945" 11946if test "x$ac_cv_member_struct_statfs_f_fsid_val" = xyes; then : 11947 11948cat >>confdefs.h <<_ACEOF 11949#define HAVE_STRUCT_STATFS_F_FSID_VAL 1 11950_ACEOF 11951 11952 11953fi 11954ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsid.__val" "ac_cv_member_struct_statfs_f_fsid___val" "#include <linux/types.h> 11955#include <asm/statfs.h> 11956" 11957if test "x$ac_cv_member_struct_statfs_f_fsid___val" = xyes; then : 11958 11959cat >>confdefs.h <<_ACEOF 11960#define HAVE_STRUCT_STATFS_F_FSID___VAL 1 11961_ACEOF 11962 11963 11964fi 11965 11966 11967fi 11968 11969 11970ac_fn_c_check_type "$LINENO" "struct statfs64" "ac_cv_type_struct_statfs64" "#include <linux/types.h> 11971#include <asm/statfs.h> 11972" 11973if test "x$ac_cv_type_struct_statfs64" = xyes; then : 11974 11975cat >>confdefs.h <<_ACEOF 11976#define HAVE_STRUCT_STATFS64 1 11977_ACEOF 11978 11979 11980 ac_fn_c_check_member "$LINENO" "struct statfs64" "f_frsize" "ac_cv_member_struct_statfs64_f_frsize" "#include <linux/types.h> 11981#include <asm/statfs.h> 11982" 11983if test "x$ac_cv_member_struct_statfs64_f_frsize" = xyes; then : 11984 11985cat >>confdefs.h <<_ACEOF 11986#define HAVE_STRUCT_STATFS64_F_FRSIZE 1 11987_ACEOF 11988 11989 11990fi 11991ac_fn_c_check_member "$LINENO" "struct statfs64" "f_flags" "ac_cv_member_struct_statfs64_f_flags" "#include <linux/types.h> 11992#include <asm/statfs.h> 11993" 11994if test "x$ac_cv_member_struct_statfs64_f_flags" = xyes; then : 11995 11996cat >>confdefs.h <<_ACEOF 11997#define HAVE_STRUCT_STATFS64_F_FLAGS 1 11998_ACEOF 11999 12000 12001fi 12002ac_fn_c_check_member "$LINENO" "struct statfs64" "f_fsid.val" "ac_cv_member_struct_statfs64_f_fsid_val" "#include <linux/types.h> 12003#include <asm/statfs.h> 12004" 12005if test "x$ac_cv_member_struct_statfs64_f_fsid_val" = xyes; then : 12006 12007cat >>confdefs.h <<_ACEOF 12008#define HAVE_STRUCT_STATFS64_F_FSID_VAL 1 12009_ACEOF 12010 12011 12012fi 12013ac_fn_c_check_member "$LINENO" "struct statfs64" "f_fsid.__val" "ac_cv_member_struct_statfs64_f_fsid___val" "#include <linux/types.h> 12014#include <asm/statfs.h> 12015" 12016if test "x$ac_cv_member_struct_statfs64_f_fsid___val" = xyes; then : 12017 12018cat >>confdefs.h <<_ACEOF 12019#define HAVE_STRUCT_STATFS64_F_FSID___VAL 1 12020_ACEOF 12021 12022 12023fi 12024 12025 12026fi 12027 12028 12029ac_fn_c_check_type "$LINENO" "struct blk_user_trace_setup" "ac_cv_type_struct_blk_user_trace_setup" "#include <linux/blktrace_api.h> 12030" 12031if test "x$ac_cv_type_struct_blk_user_trace_setup" = xyes; then : 12032 12033cat >>confdefs.h <<_ACEOF 12034#define HAVE_STRUCT_BLK_USER_TRACE_SETUP 1 12035_ACEOF 12036 12037 12038fi 12039 12040 12041ac_fn_c_check_type "$LINENO" "struct mtd_write_req" "ac_cv_type_struct_mtd_write_req" "#include <mtd/mtd-abi.h> 12042" 12043if test "x$ac_cv_type_struct_mtd_write_req" = xyes; then : 12044 12045cat >>confdefs.h <<_ACEOF 12046#define HAVE_STRUCT_MTD_WRITE_REQ 1 12047_ACEOF 12048 12049 12050fi 12051 12052 12053ac_fn_c_check_member "$LINENO" "struct ubi_attach_req" "max_beb_per1024" "ac_cv_member_struct_ubi_attach_req_max_beb_per1024" "#include <mtd/ubi-user.h> 12054" 12055if test "x$ac_cv_member_struct_ubi_attach_req_max_beb_per1024" = xyes; then : 12056 12057cat >>confdefs.h <<_ACEOF 12058#define HAVE_STRUCT_UBI_ATTACH_REQ_MAX_BEB_PER1024 1 12059_ACEOF 12060 12061 12062fi 12063 12064 12065ac_fn_c_check_type "$LINENO" "struct ptp_sys_offset" "ac_cv_type_struct_ptp_sys_offset" "#include <linux/ptp_clock.h> 12066" 12067if test "x$ac_cv_type_struct_ptp_sys_offset" = xyes; then : 12068 12069cat >>confdefs.h <<_ACEOF 12070#define HAVE_STRUCT_PTP_SYS_OFFSET 1 12071_ACEOF 12072 12073 12074fi 12075 12076 12077ac_fn_c_check_type "$LINENO" "struct kvm_cpuid2" "ac_cv_type_struct_kvm_cpuid2" "#include <linux/kvm.h> 12078" 12079if test "x$ac_cv_type_struct_kvm_cpuid2" = xyes; then : 12080 12081cat >>confdefs.h <<_ACEOF 12082#define HAVE_STRUCT_KVM_CPUID2 1 12083_ACEOF 12084 12085 12086fi 12087ac_fn_c_check_type "$LINENO" "struct kvm_regs" "ac_cv_type_struct_kvm_regs" "#include <linux/kvm.h> 12088" 12089if test "x$ac_cv_type_struct_kvm_regs" = xyes; then : 12090 12091cat >>confdefs.h <<_ACEOF 12092#define HAVE_STRUCT_KVM_REGS 1 12093_ACEOF 12094 12095 12096fi 12097ac_fn_c_check_type "$LINENO" "struct kvm_sregs" "ac_cv_type_struct_kvm_sregs" "#include <linux/kvm.h> 12098" 12099if test "x$ac_cv_type_struct_kvm_sregs" = xyes; then : 12100 12101cat >>confdefs.h <<_ACEOF 12102#define HAVE_STRUCT_KVM_SREGS 1 12103_ACEOF 12104 12105 12106fi 12107ac_fn_c_check_type "$LINENO" "struct kvm_userspace_memory_region" "ac_cv_type_struct_kvm_userspace_memory_region" "#include <linux/kvm.h> 12108" 12109if test "x$ac_cv_type_struct_kvm_userspace_memory_region" = xyes; then : 12110 12111cat >>confdefs.h <<_ACEOF 12112#define HAVE_STRUCT_KVM_USERSPACE_MEMORY_REGION 1 12113_ACEOF 12114 12115 12116fi 12117 12118 12119saved_CPPFLAGS="$CPPFLAGS" 12120 12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <linux/signal.h> can be used along with <signal.h>" >&5 12122$as_echo_n "checking whether <linux/signal.h> can be used along with <signal.h>... " >&6; } 12123if ${st_cv_linux_signal+:} false; then : 12124 $as_echo_n "(cached) " >&6 12125else 12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12127/* end confdefs.h. */ 12128 12129#include <signal.h> 12130#include <linux/signal.h> 12131_ACEOF 12132if ac_fn_c_try_compile "$LINENO"; then : 12133 st_cv_linux_signal=yes 12134else 12135 st_cv_linux_signal=no 12136fi 12137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12138fi 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_linux_signal" >&5 12140$as_echo "$st_cv_linux_signal" >&6; } 12141if test "x$st_cv_linux_signal" = xno; then 12142 mkdir -p linux/linux 12143 cp $srcdir/linux/signal.h.in linux/linux/signal.h 12144 CPPFLAGS="$CPPFLAGS -Ilinux" 12145fi 12146 12147ac_fn_c_check_type "$LINENO" "struct __aio_sigset" "ac_cv_type_struct___aio_sigset" "#include <linux/aio_abi.h> 12148" 12149if test "x$ac_cv_type_struct___aio_sigset" = xyes; then : 12150 12151cat >>confdefs.h <<_ACEOF 12152#define HAVE_STRUCT___AIO_SIGSET 1 12153_ACEOF 12154 12155 12156fi 12157 12158 12159CPPFLAGS="$saved_CPPFLAGS" 12160 12161for ac_header in linux/btrfs.h 12162do : 12163 ac_fn_c_check_header_mongrel "$LINENO" "linux/btrfs.h" "ac_cv_header_linux_btrfs_h" "$ac_includes_default" 12164if test "x$ac_cv_header_linux_btrfs_h" = xyes; then : 12165 cat >>confdefs.h <<_ACEOF 12166#define HAVE_LINUX_BTRFS_H 1 12167_ACEOF 12168 12169 ac_fn_c_check_member "$LINENO" "struct btrfs_ioctl_feature_flags" "compat_flags" "ac_cv_member_struct_btrfs_ioctl_feature_flags_compat_flags" " #include <stdio.h> 12170#include <linux/btrfs.h> 12171" 12172if test "x$ac_cv_member_struct_btrfs_ioctl_feature_flags_compat_flags" = xyes; then : 12173 12174cat >>confdefs.h <<_ACEOF 12175#define HAVE_STRUCT_BTRFS_IOCTL_FEATURE_FLAGS_COMPAT_FLAGS 1 12176_ACEOF 12177 12178 12179fi 12180ac_fn_c_check_member "$LINENO" "struct btrfs_ioctl_fs_info_args" "nodesize" "ac_cv_member_struct_btrfs_ioctl_fs_info_args_nodesize" " #include <stdio.h> 12181#include <linux/btrfs.h> 12182" 12183if test "x$ac_cv_member_struct_btrfs_ioctl_fs_info_args_nodesize" = xyes; then : 12184 12185cat >>confdefs.h <<_ACEOF 12186#define HAVE_STRUCT_BTRFS_IOCTL_FS_INFO_ARGS_NODESIZE 1 12187_ACEOF 12188 12189 12190fi 12191ac_fn_c_check_member "$LINENO" "struct btrfs_ioctl_defrag_range_args" "start" "ac_cv_member_struct_btrfs_ioctl_defrag_range_args_start" " #include <stdio.h> 12192#include <linux/btrfs.h> 12193" 12194if test "x$ac_cv_member_struct_btrfs_ioctl_defrag_range_args_start" = xyes; then : 12195 12196cat >>confdefs.h <<_ACEOF 12197#define HAVE_STRUCT_BTRFS_IOCTL_DEFRAG_RANGE_ARGS_START 1 12198_ACEOF 12199 12200 12201fi 12202ac_fn_c_check_member "$LINENO" "struct btrfs_ioctl_search_args_v2" "buf_size" "ac_cv_member_struct_btrfs_ioctl_search_args_v2_buf_size" " #include <stdio.h> 12203#include <linux/btrfs.h> 12204" 12205if test "x$ac_cv_member_struct_btrfs_ioctl_search_args_v2_buf_size" = xyes; then : 12206 12207cat >>confdefs.h <<_ACEOF 12208#define HAVE_STRUCT_BTRFS_IOCTL_SEARCH_ARGS_V2_BUF_SIZE 1 12209_ACEOF 12210 12211 12212fi 12213ac_fn_c_check_member "$LINENO" "struct btrfs_ioctl_logical_ino_args" "flags" "ac_cv_member_struct_btrfs_ioctl_logical_ino_args_flags" " #include <stdio.h> 12214#include <linux/btrfs.h> 12215" 12216if test "x$ac_cv_member_struct_btrfs_ioctl_logical_ino_args_flags" = xyes; then : 12217 12218cat >>confdefs.h <<_ACEOF 12219#define HAVE_STRUCT_BTRFS_IOCTL_LOGICAL_INO_ARGS_FLAGS 1 12220_ACEOF 12221 12222 12223fi 12224 12225 ac_fn_c_check_decl "$LINENO" "BTRFS_COMPRESS_NONE" "ac_cv_have_decl_BTRFS_COMPRESS_NONE" " #include <stdio.h> 12226#include <linux/btrfs.h> 12227" 12228if test "x$ac_cv_have_decl_BTRFS_COMPRESS_NONE" = xyes; then : 12229 ac_have_decl=1 12230else 12231 ac_have_decl=0 12232fi 12233 12234cat >>confdefs.h <<_ACEOF 12235#define HAVE_DECL_BTRFS_COMPRESS_NONE $ac_have_decl 12236_ACEOF 12237ac_fn_c_check_decl "$LINENO" "BTRFS_COMPRESS_ZLIB" "ac_cv_have_decl_BTRFS_COMPRESS_ZLIB" " #include <stdio.h> 12238#include <linux/btrfs.h> 12239" 12240if test "x$ac_cv_have_decl_BTRFS_COMPRESS_ZLIB" = xyes; then : 12241 ac_have_decl=1 12242else 12243 ac_have_decl=0 12244fi 12245 12246cat >>confdefs.h <<_ACEOF 12247#define HAVE_DECL_BTRFS_COMPRESS_ZLIB $ac_have_decl 12248_ACEOF 12249ac_fn_c_check_decl "$LINENO" "BTRFS_COMPRESS_LZO" "ac_cv_have_decl_BTRFS_COMPRESS_LZO" " #include <stdio.h> 12250#include <linux/btrfs.h> 12251" 12252if test "x$ac_cv_have_decl_BTRFS_COMPRESS_LZO" = xyes; then : 12253 ac_have_decl=1 12254else 12255 ac_have_decl=0 12256fi 12257 12258cat >>confdefs.h <<_ACEOF 12259#define HAVE_DECL_BTRFS_COMPRESS_LZO $ac_have_decl 12260_ACEOF 12261 12262fi 12263 12264done 12265 12266 12267ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "$ac_includes_default" 12268if test "x$ac_cv_have_decl_sys_errlist" = xyes; then : 12269 ac_have_decl=1 12270else 12271 ac_have_decl=0 12272fi 12273 12274cat >>confdefs.h <<_ACEOF 12275#define HAVE_DECL_SYS_ERRLIST $ac_have_decl 12276_ACEOF 12277 12278ac_fn_c_check_decl "$LINENO" "PTRACE_PEEKUSER" "ac_cv_have_decl_PTRACE_PEEKUSER" "#include <sys/ptrace.h> 12279" 12280if test "x$ac_cv_have_decl_PTRACE_PEEKUSER" = xyes; then : 12281 ac_have_decl=1 12282else 12283 ac_have_decl=0 12284fi 12285 12286cat >>confdefs.h <<_ACEOF 12287#define HAVE_DECL_PTRACE_PEEKUSER $ac_have_decl 12288_ACEOF 12289ac_fn_c_check_decl "$LINENO" "PTRACE_POKEUSER" "ac_cv_have_decl_PTRACE_POKEUSER" "#include <sys/ptrace.h> 12290" 12291if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = xyes; then : 12292 ac_have_decl=1 12293else 12294 ac_have_decl=0 12295fi 12296 12297cat >>confdefs.h <<_ACEOF 12298#define HAVE_DECL_PTRACE_POKEUSER $ac_have_decl 12299_ACEOF 12300 12301 12302ac_fn_c_check_decl "$LINENO" "P_PID" "ac_cv_have_decl_P_PID" "#include <sys/wait.h> 12303" 12304if test "x$ac_cv_have_decl_P_PID" = xyes; then : 12305 ac_have_decl=1 12306else 12307 ac_have_decl=0 12308fi 12309 12310cat >>confdefs.h <<_ACEOF 12311#define HAVE_DECL_P_PID $ac_have_decl 12312_ACEOF 12313ac_fn_c_check_decl "$LINENO" "P_PPID" "ac_cv_have_decl_P_PPID" "#include <sys/wait.h> 12314" 12315if test "x$ac_cv_have_decl_P_PPID" = xyes; then : 12316 ac_have_decl=1 12317else 12318 ac_have_decl=0 12319fi 12320 12321cat >>confdefs.h <<_ACEOF 12322#define HAVE_DECL_P_PPID $ac_have_decl 12323_ACEOF 12324ac_fn_c_check_decl "$LINENO" "P_PGID" "ac_cv_have_decl_P_PGID" "#include <sys/wait.h> 12325" 12326if test "x$ac_cv_have_decl_P_PGID" = xyes; then : 12327 ac_have_decl=1 12328else 12329 ac_have_decl=0 12330fi 12331 12332cat >>confdefs.h <<_ACEOF 12333#define HAVE_DECL_P_PGID $ac_have_decl 12334_ACEOF 12335ac_fn_c_check_decl "$LINENO" "P_SID" "ac_cv_have_decl_P_SID" "#include <sys/wait.h> 12336" 12337if test "x$ac_cv_have_decl_P_SID" = xyes; then : 12338 ac_have_decl=1 12339else 12340 ac_have_decl=0 12341fi 12342 12343cat >>confdefs.h <<_ACEOF 12344#define HAVE_DECL_P_SID $ac_have_decl 12345_ACEOF 12346ac_fn_c_check_decl "$LINENO" "P_CID" "ac_cv_have_decl_P_CID" "#include <sys/wait.h> 12347" 12348if test "x$ac_cv_have_decl_P_CID" = xyes; then : 12349 ac_have_decl=1 12350else 12351 ac_have_decl=0 12352fi 12353 12354cat >>confdefs.h <<_ACEOF 12355#define HAVE_DECL_P_CID $ac_have_decl 12356_ACEOF 12357ac_fn_c_check_decl "$LINENO" "P_UID" "ac_cv_have_decl_P_UID" "#include <sys/wait.h> 12358" 12359if test "x$ac_cv_have_decl_P_UID" = xyes; then : 12360 ac_have_decl=1 12361else 12362 ac_have_decl=0 12363fi 12364 12365cat >>confdefs.h <<_ACEOF 12366#define HAVE_DECL_P_UID $ac_have_decl 12367_ACEOF 12368ac_fn_c_check_decl "$LINENO" "P_GID" "ac_cv_have_decl_P_GID" "#include <sys/wait.h> 12369" 12370if test "x$ac_cv_have_decl_P_GID" = xyes; then : 12371 ac_have_decl=1 12372else 12373 ac_have_decl=0 12374fi 12375 12376cat >>confdefs.h <<_ACEOF 12377#define HAVE_DECL_P_GID $ac_have_decl 12378_ACEOF 12379ac_fn_c_check_decl "$LINENO" "P_ALL" "ac_cv_have_decl_P_ALL" "#include <sys/wait.h> 12380" 12381if test "x$ac_cv_have_decl_P_ALL" = xyes; then : 12382 ac_have_decl=1 12383else 12384 ac_have_decl=0 12385fi 12386 12387cat >>confdefs.h <<_ACEOF 12388#define HAVE_DECL_P_ALL $ac_have_decl 12389_ACEOF 12390ac_fn_c_check_decl "$LINENO" "P_LWPID" "ac_cv_have_decl_P_LWPID" "#include <sys/wait.h> 12391" 12392if test "x$ac_cv_have_decl_P_LWPID" = xyes; then : 12393 ac_have_decl=1 12394else 12395 ac_have_decl=0 12396fi 12397 12398cat >>confdefs.h <<_ACEOF 12399#define HAVE_DECL_P_LWPID $ac_have_decl 12400_ACEOF 12401 12402 12403ac_fn_c_check_decl "$LINENO" "LO_FLAGS_READ_ONLY" "ac_cv_have_decl_LO_FLAGS_READ_ONLY" "#include <linux/loop.h> 12404" 12405if test "x$ac_cv_have_decl_LO_FLAGS_READ_ONLY" = xyes; then : 12406 ac_have_decl=1 12407else 12408 ac_have_decl=0 12409fi 12410 12411cat >>confdefs.h <<_ACEOF 12412#define HAVE_DECL_LO_FLAGS_READ_ONLY $ac_have_decl 12413_ACEOF 12414ac_fn_c_check_decl "$LINENO" "LO_FLAGS_USE_AOPS" "ac_cv_have_decl_LO_FLAGS_USE_AOPS" "#include <linux/loop.h> 12415" 12416if test "x$ac_cv_have_decl_LO_FLAGS_USE_AOPS" = xyes; then : 12417 ac_have_decl=1 12418else 12419 ac_have_decl=0 12420fi 12421 12422cat >>confdefs.h <<_ACEOF 12423#define HAVE_DECL_LO_FLAGS_USE_AOPS $ac_have_decl 12424_ACEOF 12425ac_fn_c_check_decl "$LINENO" "LO_FLAGS_AUTOCLEAR" "ac_cv_have_decl_LO_FLAGS_AUTOCLEAR" "#include <linux/loop.h> 12426" 12427if test "x$ac_cv_have_decl_LO_FLAGS_AUTOCLEAR" = xyes; then : 12428 ac_have_decl=1 12429else 12430 ac_have_decl=0 12431fi 12432 12433cat >>confdefs.h <<_ACEOF 12434#define HAVE_DECL_LO_FLAGS_AUTOCLEAR $ac_have_decl 12435_ACEOF 12436ac_fn_c_check_decl "$LINENO" "LO_FLAGS_PARTSCAN" "ac_cv_have_decl_LO_FLAGS_PARTSCAN" "#include <linux/loop.h> 12437" 12438if test "x$ac_cv_have_decl_LO_FLAGS_PARTSCAN" = xyes; then : 12439 ac_have_decl=1 12440else 12441 ac_have_decl=0 12442fi 12443 12444cat >>confdefs.h <<_ACEOF 12445#define HAVE_DECL_LO_FLAGS_PARTSCAN $ac_have_decl 12446_ACEOF 12447ac_fn_c_check_decl "$LINENO" "LO_FLAGS_DIRECT_IO" "ac_cv_have_decl_LO_FLAGS_DIRECT_IO" "#include <linux/loop.h> 12448" 12449if test "x$ac_cv_have_decl_LO_FLAGS_DIRECT_IO" = xyes; then : 12450 ac_have_decl=1 12451else 12452 ac_have_decl=0 12453fi 12454 12455cat >>confdefs.h <<_ACEOF 12456#define HAVE_DECL_LO_FLAGS_DIRECT_IO $ac_have_decl 12457_ACEOF 12458 12459 12460ac_fn_c_check_decl "$LINENO" "CTL_PROC" "ac_cv_have_decl_CTL_PROC" "#include <sys/types.h> 12461#include <linux/sysctl.h> 12462" 12463if test "x$ac_cv_have_decl_CTL_PROC" = xyes; then : 12464 ac_have_decl=1 12465else 12466 ac_have_decl=0 12467fi 12468 12469cat >>confdefs.h <<_ACEOF 12470#define HAVE_DECL_CTL_PROC $ac_have_decl 12471_ACEOF 12472ac_fn_c_check_decl "$LINENO" "CTL_ARLAN" "ac_cv_have_decl_CTL_ARLAN" "#include <sys/types.h> 12473#include <linux/sysctl.h> 12474" 12475if test "x$ac_cv_have_decl_CTL_ARLAN" = xyes; then : 12476 ac_have_decl=1 12477else 12478 ac_have_decl=0 12479fi 12480 12481cat >>confdefs.h <<_ACEOF 12482#define HAVE_DECL_CTL_ARLAN $ac_have_decl 12483_ACEOF 12484ac_fn_c_check_decl "$LINENO" "CTL_S390DBF" "ac_cv_have_decl_CTL_S390DBF" "#include <sys/types.h> 12485#include <linux/sysctl.h> 12486" 12487if test "x$ac_cv_have_decl_CTL_S390DBF" = xyes; then : 12488 ac_have_decl=1 12489else 12490 ac_have_decl=0 12491fi 12492 12493cat >>confdefs.h <<_ACEOF 12494#define HAVE_DECL_CTL_S390DBF $ac_have_decl 12495_ACEOF 12496ac_fn_c_check_decl "$LINENO" "CTL_SUNRPC" "ac_cv_have_decl_CTL_SUNRPC" "#include <sys/types.h> 12497#include <linux/sysctl.h> 12498" 12499if test "x$ac_cv_have_decl_CTL_SUNRPC" = xyes; then : 12500 ac_have_decl=1 12501else 12502 ac_have_decl=0 12503fi 12504 12505cat >>confdefs.h <<_ACEOF 12506#define HAVE_DECL_CTL_SUNRPC $ac_have_decl 12507_ACEOF 12508ac_fn_c_check_decl "$LINENO" "CTL_PM" "ac_cv_have_decl_CTL_PM" "#include <sys/types.h> 12509#include <linux/sysctl.h> 12510" 12511if test "x$ac_cv_have_decl_CTL_PM" = xyes; then : 12512 ac_have_decl=1 12513else 12514 ac_have_decl=0 12515fi 12516 12517cat >>confdefs.h <<_ACEOF 12518#define HAVE_DECL_CTL_PM $ac_have_decl 12519_ACEOF 12520ac_fn_c_check_decl "$LINENO" "CTL_FRV" "ac_cv_have_decl_CTL_FRV" "#include <sys/types.h> 12521#include <linux/sysctl.h> 12522" 12523if test "x$ac_cv_have_decl_CTL_FRV" = xyes; then : 12524 ac_have_decl=1 12525else 12526 ac_have_decl=0 12527fi 12528 12529cat >>confdefs.h <<_ACEOF 12530#define HAVE_DECL_CTL_FRV $ac_have_decl 12531_ACEOF 12532ac_fn_c_check_decl "$LINENO" "KERN_PRINTK_RATELIMIT" "ac_cv_have_decl_KERN_PRINTK_RATELIMIT" "#include <sys/types.h> 12533#include <linux/sysctl.h> 12534" 12535if test "x$ac_cv_have_decl_KERN_PRINTK_RATELIMIT" = xyes; then : 12536 ac_have_decl=1 12537else 12538 ac_have_decl=0 12539fi 12540 12541cat >>confdefs.h <<_ACEOF 12542#define HAVE_DECL_KERN_PRINTK_RATELIMIT $ac_have_decl 12543_ACEOF 12544ac_fn_c_check_decl "$LINENO" "KERN_PRINTK_RATELIMIT_BURST" "ac_cv_have_decl_KERN_PRINTK_RATELIMIT_BURST" "#include <sys/types.h> 12545#include <linux/sysctl.h> 12546" 12547if test "x$ac_cv_have_decl_KERN_PRINTK_RATELIMIT_BURST" = xyes; then : 12548 ac_have_decl=1 12549else 12550 ac_have_decl=0 12551fi 12552 12553cat >>confdefs.h <<_ACEOF 12554#define HAVE_DECL_KERN_PRINTK_RATELIMIT_BURST $ac_have_decl 12555_ACEOF 12556ac_fn_c_check_decl "$LINENO" "KERN_PTY" "ac_cv_have_decl_KERN_PTY" "#include <sys/types.h> 12557#include <linux/sysctl.h> 12558" 12559if test "x$ac_cv_have_decl_KERN_PTY" = xyes; then : 12560 ac_have_decl=1 12561else 12562 ac_have_decl=0 12563fi 12564 12565cat >>confdefs.h <<_ACEOF 12566#define HAVE_DECL_KERN_PTY $ac_have_decl 12567_ACEOF 12568ac_fn_c_check_decl "$LINENO" "KERN_NGROUPS_MAX" "ac_cv_have_decl_KERN_NGROUPS_MAX" "#include <sys/types.h> 12569#include <linux/sysctl.h> 12570" 12571if test "x$ac_cv_have_decl_KERN_NGROUPS_MAX" = xyes; then : 12572 ac_have_decl=1 12573else 12574 ac_have_decl=0 12575fi 12576 12577cat >>confdefs.h <<_ACEOF 12578#define HAVE_DECL_KERN_NGROUPS_MAX $ac_have_decl 12579_ACEOF 12580ac_fn_c_check_decl "$LINENO" "KERN_SPARC_SCONS_PWROFF" "ac_cv_have_decl_KERN_SPARC_SCONS_PWROFF" "#include <sys/types.h> 12581#include <linux/sysctl.h> 12582" 12583if test "x$ac_cv_have_decl_KERN_SPARC_SCONS_PWROFF" = xyes; then : 12584 ac_have_decl=1 12585else 12586 ac_have_decl=0 12587fi 12588 12589cat >>confdefs.h <<_ACEOF 12590#define HAVE_DECL_KERN_SPARC_SCONS_PWROFF $ac_have_decl 12591_ACEOF 12592ac_fn_c_check_decl "$LINENO" "KERN_HZ_TIMER" "ac_cv_have_decl_KERN_HZ_TIMER" "#include <sys/types.h> 12593#include <linux/sysctl.h> 12594" 12595if test "x$ac_cv_have_decl_KERN_HZ_TIMER" = xyes; then : 12596 ac_have_decl=1 12597else 12598 ac_have_decl=0 12599fi 12600 12601cat >>confdefs.h <<_ACEOF 12602#define HAVE_DECL_KERN_HZ_TIMER $ac_have_decl 12603_ACEOF 12604ac_fn_c_check_decl "$LINENO" "KERN_UNKNOWN_NMI_PANIC" "ac_cv_have_decl_KERN_UNKNOWN_NMI_PANIC" "#include <sys/types.h> 12605#include <linux/sysctl.h> 12606" 12607if test "x$ac_cv_have_decl_KERN_UNKNOWN_NMI_PANIC" = xyes; then : 12608 ac_have_decl=1 12609else 12610 ac_have_decl=0 12611fi 12612 12613cat >>confdefs.h <<_ACEOF 12614#define HAVE_DECL_KERN_UNKNOWN_NMI_PANIC $ac_have_decl 12615_ACEOF 12616ac_fn_c_check_decl "$LINENO" "KERN_BOOTLOADER_TYPE" "ac_cv_have_decl_KERN_BOOTLOADER_TYPE" "#include <sys/types.h> 12617#include <linux/sysctl.h> 12618" 12619if test "x$ac_cv_have_decl_KERN_BOOTLOADER_TYPE" = xyes; then : 12620 ac_have_decl=1 12621else 12622 ac_have_decl=0 12623fi 12624 12625cat >>confdefs.h <<_ACEOF 12626#define HAVE_DECL_KERN_BOOTLOADER_TYPE $ac_have_decl 12627_ACEOF 12628ac_fn_c_check_decl "$LINENO" "KERN_RANDOMIZE" "ac_cv_have_decl_KERN_RANDOMIZE" "#include <sys/types.h> 12629#include <linux/sysctl.h> 12630" 12631if test "x$ac_cv_have_decl_KERN_RANDOMIZE" = xyes; then : 12632 ac_have_decl=1 12633else 12634 ac_have_decl=0 12635fi 12636 12637cat >>confdefs.h <<_ACEOF 12638#define HAVE_DECL_KERN_RANDOMIZE $ac_have_decl 12639_ACEOF 12640ac_fn_c_check_decl "$LINENO" "KERN_SETUID_DUMPABLE" "ac_cv_have_decl_KERN_SETUID_DUMPABLE" "#include <sys/types.h> 12641#include <linux/sysctl.h> 12642" 12643if test "x$ac_cv_have_decl_KERN_SETUID_DUMPABLE" = xyes; then : 12644 ac_have_decl=1 12645else 12646 ac_have_decl=0 12647fi 12648 12649cat >>confdefs.h <<_ACEOF 12650#define HAVE_DECL_KERN_SETUID_DUMPABLE $ac_have_decl 12651_ACEOF 12652ac_fn_c_check_decl "$LINENO" "KERN_SPIN_RETRY" "ac_cv_have_decl_KERN_SPIN_RETRY" "#include <sys/types.h> 12653#include <linux/sysctl.h> 12654" 12655if test "x$ac_cv_have_decl_KERN_SPIN_RETRY" = xyes; then : 12656 ac_have_decl=1 12657else 12658 ac_have_decl=0 12659fi 12660 12661cat >>confdefs.h <<_ACEOF 12662#define HAVE_DECL_KERN_SPIN_RETRY $ac_have_decl 12663_ACEOF 12664ac_fn_c_check_decl "$LINENO" "KERN_ACPI_VIDEO_FLAGS" "ac_cv_have_decl_KERN_ACPI_VIDEO_FLAGS" "#include <sys/types.h> 12665#include <linux/sysctl.h> 12666" 12667if test "x$ac_cv_have_decl_KERN_ACPI_VIDEO_FLAGS" = xyes; then : 12668 ac_have_decl=1 12669else 12670 ac_have_decl=0 12671fi 12672 12673cat >>confdefs.h <<_ACEOF 12674#define HAVE_DECL_KERN_ACPI_VIDEO_FLAGS $ac_have_decl 12675_ACEOF 12676ac_fn_c_check_decl "$LINENO" "KERN_IA64_UNALIGNED" "ac_cv_have_decl_KERN_IA64_UNALIGNED" "#include <sys/types.h> 12677#include <linux/sysctl.h> 12678" 12679if test "x$ac_cv_have_decl_KERN_IA64_UNALIGNED" = xyes; then : 12680 ac_have_decl=1 12681else 12682 ac_have_decl=0 12683fi 12684 12685cat >>confdefs.h <<_ACEOF 12686#define HAVE_DECL_KERN_IA64_UNALIGNED $ac_have_decl 12687_ACEOF 12688ac_fn_c_check_decl "$LINENO" "KERN_COMPAT_LOG" "ac_cv_have_decl_KERN_COMPAT_LOG" "#include <sys/types.h> 12689#include <linux/sysctl.h> 12690" 12691if test "x$ac_cv_have_decl_KERN_COMPAT_LOG" = xyes; then : 12692 ac_have_decl=1 12693else 12694 ac_have_decl=0 12695fi 12696 12697cat >>confdefs.h <<_ACEOF 12698#define HAVE_DECL_KERN_COMPAT_LOG $ac_have_decl 12699_ACEOF 12700ac_fn_c_check_decl "$LINENO" "KERN_MAX_LOCK_DEPTH" "ac_cv_have_decl_KERN_MAX_LOCK_DEPTH" "#include <sys/types.h> 12701#include <linux/sysctl.h> 12702" 12703if test "x$ac_cv_have_decl_KERN_MAX_LOCK_DEPTH" = xyes; then : 12704 ac_have_decl=1 12705else 12706 ac_have_decl=0 12707fi 12708 12709cat >>confdefs.h <<_ACEOF 12710#define HAVE_DECL_KERN_MAX_LOCK_DEPTH $ac_have_decl 12711_ACEOF 12712ac_fn_c_check_decl "$LINENO" "KERN_NMI_WATCHDOG" "ac_cv_have_decl_KERN_NMI_WATCHDOG" "#include <sys/types.h> 12713#include <linux/sysctl.h> 12714" 12715if test "x$ac_cv_have_decl_KERN_NMI_WATCHDOG" = xyes; then : 12716 ac_have_decl=1 12717else 12718 ac_have_decl=0 12719fi 12720 12721cat >>confdefs.h <<_ACEOF 12722#define HAVE_DECL_KERN_NMI_WATCHDOG $ac_have_decl 12723_ACEOF 12724ac_fn_c_check_decl "$LINENO" "KERN_PANIC_ON_NMI" "ac_cv_have_decl_KERN_PANIC_ON_NMI" "#include <sys/types.h> 12725#include <linux/sysctl.h> 12726" 12727if test "x$ac_cv_have_decl_KERN_PANIC_ON_NMI" = xyes; then : 12728 ac_have_decl=1 12729else 12730 ac_have_decl=0 12731fi 12732 12733cat >>confdefs.h <<_ACEOF 12734#define HAVE_DECL_KERN_PANIC_ON_NMI $ac_have_decl 12735_ACEOF 12736ac_fn_c_check_decl "$LINENO" "NET_LLC" "ac_cv_have_decl_NET_LLC" "#include <sys/types.h> 12737#include <linux/sysctl.h> 12738" 12739if test "x$ac_cv_have_decl_NET_LLC" = xyes; then : 12740 ac_have_decl=1 12741else 12742 ac_have_decl=0 12743fi 12744 12745cat >>confdefs.h <<_ACEOF 12746#define HAVE_DECL_NET_LLC $ac_have_decl 12747_ACEOF 12748ac_fn_c_check_decl "$LINENO" "NET_NETFILTER" "ac_cv_have_decl_NET_NETFILTER" "#include <sys/types.h> 12749#include <linux/sysctl.h> 12750" 12751if test "x$ac_cv_have_decl_NET_NETFILTER" = xyes; then : 12752 ac_have_decl=1 12753else 12754 ac_have_decl=0 12755fi 12756 12757cat >>confdefs.h <<_ACEOF 12758#define HAVE_DECL_NET_NETFILTER $ac_have_decl 12759_ACEOF 12760ac_fn_c_check_decl "$LINENO" "NET_DCCP" "ac_cv_have_decl_NET_DCCP" "#include <sys/types.h> 12761#include <linux/sysctl.h> 12762" 12763if test "x$ac_cv_have_decl_NET_DCCP" = xyes; then : 12764 ac_have_decl=1 12765else 12766 ac_have_decl=0 12767fi 12768 12769cat >>confdefs.h <<_ACEOF 12770#define HAVE_DECL_NET_DCCP $ac_have_decl 12771_ACEOF 12772ac_fn_c_check_decl "$LINENO" "NET_IRDA" "ac_cv_have_decl_NET_IRDA" "#include <sys/types.h> 12773#include <linux/sysctl.h> 12774" 12775if test "x$ac_cv_have_decl_NET_IRDA" = xyes; then : 12776 ac_have_decl=1 12777else 12778 ac_have_decl=0 12779fi 12780 12781cat >>confdefs.h <<_ACEOF 12782#define HAVE_DECL_NET_IRDA $ac_have_decl 12783_ACEOF 12784ac_fn_c_check_decl "$LINENO" "NET_CORE_DESTROY_DELAY" "ac_cv_have_decl_NET_CORE_DESTROY_DELAY" "#include <sys/types.h> 12785#include <linux/sysctl.h> 12786" 12787if test "x$ac_cv_have_decl_NET_CORE_DESTROY_DELAY" = xyes; then : 12788 ac_have_decl=1 12789else 12790 ac_have_decl=0 12791fi 12792 12793cat >>confdefs.h <<_ACEOF 12794#define HAVE_DECL_NET_CORE_DESTROY_DELAY $ac_have_decl 12795_ACEOF 12796ac_fn_c_check_decl "$LINENO" "NET_CORE_BUDGET" "ac_cv_have_decl_NET_CORE_BUDGET" "#include <sys/types.h> 12797#include <linux/sysctl.h> 12798" 12799if test "x$ac_cv_have_decl_NET_CORE_BUDGET" = xyes; then : 12800 ac_have_decl=1 12801else 12802 ac_have_decl=0 12803fi 12804 12805cat >>confdefs.h <<_ACEOF 12806#define HAVE_DECL_NET_CORE_BUDGET $ac_have_decl 12807_ACEOF 12808ac_fn_c_check_decl "$LINENO" "NET_CORE_AEVENT_ETIME" "ac_cv_have_decl_NET_CORE_AEVENT_ETIME" "#include <sys/types.h> 12809#include <linux/sysctl.h> 12810" 12811if test "x$ac_cv_have_decl_NET_CORE_AEVENT_ETIME" = xyes; then : 12812 ac_have_decl=1 12813else 12814 ac_have_decl=0 12815fi 12816 12817cat >>confdefs.h <<_ACEOF 12818#define HAVE_DECL_NET_CORE_AEVENT_ETIME $ac_have_decl 12819_ACEOF 12820ac_fn_c_check_decl "$LINENO" "NET_CORE_AEVENT_RSEQTH" "ac_cv_have_decl_NET_CORE_AEVENT_RSEQTH" "#include <sys/types.h> 12821#include <linux/sysctl.h> 12822" 12823if test "x$ac_cv_have_decl_NET_CORE_AEVENT_RSEQTH" = xyes; then : 12824 ac_have_decl=1 12825else 12826 ac_have_decl=0 12827fi 12828 12829cat >>confdefs.h <<_ACEOF 12830#define HAVE_DECL_NET_CORE_AEVENT_RSEQTH $ac_have_decl 12831_ACEOF 12832ac_fn_c_check_decl "$LINENO" "NET_CORE_WARNINGS" "ac_cv_have_decl_NET_CORE_WARNINGS" "#include <sys/types.h> 12833#include <linux/sysctl.h> 12834" 12835if test "x$ac_cv_have_decl_NET_CORE_WARNINGS" = xyes; then : 12836 ac_have_decl=1 12837else 12838 ac_have_decl=0 12839fi 12840 12841cat >>confdefs.h <<_ACEOF 12842#define HAVE_DECL_NET_CORE_WARNINGS $ac_have_decl 12843_ACEOF 12844ac_fn_c_check_decl "$LINENO" "NET_IPV4_IGMP_MAX_MSF" "ac_cv_have_decl_NET_IPV4_IGMP_MAX_MSF" "#include <sys/types.h> 12845#include <linux/sysctl.h> 12846" 12847if test "x$ac_cv_have_decl_NET_IPV4_IGMP_MAX_MSF" = xyes; then : 12848 ac_have_decl=1 12849else 12850 ac_have_decl=0 12851fi 12852 12853cat >>confdefs.h <<_ACEOF 12854#define HAVE_DECL_NET_IPV4_IGMP_MAX_MSF $ac_have_decl 12855_ACEOF 12856ac_fn_c_check_decl "$LINENO" "NET_TCP_NO_METRICS_SAVE" "ac_cv_have_decl_NET_TCP_NO_METRICS_SAVE" "#include <sys/types.h> 12857#include <linux/sysctl.h> 12858" 12859if test "x$ac_cv_have_decl_NET_TCP_NO_METRICS_SAVE" = xyes; then : 12860 ac_have_decl=1 12861else 12862 ac_have_decl=0 12863fi 12864 12865cat >>confdefs.h <<_ACEOF 12866#define HAVE_DECL_NET_TCP_NO_METRICS_SAVE $ac_have_decl 12867_ACEOF 12868ac_fn_c_check_decl "$LINENO" "NET_TCP_DEFAULT_WIN_SCALE" "ac_cv_have_decl_NET_TCP_DEFAULT_WIN_SCALE" "#include <sys/types.h> 12869#include <linux/sysctl.h> 12870" 12871if test "x$ac_cv_have_decl_NET_TCP_DEFAULT_WIN_SCALE" = xyes; then : 12872 ac_have_decl=1 12873else 12874 ac_have_decl=0 12875fi 12876 12877cat >>confdefs.h <<_ACEOF 12878#define HAVE_DECL_NET_TCP_DEFAULT_WIN_SCALE $ac_have_decl 12879_ACEOF 12880ac_fn_c_check_decl "$LINENO" "NET_TCP_MODERATE_RCVBUF" "ac_cv_have_decl_NET_TCP_MODERATE_RCVBUF" "#include <sys/types.h> 12881#include <linux/sysctl.h> 12882" 12883if test "x$ac_cv_have_decl_NET_TCP_MODERATE_RCVBUF" = xyes; then : 12884 ac_have_decl=1 12885else 12886 ac_have_decl=0 12887fi 12888 12889cat >>confdefs.h <<_ACEOF 12890#define HAVE_DECL_NET_TCP_MODERATE_RCVBUF $ac_have_decl 12891_ACEOF 12892ac_fn_c_check_decl "$LINENO" "NET_TCP_TSO_WIN_DIVISOR" "ac_cv_have_decl_NET_TCP_TSO_WIN_DIVISOR" "#include <sys/types.h> 12893#include <linux/sysctl.h> 12894" 12895if test "x$ac_cv_have_decl_NET_TCP_TSO_WIN_DIVISOR" = xyes; then : 12896 ac_have_decl=1 12897else 12898 ac_have_decl=0 12899fi 12900 12901cat >>confdefs.h <<_ACEOF 12902#define HAVE_DECL_NET_TCP_TSO_WIN_DIVISOR $ac_have_decl 12903_ACEOF 12904ac_fn_c_check_decl "$LINENO" "NET_TCP_BIC_BETA" "ac_cv_have_decl_NET_TCP_BIC_BETA" "#include <sys/types.h> 12905#include <linux/sysctl.h> 12906" 12907if test "x$ac_cv_have_decl_NET_TCP_BIC_BETA" = xyes; then : 12908 ac_have_decl=1 12909else 12910 ac_have_decl=0 12911fi 12912 12913cat >>confdefs.h <<_ACEOF 12914#define HAVE_DECL_NET_TCP_BIC_BETA $ac_have_decl 12915_ACEOF 12916ac_fn_c_check_decl "$LINENO" "NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR" "ac_cv_have_decl_NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR" "#include <sys/types.h> 12917#include <linux/sysctl.h> 12918" 12919if test "x$ac_cv_have_decl_NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR" = xyes; then : 12920 ac_have_decl=1 12921else 12922 ac_have_decl=0 12923fi 12924 12925cat >>confdefs.h <<_ACEOF 12926#define HAVE_DECL_NET_IPV4_ICMP_ERRORS_USE_INBOUND_IFADDR $ac_have_decl 12927_ACEOF 12928ac_fn_c_check_decl "$LINENO" "NET_TCP_CONG_CONTROL" "ac_cv_have_decl_NET_TCP_CONG_CONTROL" "#include <sys/types.h> 12929#include <linux/sysctl.h> 12930" 12931if test "x$ac_cv_have_decl_NET_TCP_CONG_CONTROL" = xyes; then : 12932 ac_have_decl=1 12933else 12934 ac_have_decl=0 12935fi 12936 12937cat >>confdefs.h <<_ACEOF 12938#define HAVE_DECL_NET_TCP_CONG_CONTROL $ac_have_decl 12939_ACEOF 12940ac_fn_c_check_decl "$LINENO" "NET_TCP_ABC" "ac_cv_have_decl_NET_TCP_ABC" "#include <sys/types.h> 12941#include <linux/sysctl.h> 12942" 12943if test "x$ac_cv_have_decl_NET_TCP_ABC" = xyes; then : 12944 ac_have_decl=1 12945else 12946 ac_have_decl=0 12947fi 12948 12949cat >>confdefs.h <<_ACEOF 12950#define HAVE_DECL_NET_TCP_ABC $ac_have_decl 12951_ACEOF 12952ac_fn_c_check_decl "$LINENO" "NET_IPV4_IPFRAG_MAX_DIST" "ac_cv_have_decl_NET_IPV4_IPFRAG_MAX_DIST" "#include <sys/types.h> 12953#include <linux/sysctl.h> 12954" 12955if test "x$ac_cv_have_decl_NET_IPV4_IPFRAG_MAX_DIST" = xyes; then : 12956 ac_have_decl=1 12957else 12958 ac_have_decl=0 12959fi 12960 12961cat >>confdefs.h <<_ACEOF 12962#define HAVE_DECL_NET_IPV4_IPFRAG_MAX_DIST $ac_have_decl 12963_ACEOF 12964ac_fn_c_check_decl "$LINENO" "NET_TCP_MTU_PROBING" "ac_cv_have_decl_NET_TCP_MTU_PROBING" "#include <sys/types.h> 12965#include <linux/sysctl.h> 12966" 12967if test "x$ac_cv_have_decl_NET_TCP_MTU_PROBING" = xyes; then : 12968 ac_have_decl=1 12969else 12970 ac_have_decl=0 12971fi 12972 12973cat >>confdefs.h <<_ACEOF 12974#define HAVE_DECL_NET_TCP_MTU_PROBING $ac_have_decl 12975_ACEOF 12976ac_fn_c_check_decl "$LINENO" "NET_TCP_BASE_MSS" "ac_cv_have_decl_NET_TCP_BASE_MSS" "#include <sys/types.h> 12977#include <linux/sysctl.h> 12978" 12979if test "x$ac_cv_have_decl_NET_TCP_BASE_MSS" = xyes; then : 12980 ac_have_decl=1 12981else 12982 ac_have_decl=0 12983fi 12984 12985cat >>confdefs.h <<_ACEOF 12986#define HAVE_DECL_NET_TCP_BASE_MSS $ac_have_decl 12987_ACEOF 12988ac_fn_c_check_decl "$LINENO" "NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS" "ac_cv_have_decl_NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS" "#include <sys/types.h> 12989#include <linux/sysctl.h> 12990" 12991if test "x$ac_cv_have_decl_NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS" = xyes; then : 12992 ac_have_decl=1 12993else 12994 ac_have_decl=0 12995fi 12996 12997cat >>confdefs.h <<_ACEOF 12998#define HAVE_DECL_NET_IPV4_TCP_WORKAROUND_SIGNED_WINDOWS $ac_have_decl 12999_ACEOF 13000ac_fn_c_check_decl "$LINENO" "NET_TCP_DMA_COPYBREAK" "ac_cv_have_decl_NET_TCP_DMA_COPYBREAK" "#include <sys/types.h> 13001#include <linux/sysctl.h> 13002" 13003if test "x$ac_cv_have_decl_NET_TCP_DMA_COPYBREAK" = xyes; then : 13004 ac_have_decl=1 13005else 13006 ac_have_decl=0 13007fi 13008 13009cat >>confdefs.h <<_ACEOF 13010#define HAVE_DECL_NET_TCP_DMA_COPYBREAK $ac_have_decl 13011_ACEOF 13012ac_fn_c_check_decl "$LINENO" "NET_TCP_SLOW_START_AFTER_IDLE" "ac_cv_have_decl_NET_TCP_SLOW_START_AFTER_IDLE" "#include <sys/types.h> 13013#include <linux/sysctl.h> 13014" 13015if test "x$ac_cv_have_decl_NET_TCP_SLOW_START_AFTER_IDLE" = xyes; then : 13016 ac_have_decl=1 13017else 13018 ac_have_decl=0 13019fi 13020 13021cat >>confdefs.h <<_ACEOF 13022#define HAVE_DECL_NET_TCP_SLOW_START_AFTER_IDLE $ac_have_decl 13023_ACEOF 13024ac_fn_c_check_decl "$LINENO" "NET_CIPSOV4_CACHE_ENABLE" "ac_cv_have_decl_NET_CIPSOV4_CACHE_ENABLE" "#include <sys/types.h> 13025#include <linux/sysctl.h> 13026" 13027if test "x$ac_cv_have_decl_NET_CIPSOV4_CACHE_ENABLE" = xyes; then : 13028 ac_have_decl=1 13029else 13030 ac_have_decl=0 13031fi 13032 13033cat >>confdefs.h <<_ACEOF 13034#define HAVE_DECL_NET_CIPSOV4_CACHE_ENABLE $ac_have_decl 13035_ACEOF 13036ac_fn_c_check_decl "$LINENO" "NET_CIPSOV4_CACHE_BUCKET_SIZE" "ac_cv_have_decl_NET_CIPSOV4_CACHE_BUCKET_SIZE" "#include <sys/types.h> 13037#include <linux/sysctl.h> 13038" 13039if test "x$ac_cv_have_decl_NET_CIPSOV4_CACHE_BUCKET_SIZE" = xyes; then : 13040 ac_have_decl=1 13041else 13042 ac_have_decl=0 13043fi 13044 13045cat >>confdefs.h <<_ACEOF 13046#define HAVE_DECL_NET_CIPSOV4_CACHE_BUCKET_SIZE $ac_have_decl 13047_ACEOF 13048ac_fn_c_check_decl "$LINENO" "NET_CIPSOV4_RBM_OPTFMT" "ac_cv_have_decl_NET_CIPSOV4_RBM_OPTFMT" "#include <sys/types.h> 13049#include <linux/sysctl.h> 13050" 13051if test "x$ac_cv_have_decl_NET_CIPSOV4_RBM_OPTFMT" = xyes; then : 13052 ac_have_decl=1 13053else 13054 ac_have_decl=0 13055fi 13056 13057cat >>confdefs.h <<_ACEOF 13058#define HAVE_DECL_NET_CIPSOV4_RBM_OPTFMT $ac_have_decl 13059_ACEOF 13060ac_fn_c_check_decl "$LINENO" "NET_CIPSOV4_RBM_STRICTVALID" "ac_cv_have_decl_NET_CIPSOV4_RBM_STRICTVALID" "#include <sys/types.h> 13061#include <linux/sysctl.h> 13062" 13063if test "x$ac_cv_have_decl_NET_CIPSOV4_RBM_STRICTVALID" = xyes; then : 13064 ac_have_decl=1 13065else 13066 ac_have_decl=0 13067fi 13068 13069cat >>confdefs.h <<_ACEOF 13070#define HAVE_DECL_NET_CIPSOV4_RBM_STRICTVALID $ac_have_decl 13071_ACEOF 13072ac_fn_c_check_decl "$LINENO" "NET_TCP_AVAIL_CONG_CONTROL" "ac_cv_have_decl_NET_TCP_AVAIL_CONG_CONTROL" "#include <sys/types.h> 13073#include <linux/sysctl.h> 13074" 13075if test "x$ac_cv_have_decl_NET_TCP_AVAIL_CONG_CONTROL" = xyes; then : 13076 ac_have_decl=1 13077else 13078 ac_have_decl=0 13079fi 13080 13081cat >>confdefs.h <<_ACEOF 13082#define HAVE_DECL_NET_TCP_AVAIL_CONG_CONTROL $ac_have_decl 13083_ACEOF 13084ac_fn_c_check_decl "$LINENO" "NET_TCP_ALLOWED_CONG_CONTROL" "ac_cv_have_decl_NET_TCP_ALLOWED_CONG_CONTROL" "#include <sys/types.h> 13085#include <linux/sysctl.h> 13086" 13087if test "x$ac_cv_have_decl_NET_TCP_ALLOWED_CONG_CONTROL" = xyes; then : 13088 ac_have_decl=1 13089else 13090 ac_have_decl=0 13091fi 13092 13093cat >>confdefs.h <<_ACEOF 13094#define HAVE_DECL_NET_TCP_ALLOWED_CONG_CONTROL $ac_have_decl 13095_ACEOF 13096ac_fn_c_check_decl "$LINENO" "NET_TCP_MAX_SSTHRESH" "ac_cv_have_decl_NET_TCP_MAX_SSTHRESH" "#include <sys/types.h> 13097#include <linux/sysctl.h> 13098" 13099if test "x$ac_cv_have_decl_NET_TCP_MAX_SSTHRESH" = xyes; then : 13100 ac_have_decl=1 13101else 13102 ac_have_decl=0 13103fi 13104 13105cat >>confdefs.h <<_ACEOF 13106#define HAVE_DECL_NET_TCP_MAX_SSTHRESH $ac_have_decl 13107_ACEOF 13108ac_fn_c_check_decl "$LINENO" "NET_TCP_FRTO_RESPONSE" "ac_cv_have_decl_NET_TCP_FRTO_RESPONSE" "#include <sys/types.h> 13109#include <linux/sysctl.h> 13110" 13111if test "x$ac_cv_have_decl_NET_TCP_FRTO_RESPONSE" = xyes; then : 13112 ac_have_decl=1 13113else 13114 ac_have_decl=0 13115fi 13116 13117cat >>confdefs.h <<_ACEOF 13118#define HAVE_DECL_NET_TCP_FRTO_RESPONSE $ac_have_decl 13119_ACEOF 13120ac_fn_c_check_decl "$LINENO" "NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS" "ac_cv_have_decl_NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS" "#include <sys/types.h> 13121#include <linux/sysctl.h> 13122" 13123if test "x$ac_cv_have_decl_NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS" = xyes; then : 13124 ac_have_decl=1 13125else 13126 ac_have_decl=0 13127fi 13128 13129cat >>confdefs.h <<_ACEOF 13130#define HAVE_DECL_NET_IPV4_ROUTE_GC_MIN_INTERVAL_MS $ac_have_decl 13131_ACEOF 13132ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_FORCE_IGMP_VERSION" "ac_cv_have_decl_NET_IPV4_CONF_FORCE_IGMP_VERSION" "#include <sys/types.h> 13133#include <linux/sysctl.h> 13134" 13135if test "x$ac_cv_have_decl_NET_IPV4_CONF_FORCE_IGMP_VERSION" = xyes; then : 13136 ac_have_decl=1 13137else 13138 ac_have_decl=0 13139fi 13140 13141cat >>confdefs.h <<_ACEOF 13142#define HAVE_DECL_NET_IPV4_CONF_FORCE_IGMP_VERSION $ac_have_decl 13143_ACEOF 13144ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_ARP_ANNOUNCE" "ac_cv_have_decl_NET_IPV4_CONF_ARP_ANNOUNCE" "#include <sys/types.h> 13145#include <linux/sysctl.h> 13146" 13147if test "x$ac_cv_have_decl_NET_IPV4_CONF_ARP_ANNOUNCE" = xyes; then : 13148 ac_have_decl=1 13149else 13150 ac_have_decl=0 13151fi 13152 13153cat >>confdefs.h <<_ACEOF 13154#define HAVE_DECL_NET_IPV4_CONF_ARP_ANNOUNCE $ac_have_decl 13155_ACEOF 13156ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_ARP_IGNORE" "ac_cv_have_decl_NET_IPV4_CONF_ARP_IGNORE" "#include <sys/types.h> 13157#include <linux/sysctl.h> 13158" 13159if test "x$ac_cv_have_decl_NET_IPV4_CONF_ARP_IGNORE" = xyes; then : 13160 ac_have_decl=1 13161else 13162 ac_have_decl=0 13163fi 13164 13165cat >>confdefs.h <<_ACEOF 13166#define HAVE_DECL_NET_IPV4_CONF_ARP_IGNORE $ac_have_decl 13167_ACEOF 13168ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_PROMOTE_SECONDARIES" "ac_cv_have_decl_NET_IPV4_CONF_PROMOTE_SECONDARIES" "#include <sys/types.h> 13169#include <linux/sysctl.h> 13170" 13171if test "x$ac_cv_have_decl_NET_IPV4_CONF_PROMOTE_SECONDARIES" = xyes; then : 13172 ac_have_decl=1 13173else 13174 ac_have_decl=0 13175fi 13176 13177cat >>confdefs.h <<_ACEOF 13178#define HAVE_DECL_NET_IPV4_CONF_PROMOTE_SECONDARIES $ac_have_decl 13179_ACEOF 13180ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_ARP_ACCEPT" "ac_cv_have_decl_NET_IPV4_CONF_ARP_ACCEPT" "#include <sys/types.h> 13181#include <linux/sysctl.h> 13182" 13183if test "x$ac_cv_have_decl_NET_IPV4_CONF_ARP_ACCEPT" = xyes; then : 13184 ac_have_decl=1 13185else 13186 ac_have_decl=0 13187fi 13188 13189cat >>confdefs.h <<_ACEOF 13190#define HAVE_DECL_NET_IPV4_CONF_ARP_ACCEPT $ac_have_decl 13191_ACEOF 13192ac_fn_c_check_decl "$LINENO" "NET_IPV4_CONF_ARP_NOTIFY" "ac_cv_have_decl_NET_IPV4_CONF_ARP_NOTIFY" "#include <sys/types.h> 13193#include <linux/sysctl.h> 13194" 13195if test "x$ac_cv_have_decl_NET_IPV4_CONF_ARP_NOTIFY" = xyes; then : 13196 ac_have_decl=1 13197else 13198 ac_have_decl=0 13199fi 13200 13201cat >>confdefs.h <<_ACEOF 13202#define HAVE_DECL_NET_IPV4_CONF_ARP_NOTIFY $ac_have_decl 13203_ACEOF 13204ac_fn_c_check_decl "$LINENO" "NET_IPV6_MLD_MAX_MSF" "ac_cv_have_decl_NET_IPV6_MLD_MAX_MSF" "#include <sys/types.h> 13205#include <linux/sysctl.h> 13206" 13207if test "x$ac_cv_have_decl_NET_IPV6_MLD_MAX_MSF" = xyes; then : 13208 ac_have_decl=1 13209else 13210 ac_have_decl=0 13211fi 13212 13213cat >>confdefs.h <<_ACEOF 13214#define HAVE_DECL_NET_IPV6_MLD_MAX_MSF $ac_have_decl 13215_ACEOF 13216ac_fn_c_check_decl "$LINENO" "NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS" "ac_cv_have_decl_NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS" "#include <sys/types.h> 13217#include <linux/sysctl.h> 13218" 13219if test "x$ac_cv_have_decl_NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS" = xyes; then : 13220 ac_have_decl=1 13221else 13222 ac_have_decl=0 13223fi 13224 13225cat >>confdefs.h <<_ACEOF 13226#define HAVE_DECL_NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS $ac_have_decl 13227_ACEOF 13228ac_fn_c_check_decl "$LINENO" "VM_MAX_MAP_COUNT" "ac_cv_have_decl_VM_MAX_MAP_COUNT" "#include <sys/types.h> 13229#include <linux/sysctl.h> 13230" 13231if test "x$ac_cv_have_decl_VM_MAX_MAP_COUNT" = xyes; then : 13232 ac_have_decl=1 13233else 13234 ac_have_decl=0 13235fi 13236 13237cat >>confdefs.h <<_ACEOF 13238#define HAVE_DECL_VM_MAX_MAP_COUNT $ac_have_decl 13239_ACEOF 13240ac_fn_c_check_decl "$LINENO" "VM_LAPTOP_MODE" "ac_cv_have_decl_VM_LAPTOP_MODE" "#include <sys/types.h> 13241#include <linux/sysctl.h> 13242" 13243if test "x$ac_cv_have_decl_VM_LAPTOP_MODE" = xyes; then : 13244 ac_have_decl=1 13245else 13246 ac_have_decl=0 13247fi 13248 13249cat >>confdefs.h <<_ACEOF 13250#define HAVE_DECL_VM_LAPTOP_MODE $ac_have_decl 13251_ACEOF 13252ac_fn_c_check_decl "$LINENO" "VM_BLOCK_DUMP" "ac_cv_have_decl_VM_BLOCK_DUMP" "#include <sys/types.h> 13253#include <linux/sysctl.h> 13254" 13255if test "x$ac_cv_have_decl_VM_BLOCK_DUMP" = xyes; then : 13256 ac_have_decl=1 13257else 13258 ac_have_decl=0 13259fi 13260 13261cat >>confdefs.h <<_ACEOF 13262#define HAVE_DECL_VM_BLOCK_DUMP $ac_have_decl 13263_ACEOF 13264ac_fn_c_check_decl "$LINENO" "VM_HUGETLB_GROUP" "ac_cv_have_decl_VM_HUGETLB_GROUP" "#include <sys/types.h> 13265#include <linux/sysctl.h> 13266" 13267if test "x$ac_cv_have_decl_VM_HUGETLB_GROUP" = xyes; then : 13268 ac_have_decl=1 13269else 13270 ac_have_decl=0 13271fi 13272 13273cat >>confdefs.h <<_ACEOF 13274#define HAVE_DECL_VM_HUGETLB_GROUP $ac_have_decl 13275_ACEOF 13276ac_fn_c_check_decl "$LINENO" "VM_VFS_CACHE_PRESSURE" "ac_cv_have_decl_VM_VFS_CACHE_PRESSURE" "#include <sys/types.h> 13277#include <linux/sysctl.h> 13278" 13279if test "x$ac_cv_have_decl_VM_VFS_CACHE_PRESSURE" = xyes; then : 13280 ac_have_decl=1 13281else 13282 ac_have_decl=0 13283fi 13284 13285cat >>confdefs.h <<_ACEOF 13286#define HAVE_DECL_VM_VFS_CACHE_PRESSURE $ac_have_decl 13287_ACEOF 13288ac_fn_c_check_decl "$LINENO" "VM_LEGACY_VA_LAYOUT" "ac_cv_have_decl_VM_LEGACY_VA_LAYOUT" "#include <sys/types.h> 13289#include <linux/sysctl.h> 13290" 13291if test "x$ac_cv_have_decl_VM_LEGACY_VA_LAYOUT" = xyes; then : 13292 ac_have_decl=1 13293else 13294 ac_have_decl=0 13295fi 13296 13297cat >>confdefs.h <<_ACEOF 13298#define HAVE_DECL_VM_LEGACY_VA_LAYOUT $ac_have_decl 13299_ACEOF 13300ac_fn_c_check_decl "$LINENO" "VM_SWAP_TOKEN_TIMEOUT" "ac_cv_have_decl_VM_SWAP_TOKEN_TIMEOUT" "#include <sys/types.h> 13301#include <linux/sysctl.h> 13302" 13303if test "x$ac_cv_have_decl_VM_SWAP_TOKEN_TIMEOUT" = xyes; then : 13304 ac_have_decl=1 13305else 13306 ac_have_decl=0 13307fi 13308 13309cat >>confdefs.h <<_ACEOF 13310#define HAVE_DECL_VM_SWAP_TOKEN_TIMEOUT $ac_have_decl 13311_ACEOF 13312 13313 13314ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_ANY" "ac_cv_have_decl_V4L2_FIELD_ANY" "#include <sys/time.h> 13315#include <linux/ioctl.h> 13316#include <linux/types.h> 13317#include <linux/videodev2.h> 13318" 13319if test "x$ac_cv_have_decl_V4L2_FIELD_ANY" = xyes; then : 13320 ac_have_decl=1 13321else 13322 ac_have_decl=0 13323fi 13324 13325cat >>confdefs.h <<_ACEOF 13326#define HAVE_DECL_V4L2_FIELD_ANY $ac_have_decl 13327_ACEOF 13328ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_NONE" "ac_cv_have_decl_V4L2_FIELD_NONE" "#include <sys/time.h> 13329#include <linux/ioctl.h> 13330#include <linux/types.h> 13331#include <linux/videodev2.h> 13332" 13333if test "x$ac_cv_have_decl_V4L2_FIELD_NONE" = xyes; then : 13334 ac_have_decl=1 13335else 13336 ac_have_decl=0 13337fi 13338 13339cat >>confdefs.h <<_ACEOF 13340#define HAVE_DECL_V4L2_FIELD_NONE $ac_have_decl 13341_ACEOF 13342ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_TOP" "ac_cv_have_decl_V4L2_FIELD_TOP" "#include <sys/time.h> 13343#include <linux/ioctl.h> 13344#include <linux/types.h> 13345#include <linux/videodev2.h> 13346" 13347if test "x$ac_cv_have_decl_V4L2_FIELD_TOP" = xyes; then : 13348 ac_have_decl=1 13349else 13350 ac_have_decl=0 13351fi 13352 13353cat >>confdefs.h <<_ACEOF 13354#define HAVE_DECL_V4L2_FIELD_TOP $ac_have_decl 13355_ACEOF 13356ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_BOTTOM" "ac_cv_have_decl_V4L2_FIELD_BOTTOM" "#include <sys/time.h> 13357#include <linux/ioctl.h> 13358#include <linux/types.h> 13359#include <linux/videodev2.h> 13360" 13361if test "x$ac_cv_have_decl_V4L2_FIELD_BOTTOM" = xyes; then : 13362 ac_have_decl=1 13363else 13364 ac_have_decl=0 13365fi 13366 13367cat >>confdefs.h <<_ACEOF 13368#define HAVE_DECL_V4L2_FIELD_BOTTOM $ac_have_decl 13369_ACEOF 13370ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_INTERLACED" "ac_cv_have_decl_V4L2_FIELD_INTERLACED" "#include <sys/time.h> 13371#include <linux/ioctl.h> 13372#include <linux/types.h> 13373#include <linux/videodev2.h> 13374" 13375if test "x$ac_cv_have_decl_V4L2_FIELD_INTERLACED" = xyes; then : 13376 ac_have_decl=1 13377else 13378 ac_have_decl=0 13379fi 13380 13381cat >>confdefs.h <<_ACEOF 13382#define HAVE_DECL_V4L2_FIELD_INTERLACED $ac_have_decl 13383_ACEOF 13384ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_SEQ_TB" "ac_cv_have_decl_V4L2_FIELD_SEQ_TB" "#include <sys/time.h> 13385#include <linux/ioctl.h> 13386#include <linux/types.h> 13387#include <linux/videodev2.h> 13388" 13389if test "x$ac_cv_have_decl_V4L2_FIELD_SEQ_TB" = xyes; then : 13390 ac_have_decl=1 13391else 13392 ac_have_decl=0 13393fi 13394 13395cat >>confdefs.h <<_ACEOF 13396#define HAVE_DECL_V4L2_FIELD_SEQ_TB $ac_have_decl 13397_ACEOF 13398ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_SEQ_BT" "ac_cv_have_decl_V4L2_FIELD_SEQ_BT" "#include <sys/time.h> 13399#include <linux/ioctl.h> 13400#include <linux/types.h> 13401#include <linux/videodev2.h> 13402" 13403if test "x$ac_cv_have_decl_V4L2_FIELD_SEQ_BT" = xyes; then : 13404 ac_have_decl=1 13405else 13406 ac_have_decl=0 13407fi 13408 13409cat >>confdefs.h <<_ACEOF 13410#define HAVE_DECL_V4L2_FIELD_SEQ_BT $ac_have_decl 13411_ACEOF 13412ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_ALTERNATE" "ac_cv_have_decl_V4L2_FIELD_ALTERNATE" "#include <sys/time.h> 13413#include <linux/ioctl.h> 13414#include <linux/types.h> 13415#include <linux/videodev2.h> 13416" 13417if test "x$ac_cv_have_decl_V4L2_FIELD_ALTERNATE" = xyes; then : 13418 ac_have_decl=1 13419else 13420 ac_have_decl=0 13421fi 13422 13423cat >>confdefs.h <<_ACEOF 13424#define HAVE_DECL_V4L2_FIELD_ALTERNATE $ac_have_decl 13425_ACEOF 13426ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_INTERLACED_TB" "ac_cv_have_decl_V4L2_FIELD_INTERLACED_TB" "#include <sys/time.h> 13427#include <linux/ioctl.h> 13428#include <linux/types.h> 13429#include <linux/videodev2.h> 13430" 13431if test "x$ac_cv_have_decl_V4L2_FIELD_INTERLACED_TB" = xyes; then : 13432 ac_have_decl=1 13433else 13434 ac_have_decl=0 13435fi 13436 13437cat >>confdefs.h <<_ACEOF 13438#define HAVE_DECL_V4L2_FIELD_INTERLACED_TB $ac_have_decl 13439_ACEOF 13440ac_fn_c_check_decl "$LINENO" "V4L2_FIELD_INTERLACED_BT" "ac_cv_have_decl_V4L2_FIELD_INTERLACED_BT" "#include <sys/time.h> 13441#include <linux/ioctl.h> 13442#include <linux/types.h> 13443#include <linux/videodev2.h> 13444" 13445if test "x$ac_cv_have_decl_V4L2_FIELD_INTERLACED_BT" = xyes; then : 13446 ac_have_decl=1 13447else 13448 ac_have_decl=0 13449fi 13450 13451cat >>confdefs.h <<_ACEOF 13452#define HAVE_DECL_V4L2_FIELD_INTERLACED_BT $ac_have_decl 13453_ACEOF 13454ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_CAPTURE" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_CAPTURE" "#include <sys/time.h> 13455#include <linux/ioctl.h> 13456#include <linux/types.h> 13457#include <linux/videodev2.h> 13458" 13459if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_CAPTURE" = xyes; then : 13460 ac_have_decl=1 13461else 13462 ac_have_decl=0 13463fi 13464 13465cat >>confdefs.h <<_ACEOF 13466#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_CAPTURE $ac_have_decl 13467_ACEOF 13468ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE" "#include <sys/time.h> 13469#include <linux/ioctl.h> 13470#include <linux/types.h> 13471#include <linux/videodev2.h> 13472" 13473if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE" = xyes; then : 13474 ac_have_decl=1 13475else 13476 ac_have_decl=0 13477fi 13478 13479cat >>confdefs.h <<_ACEOF 13480#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE $ac_have_decl 13481_ACEOF 13482ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_OUTPUT" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT" "#include <sys/time.h> 13483#include <linux/ioctl.h> 13484#include <linux/types.h> 13485#include <linux/videodev2.h> 13486" 13487if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT" = xyes; then : 13488 ac_have_decl=1 13489else 13490 ac_have_decl=0 13491fi 13492 13493cat >>confdefs.h <<_ACEOF 13494#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_OUTPUT $ac_have_decl 13495_ACEOF 13496ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE" "#include <sys/time.h> 13497#include <linux/ioctl.h> 13498#include <linux/types.h> 13499#include <linux/videodev2.h> 13500" 13501if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE" = xyes; then : 13502 ac_have_decl=1 13503else 13504 ac_have_decl=0 13505fi 13506 13507cat >>confdefs.h <<_ACEOF 13508#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE $ac_have_decl 13509_ACEOF 13510ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_OVERLAY" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OVERLAY" "#include <sys/time.h> 13511#include <linux/ioctl.h> 13512#include <linux/types.h> 13513#include <linux/videodev2.h> 13514" 13515if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OVERLAY" = xyes; then : 13516 ac_have_decl=1 13517else 13518 ac_have_decl=0 13519fi 13520 13521cat >>confdefs.h <<_ACEOF 13522#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_OVERLAY $ac_have_decl 13523_ACEOF 13524ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VBI_CAPTURE" "ac_cv_have_decl_V4L2_BUF_TYPE_VBI_CAPTURE" "#include <sys/time.h> 13525#include <linux/ioctl.h> 13526#include <linux/types.h> 13527#include <linux/videodev2.h> 13528" 13529if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VBI_CAPTURE" = xyes; then : 13530 ac_have_decl=1 13531else 13532 ac_have_decl=0 13533fi 13534 13535cat >>confdefs.h <<_ACEOF 13536#define HAVE_DECL_V4L2_BUF_TYPE_VBI_CAPTURE $ac_have_decl 13537_ACEOF 13538ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VBI_OUTPUT" "ac_cv_have_decl_V4L2_BUF_TYPE_VBI_OUTPUT" "#include <sys/time.h> 13539#include <linux/ioctl.h> 13540#include <linux/types.h> 13541#include <linux/videodev2.h> 13542" 13543if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VBI_OUTPUT" = xyes; then : 13544 ac_have_decl=1 13545else 13546 ac_have_decl=0 13547fi 13548 13549cat >>confdefs.h <<_ACEOF 13550#define HAVE_DECL_V4L2_BUF_TYPE_VBI_OUTPUT $ac_have_decl 13551_ACEOF 13552ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_SLICED_VBI_CAPTURE" "ac_cv_have_decl_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE" "#include <sys/time.h> 13553#include <linux/ioctl.h> 13554#include <linux/types.h> 13555#include <linux/videodev2.h> 13556" 13557if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE" = xyes; then : 13558 ac_have_decl=1 13559else 13560 ac_have_decl=0 13561fi 13562 13563cat >>confdefs.h <<_ACEOF 13564#define HAVE_DECL_V4L2_BUF_TYPE_SLICED_VBI_CAPTURE $ac_have_decl 13565_ACEOF 13566ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_SLICED_VBI_OUTPUT" "ac_cv_have_decl_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT" "#include <sys/time.h> 13567#include <linux/ioctl.h> 13568#include <linux/types.h> 13569#include <linux/videodev2.h> 13570" 13571if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT" = xyes; then : 13572 ac_have_decl=1 13573else 13574 ac_have_decl=0 13575fi 13576 13577cat >>confdefs.h <<_ACEOF 13578#define HAVE_DECL_V4L2_BUF_TYPE_SLICED_VBI_OUTPUT $ac_have_decl 13579_ACEOF 13580ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY" "ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY" "#include <sys/time.h> 13581#include <linux/ioctl.h> 13582#include <linux/types.h> 13583#include <linux/videodev2.h> 13584" 13585if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY" = xyes; then : 13586 ac_have_decl=1 13587else 13588 ac_have_decl=0 13589fi 13590 13591cat >>confdefs.h <<_ACEOF 13592#define HAVE_DECL_V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY $ac_have_decl 13593_ACEOF 13594ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_SDR_CAPTURE" "ac_cv_have_decl_V4L2_BUF_TYPE_SDR_CAPTURE" "#include <sys/time.h> 13595#include <linux/ioctl.h> 13596#include <linux/types.h> 13597#include <linux/videodev2.h> 13598" 13599if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_SDR_CAPTURE" = xyes; then : 13600 ac_have_decl=1 13601else 13602 ac_have_decl=0 13603fi 13604 13605cat >>confdefs.h <<_ACEOF 13606#define HAVE_DECL_V4L2_BUF_TYPE_SDR_CAPTURE $ac_have_decl 13607_ACEOF 13608ac_fn_c_check_decl "$LINENO" "V4L2_BUF_TYPE_SDR_OUTPUT" "ac_cv_have_decl_V4L2_BUF_TYPE_SDR_OUTPUT" "#include <sys/time.h> 13609#include <linux/ioctl.h> 13610#include <linux/types.h> 13611#include <linux/videodev2.h> 13612" 13613if test "x$ac_cv_have_decl_V4L2_BUF_TYPE_SDR_OUTPUT" = xyes; then : 13614 ac_have_decl=1 13615else 13616 ac_have_decl=0 13617fi 13618 13619cat >>confdefs.h <<_ACEOF 13620#define HAVE_DECL_V4L2_BUF_TYPE_SDR_OUTPUT $ac_have_decl 13621_ACEOF 13622ac_fn_c_check_decl "$LINENO" "V4L2_TUNER_RADIO" "ac_cv_have_decl_V4L2_TUNER_RADIO" "#include <sys/time.h> 13623#include <linux/ioctl.h> 13624#include <linux/types.h> 13625#include <linux/videodev2.h> 13626" 13627if test "x$ac_cv_have_decl_V4L2_TUNER_RADIO" = xyes; then : 13628 ac_have_decl=1 13629else 13630 ac_have_decl=0 13631fi 13632 13633cat >>confdefs.h <<_ACEOF 13634#define HAVE_DECL_V4L2_TUNER_RADIO $ac_have_decl 13635_ACEOF 13636ac_fn_c_check_decl "$LINENO" "V4L2_TUNER_ANALOG_TV" "ac_cv_have_decl_V4L2_TUNER_ANALOG_TV" "#include <sys/time.h> 13637#include <linux/ioctl.h> 13638#include <linux/types.h> 13639#include <linux/videodev2.h> 13640" 13641if test "x$ac_cv_have_decl_V4L2_TUNER_ANALOG_TV" = xyes; then : 13642 ac_have_decl=1 13643else 13644 ac_have_decl=0 13645fi 13646 13647cat >>confdefs.h <<_ACEOF 13648#define HAVE_DECL_V4L2_TUNER_ANALOG_TV $ac_have_decl 13649_ACEOF 13650ac_fn_c_check_decl "$LINENO" "V4L2_TUNER_DIGITAL_TV" "ac_cv_have_decl_V4L2_TUNER_DIGITAL_TV" "#include <sys/time.h> 13651#include <linux/ioctl.h> 13652#include <linux/types.h> 13653#include <linux/videodev2.h> 13654" 13655if test "x$ac_cv_have_decl_V4L2_TUNER_DIGITAL_TV" = xyes; then : 13656 ac_have_decl=1 13657else 13658 ac_have_decl=0 13659fi 13660 13661cat >>confdefs.h <<_ACEOF 13662#define HAVE_DECL_V4L2_TUNER_DIGITAL_TV $ac_have_decl 13663_ACEOF 13664ac_fn_c_check_decl "$LINENO" "V4L2_MEMORY_MMAP" "ac_cv_have_decl_V4L2_MEMORY_MMAP" "#include <sys/time.h> 13665#include <linux/ioctl.h> 13666#include <linux/types.h> 13667#include <linux/videodev2.h> 13668" 13669if test "x$ac_cv_have_decl_V4L2_MEMORY_MMAP" = xyes; then : 13670 ac_have_decl=1 13671else 13672 ac_have_decl=0 13673fi 13674 13675cat >>confdefs.h <<_ACEOF 13676#define HAVE_DECL_V4L2_MEMORY_MMAP $ac_have_decl 13677_ACEOF 13678ac_fn_c_check_decl "$LINENO" "V4L2_MEMORY_USERPTR" "ac_cv_have_decl_V4L2_MEMORY_USERPTR" "#include <sys/time.h> 13679#include <linux/ioctl.h> 13680#include <linux/types.h> 13681#include <linux/videodev2.h> 13682" 13683if test "x$ac_cv_have_decl_V4L2_MEMORY_USERPTR" = xyes; then : 13684 ac_have_decl=1 13685else 13686 ac_have_decl=0 13687fi 13688 13689cat >>confdefs.h <<_ACEOF 13690#define HAVE_DECL_V4L2_MEMORY_USERPTR $ac_have_decl 13691_ACEOF 13692ac_fn_c_check_decl "$LINENO" "V4L2_MEMORY_OVERLAY" "ac_cv_have_decl_V4L2_MEMORY_OVERLAY" "#include <sys/time.h> 13693#include <linux/ioctl.h> 13694#include <linux/types.h> 13695#include <linux/videodev2.h> 13696" 13697if test "x$ac_cv_have_decl_V4L2_MEMORY_OVERLAY" = xyes; then : 13698 ac_have_decl=1 13699else 13700 ac_have_decl=0 13701fi 13702 13703cat >>confdefs.h <<_ACEOF 13704#define HAVE_DECL_V4L2_MEMORY_OVERLAY $ac_have_decl 13705_ACEOF 13706ac_fn_c_check_decl "$LINENO" "V4L2_MEMORY_DMABUF" "ac_cv_have_decl_V4L2_MEMORY_DMABUF" "#include <sys/time.h> 13707#include <linux/ioctl.h> 13708#include <linux/types.h> 13709#include <linux/videodev2.h> 13710" 13711if test "x$ac_cv_have_decl_V4L2_MEMORY_DMABUF" = xyes; then : 13712 ac_have_decl=1 13713else 13714 ac_have_decl=0 13715fi 13716 13717cat >>confdefs.h <<_ACEOF 13718#define HAVE_DECL_V4L2_MEMORY_DMABUF $ac_have_decl 13719_ACEOF 13720ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_SMPTE170M" "ac_cv_have_decl_V4L2_COLORSPACE_SMPTE170M" "#include <sys/time.h> 13721#include <linux/ioctl.h> 13722#include <linux/types.h> 13723#include <linux/videodev2.h> 13724" 13725if test "x$ac_cv_have_decl_V4L2_COLORSPACE_SMPTE170M" = xyes; then : 13726 ac_have_decl=1 13727else 13728 ac_have_decl=0 13729fi 13730 13731cat >>confdefs.h <<_ACEOF 13732#define HAVE_DECL_V4L2_COLORSPACE_SMPTE170M $ac_have_decl 13733_ACEOF 13734ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_SMPTE240M" "ac_cv_have_decl_V4L2_COLORSPACE_SMPTE240M" "#include <sys/time.h> 13735#include <linux/ioctl.h> 13736#include <linux/types.h> 13737#include <linux/videodev2.h> 13738" 13739if test "x$ac_cv_have_decl_V4L2_COLORSPACE_SMPTE240M" = xyes; then : 13740 ac_have_decl=1 13741else 13742 ac_have_decl=0 13743fi 13744 13745cat >>confdefs.h <<_ACEOF 13746#define HAVE_DECL_V4L2_COLORSPACE_SMPTE240M $ac_have_decl 13747_ACEOF 13748ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_REC709" "ac_cv_have_decl_V4L2_COLORSPACE_REC709" "#include <sys/time.h> 13749#include <linux/ioctl.h> 13750#include <linux/types.h> 13751#include <linux/videodev2.h> 13752" 13753if test "x$ac_cv_have_decl_V4L2_COLORSPACE_REC709" = xyes; then : 13754 ac_have_decl=1 13755else 13756 ac_have_decl=0 13757fi 13758 13759cat >>confdefs.h <<_ACEOF 13760#define HAVE_DECL_V4L2_COLORSPACE_REC709 $ac_have_decl 13761_ACEOF 13762ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_BT878" "ac_cv_have_decl_V4L2_COLORSPACE_BT878" "#include <sys/time.h> 13763#include <linux/ioctl.h> 13764#include <linux/types.h> 13765#include <linux/videodev2.h> 13766" 13767if test "x$ac_cv_have_decl_V4L2_COLORSPACE_BT878" = xyes; then : 13768 ac_have_decl=1 13769else 13770 ac_have_decl=0 13771fi 13772 13773cat >>confdefs.h <<_ACEOF 13774#define HAVE_DECL_V4L2_COLORSPACE_BT878 $ac_have_decl 13775_ACEOF 13776ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_470_SYSTEM_M" "ac_cv_have_decl_V4L2_COLORSPACE_470_SYSTEM_M" "#include <sys/time.h> 13777#include <linux/ioctl.h> 13778#include <linux/types.h> 13779#include <linux/videodev2.h> 13780" 13781if test "x$ac_cv_have_decl_V4L2_COLORSPACE_470_SYSTEM_M" = xyes; then : 13782 ac_have_decl=1 13783else 13784 ac_have_decl=0 13785fi 13786 13787cat >>confdefs.h <<_ACEOF 13788#define HAVE_DECL_V4L2_COLORSPACE_470_SYSTEM_M $ac_have_decl 13789_ACEOF 13790ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_470_SYSTEM_BG" "ac_cv_have_decl_V4L2_COLORSPACE_470_SYSTEM_BG" "#include <sys/time.h> 13791#include <linux/ioctl.h> 13792#include <linux/types.h> 13793#include <linux/videodev2.h> 13794" 13795if test "x$ac_cv_have_decl_V4L2_COLORSPACE_470_SYSTEM_BG" = xyes; then : 13796 ac_have_decl=1 13797else 13798 ac_have_decl=0 13799fi 13800 13801cat >>confdefs.h <<_ACEOF 13802#define HAVE_DECL_V4L2_COLORSPACE_470_SYSTEM_BG $ac_have_decl 13803_ACEOF 13804ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_JPEG" "ac_cv_have_decl_V4L2_COLORSPACE_JPEG" "#include <sys/time.h> 13805#include <linux/ioctl.h> 13806#include <linux/types.h> 13807#include <linux/videodev2.h> 13808" 13809if test "x$ac_cv_have_decl_V4L2_COLORSPACE_JPEG" = xyes; then : 13810 ac_have_decl=1 13811else 13812 ac_have_decl=0 13813fi 13814 13815cat >>confdefs.h <<_ACEOF 13816#define HAVE_DECL_V4L2_COLORSPACE_JPEG $ac_have_decl 13817_ACEOF 13818ac_fn_c_check_decl "$LINENO" "V4L2_COLORSPACE_SRGB" "ac_cv_have_decl_V4L2_COLORSPACE_SRGB" "#include <sys/time.h> 13819#include <linux/ioctl.h> 13820#include <linux/types.h> 13821#include <linux/videodev2.h> 13822" 13823if test "x$ac_cv_have_decl_V4L2_COLORSPACE_SRGB" = xyes; then : 13824 ac_have_decl=1 13825else 13826 ac_have_decl=0 13827fi 13828 13829cat >>confdefs.h <<_ACEOF 13830#define HAVE_DECL_V4L2_COLORSPACE_SRGB $ac_have_decl 13831_ACEOF 13832ac_fn_c_check_decl "$LINENO" "V4L2_PRIORITY_UNSET" "ac_cv_have_decl_V4L2_PRIORITY_UNSET" "#include <sys/time.h> 13833#include <linux/ioctl.h> 13834#include <linux/types.h> 13835#include <linux/videodev2.h> 13836" 13837if test "x$ac_cv_have_decl_V4L2_PRIORITY_UNSET" = xyes; then : 13838 ac_have_decl=1 13839else 13840 ac_have_decl=0 13841fi 13842 13843cat >>confdefs.h <<_ACEOF 13844#define HAVE_DECL_V4L2_PRIORITY_UNSET $ac_have_decl 13845_ACEOF 13846ac_fn_c_check_decl "$LINENO" "V4L2_PRIORITY_BACKGROUND" "ac_cv_have_decl_V4L2_PRIORITY_BACKGROUND" "#include <sys/time.h> 13847#include <linux/ioctl.h> 13848#include <linux/types.h> 13849#include <linux/videodev2.h> 13850" 13851if test "x$ac_cv_have_decl_V4L2_PRIORITY_BACKGROUND" = xyes; then : 13852 ac_have_decl=1 13853else 13854 ac_have_decl=0 13855fi 13856 13857cat >>confdefs.h <<_ACEOF 13858#define HAVE_DECL_V4L2_PRIORITY_BACKGROUND $ac_have_decl 13859_ACEOF 13860ac_fn_c_check_decl "$LINENO" "V4L2_PRIORITY_INTERACTIVE" "ac_cv_have_decl_V4L2_PRIORITY_INTERACTIVE" "#include <sys/time.h> 13861#include <linux/ioctl.h> 13862#include <linux/types.h> 13863#include <linux/videodev2.h> 13864" 13865if test "x$ac_cv_have_decl_V4L2_PRIORITY_INTERACTIVE" = xyes; then : 13866 ac_have_decl=1 13867else 13868 ac_have_decl=0 13869fi 13870 13871cat >>confdefs.h <<_ACEOF 13872#define HAVE_DECL_V4L2_PRIORITY_INTERACTIVE $ac_have_decl 13873_ACEOF 13874ac_fn_c_check_decl "$LINENO" "V4L2_PRIORITY_RECORD" "ac_cv_have_decl_V4L2_PRIORITY_RECORD" "#include <sys/time.h> 13875#include <linux/ioctl.h> 13876#include <linux/types.h> 13877#include <linux/videodev2.h> 13878" 13879if test "x$ac_cv_have_decl_V4L2_PRIORITY_RECORD" = xyes; then : 13880 ac_have_decl=1 13881else 13882 ac_have_decl=0 13883fi 13884 13885cat >>confdefs.h <<_ACEOF 13886#define HAVE_DECL_V4L2_PRIORITY_RECORD $ac_have_decl 13887_ACEOF 13888ac_fn_c_check_decl "$LINENO" "V4L2_FRMSIZE_TYPE_DISCRETE" "ac_cv_have_decl_V4L2_FRMSIZE_TYPE_DISCRETE" "#include <sys/time.h> 13889#include <linux/ioctl.h> 13890#include <linux/types.h> 13891#include <linux/videodev2.h> 13892" 13893if test "x$ac_cv_have_decl_V4L2_FRMSIZE_TYPE_DISCRETE" = xyes; then : 13894 ac_have_decl=1 13895else 13896 ac_have_decl=0 13897fi 13898 13899cat >>confdefs.h <<_ACEOF 13900#define HAVE_DECL_V4L2_FRMSIZE_TYPE_DISCRETE $ac_have_decl 13901_ACEOF 13902ac_fn_c_check_decl "$LINENO" "V4L2_FRMSIZE_TYPE_CONTINUOUS" "ac_cv_have_decl_V4L2_FRMSIZE_TYPE_CONTINUOUS" "#include <sys/time.h> 13903#include <linux/ioctl.h> 13904#include <linux/types.h> 13905#include <linux/videodev2.h> 13906" 13907if test "x$ac_cv_have_decl_V4L2_FRMSIZE_TYPE_CONTINUOUS" = xyes; then : 13908 ac_have_decl=1 13909else 13910 ac_have_decl=0 13911fi 13912 13913cat >>confdefs.h <<_ACEOF 13914#define HAVE_DECL_V4L2_FRMSIZE_TYPE_CONTINUOUS $ac_have_decl 13915_ACEOF 13916ac_fn_c_check_decl "$LINENO" "V4L2_FRMSIZE_TYPE_STEPWISE" "ac_cv_have_decl_V4L2_FRMSIZE_TYPE_STEPWISE" "#include <sys/time.h> 13917#include <linux/ioctl.h> 13918#include <linux/types.h> 13919#include <linux/videodev2.h> 13920" 13921if test "x$ac_cv_have_decl_V4L2_FRMSIZE_TYPE_STEPWISE" = xyes; then : 13922 ac_have_decl=1 13923else 13924 ac_have_decl=0 13925fi 13926 13927cat >>confdefs.h <<_ACEOF 13928#define HAVE_DECL_V4L2_FRMSIZE_TYPE_STEPWISE $ac_have_decl 13929_ACEOF 13930ac_fn_c_check_decl "$LINENO" "V4L2_FRMIVAL_TYPE_DISCRETE" "ac_cv_have_decl_V4L2_FRMIVAL_TYPE_DISCRETE" "#include <sys/time.h> 13931#include <linux/ioctl.h> 13932#include <linux/types.h> 13933#include <linux/videodev2.h> 13934" 13935if test "x$ac_cv_have_decl_V4L2_FRMIVAL_TYPE_DISCRETE" = xyes; then : 13936 ac_have_decl=1 13937else 13938 ac_have_decl=0 13939fi 13940 13941cat >>confdefs.h <<_ACEOF 13942#define HAVE_DECL_V4L2_FRMIVAL_TYPE_DISCRETE $ac_have_decl 13943_ACEOF 13944ac_fn_c_check_decl "$LINENO" "V4L2_FRMIVAL_TYPE_CONTINUOUS" "ac_cv_have_decl_V4L2_FRMIVAL_TYPE_CONTINUOUS" "#include <sys/time.h> 13945#include <linux/ioctl.h> 13946#include <linux/types.h> 13947#include <linux/videodev2.h> 13948" 13949if test "x$ac_cv_have_decl_V4L2_FRMIVAL_TYPE_CONTINUOUS" = xyes; then : 13950 ac_have_decl=1 13951else 13952 ac_have_decl=0 13953fi 13954 13955cat >>confdefs.h <<_ACEOF 13956#define HAVE_DECL_V4L2_FRMIVAL_TYPE_CONTINUOUS $ac_have_decl 13957_ACEOF 13958ac_fn_c_check_decl "$LINENO" "V4L2_FRMIVAL_TYPE_STEPWISE" "ac_cv_have_decl_V4L2_FRMIVAL_TYPE_STEPWISE" "#include <sys/time.h> 13959#include <linux/ioctl.h> 13960#include <linux/types.h> 13961#include <linux/videodev2.h> 13962" 13963if test "x$ac_cv_have_decl_V4L2_FRMIVAL_TYPE_STEPWISE" = xyes; then : 13964 ac_have_decl=1 13965else 13966 ac_have_decl=0 13967fi 13968 13969cat >>confdefs.h <<_ACEOF 13970#define HAVE_DECL_V4L2_FRMIVAL_TYPE_STEPWISE $ac_have_decl 13971_ACEOF 13972ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_INTEGER" "ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER" "#include <sys/time.h> 13973#include <linux/ioctl.h> 13974#include <linux/types.h> 13975#include <linux/videodev2.h> 13976" 13977if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER" = xyes; then : 13978 ac_have_decl=1 13979else 13980 ac_have_decl=0 13981fi 13982 13983cat >>confdefs.h <<_ACEOF 13984#define HAVE_DECL_V4L2_CTRL_TYPE_INTEGER $ac_have_decl 13985_ACEOF 13986ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_BOOLEAN" "ac_cv_have_decl_V4L2_CTRL_TYPE_BOOLEAN" "#include <sys/time.h> 13987#include <linux/ioctl.h> 13988#include <linux/types.h> 13989#include <linux/videodev2.h> 13990" 13991if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_BOOLEAN" = xyes; then : 13992 ac_have_decl=1 13993else 13994 ac_have_decl=0 13995fi 13996 13997cat >>confdefs.h <<_ACEOF 13998#define HAVE_DECL_V4L2_CTRL_TYPE_BOOLEAN $ac_have_decl 13999_ACEOF 14000ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_MENU" "ac_cv_have_decl_V4L2_CTRL_TYPE_MENU" "#include <sys/time.h> 14001#include <linux/ioctl.h> 14002#include <linux/types.h> 14003#include <linux/videodev2.h> 14004" 14005if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_MENU" = xyes; then : 14006 ac_have_decl=1 14007else 14008 ac_have_decl=0 14009fi 14010 14011cat >>confdefs.h <<_ACEOF 14012#define HAVE_DECL_V4L2_CTRL_TYPE_MENU $ac_have_decl 14013_ACEOF 14014ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_BUTTON" "ac_cv_have_decl_V4L2_CTRL_TYPE_BUTTON" "#include <sys/time.h> 14015#include <linux/ioctl.h> 14016#include <linux/types.h> 14017#include <linux/videodev2.h> 14018" 14019if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_BUTTON" = xyes; then : 14020 ac_have_decl=1 14021else 14022 ac_have_decl=0 14023fi 14024 14025cat >>confdefs.h <<_ACEOF 14026#define HAVE_DECL_V4L2_CTRL_TYPE_BUTTON $ac_have_decl 14027_ACEOF 14028ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_INTEGER64" "ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER64" "#include <sys/time.h> 14029#include <linux/ioctl.h> 14030#include <linux/types.h> 14031#include <linux/videodev2.h> 14032" 14033if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER64" = xyes; then : 14034 ac_have_decl=1 14035else 14036 ac_have_decl=0 14037fi 14038 14039cat >>confdefs.h <<_ACEOF 14040#define HAVE_DECL_V4L2_CTRL_TYPE_INTEGER64 $ac_have_decl 14041_ACEOF 14042ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_CTRL_CLASS" "ac_cv_have_decl_V4L2_CTRL_TYPE_CTRL_CLASS" "#include <sys/time.h> 14043#include <linux/ioctl.h> 14044#include <linux/types.h> 14045#include <linux/videodev2.h> 14046" 14047if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_CTRL_CLASS" = xyes; then : 14048 ac_have_decl=1 14049else 14050 ac_have_decl=0 14051fi 14052 14053cat >>confdefs.h <<_ACEOF 14054#define HAVE_DECL_V4L2_CTRL_TYPE_CTRL_CLASS $ac_have_decl 14055_ACEOF 14056ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_STRING" "ac_cv_have_decl_V4L2_CTRL_TYPE_STRING" "#include <sys/time.h> 14057#include <linux/ioctl.h> 14058#include <linux/types.h> 14059#include <linux/videodev2.h> 14060" 14061if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_STRING" = xyes; then : 14062 ac_have_decl=1 14063else 14064 ac_have_decl=0 14065fi 14066 14067cat >>confdefs.h <<_ACEOF 14068#define HAVE_DECL_V4L2_CTRL_TYPE_STRING $ac_have_decl 14069_ACEOF 14070ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_BITMASK" "ac_cv_have_decl_V4L2_CTRL_TYPE_BITMASK" "#include <sys/time.h> 14071#include <linux/ioctl.h> 14072#include <linux/types.h> 14073#include <linux/videodev2.h> 14074" 14075if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_BITMASK" = xyes; then : 14076 ac_have_decl=1 14077else 14078 ac_have_decl=0 14079fi 14080 14081cat >>confdefs.h <<_ACEOF 14082#define HAVE_DECL_V4L2_CTRL_TYPE_BITMASK $ac_have_decl 14083_ACEOF 14084ac_fn_c_check_decl "$LINENO" "V4L2_CTRL_TYPE_INTEGER_MENU" "ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER_MENU" "#include <sys/time.h> 14085#include <linux/ioctl.h> 14086#include <linux/types.h> 14087#include <linux/videodev2.h> 14088" 14089if test "x$ac_cv_have_decl_V4L2_CTRL_TYPE_INTEGER_MENU" = xyes; then : 14090 ac_have_decl=1 14091else 14092 ac_have_decl=0 14093fi 14094 14095cat >>confdefs.h <<_ACEOF 14096#define HAVE_DECL_V4L2_CTRL_TYPE_INTEGER_MENU $ac_have_decl 14097_ACEOF 14098 14099 14100ac_fn_c_check_member "$LINENO" "struct v4l2_window" "global_alpha" "ac_cv_member_struct_v4l2_window_global_alpha" "#include <sys/time.h> 14101#include <linux/ioctl.h> 14102#include <linux/types.h> 14103#include <linux/videodev2.h> 14104" 14105if test "x$ac_cv_member_struct_v4l2_window_global_alpha" = xyes; then : 14106 14107cat >>confdefs.h <<_ACEOF 14108#define HAVE_STRUCT_V4L2_WINDOW_GLOBAL_ALPHA 1 14109_ACEOF 14110 14111 14112fi 14113ac_fn_c_check_member "$LINENO" "struct v4l2_sdr_format" "buffersize" "ac_cv_member_struct_v4l2_sdr_format_buffersize" "#include <sys/time.h> 14114#include <linux/ioctl.h> 14115#include <linux/types.h> 14116#include <linux/videodev2.h> 14117" 14118if test "x$ac_cv_member_struct_v4l2_sdr_format_buffersize" = xyes; then : 14119 14120cat >>confdefs.h <<_ACEOF 14121#define HAVE_STRUCT_V4L2_SDR_FORMAT_BUFFERSIZE 1 14122_ACEOF 14123 14124 14125fi 14126 14127 14128# The cast to long int works around a bug in the HP C Compiler 14129# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14130# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14131# This bug is HP SR number 8606223364. 14132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14133$as_echo_n "checking size of long... " >&6; } 14134if ${ac_cv_sizeof_long+:} false; then : 14135 $as_echo_n "(cached) " >&6 14136else 14137 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14138 14139else 14140 if test "$ac_cv_type_long" = yes; then 14141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14143as_fn_error 77 "cannot compute sizeof (long) 14144See \`config.log' for more details" "$LINENO" 5; } 14145 else 14146 ac_cv_sizeof_long=0 14147 fi 14148fi 14149 14150fi 14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14152$as_echo "$ac_cv_sizeof_long" >&6; } 14153 14154 14155 14156cat >>confdefs.h <<_ACEOF 14157#define SIZEOF_LONG $ac_cv_sizeof_long 14158_ACEOF 14159 14160 14161SIZEOF_LONG="$ac_cv_sizeof_long" 14162 14163# The cast to long int works around a bug in the HP C Compiler 14164# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14165# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14166# This bug is HP SR number 8606223364. 14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14168$as_echo_n "checking size of long long... " >&6; } 14169if ${ac_cv_sizeof_long_long+:} false; then : 14170 $as_echo_n "(cached) " >&6 14171else 14172 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14173 14174else 14175 if test "$ac_cv_type_long_long" = yes; then 14176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14178as_fn_error 77 "cannot compute sizeof (long long) 14179See \`config.log' for more details" "$LINENO" 5; } 14180 else 14181 ac_cv_sizeof_long_long=0 14182 fi 14183fi 14184 14185fi 14186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14187$as_echo "$ac_cv_sizeof_long_long" >&6; } 14188 14189 14190 14191cat >>confdefs.h <<_ACEOF 14192#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14193_ACEOF 14194 14195 14196# The cast to long int works around a bug in the HP C Compiler 14197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14199# This bug is HP SR number 8606223364. 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14201$as_echo_n "checking size of off_t... " >&6; } 14202if ${ac_cv_sizeof_off_t+:} false; then : 14203 $as_echo_n "(cached) " >&6 14204else 14205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "#include <sys/types.h> 14206"; then : 14207 14208else 14209 if test "$ac_cv_type_off_t" = yes; then 14210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14212as_fn_error 77 "cannot compute sizeof (off_t) 14213See \`config.log' for more details" "$LINENO" 5; } 14214 else 14215 ac_cv_sizeof_off_t=0 14216 fi 14217fi 14218 14219fi 14220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14221$as_echo "$ac_cv_sizeof_off_t" >&6; } 14222 14223 14224 14225cat >>confdefs.h <<_ACEOF 14226#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14227_ACEOF 14228 14229 14230# The cast to long int works around a bug in the HP C Compiler 14231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14233# This bug is HP SR number 8606223364. 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of kernel_long_t" >&5 14235$as_echo_n "checking size of kernel_long_t... " >&6; } 14236if ${ac_cv_sizeof_kernel_long_t+:} false; then : 14237 $as_echo_n "(cached) " >&6 14238else 14239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (kernel_long_t))" "ac_cv_sizeof_kernel_long_t" "#include \"$srcdir/kernel_types.h\" 14240"; then : 14241 14242else 14243 if test "$ac_cv_type_kernel_long_t" = yes; then 14244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14246as_fn_error 77 "cannot compute sizeof (kernel_long_t) 14247See \`config.log' for more details" "$LINENO" 5; } 14248 else 14249 ac_cv_sizeof_kernel_long_t=0 14250 fi 14251fi 14252 14253fi 14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_kernel_long_t" >&5 14255$as_echo "$ac_cv_sizeof_kernel_long_t" >&6; } 14256 14257 14258 14259cat >>confdefs.h <<_ACEOF 14260#define SIZEOF_KERNEL_LONG_T $ac_cv_sizeof_kernel_long_t 14261_ACEOF 14262 14263 14264SIZEOF_KERNEL_LONG_T="$ac_cv_sizeof_kernel_long_t" 14265 14266# The cast to long int works around a bug in the HP C Compiler 14267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14269# This bug is HP SR number 8606223364. 14270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct i64_i32" >&5 14271$as_echo_n "checking size of struct i64_i32... " >&6; } 14272if ${ac_cv_sizeof_struct_i64_i32+:} false; then : 14273 $as_echo_n "(cached) " >&6 14274else 14275 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct i64_i32))" "ac_cv_sizeof_struct_i64_i32" "struct i64_i32 {long long i64; int i32;}; 14276"; then : 14277 14278else 14279 if test "$ac_cv_type_struct_i64_i32" = yes; then 14280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14282as_fn_error 77 "cannot compute sizeof (struct i64_i32) 14283See \`config.log' for more details" "$LINENO" 5; } 14284 else 14285 ac_cv_sizeof_struct_i64_i32=0 14286 fi 14287fi 14288 14289fi 14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_i64_i32" >&5 14291$as_echo "$ac_cv_sizeof_struct_i64_i32" >&6; } 14292 14293 14294 14295cat >>confdefs.h <<_ACEOF 14296#define SIZEOF_STRUCT_I64_I32 $ac_cv_sizeof_struct_i64_i32 14297_ACEOF 14298 14299 14300 14301 14302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGRTMIN" >&5 14303$as_echo_n "checking for SIGRTMIN... " >&6; } 14304if ${st_cv_SIGRTMIN+:} false; then : 14305 $as_echo_n "(cached) " >&6 14306else 14307 st_cv_SIGRTMIN="$(echo SIGRTMIN | 14308 $CPP $CPPFLAGS -P -imacros asm/signal.h - | 14309 grep '^[0-9]')" 14310 test -n "$st_cv_SIGRTMIN" || st_cv_SIGRTMIN=no 14311fi 14312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_SIGRTMIN" >&5 14313$as_echo "$st_cv_SIGRTMIN" >&6; } 14314if test "x$st_cv_SIGRTMIN" != xno; then 14315 14316cat >>confdefs.h <<_ACEOF 14317#define ASM_SIGRTMIN $st_cv_SIGRTMIN 14318_ACEOF 14319 14320fi 14321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTORER" >&5 14322$as_echo_n "checking for SA_RESTORER... " >&6; } 14323if ${st_cv_SA_RESTORER+:} false; then : 14324 $as_echo_n "(cached) " >&6 14325else 14326 st_cv_SA_RESTORER="$(echo SA_RESTORER | 14327 $CPP $CPPFLAGS -P -imacros asm/signal.h - | 14328 grep ^0x)" 14329 test -n "$st_cv_SA_RESTORER" || st_cv_SA_RESTORER=no 14330fi 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_SA_RESTORER" >&5 14332$as_echo "$st_cv_SA_RESTORER" >&6; } 14333if test "x$st_cv_SA_RESTORER" != xno; then 14334 14335cat >>confdefs.h <<_ACEOF 14336#define ASM_SA_RESTORER $st_cv_SA_RESTORER 14337_ACEOF 14338 14339fi 14340 14341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 14342$as_echo_n "checking for __builtin_popcount... " >&6; } 14343if ${st_cv_have___builtin_popcount+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348 14349int 14350main () 14351{ 14352__builtin_popcount(0) 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357if ac_fn_c_try_link "$LINENO"; then : 14358 st_cv_have___builtin_popcount=yes 14359else 14360 st_cv_have___builtin_popcount=no 14361fi 14362rm -f core conftest.err conftest.$ac_objext \ 14363 conftest$ac_exeext conftest.$ac_ext 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_have___builtin_popcount" >&5 14366$as_echo "$st_cv_have___builtin_popcount" >&6; } 14367if test "x$st_cv_have___builtin_popcount" = xyes; then 14368 14369$as_echo "#define HAVE___BUILTIN_POPCOUNT 1" >>confdefs.h 14370 14371fi 14372 14373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 14374$as_echo_n "checking for program_invocation_name... " >&6; } 14375if ${st_cv_have_program_invocation_name+:} false; then : 14376 $as_echo_n "(cached) " >&6 14377else 14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14379/* end confdefs.h. */ 14380#include <errno.h> 14381int 14382main () 14383{ 14384return !*program_invocation_name 14385 ; 14386 return 0; 14387} 14388_ACEOF 14389if ac_fn_c_try_link "$LINENO"; then : 14390 st_cv_have_program_invocation_name=yes 14391else 14392 st_cv_have_program_invocation_name=no 14393fi 14394rm -f core conftest.err conftest.$ac_objext \ 14395 conftest$ac_exeext conftest.$ac_ext 14396fi 14397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_have_program_invocation_name" >&5 14398$as_echo "$st_cv_have_program_invocation_name" >&6; } 14399if test "x$st_cv_have_program_invocation_name" = xyes; then 14400 14401$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h 14402 14403fi 14404 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5 14406$as_echo_n "checking for static_assert... " >&6; } 14407if ${st_cv_have_static_assert+:} false; then : 14408 $as_echo_n "(cached) " >&6 14409else 14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412#include <assert.h> 14413int 14414main () 14415{ 14416static_assert(1,"") 14417 14418 ; 14419 return 0; 14420} 14421 14422_ACEOF 14423if ac_fn_c_try_link "$LINENO"; then : 14424 st_cv_have_static_assert=yes 14425else 14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14427/* end confdefs.h. */ 14428 14429int 14430main () 14431{ 14432_Static_assert(1,"") 14433 14434 ; 14435 return 0; 14436} 14437 14438_ACEOF 14439if ac_fn_c_try_link "$LINENO"; then : 14440 st_cv_have_static_assert=_Static_assert 14441else 14442 st_cv_have_static_assert=no 14443 14444fi 14445rm -f core conftest.err conftest.$ac_objext \ 14446 conftest$ac_exeext conftest.$ac_ext 14447 14448 14449fi 14450rm -f core conftest.err conftest.$ac_objext \ 14451 conftest$ac_exeext conftest.$ac_ext 14452 14453 14454fi 14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_have_static_assert" >&5 14456$as_echo "$st_cv_have_static_assert" >&6; } 14457case "x$st_cv_have_static_assert" in 14458 xyes) 14459 14460$as_echo "#define HAVE_STATIC_ASSERT 1" >>confdefs.h 14461 14462 ;; 14463 x_Static_assert) 14464 14465$as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h 14466 14467 ;; 14468esac 14469 14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5 14471$as_echo_n "checking for dladdr in -ldl... " >&6; } 14472if ${ac_cv_lib_dl_dladdr+:} false; then : 14473 $as_echo_n "(cached) " >&6 14474else 14475 ac_check_lib_save_LIBS=$LIBS 14476LIBS="-ldl $LIBS" 14477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14478/* end confdefs.h. */ 14479 14480/* Override any GCC internal prototype to avoid an error. 14481 Use char because int might match the return type of a GCC 14482 builtin and then its argument prototype would still apply. */ 14483#ifdef __cplusplus 14484extern "C" 14485#endif 14486char dladdr (); 14487int 14488main () 14489{ 14490return dladdr (); 14491 ; 14492 return 0; 14493} 14494_ACEOF 14495if ac_fn_c_try_link "$LINENO"; then : 14496 ac_cv_lib_dl_dladdr=yes 14497else 14498 ac_cv_lib_dl_dladdr=no 14499fi 14500rm -f core conftest.err conftest.$ac_objext \ 14501 conftest$ac_exeext conftest.$ac_ext 14502LIBS=$ac_check_lib_save_LIBS 14503fi 14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5 14505$as_echo "$ac_cv_lib_dl_dladdr" >&6; } 14506if test "x$ac_cv_lib_dl_dladdr" = xyes; then : 14507 dl_LIBS='-ldl' 14508else 14509 dl_LIBS= 14510fi 14511 14512if test "x$ac_cv_lib_dl_dladdr" = xyes; then 14513 14514$as_echo "#define HAVE_DLADDR 1" >>confdefs.h 14515 14516fi 14517 14518 14519saved_LIBS="$LIBS" 14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 14521$as_echo_n "checking for library containing timer_create... " >&6; } 14522if ${ac_cv_search_timer_create+:} false; then : 14523 $as_echo_n "(cached) " >&6 14524else 14525 ac_func_search_save_LIBS=$LIBS 14526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14527/* end confdefs.h. */ 14528 14529/* Override any GCC internal prototype to avoid an error. 14530 Use char because int might match the return type of a GCC 14531 builtin and then its argument prototype would still apply. */ 14532#ifdef __cplusplus 14533extern "C" 14534#endif 14535char timer_create (); 14536int 14537main () 14538{ 14539return timer_create (); 14540 ; 14541 return 0; 14542} 14543_ACEOF 14544for ac_lib in '' rt; do 14545 if test -z "$ac_lib"; then 14546 ac_res="none required" 14547 else 14548 ac_res=-l$ac_lib 14549 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14550 fi 14551 if ac_fn_c_try_link "$LINENO"; then : 14552 ac_cv_search_timer_create=$ac_res 14553fi 14554rm -f core conftest.err conftest.$ac_objext \ 14555 conftest$ac_exeext 14556 if ${ac_cv_search_timer_create+:} false; then : 14557 break 14558fi 14559done 14560if ${ac_cv_search_timer_create+:} false; then : 14561 14562else 14563 ac_cv_search_timer_create=no 14564fi 14565rm conftest.$ac_ext 14566LIBS=$ac_func_search_save_LIBS 14567fi 14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 14569$as_echo "$ac_cv_search_timer_create" >&6; } 14570ac_res=$ac_cv_search_timer_create 14571if test "$ac_res" != no; then : 14572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14573 14574fi 14575 14576LIBS="$saved_LIBS" 14577case "$ac_cv_search_timer_create" in 14578 no) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14580as_fn_error $? "failed to find timer_create 14581See \`config.log' for more details" "$LINENO" 5; } ;; 14582 -l*) timer_LIBS="$ac_cv_search_timer_create" ;; 14583 *) timer_LIBS= ;; 14584esac 14585 14586 14587saved_LIBS="$LIBS" 14588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14589$as_echo_n "checking for library containing clock_gettime... " >&6; } 14590if ${ac_cv_search_clock_gettime+:} false; then : 14591 $as_echo_n "(cached) " >&6 14592else 14593 ac_func_search_save_LIBS=$LIBS 14594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595/* end confdefs.h. */ 14596 14597/* Override any GCC internal prototype to avoid an error. 14598 Use char because int might match the return type of a GCC 14599 builtin and then its argument prototype would still apply. */ 14600#ifdef __cplusplus 14601extern "C" 14602#endif 14603char clock_gettime (); 14604int 14605main () 14606{ 14607return clock_gettime (); 14608 ; 14609 return 0; 14610} 14611_ACEOF 14612for ac_lib in '' rt; do 14613 if test -z "$ac_lib"; then 14614 ac_res="none required" 14615 else 14616 ac_res=-l$ac_lib 14617 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14618 fi 14619 if ac_fn_c_try_link "$LINENO"; then : 14620 ac_cv_search_clock_gettime=$ac_res 14621fi 14622rm -f core conftest.err conftest.$ac_objext \ 14623 conftest$ac_exeext 14624 if ${ac_cv_search_clock_gettime+:} false; then : 14625 break 14626fi 14627done 14628if ${ac_cv_search_clock_gettime+:} false; then : 14629 14630else 14631 ac_cv_search_clock_gettime=no 14632fi 14633rm conftest.$ac_ext 14634LIBS=$ac_func_search_save_LIBS 14635fi 14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14637$as_echo "$ac_cv_search_clock_gettime" >&6; } 14638ac_res=$ac_cv_search_clock_gettime 14639if test "$ac_res" != no; then : 14640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14641 14642fi 14643 14644LIBS="$saved_LIBS" 14645case "$ac_cv_search_clock_gettime" in 14646 no) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14648as_fn_error $? "failed to find clock_gettime 14649See \`config.log' for more details" "$LINENO" 5; } ;; 14650 -l*) clock_LIBS="$ac_cv_search_clock_gettime" ;; 14651 *) clock_LIBS= ;; 14652esac 14653 14654 14655saved_LIBS="$LIBS" 14656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mq_open" >&5 14657$as_echo_n "checking for library containing mq_open... " >&6; } 14658if ${ac_cv_search_mq_open+:} false; then : 14659 $as_echo_n "(cached) " >&6 14660else 14661 ac_func_search_save_LIBS=$LIBS 14662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14663/* end confdefs.h. */ 14664 14665/* Override any GCC internal prototype to avoid an error. 14666 Use char because int might match the return type of a GCC 14667 builtin and then its argument prototype would still apply. */ 14668#ifdef __cplusplus 14669extern "C" 14670#endif 14671char mq_open (); 14672int 14673main () 14674{ 14675return mq_open (); 14676 ; 14677 return 0; 14678} 14679_ACEOF 14680for ac_lib in '' rt; do 14681 if test -z "$ac_lib"; then 14682 ac_res="none required" 14683 else 14684 ac_res=-l$ac_lib 14685 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14686 fi 14687 if ac_fn_c_try_link "$LINENO"; then : 14688 ac_cv_search_mq_open=$ac_res 14689fi 14690rm -f core conftest.err conftest.$ac_objext \ 14691 conftest$ac_exeext 14692 if ${ac_cv_search_mq_open+:} false; then : 14693 break 14694fi 14695done 14696if ${ac_cv_search_mq_open+:} false; then : 14697 14698else 14699 ac_cv_search_mq_open=no 14700fi 14701rm conftest.$ac_ext 14702LIBS=$ac_func_search_save_LIBS 14703fi 14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mq_open" >&5 14705$as_echo "$ac_cv_search_mq_open" >&6; } 14706ac_res=$ac_cv_search_mq_open 14707if test "$ac_res" != no; then : 14708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14709 14710fi 14711 14712LIBS="$saved_LIBS" 14713case "$ac_cv_search_mq_open" in 14714 -l*) mq_LIBS="$ac_cv_search_mq_open" ;; 14715 *) mq_LIBS= ;; 14716esac 14717 14718 14719# Extract the first word of "perl", so it can be a program name with args. 14720set dummy perl; ac_word=$2 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14722$as_echo_n "checking for $ac_word... " >&6; } 14723if ${ac_cv_path_PERL+:} false; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 case $PERL in 14727 [\\/]* | ?:[\\/]*) 14728 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 14729 ;; 14730 *) 14731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14732for as_dir in $PATH 14733do 14734 IFS=$as_save_IFS 14735 test -z "$as_dir" && as_dir=. 14736 for ac_exec_ext in '' $ac_executable_extensions; do 14737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14738 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 14739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14740 break 2 14741 fi 14742done 14743 done 14744IFS=$as_save_IFS 14745 14746 ;; 14747esac 14748fi 14749PERL=$ac_cv_path_PERL 14750if test -n "$PERL"; then 14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 14752$as_echo "$PERL" >&6; } 14753else 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14755$as_echo "no" >&6; } 14756fi 14757 14758 14759 14760if test -n "$ac_tool_prefix"; then 14761 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. 14762set dummy ${ac_tool_prefix}readelf; ac_word=$2 14763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14764$as_echo_n "checking for $ac_word... " >&6; } 14765if ${ac_cv_prog_READELF+:} false; then : 14766 $as_echo_n "(cached) " >&6 14767else 14768 if test -n "$READELF"; then 14769 ac_cv_prog_READELF="$READELF" # Let the user override the test. 14770else 14771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14772for as_dir in $PATH 14773do 14774 IFS=$as_save_IFS 14775 test -z "$as_dir" && as_dir=. 14776 for ac_exec_ext in '' $ac_executable_extensions; do 14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14778 ac_cv_prog_READELF="${ac_tool_prefix}readelf" 14779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14780 break 2 14781 fi 14782done 14783 done 14784IFS=$as_save_IFS 14785 14786fi 14787fi 14788READELF=$ac_cv_prog_READELF 14789if test -n "$READELF"; then 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 14791$as_echo "$READELF" >&6; } 14792else 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14794$as_echo "no" >&6; } 14795fi 14796 14797 14798fi 14799if test -z "$ac_cv_prog_READELF"; then 14800 ac_ct_READELF=$READELF 14801 # Extract the first word of "readelf", so it can be a program name with args. 14802set dummy readelf; ac_word=$2 14803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14804$as_echo_n "checking for $ac_word... " >&6; } 14805if ${ac_cv_prog_ac_ct_READELF+:} false; then : 14806 $as_echo_n "(cached) " >&6 14807else 14808 if test -n "$ac_ct_READELF"; then 14809 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 14810else 14811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14812for as_dir in $PATH 14813do 14814 IFS=$as_save_IFS 14815 test -z "$as_dir" && as_dir=. 14816 for ac_exec_ext in '' $ac_executable_extensions; do 14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14818 ac_cv_prog_ac_ct_READELF="readelf" 14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14820 break 2 14821 fi 14822done 14823 done 14824IFS=$as_save_IFS 14825 14826fi 14827fi 14828ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 14829if test -n "$ac_ct_READELF"; then 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 14831$as_echo "$ac_ct_READELF" >&6; } 14832else 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14834$as_echo "no" >&6; } 14835fi 14836 14837 if test "x$ac_ct_READELF" = x; then 14838 READELF="" 14839 else 14840 case $cross_compiling:$ac_tool_warned in 14841yes:) 14842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14844ac_tool_warned=yes ;; 14845esac 14846 READELF=$ac_ct_READELF 14847 fi 14848else 14849 READELF="$ac_cv_prog_READELF" 14850fi 14851 14852 14853 14854# Check whether --enable-stacktrace was given. 14855if test "${enable_stacktrace+set}" = set; then : 14856 enableval=$enable_stacktrace; case "$enableval" in 14857 yes|no|check) enable_stacktrace="$enableval" ;; 14858 *) as_fn_error $? "bad value $enableval for enable-stacktrace option. 14859 Valid options are: yes, no, check." "$LINENO" 5 14860 ;; 14861 esac 14862else 14863 enable_stacktrace=check 14864fi 14865 14866 14867use_unwinder= 14868 14869if test x"$enable_stacktrace" != xno; then : 14870 14871: ${libdw_CPPFLAGS=} 14872: ${libdw_CFLAGS=} 14873: ${libdw_LDFLAGS=} 14874: ${libdw_LIBS=} 14875 14876 14877# Check whether --with-libdw was given. 14878if test "${with_libdw+set}" = set; then : 14879 withval=$with_libdw; case "${withval}" in 14880 yes|no|check) ;; 14881 *) libdw_CPPFLAGS="-I${withval}/include" 14882 libdw_LDFLAGS="-L${withval}/lib" 14883 with_libdw=yes ;; 14884 esac 14885 14886else 14887 with_libdw=check 14888 14889fi 14890 14891 14892 14893 14894 14895# Check whether --with-libunwind was given. 14896if test "${with_libunwind+set}" = set; then : 14897 withval=$with_libunwind; case "${withval}" in 14898 yes|no|check) ;; 14899 *) with_libunwind=yes 14900 libunwind_CPPFLAGS="-I${withval}/include" 14901 libunwind_LDFLAGS="-L${withval}/lib" ;; 14902 esac 14903else 14904 with_libunwind=check 14905 14906fi 14907 14908 14909 14910 if test "x$with_libdw" = xyes && test "x$with_libunwind" = xyes; then : 14911 as_fn_error $? "--with-libdw=yes and --with-libunwind=yes are mutually exclusive" "$LINENO" 5 14912elif test "x$with_libdw" = xyes; then : 14913 with_libunwind=no 14914elif test "x$with_libunwind" = xyes; then : 14915 with_libdw=no 14916 14917fi 14918 if test "x$use_unwinder" = x; then : 14919 14920have_libdw= 14921 14922if test "x$with_libdw" != xno && test "x$use_unwinder" = x; then : 14923 saved_CPPFLAGS="$CPPFLAGS" 14924 saved_CFLAGS="$CFLAGS" 14925 CPPFLAGS="$CPPFLAGS $libdw_CPPFLAGS" 14926 CFLAGS="$CFLAGS $libdw_CFLAGS" 14927 14928 for ac_header in elfutils/libdwfl.h 14929do : 14930 ac_fn_c_check_header_mongrel "$LINENO" "elfutils/libdwfl.h" "ac_cv_header_elfutils_libdwfl_h" "$ac_includes_default" 14931if test "x$ac_cv_header_elfutils_libdwfl_h" = xyes; then : 14932 cat >>confdefs.h <<_ACEOF 14933#define HAVE_ELFUTILS_LIBDWFL_H 1 14934_ACEOF 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwfl_linux_proc_attach in -ldw" >&5 14936$as_echo_n "checking for dwfl_linux_proc_attach in -ldw... " >&6; } 14937if ${ac_cv_lib_dw_dwfl_linux_proc_attach+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 ac_check_lib_save_LIBS=$LIBS 14941LIBS="-ldw $libdw_LDFLAGS $libdw_LIBS 14942 $LIBS" 14943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945 14946/* Override any GCC internal prototype to avoid an error. 14947 Use char because int might match the return type of a GCC 14948 builtin and then its argument prototype would still apply. */ 14949#ifdef __cplusplus 14950extern "C" 14951#endif 14952char dwfl_linux_proc_attach (); 14953int 14954main () 14955{ 14956return dwfl_linux_proc_attach (); 14957 ; 14958 return 0; 14959} 14960_ACEOF 14961if ac_fn_c_try_link "$LINENO"; then : 14962 ac_cv_lib_dw_dwfl_linux_proc_attach=yes 14963else 14964 ac_cv_lib_dw_dwfl_linux_proc_attach=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext \ 14967 conftest$ac_exeext conftest.$ac_ext 14968LIBS=$ac_check_lib_save_LIBS 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwfl_linux_proc_attach" >&5 14971$as_echo "$ac_cv_lib_dw_dwfl_linux_proc_attach" >&6; } 14972if test "x$ac_cv_lib_dw_dwfl_linux_proc_attach" = xyes; then : 14973 libdw_LIBS="-ldw $libdw_LIBS" 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elfutils version" >&5 14975$as_echo_n "checking for elfutils version... " >&6; } 14976if ${st_cv_ELFUTILS_VERSION+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 st_cv_ELFUTILS_VERSION="$(echo _ELFUTILS_VERSION | 14980 $CPP $CPPFLAGS -P -imacros elfutils/version.h - | 14981 grep '^[0-9]')" 14982 test -n "$st_cv_ELFUTILS_VERSION" || 14983 st_cv_ELFUTILS_VERSION=0 14984 14985 14986fi 14987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_ELFUTILS_VERSION" >&5 14988$as_echo "$st_cv_ELFUTILS_VERSION" >&6; } 14989 if test "$st_cv_ELFUTILS_VERSION" -ge 164; then : 14990 have_libdw=yes 14991else 14992 if test "x$with_libdw" = xyes; then : 14993 as_fn_error $? "elfutils version >= 164 is required for stack tracing support" "$LINENO" 5 14994else 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: elfutils version >= 164 is required for stack tracing support" >&5 14996$as_echo "$as_me: WARNING: elfutils version >= 164 is required for stack tracing support" >&2;} 14997 14998fi 14999 15000 15001fi 15002 15003else 15004 if test "x$with_libdw" = xyes; then : 15005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15007as_fn_error $? "failed to find dwfl_linux_proc_attach in libdw 15008See \`config.log' for more details" "$LINENO" 5; } 15009fi 15010 15011fi 15012 15013 15014else 15015 if test "x$with_libdw" = xyes; then : 15016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15018as_fn_error $? "failed to find elfutils/libdwfl.h 15019See \`config.log' for more details" "$LINENO" 5; } 15020 15021fi 15022 15023 15024fi 15025 15026done 15027 15028 15029 CFLAGS="$saved_CFLAGS" 15030 CPPFLAGS="$saved_CPPFLAGS" 15031 15032 15033fi 15034 15035if test "x$have_libdw" = xyes; then : 15036 use_unwinder=libdw 15037 15038$as_echo "#define USE_LIBDW 1" >>confdefs.h 15039 15040 15041 15042 15043 15044 15045 15046fi 15047 15048 15049fi 15050 if test "x$use_unwinder" = x; then : 15051 15052libunwind_CPPFLAGS= 15053libunwind_LDFLAGS= 15054libunwind_LIBS= 15055 15056if test "x$with_libunwind" != xno && test "x$use_unwinder" = x; then : 15057 saved_CPPFLAGS="$CPPFLAGS" 15058 CPPFLAGS="$CPPFLAGS $libunwind_CPPFLAGS" 15059 15060 for ac_header in libunwind-ptrace.h 15061do : 15062 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ptrace.h" "ac_cv_header_libunwind_ptrace_h" "$ac_includes_default" 15063if test "x$ac_cv_header_libunwind_ptrace_h" = xyes; then : 15064 cat >>confdefs.h <<_ACEOF 15065#define HAVE_LIBUNWIND_PTRACE_H 1 15066_ACEOF 15067 saved_LDFLAGS="$LDFLAGS" 15068 LDFLAGS="$LDFLAGS $libunwind_LDFLAGS" 15069 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5 15071$as_echo_n "checking for backtrace in -lunwind... " >&6; } 15072if ${ac_cv_lib_unwind_backtrace+:} false; then : 15073 $as_echo_n "(cached) " >&6 15074else 15075 ac_check_lib_save_LIBS=$LIBS 15076LIBS="-lunwind $libunwind_LIBS 15077 $LIBS" 15078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15079/* end confdefs.h. */ 15080 15081/* Override any GCC internal prototype to avoid an error. 15082 Use char because int might match the return type of a GCC 15083 builtin and then its argument prototype would still apply. */ 15084#ifdef __cplusplus 15085extern "C" 15086#endif 15087char backtrace (); 15088int 15089main () 15090{ 15091return backtrace (); 15092 ; 15093 return 0; 15094} 15095_ACEOF 15096if ac_fn_c_try_link "$LINENO"; then : 15097 ac_cv_lib_unwind_backtrace=yes 15098else 15099 ac_cv_lib_unwind_backtrace=no 15100fi 15101rm -f core conftest.err conftest.$ac_objext \ 15102 conftest$ac_exeext conftest.$ac_ext 15103LIBS=$ac_check_lib_save_LIBS 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5 15106$as_echo "$ac_cv_lib_unwind_backtrace" >&6; } 15107if test "x$ac_cv_lib_unwind_backtrace" = xyes; then : 15108 libunwind_LIBS="-lunwind $libunwind_LIBS" 15109 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_create_addr_space in libunwind-generic" >&5 15111$as_echo_n "checking for unw_create_addr_space in libunwind-generic... " >&6; } 15112 saved_LIBS="$LIBS" 15113 LIBS="-lunwind-generic $libunwind_LIBS $LIBS" 15114 15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15116/* end confdefs.h. */ 15117#include <libunwind-ptrace.h> 15118int 15119main () 15120{ 15121return !unw_create_addr_space(0, 0) 15122 ; 15123 return 0; 15124} 15125 15126_ACEOF 15127if ac_fn_c_try_link "$LINENO"; then : 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15129$as_echo "yes" >&6; } 15130 libunwind_LIBS="-lunwind-generic $libunwind_LIBS" 15131 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _UPT_create in -lunwind-ptrace" >&5 15133$as_echo_n "checking for _UPT_create in -lunwind-ptrace... " >&6; } 15134if ${ac_cv_lib_unwind_ptrace__UPT_create+:} false; then : 15135 $as_echo_n "(cached) " >&6 15136else 15137 ac_check_lib_save_LIBS=$LIBS 15138LIBS="-lunwind-ptrace $libunwind_LIBS 15139 $LIBS" 15140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142 15143/* Override any GCC internal prototype to avoid an error. 15144 Use char because int might match the return type of a GCC 15145 builtin and then its argument prototype would still apply. */ 15146#ifdef __cplusplus 15147extern "C" 15148#endif 15149char _UPT_create (); 15150int 15151main () 15152{ 15153return _UPT_create (); 15154 ; 15155 return 0; 15156} 15157_ACEOF 15158if ac_fn_c_try_link "$LINENO"; then : 15159 ac_cv_lib_unwind_ptrace__UPT_create=yes 15160else 15161 ac_cv_lib_unwind_ptrace__UPT_create=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext \ 15164 conftest$ac_exeext conftest.$ac_ext 15165LIBS=$ac_check_lib_save_LIBS 15166fi 15167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_ptrace__UPT_create" >&5 15168$as_echo "$ac_cv_lib_unwind_ptrace__UPT_create" >&6; } 15169if test "x$ac_cv_lib_unwind_ptrace__UPT_create" = xyes; then : 15170 libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS" 15171 use_unwinder=libunwind 15172 15173else 15174 if test "x$with_libunwind" != xcheck; then 15175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15177as_fn_error $? "failed to find _UPT_create in libunwind-ptrace 15178See \`config.log' for more details" "$LINENO" 5; } 15179 fi 15180 15181fi 15182 15183 15184else 15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15186$as_echo "no" >&6; } 15187 if test "x$with_libunwind" != xcheck; then 15188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15190as_fn_error $? "failed to find unw_create_addr_space in libunwind-generic 15191See \`config.log' for more details" "$LINENO" 5; } 15192 fi 15193 15194 15195fi 15196rm -f core conftest.err conftest.$ac_objext \ 15197 conftest$ac_exeext conftest.$ac_ext 15198 15199 LIBS="$saved_LIBS" 15200 15201else 15202 if test "x$with_libunwind" != xcheck; then 15203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15205as_fn_error $? "failed to find libunwind 15206See \`config.log' for more details" "$LINENO" 5; } 15207 fi 15208 15209fi 15210 15211 15212 LDFLAGS="$saved_LDFLAGS" 15213 15214else 15215 if test "x$with_libunwind" != xcheck; then 15216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15218as_fn_error $? "failed to find libunwind-ptrace.h 15219See \`config.log' for more details" "$LINENO" 5; } 15220 fi 15221 15222 15223fi 15224 15225done 15226 15227 15228 CPPFLAGS="$saved_CPPFLAGS" 15229 15230 15231fi 15232 15233if test "x$use_unwinder" = xlibunwind; then 15234 15235$as_echo "#define USE_LIBUNWIND 1" >>confdefs.h 15236 15237 15238 15239 15240fi 15241 15242 15243fi 15244 if test x"$enable_stacktrace$use_unwinder" = xyes; then : 15245 as_fn_error $? "stack tracing support requires an unwinder" "$LINENO" 5 15246 15247fi 15248 15249 15250fi 15251 15252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable stack tracing support" >&5 15253$as_echo_n "checking whether to enable stack tracing support... " >&6; } 15254 if test "x$use_unwinder" != x; then 15255 ENABLE_STACKTRACE_TRUE= 15256 ENABLE_STACKTRACE_FALSE='#' 15257else 15258 ENABLE_STACKTRACE_TRUE='#' 15259 ENABLE_STACKTRACE_FALSE= 15260fi 15261 15262 if test "x$use_unwinder" = xlibdw; then 15263 USE_LIBDW_TRUE= 15264 USE_LIBDW_FALSE='#' 15265else 15266 USE_LIBDW_TRUE='#' 15267 USE_LIBDW_FALSE= 15268fi 15269 15270 if test "x$use_unwinder" = xlibunwind; then 15271 USE_LIBUNWIND_TRUE= 15272 USE_LIBUNWIND_FALSE='#' 15273else 15274 USE_LIBUNWIND_TRUE='#' 15275 USE_LIBUNWIND_FALSE= 15276fi 15277 15278 15279use_libiberty= 15280if test "x$use_unwinder" != x; then : 15281 15282$as_echo "#define ENABLE_STACKTRACE 1" >>confdefs.h 15283 15284 15285cat >>confdefs.h <<_ACEOF 15286#define USE_UNWINDER "$use_unwinder" 15287_ACEOF 15288 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using $use_unwinder" >&5 15290$as_echo "yes, using $use_unwinder" >&6; } 15291 15292 15293# Check whether --with-libiberty was given. 15294if test "${with_libiberty+set}" = set; then : 15295 withval=$with_libiberty; case "${withval}" in 15296 yes|no|check) ;; 15297 *) with_libiberty=yes 15298 libiberty_CPPFLAGS="-I${withval}/include" 15299 libiberty_LDFLAGS="-L${withval}/lib" ;; 15300 esac 15301else 15302 with_libiberty=check 15303 15304fi 15305 15306 15307libiberty_CPPFLAGS= 15308libiberty_LDFLAGS= 15309libiberty_LIBS= 15310use_libiberty=no 15311 15312if test "x$with_libiberty" != xno; then : 15313 saved_CPPFLAGS="$CPPFLAGS" 15314 CPPFLAGS="$CPPFLAGS $libiberty_CPPFLAGS" 15315 for ac_header in demangle.h libiberty/demangle.h 15316do : 15317 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15318ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15319if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15320 cat >>confdefs.h <<_ACEOF 15321#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15322_ACEOF 15323 saved_LDFLAGS="$LDFLAGS" 15324 LDFLAGS="$LDFLAGS $libiberty_LDFLAGS" 15325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cplus_demangle in -liberty" >&5 15326$as_echo_n "checking for cplus_demangle in -liberty... " >&6; } 15327if ${ac_cv_lib_iberty_cplus_demangle+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 ac_check_lib_save_LIBS=$LIBS 15331LIBS="-liberty $LIBS" 15332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333/* end confdefs.h. */ 15334 15335/* Override any GCC internal prototype to avoid an error. 15336 Use char because int might match the return type of a GCC 15337 builtin and then its argument prototype would still apply. */ 15338#ifdef __cplusplus 15339extern "C" 15340#endif 15341char cplus_demangle (); 15342int 15343main () 15344{ 15345return cplus_demangle (); 15346 ; 15347 return 0; 15348} 15349_ACEOF 15350if ac_fn_c_try_link "$LINENO"; then : 15351 ac_cv_lib_iberty_cplus_demangle=yes 15352else 15353 ac_cv_lib_iberty_cplus_demangle=no 15354fi 15355rm -f core conftest.err conftest.$ac_objext \ 15356 conftest$ac_exeext conftest.$ac_ext 15357LIBS=$ac_check_lib_save_LIBS 15358fi 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iberty_cplus_demangle" >&5 15360$as_echo "$ac_cv_lib_iberty_cplus_demangle" >&6; } 15361if test "x$ac_cv_lib_iberty_cplus_demangle" = xyes; then : 15362 libiberty_LIBS="-liberty" 15363 use_libiberty=yes 15364 15365else 15366 if test "x$with_libiberty" != xcheck; then 15367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15369as_fn_error $? "failed to find cplus_demangle in libiberty 15370See \`config.log' for more details" "$LINENO" 5; } 15371 fi 15372 15373 15374fi 15375 15376 LDFLAGS="$saved_LDFLAGS" 15377 15378else 15379 if test "x$with_libiberty" != xcheck; then 15380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15382as_fn_error $? "failed to find demangle.h 15383See \`config.log' for more details" "$LINENO" 5; } 15384 fi 15385 15386 15387fi 15388 15389done 15390 15391 CPPFLAGS="$saved_CPPFLAGS" 15392 15393 15394fi 15395 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable symbols demangling in stack trace" >&5 15397$as_echo_n "checking whether to enable symbols demangling in stack trace... " >&6; } 15398if test "x$use_libiberty" = xyes; then 15399 15400$as_echo "#define USE_DEMANGLE 1" >>confdefs.h 15401 15402 15403 15404 15405fi 15406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libiberty" >&5 15407$as_echo "$use_libiberty" >&6; } 15408 15409 15410else 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15412$as_echo "no" >&6; } 15413fi 15414 15415 if test "x$use_libiberty" = xyes; then 15416 USE_DEMANGLE_TRUE= 15417 USE_DEMANGLE_FALSE='#' 15418else 15419 USE_DEMANGLE_TRUE='#' 15420 USE_DEMANGLE_FALSE= 15421fi 15422 15423 15424 15425 15426if test "$arch" = mips && test "$no_create" != yes; then 15427 mkdir -p linux/mips 15428 if $srcdir/linux/mips/genstub.sh linux/mips; then 15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generated MIPS syscallent stubs" >&5 15430$as_echo "Generated MIPS syscallent stubs" >&6; } 15431 else 15432 as_fn_error $? "Failed to generate syscallent stubs" "$LINENO" 5 15433 fi 15434fi 15435 15436# Check whether --enable-mpers was given. 15437if test "${enable_mpers+set}" = set; then : 15438 enableval=$enable_mpers; case "$enableval" in 15439 yes|no|check|m32|mx32) enable_mpers="$enableval" ;; 15440 *) as_fn_error $? "bad value $enableval for enable-mpers option. 15441 Valid options are: yes, no, check, m32, mx32." "$LINENO" 5 15442 ;; 15443 esac 15444else 15445 enable_mpers=yes 15446fi 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460case "$arch" in 15461 aarch64|powerpc64|riscv|s390x|sparc64|tile|x32|x86_64) 15462 case "$enable_mpers" in 15463 yes|check|m32) 15464 15465 15466 15467 15468 for ac_header in gnu/stubs-32.h 15469do : 15470 ac_fn_c_check_header_mongrel "$LINENO" "gnu/stubs-32.h" "ac_cv_header_gnu_stubs_32_h" "$ac_includes_default" 15471if test "x$ac_cv_header_gnu_stubs_32_h" = xyes; then : 15472 cat >>confdefs.h <<_ACEOF 15473#define HAVE_GNU_STUBS_32_H 1 15474_ACEOF 15475 IFLAG= 15476else 15477 mkdir -p gnu 15478 : > gnu/stubs-32.h 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: Created empty gnu/stubs-32.h" >&5 15480$as_echo "$as_me: Created empty gnu/stubs-32.h" >&6;} 15481 IFLAG=-I. 15482fi 15483 15484done 15485 15486 15487 saved_CFLAGS="$CFLAGS" 15488 CFLAGS="$CFLAGS $cc_flags_m32 $IFLAG" 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m32 personality compile support" >&5 15490$as_echo_n "checking for m32 personality compile support... " >&6; } 15491if ${st_cv_m32_cc+:} false; then : 15492 $as_echo_n "(cached) " >&6 15493else 15494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15495/* end confdefs.h. */ 15496#include <stdint.h> 15497 int main(){return 0;} 15498_ACEOF 15499if ac_fn_c_try_compile "$LINENO"; then : 15500 st_cv_m32_cc=yes 15501else 15502 st_cv_m32_cc=no 15503fi 15504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15505fi 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_m32_cc" >&5 15507$as_echo "$st_cv_m32_cc" >&6; } 15508 if test $st_cv_m32_cc = yes; then 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m32 personality runtime support" >&5 15510$as_echo_n "checking for m32 personality runtime support... " >&6; } 15511if ${st_cv_m32_runtime+:} false; then : 15512 $as_echo_n "(cached) " >&6 15513else 15514 if test "$cross_compiling" = yes; then : 15515 st_cv_m32_runtime=no 15516else 15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15518/* end confdefs.h. */ 15519#include <stdint.h> 15520 int main(){return 0;} 15521_ACEOF 15522if ac_fn_c_try_run "$LINENO"; then : 15523 st_cv_m32_runtime=yes 15524else 15525 st_cv_m32_runtime=no 15526fi 15527rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15528 conftest.$ac_objext conftest.beam conftest.$ac_ext 15529fi 15530 15531fi 15532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_m32_runtime" >&5 15533$as_echo "$st_cv_m32_runtime" >&6; } 15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mpers.sh m32 $cc_flags_m32 works" >&5 15535$as_echo_n "checking whether mpers.sh m32 $cc_flags_m32 works... " >&6; } 15536if ${st_cv_m32_mpers+:} false; then : 15537 $as_echo_n "(cached) " >&6 15538else 15539 if READELF="$READELF" \ 15540 CC="$CC" CPP="$CPP" CPPFLAGS="$CPPFLAGS $IFLAG" \ 15541 $srcdir/mpers_test.sh m32 $cc_flags_m32; then 15542 st_cv_m32_mpers=yes 15543 else 15544 st_cv_m32_mpers=no 15545 fi 15546fi 15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_m32_mpers" >&5 15548$as_echo "$st_cv_m32_mpers" >&6; } 15549 if test $st_cv_m32_mpers = yes; then 15550 15551$as_echo "#define HAVE_M32_MPERS 1" >>confdefs.h 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561if test -n "${ac_cv_type_struct_stat+set}"; then : 15562 saved_ac_cv_type_struct_stat="${ac_cv_type_struct_stat}"; unset ac_cv_type_struct_stat 15563fi 15564if test -n "${ac_cv_m32_type_struct_stat+set}"; then : 15565 ac_cv_type_struct_stat="${ac_cv_m32_type_struct_stat}" 15566fi 15567 15568 15569 15570 15571 15572 15573ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "#include <sys/types.h> 15574#include <asm/stat.h> 15575" 15576if test "x$ac_cv_type_struct_stat" = xyes; then : 15577 15578$as_echo "#define HAVE_M32_STRUCT_STAT 1" >>confdefs.h 15579 15580fi 15581 15582 15583 15584 15585 15586 15587 15588if test -n "${ac_cv_type_struct_stat+set}"; then : 15589 ac_cv_m32_type_struct_stat="${ac_cv_type_struct_stat}" 15590fi 15591if test -n "${saved_ac_cv_type_struct_stat+set}"; then : 15592 ac_cv_type_struct_stat="${saved_ac_cv_type_struct_stat}"; unset saved_ac_cv_type_struct_stat 15593fi 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607if test -n "${ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 15608 saved_ac_cv_member_struct_stat_st_mtime_nsec="${ac_cv_member_struct_stat_st_mtime_nsec}"; unset ac_cv_member_struct_stat_st_mtime_nsec 15609fi 15610if test -n "${ac_cv_m32_member_struct_stat_st_mtime_nsec+set}"; then : 15611 ac_cv_member_struct_stat_st_mtime_nsec="${ac_cv_m32_member_struct_stat_st_mtime_nsec}" 15612fi 15613 15614 15615 15616 15617 15618 15619ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_nsec" "ac_cv_member_struct_stat_st_mtime_nsec" "#include <sys/types.h> 15620#include <asm/stat.h> 15621" 15622if test "x$ac_cv_member_struct_stat_st_mtime_nsec" = xyes; then : 15623 15624$as_echo "#define HAVE_M32_STRUCT_STAT_ST_MTIME_NSEC 1" >>confdefs.h 15625 15626fi 15627 15628 15629 15630 15631 15632 15633 15634if test -n "${ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 15635 ac_cv_m32_member_struct_stat_st_mtime_nsec="${ac_cv_member_struct_stat_st_mtime_nsec}" 15636fi 15637if test -n "${saved_ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 15638 ac_cv_member_struct_stat_st_mtime_nsec="${saved_ac_cv_member_struct_stat_st_mtime_nsec}"; unset saved_ac_cv_member_struct_stat_st_mtime_nsec 15639fi 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656if test -n "${ac_cv_type_struct_stat64+set}"; then : 15657 saved_ac_cv_type_struct_stat64="${ac_cv_type_struct_stat64}"; unset ac_cv_type_struct_stat64 15658fi 15659if test -n "${ac_cv_m32_type_struct_stat64+set}"; then : 15660 ac_cv_type_struct_stat64="${ac_cv_m32_type_struct_stat64}" 15661fi 15662 15663 15664 15665 15666 15667 15668ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "#include <sys/types.h> 15669#include <asm/stat.h> 15670" 15671if test "x$ac_cv_type_struct_stat64" = xyes; then : 15672 15673$as_echo "#define HAVE_M32_STRUCT_STAT64 1" >>confdefs.h 15674 15675fi 15676 15677 15678 15679 15680 15681 15682 15683if test -n "${ac_cv_type_struct_stat64+set}"; then : 15684 ac_cv_m32_type_struct_stat64="${ac_cv_type_struct_stat64}" 15685fi 15686if test -n "${saved_ac_cv_type_struct_stat64+set}"; then : 15687 ac_cv_type_struct_stat64="${saved_ac_cv_type_struct_stat64}"; unset saved_ac_cv_type_struct_stat64 15688fi 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702if test -n "${ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 15703 saved_ac_cv_member_struct_stat64_st_mtime_nsec="${ac_cv_member_struct_stat64_st_mtime_nsec}"; unset ac_cv_member_struct_stat64_st_mtime_nsec 15704fi 15705if test -n "${ac_cv_m32_member_struct_stat64_st_mtime_nsec+set}"; then : 15706 ac_cv_member_struct_stat64_st_mtime_nsec="${ac_cv_m32_member_struct_stat64_st_mtime_nsec}" 15707fi 15708 15709 15710 15711 15712 15713 15714ac_fn_c_check_member "$LINENO" "struct stat64" "st_mtime_nsec" "ac_cv_member_struct_stat64_st_mtime_nsec" "#include <sys/types.h> 15715#include <asm/stat.h> 15716" 15717if test "x$ac_cv_member_struct_stat64_st_mtime_nsec" = xyes; then : 15718 15719$as_echo "#define HAVE_M32_STRUCT_STAT64_ST_MTIME_NSEC 1" >>confdefs.h 15720 15721fi 15722 15723 15724 15725 15726 15727 15728 15729if test -n "${ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 15730 ac_cv_m32_member_struct_stat64_st_mtime_nsec="${ac_cv_member_struct_stat64_st_mtime_nsec}" 15731fi 15732if test -n "${saved_ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 15733 ac_cv_member_struct_stat64_st_mtime_nsec="${saved_ac_cv_member_struct_stat64_st_mtime_nsec}"; unset saved_ac_cv_member_struct_stat64_st_mtime_nsec 15734fi 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 if test $st_cv_m32_runtime = yes; then 15745 15746 15747 15748 15749 15750 15751 15752if test -n "${ac_cv_sizeof_long+set}"; then : 15753 saved_ac_cv_sizeof_long="${ac_cv_sizeof_long}"; unset ac_cv_sizeof_long 15754fi 15755if test -n "${ac_cv_m32_sizeof_long+set}"; then : 15756 ac_cv_sizeof_long="${ac_cv_m32_sizeof_long}" 15757fi 15758 15759 15760 15761 15762 15763 15764 # The cast to long int works around a bug in the HP C Compiler 15765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15767# This bug is HP SR number 8606223364. 15768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 15769$as_echo_n "checking size of long... " >&6; } 15770if ${ac_cv_sizeof_long+:} false; then : 15771 $as_echo_n "(cached) " >&6 15772else 15773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 15774 15775else 15776 if test "$ac_cv_type_long" = yes; then 15777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15779as_fn_error 77 "cannot compute sizeof (long) 15780See \`config.log' for more details" "$LINENO" 5; } 15781 else 15782 ac_cv_sizeof_long=0 15783 fi 15784fi 15785 15786fi 15787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 15788$as_echo "$ac_cv_sizeof_long" >&6; } 15789 15790 15791 15792cat >>confdefs.h <<_ACEOF 15793#define M32_SIZEOF_LONG $ac_cv_sizeof_long 15794_ACEOF 15795 15796 15797 15798 15799 15800 15801 15802 15803if test -n "${ac_cv_sizeof_long+set}"; then : 15804 ac_cv_m32_sizeof_long="${ac_cv_sizeof_long}" 15805fi 15806if test -n "${saved_ac_cv_sizeof_long+set}"; then : 15807 ac_cv_sizeof_long="${saved_ac_cv_sizeof_long}"; unset saved_ac_cv_sizeof_long 15808fi 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824if test -n "${ac_cv_sizeof_kernel_long_t+set}"; then : 15825 saved_ac_cv_sizeof_kernel_long_t="${ac_cv_sizeof_kernel_long_t}"; unset ac_cv_sizeof_kernel_long_t 15826fi 15827if test -n "${ac_cv_m32_sizeof_kernel_long_t+set}"; then : 15828 ac_cv_sizeof_kernel_long_t="${ac_cv_m32_sizeof_kernel_long_t}" 15829fi 15830 15831 15832 15833 15834 15835 15836 # The cast to long int works around a bug in the HP C Compiler 15837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15839# This bug is HP SR number 8606223364. 15840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of kernel_long_t" >&5 15841$as_echo_n "checking size of kernel_long_t... " >&6; } 15842if ${ac_cv_sizeof_kernel_long_t+:} false; then : 15843 $as_echo_n "(cached) " >&6 15844else 15845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (kernel_long_t))" "ac_cv_sizeof_kernel_long_t" "#include \"$srcdir/kernel_types.h\" 15846"; then : 15847 15848else 15849 if test "$ac_cv_type_kernel_long_t" = yes; then 15850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15852as_fn_error 77 "cannot compute sizeof (kernel_long_t) 15853See \`config.log' for more details" "$LINENO" 5; } 15854 else 15855 ac_cv_sizeof_kernel_long_t=0 15856 fi 15857fi 15858 15859fi 15860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_kernel_long_t" >&5 15861$as_echo "$ac_cv_sizeof_kernel_long_t" >&6; } 15862 15863 15864 15865cat >>confdefs.h <<_ACEOF 15866#define M32_SIZEOF_KERNEL_LONG_T $ac_cv_sizeof_kernel_long_t 15867_ACEOF 15868 15869 15870 15871 15872 15873 15874 15875 15876if test -n "${ac_cv_sizeof_kernel_long_t+set}"; then : 15877 ac_cv_m32_sizeof_kernel_long_t="${ac_cv_sizeof_kernel_long_t}" 15878fi 15879if test -n "${saved_ac_cv_sizeof_kernel_long_t+set}"; then : 15880 ac_cv_sizeof_kernel_long_t="${saved_ac_cv_sizeof_kernel_long_t}"; unset saved_ac_cv_sizeof_kernel_long_t 15881fi 15882 15883 15884 15885 15886 15887 15888 15889 fi 15890 fi 15891 fi 15892 CFLAGS="$saved_CFLAGS" 15893 ;; 15894 15895 *) # case "$enable_mpers" 15896 st_cv_m32_runtime=no 15897 st_cv_m32_mpers=no 15898 ;; 15899 esac 15900 15901 test "$st_cv_m32_mpers" = yes || 15902 st_cv_m32_mpers=no 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable m32 personality support" >&5 15904$as_echo_n "checking whether to enable m32 personality support... " >&6; } 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_m32_mpers" >&5 15906$as_echo "$st_cv_m32_mpers" >&6; } 15907 15908 case "$enable_mpers,$st_cv_m32_mpers" in 15909 yes,no|m32,no) 15910 as_fn_error $? "Cannot enable m32 personality support" "$LINENO" 5 15911 ;; 15912 esac 15913 ;; 15914 15915 *) # case "$arch" 15916 st_cv_m32_runtime=no 15917 st_cv_m32_mpers=no 15918 ;; 15919esac 15920 15921 if test "$st_cv_m32_mpers$st_cv_m32_runtime" = yesyes; then 15922 HAVE_M32_RUNTIME_TRUE= 15923 HAVE_M32_RUNTIME_FALSE='#' 15924else 15925 HAVE_M32_RUNTIME_TRUE='#' 15926 HAVE_M32_RUNTIME_FALSE= 15927fi 15928 15929 if test "$st_cv_m32_mpers" = yes; then 15930 HAVE_M32_MPERS_TRUE= 15931 HAVE_M32_MPERS_FALSE='#' 15932else 15933 HAVE_M32_MPERS_TRUE='#' 15934 HAVE_M32_MPERS_FALSE= 15935fi 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959case "$arch" in 15960 x86_64) 15961 case "$enable_mpers" in 15962 yes|check|mx32) 15963 15964 15965 15966 15967 for ac_header in gnu/stubs-x32.h 15968do : 15969 ac_fn_c_check_header_mongrel "$LINENO" "gnu/stubs-x32.h" "ac_cv_header_gnu_stubs_x32_h" "$ac_includes_default" 15970if test "x$ac_cv_header_gnu_stubs_x32_h" = xyes; then : 15971 cat >>confdefs.h <<_ACEOF 15972#define HAVE_GNU_STUBS_X32_H 1 15973_ACEOF 15974 IFLAG= 15975else 15976 mkdir -p gnu 15977 : > gnu/stubs-x32.h 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: Created empty gnu/stubs-x32.h" >&5 15979$as_echo "$as_me: Created empty gnu/stubs-x32.h" >&6;} 15980 IFLAG=-I. 15981fi 15982 15983done 15984 15985 15986 saved_CFLAGS="$CFLAGS" 15987 CFLAGS="$CFLAGS $cc_flags_mx32 $IFLAG" 15988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx32 personality compile support" >&5 15989$as_echo_n "checking for mx32 personality compile support... " >&6; } 15990if ${st_cv_mx32_cc+:} false; then : 15991 $as_echo_n "(cached) " >&6 15992else 15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15994/* end confdefs.h. */ 15995#include <stdint.h> 15996 int main(){return 0;} 15997_ACEOF 15998if ac_fn_c_try_compile "$LINENO"; then : 15999 st_cv_mx32_cc=yes 16000else 16001 st_cv_mx32_cc=no 16002fi 16003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16004fi 16005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_mx32_cc" >&5 16006$as_echo "$st_cv_mx32_cc" >&6; } 16007 if test $st_cv_mx32_cc = yes; then 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mx32 personality runtime support" >&5 16009$as_echo_n "checking for mx32 personality runtime support... " >&6; } 16010if ${st_cv_mx32_runtime+:} false; then : 16011 $as_echo_n "(cached) " >&6 16012else 16013 if test "$cross_compiling" = yes; then : 16014 st_cv_mx32_runtime=no 16015else 16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018#include <stdint.h> 16019 int main(){return 0;} 16020_ACEOF 16021if ac_fn_c_try_run "$LINENO"; then : 16022 st_cv_mx32_runtime=yes 16023else 16024 st_cv_mx32_runtime=no 16025fi 16026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16027 conftest.$ac_objext conftest.beam conftest.$ac_ext 16028fi 16029 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_mx32_runtime" >&5 16032$as_echo "$st_cv_mx32_runtime" >&6; } 16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mpers.sh mx32 $cc_flags_mx32 works" >&5 16034$as_echo_n "checking whether mpers.sh mx32 $cc_flags_mx32 works... " >&6; } 16035if ${st_cv_mx32_mpers+:} false; then : 16036 $as_echo_n "(cached) " >&6 16037else 16038 if READELF="$READELF" \ 16039 CC="$CC" CPP="$CPP" CPPFLAGS="$CPPFLAGS $IFLAG" \ 16040 $srcdir/mpers_test.sh mx32 $cc_flags_mx32; then 16041 st_cv_mx32_mpers=yes 16042 else 16043 st_cv_mx32_mpers=no 16044 fi 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_mx32_mpers" >&5 16047$as_echo "$st_cv_mx32_mpers" >&6; } 16048 if test $st_cv_mx32_mpers = yes; then 16049 16050$as_echo "#define HAVE_MX32_MPERS 1" >>confdefs.h 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060if test -n "${ac_cv_type_struct_stat+set}"; then : 16061 saved_ac_cv_type_struct_stat="${ac_cv_type_struct_stat}"; unset ac_cv_type_struct_stat 16062fi 16063if test -n "${ac_cv_mx32_type_struct_stat+set}"; then : 16064 ac_cv_type_struct_stat="${ac_cv_mx32_type_struct_stat}" 16065fi 16066 16067 16068 16069 16070 16071 16072ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "#include <sys/types.h> 16073#include <asm/stat.h> 16074" 16075if test "x$ac_cv_type_struct_stat" = xyes; then : 16076 16077$as_echo "#define HAVE_MX32_STRUCT_STAT 1" >>confdefs.h 16078 16079fi 16080 16081 16082 16083 16084 16085 16086 16087if test -n "${ac_cv_type_struct_stat+set}"; then : 16088 ac_cv_mx32_type_struct_stat="${ac_cv_type_struct_stat}" 16089fi 16090if test -n "${saved_ac_cv_type_struct_stat+set}"; then : 16091 ac_cv_type_struct_stat="${saved_ac_cv_type_struct_stat}"; unset saved_ac_cv_type_struct_stat 16092fi 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106if test -n "${ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 16107 saved_ac_cv_member_struct_stat_st_mtime_nsec="${ac_cv_member_struct_stat_st_mtime_nsec}"; unset ac_cv_member_struct_stat_st_mtime_nsec 16108fi 16109if test -n "${ac_cv_mx32_member_struct_stat_st_mtime_nsec+set}"; then : 16110 ac_cv_member_struct_stat_st_mtime_nsec="${ac_cv_mx32_member_struct_stat_st_mtime_nsec}" 16111fi 16112 16113 16114 16115 16116 16117 16118ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_nsec" "ac_cv_member_struct_stat_st_mtime_nsec" "#include <sys/types.h> 16119#include <asm/stat.h> 16120" 16121if test "x$ac_cv_member_struct_stat_st_mtime_nsec" = xyes; then : 16122 16123$as_echo "#define HAVE_MX32_STRUCT_STAT_ST_MTIME_NSEC 1" >>confdefs.h 16124 16125fi 16126 16127 16128 16129 16130 16131 16132 16133if test -n "${ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 16134 ac_cv_mx32_member_struct_stat_st_mtime_nsec="${ac_cv_member_struct_stat_st_mtime_nsec}" 16135fi 16136if test -n "${saved_ac_cv_member_struct_stat_st_mtime_nsec+set}"; then : 16137 ac_cv_member_struct_stat_st_mtime_nsec="${saved_ac_cv_member_struct_stat_st_mtime_nsec}"; unset saved_ac_cv_member_struct_stat_st_mtime_nsec 16138fi 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155if test -n "${ac_cv_type_struct_stat64+set}"; then : 16156 saved_ac_cv_type_struct_stat64="${ac_cv_type_struct_stat64}"; unset ac_cv_type_struct_stat64 16157fi 16158if test -n "${ac_cv_mx32_type_struct_stat64+set}"; then : 16159 ac_cv_type_struct_stat64="${ac_cv_mx32_type_struct_stat64}" 16160fi 16161 16162 16163 16164 16165 16166 16167ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "#include <sys/types.h> 16168#include <asm/stat.h> 16169" 16170if test "x$ac_cv_type_struct_stat64" = xyes; then : 16171 16172$as_echo "#define HAVE_MX32_STRUCT_STAT64 1" >>confdefs.h 16173 16174fi 16175 16176 16177 16178 16179 16180 16181 16182if test -n "${ac_cv_type_struct_stat64+set}"; then : 16183 ac_cv_mx32_type_struct_stat64="${ac_cv_type_struct_stat64}" 16184fi 16185if test -n "${saved_ac_cv_type_struct_stat64+set}"; then : 16186 ac_cv_type_struct_stat64="${saved_ac_cv_type_struct_stat64}"; unset saved_ac_cv_type_struct_stat64 16187fi 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201if test -n "${ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 16202 saved_ac_cv_member_struct_stat64_st_mtime_nsec="${ac_cv_member_struct_stat64_st_mtime_nsec}"; unset ac_cv_member_struct_stat64_st_mtime_nsec 16203fi 16204if test -n "${ac_cv_mx32_member_struct_stat64_st_mtime_nsec+set}"; then : 16205 ac_cv_member_struct_stat64_st_mtime_nsec="${ac_cv_mx32_member_struct_stat64_st_mtime_nsec}" 16206fi 16207 16208 16209 16210 16211 16212 16213ac_fn_c_check_member "$LINENO" "struct stat64" "st_mtime_nsec" "ac_cv_member_struct_stat64_st_mtime_nsec" "#include <sys/types.h> 16214#include <asm/stat.h> 16215" 16216if test "x$ac_cv_member_struct_stat64_st_mtime_nsec" = xyes; then : 16217 16218$as_echo "#define HAVE_MX32_STRUCT_STAT64_ST_MTIME_NSEC 1" >>confdefs.h 16219 16220fi 16221 16222 16223 16224 16225 16226 16227 16228if test -n "${ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 16229 ac_cv_mx32_member_struct_stat64_st_mtime_nsec="${ac_cv_member_struct_stat64_st_mtime_nsec}" 16230fi 16231if test -n "${saved_ac_cv_member_struct_stat64_st_mtime_nsec+set}"; then : 16232 ac_cv_member_struct_stat64_st_mtime_nsec="${saved_ac_cv_member_struct_stat64_st_mtime_nsec}"; unset saved_ac_cv_member_struct_stat64_st_mtime_nsec 16233fi 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 if test $st_cv_mx32_runtime = yes; then 16244 16245 16246 16247 16248 16249 16250 16251if test -n "${ac_cv_sizeof_long+set}"; then : 16252 saved_ac_cv_sizeof_long="${ac_cv_sizeof_long}"; unset ac_cv_sizeof_long 16253fi 16254if test -n "${ac_cv_mx32_sizeof_long+set}"; then : 16255 ac_cv_sizeof_long="${ac_cv_mx32_sizeof_long}" 16256fi 16257 16258 16259 16260 16261 16262 16263 # The cast to long int works around a bug in the HP C Compiler 16264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16266# This bug is HP SR number 8606223364. 16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16268$as_echo_n "checking size of long... " >&6; } 16269if ${ac_cv_sizeof_long+:} false; then : 16270 $as_echo_n "(cached) " >&6 16271else 16272 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16273 16274else 16275 if test "$ac_cv_type_long" = yes; then 16276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16278as_fn_error 77 "cannot compute sizeof (long) 16279See \`config.log' for more details" "$LINENO" 5; } 16280 else 16281 ac_cv_sizeof_long=0 16282 fi 16283fi 16284 16285fi 16286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16287$as_echo "$ac_cv_sizeof_long" >&6; } 16288 16289 16290 16291cat >>confdefs.h <<_ACEOF 16292#define MX32_SIZEOF_LONG $ac_cv_sizeof_long 16293_ACEOF 16294 16295 16296 16297 16298 16299 16300 16301 16302if test -n "${ac_cv_sizeof_long+set}"; then : 16303 ac_cv_mx32_sizeof_long="${ac_cv_sizeof_long}" 16304fi 16305if test -n "${saved_ac_cv_sizeof_long+set}"; then : 16306 ac_cv_sizeof_long="${saved_ac_cv_sizeof_long}"; unset saved_ac_cv_sizeof_long 16307fi 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323if test -n "${ac_cv_sizeof_kernel_long_t+set}"; then : 16324 saved_ac_cv_sizeof_kernel_long_t="${ac_cv_sizeof_kernel_long_t}"; unset ac_cv_sizeof_kernel_long_t 16325fi 16326if test -n "${ac_cv_mx32_sizeof_kernel_long_t+set}"; then : 16327 ac_cv_sizeof_kernel_long_t="${ac_cv_mx32_sizeof_kernel_long_t}" 16328fi 16329 16330 16331 16332 16333 16334 16335 # The cast to long int works around a bug in the HP C Compiler 16336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16338# This bug is HP SR number 8606223364. 16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of kernel_long_t" >&5 16340$as_echo_n "checking size of kernel_long_t... " >&6; } 16341if ${ac_cv_sizeof_kernel_long_t+:} false; then : 16342 $as_echo_n "(cached) " >&6 16343else 16344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (kernel_long_t))" "ac_cv_sizeof_kernel_long_t" "#include \"$srcdir/kernel_types.h\" 16345"; then : 16346 16347else 16348 if test "$ac_cv_type_kernel_long_t" = yes; then 16349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16351as_fn_error 77 "cannot compute sizeof (kernel_long_t) 16352See \`config.log' for more details" "$LINENO" 5; } 16353 else 16354 ac_cv_sizeof_kernel_long_t=0 16355 fi 16356fi 16357 16358fi 16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_kernel_long_t" >&5 16360$as_echo "$ac_cv_sizeof_kernel_long_t" >&6; } 16361 16362 16363 16364cat >>confdefs.h <<_ACEOF 16365#define MX32_SIZEOF_KERNEL_LONG_T $ac_cv_sizeof_kernel_long_t 16366_ACEOF 16367 16368 16369 16370 16371 16372 16373 16374 16375if test -n "${ac_cv_sizeof_kernel_long_t+set}"; then : 16376 ac_cv_mx32_sizeof_kernel_long_t="${ac_cv_sizeof_kernel_long_t}" 16377fi 16378if test -n "${saved_ac_cv_sizeof_kernel_long_t+set}"; then : 16379 ac_cv_sizeof_kernel_long_t="${saved_ac_cv_sizeof_kernel_long_t}"; unset saved_ac_cv_sizeof_kernel_long_t 16380fi 16381 16382 16383 16384 16385 16386 16387 16388 fi 16389 fi 16390 fi 16391 CFLAGS="$saved_CFLAGS" 16392 ;; 16393 16394 *) # case "$enable_mpers" 16395 st_cv_mx32_runtime=no 16396 st_cv_mx32_mpers=no 16397 ;; 16398 esac 16399 16400 test "$st_cv_mx32_mpers" = yes || 16401 st_cv_mx32_mpers=no 16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mx32 personality support" >&5 16403$as_echo_n "checking whether to enable mx32 personality support... " >&6; } 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $st_cv_mx32_mpers" >&5 16405$as_echo "$st_cv_mx32_mpers" >&6; } 16406 16407 case "$enable_mpers,$st_cv_mx32_mpers" in 16408 yes,no|mx32,no) 16409 as_fn_error $? "Cannot enable mx32 personality support" "$LINENO" 5 16410 ;; 16411 esac 16412 ;; 16413 16414 *) # case "$arch" 16415 st_cv_mx32_runtime=no 16416 st_cv_mx32_mpers=no 16417 ;; 16418esac 16419 16420 if test "$st_cv_mx32_mpers$st_cv_mx32_runtime" = yesyes; then 16421 HAVE_MX32_RUNTIME_TRUE= 16422 HAVE_MX32_RUNTIME_FALSE='#' 16423else 16424 HAVE_MX32_RUNTIME_TRUE='#' 16425 HAVE_MX32_RUNTIME_FALSE= 16426fi 16427 16428 if test "$st_cv_mx32_mpers" = yes; then 16429 HAVE_MX32_MPERS_TRUE= 16430 HAVE_MX32_MPERS_FALSE='#' 16431else 16432 HAVE_MX32_MPERS_TRUE='#' 16433 HAVE_MX32_MPERS_FALSE= 16434fi 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 # Check whether --enable-valgrind was given. 16453if test "${enable_valgrind+set}" = set; then : 16454 enableval=$enable_valgrind; enable_valgrind=$enableval 16455else 16456 enable_valgrind= 16457fi 16458 16459 16460 if test "$enable_valgrind" != "no"; then : 16461 16462 # Check for Valgrind. 16463 # Extract the first word of "valgrind", so it can be a program name with args. 16464set dummy valgrind; ac_word=$2 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16466$as_echo_n "checking for $ac_word... " >&6; } 16467if ${ac_cv_prog_VALGRIND+:} false; then : 16468 $as_echo_n "(cached) " >&6 16469else 16470 if test -n "$VALGRIND"; then 16471 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 16472else 16473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16474for as_dir in $PATH 16475do 16476 IFS=$as_save_IFS 16477 test -z "$as_dir" && as_dir=. 16478 for ac_exec_ext in '' $ac_executable_extensions; do 16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16480 ac_cv_prog_VALGRIND="valgrind" 16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16482 break 2 16483 fi 16484done 16485 done 16486IFS=$as_save_IFS 16487 16488fi 16489fi 16490VALGRIND=$ac_cv_prog_VALGRIND 16491if test -n "$VALGRIND"; then 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 16493$as_echo "$VALGRIND" >&6; } 16494else 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16496$as_echo "no" >&6; } 16497fi 16498 16499 16500 if test "$VALGRIND" = ""; then : 16501 16502 if test "$enable_valgrind" = "yes"; then : 16503 16504 as_fn_error $? "Could not find valgrind; either install it or reconfigure with --disable-valgrind" "$LINENO" 5 16505 16506else 16507 16508 enable_valgrind=no 16509 16510fi 16511 16512else 16513 16514 enable_valgrind=yes 16515 16516fi 16517 16518fi 16519 16520 if test "$enable_valgrind" = "yes"; then 16521 VALGRIND_ENABLED_TRUE= 16522 VALGRIND_ENABLED_FALSE='#' 16523else 16524 VALGRIND_ENABLED_TRUE='#' 16525 VALGRIND_ENABLED_FALSE= 16526fi 16527 16528 VALGRIND_ENABLED=$enable_valgrind 16529 16530 16531 16532 # Check for Valgrind tools we care about. 16533 valgrind_enabled_tools= 16534 16535 # Check whether --enable-valgrind-memcheck was given. 16536if test "${enable_valgrind_memcheck+set}" = set; then : 16537 enableval=$enable_valgrind_memcheck; enable_valgrind_memcheck=$enableval 16538else 16539 enable_valgrind_memcheck= 16540fi 16541 16542 if test "$enable_valgrind" = "no"; then : 16543 16544 enable_valgrind_memcheck=no 16545elif test "$enable_valgrind_memcheck" != "no"; then : 16546 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool memcheck" >&5 16548$as_echo_n "checking for Valgrind tool memcheck... " >&6; } 16549if ${ax_cv_valgrind_tool_memcheck+:} false; then : 16550 $as_echo_n "(cached) " >&6 16551else 16552 16553 ax_cv_valgrind_tool_memcheck=no 16554 16555 if `$VALGRIND --tool=memcheck --help >/dev/null 2>&1`; then : 16556 16557 ax_cv_valgrind_tool_memcheck=yes 16558 16559fi 16560 16561fi 16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_memcheck" >&5 16563$as_echo "$ax_cv_valgrind_tool_memcheck" >&6; } 16564 if test "$ax_cv_valgrind_tool_memcheck" = "no"; then : 16565 16566 if test "$enable_valgrind_memcheck" = "yes"; then : 16567 16568 as_fn_error $? "Valgrind does not support memcheck; reconfigure with --disable-valgrind-memcheck" "$LINENO" 5 16569 16570else 16571 16572 enable_valgrind_memcheck=no 16573 16574fi 16575 16576else 16577 16578 enable_valgrind_memcheck=yes 16579 16580fi 16581 16582fi 16583 if test "$enable_valgrind_memcheck" = "yes"; then : 16584 16585 valgrind_enabled_tools="$valgrind_enabled_tools memcheck" 16586 16587fi 16588 ENABLE_VALGRIND_memcheck=$enable_valgrind_memcheck 16589 16590 16591 16592 # Check whether --enable-valgrind-helgrind was given. 16593if test "${enable_valgrind_helgrind+set}" = set; then : 16594 enableval=$enable_valgrind_helgrind; enable_valgrind_helgrind=$enableval 16595else 16596 enable_valgrind_helgrind= 16597fi 16598 16599 if test "$enable_valgrind" = "no"; then : 16600 16601 enable_valgrind_helgrind=no 16602elif test "$enable_valgrind_helgrind" != "no"; then : 16603 16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool helgrind" >&5 16605$as_echo_n "checking for Valgrind tool helgrind... " >&6; } 16606if ${ax_cv_valgrind_tool_helgrind+:} false; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 16610 ax_cv_valgrind_tool_helgrind=no 16611 16612 if `$VALGRIND --tool=helgrind --help >/dev/null 2>&1`; then : 16613 16614 ax_cv_valgrind_tool_helgrind=yes 16615 16616fi 16617 16618fi 16619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_helgrind" >&5 16620$as_echo "$ax_cv_valgrind_tool_helgrind" >&6; } 16621 if test "$ax_cv_valgrind_tool_helgrind" = "no"; then : 16622 16623 if test "$enable_valgrind_helgrind" = "yes"; then : 16624 16625 as_fn_error $? "Valgrind does not support helgrind; reconfigure with --disable-valgrind-helgrind" "$LINENO" 5 16626 16627else 16628 16629 enable_valgrind_helgrind=no 16630 16631fi 16632 16633else 16634 16635 enable_valgrind_helgrind=yes 16636 16637fi 16638 16639fi 16640 if test "$enable_valgrind_helgrind" = "yes"; then : 16641 16642 valgrind_enabled_tools="$valgrind_enabled_tools helgrind" 16643 16644fi 16645 ENABLE_VALGRIND_helgrind=$enable_valgrind_helgrind 16646 16647 16648 16649 # Check whether --enable-valgrind-drd was given. 16650if test "${enable_valgrind_drd+set}" = set; then : 16651 enableval=$enable_valgrind_drd; enable_valgrind_drd=$enableval 16652else 16653 enable_valgrind_drd= 16654fi 16655 16656 if test "$enable_valgrind" = "no"; then : 16657 16658 enable_valgrind_drd=no 16659elif test "$enable_valgrind_drd" != "no"; then : 16660 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool drd" >&5 16662$as_echo_n "checking for Valgrind tool drd... " >&6; } 16663if ${ax_cv_valgrind_tool_drd+:} false; then : 16664 $as_echo_n "(cached) " >&6 16665else 16666 16667 ax_cv_valgrind_tool_drd=no 16668 16669 if `$VALGRIND --tool=drd --help >/dev/null 2>&1`; then : 16670 16671 ax_cv_valgrind_tool_drd=yes 16672 16673fi 16674 16675fi 16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_drd" >&5 16677$as_echo "$ax_cv_valgrind_tool_drd" >&6; } 16678 if test "$ax_cv_valgrind_tool_drd" = "no"; then : 16679 16680 if test "$enable_valgrind_drd" = "yes"; then : 16681 16682 as_fn_error $? "Valgrind does not support drd; reconfigure with --disable-valgrind-drd" "$LINENO" 5 16683 16684else 16685 16686 enable_valgrind_drd=no 16687 16688fi 16689 16690else 16691 16692 enable_valgrind_drd=yes 16693 16694fi 16695 16696fi 16697 if test "$enable_valgrind_drd" = "yes"; then : 16698 16699 valgrind_enabled_tools="$valgrind_enabled_tools drd" 16700 16701fi 16702 ENABLE_VALGRIND_drd=$enable_valgrind_drd 16703 16704 16705 16706 # Check whether --enable-valgrind-sgcheck was given. 16707if test "${enable_valgrind_sgcheck+set}" = set; then : 16708 enableval=$enable_valgrind_sgcheck; enable_valgrind_sgcheck=$enableval 16709else 16710 enable_valgrind_sgcheck= 16711fi 16712 16713 if test "$enable_valgrind" = "no"; then : 16714 16715 enable_valgrind_sgcheck=no 16716elif test "$enable_valgrind_sgcheck" = "yes"; then : 16717 16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind tool sgcheck" >&5 16719$as_echo_n "checking for Valgrind tool sgcheck... " >&6; } 16720if ${ax_cv_valgrind_tool_sgcheck+:} false; then : 16721 $as_echo_n "(cached) " >&6 16722else 16723 16724 ax_cv_valgrind_tool_sgcheck=no 16725 16726 if `$VALGRIND --tool=exp-sgcheck --help >/dev/null 2>&1`; then : 16727 16728 ax_cv_valgrind_tool_sgcheck=yes 16729 16730fi 16731 16732fi 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_valgrind_tool_sgcheck" >&5 16734$as_echo "$ax_cv_valgrind_tool_sgcheck" >&6; } 16735 if test "$ax_cv_valgrind_tool_sgcheck" = "no"; then : 16736 16737 if test "$enable_valgrind_sgcheck" = "yes"; then : 16738 16739 as_fn_error $? "Valgrind does not support sgcheck; reconfigure with --disable-valgrind-sgcheck" "$LINENO" 5 16740 16741else 16742 16743 enable_valgrind_sgcheck=no 16744 16745fi 16746 16747else 16748 16749 enable_valgrind_sgcheck=yes 16750 16751fi 16752 16753fi 16754 if test "$enable_valgrind_sgcheck" = "yes"; then : 16755 16756 valgrind_enabled_tools="$valgrind_enabled_tools sgcheck" 16757 16758fi 16759 ENABLE_VALGRIND_sgcheck=$enable_valgrind_sgcheck 16760 16761 16762 16763 valgrind_tools="memcheck helgrind drd sgcheck" 16764 16765 valgrind_enabled_tools=$valgrind_enabled_tools 16766 16767 16768VALGRIND_CHECK_RULES=' 16769# Valgrind check 16770# 16771# Optional: 16772# - VALGRIND_SUPPRESSIONS_FILES: Space-separated list of Valgrind suppressions 16773# files to load. (Default: empty) 16774# - VALGRIND_FLAGS: General flags to pass to all Valgrind tools. 16775# (Default: --num-callers=30) 16776# - VALGRIND_$toolname_FLAGS: Flags to pass to Valgrind $toolname (one of: 16777# memcheck, helgrind, drd, sgcheck). (Default: various) 16778 16779# Optional variables 16780VALGRIND_SUPPRESSIONS ?= $(addprefix --suppressions=,$(VALGRIND_SUPPRESSIONS_FILES)) 16781VALGRIND_FLAGS ?= --num-callers=30 16782VALGRIND_memcheck_FLAGS ?= --leak-check=full --show-reachable=no 16783VALGRIND_helgrind_FLAGS ?= --history-level=approx 16784VALGRIND_drd_FLAGS ?= 16785VALGRIND_sgcheck_FLAGS ?= 16786 16787# Internal use 16788valgrind_log_files = $(addprefix test-suite-,$(addsuffix .log,$(valgrind_tools))) 16789 16790valgrind_memcheck_flags = --tool=memcheck $(VALGRIND_memcheck_FLAGS) 16791valgrind_helgrind_flags = --tool=helgrind $(VALGRIND_helgrind_FLAGS) 16792valgrind_drd_flags = --tool=drd $(VALGRIND_drd_FLAGS) 16793valgrind_sgcheck_flags = --tool=exp-sgcheck $(VALGRIND_sgcheck_FLAGS) 16794 16795valgrind_quiet = $(valgrind_quiet_$(V)) 16796valgrind_quiet_ = $(valgrind_quiet_$(AM_DEFAULT_VERBOSITY)) 16797valgrind_quiet_0 = --quiet 16798valgrind_v_use = $(valgrind_v_use_$(V)) 16799valgrind_v_use_ = $(valgrind_v_use_$(AM_DEFAULT_VERBOSITY)) 16800valgrind_v_use_0 = @echo " USE " $(patsubst check-valgrind-%,%,$''@):; 16801 16802# Support running with and without libtool. 16803ifneq ($(LIBTOOL),) 16804valgrind_lt = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=execute 16805else 16806valgrind_lt = 16807endif 16808 16809# Use recursive makes in order to ignore errors during check 16810check-valgrind: 16811ifeq ($(VALGRIND_ENABLED),yes) 16812 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k \ 16813 $(foreach tool, $(valgrind_enabled_tools), check-valgrind-$(tool)) 16814else 16815 @echo "Need to reconfigure with --enable-valgrind" 16816endif 16817 16818# Valgrind running 16819VALGRIND_TESTS_ENVIRONMENT = \ 16820 $(TESTS_ENVIRONMENT) \ 16821 env VALGRIND=$(VALGRIND) \ 16822 G_SLICE=always-malloc,debug-blocks \ 16823 G_DEBUG=fatal-warnings,fatal-criticals,gc-friendly 16824 16825VALGRIND_LOG_COMPILER = \ 16826 $(valgrind_lt) \ 16827 $(VALGRIND) $(VALGRIND_SUPPRESSIONS) --error-exitcode=1 $(VALGRIND_FLAGS) 16828 16829define valgrind_tool_rule 16830check-valgrind-$(1): $$(BUILT_SOURCES) 16831ifeq ($$(VALGRIND_ENABLED)-$$(ENABLE_VALGRIND_$(1)),yes-yes) 16832 $$(valgrind_v_use)$$(MAKE) $$(AM_MAKEFLAGS) check-am \ 16833 TESTS_ENVIRONMENT="$$(VALGRIND_TESTS_ENVIRONMENT)" \ 16834 LOG_COMPILER="$$(VALGRIND_LOG_COMPILER)" \ 16835 LOG_FLAGS="$$(valgrind_$(1)_flags)" \ 16836 TEST_SUITE_LOG=test-suite-$(1).log 16837else ifeq ($$(VALGRIND_ENABLED),yes) 16838 @echo "Need to reconfigure with --enable-valgrind-$(1)" 16839else 16840 @echo "Need to reconfigure with --enable-valgrind" 16841endif 16842endef 16843 16844$(foreach tool,$(valgrind_tools),$(eval $(call valgrind_tool_rule,$(tool)))) 16845 16846A''M_DISTCHECK_CONFIGURE_FLAGS ?= 16847A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-valgrind 16848 16849MOSTLYCLEANFILES ?= 16850MOSTLYCLEANFILES += $(valgrind_log_files) 16851 16852.PHONY: check-valgrind $(add-prefix check-valgrind-,$(valgrind_tools)) 16853' 16854 16855 16856 16857 16858 16859ac_config_files="$ac_config_files Makefile tests/Makefile tests-m32/Makefile tests-mx32/Makefile strace.1 strace-log-merge.1 strace.spec debian/changelog" 16860 16861cat >confcache <<\_ACEOF 16862# This file is a shell script that caches the results of configure 16863# tests run on this system so they can be shared between configure 16864# scripts and configure runs, see configure's option --config-cache. 16865# It is not useful on other systems. If it contains results you don't 16866# want to keep, you may remove or edit it. 16867# 16868# config.status only pays attention to the cache file if you give it 16869# the --recheck option to rerun configure. 16870# 16871# `ac_cv_env_foo' variables (set or unset) will be overridden when 16872# loading this file, other *unset* `ac_cv_foo' will be assigned the 16873# following values. 16874 16875_ACEOF 16876 16877# The following way of writing the cache mishandles newlines in values, 16878# but we know of no workaround that is simple, portable, and efficient. 16879# So, we kill variables containing newlines. 16880# Ultrix sh set writes to stderr and can't be redirected directly, 16881# and sets the high bit in the cache file unless we assign to the vars. 16882( 16883 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16884 eval ac_val=\$$ac_var 16885 case $ac_val in #( 16886 *${as_nl}*) 16887 case $ac_var in #( 16888 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16889$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16890 esac 16891 case $ac_var in #( 16892 _ | IFS | as_nl) ;; #( 16893 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16894 *) { eval $ac_var=; unset $ac_var;} ;; 16895 esac ;; 16896 esac 16897 done 16898 16899 (set) 2>&1 | 16900 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16901 *${as_nl}ac_space=\ *) 16902 # `set' does not quote correctly, so add quotes: double-quote 16903 # substitution turns \\\\ into \\, and sed turns \\ into \. 16904 sed -n \ 16905 "s/'/'\\\\''/g; 16906 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16907 ;; #( 16908 *) 16909 # `set' quotes correctly as required by POSIX, so do not add quotes. 16910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16911 ;; 16912 esac | 16913 sort 16914) | 16915 sed ' 16916 /^ac_cv_env_/b end 16917 t clear 16918 :clear 16919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16920 t end 16921 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16922 :end' >>confcache 16923if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16924 if test -w "$cache_file"; then 16925 if test "x$cache_file" != "x/dev/null"; then 16926 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16927$as_echo "$as_me: updating cache $cache_file" >&6;} 16928 if test ! -f "$cache_file" || test -h "$cache_file"; then 16929 cat confcache >"$cache_file" 16930 else 16931 case $cache_file in #( 16932 */* | ?:*) 16933 mv -f confcache "$cache_file"$$ && 16934 mv -f "$cache_file"$$ "$cache_file" ;; #( 16935 *) 16936 mv -f confcache "$cache_file" ;; 16937 esac 16938 fi 16939 fi 16940 else 16941 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16942$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16943 fi 16944fi 16945rm -f confcache 16946 16947test "x$prefix" = xNONE && prefix=$ac_default_prefix 16948# Let make expand exec_prefix. 16949test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16950 16951DEFS=-DHAVE_CONFIG_H 16952 16953ac_libobjs= 16954ac_ltlibobjs= 16955U= 16956for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16957 # 1. Remove the extension, and $U if already installed. 16958 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16959 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16960 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16961 # will be set to the directory where LIBOBJS objects are built. 16962 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16963 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16964done 16965LIBOBJS=$ac_libobjs 16966 16967LTLIBOBJS=$ac_ltlibobjs 16968 16969 16970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16971$as_echo_n "checking that generated files are newer than configure... " >&6; } 16972 if test -n "$am_sleep_pid"; then 16973 # Hide warnings about reused PIDs. 16974 wait $am_sleep_pid 2>/dev/null 16975 fi 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16977$as_echo "done" >&6; } 16978 if test -n "$EXEEXT"; then 16979 am__EXEEXT_TRUE= 16980 am__EXEEXT_FALSE='#' 16981else 16982 am__EXEEXT_TRUE='#' 16983 am__EXEEXT_FALSE= 16984fi 16985 16986if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16987 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16988Usually this means the macro was only invoked conditionally." "$LINENO" 5 16989fi 16990if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16991 as_fn_error $? "conditional \"AMDEP\" was never defined. 16992Usually this means the macro was only invoked conditionally." "$LINENO" 5 16993fi 16994if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16995 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16996Usually this means the macro was only invoked conditionally." "$LINENO" 5 16997fi 16998if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16999 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17000Usually this means the macro was only invoked conditionally." "$LINENO" 5 17001fi 17002if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 17003 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 17004Usually this means the macro was only invoked conditionally." "$LINENO" 5 17005fi 17006 17007if test -z "${ENABLE_STACKTRACE_TRUE}" && test -z "${ENABLE_STACKTRACE_FALSE}"; then 17008 as_fn_error $? "conditional \"ENABLE_STACKTRACE\" was never defined. 17009Usually this means the macro was only invoked conditionally." "$LINENO" 5 17010fi 17011if test -z "${USE_LIBDW_TRUE}" && test -z "${USE_LIBDW_FALSE}"; then 17012 as_fn_error $? "conditional \"USE_LIBDW\" was never defined. 17013Usually this means the macro was only invoked conditionally." "$LINENO" 5 17014fi 17015if test -z "${USE_LIBUNWIND_TRUE}" && test -z "${USE_LIBUNWIND_FALSE}"; then 17016 as_fn_error $? "conditional \"USE_LIBUNWIND\" was never defined. 17017Usually this means the macro was only invoked conditionally." "$LINENO" 5 17018fi 17019if test -z "${USE_DEMANGLE_TRUE}" && test -z "${USE_DEMANGLE_FALSE}"; then 17020 as_fn_error $? "conditional \"USE_DEMANGLE\" was never defined. 17021Usually this means the macro was only invoked conditionally." "$LINENO" 5 17022fi 17023if test -z "${HAVE_M32_RUNTIME_TRUE}" && test -z "${HAVE_M32_RUNTIME_FALSE}"; then 17024 as_fn_error $? "conditional \"HAVE_M32_RUNTIME\" was never defined. 17025Usually this means the macro was only invoked conditionally." "$LINENO" 5 17026fi 17027if test -z "${HAVE_M32_MPERS_TRUE}" && test -z "${HAVE_M32_MPERS_FALSE}"; then 17028 as_fn_error $? "conditional \"HAVE_M32_MPERS\" was never defined. 17029Usually this means the macro was only invoked conditionally." "$LINENO" 5 17030fi 17031if test -z "${HAVE_MX32_RUNTIME_TRUE}" && test -z "${HAVE_MX32_RUNTIME_FALSE}"; then 17032 as_fn_error $? "conditional \"HAVE_MX32_RUNTIME\" was never defined. 17033Usually this means the macro was only invoked conditionally." "$LINENO" 5 17034fi 17035if test -z "${HAVE_MX32_MPERS_TRUE}" && test -z "${HAVE_MX32_MPERS_FALSE}"; then 17036 as_fn_error $? "conditional \"HAVE_MX32_MPERS\" was never defined. 17037Usually this means the macro was only invoked conditionally." "$LINENO" 5 17038fi 17039if test -z "${VALGRIND_ENABLED_TRUE}" && test -z "${VALGRIND_ENABLED_FALSE}"; then 17040 as_fn_error $? "conditional \"VALGRIND_ENABLED\" was never defined. 17041Usually this means the macro was only invoked conditionally." "$LINENO" 5 17042fi 17043 17044: "${CONFIG_STATUS=./config.status}" 17045ac_write_fail=0 17046ac_clean_files_save=$ac_clean_files 17047ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17048{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17049$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17050as_write_fail=0 17051cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17052#! $SHELL 17053# Generated by $as_me. 17054# Run this file to recreate the current configuration. 17055# Compiler output produced by configure, useful for debugging 17056# configure, is in config.log if it exists. 17057 17058debug=false 17059ac_cs_recheck=false 17060ac_cs_silent=false 17061 17062SHELL=\${CONFIG_SHELL-$SHELL} 17063export SHELL 17064_ASEOF 17065cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17066## -------------------- ## 17067## M4sh Initialization. ## 17068## -------------------- ## 17069 17070# Be more Bourne compatible 17071DUALCASE=1; export DUALCASE # for MKS sh 17072if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17073 emulate sh 17074 NULLCMD=: 17075 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17076 # is contrary to our usage. Disable this feature. 17077 alias -g '${1+"$@"}'='"$@"' 17078 setopt NO_GLOB_SUBST 17079else 17080 case `(set -o) 2>/dev/null` in #( 17081 *posix*) : 17082 set -o posix ;; #( 17083 *) : 17084 ;; 17085esac 17086fi 17087 17088 17089as_nl=' 17090' 17091export as_nl 17092# Printing a long string crashes Solaris 7 /usr/bin/printf. 17093as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17094as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17096# Prefer a ksh shell builtin over an external printf program on Solaris, 17097# but without wasting forks for bash or zsh. 17098if test -z "$BASH_VERSION$ZSH_VERSION" \ 17099 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17100 as_echo='print -r --' 17101 as_echo_n='print -rn --' 17102elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17103 as_echo='printf %s\n' 17104 as_echo_n='printf %s' 17105else 17106 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17107 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17108 as_echo_n='/usr/ucb/echo -n' 17109 else 17110 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17111 as_echo_n_body='eval 17112 arg=$1; 17113 case $arg in #( 17114 *"$as_nl"*) 17115 expr "X$arg" : "X\\(.*\\)$as_nl"; 17116 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17117 esac; 17118 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17119 ' 17120 export as_echo_n_body 17121 as_echo_n='sh -c $as_echo_n_body as_echo' 17122 fi 17123 export as_echo_body 17124 as_echo='sh -c $as_echo_body as_echo' 17125fi 17126 17127# The user is always right. 17128if test "${PATH_SEPARATOR+set}" != set; then 17129 PATH_SEPARATOR=: 17130 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17131 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17132 PATH_SEPARATOR=';' 17133 } 17134fi 17135 17136 17137# IFS 17138# We need space, tab and new line, in precisely that order. Quoting is 17139# there to prevent editors from complaining about space-tab. 17140# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17141# splitting by setting IFS to empty value.) 17142IFS=" "" $as_nl" 17143 17144# Find who we are. Look in the path if we contain no directory separator. 17145as_myself= 17146case $0 in #(( 17147 *[\\/]* ) as_myself=$0 ;; 17148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17149for as_dir in $PATH 17150do 17151 IFS=$as_save_IFS 17152 test -z "$as_dir" && as_dir=. 17153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17154 done 17155IFS=$as_save_IFS 17156 17157 ;; 17158esac 17159# We did not find ourselves, most probably we were run as `sh COMMAND' 17160# in which case we are not to be found in the path. 17161if test "x$as_myself" = x; then 17162 as_myself=$0 17163fi 17164if test ! -f "$as_myself"; then 17165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17166 exit 1 17167fi 17168 17169# Unset variables that we do not need and which cause bugs (e.g. in 17170# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17171# suppresses any "Segmentation fault" message there. '((' could 17172# trigger a bug in pdksh 5.2.14. 17173for as_var in BASH_ENV ENV MAIL MAILPATH 17174do eval test x\${$as_var+set} = xset \ 17175 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17176done 17177PS1='$ ' 17178PS2='> ' 17179PS4='+ ' 17180 17181# NLS nuisances. 17182LC_ALL=C 17183export LC_ALL 17184LANGUAGE=C 17185export LANGUAGE 17186 17187# CDPATH. 17188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17189 17190 17191# as_fn_error STATUS ERROR [LINENO LOG_FD] 17192# ---------------------------------------- 17193# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17194# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17195# script with STATUS, using 1 if that was 0. 17196as_fn_error () 17197{ 17198 as_status=$1; test $as_status -eq 0 && as_status=1 17199 if test "$4"; then 17200 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17201 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17202 fi 17203 $as_echo "$as_me: error: $2" >&2 17204 as_fn_exit $as_status 17205} # as_fn_error 17206 17207 17208# as_fn_set_status STATUS 17209# ----------------------- 17210# Set $? to STATUS, without forking. 17211as_fn_set_status () 17212{ 17213 return $1 17214} # as_fn_set_status 17215 17216# as_fn_exit STATUS 17217# ----------------- 17218# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17219as_fn_exit () 17220{ 17221 set +e 17222 as_fn_set_status $1 17223 exit $1 17224} # as_fn_exit 17225 17226# as_fn_unset VAR 17227# --------------- 17228# Portably unset VAR. 17229as_fn_unset () 17230{ 17231 { eval $1=; unset $1;} 17232} 17233as_unset=as_fn_unset 17234# as_fn_append VAR VALUE 17235# ---------------------- 17236# Append the text in VALUE to the end of the definition contained in VAR. Take 17237# advantage of any shell optimizations that allow amortized linear growth over 17238# repeated appends, instead of the typical quadratic growth present in naive 17239# implementations. 17240if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17241 eval 'as_fn_append () 17242 { 17243 eval $1+=\$2 17244 }' 17245else 17246 as_fn_append () 17247 { 17248 eval $1=\$$1\$2 17249 } 17250fi # as_fn_append 17251 17252# as_fn_arith ARG... 17253# ------------------ 17254# Perform arithmetic evaluation on the ARGs, and store the result in the 17255# global $as_val. Take advantage of shells that can avoid forks. The arguments 17256# must be portable across $(()) and expr. 17257if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17258 eval 'as_fn_arith () 17259 { 17260 as_val=$(( $* )) 17261 }' 17262else 17263 as_fn_arith () 17264 { 17265 as_val=`expr "$@" || test $? -eq 1` 17266 } 17267fi # as_fn_arith 17268 17269 17270if expr a : '\(a\)' >/dev/null 2>&1 && 17271 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17272 as_expr=expr 17273else 17274 as_expr=false 17275fi 17276 17277if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17278 as_basename=basename 17279else 17280 as_basename=false 17281fi 17282 17283if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17284 as_dirname=dirname 17285else 17286 as_dirname=false 17287fi 17288 17289as_me=`$as_basename -- "$0" || 17290$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17291 X"$0" : 'X\(//\)$' \| \ 17292 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17293$as_echo X/"$0" | 17294 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17295 s//\1/ 17296 q 17297 } 17298 /^X\/\(\/\/\)$/{ 17299 s//\1/ 17300 q 17301 } 17302 /^X\/\(\/\).*/{ 17303 s//\1/ 17304 q 17305 } 17306 s/.*/./; q'` 17307 17308# Avoid depending upon Character Ranges. 17309as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17310as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17311as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17312as_cr_digits='0123456789' 17313as_cr_alnum=$as_cr_Letters$as_cr_digits 17314 17315ECHO_C= ECHO_N= ECHO_T= 17316case `echo -n x` in #((((( 17317-n*) 17318 case `echo 'xy\c'` in 17319 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17320 xy) ECHO_C='\c';; 17321 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17322 ECHO_T=' ';; 17323 esac;; 17324*) 17325 ECHO_N='-n';; 17326esac 17327 17328rm -f conf$$ conf$$.exe conf$$.file 17329if test -d conf$$.dir; then 17330 rm -f conf$$.dir/conf$$.file 17331else 17332 rm -f conf$$.dir 17333 mkdir conf$$.dir 2>/dev/null 17334fi 17335if (echo >conf$$.file) 2>/dev/null; then 17336 if ln -s conf$$.file conf$$ 2>/dev/null; then 17337 as_ln_s='ln -s' 17338 # ... but there are two gotchas: 17339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17341 # In both cases, we have to default to `cp -pR'. 17342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17343 as_ln_s='cp -pR' 17344 elif ln conf$$.file conf$$ 2>/dev/null; then 17345 as_ln_s=ln 17346 else 17347 as_ln_s='cp -pR' 17348 fi 17349else 17350 as_ln_s='cp -pR' 17351fi 17352rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17353rmdir conf$$.dir 2>/dev/null 17354 17355 17356# as_fn_mkdir_p 17357# ------------- 17358# Create "$as_dir" as a directory, including parents if necessary. 17359as_fn_mkdir_p () 17360{ 17361 17362 case $as_dir in #( 17363 -*) as_dir=./$as_dir;; 17364 esac 17365 test -d "$as_dir" || eval $as_mkdir_p || { 17366 as_dirs= 17367 while :; do 17368 case $as_dir in #( 17369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17370 *) as_qdir=$as_dir;; 17371 esac 17372 as_dirs="'$as_qdir' $as_dirs" 17373 as_dir=`$as_dirname -- "$as_dir" || 17374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17375 X"$as_dir" : 'X\(//\)[^/]' \| \ 17376 X"$as_dir" : 'X\(//\)$' \| \ 17377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17378$as_echo X"$as_dir" | 17379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17380 s//\1/ 17381 q 17382 } 17383 /^X\(\/\/\)[^/].*/{ 17384 s//\1/ 17385 q 17386 } 17387 /^X\(\/\/\)$/{ 17388 s//\1/ 17389 q 17390 } 17391 /^X\(\/\).*/{ 17392 s//\1/ 17393 q 17394 } 17395 s/.*/./; q'` 17396 test -d "$as_dir" && break 17397 done 17398 test -z "$as_dirs" || eval "mkdir $as_dirs" 17399 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17400 17401 17402} # as_fn_mkdir_p 17403if mkdir -p . 2>/dev/null; then 17404 as_mkdir_p='mkdir -p "$as_dir"' 17405else 17406 test -d ./-p && rmdir ./-p 17407 as_mkdir_p=false 17408fi 17409 17410 17411# as_fn_executable_p FILE 17412# ----------------------- 17413# Test if FILE is an executable regular file. 17414as_fn_executable_p () 17415{ 17416 test -f "$1" && test -x "$1" 17417} # as_fn_executable_p 17418as_test_x='test -x' 17419as_executable_p=as_fn_executable_p 17420 17421# Sed expression to map a string onto a valid CPP name. 17422as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17423 17424# Sed expression to map a string onto a valid variable name. 17425as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17426 17427 17428exec 6>&1 17429## ----------------------------------- ## 17430## Main body of $CONFIG_STATUS script. ## 17431## ----------------------------------- ## 17432_ASEOF 17433test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17434 17435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17436# Save the log message, to keep $0 and so on meaningful, and to 17437# report actual input values of CONFIG_FILES etc. instead of their 17438# values after options handling. 17439ac_log=" 17440This file was extended by strace $as_me 4.25, which was 17441generated by GNU Autoconf 2.69. Invocation command line was 17442 17443 CONFIG_FILES = $CONFIG_FILES 17444 CONFIG_HEADERS = $CONFIG_HEADERS 17445 CONFIG_LINKS = $CONFIG_LINKS 17446 CONFIG_COMMANDS = $CONFIG_COMMANDS 17447 $ $0 $@ 17448 17449on `(hostname || uname -n) 2>/dev/null | sed 1q` 17450" 17451 17452_ACEOF 17453 17454case $ac_config_files in *" 17455"*) set x $ac_config_files; shift; ac_config_files=$*;; 17456esac 17457 17458case $ac_config_headers in *" 17459"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17460esac 17461 17462 17463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17464# Files that config.status was made for. 17465config_files="$ac_config_files" 17466config_headers="$ac_config_headers" 17467config_commands="$ac_config_commands" 17468 17469_ACEOF 17470 17471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17472ac_cs_usage="\ 17473\`$as_me' instantiates files and other configuration actions 17474from templates according to the current configuration. Unless the files 17475and actions are specified as TAGs, all are instantiated by default. 17476 17477Usage: $0 [OPTION]... [TAG]... 17478 17479 -h, --help print this help, then exit 17480 -V, --version print version number and configuration settings, then exit 17481 --config print configuration, then exit 17482 -q, --quiet, --silent 17483 do not print progress messages 17484 -d, --debug don't remove temporary files 17485 --recheck update $as_me by reconfiguring in the same conditions 17486 --file=FILE[:TEMPLATE] 17487 instantiate the configuration file FILE 17488 --header=FILE[:TEMPLATE] 17489 instantiate the configuration header FILE 17490 17491Configuration files: 17492$config_files 17493 17494Configuration headers: 17495$config_headers 17496 17497Configuration commands: 17498$config_commands 17499 17500Report bugs to <strace-devel@lists.strace.io>. 17501strace home page: <https://strace.io>." 17502 17503_ACEOF 17504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17505ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17506ac_cs_version="\\ 17507strace config.status 4.25 17508configured by $0, generated by GNU Autoconf 2.69, 17509 with options \\"\$ac_cs_config\\" 17510 17511Copyright (C) Free Software Foundation, Inc. 17512This config.status script is free software; the Free Software Foundation 17513gives unlimited permission to copy, distribute and modify it." 17514 17515ac_pwd='$ac_pwd' 17516srcdir='$srcdir' 17517INSTALL='$INSTALL' 17518MKDIR_P='$MKDIR_P' 17519AWK='$AWK' 17520test -n "\$AWK" || AWK=awk 17521_ACEOF 17522 17523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17524# The default lists apply if the user does not specify any file. 17525ac_need_defaults=: 17526while test $# != 0 17527do 17528 case $1 in 17529 --*=?*) 17530 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17532 ac_shift=: 17533 ;; 17534 --*=) 17535 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17536 ac_optarg= 17537 ac_shift=: 17538 ;; 17539 *) 17540 ac_option=$1 17541 ac_optarg=$2 17542 ac_shift=shift 17543 ;; 17544 esac 17545 17546 case $ac_option in 17547 # Handling of the options. 17548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17549 ac_cs_recheck=: ;; 17550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17551 $as_echo "$ac_cs_version"; exit ;; 17552 --config | --confi | --conf | --con | --co | --c ) 17553 $as_echo "$ac_cs_config"; exit ;; 17554 --debug | --debu | --deb | --de | --d | -d ) 17555 debug=: ;; 17556 --file | --fil | --fi | --f ) 17557 $ac_shift 17558 case $ac_optarg in 17559 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17560 '') as_fn_error $? "missing file argument" ;; 17561 esac 17562 as_fn_append CONFIG_FILES " '$ac_optarg'" 17563 ac_need_defaults=false;; 17564 --header | --heade | --head | --hea ) 17565 $ac_shift 17566 case $ac_optarg in 17567 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17568 esac 17569 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17570 ac_need_defaults=false;; 17571 --he | --h) 17572 # Conflict between --help and --header 17573 as_fn_error $? "ambiguous option: \`$1' 17574Try \`$0 --help' for more information.";; 17575 --help | --hel | -h ) 17576 $as_echo "$ac_cs_usage"; exit ;; 17577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17578 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17579 ac_cs_silent=: ;; 17580 17581 # This is an error. 17582 -*) as_fn_error $? "unrecognized option: \`$1' 17583Try \`$0 --help' for more information." ;; 17584 17585 *) as_fn_append ac_config_targets " $1" 17586 ac_need_defaults=false ;; 17587 17588 esac 17589 shift 17590done 17591 17592ac_configure_extra_args= 17593 17594if $ac_cs_silent; then 17595 exec 6>/dev/null 17596 ac_configure_extra_args="$ac_configure_extra_args --silent" 17597fi 17598 17599_ACEOF 17600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17601if \$ac_cs_recheck; then 17602 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17603 shift 17604 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17605 CONFIG_SHELL='$SHELL' 17606 export CONFIG_SHELL 17607 exec "\$@" 17608fi 17609 17610_ACEOF 17611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17612exec 5>>config.log 17613{ 17614 echo 17615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17616## Running $as_me. ## 17617_ASBOX 17618 $as_echo "$ac_log" 17619} >&5 17620 17621_ACEOF 17622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17623# 17624# INIT-COMMANDS 17625# 17626AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17627 17628_ACEOF 17629 17630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17631 17632# Handling of arguments. 17633for ac_config_target in $ac_config_targets 17634do 17635 case $ac_config_target in 17636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17639 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17640 "tests-m32/Makefile") CONFIG_FILES="$CONFIG_FILES tests-m32/Makefile" ;; 17641 "tests-mx32/Makefile") CONFIG_FILES="$CONFIG_FILES tests-mx32/Makefile" ;; 17642 "strace.1") CONFIG_FILES="$CONFIG_FILES strace.1" ;; 17643 "strace-log-merge.1") CONFIG_FILES="$CONFIG_FILES strace-log-merge.1" ;; 17644 "strace.spec") CONFIG_FILES="$CONFIG_FILES strace.spec" ;; 17645 "debian/changelog") CONFIG_FILES="$CONFIG_FILES debian/changelog" ;; 17646 17647 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17648 esac 17649done 17650 17651 17652# If the user did not use the arguments to specify the items to instantiate, 17653# then the envvar interface is used. Set only those that are not. 17654# We use the long form for the default assignment because of an extremely 17655# bizarre bug on SunOS 4.1.3. 17656if $ac_need_defaults; then 17657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17660fi 17661 17662# Have a temporary directory for convenience. Make it in the build tree 17663# simply because there is no reason against having it here, and in addition, 17664# creating and moving files from /tmp can sometimes cause problems. 17665# Hook for its removal unless debugging. 17666# Note that there is a small window in which the directory will not be cleaned: 17667# after its creation but before its name has been assigned to `$tmp'. 17668$debug || 17669{ 17670 tmp= ac_tmp= 17671 trap 'exit_status=$? 17672 : "${ac_tmp:=$tmp}" 17673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17674' 0 17675 trap 'as_fn_exit 1' 1 2 13 15 17676} 17677# Create a (secure) tmp directory for tmp files. 17678 17679{ 17680 tmp=`(umask 077 && mktemp -d "./confXXXXXX")` && 17681 test -n "$tmp" && test -d "$tmp" 17682} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17683ac_tmp=$tmp 17684 17685# Set up the scripts for CONFIG_FILES section. 17686# No need to generate them if there are no CONFIG_FILES. 17687# This happens for instance with `./config.status config.h'. 17688if test -n "$CONFIG_FILES"; then 17689 17690 17691ac_cr=`echo X | tr X '\015'` 17692# On cygwin, bash can eat \r inside `` if the user requested igncr. 17693# But we know of no other shell where ac_cr would be empty at this 17694# point, so we can use a bashism as a fallback. 17695if test "x$ac_cr" = x; then 17696 eval ac_cr=\$\'\\r\' 17697fi 17698ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17699if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17700 ac_cs_awk_cr='\\r' 17701else 17702 ac_cs_awk_cr=$ac_cr 17703fi 17704 17705echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17706_ACEOF 17707 17708 17709{ 17710 echo "cat >conf$$subs.awk <<_ACEOF" && 17711 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17712 echo "_ACEOF" 17713} >conf$$subs.sh || 17714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17715ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17716ac_delim='%!_!# ' 17717for ac_last_try in false false false false false :; do 17718 . ./conf$$subs.sh || 17719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17720 17721 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17722 if test $ac_delim_n = $ac_delim_num; then 17723 break 17724 elif $ac_last_try; then 17725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17726 else 17727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17728 fi 17729done 17730rm -f conf$$subs.sh 17731 17732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17733cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17734_ACEOF 17735sed -n ' 17736h 17737s/^/S["/; s/!.*/"]=/ 17738p 17739g 17740s/^[^!]*!// 17741:repl 17742t repl 17743s/'"$ac_delim"'$// 17744t delim 17745:nl 17746h 17747s/\(.\{148\}\)..*/\1/ 17748t more1 17749s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17750p 17751n 17752b repl 17753:more1 17754s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17755p 17756g 17757s/.\{148\}// 17758t nl 17759:delim 17760h 17761s/\(.\{148\}\)..*/\1/ 17762t more2 17763s/["\\]/\\&/g; s/^/"/; s/$/"/ 17764p 17765b 17766:more2 17767s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17768p 17769g 17770s/.\{148\}// 17771t delim 17772' <conf$$subs.awk | sed ' 17773/^[^""]/{ 17774 N 17775 s/\n// 17776} 17777' >>$CONFIG_STATUS || ac_write_fail=1 17778rm -f conf$$subs.awk 17779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17780_ACAWK 17781cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17782 for (key in S) S_is_set[key] = 1 17783 FS = "" 17784 17785} 17786{ 17787 line = $ 0 17788 nfields = split(line, field, "@") 17789 substed = 0 17790 len = length(field[1]) 17791 for (i = 2; i < nfields; i++) { 17792 key = field[i] 17793 keylen = length(key) 17794 if (S_is_set[key]) { 17795 value = S[key] 17796 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17797 len += length(value) + length(field[++i]) 17798 substed = 1 17799 } else 17800 len += 1 + keylen 17801 } 17802 17803 print line 17804} 17805 17806_ACAWK 17807_ACEOF 17808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17809if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17810 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17811else 17812 cat 17813fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17814 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17815_ACEOF 17816 17817# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17818# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17819# trailing colons and then remove the whole line if VPATH becomes empty 17820# (actually we leave an empty line to preserve line numbers). 17821if test "x$srcdir" = x.; then 17822 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17823h 17824s/// 17825s/^/:/ 17826s/[ ]*$/:/ 17827s/:\$(srcdir):/:/g 17828s/:\${srcdir}:/:/g 17829s/:@srcdir@:/:/g 17830s/^:*// 17831s/:*$// 17832x 17833s/\(=[ ]*\).*/\1/ 17834G 17835s/\n// 17836s/^[^=]*=[ ]*$// 17837}' 17838fi 17839 17840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17841fi # test -n "$CONFIG_FILES" 17842 17843# Set up the scripts for CONFIG_HEADERS section. 17844# No need to generate them if there are no CONFIG_HEADERS. 17845# This happens for instance with `./config.status Makefile'. 17846if test -n "$CONFIG_HEADERS"; then 17847cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17848BEGIN { 17849_ACEOF 17850 17851# Transform confdefs.h into an awk script `defines.awk', embedded as 17852# here-document in config.status, that substitutes the proper values into 17853# config.h.in to produce config.h. 17854 17855# Create a delimiter string that does not exist in confdefs.h, to ease 17856# handling of long lines. 17857ac_delim='%!_!# ' 17858for ac_last_try in false false :; do 17859 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17860 if test -z "$ac_tt"; then 17861 break 17862 elif $ac_last_try; then 17863 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17864 else 17865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17866 fi 17867done 17868 17869# For the awk script, D is an array of macro values keyed by name, 17870# likewise P contains macro parameters if any. Preserve backslash 17871# newline sequences. 17872 17873ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17874sed -n ' 17875s/.\{148\}/&'"$ac_delim"'/g 17876t rset 17877:rset 17878s/^[ ]*#[ ]*define[ ][ ]*/ / 17879t def 17880d 17881:def 17882s/\\$// 17883t bsnl 17884s/["\\]/\\&/g 17885s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17886D["\1"]=" \3"/p 17887s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17888d 17889:bsnl 17890s/["\\]/\\&/g 17891s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17892D["\1"]=" \3\\\\\\n"\\/p 17893t cont 17894s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17895t cont 17896d 17897:cont 17898n 17899s/.\{148\}/&'"$ac_delim"'/g 17900t clear 17901:clear 17902s/\\$// 17903t bsnlc 17904s/["\\]/\\&/g; s/^/"/; s/$/"/p 17905d 17906:bsnlc 17907s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17908b cont 17909' <confdefs.h | sed ' 17910s/'"$ac_delim"'/"\\\ 17911"/g' >>$CONFIG_STATUS || ac_write_fail=1 17912 17913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17914 for (key in D) D_is_set[key] = 1 17915 FS = "" 17916} 17917/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17918 line = \$ 0 17919 split(line, arg, " ") 17920 if (arg[1] == "#") { 17921 defundef = arg[2] 17922 mac1 = arg[3] 17923 } else { 17924 defundef = substr(arg[1], 2) 17925 mac1 = arg[2] 17926 } 17927 split(mac1, mac2, "(") #) 17928 macro = mac2[1] 17929 prefix = substr(line, 1, index(line, defundef) - 1) 17930 if (D_is_set[macro]) { 17931 # Preserve the white space surrounding the "#". 17932 print prefix "define", macro P[macro] D[macro] 17933 next 17934 } else { 17935 # Replace #undef with comments. This is necessary, for example, 17936 # in the case of _POSIX_SOURCE, which is predefined and required 17937 # on some systems where configure will not decide to define it. 17938 if (defundef == "undef") { 17939 print "/*", prefix defundef, macro, "*/" 17940 next 17941 } 17942 } 17943} 17944{ print } 17945_ACAWK 17946_ACEOF 17947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17948 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17949fi # test -n "$CONFIG_HEADERS" 17950 17951 17952eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17953shift 17954for ac_tag 17955do 17956 case $ac_tag in 17957 :[FHLC]) ac_mode=$ac_tag; continue;; 17958 esac 17959 case $ac_mode$ac_tag in 17960 :[FHL]*:*);; 17961 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17962 :[FH]-) ac_tag=-:-;; 17963 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17964 esac 17965 ac_save_IFS=$IFS 17966 IFS=: 17967 set x $ac_tag 17968 IFS=$ac_save_IFS 17969 shift 17970 ac_file=$1 17971 shift 17972 17973 case $ac_mode in 17974 :L) ac_source=$1;; 17975 :[FH]) 17976 ac_file_inputs= 17977 for ac_f 17978 do 17979 case $ac_f in 17980 -) ac_f="$ac_tmp/stdin";; 17981 *) # Look for the file first in the build tree, then in the source tree 17982 # (if the path is not absolute). The absolute path cannot be DOS-style, 17983 # because $ac_f cannot contain `:'. 17984 test -f "$ac_f" || 17985 case $ac_f in 17986 [\\/$]*) false;; 17987 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17988 esac || 17989 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17990 esac 17991 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17992 as_fn_append ac_file_inputs " '$ac_f'" 17993 done 17994 17995 # Let's still pretend it is `configure' which instantiates (i.e., don't 17996 # use $as_me), people would be surprised to read: 17997 # /* config.h. Generated by config.status. */ 17998 configure_input='Generated from '` 17999 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18000 `' by configure.' 18001 if test x"$ac_file" != x-; then 18002 configure_input="$ac_file. $configure_input" 18003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18004$as_echo "$as_me: creating $ac_file" >&6;} 18005 fi 18006 # Neutralize special characters interpreted by sed in replacement strings. 18007 case $configure_input in #( 18008 *\&* | *\|* | *\\* ) 18009 ac_sed_conf_input=`$as_echo "$configure_input" | 18010 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18011 *) ac_sed_conf_input=$configure_input;; 18012 esac 18013 18014 case $ac_tag in 18015 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18016 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18017 esac 18018 ;; 18019 esac 18020 18021 ac_dir=`$as_dirname -- "$ac_file" || 18022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18023 X"$ac_file" : 'X\(//\)[^/]' \| \ 18024 X"$ac_file" : 'X\(//\)$' \| \ 18025 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18026$as_echo X"$ac_file" | 18027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18028 s//\1/ 18029 q 18030 } 18031 /^X\(\/\/\)[^/].*/{ 18032 s//\1/ 18033 q 18034 } 18035 /^X\(\/\/\)$/{ 18036 s//\1/ 18037 q 18038 } 18039 /^X\(\/\).*/{ 18040 s//\1/ 18041 q 18042 } 18043 s/.*/./; q'` 18044 as_dir="$ac_dir"; as_fn_mkdir_p 18045 ac_builddir=. 18046 18047case "$ac_dir" in 18048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18049*) 18050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18051 # A ".." for each directory in $ac_dir_suffix. 18052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18053 case $ac_top_builddir_sub in 18054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18056 esac ;; 18057esac 18058ac_abs_top_builddir=$ac_pwd 18059ac_abs_builddir=$ac_pwd$ac_dir_suffix 18060# for backward compatibility: 18061ac_top_builddir=$ac_top_build_prefix 18062 18063case $srcdir in 18064 .) # We are building in place. 18065 ac_srcdir=. 18066 ac_top_srcdir=$ac_top_builddir_sub 18067 ac_abs_top_srcdir=$ac_pwd ;; 18068 [\\/]* | ?:[\\/]* ) # Absolute name. 18069 ac_srcdir=$srcdir$ac_dir_suffix; 18070 ac_top_srcdir=$srcdir 18071 ac_abs_top_srcdir=$srcdir ;; 18072 *) # Relative name. 18073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18074 ac_top_srcdir=$ac_top_build_prefix$srcdir 18075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18076esac 18077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18078 18079 18080 case $ac_mode in 18081 :F) 18082 # 18083 # CONFIG_FILE 18084 # 18085 18086 case $INSTALL in 18087 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18088 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18089 esac 18090 ac_MKDIR_P=$MKDIR_P 18091 case $MKDIR_P in 18092 [\\/$]* | ?:[\\/]* ) ;; 18093 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18094 esac 18095_ACEOF 18096 18097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18098# If the template does not know about datarootdir, expand it. 18099# FIXME: This hack should be removed a few years after 2.60. 18100ac_datarootdir_hack=; ac_datarootdir_seen= 18101ac_sed_dataroot=' 18102/datarootdir/ { 18103 p 18104 q 18105} 18106/@datadir@/p 18107/@docdir@/p 18108/@infodir@/p 18109/@localedir@/p 18110/@mandir@/p' 18111case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18112*datarootdir*) ac_datarootdir_seen=yes;; 18113*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18115$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18116_ACEOF 18117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18118 ac_datarootdir_hack=' 18119 s&@datadir@&$datadir&g 18120 s&@docdir@&$docdir&g 18121 s&@infodir@&$infodir&g 18122 s&@localedir@&$localedir&g 18123 s&@mandir@&$mandir&g 18124 s&\\\${datarootdir}&$datarootdir&g' ;; 18125esac 18126_ACEOF 18127 18128# Neutralize VPATH when `$srcdir' = `.'. 18129# Shell code in configure.ac might set extrasub. 18130# FIXME: do we really want to maintain this feature? 18131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18132ac_sed_extra="$ac_vpsub 18133$extrasub 18134_ACEOF 18135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18136:t 18137/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18138s|@configure_input@|$ac_sed_conf_input|;t t 18139s&@top_builddir@&$ac_top_builddir_sub&;t t 18140s&@top_build_prefix@&$ac_top_build_prefix&;t t 18141s&@srcdir@&$ac_srcdir&;t t 18142s&@abs_srcdir@&$ac_abs_srcdir&;t t 18143s&@top_srcdir@&$ac_top_srcdir&;t t 18144s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18145s&@builddir@&$ac_builddir&;t t 18146s&@abs_builddir@&$ac_abs_builddir&;t t 18147s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18148s&@INSTALL@&$ac_INSTALL&;t t 18149s&@MKDIR_P@&$ac_MKDIR_P&;t t 18150$ac_datarootdir_hack 18151" 18152eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18153 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18154 18155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18156 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18158 "$ac_tmp/out"`; test -z "$ac_out"; } && 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18160which seems to be undefined. Please make sure it is defined" >&5 18161$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18162which seems to be undefined. Please make sure it is defined" >&2;} 18163 18164 rm -f "$ac_tmp/stdin" 18165 case $ac_file in 18166 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18167 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18168 esac \ 18169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18170 ;; 18171 :H) 18172 # 18173 # CONFIG_HEADER 18174 # 18175 if test x"$ac_file" != x-; then 18176 { 18177 $as_echo "/* $configure_input */" \ 18178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18179 } >"$ac_tmp/config.h" \ 18180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18181 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18183$as_echo "$as_me: $ac_file is unchanged" >&6;} 18184 else 18185 rm -f "$ac_file" 18186 mv "$ac_tmp/config.h" "$ac_file" \ 18187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18188 fi 18189 else 18190 $as_echo "/* $configure_input */" \ 18191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18192 || as_fn_error $? "could not create -" "$LINENO" 5 18193 fi 18194# Compute "$ac_file"'s index in $config_headers. 18195_am_arg="$ac_file" 18196_am_stamp_count=1 18197for _am_header in $config_headers :; do 18198 case $_am_header in 18199 $_am_arg | $_am_arg:* ) 18200 break ;; 18201 * ) 18202 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18203 esac 18204done 18205echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18206$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18207 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18208 X"$_am_arg" : 'X\(//\)$' \| \ 18209 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18210$as_echo X"$_am_arg" | 18211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18212 s//\1/ 18213 q 18214 } 18215 /^X\(\/\/\)[^/].*/{ 18216 s//\1/ 18217 q 18218 } 18219 /^X\(\/\/\)$/{ 18220 s//\1/ 18221 q 18222 } 18223 /^X\(\/\).*/{ 18224 s//\1/ 18225 q 18226 } 18227 s/.*/./; q'`/stamp-h$_am_stamp_count 18228 ;; 18229 18230 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18231$as_echo "$as_me: executing $ac_file commands" >&6;} 18232 ;; 18233 esac 18234 18235 18236 case $ac_file$ac_mode in 18237 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18238 # Older Autoconf quotes --file arguments for eval, but not when files 18239 # are listed without --file. Let's play safe and only enable the eval 18240 # if we detect the quoting. 18241 case $CONFIG_FILES in 18242 *\'*) eval set x "$CONFIG_FILES" ;; 18243 *) set x $CONFIG_FILES ;; 18244 esac 18245 shift 18246 for mf 18247 do 18248 # Strip MF so we end up with the name of the file. 18249 mf=`echo "$mf" | sed -e 's/:.*$//'` 18250 # Check whether this is an Automake generated Makefile or not. 18251 # We used to match only the files named 'Makefile.in', but 18252 # some people rename them; so instead we look at the file content. 18253 # Grep'ing the first line is not enough: some people post-process 18254 # each Makefile.in and add a new line on top of each file to say so. 18255 # Grep'ing the whole file is not good either: AIX grep has a line 18256 # limit of 2048, but all sed's we know have understand at least 4000. 18257 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18258 dirpart=`$as_dirname -- "$mf" || 18259$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18260 X"$mf" : 'X\(//\)[^/]' \| \ 18261 X"$mf" : 'X\(//\)$' \| \ 18262 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18263$as_echo X"$mf" | 18264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18265 s//\1/ 18266 q 18267 } 18268 /^X\(\/\/\)[^/].*/{ 18269 s//\1/ 18270 q 18271 } 18272 /^X\(\/\/\)$/{ 18273 s//\1/ 18274 q 18275 } 18276 /^X\(\/\).*/{ 18277 s//\1/ 18278 q 18279 } 18280 s/.*/./; q'` 18281 else 18282 continue 18283 fi 18284 # Extract the definition of DEPDIR, am__include, and am__quote 18285 # from the Makefile without running 'make'. 18286 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18287 test -z "$DEPDIR" && continue 18288 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18289 test -z "$am__include" && continue 18290 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18291 # Find all dependency output files, they are included files with 18292 # $(DEPDIR) in their names. We invoke sed twice because it is the 18293 # simplest approach to changing $(DEPDIR) to its actual value in the 18294 # expansion. 18295 for file in `sed -n " 18296 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18297 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18298 # Make sure the directory exists. 18299 test -f "$dirpart/$file" && continue 18300 fdir=`$as_dirname -- "$file" || 18301$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18302 X"$file" : 'X\(//\)[^/]' \| \ 18303 X"$file" : 'X\(//\)$' \| \ 18304 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18305$as_echo X"$file" | 18306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18307 s//\1/ 18308 q 18309 } 18310 /^X\(\/\/\)[^/].*/{ 18311 s//\1/ 18312 q 18313 } 18314 /^X\(\/\/\)$/{ 18315 s//\1/ 18316 q 18317 } 18318 /^X\(\/\).*/{ 18319 s//\1/ 18320 q 18321 } 18322 s/.*/./; q'` 18323 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18324 # echo "creating $dirpart/$file" 18325 echo '# dummy' > "$dirpart/$file" 18326 done 18327 done 18328} 18329 ;; 18330 18331 esac 18332done # for ac_tag 18333 18334 18335as_fn_exit 0 18336_ACEOF 18337ac_clean_files=$ac_clean_files_save 18338 18339test $ac_write_fail = 0 || 18340 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18341 18342 18343# configure is writing to config.log, and then calls config.status. 18344# config.status does its own redirection, appending to config.log. 18345# Unfortunately, on DOS this fails, as config.log is still kept open 18346# by configure, so config.status won't be able to write to it; its 18347# output is simply discarded. So we exec the FD to /dev/null, 18348# effectively closing config.log, so it can be properly (re)opened and 18349# appended to by config.status. When coming back to configure, we 18350# need to make the FD available again. 18351if test "$no_create" != yes; then 18352 ac_cs_success=: 18353 ac_config_status_args= 18354 test "$silent" = yes && 18355 ac_config_status_args="$ac_config_status_args --quiet" 18356 exec 5>/dev/null 18357 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18358 exec 5>>config.log 18359 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18360 # would make configure fail if this is the last instruction. 18361 $ac_cs_success || as_fn_exit 1 18362fi 18363if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18365$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18366fi 18367 18368