1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for Valgrind 3.13.0. 4 # 5 # Report bugs to <valgrind-users (at] lists.sourceforge.net>. 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 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 270 $0: valgrind-users (at] lists.sourceforge.net about your system, 271 $0: including any error possibly output before this 272 $0: message. Then install a modern shell, or manually run 273 $0: the script under such a shell if you do have one." 274 fi 275 exit 1 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_fn_set_status () 301 { 302 return $1 303 } # as_fn_set_status 304 305 # as_fn_exit STATUS 306 # ----------------- 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308 as_fn_exit () 309 { 310 set +e 311 as_fn_set_status $1 312 exit $1 313 } # as_fn_exit 314 315 # as_fn_mkdir_p 316 # ------------- 317 # Create "$as_dir" as a directory, including parents if necessary. 318 as_fn_mkdir_p () 319 { 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337 $as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 362 363 # as_fn_executable_p FILE 364 # ----------------------- 365 # Test if FILE is an executable regular file. 366 as_fn_executable_p () 367 { 368 test -f "$1" && test -x "$1" 369 } # as_fn_executable_p 370 # as_fn_append VAR VALUE 371 # ---------------------- 372 # Append the text in VALUE to the end of the definition contained in VAR. Take 373 # advantage of any shell optimizations that allow amortized linear growth over 374 # repeated appends, instead of the typical quadratic growth present in naive 375 # implementations. 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # as_fn_append 387 388 # as_fn_arith ARG... 389 # ------------------ 390 # Perform arithmetic evaluation on the ARGs, and store the result in the 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 392 # must be portable across $(()) and expr. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # as_fn_arith 404 405 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425 else 426 as_expr=false 427 fi 428 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431 else 432 as_basename=false 433 fi 434 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 441 as_me=`$as_basename -- "$0" || 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445 $as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460 # Avoid depending upon Character Ranges. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501 } 502 503 ECHO_C= ECHO_N= ECHO_T= 504 case `echo -n x` in #((((( 505 -n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512 *) 513 ECHO_N='-n';; 514 esac 515 516 rm -f conf$$ conf$$.exe conf$$.file 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 523 if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 542 543 if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545 else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548 fi 549 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 552 553 # Sed expression to map a string onto a valid CPP name. 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556 # Sed expression to map a string onto a valid variable name. 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 562 563 # Name of the host. 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565 # so uname gets run too. 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568 # 569 # Initializations. 570 # 571 ac_default_prefix=/usr/local 572 ac_clean_files= 573 ac_config_libobj_dir=. 574 LIBOBJS= 575 cross_compiling=no 576 subdirs= 577 MFLAGS= 578 MAKEFLAGS= 579 580 # Identity of this package. 581 PACKAGE_NAME='Valgrind' 582 PACKAGE_TARNAME='valgrind' 583 PACKAGE_VERSION='3.13.0' 584 PACKAGE_STRING='Valgrind 3.13.0' 585 PACKAGE_BUGREPORT='valgrind-users (at] lists.sourceforge.net' 586 PACKAGE_URL='' 587 588 ac_unique_file="coregrind/m_main.c" 589 # Factoring default headers for most tests. 590 ac_includes_default="\ 591 #include <stdio.h> 592 #ifdef HAVE_SYS_TYPES_H 593 # include <sys/types.h> 594 #endif 595 #ifdef HAVE_SYS_STAT_H 596 # include <sys/stat.h> 597 #endif 598 #ifdef STDC_HEADERS 599 # include <stdlib.h> 600 # include <stddef.h> 601 #else 602 # ifdef HAVE_STDLIB_H 603 # include <stdlib.h> 604 # endif 605 #endif 606 #ifdef HAVE_STRING_H 607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608 # include <memory.h> 609 # endif 610 # include <string.h> 611 #endif 612 #ifdef HAVE_STRINGS_H 613 # include <strings.h> 614 #endif 615 #ifdef HAVE_INTTYPES_H 616 # include <inttypes.h> 617 #endif 618 #ifdef HAVE_STDINT_H 619 # include <stdint.h> 620 #endif 621 #ifdef HAVE_UNISTD_H 622 # include <unistd.h> 623 #endif" 624 625 ac_header_list= 626 ac_subst_vars='am__EXEEXT_FALSE 627 am__EXEEXT_TRUE 628 LTLIBOBJS 629 HAVE_SHARED_POINTER_ANNOTATION_FALSE 630 HAVE_SHARED_POINTER_ANNOTATION_TRUE 631 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE 632 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE 633 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE 634 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE 635 HAVE_BUILTIN_ATOMIC_CXX_FALSE 636 HAVE_BUILTIN_ATOMIC_CXX_TRUE 637 HAVE_BUILTIN_ATOMIC64_FALSE 638 HAVE_BUILTIN_ATOMIC64_TRUE 639 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE 640 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE 641 HAVE_BUILTIN_ATOMIC_FALSE 642 HAVE_BUILTIN_ATOMIC_TRUE 643 HAVE_OPENMP_FALSE 644 HAVE_OPENMP_TRUE 645 HAVE_BOOST_1_35_FALSE 646 HAVE_BOOST_1_35_TRUE 647 BOOST_LIBS 648 BOOST_CFLAGS 649 BUILD_MPIWRAP_SEC_FALSE 650 BUILD_MPIWRAP_SEC_TRUE 651 BUILD_MPIWRAP_PRI_FALSE 652 BUILD_MPIWRAP_PRI_TRUE 653 LDFLAGS_MPI 654 CFLAGS_MPI 655 MPI_CC 656 HAVE_PTHREAD_SETNAME_NP_FALSE 657 HAVE_PTHREAD_SETNAME_NP_TRUE 658 HAVE_PTHREAD_SPINLOCK_FALSE 659 HAVE_PTHREAD_SPINLOCK_TRUE 660 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE 661 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE 662 HAVE_PTHREAD_BARRIER_FALSE 663 HAVE_PTHREAD_BARRIER_TRUE 664 LIBOBJS 665 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE 666 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE 667 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE 668 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE 669 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE 670 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE 671 DIS_PATH 672 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE 673 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE 674 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE 675 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE 676 SOLARIS_GETHRT_FASTTRAP_FALSE 677 SOLARIS_GETHRT_FASTTRAP_TRUE 678 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE 679 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE 680 SOLARIS_MODCTL_MODNVL_FALSE 681 SOLARIS_MODCTL_MODNVL_TRUE 682 SOLARIS_SPAWN_SYSCALL_FALSE 683 SOLARIS_SPAWN_SYSCALL_TRUE 684 SOLARIS_UTIMENSAT_SYSCALL_FALSE 685 SOLARIS_UTIMENSAT_SYSCALL_TRUE 686 SOLARIS_UTIMESYS_SYSCALL_FALSE 687 SOLARIS_UTIMESYS_SYSCALL_TRUE 688 SOLARIS_PSET_GET_NAME_FALSE 689 SOLARIS_PSET_GET_NAME_TRUE 690 SOLARIS_TSOL_CLEARANCE_FALSE 691 SOLARIS_TSOL_CLEARANCE_TRUE 692 SOLARIS_TNDB_GET_TNIP_FALSE 693 SOLARIS_TNDB_GET_TNIP_TRUE 694 SOLARIS_UUIDSYS_SYSCALL_FALSE 695 SOLARIS_UUIDSYS_SYSCALL_TRUE 696 SOLARIS_FREALPATHAT_SYSCALL_FALSE 697 SOLARIS_FREALPATHAT_SYSCALL_TRUE 698 SOLARIS_PRXREGSET_T_FALSE 699 SOLARIS_PRXREGSET_T_TRUE 700 SOLARIS_SHM_NEW_FALSE 701 SOLARIS_SHM_NEW_TRUE 702 SOLARIS_AUDITON_STAT_FALSE 703 SOLARIS_AUDITON_STAT_TRUE 704 SOLARIS_ZONE_DEFUNCT_FALSE 705 SOLARIS_ZONE_DEFUNCT_TRUE 706 SOLARIS_GETRANDOM_SYSCALL_FALSE 707 SOLARIS_GETRANDOM_SYSCALL_TRUE 708 SOLARIS_LWP_NAME_SYSCALL_FALSE 709 SOLARIS_LWP_NAME_SYSCALL_TRUE 710 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE 711 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE 712 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE 713 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE 714 SOLARIS_OLD_SYSCALLS_FALSE 715 SOLARIS_OLD_SYSCALLS_TRUE 716 SOLARIS_PROC_CMDLINE_FALSE 717 SOLARIS_PROC_CMDLINE_TRUE 718 SOLARIS_UNDEF_LARGESOURCE 719 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE 720 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE 721 SOLARIS_SUN_STUDIO_AS_FALSE 722 SOLARIS_SUN_STUDIO_AS_TRUE 723 BUILD_ARMV8_CRC_TESTS_FALSE 724 BUILD_ARMV8_CRC_TESTS_TRUE 725 BUILD_IFUNC_TESTS_FALSE 726 BUILD_IFUNC_TESTS_TRUE 727 BUILD_MOVBE_TESTS_FALSE 728 BUILD_MOVBE_TESTS_TRUE 729 BUILD_ADX_TESTS_FALSE 730 BUILD_ADX_TESTS_TRUE 731 BUILD_MPX_TESTS_FALSE 732 BUILD_MPX_TESTS_TRUE 733 BUILD_FMA_TESTS_FALSE 734 BUILD_FMA_TESTS_TRUE 735 BUILD_BMI_TESTS_FALSE 736 BUILD_BMI_TESTS_TRUE 737 BUILD_TSX_TESTS_FALSE 738 BUILD_TSX_TESTS_TRUE 739 BUILD_AVX2_TESTS_FALSE 740 BUILD_AVX2_TESTS_TRUE 741 BUILD_AVX_TESTS_FALSE 742 BUILD_AVX_TESTS_TRUE 743 BUILD_SSE42_TESTS_FALSE 744 BUILD_SSE42_TESTS_TRUE 745 BUILD_ADDR32_TESTS_FALSE 746 BUILD_ADDR32_TESTS_TRUE 747 BUILD_LOOPNEL_TESTS_FALSE 748 BUILD_LOOPNEL_TESTS_TRUE 749 BUILD_LZCNT_TESTS_FALSE 750 BUILD_LZCNT_TESTS_TRUE 751 BUILD_FMA4_TESTS_FALSE 752 BUILD_FMA4_TESTS_TRUE 753 BUILD_VPCLMULQDQ_TESTS_FALSE 754 BUILD_VPCLMULQDQ_TESTS_TRUE 755 BUILD_PCLMULQDQ_TESTS_FALSE 756 BUILD_PCLMULQDQ_TESTS_TRUE 757 BUILD_SSSE3_TESTS_FALSE 758 BUILD_SSSE3_TESTS_TRUE 759 BUILD_SSE3_TESTS_FALSE 760 BUILD_SSE3_TESTS_TRUE 761 FLAG_NO_BUILD_ID 762 FLAG_T_TEXT 763 FLAG_NO_PIE 764 HAVE_ASM_CONSTRAINT_P_FALSE 765 HAVE_ASM_CONSTRAINT_P_TRUE 766 HAVE_NESTED_FUNCTIONS_FALSE 767 HAVE_NESTED_FUNCTIONS_TRUE 768 GZ_ZLIB_GNU_FALSE 769 GZ_ZLIB_GNU_TRUE 770 GZ_ZLIB_FALSE 771 GZ_ZLIB_TRUE 772 DWARF4_FALSE 773 DWARF4_TRUE 774 FLAG_UNLIMITED_INLINE_UNIT_GROWTH 775 LIB_UBSAN 776 FLAG_FSANITIZE 777 FLAG_FNO_IPA_ICF 778 FLAG_FNO_STACK_PROTECTOR 779 FLAG_W_CAST_ALIGN 780 FLAG_W_EXTRA 781 FLAG_W_FORMAT_SECURITY 782 FLAG_W_MISSING_PARAMETER_TYPE 783 FLAG_W_IGNORED_QUALIFIERS 784 FLAG_W_OLD_STYLE_DECLARATION 785 FLAG_W_CAST_QUAL 786 FLAG_W_FORMAT_SIGNEDNESS 787 FLAG_W_FORMAT 788 FLAG_W_EMPTY_BODY 789 FLAG_W_WRITE_STRINGS 790 FLAG_W_NO_INFINITE_RECURSION 791 FLAG_W_NO_MISMATCHED_NEW_DELETE 792 FLAG_W_NO_STATIC_LOCAL_IN_INLINE 793 FLAG_W_NO_UNUSED_FUNCTION 794 FLAG_W_NO_UNINITIALIZED 795 FLAG_W_NO_POINTER_SIGN 796 FLAG_W_NO_OVERFLOW 797 FLAG_W_NO_NONNULL 798 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS 799 FLAG_MLONG_DOUBLE_128 800 HAS_MLONG_DOUBLE_128_FALSE 801 HAS_MLONG_DOUBLE_128_TRUE 802 PREFERRED_STACK_BOUNDARY_2 803 FLAG_MSSE 804 FLAG_MMMX 805 FLAG_OCTEON2 806 FLAG_OCTEON 807 FLAG_MIPS64 808 FLAG_MIPS32 809 FLAG_M64 810 FLAG_M32 811 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE 812 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE 813 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE 814 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE 815 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE 816 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE 817 HAS_ISA_3_00_FALSE 818 HAS_ISA_3_00_TRUE 819 SUPPORTS_HTM_FALSE 820 SUPPORTS_HTM_TRUE 821 BUILD_DFP_TESTS_FALSE 822 BUILD_DFP_TESTS_TRUE 823 HAS_DFP_FALSE 824 HAS_DFP_TRUE 825 HAS_VSX_FALSE 826 HAS_VSX_TRUE 827 HAS_ALTIVEC_FALSE 828 HAS_ALTIVEC_TRUE 829 HAS_ISA_2_07_FALSE 830 HAS_ISA_2_07_TRUE 831 HAS_ISA_2_06_FALSE 832 HAS_ISA_2_06_TRUE 833 HAS_ISA_2_05_FALSE 834 HAS_ISA_2_05_TRUE 835 HWCAP_HAS_HTM 836 HWCAP_HAS_ISA_3_00 837 HWCAP_HAS_ISA_2_07 838 HWCAP_HAS_ISA_2_06 839 HWCAP_HAS_ISA_2_05 840 HWCAP_HAS_DFP 841 HWCAP_HAS_VSX 842 HWCAP_HAS_ALTIVEC 843 HAVE_GNU_STPNCPY_FALSE 844 HAVE_GNU_STPNCPY_TRUE 845 HAVE_AT_FDCWD_FALSE 846 HAVE_AT_FDCWD_TRUE 847 VGCONF_PLATVARIANT_IS_ANDROID_FALSE 848 VGCONF_PLATVARIANT_IS_ANDROID_TRUE 849 VGCONF_PLATVARIANT_IS_VANILLA_FALSE 850 VGCONF_PLATVARIANT_IS_VANILLA_TRUE 851 VGCONF_PLATVARIANT 852 GLIBC_VERSION 853 EGREP 854 GREP 855 DEFAULT_SUPP 856 VG_TMPDIR 857 VALT_LOAD_ADDRESS_SEC 858 VALT_LOAD_ADDRESS_PRI 859 VGCONF_HAVE_PLATFORM_SEC_FALSE 860 VGCONF_HAVE_PLATFORM_SEC_TRUE 861 VGCONF_OS_IS_SOLARIS_FALSE 862 VGCONF_OS_IS_SOLARIS_TRUE 863 VGCONF_OS_IS_DARWIN_FALSE 864 VGCONF_OS_IS_DARWIN_TRUE 865 VGCONF_OS_IS_LINUX_FALSE 866 VGCONF_OS_IS_LINUX_TRUE 867 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE 868 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE 869 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE 870 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE 871 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE 872 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE 873 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE 874 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE 875 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE 876 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE 877 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE 878 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE 879 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE 880 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE 881 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE 882 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE 883 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE 884 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE 885 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE 886 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE 887 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE 888 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE 889 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE 890 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE 891 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE 892 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE 893 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE 894 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE 895 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE 896 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE 897 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE 898 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE 899 VGCONF_ARCHS_INCLUDE_S390X_FALSE 900 VGCONF_ARCHS_INCLUDE_S390X_TRUE 901 VGCONF_ARCHS_INCLUDE_ARM64_FALSE 902 VGCONF_ARCHS_INCLUDE_ARM64_TRUE 903 VGCONF_ARCHS_INCLUDE_ARM_FALSE 904 VGCONF_ARCHS_INCLUDE_ARM_TRUE 905 VGCONF_ARCHS_INCLUDE_PPC64_FALSE 906 VGCONF_ARCHS_INCLUDE_PPC64_TRUE 907 VGCONF_ARCHS_INCLUDE_PPC32_FALSE 908 VGCONF_ARCHS_INCLUDE_PPC32_TRUE 909 VGCONF_ARCHS_INCLUDE_AMD64_FALSE 910 VGCONF_ARCHS_INCLUDE_AMD64_TRUE 911 VGCONF_ARCHS_INCLUDE_X86_FALSE 912 VGCONF_ARCHS_INCLUDE_X86_TRUE 913 VGCONF_PLATFORM_SEC_CAPS 914 VGCONF_PLATFORM_PRI_CAPS 915 VGCONF_ARCH_SEC 916 VGCONF_ARCH_PRI 917 VGCONF_OS 918 host_os 919 host_vendor 920 host_cpu 921 host 922 build_os 923 build_vendor 924 build_cpu 925 build 926 COMPILER_IS_ICC_FALSE 927 COMPILER_IS_ICC_TRUE 928 COMPILER_IS_CLANG_FALSE 929 COMPILER_IS_CLANG_TRUE 930 DIFF 931 am__fastdepCCAS_FALSE 932 am__fastdepCCAS_TRUE 933 CCASDEPMODE 934 CCASFLAGS 935 CCAS 936 GDB 937 PERL 938 AR 939 SED 940 RANLIB 941 am__fastdepCXX_FALSE 942 am__fastdepCXX_TRUE 943 CXXDEPMODE 944 ac_ct_CXX 945 CXXFLAGS 946 CXX 947 CPP 948 am__fastdepCC_FALSE 949 am__fastdepCC_TRUE 950 CCDEPMODE 951 am__nodep 952 AMDEPBACKSLASH 953 AMDEP_FALSE 954 AMDEP_TRUE 955 am__quote 956 am__include 957 DEPDIR 958 OBJEXT 959 EXEEXT 960 ac_ct_CC 961 CPPFLAGS 962 LDFLAGS 963 CFLAGS 964 CC 965 LN_S 966 MAINT 967 MAINTAINER_MODE_FALSE 968 MAINTAINER_MODE_TRUE 969 AM_BACKSLASH 970 AM_DEFAULT_VERBOSITY 971 AM_DEFAULT_V 972 AM_V 973 am__untar 974 am__tar 975 AMTAR 976 am__leading_dot 977 SET_MAKE 978 AWK 979 mkdir_p 980 MKDIR_P 981 INSTALL_STRIP_PROGRAM 982 STRIP 983 install_sh 984 MAKEINFO 985 AUTOHEADER 986 AUTOMAKE 987 AUTOCONF 988 ACLOCAL 989 VERSION 990 PACKAGE 991 CYGPATH_W 992 am__isrc 993 INSTALL_DATA 994 INSTALL_SCRIPT 995 INSTALL_PROGRAM 996 target_alias 997 host_alias 998 build_alias 999 LIBS 1000 ECHO_T 1001 ECHO_N 1002 ECHO_C 1003 DEFS 1004 mandir 1005 localedir 1006 libdir 1007 psdir 1008 pdfdir 1009 dvidir 1010 htmldir 1011 infodir 1012 docdir 1013 oldincludedir 1014 includedir 1015 localstatedir 1016 sharedstatedir 1017 sysconfdir 1018 datadir 1019 datarootdir 1020 libexecdir 1021 sbindir 1022 bindir 1023 program_transform_name 1024 prefix 1025 exec_prefix 1026 PACKAGE_URL 1027 PACKAGE_BUGREPORT 1028 PACKAGE_STRING 1029 PACKAGE_VERSION 1030 PACKAGE_TARNAME 1031 PACKAGE_NAME 1032 PATH_SEPARATOR 1033 SHELL' 1034 ac_subst_files='' 1035 ac_user_opts=' 1036 enable_option_checking 1037 enable_silent_rules 1038 enable_maintainer_mode 1039 enable_dependency_tracking 1040 enable_only64bit 1041 enable_only32bit 1042 enable_inner 1043 enable_ubsan 1044 with_tmpdir 1045 enable_tls 1046 with_mpicc 1047 ' 1048 ac_precious_vars='build_alias 1049 host_alias 1050 target_alias 1051 CC 1052 CFLAGS 1053 LDFLAGS 1054 LIBS 1055 CPPFLAGS 1056 CPP 1057 CXX 1058 CXXFLAGS 1059 CCC 1060 AR 1061 CCAS 1062 CCASFLAGS' 1063 1064 1065 # Initialize some variables set by options. 1066 ac_init_help= 1067 ac_init_version=false 1068 ac_unrecognized_opts= 1069 ac_unrecognized_sep= 1070 # The variables have the same names as the options, with 1071 # dashes changed to underlines. 1072 cache_file=/dev/null 1073 exec_prefix=NONE 1074 no_create= 1075 no_recursion= 1076 prefix=NONE 1077 program_prefix=NONE 1078 program_suffix=NONE 1079 program_transform_name=s,x,x, 1080 silent= 1081 site= 1082 srcdir= 1083 verbose= 1084 x_includes=NONE 1085 x_libraries=NONE 1086 1087 # Installation directory options. 1088 # These are left unexpanded so users can "make install exec_prefix=/foo" 1089 # and all the variables that are supposed to be based on exec_prefix 1090 # by default will actually change. 1091 # Use braces instead of parens because sh, perl, etc. also accept them. 1092 # (The list follows the same order as the GNU Coding Standards.) 1093 bindir='${exec_prefix}/bin' 1094 sbindir='${exec_prefix}/sbin' 1095 libexecdir='${exec_prefix}/libexec' 1096 datarootdir='${prefix}/share' 1097 datadir='${datarootdir}' 1098 sysconfdir='${prefix}/etc' 1099 sharedstatedir='${prefix}/com' 1100 localstatedir='${prefix}/var' 1101 includedir='${prefix}/include' 1102 oldincludedir='/usr/include' 1103 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1104 infodir='${datarootdir}/info' 1105 htmldir='${docdir}' 1106 dvidir='${docdir}' 1107 pdfdir='${docdir}' 1108 psdir='${docdir}' 1109 libdir='${exec_prefix}/lib' 1110 localedir='${datarootdir}/locale' 1111 mandir='${datarootdir}/man' 1112 1113 ac_prev= 1114 ac_dashdash= 1115 for ac_option 1116 do 1117 # If the previous option needs an argument, assign it. 1118 if test -n "$ac_prev"; then 1119 eval $ac_prev=\$ac_option 1120 ac_prev= 1121 continue 1122 fi 1123 1124 case $ac_option in 1125 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1126 *=) ac_optarg= ;; 1127 *) ac_optarg=yes ;; 1128 esac 1129 1130 # Accept the important Cygnus configure options, so we can diagnose typos. 1131 1132 case $ac_dashdash$ac_option in 1133 --) 1134 ac_dashdash=yes ;; 1135 1136 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1137 ac_prev=bindir ;; 1138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1139 bindir=$ac_optarg ;; 1140 1141 -build | --build | --buil | --bui | --bu) 1142 ac_prev=build_alias ;; 1143 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1144 build_alias=$ac_optarg ;; 1145 1146 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1148 ac_prev=cache_file ;; 1149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1151 cache_file=$ac_optarg ;; 1152 1153 --config-cache | -C) 1154 cache_file=config.cache ;; 1155 1156 -datadir | --datadir | --datadi | --datad) 1157 ac_prev=datadir ;; 1158 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1159 datadir=$ac_optarg ;; 1160 1161 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1162 | --dataroo | --dataro | --datar) 1163 ac_prev=datarootdir ;; 1164 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1165 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1166 datarootdir=$ac_optarg ;; 1167 1168 -disable-* | --disable-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid feature name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177 "enable_$ac_useropt" 1178 "*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval enable_$ac_useropt=no ;; 1183 1184 -docdir | --docdir | --docdi | --doc | --do) 1185 ac_prev=docdir ;; 1186 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1187 docdir=$ac_optarg ;; 1188 1189 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1190 ac_prev=dvidir ;; 1191 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1192 dvidir=$ac_optarg ;; 1193 1194 -enable-* | --enable-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid feature name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203 "enable_$ac_useropt" 1204 "*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval enable_$ac_useropt=\$ac_optarg ;; 1209 1210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1212 | --exec | --exe | --ex) 1213 ac_prev=exec_prefix ;; 1214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1216 | --exec=* | --exe=* | --ex=*) 1217 exec_prefix=$ac_optarg ;; 1218 1219 -gas | --gas | --ga | --g) 1220 # Obsolete; use --with-gas. 1221 with_gas=yes ;; 1222 1223 -help | --help | --hel | --he | -h) 1224 ac_init_help=long ;; 1225 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1226 ac_init_help=recursive ;; 1227 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1228 ac_init_help=short ;; 1229 1230 -host | --host | --hos | --ho) 1231 ac_prev=host_alias ;; 1232 -host=* | --host=* | --hos=* | --ho=*) 1233 host_alias=$ac_optarg ;; 1234 1235 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1236 ac_prev=htmldir ;; 1237 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1238 | --ht=*) 1239 htmldir=$ac_optarg ;; 1240 1241 -includedir | --includedir | --includedi | --included | --include \ 1242 | --includ | --inclu | --incl | --inc) 1243 ac_prev=includedir ;; 1244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1245 | --includ=* | --inclu=* | --incl=* | --inc=*) 1246 includedir=$ac_optarg ;; 1247 1248 -infodir | --infodir | --infodi | --infod | --info | --inf) 1249 ac_prev=infodir ;; 1250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1251 infodir=$ac_optarg ;; 1252 1253 -libdir | --libdir | --libdi | --libd) 1254 ac_prev=libdir ;; 1255 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1256 libdir=$ac_optarg ;; 1257 1258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1259 | --libexe | --libex | --libe) 1260 ac_prev=libexecdir ;; 1261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1262 | --libexe=* | --libex=* | --libe=*) 1263 libexecdir=$ac_optarg ;; 1264 1265 -localedir | --localedir | --localedi | --localed | --locale) 1266 ac_prev=localedir ;; 1267 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1268 localedir=$ac_optarg ;; 1269 1270 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1271 | --localstate | --localstat | --localsta | --localst | --locals) 1272 ac_prev=localstatedir ;; 1273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1274 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1275 localstatedir=$ac_optarg ;; 1276 1277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1278 ac_prev=mandir ;; 1279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1280 mandir=$ac_optarg ;; 1281 1282 -nfp | --nfp | --nf) 1283 # Obsolete; use --without-fp. 1284 with_fp=no ;; 1285 1286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1287 | --no-cr | --no-c | -n) 1288 no_create=yes ;; 1289 1290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1292 no_recursion=yes ;; 1293 1294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1296 | --oldin | --oldi | --old | --ol | --o) 1297 ac_prev=oldincludedir ;; 1298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1301 oldincludedir=$ac_optarg ;; 1302 1303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1304 ac_prev=prefix ;; 1305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1306 prefix=$ac_optarg ;; 1307 1308 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1309 | --program-pre | --program-pr | --program-p) 1310 ac_prev=program_prefix ;; 1311 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1313 program_prefix=$ac_optarg ;; 1314 1315 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1316 | --program-suf | --program-su | --program-s) 1317 ac_prev=program_suffix ;; 1318 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1320 program_suffix=$ac_optarg ;; 1321 1322 -program-transform-name | --program-transform-name \ 1323 | --program-transform-nam | --program-transform-na \ 1324 | --program-transform-n | --program-transform- \ 1325 | --program-transform | --program-transfor \ 1326 | --program-transfo | --program-transf \ 1327 | --program-trans | --program-tran \ 1328 | --progr-tra | --program-tr | --program-t) 1329 ac_prev=program_transform_name ;; 1330 -program-transform-name=* | --program-transform-name=* \ 1331 | --program-transform-nam=* | --program-transform-na=* \ 1332 | --program-transform-n=* | --program-transform-=* \ 1333 | --program-transform=* | --program-transfor=* \ 1334 | --program-transfo=* | --program-transf=* \ 1335 | --program-trans=* | --program-tran=* \ 1336 | --progr-tra=* | --program-tr=* | --program-t=*) 1337 program_transform_name=$ac_optarg ;; 1338 1339 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1340 ac_prev=pdfdir ;; 1341 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1342 pdfdir=$ac_optarg ;; 1343 1344 -psdir | --psdir | --psdi | --psd | --ps) 1345 ac_prev=psdir ;; 1346 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1347 psdir=$ac_optarg ;; 1348 1349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1350 | -silent | --silent | --silen | --sile | --sil) 1351 silent=yes ;; 1352 1353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1354 ac_prev=sbindir ;; 1355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1356 | --sbi=* | --sb=*) 1357 sbindir=$ac_optarg ;; 1358 1359 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1361 | --sharedst | --shareds | --shared | --share | --shar \ 1362 | --sha | --sh) 1363 ac_prev=sharedstatedir ;; 1364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1367 | --sha=* | --sh=*) 1368 sharedstatedir=$ac_optarg ;; 1369 1370 -site | --site | --sit) 1371 ac_prev=site ;; 1372 -site=* | --site=* | --sit=*) 1373 site=$ac_optarg ;; 1374 1375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1376 ac_prev=srcdir ;; 1377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1378 srcdir=$ac_optarg ;; 1379 1380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1381 | --syscon | --sysco | --sysc | --sys | --sy) 1382 ac_prev=sysconfdir ;; 1383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1385 sysconfdir=$ac_optarg ;; 1386 1387 -target | --target | --targe | --targ | --tar | --ta | --t) 1388 ac_prev=target_alias ;; 1389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1390 target_alias=$ac_optarg ;; 1391 1392 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1393 verbose=yes ;; 1394 1395 -version | --version | --versio | --versi | --vers | -V) 1396 ac_init_version=: ;; 1397 1398 -with-* | --with-*) 1399 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1400 # Reject names that are not valid shell variable names. 1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1402 as_fn_error $? "invalid package name: $ac_useropt" 1403 ac_useropt_orig=$ac_useropt 1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1405 case $ac_user_opts in 1406 *" 1407 "with_$ac_useropt" 1408 "*) ;; 1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1410 ac_unrecognized_sep=', ';; 1411 esac 1412 eval with_$ac_useropt=\$ac_optarg ;; 1413 1414 -without-* | --without-*) 1415 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1416 # Reject names that are not valid shell variable names. 1417 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1418 as_fn_error $? "invalid package name: $ac_useropt" 1419 ac_useropt_orig=$ac_useropt 1420 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1421 case $ac_user_opts in 1422 *" 1423 "with_$ac_useropt" 1424 "*) ;; 1425 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1426 ac_unrecognized_sep=', ';; 1427 esac 1428 eval with_$ac_useropt=no ;; 1429 1430 --x) 1431 # Obsolete; use --with-x. 1432 with_x=yes ;; 1433 1434 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1435 | --x-incl | --x-inc | --x-in | --x-i) 1436 ac_prev=x_includes ;; 1437 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1438 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1439 x_includes=$ac_optarg ;; 1440 1441 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1442 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1443 ac_prev=x_libraries ;; 1444 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1445 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1446 x_libraries=$ac_optarg ;; 1447 1448 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1449 Try \`$0 --help' for more information" 1450 ;; 1451 1452 *=*) 1453 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1454 # Reject names that are not valid shell variable names. 1455 case $ac_envvar in #( 1456 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1457 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1458 esac 1459 eval $ac_envvar=\$ac_optarg 1460 export $ac_envvar ;; 1461 1462 *) 1463 # FIXME: should be removed in autoconf 3.0. 1464 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1465 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1466 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1467 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1468 ;; 1469 1470 esac 1471 done 1472 1473 if test -n "$ac_prev"; then 1474 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1475 as_fn_error $? "missing argument to $ac_option" 1476 fi 1477 1478 if test -n "$ac_unrecognized_opts"; then 1479 case $enable_option_checking in 1480 no) ;; 1481 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1482 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1483 esac 1484 fi 1485 1486 # Check all directory arguments for consistency. 1487 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1488 datadir sysconfdir sharedstatedir localstatedir includedir \ 1489 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1490 libdir localedir mandir 1491 do 1492 eval ac_val=\$$ac_var 1493 # Remove trailing slashes. 1494 case $ac_val in 1495 */ ) 1496 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1497 eval $ac_var=\$ac_val;; 1498 esac 1499 # Be sure to have absolute directory names. 1500 case $ac_val in 1501 [\\/$]* | ?:[\\/]* ) continue;; 1502 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1503 esac 1504 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1505 done 1506 1507 # There might be people who depend on the old broken behavior: `$host' 1508 # used to hold the argument of --host etc. 1509 # FIXME: To remove some day. 1510 build=$build_alias 1511 host=$host_alias 1512 target=$target_alias 1513 1514 # FIXME: To remove some day. 1515 if test "x$host_alias" != x; then 1516 if test "x$build_alias" = x; then 1517 cross_compiling=maybe 1518 elif test "x$build_alias" != "x$host_alias"; then 1519 cross_compiling=yes 1520 fi 1521 fi 1522 1523 ac_tool_prefix= 1524 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1525 1526 test "$silent" = yes && exec 6>/dev/null 1527 1528 1529 ac_pwd=`pwd` && test -n "$ac_pwd" && 1530 ac_ls_di=`ls -di .` && 1531 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1532 as_fn_error $? "working directory cannot be determined" 1533 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1534 as_fn_error $? "pwd does not report name of working directory" 1535 1536 1537 # Find the source files, if location was not specified. 1538 if test -z "$srcdir"; then 1539 ac_srcdir_defaulted=yes 1540 # Try the directory containing this script, then the parent directory. 1541 ac_confdir=`$as_dirname -- "$as_myself" || 1542 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1543 X"$as_myself" : 'X\(//\)[^/]' \| \ 1544 X"$as_myself" : 'X\(//\)$' \| \ 1545 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1546 $as_echo X"$as_myself" | 1547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1548 s//\1/ 1549 q 1550 } 1551 /^X\(\/\/\)[^/].*/{ 1552 s//\1/ 1553 q 1554 } 1555 /^X\(\/\/\)$/{ 1556 s//\1/ 1557 q 1558 } 1559 /^X\(\/\).*/{ 1560 s//\1/ 1561 q 1562 } 1563 s/.*/./; q'` 1564 srcdir=$ac_confdir 1565 if test ! -r "$srcdir/$ac_unique_file"; then 1566 srcdir=.. 1567 fi 1568 else 1569 ac_srcdir_defaulted=no 1570 fi 1571 if test ! -r "$srcdir/$ac_unique_file"; then 1572 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1573 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1574 fi 1575 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1576 ac_abs_confdir=`( 1577 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1578 pwd)` 1579 # When building in place, set srcdir=. 1580 if test "$ac_abs_confdir" = "$ac_pwd"; then 1581 srcdir=. 1582 fi 1583 # Remove unnecessary trailing slashes from srcdir. 1584 # Double slashes in file names in object file debugging info 1585 # mess up M-x gdb in Emacs. 1586 case $srcdir in 1587 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1588 esac 1589 for ac_var in $ac_precious_vars; do 1590 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1591 eval ac_env_${ac_var}_value=\$${ac_var} 1592 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1593 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1594 done 1595 1596 # 1597 # Report the --help message. 1598 # 1599 if test "$ac_init_help" = "long"; then 1600 # Omit some internal or obsolete options to make the list less imposing. 1601 # This message is too long to be a string in the A/UX 3.1 sh. 1602 cat <<_ACEOF 1603 \`configure' configures Valgrind 3.13.0 to adapt to many kinds of systems. 1604 1605 Usage: $0 [OPTION]... [VAR=VALUE]... 1606 1607 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1608 VAR=VALUE. See below for descriptions of some of the useful variables. 1609 1610 Defaults for the options are specified in brackets. 1611 1612 Configuration: 1613 -h, --help display this help and exit 1614 --help=short display options specific to this package 1615 --help=recursive display the short help of all the included packages 1616 -V, --version display version information and exit 1617 -q, --quiet, --silent do not print \`checking ...' messages 1618 --cache-file=FILE cache test results in FILE [disabled] 1619 -C, --config-cache alias for \`--cache-file=config.cache' 1620 -n, --no-create do not create output files 1621 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1622 1623 Installation directories: 1624 --prefix=PREFIX install architecture-independent files in PREFIX 1625 [$ac_default_prefix] 1626 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1627 [PREFIX] 1628 1629 By default, \`make install' will install all the files in 1630 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1631 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1632 for instance \`--prefix=\$HOME'. 1633 1634 For better control, use the options below. 1635 1636 Fine tuning of the installation directories: 1637 --bindir=DIR user executables [EPREFIX/bin] 1638 --sbindir=DIR system admin executables [EPREFIX/sbin] 1639 --libexecdir=DIR program executables [EPREFIX/libexec] 1640 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1641 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1642 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1643 --libdir=DIR object code libraries [EPREFIX/lib] 1644 --includedir=DIR C header files [PREFIX/include] 1645 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1646 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1647 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1648 --infodir=DIR info documentation [DATAROOTDIR/info] 1649 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1650 --mandir=DIR man documentation [DATAROOTDIR/man] 1651 --docdir=DIR documentation root [DATAROOTDIR/doc/valgrind] 1652 --htmldir=DIR html documentation [DOCDIR] 1653 --dvidir=DIR dvi documentation [DOCDIR] 1654 --pdfdir=DIR pdf documentation [DOCDIR] 1655 --psdir=DIR ps documentation [DOCDIR] 1656 _ACEOF 1657 1658 cat <<\_ACEOF 1659 1660 Program names: 1661 --program-prefix=PREFIX prepend PREFIX to installed program names 1662 --program-suffix=SUFFIX append SUFFIX to installed program names 1663 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1664 1665 System types: 1666 --build=BUILD configure for building on BUILD [guessed] 1667 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1668 _ACEOF 1669 fi 1670 1671 if test -n "$ac_init_help"; then 1672 case $ac_init_help in 1673 short | recursive ) echo "Configuration of Valgrind 3.13.0:";; 1674 esac 1675 cat <<\_ACEOF 1676 1677 Optional Features: 1678 --disable-option-checking ignore unrecognized --enable/--with options 1679 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1680 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1681 --enable-silent-rules less verbose build output (undo: "make V=1") 1682 --disable-silent-rules verbose build output (undo: "make V=0") 1683 --enable-maintainer-mode 1684 enable make rules and dependencies not useful (and 1685 sometimes confusing) to the casual installer 1686 --enable-dependency-tracking 1687 do not reject slow dependency extractors 1688 --disable-dependency-tracking 1689 speeds up one-time build 1690 --enable-only64bit do a 64-bit only build 1691 --enable-only32bit do a 32-bit only build 1692 --enable-inner enables self-hosting 1693 --enable-ubsan enables the undefined behaviour sanitiser 1694 --enable-tls platform supports TLS 1695 1696 Optional Packages: 1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1699 --with-tmpdir=PATH Specify path for temporary files 1700 --with-mpicc= Specify name of MPI2-ised C compiler 1701 1702 Some influential environment variables: 1703 CC C compiler command 1704 CFLAGS C compiler flags 1705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1706 nonstandard directory <lib dir> 1707 LIBS libraries to pass to the linker, e.g. -l<library> 1708 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1709 you have headers in a nonstandard directory <include dir> 1710 CPP C preprocessor 1711 CXX C++ compiler command 1712 CXXFLAGS C++ compiler flags 1713 AR Archiver command 1714 CCAS assembler compiler command (defaults to CC) 1715 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1716 1717 Use these variables to override the choices made by `configure' or to help 1718 it to find libraries and programs with nonstandard names/locations. 1719 1720 Report bugs to <valgrind-users@lists.sourceforge.net>. 1721 _ACEOF 1722 ac_status=$? 1723 fi 1724 1725 if test "$ac_init_help" = "recursive"; then 1726 # If there are subdirs, report their specific --help. 1727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1728 test -d "$ac_dir" || 1729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1730 continue 1731 ac_builddir=. 1732 1733 case "$ac_dir" in 1734 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1735 *) 1736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1737 # A ".." for each directory in $ac_dir_suffix. 1738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1739 case $ac_top_builddir_sub in 1740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1742 esac ;; 1743 esac 1744 ac_abs_top_builddir=$ac_pwd 1745 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1746 # for backward compatibility: 1747 ac_top_builddir=$ac_top_build_prefix 1748 1749 case $srcdir in 1750 .) # We are building in place. 1751 ac_srcdir=. 1752 ac_top_srcdir=$ac_top_builddir_sub 1753 ac_abs_top_srcdir=$ac_pwd ;; 1754 [\\/]* | ?:[\\/]* ) # Absolute name. 1755 ac_srcdir=$srcdir$ac_dir_suffix; 1756 ac_top_srcdir=$srcdir 1757 ac_abs_top_srcdir=$srcdir ;; 1758 *) # Relative name. 1759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1760 ac_top_srcdir=$ac_top_build_prefix$srcdir 1761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1762 esac 1763 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1764 1765 cd "$ac_dir" || { ac_status=$?; continue; } 1766 # Check for guested configure. 1767 if test -f "$ac_srcdir/configure.gnu"; then 1768 echo && 1769 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1770 elif test -f "$ac_srcdir/configure"; then 1771 echo && 1772 $SHELL "$ac_srcdir/configure" --help=recursive 1773 else 1774 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1775 fi || ac_status=$? 1776 cd "$ac_pwd" || { ac_status=$?; break; } 1777 done 1778 fi 1779 1780 test -n "$ac_init_help" && exit $ac_status 1781 if $ac_init_version; then 1782 cat <<\_ACEOF 1783 Valgrind configure 3.13.0 1784 generated by GNU Autoconf 2.69 1785 1786 Copyright (C) 2012 Free Software Foundation, Inc. 1787 This configure script is free software; the Free Software Foundation 1788 gives unlimited permission to copy, distribute and modify it. 1789 _ACEOF 1790 exit 1791 fi 1792 1793 ## ------------------------ ## 1794 ## Autoconf initialization. ## 1795 ## ------------------------ ## 1796 1797 # ac_fn_c_try_compile LINENO 1798 # -------------------------- 1799 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1800 ac_fn_c_try_compile () 1801 { 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 rm -f conftest.$ac_objext 1804 if { { ac_try="$ac_compile" 1805 case "(($ac_try" in 1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1807 *) ac_try_echo=$ac_try;; 1808 esac 1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1810 $as_echo "$ac_try_echo"; } >&5 1811 (eval "$ac_compile") 2>conftest.err 1812 ac_status=$? 1813 if test -s conftest.err; then 1814 grep -v '^ *+' conftest.err >conftest.er1 1815 cat conftest.er1 >&5 1816 mv -f conftest.er1 conftest.err 1817 fi 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; } && { 1820 test -z "$ac_c_werror_flag" || 1821 test ! -s conftest.err 1822 } && test -s conftest.$ac_objext; then : 1823 ac_retval=0 1824 else 1825 $as_echo "$as_me: failed program was:" >&5 1826 sed 's/^/| /' conftest.$ac_ext >&5 1827 1828 ac_retval=1 1829 fi 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833 } # ac_fn_c_try_compile 1834 1835 # ac_fn_c_try_cpp LINENO 1836 # ---------------------- 1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1838 ac_fn_c_try_cpp () 1839 { 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 if { { ac_try="$ac_cpp conftest.$ac_ext" 1842 case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845 esac 1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847 $as_echo "$ac_try_echo"; } >&5 1848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1849 ac_status=$? 1850 if test -s conftest.err; then 1851 grep -v '^ *+' conftest.err >conftest.er1 1852 cat conftest.er1 >&5 1853 mv -f conftest.er1 conftest.err 1854 fi 1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1856 test $ac_status = 0; } > conftest.i && { 1857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1858 test ! -s conftest.err 1859 }; then : 1860 ac_retval=0 1861 else 1862 $as_echo "$as_me: failed program was:" >&5 1863 sed 's/^/| /' conftest.$ac_ext >&5 1864 1865 ac_retval=1 1866 fi 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1868 as_fn_set_status $ac_retval 1869 1870 } # ac_fn_c_try_cpp 1871 1872 # ac_fn_cxx_try_compile LINENO 1873 # ---------------------------- 1874 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1875 ac_fn_cxx_try_compile () 1876 { 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 rm -f conftest.$ac_objext 1879 if { { ac_try="$ac_compile" 1880 case "(($ac_try" in 1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1882 *) ac_try_echo=$ac_try;; 1883 esac 1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1885 $as_echo "$ac_try_echo"; } >&5 1886 (eval "$ac_compile") 2>conftest.err 1887 ac_status=$? 1888 if test -s conftest.err; then 1889 grep -v '^ *+' conftest.err >conftest.er1 1890 cat conftest.er1 >&5 1891 mv -f conftest.er1 conftest.err 1892 fi 1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; } && { 1895 test -z "$ac_cxx_werror_flag" || 1896 test ! -s conftest.err 1897 } && test -s conftest.$ac_objext; then : 1898 ac_retval=0 1899 else 1900 $as_echo "$as_me: failed program was:" >&5 1901 sed 's/^/| /' conftest.$ac_ext >&5 1902 1903 ac_retval=1 1904 fi 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 as_fn_set_status $ac_retval 1907 1908 } # ac_fn_cxx_try_compile 1909 1910 # ac_fn_c_try_link LINENO 1911 # ----------------------- 1912 # Try to link conftest.$ac_ext, and return whether this succeeded. 1913 ac_fn_c_try_link () 1914 { 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 rm -f conftest.$ac_objext conftest$ac_exeext 1917 if { { ac_try="$ac_link" 1918 case "(($ac_try" in 1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1920 *) ac_try_echo=$ac_try;; 1921 esac 1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1923 $as_echo "$ac_try_echo"; } >&5 1924 (eval "$ac_link") 2>conftest.err 1925 ac_status=$? 1926 if test -s conftest.err; then 1927 grep -v '^ *+' conftest.err >conftest.er1 1928 cat conftest.er1 >&5 1929 mv -f conftest.er1 conftest.err 1930 fi 1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1932 test $ac_status = 0; } && { 1933 test -z "$ac_c_werror_flag" || 1934 test ! -s conftest.err 1935 } && test -s conftest$ac_exeext && { 1936 test "$cross_compiling" = yes || 1937 test -x conftest$ac_exeext 1938 }; then : 1939 ac_retval=0 1940 else 1941 $as_echo "$as_me: failed program was:" >&5 1942 sed 's/^/| /' conftest.$ac_ext >&5 1943 1944 ac_retval=1 1945 fi 1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1948 # interfere with the next link command; also delete a directory that is 1949 # left behind by Apple's compiler. We do this before executing the actions. 1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 as_fn_set_status $ac_retval 1953 1954 } # ac_fn_c_try_link 1955 1956 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1957 # ------------------------------------------------------- 1958 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1959 # the include files in INCLUDES and setting the cache variable VAR 1960 # accordingly. 1961 ac_fn_c_check_header_mongrel () 1962 { 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 if eval \${$3+:} false; then : 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1966 $as_echo_n "checking for $2... " >&6; } 1967 if eval \${$3+:} false; then : 1968 $as_echo_n "(cached) " >&6 1969 fi 1970 eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972 $as_echo "$ac_res" >&6; } 1973 else 1974 # Is the header compilable? 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1976 $as_echo_n "checking $2 usability... " >&6; } 1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1978 /* end confdefs.h. */ 1979 $4 1980 #include <$2> 1981 _ACEOF 1982 if ac_fn_c_try_compile "$LINENO"; then : 1983 ac_header_compiler=yes 1984 else 1985 ac_header_compiler=no 1986 fi 1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1989 $as_echo "$ac_header_compiler" >&6; } 1990 1991 # Is the header present? 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1993 $as_echo_n "checking $2 presence... " >&6; } 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995 /* end confdefs.h. */ 1996 #include <$2> 1997 _ACEOF 1998 if ac_fn_c_try_cpp "$LINENO"; then : 1999 ac_header_preproc=yes 2000 else 2001 ac_header_preproc=no 2002 fi 2003 rm -f conftest.err conftest.i conftest.$ac_ext 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2005 $as_echo "$ac_header_preproc" >&6; } 2006 2007 # So? What about this header? 2008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2009 yes:no: ) 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2011 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2014 ;; 2015 no:yes:* ) 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2017 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2019 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2021 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2023 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2025 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2026 ( $as_echo "## --------------------------------------------------- ## 2027 ## Report this to valgrind-users (at] lists.sourceforge.net ## 2028 ## --------------------------------------------------- ##" 2029 ) | sed "s/^/$as_me: WARNING: /" >&2 2030 ;; 2031 esac 2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2033 $as_echo_n "checking for $2... " >&6; } 2034 if eval \${$3+:} false; then : 2035 $as_echo_n "(cached) " >&6 2036 else 2037 eval "$3=\$ac_header_compiler" 2038 fi 2039 eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041 $as_echo "$ac_res" >&6; } 2042 fi 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 2045 } # ac_fn_c_check_header_mongrel 2046 2047 # ac_fn_c_try_run LINENO 2048 # ---------------------- 2049 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2050 # that executables *can* be run. 2051 ac_fn_c_try_run () 2052 { 2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2054 if { { ac_try="$ac_link" 2055 case "(($ac_try" in 2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2057 *) ac_try_echo=$ac_try;; 2058 esac 2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2060 $as_echo "$ac_try_echo"; } >&5 2061 (eval "$ac_link") 2>&5 2062 ac_status=$? 2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2064 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2065 { { case "(($ac_try" in 2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2067 *) ac_try_echo=$ac_try;; 2068 esac 2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2070 $as_echo "$ac_try_echo"; } >&5 2071 (eval "$ac_try") 2>&5 2072 ac_status=$? 2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2074 test $ac_status = 0; }; }; then : 2075 ac_retval=0 2076 else 2077 $as_echo "$as_me: program exited with status $ac_status" >&5 2078 $as_echo "$as_me: failed program was:" >&5 2079 sed 's/^/| /' conftest.$ac_ext >&5 2080 2081 ac_retval=$ac_status 2082 fi 2083 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2085 as_fn_set_status $ac_retval 2086 2087 } # ac_fn_c_try_run 2088 2089 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2090 # ------------------------------------------------------- 2091 # Tests whether HEADER exists and can be compiled using the include files in 2092 # INCLUDES, setting the cache variable VAR accordingly. 2093 ac_fn_c_check_header_compile () 2094 { 2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2097 $as_echo_n "checking for $2... " >&6; } 2098 if eval \${$3+:} false; then : 2099 $as_echo_n "(cached) " >&6 2100 else 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102 /* end confdefs.h. */ 2103 $4 2104 #include <$2> 2105 _ACEOF 2106 if ac_fn_c_try_compile "$LINENO"; then : 2107 eval "$3=yes" 2108 else 2109 eval "$3=no" 2110 fi 2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2112 fi 2113 eval ac_res=\$$3 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2115 $as_echo "$ac_res" >&6; } 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2117 2118 } # ac_fn_c_check_header_compile 2119 2120 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2121 # ------------------------------------------- 2122 # Tests whether TYPE exists after having included INCLUDES, setting cache 2123 # variable VAR accordingly. 2124 ac_fn_c_check_type () 2125 { 2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2128 $as_echo_n "checking for $2... " >&6; } 2129 if eval \${$3+:} false; then : 2130 $as_echo_n "(cached) " >&6 2131 else 2132 eval "$3=no" 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134 /* end confdefs.h. */ 2135 $4 2136 int 2137 main () 2138 { 2139 if (sizeof ($2)) 2140 return 0; 2141 ; 2142 return 0; 2143 } 2144 _ACEOF 2145 if ac_fn_c_try_compile "$LINENO"; then : 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147 /* end confdefs.h. */ 2148 $4 2149 int 2150 main () 2151 { 2152 if (sizeof (($2))) 2153 return 0; 2154 ; 2155 return 0; 2156 } 2157 _ACEOF 2158 if ac_fn_c_try_compile "$LINENO"; then : 2159 2160 else 2161 eval "$3=yes" 2162 fi 2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2164 fi 2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2166 fi 2167 eval ac_res=\$$3 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2169 $as_echo "$ac_res" >&6; } 2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2171 2172 } # ac_fn_c_check_type 2173 2174 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2175 # ---------------------------------------------------- 2176 # Tries to find if the field MEMBER exists in type AGGR, after including 2177 # INCLUDES, setting cache variable VAR accordingly. 2178 ac_fn_c_check_member () 2179 { 2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2182 $as_echo_n "checking for $2.$3... " >&6; } 2183 if eval \${$4+:} false; then : 2184 $as_echo_n "(cached) " >&6 2185 else 2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2187 /* end confdefs.h. */ 2188 $5 2189 int 2190 main () 2191 { 2192 static $2 ac_aggr; 2193 if (ac_aggr.$3) 2194 return 0; 2195 ; 2196 return 0; 2197 } 2198 _ACEOF 2199 if ac_fn_c_try_compile "$LINENO"; then : 2200 eval "$4=yes" 2201 else 2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2203 /* end confdefs.h. */ 2204 $5 2205 int 2206 main () 2207 { 2208 static $2 ac_aggr; 2209 if (sizeof ac_aggr.$3) 2210 return 0; 2211 ; 2212 return 0; 2213 } 2214 _ACEOF 2215 if ac_fn_c_try_compile "$LINENO"; then : 2216 eval "$4=yes" 2217 else 2218 eval "$4=no" 2219 fi 2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2221 fi 2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2223 fi 2224 eval ac_res=\$$4 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2226 $as_echo "$ac_res" >&6; } 2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2228 2229 } # ac_fn_c_check_member 2230 2231 # ac_fn_c_check_func LINENO FUNC VAR 2232 # ---------------------------------- 2233 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2234 ac_fn_c_check_func () 2235 { 2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2238 $as_echo_n "checking for $2... " >&6; } 2239 if eval \${$3+:} false; then : 2240 $as_echo_n "(cached) " >&6 2241 else 2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243 /* end confdefs.h. */ 2244 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2245 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2246 #define $2 innocuous_$2 2247 2248 /* System header to define __stub macros and hopefully few prototypes, 2249 which can conflict with char $2 (); below. 2250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2251 <limits.h> exists even on freestanding compilers. */ 2252 2253 #ifdef __STDC__ 2254 # include <limits.h> 2255 #else 2256 # include <assert.h> 2257 #endif 2258 2259 #undef $2 2260 2261 /* Override any GCC internal prototype to avoid an error. 2262 Use char because int might match the return type of a GCC 2263 builtin and then its argument prototype would still apply. */ 2264 #ifdef __cplusplus 2265 extern "C" 2266 #endif 2267 char $2 (); 2268 /* The GNU C library defines this for functions which it implements 2269 to always fail with ENOSYS. Some functions are actually named 2270 something starting with __ and the normal name is an alias. */ 2271 #if defined __stub_$2 || defined __stub___$2 2272 choke me 2273 #endif 2274 2275 int 2276 main () 2277 { 2278 return $2 (); 2279 ; 2280 return 0; 2281 } 2282 _ACEOF 2283 if ac_fn_c_try_link "$LINENO"; then : 2284 eval "$3=yes" 2285 else 2286 eval "$3=no" 2287 fi 2288 rm -f core conftest.err conftest.$ac_objext \ 2289 conftest$ac_exeext conftest.$ac_ext 2290 fi 2291 eval ac_res=\$$3 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2293 $as_echo "$ac_res" >&6; } 2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2295 2296 } # ac_fn_c_check_func 2297 2298 # ac_fn_cxx_try_link LINENO 2299 # ------------------------- 2300 # Try to link conftest.$ac_ext, and return whether this succeeded. 2301 ac_fn_cxx_try_link () 2302 { 2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2304 rm -f conftest.$ac_objext conftest$ac_exeext 2305 if { { ac_try="$ac_link" 2306 case "(($ac_try" in 2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2308 *) ac_try_echo=$ac_try;; 2309 esac 2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2311 $as_echo "$ac_try_echo"; } >&5 2312 (eval "$ac_link") 2>conftest.err 2313 ac_status=$? 2314 if test -s conftest.err; then 2315 grep -v '^ *+' conftest.err >conftest.er1 2316 cat conftest.er1 >&5 2317 mv -f conftest.er1 conftest.err 2318 fi 2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2320 test $ac_status = 0; } && { 2321 test -z "$ac_cxx_werror_flag" || 2322 test ! -s conftest.err 2323 } && test -s conftest$ac_exeext && { 2324 test "$cross_compiling" = yes || 2325 test -x conftest$ac_exeext 2326 }; then : 2327 ac_retval=0 2328 else 2329 $as_echo "$as_me: failed program was:" >&5 2330 sed 's/^/| /' conftest.$ac_ext >&5 2331 2332 ac_retval=1 2333 fi 2334 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2335 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2336 # interfere with the next link command; also delete a directory that is 2337 # left behind by Apple's compiler. We do this before executing the actions. 2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2340 as_fn_set_status $ac_retval 2341 2342 } # ac_fn_cxx_try_link 2343 cat >config.log <<_ACEOF 2344 This file contains any messages produced by compilers while 2345 running configure, to aid debugging if configure makes a mistake. 2346 2347 It was created by Valgrind $as_me 3.13.0, which was 2348 generated by GNU Autoconf 2.69. Invocation command line was 2349 2350 $ $0 $@ 2351 2352 _ACEOF 2353 exec 5>>config.log 2354 { 2355 cat <<_ASUNAME 2356 ## --------- ## 2357 ## Platform. ## 2358 ## --------- ## 2359 2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2361 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2362 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2363 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2364 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2365 2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2368 2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2376 2377 _ASUNAME 2378 2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2380 for as_dir in $PATH 2381 do 2382 IFS=$as_save_IFS 2383 test -z "$as_dir" && as_dir=. 2384 $as_echo "PATH: $as_dir" 2385 done 2386 IFS=$as_save_IFS 2387 2388 } >&5 2389 2390 cat >&5 <<_ACEOF 2391 2392 2393 ## ----------- ## 2394 ## Core tests. ## 2395 ## ----------- ## 2396 2397 _ACEOF 2398 2399 2400 # Keep a trace of the command line. 2401 # Strip out --no-create and --no-recursion so they do not pile up. 2402 # Strip out --silent because we don't want to record it for future runs. 2403 # Also quote any args containing shell meta-characters. 2404 # Make two passes to allow for proper duplicate-argument suppression. 2405 ac_configure_args= 2406 ac_configure_args0= 2407 ac_configure_args1= 2408 ac_must_keep_next=false 2409 for ac_pass in 1 2 2410 do 2411 for ac_arg 2412 do 2413 case $ac_arg in 2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2416 | -silent | --silent | --silen | --sile | --sil) 2417 continue ;; 2418 *\'*) 2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2420 esac 2421 case $ac_pass in 2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2423 2) 2424 as_fn_append ac_configure_args1 " '$ac_arg'" 2425 if test $ac_must_keep_next = true; then 2426 ac_must_keep_next=false # Got value, back to normal. 2427 else 2428 case $ac_arg in 2429 *=* | --config-cache | -C | -disable-* | --disable-* \ 2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2432 | -with-* | --with-* | -without-* | --without-* | --x) 2433 case "$ac_configure_args0 " in 2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2435 esac 2436 ;; 2437 -* ) ac_must_keep_next=true ;; 2438 esac 2439 fi 2440 as_fn_append ac_configure_args " '$ac_arg'" 2441 ;; 2442 esac 2443 done 2444 done 2445 { ac_configure_args0=; unset ac_configure_args0;} 2446 { ac_configure_args1=; unset ac_configure_args1;} 2447 2448 # When interrupted or exit'd, cleanup temporary files, and complete 2449 # config.log. We remove comments because anyway the quotes in there 2450 # would cause problems or look ugly. 2451 # WARNING: Use '\'' to represent an apostrophe within the trap. 2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2453 trap 'exit_status=$? 2454 # Save into config.log some information that might help in debugging. 2455 { 2456 echo 2457 2458 $as_echo "## ---------------- ## 2459 ## Cache variables. ## 2460 ## ---------------- ##" 2461 echo 2462 # The following way of writing the cache mishandles newlines in values, 2463 ( 2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2465 eval ac_val=\$$ac_var 2466 case $ac_val in #( 2467 *${as_nl}*) 2468 case $ac_var in #( 2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2471 esac 2472 case $ac_var in #( 2473 _ | IFS | as_nl) ;; #( 2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2475 *) { eval $ac_var=; unset $ac_var;} ;; 2476 esac ;; 2477 esac 2478 done 2479 (set) 2>&1 | 2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2481 *${as_nl}ac_space=\ *) 2482 sed -n \ 2483 "s/'\''/'\''\\\\'\'''\''/g; 2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2485 ;; #( 2486 *) 2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2488 ;; 2489 esac | 2490 sort 2491 ) 2492 echo 2493 2494 $as_echo "## ----------------- ## 2495 ## Output variables. ## 2496 ## ----------------- ##" 2497 echo 2498 for ac_var in $ac_subst_vars 2499 do 2500 eval ac_val=\$$ac_var 2501 case $ac_val in 2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2503 esac 2504 $as_echo "$ac_var='\''$ac_val'\''" 2505 done | sort 2506 echo 2507 2508 if test -n "$ac_subst_files"; then 2509 $as_echo "## ------------------- ## 2510 ## File substitutions. ## 2511 ## ------------------- ##" 2512 echo 2513 for ac_var in $ac_subst_files 2514 do 2515 eval ac_val=\$$ac_var 2516 case $ac_val in 2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2518 esac 2519 $as_echo "$ac_var='\''$ac_val'\''" 2520 done | sort 2521 echo 2522 fi 2523 2524 if test -s confdefs.h; then 2525 $as_echo "## ----------- ## 2526 ## confdefs.h. ## 2527 ## ----------- ##" 2528 echo 2529 cat confdefs.h 2530 echo 2531 fi 2532 test "$ac_signal" != 0 && 2533 $as_echo "$as_me: caught signal $ac_signal" 2534 $as_echo "$as_me: exit $exit_status" 2535 } >&5 2536 rm -f core *.core core.conftest.* && 2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2538 exit $exit_status 2539 ' 0 2540 for ac_signal in 1 2 13 15; do 2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2542 done 2543 ac_signal=0 2544 2545 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2546 rm -f -r conftest* confdefs.h 2547 2548 $as_echo "/* confdefs.h */" > confdefs.h 2549 2550 # Predefined preprocessor variables. 2551 2552 cat >>confdefs.h <<_ACEOF 2553 #define PACKAGE_NAME "$PACKAGE_NAME" 2554 _ACEOF 2555 2556 cat >>confdefs.h <<_ACEOF 2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2558 _ACEOF 2559 2560 cat >>confdefs.h <<_ACEOF 2561 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2562 _ACEOF 2563 2564 cat >>confdefs.h <<_ACEOF 2565 #define PACKAGE_STRING "$PACKAGE_STRING" 2566 _ACEOF 2567 2568 cat >>confdefs.h <<_ACEOF 2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2570 _ACEOF 2571 2572 cat >>confdefs.h <<_ACEOF 2573 #define PACKAGE_URL "$PACKAGE_URL" 2574 _ACEOF 2575 2576 2577 # Let the site file select an alternate cache file if it wants to. 2578 # Prefer an explicitly selected file to automatically selected ones. 2579 ac_site_file1=NONE 2580 ac_site_file2=NONE 2581 if test -n "$CONFIG_SITE"; then 2582 # We do not want a PATH search for config.site. 2583 case $CONFIG_SITE in #(( 2584 -*) ac_site_file1=./$CONFIG_SITE;; 2585 */*) ac_site_file1=$CONFIG_SITE;; 2586 *) ac_site_file1=./$CONFIG_SITE;; 2587 esac 2588 elif test "x$prefix" != xNONE; then 2589 ac_site_file1=$prefix/share/config.site 2590 ac_site_file2=$prefix/etc/config.site 2591 else 2592 ac_site_file1=$ac_default_prefix/share/config.site 2593 ac_site_file2=$ac_default_prefix/etc/config.site 2594 fi 2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2596 do 2597 test "x$ac_site_file" = xNONE && continue 2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2601 sed 's/^/| /' "$ac_site_file" >&5 2602 . "$ac_site_file" \ 2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2605 as_fn_error $? "failed to load site script $ac_site_file 2606 See \`config.log' for more details" "$LINENO" 5; } 2607 fi 2608 done 2609 2610 if test -r "$cache_file"; then 2611 # Some versions of bash will fail to source /dev/null (special files 2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2615 $as_echo "$as_me: loading cache $cache_file" >&6;} 2616 case $cache_file in 2617 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2618 *) . "./$cache_file";; 2619 esac 2620 fi 2621 else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2623 $as_echo "$as_me: creating cache $cache_file" >&6;} 2624 >$cache_file 2625 fi 2626 2627 as_fn_append ac_header_list " stdlib.h" 2628 as_fn_append ac_header_list " unistd.h" 2629 as_fn_append ac_header_list " sys/param.h" 2630 # Check that the precious variables saved in the cache have kept the same 2631 # value. 2632 ac_cache_corrupted=false 2633 for ac_var in $ac_precious_vars; do 2634 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2635 eval ac_new_set=\$ac_env_${ac_var}_set 2636 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2637 eval ac_new_val=\$ac_env_${ac_var}_value 2638 case $ac_old_set,$ac_new_set in 2639 set,) 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2641 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2642 ac_cache_corrupted=: ;; 2643 ,set) 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2645 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2646 ac_cache_corrupted=: ;; 2647 ,);; 2648 *) 2649 if test "x$ac_old_val" != "x$ac_new_val"; then 2650 # differences in whitespace do not lead to failure. 2651 ac_old_val_w=`echo x $ac_old_val` 2652 ac_new_val_w=`echo x $ac_new_val` 2653 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2655 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2656 ac_cache_corrupted=: 2657 else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2659 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2660 eval $ac_var=\$ac_old_val 2661 fi 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2663 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2665 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2666 fi;; 2667 esac 2668 # Pass precious variables to config.status. 2669 if test "$ac_new_set" = set; then 2670 case $ac_new_val in 2671 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2672 *) ac_arg=$ac_var=$ac_new_val ;; 2673 esac 2674 case " $ac_configure_args " in 2675 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2676 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2677 esac 2678 fi 2679 done 2680 if $ac_cache_corrupted; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2684 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2685 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2686 fi 2687 ## -------------------- ## 2688 ## Main body of script. ## 2689 ## -------------------- ## 2690 2691 ac_ext=c 2692 ac_cpp='$CPP $CPPFLAGS' 2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2696 2697 2698 2699 ac_config_headers="$ac_config_headers config.h" 2700 2701 am__api_version='1.15' 2702 2703 ac_aux_dir= 2704 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2705 if test -f "$ac_dir/install-sh"; then 2706 ac_aux_dir=$ac_dir 2707 ac_install_sh="$ac_aux_dir/install-sh -c" 2708 break 2709 elif test -f "$ac_dir/install.sh"; then 2710 ac_aux_dir=$ac_dir 2711 ac_install_sh="$ac_aux_dir/install.sh -c" 2712 break 2713 elif test -f "$ac_dir/shtool"; then 2714 ac_aux_dir=$ac_dir 2715 ac_install_sh="$ac_aux_dir/shtool install -c" 2716 break 2717 fi 2718 done 2719 if test -z "$ac_aux_dir"; then 2720 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2721 fi 2722 2723 # These three variables are undocumented and unsupported, 2724 # and are intended to be withdrawn in a future Autoconf release. 2725 # They can cause serious problems if a builder's source tree is in a directory 2726 # whose full name contains unusual characters. 2727 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2728 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2729 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2730 2731 2732 # Find a good install program. We prefer a C program (faster), 2733 # so one script is as good as another. But avoid the broken or 2734 # incompatible versions: 2735 # SysV /etc/install, /usr/sbin/install 2736 # SunOS /usr/etc/install 2737 # IRIX /sbin/install 2738 # AIX /bin/install 2739 # AmigaOS /C/install, which installs bootblocks on floppy discs 2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2743 # OS/2's system install, which has a completely different semantic 2744 # ./install, which can be erroneously created by make from ./install.sh. 2745 # Reject install programs that cannot install multiple files. 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2747 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2748 if test -z "$INSTALL"; then 2749 if ${ac_cv_path_install+:} false; then : 2750 $as_echo_n "(cached) " >&6 2751 else 2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2753 for as_dir in $PATH 2754 do 2755 IFS=$as_save_IFS 2756 test -z "$as_dir" && as_dir=. 2757 # Account for people who put trailing slashes in PATH elements. 2758 case $as_dir/ in #(( 2759 ./ | .// | /[cC]/* | \ 2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2762 /usr/ucb/* ) ;; 2763 *) 2764 # OSF1 and SCO ODT 3.0 have their own names for install. 2765 # Don't use installbsd from OSF since it installs stuff as root 2766 # by default. 2767 for ac_prog in ginstall scoinst install; do 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2770 if test $ac_prog = install && 2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2772 # AIX install. It has an incompatible calling convention. 2773 : 2774 elif test $ac_prog = install && 2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2776 # program-specific install script used by HP pwplus--don't use. 2777 : 2778 else 2779 rm -rf conftest.one conftest.two conftest.dir 2780 echo one > conftest.one 2781 echo two > conftest.two 2782 mkdir conftest.dir 2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2784 test -s conftest.one && test -s conftest.two && 2785 test -s conftest.dir/conftest.one && 2786 test -s conftest.dir/conftest.two 2787 then 2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2789 break 3 2790 fi 2791 fi 2792 fi 2793 done 2794 done 2795 ;; 2796 esac 2797 2798 done 2799 IFS=$as_save_IFS 2800 2801 rm -rf conftest.one conftest.two conftest.dir 2802 2803 fi 2804 if test "${ac_cv_path_install+set}" = set; then 2805 INSTALL=$ac_cv_path_install 2806 else 2807 # As a last resort, use the slow shell script. Don't cache a 2808 # value for INSTALL within a source directory, because that will 2809 # break other packages using the cache if that directory is 2810 # removed, or if the value is a relative name. 2811 INSTALL=$ac_install_sh 2812 fi 2813 fi 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2815 $as_echo "$INSTALL" >&6; } 2816 2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2818 # It thinks the first close brace ends the variable substitution. 2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2820 2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2822 2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2824 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2826 $as_echo_n "checking whether build environment is sane... " >&6; } 2827 # Reject unsafe characters in $srcdir or the absolute working directory 2828 # name. Accept space and tab only in the latter. 2829 am_lf=' 2830 ' 2831 case `pwd` in 2832 *[\\\"\#\$\&\'\`$am_lf]*) 2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2834 esac 2835 case $srcdir in 2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2838 esac 2839 2840 # Do 'set' in a subshell so we don't clobber the current shell's 2841 # arguments. Must try -L first in case configure is actually a 2842 # symlink; some systems play weird games with the mod time of symlinks 2843 # (eg FreeBSD returns the mod time of the symlink's containing 2844 # directory). 2845 if ( 2846 am_has_slept=no 2847 for am_try in 1 2; do 2848 echo "timestamp, slept: $am_has_slept" > conftest.file 2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2850 if test "$*" = "X"; then 2851 # -L didn't work. 2852 set X `ls -t "$srcdir/configure" conftest.file` 2853 fi 2854 if test "$*" != "X $srcdir/configure conftest.file" \ 2855 && test "$*" != "X conftest.file $srcdir/configure"; then 2856 2857 # If neither matched, then we have a broken ls. This can happen 2858 # if, for instance, CONFIG_SHELL is bash and it inherits a 2859 # broken ls alias from the environment. This has actually 2860 # happened. Such a system could not be considered "sane". 2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2862 alias in your environment" "$LINENO" 5 2863 fi 2864 if test "$2" = conftest.file || test $am_try -eq 2; then 2865 break 2866 fi 2867 # Just in case. 2868 sleep 1 2869 am_has_slept=yes 2870 done 2871 test "$2" = conftest.file 2872 ) 2873 then 2874 # Ok. 2875 : 2876 else 2877 as_fn_error $? "newly created file is older than distributed files! 2878 Check your system clock" "$LINENO" 5 2879 fi 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2881 $as_echo "yes" >&6; } 2882 # If we didn't sleep, we still need to ensure time stamps of config.status and 2883 # generated files are strictly newer. 2884 am_sleep_pid= 2885 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2886 ( sleep 1 ) & 2887 am_sleep_pid=$! 2888 fi 2889 2890 rm -f conftest.file 2891 2892 test "$program_prefix" != NONE && 2893 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2894 # Use a double $ so make ignores it. 2895 test "$program_suffix" != NONE && 2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2897 # Double any \ or $. 2898 # By default was `s,x,x', remove it if useless. 2899 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2900 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2901 2902 # Expand $ac_aux_dir to an absolute path. 2903 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2904 2905 if test x"${MISSING+set}" != xset; then 2906 case $am_aux_dir in 2907 *\ * | *\ *) 2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2909 *) 2910 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2911 esac 2912 fi 2913 # Use eval to expand $SHELL 2914 if eval "$MISSING --is-lightweight"; then 2915 am_missing_run="$MISSING " 2916 else 2917 am_missing_run= 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2919 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2920 fi 2921 2922 if test x"${install_sh+set}" != xset; then 2923 case $am_aux_dir in 2924 *\ * | *\ *) 2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2926 *) 2927 install_sh="\${SHELL} $am_aux_dir/install-sh" 2928 esac 2929 fi 2930 2931 # Installed binaries are usually stripped using 'strip' when the user 2932 # run "make install-strip". However 'strip' might not be the right 2933 # tool to use in cross-compilation environments, therefore Automake 2934 # will honor the 'STRIP' environment variable to overrule this program. 2935 if test "$cross_compiling" != no; then 2936 if test -n "$ac_tool_prefix"; then 2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2938 set dummy ${ac_tool_prefix}strip; ac_word=$2 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2940 $as_echo_n "checking for $ac_word... " >&6; } 2941 if ${ac_cv_prog_STRIP+:} false; then : 2942 $as_echo_n "(cached) " >&6 2943 else 2944 if test -n "$STRIP"; then 2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2946 else 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948 for as_dir in $PATH 2949 do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 for ac_exec_ext in '' $ac_executable_extensions; do 2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2956 break 2 2957 fi 2958 done 2959 done 2960 IFS=$as_save_IFS 2961 2962 fi 2963 fi 2964 STRIP=$ac_cv_prog_STRIP 2965 if test -n "$STRIP"; then 2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2967 $as_echo "$STRIP" >&6; } 2968 else 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2970 $as_echo "no" >&6; } 2971 fi 2972 2973 2974 fi 2975 if test -z "$ac_cv_prog_STRIP"; then 2976 ac_ct_STRIP=$STRIP 2977 # Extract the first word of "strip", so it can be a program name with args. 2978 set dummy strip; ac_word=$2 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980 $as_echo_n "checking for $ac_word... " >&6; } 2981 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2982 $as_echo_n "(cached) " >&6 2983 else 2984 if test -n "$ac_ct_STRIP"; then 2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2986 else 2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988 for as_dir in $PATH 2989 do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2994 ac_cv_prog_ac_ct_STRIP="strip" 2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998 done 2999 done 3000 IFS=$as_save_IFS 3001 3002 fi 3003 fi 3004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3005 if test -n "$ac_ct_STRIP"; then 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3007 $as_echo "$ac_ct_STRIP" >&6; } 3008 else 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3010 $as_echo "no" >&6; } 3011 fi 3012 3013 if test "x$ac_ct_STRIP" = x; then 3014 STRIP=":" 3015 else 3016 case $cross_compiling:$ac_tool_warned in 3017 yes:) 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3020 ac_tool_warned=yes ;; 3021 esac 3022 STRIP=$ac_ct_STRIP 3023 fi 3024 else 3025 STRIP="$ac_cv_prog_STRIP" 3026 fi 3027 3028 fi 3029 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3030 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3032 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3033 if test -z "$MKDIR_P"; then 3034 if ${ac_cv_path_mkdir+:} false; then : 3035 $as_echo_n "(cached) " >&6 3036 else 3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3038 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3039 do 3040 IFS=$as_save_IFS 3041 test -z "$as_dir" && as_dir=. 3042 for ac_prog in mkdir gmkdir; do 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3046 'mkdir (GNU coreutils) '* | \ 3047 'mkdir (coreutils) '* | \ 3048 'mkdir (fileutils) '4.1*) 3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3050 break 3;; 3051 esac 3052 done 3053 done 3054 done 3055 IFS=$as_save_IFS 3056 3057 fi 3058 3059 test -d ./--version && rmdir ./--version 3060 if test "${ac_cv_path_mkdir+set}" = set; then 3061 MKDIR_P="$ac_cv_path_mkdir -p" 3062 else 3063 # As a last resort, use the slow shell script. Don't cache a 3064 # value for MKDIR_P within a source directory, because that will 3065 # break other packages using the cache if that directory is 3066 # removed, or if the value is a relative name. 3067 MKDIR_P="$ac_install_sh -d" 3068 fi 3069 fi 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3071 $as_echo "$MKDIR_P" >&6; } 3072 3073 for ac_prog in gawk mawk nawk awk 3074 do 3075 # Extract the first word of "$ac_prog", so it can be a program name with args. 3076 set dummy $ac_prog; ac_word=$2 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3078 $as_echo_n "checking for $ac_word... " >&6; } 3079 if ${ac_cv_prog_AWK+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081 else 3082 if test -n "$AWK"; then 3083 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3084 else 3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3086 for as_dir in $PATH 3087 do 3088 IFS=$as_save_IFS 3089 test -z "$as_dir" && as_dir=. 3090 for ac_exec_ext in '' $ac_executable_extensions; do 3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3092 ac_cv_prog_AWK="$ac_prog" 3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3094 break 2 3095 fi 3096 done 3097 done 3098 IFS=$as_save_IFS 3099 3100 fi 3101 fi 3102 AWK=$ac_cv_prog_AWK 3103 if test -n "$AWK"; then 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3105 $as_echo "$AWK" >&6; } 3106 else 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108 $as_echo "no" >&6; } 3109 fi 3110 3111 3112 test -n "$AWK" && break 3113 done 3114 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3117 set x ${MAKE-make} 3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3120 $as_echo_n "(cached) " >&6 3121 else 3122 cat >conftest.make <<\_ACEOF 3123 SHELL = /bin/sh 3124 all: 3125 @echo '@@@%%%=$(MAKE)=@@@%%%' 3126 _ACEOF 3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3129 *@@@%%%=?*=@@@%%%*) 3130 eval ac_cv_prog_make_${ac_make}_set=yes;; 3131 *) 3132 eval ac_cv_prog_make_${ac_make}_set=no;; 3133 esac 3134 rm -f conftest.make 3135 fi 3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3138 $as_echo "yes" >&6; } 3139 SET_MAKE= 3140 else 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3142 $as_echo "no" >&6; } 3143 SET_MAKE="MAKE=${MAKE-make}" 3144 fi 3145 3146 rm -rf .tst 2>/dev/null 3147 mkdir .tst 2>/dev/null 3148 if test -d .tst; then 3149 am__leading_dot=. 3150 else 3151 am__leading_dot=_ 3152 fi 3153 rmdir .tst 2>/dev/null 3154 3155 # Check whether --enable-silent-rules was given. 3156 if test "${enable_silent_rules+set}" = set; then : 3157 enableval=$enable_silent_rules; 3158 fi 3159 3160 case $enable_silent_rules in # ((( 3161 yes) AM_DEFAULT_VERBOSITY=0;; 3162 no) AM_DEFAULT_VERBOSITY=1;; 3163 *) AM_DEFAULT_VERBOSITY=1;; 3164 esac 3165 am_make=${MAKE-make} 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3167 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3168 if ${am_cv_make_support_nested_variables+:} false; then : 3169 $as_echo_n "(cached) " >&6 3170 else 3171 if $as_echo 'TRUE=$(BAR$(V)) 3172 BAR0=false 3173 BAR1=true 3174 V=1 3175 am__doit: 3176 @$(TRUE) 3177 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3178 am_cv_make_support_nested_variables=yes 3179 else 3180 am_cv_make_support_nested_variables=no 3181 fi 3182 fi 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3184 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3185 if test $am_cv_make_support_nested_variables = yes; then 3186 AM_V='$(V)' 3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3188 else 3189 AM_V=$AM_DEFAULT_VERBOSITY 3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3191 fi 3192 AM_BACKSLASH='\' 3193 3194 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3196 # is not polluted with repeated "-I." 3197 am__isrc=' -I$(srcdir)' 3198 # test to see if srcdir already configured 3199 if test -f $srcdir/config.status; then 3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3201 fi 3202 fi 3203 3204 # test whether we have cygpath 3205 if test -z "$CYGPATH_W"; then 3206 if (cygpath --version) >/dev/null 2>/dev/null; then 3207 CYGPATH_W='cygpath -w' 3208 else 3209 CYGPATH_W=echo 3210 fi 3211 fi 3212 3213 3214 # Define the identity of the package. 3215 PACKAGE='valgrind' 3216 VERSION='3.13.0' 3217 3218 3219 cat >>confdefs.h <<_ACEOF 3220 #define PACKAGE "$PACKAGE" 3221 _ACEOF 3222 3223 3224 cat >>confdefs.h <<_ACEOF 3225 #define VERSION "$VERSION" 3226 _ACEOF 3227 3228 # Some tools Automake needs. 3229 3230 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3231 3232 3233 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3234 3235 3236 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3237 3238 3239 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3240 3241 3242 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3243 3244 # For better backward compatibility. To be removed once Automake 1.9.x 3245 # dies out for good. For more background, see: 3246 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3247 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3248 mkdir_p='$(MKDIR_P)' 3249 3250 # We need awk for the "check" target (and possibly the TAP driver). The 3251 # system "awk" is bad on some platforms. 3252 # Always define AMTAR for backward compatibility. Yes, it's still used 3253 # in the wild :-( We should find a proper way to deprecate it ... 3254 AMTAR='$${TAR-tar}' 3255 3256 3257 # We'll loop over all known methods to create a tar archive until one works. 3258 _am_tools='gnutar pax cpio none' 3259 3260 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3261 3262 3263 3264 3265 3266 3267 # POSIX will say in a future version that running "rm -f" with no argument 3268 # is OK; and we want to be able to make that assumption in our Makefile 3269 # recipes. So use an aggressive probe to check that the usage we want is 3270 # actually supported "in the wild" to an acceptable degree. 3271 # See automake bug#10828. 3272 # To make any issue more visible, cause the running configure to be aborted 3273 # by default if the 'rm' program in use doesn't match our expectations; the 3274 # user can still override this though. 3275 if rm -f && rm -fr && rm -rf; then : OK; else 3276 cat >&2 <<'END' 3277 Oops! 3278 3279 Your 'rm' program seems unable to run without file operands specified 3280 on the command line, even when the '-f' option is present. This is contrary 3281 to the behaviour of most rm programs out there, and not conforming with 3282 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3283 3284 Please tell bug-automake@gnu.org about your system, including the value 3285 of your $PATH and any error possibly output before this message. This 3286 can help us improve future automake versions. 3287 3288 END 3289 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3290 echo 'Configuration will proceed anyway, since you have set the' >&2 3291 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3292 echo >&2 3293 else 3294 cat >&2 <<'END' 3295 Aborting the configuration process, to ensure you take notice of the issue. 3296 3297 You can download and install GNU coreutils to get an 'rm' implementation 3298 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3299 3300 If you want to complete the configuration process using your problematic 3301 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3302 to "yes", and re-run configure. 3303 3304 END 3305 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3306 fi 3307 fi 3308 3309 3310 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3312 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3313 # Check whether --enable-maintainer-mode was given. 3314 if test "${enable_maintainer_mode+set}" = set; then : 3315 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3316 else 3317 USE_MAINTAINER_MODE=no 3318 fi 3319 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3321 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3322 if test $USE_MAINTAINER_MODE = yes; then 3323 MAINTAINER_MODE_TRUE= 3324 MAINTAINER_MODE_FALSE='#' 3325 else 3326 MAINTAINER_MODE_TRUE='#' 3327 MAINTAINER_MODE_FALSE= 3328 fi 3329 3330 MAINT=$MAINTAINER_MODE_TRUE 3331 3332 3333 3334 #---------------------------------------------------------------------------- 3335 # Do NOT modify these flags here. Except in feature tests in which case 3336 # the original values must be properly restored. 3337 #---------------------------------------------------------------------------- 3338 CFLAGS="$CFLAGS" 3339 CXXFLAGS="$CXXFLAGS" 3340 3341 #---------------------------------------------------------------------------- 3342 # Checks for various programs. 3343 #---------------------------------------------------------------------------- 3344 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3346 $as_echo_n "checking whether ln -s works... " >&6; } 3347 LN_S=$as_ln_s 3348 if test "$LN_S" = "ln -s"; then 3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3350 $as_echo "yes" >&6; } 3351 else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3353 $as_echo "no, using $LN_S" >&6; } 3354 fi 3355 3356 ac_ext=c 3357 ac_cpp='$CPP $CPPFLAGS' 3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361 if test -n "$ac_tool_prefix"; then 3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3363 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365 $as_echo_n "checking for $ac_word... " >&6; } 3366 if ${ac_cv_prog_CC+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368 else 3369 if test -n "$CC"; then 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 3371 else 3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373 for as_dir in $PATH 3374 do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383 done 3384 done 3385 IFS=$as_save_IFS 3386 3387 fi 3388 fi 3389 CC=$ac_cv_prog_CC 3390 if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392 $as_echo "$CC" >&6; } 3393 else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395 $as_echo "no" >&6; } 3396 fi 3397 3398 3399 fi 3400 if test -z "$ac_cv_prog_CC"; then 3401 ac_ct_CC=$CC 3402 # Extract the first word of "gcc", so it can be a program name with args. 3403 set dummy gcc; ac_word=$2 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405 $as_echo_n "checking for $ac_word... " >&6; } 3406 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408 else 3409 if test -n "$ac_ct_CC"; then 3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3411 else 3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3413 for as_dir in $PATH 3414 do 3415 IFS=$as_save_IFS 3416 test -z "$as_dir" && as_dir=. 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3419 ac_cv_prog_ac_ct_CC="gcc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 3422 fi 3423 done 3424 done 3425 IFS=$as_save_IFS 3426 3427 fi 3428 fi 3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3430 if test -n "$ac_ct_CC"; then 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3432 $as_echo "$ac_ct_CC" >&6; } 3433 else 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3435 $as_echo "no" >&6; } 3436 fi 3437 3438 if test "x$ac_ct_CC" = x; then 3439 CC="" 3440 else 3441 case $cross_compiling:$ac_tool_warned in 3442 yes:) 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3445 ac_tool_warned=yes ;; 3446 esac 3447 CC=$ac_ct_CC 3448 fi 3449 else 3450 CC="$ac_cv_prog_CC" 3451 fi 3452 3453 if test -z "$CC"; then 3454 if test -n "$ac_tool_prefix"; then 3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3456 set dummy ${ac_tool_prefix}cc; ac_word=$2 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3458 $as_echo_n "checking for $ac_word... " >&6; } 3459 if ${ac_cv_prog_CC+:} false; then : 3460 $as_echo_n "(cached) " >&6 3461 else 3462 if test -n "$CC"; then 3463 ac_cv_prog_CC="$CC" # Let the user override the test. 3464 else 3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466 for as_dir in $PATH 3467 do 3468 IFS=$as_save_IFS 3469 test -z "$as_dir" && as_dir=. 3470 for ac_exec_ext in '' $ac_executable_extensions; do 3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3472 ac_cv_prog_CC="${ac_tool_prefix}cc" 3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 break 2 3475 fi 3476 done 3477 done 3478 IFS=$as_save_IFS 3479 3480 fi 3481 fi 3482 CC=$ac_cv_prog_CC 3483 if test -n "$CC"; then 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3485 $as_echo "$CC" >&6; } 3486 else 3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3488 $as_echo "no" >&6; } 3489 fi 3490 3491 3492 fi 3493 fi 3494 if test -z "$CC"; then 3495 # Extract the first word of "cc", so it can be a program name with args. 3496 set dummy cc; ac_word=$2 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498 $as_echo_n "checking for $ac_word... " >&6; } 3499 if ${ac_cv_prog_CC+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501 else 3502 if test -n "$CC"; then 3503 ac_cv_prog_CC="$CC" # Let the user override the test. 3504 else 3505 ac_prog_rejected=no 3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507 for as_dir in $PATH 3508 do 3509 IFS=$as_save_IFS 3510 test -z "$as_dir" && as_dir=. 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3514 ac_prog_rejected=yes 3515 continue 3516 fi 3517 ac_cv_prog_CC="cc" 3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521 done 3522 done 3523 IFS=$as_save_IFS 3524 3525 if test $ac_prog_rejected = yes; then 3526 # We found a bogon in the path, so make sure we never use it. 3527 set dummy $ac_cv_prog_CC 3528 shift 3529 if test $# != 0; then 3530 # We chose a different compiler from the bogus one. 3531 # However, it has the same basename, so the bogon will be chosen 3532 # first if we set CC to just the basename; use the full file name. 3533 shift 3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3535 fi 3536 fi 3537 fi 3538 fi 3539 CC=$ac_cv_prog_CC 3540 if test -n "$CC"; then 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3542 $as_echo "$CC" >&6; } 3543 else 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545 $as_echo "no" >&6; } 3546 fi 3547 3548 3549 fi 3550 if test -z "$CC"; then 3551 if test -n "$ac_tool_prefix"; then 3552 for ac_prog in cl.exe 3553 do 3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557 $as_echo_n "checking for $ac_word... " >&6; } 3558 if ${ac_cv_prog_CC+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560 else 3561 if test -n "$CC"; then 3562 ac_cv_prog_CC="$CC" # Let the user override the test. 3563 else 3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565 for as_dir in $PATH 3566 do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575 done 3576 done 3577 IFS=$as_save_IFS 3578 3579 fi 3580 fi 3581 CC=$ac_cv_prog_CC 3582 if test -n "$CC"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584 $as_echo "$CC" >&6; } 3585 else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587 $as_echo "no" >&6; } 3588 fi 3589 3590 3591 test -n "$CC" && break 3592 done 3593 fi 3594 if test -z "$CC"; then 3595 ac_ct_CC=$CC 3596 for ac_prog in cl.exe 3597 do 3598 # Extract the first word of "$ac_prog", so it can be a program name with args. 3599 set dummy $ac_prog; ac_word=$2 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3601 $as_echo_n "checking for $ac_word... " >&6; } 3602 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604 else 3605 if test -n "$ac_ct_CC"; then 3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3607 else 3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3609 for as_dir in $PATH 3610 do 3611 IFS=$as_save_IFS 3612 test -z "$as_dir" && as_dir=. 3613 for ac_exec_ext in '' $ac_executable_extensions; do 3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3615 ac_cv_prog_ac_ct_CC="$ac_prog" 3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3617 break 2 3618 fi 3619 done 3620 done 3621 IFS=$as_save_IFS 3622 3623 fi 3624 fi 3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3626 if test -n "$ac_ct_CC"; then 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3628 $as_echo "$ac_ct_CC" >&6; } 3629 else 3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3631 $as_echo "no" >&6; } 3632 fi 3633 3634 3635 test -n "$ac_ct_CC" && break 3636 done 3637 3638 if test "x$ac_ct_CC" = x; then 3639 CC="" 3640 else 3641 case $cross_compiling:$ac_tool_warned in 3642 yes:) 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3645 ac_tool_warned=yes ;; 3646 esac 3647 CC=$ac_ct_CC 3648 fi 3649 fi 3650 3651 fi 3652 3653 3654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656 as_fn_error $? "no acceptable C compiler found in \$PATH 3657 See \`config.log' for more details" "$LINENO" 5; } 3658 3659 # Provide some information about the compiler. 3660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3661 set X $ac_compile 3662 ac_compiler=$2 3663 for ac_option in --version -v -V -qversion; do 3664 { { ac_try="$ac_compiler $ac_option >&5" 3665 case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668 esac 3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670 $as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3672 ac_status=$? 3673 if test -s conftest.err; then 3674 sed '10a\ 3675 ... rest of stderr output deleted ... 3676 10q' conftest.err >conftest.er1 3677 cat conftest.er1 >&5 3678 fi 3679 rm -f conftest.er1 conftest.err 3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682 done 3683 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685 /* end confdefs.h. */ 3686 3687 int 3688 main () 3689 { 3690 3691 ; 3692 return 0; 3693 } 3694 _ACEOF 3695 ac_clean_files_save=$ac_clean_files 3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3697 # Try to create an executable without -o first, disregard a.out. 3698 # It will help us diagnose broken compilers, and finding out an intuition 3699 # of exeext. 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3701 $as_echo_n "checking whether the C compiler works... " >&6; } 3702 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3703 3704 # The possible output files: 3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3706 3707 ac_rmfiles= 3708 for ac_file in $ac_files 3709 do 3710 case $ac_file in 3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3713 esac 3714 done 3715 rm -f $ac_rmfiles 3716 3717 if { { ac_try="$ac_link_default" 3718 case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721 esac 3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723 $as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_link_default") 2>&5 3725 ac_status=$? 3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; }; then : 3728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3730 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3731 # so that the user can short-circuit this test for compilers unknown to 3732 # Autoconf. 3733 for ac_file in $ac_files '' 3734 do 3735 test -f "$ac_file" || continue 3736 case $ac_file in 3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3738 ;; 3739 [ab].out ) 3740 # We found the default executable, but exeext='' is most 3741 # certainly right. 3742 break;; 3743 *.* ) 3744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3745 then :; else 3746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3747 fi 3748 # We set ac_cv_exeext here because the later test for it is not 3749 # safe: cross compilers may not add the suffix if given an `-o' 3750 # argument, so we may need to know it at that point already. 3751 # Even if this section looks crufty: it has the advantage of 3752 # actually working. 3753 break;; 3754 * ) 3755 break;; 3756 esac 3757 done 3758 test "$ac_cv_exeext" = no && ac_cv_exeext= 3759 3760 else 3761 ac_file='' 3762 fi 3763 if test -z "$ac_file"; then : 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765 $as_echo "no" >&6; } 3766 $as_echo "$as_me: failed program was:" >&5 3767 sed 's/^/| /' conftest.$ac_ext >&5 3768 3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3771 as_fn_error 77 "C compiler cannot create executables 3772 See \`config.log' for more details" "$LINENO" 5; } 3773 else 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3775 $as_echo "yes" >&6; } 3776 fi 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3778 $as_echo_n "checking for C compiler default output file name... " >&6; } 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3780 $as_echo "$ac_file" >&6; } 3781 ac_exeext=$ac_cv_exeext 3782 3783 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3784 ac_clean_files=$ac_clean_files_save 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3786 $as_echo_n "checking for suffix of executables... " >&6; } 3787 if { { ac_try="$ac_link" 3788 case "(($ac_try" in 3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3790 *) ac_try_echo=$ac_try;; 3791 esac 3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3793 $as_echo "$ac_try_echo"; } >&5 3794 (eval "$ac_link") 2>&5 3795 ac_status=$? 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3797 test $ac_status = 0; }; then : 3798 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3799 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3800 # work properly (i.e., refer to `conftest.exe'), while it won't with 3801 # `rm'. 3802 for ac_file in conftest.exe conftest conftest.*; do 3803 test -f "$ac_file" || continue 3804 case $ac_file in 3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3807 break;; 3808 * ) break;; 3809 esac 3810 done 3811 else 3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3814 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3815 See \`config.log' for more details" "$LINENO" 5; } 3816 fi 3817 rm -f conftest conftest$ac_cv_exeext 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3819 $as_echo "$ac_cv_exeext" >&6; } 3820 3821 rm -f conftest.$ac_ext 3822 EXEEXT=$ac_cv_exeext 3823 ac_exeext=$EXEEXT 3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825 /* end confdefs.h. */ 3826 #include <stdio.h> 3827 int 3828 main () 3829 { 3830 FILE *f = fopen ("conftest.out", "w"); 3831 return ferror (f) || fclose (f) != 0; 3832 3833 ; 3834 return 0; 3835 } 3836 _ACEOF 3837 ac_clean_files="$ac_clean_files conftest.out" 3838 # Check that the compiler produces executables we can run. If not, either 3839 # the compiler is broken, or we cross compile. 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3841 $as_echo_n "checking whether we are cross compiling... " >&6; } 3842 if test "$cross_compiling" != yes; then 3843 { { ac_try="$ac_link" 3844 case "(($ac_try" in 3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3846 *) ac_try_echo=$ac_try;; 3847 esac 3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3849 $as_echo "$ac_try_echo"; } >&5 3850 (eval "$ac_link") 2>&5 3851 ac_status=$? 3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3853 test $ac_status = 0; } 3854 if { ac_try='./conftest$ac_cv_exeext' 3855 { { case "(($ac_try" in 3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3857 *) ac_try_echo=$ac_try;; 3858 esac 3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3860 $as_echo "$ac_try_echo"; } >&5 3861 (eval "$ac_try") 2>&5 3862 ac_status=$? 3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3864 test $ac_status = 0; }; }; then 3865 cross_compiling=no 3866 else 3867 if test "$cross_compiling" = maybe; then 3868 cross_compiling=yes 3869 else 3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872 as_fn_error $? "cannot run C compiled programs. 3873 If you meant to cross compile, use \`--host'. 3874 See \`config.log' for more details" "$LINENO" 5; } 3875 fi 3876 fi 3877 fi 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3879 $as_echo "$cross_compiling" >&6; } 3880 3881 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3882 ac_clean_files=$ac_clean_files_save 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3884 $as_echo_n "checking for suffix of object files... " >&6; } 3885 if ${ac_cv_objext+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887 else 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889 /* end confdefs.h. */ 3890 3891 int 3892 main () 3893 { 3894 3895 ; 3896 return 0; 3897 } 3898 _ACEOF 3899 rm -f conftest.o conftest.obj 3900 if { { ac_try="$ac_compile" 3901 case "(($ac_try" in 3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3903 *) ac_try_echo=$ac_try;; 3904 esac 3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3906 $as_echo "$ac_try_echo"; } >&5 3907 (eval "$ac_compile") 2>&5 3908 ac_status=$? 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; }; then : 3911 for ac_file in conftest.o conftest.obj conftest.*; do 3912 test -f "$ac_file" || continue; 3913 case $ac_file in 3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3916 break;; 3917 esac 3918 done 3919 else 3920 $as_echo "$as_me: failed program was:" >&5 3921 sed 's/^/| /' conftest.$ac_ext >&5 3922 3923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3925 as_fn_error $? "cannot compute suffix of object files: cannot compile 3926 See \`config.log' for more details" "$LINENO" 5; } 3927 fi 3928 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3929 fi 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3931 $as_echo "$ac_cv_objext" >&6; } 3932 OBJEXT=$ac_cv_objext 3933 ac_objext=$OBJEXT 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3936 if ${ac_cv_c_compiler_gnu+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938 else 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940 /* end confdefs.h. */ 3941 3942 int 3943 main () 3944 { 3945 #ifndef __GNUC__ 3946 choke me 3947 #endif 3948 3949 ; 3950 return 0; 3951 } 3952 _ACEOF 3953 if ac_fn_c_try_compile "$LINENO"; then : 3954 ac_compiler_gnu=yes 3955 else 3956 ac_compiler_gnu=no 3957 fi 3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3959 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3960 3961 fi 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3963 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3964 if test $ac_compiler_gnu = yes; then 3965 GCC=yes 3966 else 3967 GCC= 3968 fi 3969 ac_test_CFLAGS=${CFLAGS+set} 3970 ac_save_CFLAGS=$CFLAGS 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3972 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3973 if ${ac_cv_prog_cc_g+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975 else 3976 ac_save_c_werror_flag=$ac_c_werror_flag 3977 ac_c_werror_flag=yes 3978 ac_cv_prog_cc_g=no 3979 CFLAGS="-g" 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981 /* end confdefs.h. */ 3982 3983 int 3984 main () 3985 { 3986 3987 ; 3988 return 0; 3989 } 3990 _ACEOF 3991 if ac_fn_c_try_compile "$LINENO"; then : 3992 ac_cv_prog_cc_g=yes 3993 else 3994 CFLAGS="" 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996 /* end confdefs.h. */ 3997 3998 int 3999 main () 4000 { 4001 4002 ; 4003 return 0; 4004 } 4005 _ACEOF 4006 if ac_fn_c_try_compile "$LINENO"; then : 4007 4008 else 4009 ac_c_werror_flag=$ac_save_c_werror_flag 4010 CFLAGS="-g" 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4012 /* end confdefs.h. */ 4013 4014 int 4015 main () 4016 { 4017 4018 ; 4019 return 0; 4020 } 4021 _ACEOF 4022 if ac_fn_c_try_compile "$LINENO"; then : 4023 ac_cv_prog_cc_g=yes 4024 fi 4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026 fi 4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4028 fi 4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4030 ac_c_werror_flag=$ac_save_c_werror_flag 4031 fi 4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4033 $as_echo "$ac_cv_prog_cc_g" >&6; } 4034 if test "$ac_test_CFLAGS" = set; then 4035 CFLAGS=$ac_save_CFLAGS 4036 elif test $ac_cv_prog_cc_g = yes; then 4037 if test "$GCC" = yes; then 4038 CFLAGS="-g -O2" 4039 else 4040 CFLAGS="-g" 4041 fi 4042 else 4043 if test "$GCC" = yes; then 4044 CFLAGS="-O2" 4045 else 4046 CFLAGS= 4047 fi 4048 fi 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4051 if ${ac_cv_prog_cc_c89+:} false; then : 4052 $as_echo_n "(cached) " >&6 4053 else 4054 ac_cv_prog_cc_c89=no 4055 ac_save_CC=$CC 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057 /* end confdefs.h. */ 4058 #include <stdarg.h> 4059 #include <stdio.h> 4060 struct stat; 4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4062 struct buf { int x; }; 4063 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4064 static char *e (p, i) 4065 char **p; 4066 int i; 4067 { 4068 return p[i]; 4069 } 4070 static char *f (char * (*g) (char **, int), char **p, ...) 4071 { 4072 char *s; 4073 va_list v; 4074 va_start (v,p); 4075 s = g (p, va_arg (v,int)); 4076 va_end (v); 4077 return s; 4078 } 4079 4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4081 function prototypes and stuff, but not '\xHH' hex character constants. 4082 These don't provoke an error unfortunately, instead are silently treated 4083 as 'x'. The following induces an error, until -std is added to get 4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4085 array size at least. It's necessary to write '\x00'==0 to get something 4086 that's true only with -std. */ 4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4088 4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4090 inside strings and character constants. */ 4091 #define FOO(x) 'x' 4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4093 4094 int test (int i, double x); 4095 struct s1 {int (*f) (int a);}; 4096 struct s2 {int (*f) (double a);}; 4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4098 int argc; 4099 char **argv; 4100 int 4101 main () 4102 { 4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4104 ; 4105 return 0; 4106 } 4107 _ACEOF 4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4110 do 4111 CC="$ac_save_CC $ac_arg" 4112 if ac_fn_c_try_compile "$LINENO"; then : 4113 ac_cv_prog_cc_c89=$ac_arg 4114 fi 4115 rm -f core conftest.err conftest.$ac_objext 4116 test "x$ac_cv_prog_cc_c89" != "xno" && break 4117 done 4118 rm -f conftest.$ac_ext 4119 CC=$ac_save_CC 4120 4121 fi 4122 # AC_CACHE_VAL 4123 case "x$ac_cv_prog_cc_c89" in 4124 x) 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4126 $as_echo "none needed" >&6; } ;; 4127 xno) 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4129 $as_echo "unsupported" >&6; } ;; 4130 *) 4131 CC="$CC $ac_cv_prog_cc_c89" 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4134 esac 4135 if test "x$ac_cv_prog_cc_c89" != xno; then : 4136 4137 fi 4138 4139 ac_ext=c 4140 ac_cpp='$CPP $CPPFLAGS' 4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4144 4145 ac_ext=c 4146 ac_cpp='$CPP $CPPFLAGS' 4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4151 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4152 if ${am_cv_prog_cc_c_o+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154 else 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4156 /* end confdefs.h. */ 4157 4158 int 4159 main () 4160 { 4161 4162 ; 4163 return 0; 4164 } 4165 _ACEOF 4166 # Make sure it works both with $CC and with simple cc. 4167 # Following AC_PROG_CC_C_O, we do the test twice because some 4168 # compilers refuse to overwrite an existing .o file with -o, 4169 # though they will create one. 4170 am_cv_prog_cc_c_o=yes 4171 for am_i in 1 2; do 4172 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4173 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); } \ 4177 && test -f conftest2.$ac_objext; then 4178 : OK 4179 else 4180 am_cv_prog_cc_c_o=no 4181 break 4182 fi 4183 done 4184 rm -f core conftest* 4185 unset am_i 4186 fi 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4188 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4189 if test "$am_cv_prog_cc_c_o" != yes; then 4190 # Losing compiler, so override with the script. 4191 # FIXME: It is wrong to rewrite CC. 4192 # But if we don't then we get into trouble of one sort or another. 4193 # A longer-term fix would be to have automake use am__CC in this case, 4194 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4195 CC="$am_aux_dir/compile $CC" 4196 fi 4197 ac_ext=c 4198 ac_cpp='$CPP $CPPFLAGS' 4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4202 4203 DEPDIR="${am__leading_dot}deps" 4204 4205 ac_config_commands="$ac_config_commands depfiles" 4206 4207 4208 am_make=${MAKE-make} 4209 cat > confinc << 'END' 4210 am__doit: 4211 @echo this is the am__doit target 4212 .PHONY: am__doit 4213 END 4214 # If we don't find an include directive, just comment out the code. 4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4216 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4217 am__include="#" 4218 am__quote= 4219 _am_result=none 4220 # First try GNU make style include. 4221 echo "include confinc" > confmf 4222 # Ignore all kinds of additional output from 'make'. 4223 case `$am_make -s -f confmf 2> /dev/null` in #( 4224 *the\ am__doit\ target*) 4225 am__include=include 4226 am__quote= 4227 _am_result=GNU 4228 ;; 4229 esac 4230 # Now try BSD make style include. 4231 if test "$am__include" = "#"; then 4232 echo '.include "confinc"' > confmf 4233 case `$am_make -s -f confmf 2> /dev/null` in #( 4234 *the\ am__doit\ target*) 4235 am__include=.include 4236 am__quote="\"" 4237 _am_result=BSD 4238 ;; 4239 esac 4240 fi 4241 4242 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4244 $as_echo "$_am_result" >&6; } 4245 rm -f confinc confmf 4246 4247 # Check whether --enable-dependency-tracking was given. 4248 if test "${enable_dependency_tracking+set}" = set; then : 4249 enableval=$enable_dependency_tracking; 4250 fi 4251 4252 if test "x$enable_dependency_tracking" != xno; then 4253 am_depcomp="$ac_aux_dir/depcomp" 4254 AMDEPBACKSLASH='\' 4255 am__nodep='_no' 4256 fi 4257 if test "x$enable_dependency_tracking" != xno; then 4258 AMDEP_TRUE= 4259 AMDEP_FALSE='#' 4260 else 4261 AMDEP_TRUE='#' 4262 AMDEP_FALSE= 4263 fi 4264 4265 4266 4267 depcc="$CC" am_compiler_list= 4268 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4270 $as_echo_n "checking dependency style of $depcc... " >&6; } 4271 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4272 $as_echo_n "(cached) " >&6 4273 else 4274 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4275 # We make a subdir and do the tests there. Otherwise we can end up 4276 # making bogus files that we don't know about and never remove. For 4277 # instance it was reported that on HP-UX the gcc test will end up 4278 # making a dummy file named 'D' -- because '-MD' means "put the output 4279 # in D". 4280 rm -rf conftest.dir 4281 mkdir conftest.dir 4282 # Copy depcomp to subdir because otherwise we won't find it if we're 4283 # using a relative directory. 4284 cp "$am_depcomp" conftest.dir 4285 cd conftest.dir 4286 # We will build objects and dependencies in a subdirectory because 4287 # it helps to detect inapplicable dependency modes. For instance 4288 # both Tru64's cc and ICC support -MD to output dependencies as a 4289 # side effect of compilation, but ICC will put the dependencies in 4290 # the current directory while Tru64 will put them in the object 4291 # directory. 4292 mkdir sub 4293 4294 am_cv_CC_dependencies_compiler_type=none 4295 if test "$am_compiler_list" = ""; then 4296 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4297 fi 4298 am__universal=false 4299 case " $depcc " in #( 4300 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4301 esac 4302 4303 for depmode in $am_compiler_list; do 4304 # Setup a source with many dependencies, because some compilers 4305 # like to wrap large dependency lists on column 80 (with \), and 4306 # we should not choose a depcomp mode which is confused by this. 4307 # 4308 # We need to recreate these files for each test, as the compiler may 4309 # overwrite some of them when testing with obscure command lines. 4310 # This happens at least with the AIX C compiler. 4311 : > sub/conftest.c 4312 for i in 1 2 3 4 5 6; do 4313 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4314 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4315 # Solaris 10 /bin/sh. 4316 echo '/* dummy */' > sub/conftst$i.h 4317 done 4318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4319 4320 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4321 # mode. It turns out that the SunPro C++ compiler does not properly 4322 # handle '-M -o', and we need to detect this. Also, some Intel 4323 # versions had trouble with output in subdirs. 4324 am__obj=sub/conftest.${OBJEXT-o} 4325 am__minus_obj="-o $am__obj" 4326 case $depmode in 4327 gcc) 4328 # This depmode causes a compiler race in universal mode. 4329 test "$am__universal" = false || continue 4330 ;; 4331 nosideeffect) 4332 # After this tag, mechanisms are not by side-effect, so they'll 4333 # only be used when explicitly requested. 4334 if test "x$enable_dependency_tracking" = xyes; then 4335 continue 4336 else 4337 break 4338 fi 4339 ;; 4340 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4341 # This compiler won't grok '-c -o', but also, the minuso test has 4342 # not run yet. These depmodes are late enough in the game, and 4343 # so weak that their functioning should not be impacted. 4344 am__obj=conftest.${OBJEXT-o} 4345 am__minus_obj= 4346 ;; 4347 none) break ;; 4348 esac 4349 if depmode=$depmode \ 4350 source=sub/conftest.c object=$am__obj \ 4351 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4352 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4353 >/dev/null 2>conftest.err && 4354 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4355 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4356 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4357 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4358 # icc doesn't choke on unknown options, it will just issue warnings 4359 # or remarks (even with -Werror). So we grep stderr for any message 4360 # that says an option was ignored or not supported. 4361 # When given -MP, icc 7.0 and 7.1 complain thusly: 4362 # icc: Command line warning: ignoring option '-M'; no argument required 4363 # The diagnosis changed in icc 8.0: 4364 # icc: Command line remark: option '-MP' not supported 4365 if (grep 'ignoring option' conftest.err || 4366 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4367 am_cv_CC_dependencies_compiler_type=$depmode 4368 break 4369 fi 4370 fi 4371 done 4372 4373 cd .. 4374 rm -rf conftest.dir 4375 else 4376 am_cv_CC_dependencies_compiler_type=none 4377 fi 4378 4379 fi 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4381 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4382 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4383 4384 if 4385 test "x$enable_dependency_tracking" != xno \ 4386 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4387 am__fastdepCC_TRUE= 4388 am__fastdepCC_FALSE='#' 4389 else 4390 am__fastdepCC_TRUE='#' 4391 am__fastdepCC_FALSE= 4392 fi 4393 4394 4395 4396 ac_ext=c 4397 ac_cpp='$CPP $CPPFLAGS' 4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4402 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4403 # On Suns, sometimes $CPP names a directory. 4404 if test -n "$CPP" && test -d "$CPP"; then 4405 CPP= 4406 fi 4407 if test -z "$CPP"; then 4408 if ${ac_cv_prog_CPP+:} false; then : 4409 $as_echo_n "(cached) " >&6 4410 else 4411 # Double quotes because CPP needs to be expanded 4412 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4413 do 4414 ac_preproc_ok=false 4415 for ac_c_preproc_warn_flag in '' yes 4416 do 4417 # Use a header file that comes with gcc, so configuring glibc 4418 # with a fresh cross-compiler works. 4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4420 # <limits.h> exists even on freestanding compilers. 4421 # On the NeXT, cc -E runs the code through the compiler's parser, 4422 # not just through cpp. "Syntax error" is here to catch this case. 4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4424 /* end confdefs.h. */ 4425 #ifdef __STDC__ 4426 # include <limits.h> 4427 #else 4428 # include <assert.h> 4429 #endif 4430 Syntax error 4431 _ACEOF 4432 if ac_fn_c_try_cpp "$LINENO"; then : 4433 4434 else 4435 # Broken: fails on valid input. 4436 continue 4437 fi 4438 rm -f conftest.err conftest.i conftest.$ac_ext 4439 4440 # OK, works on sane cases. Now check whether nonexistent headers 4441 # can be detected and how. 4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4443 /* end confdefs.h. */ 4444 #include <ac_nonexistent.h> 4445 _ACEOF 4446 if ac_fn_c_try_cpp "$LINENO"; then : 4447 # Broken: success on invalid input. 4448 continue 4449 else 4450 # Passes both tests. 4451 ac_preproc_ok=: 4452 break 4453 fi 4454 rm -f conftest.err conftest.i conftest.$ac_ext 4455 4456 done 4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4458 rm -f conftest.i conftest.err conftest.$ac_ext 4459 if $ac_preproc_ok; then : 4460 break 4461 fi 4462 4463 done 4464 ac_cv_prog_CPP=$CPP 4465 4466 fi 4467 CPP=$ac_cv_prog_CPP 4468 else 4469 ac_cv_prog_CPP=$CPP 4470 fi 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4472 $as_echo "$CPP" >&6; } 4473 ac_preproc_ok=false 4474 for ac_c_preproc_warn_flag in '' yes 4475 do 4476 # Use a header file that comes with gcc, so configuring glibc 4477 # with a fresh cross-compiler works. 4478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4479 # <limits.h> exists even on freestanding compilers. 4480 # On the NeXT, cc -E runs the code through the compiler's parser, 4481 # not just through cpp. "Syntax error" is here to catch this case. 4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483 /* end confdefs.h. */ 4484 #ifdef __STDC__ 4485 # include <limits.h> 4486 #else 4487 # include <assert.h> 4488 #endif 4489 Syntax error 4490 _ACEOF 4491 if ac_fn_c_try_cpp "$LINENO"; then : 4492 4493 else 4494 # Broken: fails on valid input. 4495 continue 4496 fi 4497 rm -f conftest.err conftest.i conftest.$ac_ext 4498 4499 # OK, works on sane cases. Now check whether nonexistent headers 4500 # can be detected and how. 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502 /* end confdefs.h. */ 4503 #include <ac_nonexistent.h> 4504 _ACEOF 4505 if ac_fn_c_try_cpp "$LINENO"; then : 4506 # Broken: success on invalid input. 4507 continue 4508 else 4509 # Passes both tests. 4510 ac_preproc_ok=: 4511 break 4512 fi 4513 rm -f conftest.err conftest.i conftest.$ac_ext 4514 4515 done 4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4517 rm -f conftest.i conftest.err conftest.$ac_ext 4518 if $ac_preproc_ok; then : 4519 4520 else 4521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4523 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4524 See \`config.log' for more details" "$LINENO" 5; } 4525 fi 4526 4527 ac_ext=c 4528 ac_cpp='$CPP $CPPFLAGS' 4529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4531 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4532 4533 ac_ext=cpp 4534 ac_cpp='$CXXCPP $CPPFLAGS' 4535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4538 if test -z "$CXX"; then 4539 if test -n "$CCC"; then 4540 CXX=$CCC 4541 else 4542 if test -n "$ac_tool_prefix"; then 4543 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4544 do 4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548 $as_echo_n "checking for $ac_word... " >&6; } 4549 if ${ac_cv_prog_CXX+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551 else 4552 if test -n "$CXX"; then 4553 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4554 else 4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556 for as_dir in $PATH 4557 do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4562 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566 done 4567 done 4568 IFS=$as_save_IFS 4569 4570 fi 4571 fi 4572 CXX=$ac_cv_prog_CXX 4573 if test -n "$CXX"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4575 $as_echo "$CXX" >&6; } 4576 else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578 $as_echo "no" >&6; } 4579 fi 4580 4581 4582 test -n "$CXX" && break 4583 done 4584 fi 4585 if test -z "$CXX"; then 4586 ac_ct_CXX=$CXX 4587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4588 do 4589 # Extract the first word of "$ac_prog", so it can be a program name with args. 4590 set dummy $ac_prog; ac_word=$2 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4592 $as_echo_n "checking for $ac_word... " >&6; } 4593 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595 else 4596 if test -n "$ac_ct_CXX"; then 4597 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4598 else 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600 for as_dir in $PATH 4601 do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4606 ac_cv_prog_ac_ct_CXX="$ac_prog" 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610 done 4611 done 4612 IFS=$as_save_IFS 4613 4614 fi 4615 fi 4616 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4617 if test -n "$ac_ct_CXX"; then 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4619 $as_echo "$ac_ct_CXX" >&6; } 4620 else 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4622 $as_echo "no" >&6; } 4623 fi 4624 4625 4626 test -n "$ac_ct_CXX" && break 4627 done 4628 4629 if test "x$ac_ct_CXX" = x; then 4630 CXX="g++" 4631 else 4632 case $cross_compiling:$ac_tool_warned in 4633 yes:) 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4636 ac_tool_warned=yes ;; 4637 esac 4638 CXX=$ac_ct_CXX 4639 fi 4640 fi 4641 4642 fi 4643 fi 4644 # Provide some information about the compiler. 4645 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4646 set X $ac_compile 4647 ac_compiler=$2 4648 for ac_option in --version -v -V -qversion; do 4649 { { ac_try="$ac_compiler $ac_option >&5" 4650 case "(($ac_try" in 4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4652 *) ac_try_echo=$ac_try;; 4653 esac 4654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4655 $as_echo "$ac_try_echo"; } >&5 4656 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4657 ac_status=$? 4658 if test -s conftest.err; then 4659 sed '10a\ 4660 ... rest of stderr output deleted ... 4661 10q' conftest.err >conftest.er1 4662 cat conftest.er1 >&5 4663 fi 4664 rm -f conftest.er1 conftest.err 4665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4666 test $ac_status = 0; } 4667 done 4668 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4670 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4671 if ${ac_cv_cxx_compiler_gnu+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673 else 4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4675 /* end confdefs.h. */ 4676 4677 int 4678 main () 4679 { 4680 #ifndef __GNUC__ 4681 choke me 4682 #endif 4683 4684 ; 4685 return 0; 4686 } 4687 _ACEOF 4688 if ac_fn_cxx_try_compile "$LINENO"; then : 4689 ac_compiler_gnu=yes 4690 else 4691 ac_compiler_gnu=no 4692 fi 4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4694 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4695 4696 fi 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4698 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4699 if test $ac_compiler_gnu = yes; then 4700 GXX=yes 4701 else 4702 GXX= 4703 fi 4704 ac_test_CXXFLAGS=${CXXFLAGS+set} 4705 ac_save_CXXFLAGS=$CXXFLAGS 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4707 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4708 if ${ac_cv_prog_cxx_g+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710 else 4711 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4712 ac_cxx_werror_flag=yes 4713 ac_cv_prog_cxx_g=no 4714 CXXFLAGS="-g" 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716 /* end confdefs.h. */ 4717 4718 int 4719 main () 4720 { 4721 4722 ; 4723 return 0; 4724 } 4725 _ACEOF 4726 if ac_fn_cxx_try_compile "$LINENO"; then : 4727 ac_cv_prog_cxx_g=yes 4728 else 4729 CXXFLAGS="" 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731 /* end confdefs.h. */ 4732 4733 int 4734 main () 4735 { 4736 4737 ; 4738 return 0; 4739 } 4740 _ACEOF 4741 if ac_fn_cxx_try_compile "$LINENO"; then : 4742 4743 else 4744 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4745 CXXFLAGS="-g" 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747 /* end confdefs.h. */ 4748 4749 int 4750 main () 4751 { 4752 4753 ; 4754 return 0; 4755 } 4756 _ACEOF 4757 if ac_fn_cxx_try_compile "$LINENO"; then : 4758 ac_cv_prog_cxx_g=yes 4759 fi 4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4761 fi 4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4763 fi 4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4765 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4766 fi 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4768 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4769 if test "$ac_test_CXXFLAGS" = set; then 4770 CXXFLAGS=$ac_save_CXXFLAGS 4771 elif test $ac_cv_prog_cxx_g = yes; then 4772 if test "$GXX" = yes; then 4773 CXXFLAGS="-g -O2" 4774 else 4775 CXXFLAGS="-g" 4776 fi 4777 else 4778 if test "$GXX" = yes; then 4779 CXXFLAGS="-O2" 4780 else 4781 CXXFLAGS= 4782 fi 4783 fi 4784 ac_ext=c 4785 ac_cpp='$CPP $CPPFLAGS' 4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4789 4790 depcc="$CXX" am_compiler_list= 4791 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4793 $as_echo_n "checking dependency style of $depcc... " >&6; } 4794 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4795 $as_echo_n "(cached) " >&6 4796 else 4797 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4798 # We make a subdir and do the tests there. Otherwise we can end up 4799 # making bogus files that we don't know about and never remove. For 4800 # instance it was reported that on HP-UX the gcc test will end up 4801 # making a dummy file named 'D' -- because '-MD' means "put the output 4802 # in D". 4803 rm -rf conftest.dir 4804 mkdir conftest.dir 4805 # Copy depcomp to subdir because otherwise we won't find it if we're 4806 # using a relative directory. 4807 cp "$am_depcomp" conftest.dir 4808 cd conftest.dir 4809 # We will build objects and dependencies in a subdirectory because 4810 # it helps to detect inapplicable dependency modes. For instance 4811 # both Tru64's cc and ICC support -MD to output dependencies as a 4812 # side effect of compilation, but ICC will put the dependencies in 4813 # the current directory while Tru64 will put them in the object 4814 # directory. 4815 mkdir sub 4816 4817 am_cv_CXX_dependencies_compiler_type=none 4818 if test "$am_compiler_list" = ""; then 4819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4820 fi 4821 am__universal=false 4822 case " $depcc " in #( 4823 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4824 esac 4825 4826 for depmode in $am_compiler_list; do 4827 # Setup a source with many dependencies, because some compilers 4828 # like to wrap large dependency lists on column 80 (with \), and 4829 # we should not choose a depcomp mode which is confused by this. 4830 # 4831 # We need to recreate these files for each test, as the compiler may 4832 # overwrite some of them when testing with obscure command lines. 4833 # This happens at least with the AIX C compiler. 4834 : > sub/conftest.c 4835 for i in 1 2 3 4 5 6; do 4836 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4837 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4838 # Solaris 10 /bin/sh. 4839 echo '/* dummy */' > sub/conftst$i.h 4840 done 4841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4842 4843 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4844 # mode. It turns out that the SunPro C++ compiler does not properly 4845 # handle '-M -o', and we need to detect this. Also, some Intel 4846 # versions had trouble with output in subdirs. 4847 am__obj=sub/conftest.${OBJEXT-o} 4848 am__minus_obj="-o $am__obj" 4849 case $depmode in 4850 gcc) 4851 # This depmode causes a compiler race in universal mode. 4852 test "$am__universal" = false || continue 4853 ;; 4854 nosideeffect) 4855 # After this tag, mechanisms are not by side-effect, so they'll 4856 # only be used when explicitly requested. 4857 if test "x$enable_dependency_tracking" = xyes; then 4858 continue 4859 else 4860 break 4861 fi 4862 ;; 4863 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4864 # This compiler won't grok '-c -o', but also, the minuso test has 4865 # not run yet. These depmodes are late enough in the game, and 4866 # so weak that their functioning should not be impacted. 4867 am__obj=conftest.${OBJEXT-o} 4868 am__minus_obj= 4869 ;; 4870 none) break ;; 4871 esac 4872 if depmode=$depmode \ 4873 source=sub/conftest.c object=$am__obj \ 4874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4876 >/dev/null 2>conftest.err && 4877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4881 # icc doesn't choke on unknown options, it will just issue warnings 4882 # or remarks (even with -Werror). So we grep stderr for any message 4883 # that says an option was ignored or not supported. 4884 # When given -MP, icc 7.0 and 7.1 complain thusly: 4885 # icc: Command line warning: ignoring option '-M'; no argument required 4886 # The diagnosis changed in icc 8.0: 4887 # icc: Command line remark: option '-MP' not supported 4888 if (grep 'ignoring option' conftest.err || 4889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4890 am_cv_CXX_dependencies_compiler_type=$depmode 4891 break 4892 fi 4893 fi 4894 done 4895 4896 cd .. 4897 rm -rf conftest.dir 4898 else 4899 am_cv_CXX_dependencies_compiler_type=none 4900 fi 4901 4902 fi 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4904 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4905 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4906 4907 if 4908 test "x$enable_dependency_tracking" != xno \ 4909 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4910 am__fastdepCXX_TRUE= 4911 am__fastdepCXX_FALSE='#' 4912 else 4913 am__fastdepCXX_TRUE='#' 4914 am__fastdepCXX_FALSE= 4915 fi 4916 4917 4918 # AC_PROG_OBJC apparently causes problems on older Linux distros (eg. with 4919 # autoconf 2.59). If we ever have any Objective-C code in the Valgrind code 4920 # base (eg. most likely as Darwin-specific tests) we'll need one of the 4921 # following: 4922 # - put AC_PROG_OBJC in a Darwin-specific part of this file 4923 # - Use AC_PROG_OBJC here and up the minimum autoconf version 4924 # - Use the following, which is apparently equivalent: 4925 # m4_ifdef([AC_PROG_OBJC], 4926 # [AC_PROG_OBJC], 4927 # [AC_CHECK_TOOL([OBJC], [gcc]) 4928 # AC_SUBST([OBJC]) 4929 # AC_SUBST([OBJCFLAGS]) 4930 # ]) 4931 if test -n "$ac_tool_prefix"; then 4932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4935 $as_echo_n "checking for $ac_word... " >&6; } 4936 if ${ac_cv_prog_RANLIB+:} false; then : 4937 $as_echo_n "(cached) " >&6 4938 else 4939 if test -n "$RANLIB"; then 4940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4941 else 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943 for as_dir in $PATH 4944 do 4945 IFS=$as_save_IFS 4946 test -z "$as_dir" && as_dir=. 4947 for ac_exec_ext in '' $ac_executable_extensions; do 4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4951 break 2 4952 fi 4953 done 4954 done 4955 IFS=$as_save_IFS 4956 4957 fi 4958 fi 4959 RANLIB=$ac_cv_prog_RANLIB 4960 if test -n "$RANLIB"; then 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4962 $as_echo "$RANLIB" >&6; } 4963 else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965 $as_echo "no" >&6; } 4966 fi 4967 4968 4969 fi 4970 if test -z "$ac_cv_prog_RANLIB"; then 4971 ac_ct_RANLIB=$RANLIB 4972 # Extract the first word of "ranlib", so it can be a program name with args. 4973 set dummy ranlib; ac_word=$2 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4975 $as_echo_n "checking for $ac_word... " >&6; } 4976 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978 else 4979 if test -n "$ac_ct_RANLIB"; then 4980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4981 else 4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4983 for as_dir in $PATH 4984 do 4985 IFS=$as_save_IFS 4986 test -z "$as_dir" && as_dir=. 4987 for ac_exec_ext in '' $ac_executable_extensions; do 4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4989 ac_cv_prog_ac_ct_RANLIB="ranlib" 4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4991 break 2 4992 fi 4993 done 4994 done 4995 IFS=$as_save_IFS 4996 4997 fi 4998 fi 4999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5000 if test -n "$ac_ct_RANLIB"; then 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5002 $as_echo "$ac_ct_RANLIB" >&6; } 5003 else 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5005 $as_echo "no" >&6; } 5006 fi 5007 5008 if test "x$ac_ct_RANLIB" = x; then 5009 RANLIB=":" 5010 else 5011 case $cross_compiling:$ac_tool_warned in 5012 yes:) 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5015 ac_tool_warned=yes ;; 5016 esac 5017 RANLIB=$ac_ct_RANLIB 5018 fi 5019 else 5020 RANLIB="$ac_cv_prog_RANLIB" 5021 fi 5022 5023 # provide a very basic definition for AC_PROG_SED if it's not provided by 5024 # autoconf (as e.g. in autoconf 2.59). 5025 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5027 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5028 if ${ac_cv_path_SED+:} false; then : 5029 $as_echo_n "(cached) " >&6 5030 else 5031 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5032 for ac_i in 1 2 3 4 5 6 7; do 5033 ac_script="$ac_script$as_nl$ac_script" 5034 done 5035 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5036 { ac_script=; unset ac_script;} 5037 if test -z "$SED"; then 5038 ac_path_SED_found=false 5039 # Loop through the user's path and test for each of PROGNAME-LIST 5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5041 for as_dir in $PATH 5042 do 5043 IFS=$as_save_IFS 5044 test -z "$as_dir" && as_dir=. 5045 for ac_prog in sed gsed; do 5046 for ac_exec_ext in '' $ac_executable_extensions; do 5047 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5048 as_fn_executable_p "$ac_path_SED" || continue 5049 # Check for GNU ac_path_SED and select it if it is found. 5050 # Check for GNU $ac_path_SED 5051 case `"$ac_path_SED" --version 2>&1` in 5052 *GNU*) 5053 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5054 *) 5055 ac_count=0 5056 $as_echo_n 0123456789 >"conftest.in" 5057 while : 5058 do 5059 cat "conftest.in" "conftest.in" >"conftest.tmp" 5060 mv "conftest.tmp" "conftest.in" 5061 cp "conftest.in" "conftest.nl" 5062 $as_echo '' >> "conftest.nl" 5063 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5065 as_fn_arith $ac_count + 1 && ac_count=$as_val 5066 if test $ac_count -gt ${ac_path_SED_max-0}; then 5067 # Best one so far, save it but keep looking for a better one 5068 ac_cv_path_SED="$ac_path_SED" 5069 ac_path_SED_max=$ac_count 5070 fi 5071 # 10*(2^10) chars as input seems more than enough 5072 test $ac_count -gt 10 && break 5073 done 5074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5075 esac 5076 5077 $ac_path_SED_found && break 3 5078 done 5079 done 5080 done 5081 IFS=$as_save_IFS 5082 if test -z "$ac_cv_path_SED"; then 5083 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5084 fi 5085 else 5086 ac_cv_path_SED=$SED 5087 fi 5088 5089 fi 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5091 $as_echo "$ac_cv_path_SED" >&6; } 5092 SED="$ac_cv_path_SED" 5093 rm -f conftest.sed 5094 5095 5096 # If no AR variable was specified, look up the name of the archiver. Otherwise 5097 # do not touch the AR variable. 5098 if test "x$AR" = "x"; then 5099 for ac_prog in `echo $LD | $SED 's/ld$/ar/'` "ar" 5100 do 5101 # Extract the first word of "$ac_prog", so it can be a program name with args. 5102 set dummy $ac_prog; ac_word=$2 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5104 $as_echo_n "checking for $ac_word... " >&6; } 5105 if ${ac_cv_path_AR+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107 else 5108 case $AR in 5109 [\\/]* | ?:[\\/]*) 5110 ac_cv_path_AR="$AR" # Let the user override the test with a path. 5111 ;; 5112 *) 5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114 for as_dir in $PATH 5115 do 5116 IFS=$as_save_IFS 5117 test -z "$as_dir" && as_dir=. 5118 for ac_exec_ext in '' $ac_executable_extensions; do 5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5120 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5122 break 2 5123 fi 5124 done 5125 done 5126 IFS=$as_save_IFS 5127 5128 ;; 5129 esac 5130 fi 5131 AR=$ac_cv_path_AR 5132 if test -n "$AR"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5134 $as_echo "$AR" >&6; } 5135 else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5137 $as_echo "no" >&6; } 5138 fi 5139 5140 5141 test -n "$AR" && break 5142 done 5143 test -n "$AR" || AR="ar" 5144 5145 fi 5146 5147 5148 # Check for the compiler support 5149 if test "${GCC}" != "yes" ; then 5150 as_fn_error $? "Valgrind relies on GCC to be compiled" "$LINENO" 5 5151 fi 5152 5153 # figure out where perl lives 5154 # Extract the first word of "perl", so it can be a program name with args. 5155 set dummy perl; ac_word=$2 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5157 $as_echo_n "checking for $ac_word... " >&6; } 5158 if ${ac_cv_path_PERL+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160 else 5161 case $PERL in 5162 [\\/]* | ?:[\\/]*) 5163 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 5164 ;; 5165 *) 5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167 for as_dir in $PATH 5168 do 5169 IFS=$as_save_IFS 5170 test -z "$as_dir" && as_dir=. 5171 for ac_exec_ext in '' $ac_executable_extensions; do 5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5173 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5175 break 2 5176 fi 5177 done 5178 done 5179 IFS=$as_save_IFS 5180 5181 ;; 5182 esac 5183 fi 5184 PERL=$ac_cv_path_PERL 5185 if test -n "$PERL"; then 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 5187 $as_echo "$PERL" >&6; } 5188 else 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5190 $as_echo "no" >&6; } 5191 fi 5192 5193 5194 5195 # figure out where gdb lives 5196 # Extract the first word of "gdb", so it can be a program name with args. 5197 set dummy gdb; ac_word=$2 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5199 $as_echo_n "checking for $ac_word... " >&6; } 5200 if ${ac_cv_path_GDB+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202 else 5203 case $GDB in 5204 [\\/]* | ?:[\\/]*) 5205 ac_cv_path_GDB="$GDB" # Let the user override the test with a path. 5206 ;; 5207 *) 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209 for as_dir in $PATH 5210 do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5215 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5217 break 2 5218 fi 5219 done 5220 done 5221 IFS=$as_save_IFS 5222 5223 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB=""/no/gdb/was/found/at/configure/time"" 5224 ;; 5225 esac 5226 fi 5227 GDB=$ac_cv_path_GDB 5228 if test -n "$GDB"; then 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDB" >&5 5230 $as_echo "$GDB" >&6; } 5231 else 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5233 $as_echo "no" >&6; } 5234 fi 5235 5236 5237 5238 cat >>confdefs.h <<_ACEOF 5239 #define GDB_PATH "$GDB" 5240 _ACEOF 5241 5242 5243 # some older automake's don't have it so try something on our own 5244 # By default we simply use the C compiler to build assembly code. 5245 5246 test "${CCAS+set}" = set || CCAS=$CC 5247 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 5248 5249 5250 5251 depcc="$CCAS" am_compiler_list= 5252 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5254 $as_echo_n "checking dependency style of $depcc... " >&6; } 5255 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257 else 5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5259 # We make a subdir and do the tests there. Otherwise we can end up 5260 # making bogus files that we don't know about and never remove. For 5261 # instance it was reported that on HP-UX the gcc test will end up 5262 # making a dummy file named 'D' -- because '-MD' means "put the output 5263 # in D". 5264 rm -rf conftest.dir 5265 mkdir conftest.dir 5266 # Copy depcomp to subdir because otherwise we won't find it if we're 5267 # using a relative directory. 5268 cp "$am_depcomp" conftest.dir 5269 cd conftest.dir 5270 # We will build objects and dependencies in a subdirectory because 5271 # it helps to detect inapplicable dependency modes. For instance 5272 # both Tru64's cc and ICC support -MD to output dependencies as a 5273 # side effect of compilation, but ICC will put the dependencies in 5274 # the current directory while Tru64 will put them in the object 5275 # directory. 5276 mkdir sub 5277 5278 am_cv_CCAS_dependencies_compiler_type=none 5279 if test "$am_compiler_list" = ""; then 5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5281 fi 5282 am__universal=false 5283 5284 5285 for depmode in $am_compiler_list; do 5286 # Setup a source with many dependencies, because some compilers 5287 # like to wrap large dependency lists on column 80 (with \), and 5288 # we should not choose a depcomp mode which is confused by this. 5289 # 5290 # We need to recreate these files for each test, as the compiler may 5291 # overwrite some of them when testing with obscure command lines. 5292 # This happens at least with the AIX C compiler. 5293 : > sub/conftest.c 5294 for i in 1 2 3 4 5 6; do 5295 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5296 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5297 # Solaris 10 /bin/sh. 5298 echo '/* dummy */' > sub/conftst$i.h 5299 done 5300 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5301 5302 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5303 # mode. It turns out that the SunPro C++ compiler does not properly 5304 # handle '-M -o', and we need to detect this. Also, some Intel 5305 # versions had trouble with output in subdirs. 5306 am__obj=sub/conftest.${OBJEXT-o} 5307 am__minus_obj="-o $am__obj" 5308 case $depmode in 5309 gcc) 5310 # This depmode causes a compiler race in universal mode. 5311 test "$am__universal" = false || continue 5312 ;; 5313 nosideeffect) 5314 # After this tag, mechanisms are not by side-effect, so they'll 5315 # only be used when explicitly requested. 5316 if test "x$enable_dependency_tracking" = xyes; then 5317 continue 5318 else 5319 break 5320 fi 5321 ;; 5322 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5323 # This compiler won't grok '-c -o', but also, the minuso test has 5324 # not run yet. These depmodes are late enough in the game, and 5325 # so weak that their functioning should not be impacted. 5326 am__obj=conftest.${OBJEXT-o} 5327 am__minus_obj= 5328 ;; 5329 none) break ;; 5330 esac 5331 if depmode=$depmode \ 5332 source=sub/conftest.c object=$am__obj \ 5333 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5334 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5335 >/dev/null 2>conftest.err && 5336 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5337 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5338 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5339 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5340 # icc doesn't choke on unknown options, it will just issue warnings 5341 # or remarks (even with -Werror). So we grep stderr for any message 5342 # that says an option was ignored or not supported. 5343 # When given -MP, icc 7.0 and 7.1 complain thusly: 5344 # icc: Command line warning: ignoring option '-M'; no argument required 5345 # The diagnosis changed in icc 8.0: 5346 # icc: Command line remark: option '-MP' not supported 5347 if (grep 'ignoring option' conftest.err || 5348 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5349 am_cv_CCAS_dependencies_compiler_type=$depmode 5350 break 5351 fi 5352 fi 5353 done 5354 5355 cd .. 5356 rm -rf conftest.dir 5357 else 5358 am_cv_CCAS_dependencies_compiler_type=none 5359 fi 5360 5361 fi 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 5363 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 5364 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 5365 5366 if 5367 test "x$enable_dependency_tracking" != xno \ 5368 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 5369 am__fastdepCCAS_TRUE= 5370 am__fastdepCCAS_FALSE='#' 5371 else 5372 am__fastdepCCAS_TRUE='#' 5373 am__fastdepCCAS_FALSE= 5374 fi 5375 5376 5377 5378 5379 # Check if 'diff' supports -u (universal diffs) and use it if possible. 5380 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for diff -u" >&5 5382 $as_echo_n "checking for diff -u... " >&6; } 5383 5384 5385 # Comparing two identical files results in 0. 5386 tmpfile="tmp-xxx-yyy-zzz" 5387 touch $tmpfile; 5388 if diff -u $tmpfile $tmpfile ; then 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5390 $as_echo "yes" >&6; } 5391 DIFF="diff -u" 5392 else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394 $as_echo "no" >&6; } 5395 DIFF="diff" 5396 fi 5397 rm $tmpfile 5398 5399 5400 # We don't want gcc < 3.0 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported version of gcc" >&5 5402 $as_echo_n "checking for a supported version of gcc... " >&6; } 5403 5404 # Obtain the compiler version. 5405 # 5406 # A few examples of how the ${CC} --version output looks like: 5407 # 5408 # ######## gcc variants ######## 5409 # Arch Linux: i686-pc-linux-gnu-gcc (GCC) 4.6.2 5410 # Debian Linux: gcc (Debian 4.3.2-1.1) 4.3.2 5411 # openSUSE: gcc (SUSE Linux) 4.5.1 20101208 [gcc-4_5-branch revision 167585] 5412 # Exherbo Linux: x86_64-pc-linux-gnu-gcc (Exherbo gcc-4.6.2) 4.6.2 5413 # MontaVista Linux for ARM: arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q1-203) 4.3.3 5414 # OS/X 10.6: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) 5415 # OS/X 10.7: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) 5416 # 5417 # ######## clang variants ######## 5418 # Clang: clang version 2.9 (tags/RELEASE_29/final) 5419 # Apple clang: Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) 5420 # FreeBSD clang: FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 5421 # 5422 # ######## Apple LLVM variants ######## 5423 # Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) 5424 # Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) 5425 # 5426 5427 if test "x`${CC} --version | $SED -n -e 's/.*\Apple \(LLVM\) version.*clang.*/\1/p'`" = "xLLVM" ; 5428 then 5429 is_clang="applellvm" 5430 gcc_version=`${CC} --version | $SED -n -e 's/.*LLVM version \([0-9.]*\).*$/\1/p'` 5431 elif test "x`${CC} --version | $SED -n -e 's/.*\(clang\) version.*/\1/p'`" = "xclang" ; 5432 then 5433 is_clang="clang" 5434 # Don't use -dumpversion with clang: it will always produce "4.2.1". 5435 gcc_version=`${CC} --version | $SED -n -e 's/.*clang version \([0-9.]*\).*$/\1/p'` 5436 elif test "x`${CC} --version | $SED -n -e 's/icc.*\(ICC\).*/\1/p'`" = "xICC" ; 5437 then 5438 is_clang="icc" 5439 gcc_version=`${CC} -dumpversion 2>/dev/null` 5440 else 5441 is_clang="notclang" 5442 gcc_version=`${CC} -dumpversion 2>/dev/null` 5443 if test "x$gcc_version" = x; then 5444 gcc_version=`${CC} --version | $SED -n -e 's/[^ ]*gcc[^ ]* ([^)]*) \([0-9.]*\).*$/\1/p'` 5445 fi 5446 fi 5447 5448 if test $is_clang = clang -o $is_clang = applellvm; then 5449 COMPILER_IS_CLANG_TRUE= 5450 COMPILER_IS_CLANG_FALSE='#' 5451 else 5452 COMPILER_IS_CLANG_TRUE='#' 5453 COMPILER_IS_CLANG_FALSE= 5454 fi 5455 5456 if test $is_clang = icc; then 5457 COMPILER_IS_ICC_TRUE= 5458 COMPILER_IS_ICC_FALSE='#' 5459 else 5460 COMPILER_IS_ICC_TRUE='#' 5461 COMPILER_IS_ICC_FALSE= 5462 fi 5463 5464 5465 # Note: m4 arguments are quoted with [ and ] so square brackets in shell 5466 # statements have to be quoted. 5467 case "${is_clang}-${gcc_version}" in 5468 applellvm-5.1|applellvm-6.*|applellvm-7.*|applellvm-8.*) 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (Apple LLVM version ${gcc_version})" >&5 5470 $as_echo "ok (Apple LLVM version ${gcc_version})" >&6; } 5471 ;; 5472 icc-1[3-9].*) 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (ICC version ${gcc_version})" >&5 5474 $as_echo "ok (ICC version ${gcc_version})" >&6; } 5475 ;; 5476 notclang-[3-9]|notclang-[3-9].*|notclang-[1-9][0-9]*) 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${gcc_version})" >&5 5478 $as_echo "ok (${gcc_version})" >&6; } 5479 ;; 5480 clang-2.9|clang-[3-9].*|clang-[1-9][0-9]*) 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (clang-${gcc_version})" >&5 5482 $as_echo "ok (clang-${gcc_version})" >&6; } 5483 ;; 5484 *) 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${is_clang}-${gcc_version})" >&5 5486 $as_echo "no (${is_clang}-${gcc_version})" >&6; } 5487 as_fn_error $? "please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0" "$LINENO" 5 5488 ;; 5489 esac 5490 5491 #---------------------------------------------------------------------------- 5492 # Arch/OS/platform tests. 5493 #---------------------------------------------------------------------------- 5494 # We create a number of arch/OS/platform-related variables. We prefix them 5495 # all with "VGCONF_" which indicates that they are defined at 5496 # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_* 5497 # variables used when compiling C files. 5498 5499 # Make sure we can run config.sub. 5500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5501 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5502 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5504 $as_echo_n "checking build system type... " >&6; } 5505 if ${ac_cv_build+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507 else 5508 ac_build_alias=$build_alias 5509 test "x$ac_build_alias" = x && 5510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5511 test "x$ac_build_alias" = x && 5512 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5515 5516 fi 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5518 $as_echo "$ac_cv_build" >&6; } 5519 case $ac_cv_build in 5520 *-*-*) ;; 5521 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5522 esac 5523 build=$ac_cv_build 5524 ac_save_IFS=$IFS; IFS='-' 5525 set x $ac_cv_build 5526 shift 5527 build_cpu=$1 5528 build_vendor=$2 5529 shift; shift 5530 # Remember, the first character of IFS is used to create $*, 5531 # except with old shells: 5532 build_os=$* 5533 IFS=$ac_save_IFS 5534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5535 5536 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5538 $as_echo_n "checking host system type... " >&6; } 5539 if ${ac_cv_host+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541 else 5542 if test "x$host_alias" = x; then 5543 ac_cv_host=$ac_cv_build 5544 else 5545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5546 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5547 fi 5548 5549 fi 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5551 $as_echo "$ac_cv_host" >&6; } 5552 case $ac_cv_host in 5553 *-*-*) ;; 5554 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5555 esac 5556 host=$ac_cv_host 5557 ac_save_IFS=$IFS; IFS='-' 5558 set x $ac_cv_host 5559 shift 5560 host_cpu=$1 5561 host_vendor=$2 5562 shift; shift 5563 # Remember, the first character of IFS is used to create $*, 5564 # except with old shells: 5565 host_os=$* 5566 IFS=$ac_save_IFS 5567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5568 5569 5570 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU" >&5 5572 $as_echo_n "checking for a supported CPU... " >&6; } 5573 5574 # ARCH_MAX reflects the most that this CPU can do: for example if it 5575 # is a 64-bit capable PowerPC, then it must be set to ppc64 and not ppc32. 5576 # Ditto for amd64. It is used for more configuration below, but is not used 5577 # outside this file. 5578 # 5579 # Power PC returns powerpc for Big Endian. This was not changed when Little 5580 # Endian support was added to the 64-bit architecture. The 64-bit Little 5581 # Endian systems explicitly state le in the host_cpu. For clarity in the 5582 # Valgrind code, the ARCH_MAX name will state LE or BE for the endianness of 5583 # the 64-bit system. Big Endian is the only mode supported on 32-bit Power PC. 5584 # The abreviation PPC or ppc refers to 32-bit and 64-bit systems with either 5585 # Endianness. The name PPC64 or ppc64 to 64-bit systems of either Endianness. 5586 # The names ppc64be or PPC64BE refer to only 64-bit systems that are Big 5587 # Endian. Similarly, ppc64le or PPC64LE refer to only 64-bit systems that are 5588 # Little Endian. 5589 5590 case "${host_cpu}" in 5591 i?86) 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5593 $as_echo "ok (${host_cpu})" >&6; } 5594 ARCH_MAX="x86" 5595 ;; 5596 5597 x86_64) 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5599 $as_echo "ok (${host_cpu})" >&6; } 5600 ARCH_MAX="amd64" 5601 ;; 5602 5603 powerpc64) 5604 # this only referrs to 64-bit Big Endian 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5606 $as_echo "ok (${host_cpu})" >&6; } 5607 ARCH_MAX="ppc64be" 5608 ;; 5609 5610 powerpc64le) 5611 # this only referrs to 64-bit Little Endian 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5613 $as_echo "ok (${host_cpu})" >&6; } 5614 ARCH_MAX="ppc64le" 5615 ;; 5616 5617 powerpc) 5618 # On Linux this means only a 32-bit capable CPU. 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5620 $as_echo "ok (${host_cpu})" >&6; } 5621 ARCH_MAX="ppc32" 5622 ;; 5623 5624 s390x) 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5626 $as_echo "ok (${host_cpu})" >&6; } 5627 ARCH_MAX="s390x" 5628 ;; 5629 5630 armv7*) 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5632 $as_echo "ok (${host_cpu})" >&6; } 5633 ARCH_MAX="arm" 5634 ;; 5635 5636 aarch64*) 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5638 $as_echo "ok (${host_cpu})" >&6; } 5639 ARCH_MAX="arm64" 5640 ;; 5641 5642 mips) 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5644 $as_echo "ok (${host_cpu})" >&6; } 5645 ARCH_MAX="mips32" 5646 ;; 5647 5648 mipsel) 5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5650 $as_echo "ok (${host_cpu})" >&6; } 5651 ARCH_MAX="mips32" 5652 ;; 5653 5654 mipsisa32r2) 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5656 $as_echo "ok (${host_cpu})" >&6; } 5657 ARCH_MAX="mips32" 5658 ;; 5659 5660 mips64*) 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5662 $as_echo "ok (${host_cpu})" >&6; } 5663 ARCH_MAX="mips64" 5664 ;; 5665 5666 mipsisa64*) 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5 5668 $as_echo "ok (${host_cpu})" >&6; } 5669 ARCH_MAX="mips64" 5670 ;; 5671 5672 *) 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5 5674 $as_echo "no (${host_cpu})" >&6; } 5675 as_fn_error $? "Unsupported host architecture. Sorry" "$LINENO" 5 5676 ;; 5677 esac 5678 5679 #---------------------------------------------------------------------------- 5680 5681 # Sometimes it's convenient to subvert the bi-arch build system and 5682 # just have a single build even though the underlying platform is 5683 # capable of both. Hence handle --enable-only64bit and 5684 # --enable-only32bit. Complain if both are issued :-) 5685 # [Actually, if either of these options are used, I think both get built, 5686 # but only one gets installed. So if you use an in-place build, both can be 5687 # used. --njn] 5688 5689 # Check if a 64-bit only build has been requested 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 64-bit only build" >&5 5691 $as_echo_n "checking for a 64-bit only build... " >&6; } 5692 if ${vg_cv_only64bit+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694 else 5695 # Check whether --enable-only64bit was given. 5696 if test "${enable_only64bit+set}" = set; then : 5697 enableval=$enable_only64bit; vg_cv_only64bit=$enableval 5698 else 5699 vg_cv_only64bit=no 5700 fi 5701 5702 fi 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only64bit" >&5 5704 $as_echo "$vg_cv_only64bit" >&6; } 5705 5706 # Check if a 32-bit only build has been requested 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a 32-bit only build" >&5 5708 $as_echo_n "checking for a 32-bit only build... " >&6; } 5709 if ${vg_cv_only32bit+:} false; then : 5710 $as_echo_n "(cached) " >&6 5711 else 5712 # Check whether --enable-only32bit was given. 5713 if test "${enable_only32bit+set}" = set; then : 5714 enableval=$enable_only32bit; vg_cv_only32bit=$enableval 5715 else 5716 vg_cv_only32bit=no 5717 fi 5718 5719 fi 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_only32bit" >&5 5721 $as_echo "$vg_cv_only32bit" >&6; } 5722 5723 # Stay sane 5724 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then 5725 as_fn_error $? "Nonsensical: both --enable-only64bit and --enable-only32bit." "$LINENO" 5 5726 fi 5727 5728 #---------------------------------------------------------------------------- 5729 5730 # VGCONF_OS is the primary build OS, eg. "linux". It is passed in to 5731 # compilation of many C files via -VGO_$(VGCONF_OS) and 5732 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS). 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported OS" >&5 5734 $as_echo_n "checking for a supported OS... " >&6; } 5735 5736 5737 DEFAULT_SUPP="" 5738 5739 case "${host_os}" in 5740 *linux*) 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5 5742 $as_echo "ok (${host_os})" >&6; } 5743 VGCONF_OS="linux" 5744 5745 # Ok, this is linux. Check the kernel version 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5 5747 $as_echo_n "checking for the kernel version... " >&6; } 5748 5749 kernel=`uname -r` 5750 5751 case "${kernel}" in 5752 0.*|1.*|2.0.*|2.1.*|2.2.*|2.3.*|2.4.*|2.5.*) 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5 5754 $as_echo "unsupported (${kernel})" >&6; } 5755 as_fn_error $? "Valgrind needs a Linux kernel >= 2.6" "$LINENO" 5 5756 ;; 5757 5758 *) 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 or later (${kernel})" >&5 5760 $as_echo "2.6 or later (${kernel})" >&6; } 5761 ;; 5762 esac 5763 5764 ;; 5765 5766 *darwin*) 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5 5768 $as_echo "ok (${host_os})" >&6; } 5769 VGCONF_OS="darwin" 5770 5771 $as_echo "#define DARWIN_10_5 100500" >>confdefs.h 5772 5773 5774 $as_echo "#define DARWIN_10_6 100600" >>confdefs.h 5775 5776 5777 $as_echo "#define DARWIN_10_7 100700" >>confdefs.h 5778 5779 5780 $as_echo "#define DARWIN_10_8 100800" >>confdefs.h 5781 5782 5783 $as_echo "#define DARWIN_10_9 100900" >>confdefs.h 5784 5785 5786 $as_echo "#define DARWIN_10_10 101000" >>confdefs.h 5787 5788 5789 $as_echo "#define DARWIN_10_11 101100" >>confdefs.h 5790 5791 5792 $as_echo "#define DARWIN_10_12 101200" >>confdefs.h 5793 5794 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel version" >&5 5796 $as_echo_n "checking for the kernel version... " >&6; } 5797 kernel=`uname -r` 5798 5799 # Nb: for Darwin we set DEFAULT_SUPP here. That's because Darwin 5800 # has only one relevant version, the OS version. The `uname` check 5801 # is a good way to get that version (i.e. "Darwin 9.6.0" is Mac OS 5802 # X 10.5.6, and "Darwin 10.x" is Mac OS X 10.6.x Snow Leopard, 5803 # and possibly "Darwin 11.x" is Mac OS X 10.7.x Lion), 5804 # and we don't know of an macros similar to __GLIBC__ to get that info. 5805 # 5806 # XXX: `uname -r` won't do the right thing for cross-compiles, but 5807 # that's not a problem yet. 5808 # 5809 # jseward 21 Sept 2011: I seriously doubt whether V 3.7.0 will work 5810 # on OS X 10.5.x; I haven't tested yet, and only plan to test 3.7.0 5811 # on 10.6.8 and 10.7.1. Although tempted to delete the configure 5812 # time support for 10.5 (the 9.* pattern just below), I'll leave it 5813 # in for now, just in case anybody wants to give it a try. But I'm 5814 # assuming that 3.7.0 is a Snow Leopard and Lion-only release. 5815 case "${kernel}" in 5816 9.*) 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&5 5818 $as_echo "Darwin 9.x (${kernel}) / Mac OS X 10.5 Leopard" >&6; } 5819 5820 $as_echo "#define DARWIN_VERS DARWIN_10_5" >>confdefs.h 5821 5822 DEFAULT_SUPP="darwin9.supp ${DEFAULT_SUPP}" 5823 DEFAULT_SUPP="darwin9-drd.supp ${DEFAULT_SUPP}" 5824 ;; 5825 10.*) 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&5 5827 $as_echo "Darwin 10.x (${kernel}) / Mac OS X 10.6 Snow Leopard" >&6; } 5828 5829 $as_echo "#define DARWIN_VERS DARWIN_10_6" >>confdefs.h 5830 5831 DEFAULT_SUPP="darwin10.supp ${DEFAULT_SUPP}" 5832 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5833 ;; 5834 11.*) 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&5 5836 $as_echo "Darwin 11.x (${kernel}) / Mac OS X 10.7 Lion" >&6; } 5837 5838 $as_echo "#define DARWIN_VERS DARWIN_10_7" >>confdefs.h 5839 5840 DEFAULT_SUPP="darwin11.supp ${DEFAULT_SUPP}" 5841 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5842 ;; 5843 12.*) 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&5 5845 $as_echo "Darwin 12.x (${kernel}) / Mac OS X 10.8 Mountain Lion" >&6; } 5846 5847 $as_echo "#define DARWIN_VERS DARWIN_10_8" >>confdefs.h 5848 5849 DEFAULT_SUPP="darwin12.supp ${DEFAULT_SUPP}" 5850 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5851 ;; 5852 13.*) 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&5 5854 $as_echo "Darwin 13.x (${kernel}) / Mac OS X 10.9 Mavericks" >&6; } 5855 5856 $as_echo "#define DARWIN_VERS DARWIN_10_9" >>confdefs.h 5857 5858 DEFAULT_SUPP="darwin13.supp ${DEFAULT_SUPP}" 5859 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5860 ;; 5861 14.*) 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&5 5863 $as_echo "Darwin 14.x (${kernel}) / Mac OS X 10.10 Yosemite" >&6; } 5864 5865 $as_echo "#define DARWIN_VERS DARWIN_10_10" >>confdefs.h 5866 5867 DEFAULT_SUPP="darwin14.supp ${DEFAULT_SUPP}" 5868 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5869 ;; 5870 15.*) 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&5 5872 $as_echo "Darwin 15.x (${kernel}) / Mac OS X 10.11 El Capitan" >&6; } 5873 5874 $as_echo "#define DARWIN_VERS DARWIN_10_11" >>confdefs.h 5875 5876 DEFAULT_SUPP="darwin15.supp ${DEFAULT_SUPP}" 5877 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5878 ;; 5879 16.*) 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&5 5881 $as_echo "Darwin 16.x (${kernel}) / macOS 10.12 Sierra" >&6; } 5882 5883 $as_echo "#define DARWIN_VERS DARWIN_10_12" >>confdefs.h 5884 5885 DEFAULT_SUPP="darwin16.supp ${DEFAULT_SUPP}" 5886 DEFAULT_SUPP="darwin10-drd.supp ${DEFAULT_SUPP}" 5887 ;; 5888 *) 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported (${kernel})" >&5 5890 $as_echo "unsupported (${kernel})" >&6; } 5891 as_fn_error $? "Valgrind works on Darwin 10.x, 11.x, 12.x, 13.x, 14.x, 15.x and 16.x (Mac OS X 10.6/7/8/9/10/11 and macOS 10.12)" "$LINENO" 5 5892 ;; 5893 esac 5894 ;; 5895 5896 solaris2.11*) 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5 5898 $as_echo "ok (${host_os})" >&6; } 5899 VGCONF_OS="solaris" 5900 DEFAULT_SUPP="solaris11.supp ${DEFAULT_SUPP}" 5901 ;; 5902 5903 solaris2.12*) 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_os})" >&5 5905 $as_echo "ok (${host_os})" >&6; } 5906 VGCONF_OS="solaris" 5907 DEFAULT_SUPP="solaris12.supp ${DEFAULT_SUPP}" 5908 ;; 5909 5910 *) 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_os})" >&5 5912 $as_echo "no (${host_os})" >&6; } 5913 as_fn_error $? "Valgrind is operating system specific. Sorry." "$LINENO" 5 5914 ;; 5915 esac 5916 5917 #---------------------------------------------------------------------------- 5918 5919 # If we are building on a 64 bit platform test to see if the system 5920 # supports building 32 bit programs and disable 32 bit support if it 5921 # does not support building 32 bit programs 5922 5923 case "$ARCH_MAX-$VGCONF_OS" in 5924 amd64-linux|ppc64be-linux|arm64-linux|amd64-solaris) 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32 bit build support" >&5 5926 $as_echo_n "checking for 32 bit build support... " >&6; } 5927 safe_CFLAGS=$CFLAGS 5928 CFLAGS="-m32" 5929 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931 /* end confdefs.h. */ 5932 5933 int 5934 main () 5935 { 5936 5937 return 0; 5938 5939 ; 5940 return 0; 5941 } 5942 _ACEOF 5943 if ac_fn_c_try_link "$LINENO"; then : 5944 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5946 $as_echo "yes" >&6; } 5947 5948 else 5949 5950 vg_cv_only64bit="yes" 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5952 $as_echo "no" >&6; } 5953 5954 fi 5955 rm -f core conftest.err conftest.$ac_objext \ 5956 conftest$ac_exeext conftest.$ac_ext 5957 CFLAGS=$safe_CFLAGS;; 5958 esac 5959 5960 if test x$vg_cv_only64bit = xyes -a x$vg_cv_only32bit = xyes; then 5961 as_fn_error $? "--enable-only32bit was specified but system does not support 32 bit builds" "$LINENO" 5 5962 fi 5963 5964 #---------------------------------------------------------------------------- 5965 5966 # VGCONF_ARCH_PRI is the arch for the primary build target, eg. "amd64". By 5967 # default it's the same as ARCH_MAX. But if, say, we do a build on an amd64 5968 # machine, but --enable-only32bit has been requested, then ARCH_MAX (see 5969 # above) will be "amd64" since that reflects the most that this cpu can do, 5970 # but VGCONF_ARCH_PRI will be downgraded to "x86", since that reflects the 5971 # arch corresponding to the primary build (VGCONF_PLATFORM_PRI_CAPS). It is 5972 # passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_PRI) and 5973 # -VGP_$(VGCONF_ARCH_PRI)_$(VGCONF_OS). 5974 5975 5976 # VGCONF_ARCH_SEC is the arch for the secondary build target, eg. "x86". 5977 # It is passed in to compilation of many C files via -VGA_$(VGCONF_ARCH_SEC) 5978 # and -VGP_$(VGCONF_ARCH_SEC)_$(VGCONF_OS), if there is a secondary target. 5979 # It is empty if there is no secondary target. 5980 5981 5982 # VGCONF_PLATFORM_PRI_CAPS is the primary build target, eg. "AMD64_LINUX". 5983 # The entire system, including regression and performance tests, will be 5984 # built for this target. The "_CAPS" indicates that the name is in capital 5985 # letters, and it also uses '_' rather than '-' as a separator, because it's 5986 # used to create various Makefile variables, which are all in caps by 5987 # convention and cannot contain '-' characters. This is in contrast to 5988 # VGCONF_ARCH_PRI and VGCONF_OS which are not in caps. 5989 5990 5991 # VGCONF_PLATFORM_SEC_CAPS is the secondary build target, if there is one. 5992 # Valgrind and tools will also be built for this target, but not the 5993 # regression or performance tests. 5994 # 5995 # By default, the primary arch is the same as the "max" arch, as commented 5996 # above (at the definition of ARCH_MAX). We may choose to downgrade it in 5997 # the big case statement just below here, in the case where we're building 5998 # on a 64 bit machine but have been requested only to do a 32 bit build. 5999 6000 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a supported CPU/OS combination" >&5 6002 $as_echo_n "checking for a supported CPU/OS combination... " >&6; } 6003 6004 # NB. The load address for a given platform may be specified in more 6005 # than one place, in some cases, depending on whether we're doing a biarch, 6006 # 32-bit only or 64-bit only build. eg see case for amd64-linux below. 6007 # Be careful to give consistent values in all subcases. Also, all four 6008 # valt_load_addres_{pri,sec}_{norml,inner} values must always be set, 6009 # even if it is to "0xUNSET". 6010 # 6011 case "$ARCH_MAX-$VGCONF_OS" in 6012 x86-linux) 6013 VGCONF_ARCH_PRI="x86" 6014 VGCONF_ARCH_SEC="" 6015 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX" 6016 VGCONF_PLATFORM_SEC_CAPS="" 6017 valt_load_address_pri_norml="0x58000000" 6018 valt_load_address_pri_inner="0x38000000" 6019 valt_load_address_sec_norml="0xUNSET" 6020 valt_load_address_sec_inner="0xUNSET" 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6022 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6023 ;; 6024 amd64-linux) 6025 valt_load_address_sec_norml="0xUNSET" 6026 valt_load_address_sec_inner="0xUNSET" 6027 if test x$vg_cv_only64bit = xyes; then 6028 VGCONF_ARCH_PRI="amd64" 6029 VGCONF_ARCH_SEC="" 6030 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX" 6031 VGCONF_PLATFORM_SEC_CAPS="" 6032 valt_load_address_pri_norml="0x58000000" 6033 valt_load_address_pri_inner="0x38000000" 6034 elif test x$vg_cv_only32bit = xyes; then 6035 VGCONF_ARCH_PRI="x86" 6036 VGCONF_ARCH_SEC="" 6037 VGCONF_PLATFORM_PRI_CAPS="X86_LINUX" 6038 VGCONF_PLATFORM_SEC_CAPS="" 6039 valt_load_address_pri_norml="0x58000000" 6040 valt_load_address_pri_inner="0x38000000" 6041 else 6042 VGCONF_ARCH_PRI="amd64" 6043 VGCONF_ARCH_SEC="x86" 6044 VGCONF_PLATFORM_PRI_CAPS="AMD64_LINUX" 6045 VGCONF_PLATFORM_SEC_CAPS="X86_LINUX" 6046 valt_load_address_pri_norml="0x58000000" 6047 valt_load_address_pri_inner="0x38000000" 6048 valt_load_address_sec_norml="0x58000000" 6049 valt_load_address_sec_inner="0x38000000" 6050 fi 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6052 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6053 ;; 6054 ppc32-linux) 6055 VGCONF_ARCH_PRI="ppc32" 6056 VGCONF_ARCH_SEC="" 6057 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX" 6058 VGCONF_PLATFORM_SEC_CAPS="" 6059 valt_load_address_pri_norml="0x58000000" 6060 valt_load_address_pri_inner="0x38000000" 6061 valt_load_address_sec_norml="0xUNSET" 6062 valt_load_address_sec_inner="0xUNSET" 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6064 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6065 ;; 6066 ppc64be-linux) 6067 valt_load_address_sec_norml="0xUNSET" 6068 valt_load_address_sec_inner="0xUNSET" 6069 if test x$vg_cv_only64bit = xyes; then 6070 VGCONF_ARCH_PRI="ppc64be" 6071 VGCONF_ARCH_SEC="" 6072 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX" 6073 VGCONF_PLATFORM_SEC_CAPS="" 6074 valt_load_address_pri_norml="0x58000000" 6075 valt_load_address_pri_inner="0x38000000" 6076 elif test x$vg_cv_only32bit = xyes; then 6077 VGCONF_ARCH_PRI="ppc32" 6078 VGCONF_ARCH_SEC="" 6079 VGCONF_PLATFORM_PRI_CAPS="PPC32_LINUX" 6080 VGCONF_PLATFORM_SEC_CAPS="" 6081 valt_load_address_pri_norml="0x58000000" 6082 valt_load_address_pri_inner="0x38000000" 6083 else 6084 VGCONF_ARCH_PRI="ppc64be" 6085 VGCONF_ARCH_SEC="ppc32" 6086 VGCONF_PLATFORM_PRI_CAPS="PPC64BE_LINUX" 6087 VGCONF_PLATFORM_SEC_CAPS="PPC32_LINUX" 6088 valt_load_address_pri_norml="0x58000000" 6089 valt_load_address_pri_inner="0x38000000" 6090 valt_load_address_sec_norml="0x58000000" 6091 valt_load_address_sec_inner="0x38000000" 6092 fi 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6094 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6095 ;; 6096 ppc64le-linux) 6097 # Little Endian is only supported on PPC64 6098 valt_load_address_sec_norml="0xUNSET" 6099 valt_load_address_sec_inner="0xUNSET" 6100 VGCONF_ARCH_PRI="ppc64le" 6101 VGCONF_ARCH_SEC="" 6102 VGCONF_PLATFORM_PRI_CAPS="PPC64LE_LINUX" 6103 VGCONF_PLATFORM_SEC_CAPS="" 6104 valt_load_address_pri_norml="0x58000000" 6105 valt_load_address_pri_inner="0x38000000" 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6107 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6108 ;; 6109 # Darwin gets identified as 32-bit even when it supports 64-bit. 6110 # (Not sure why, possibly because 'uname' returns "i386"?) Just about 6111 # all Macs support both 32-bit and 64-bit, so we just build both. If 6112 # someone has a really old 32-bit only machine they can (hopefully?) 6113 # build with --enable-only32bit. See bug 243362. 6114 x86-darwin|amd64-darwin) 6115 ARCH_MAX="amd64" 6116 valt_load_address_sec_norml="0xUNSET" 6117 valt_load_address_sec_inner="0xUNSET" 6118 if test x$vg_cv_only64bit = xyes; then 6119 VGCONF_ARCH_PRI="amd64" 6120 VGCONF_ARCH_SEC="" 6121 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN" 6122 VGCONF_PLATFORM_SEC_CAPS="" 6123 valt_load_address_pri_norml="0x158000000" 6124 valt_load_address_pri_inner="0x138000000" 6125 elif test x$vg_cv_only32bit = xyes; then 6126 VGCONF_ARCH_PRI="x86" 6127 VGCONF_ARCH_SEC="" 6128 VGCONF_PLATFORM_PRI_CAPS="X86_DARWIN" 6129 VGCONF_PLATFORM_SEC_CAPS="" 6130 VGCONF_ARCH_PRI_CAPS="x86" 6131 valt_load_address_pri_norml="0x58000000" 6132 valt_load_address_pri_inner="0x38000000" 6133 else 6134 VGCONF_ARCH_PRI="amd64" 6135 VGCONF_ARCH_SEC="x86" 6136 VGCONF_PLATFORM_PRI_CAPS="AMD64_DARWIN" 6137 VGCONF_PLATFORM_SEC_CAPS="X86_DARWIN" 6138 valt_load_address_pri_norml="0x158000000" 6139 valt_load_address_pri_inner="0x138000000" 6140 valt_load_address_sec_norml="0x58000000" 6141 valt_load_address_sec_inner="0x38000000" 6142 fi 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6144 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6145 ;; 6146 arm-linux) 6147 VGCONF_ARCH_PRI="arm" 6148 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX" 6149 VGCONF_PLATFORM_SEC_CAPS="" 6150 valt_load_address_pri_norml="0x58000000" 6151 valt_load_address_pri_inner="0x38000000" 6152 valt_load_address_sec_norml="0xUNSET" 6153 valt_load_address_sec_inner="0xUNSET" 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu}-${host_os})" >&5 6155 $as_echo "ok (${host_cpu}-${host_os})" >&6; } 6156 ;; 6157 arm64-linux) 6158 valt_load_address_sec_norml="0xUNSET" 6159 valt_load_address_sec_inner="0xUNSET" 6160 if test x$vg_cv_only64bit = xyes; then 6161 VGCONF_ARCH_PRI="arm64" 6162 VGCONF_ARCH_SEC="" 6163 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX" 6164 VGCONF_PLATFORM_SEC_CAPS="" 6165 valt_load_address_pri_norml="0x58000000" 6166 valt_load_address_pri_inner="0x38000000" 6167 elif test x$vg_cv_only32bit = xyes; then 6168 VGCONF_ARCH_PRI="arm" 6169 VGCONF_ARCH_SEC="" 6170 VGCONF_PLATFORM_PRI_CAPS="ARM_LINUX" 6171 VGCONF_PLATFORM_SEC_CAPS="" 6172 valt_load_address_pri_norml="0x58000000" 6173 valt_load_address_pri_inner="0x38000000" 6174 else 6175 VGCONF_ARCH_PRI="arm64" 6176 VGCONF_ARCH_SEC="arm" 6177 VGCONF_PLATFORM_PRI_CAPS="ARM64_LINUX" 6178 VGCONF_PLATFORM_SEC_CAPS="ARM_LINUX" 6179 valt_load_address_pri_norml="0x58000000" 6180 valt_load_address_pri_inner="0x38000000" 6181 valt_load_address_sec_norml="0x58000000" 6182 valt_load_address_sec_inner="0x38000000" 6183 fi 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6185 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6186 ;; 6187 s390x-linux) 6188 VGCONF_ARCH_PRI="s390x" 6189 VGCONF_ARCH_SEC="" 6190 VGCONF_PLATFORM_PRI_CAPS="S390X_LINUX" 6191 VGCONF_PLATFORM_SEC_CAPS="" 6192 # To improve branch prediction hit rate we want to have 6193 # the generated code close to valgrind (host) code 6194 valt_load_address_pri_norml="0x800000000" 6195 valt_load_address_pri_inner="0x810000000" 6196 valt_load_address_sec_norml="0xUNSET" 6197 valt_load_address_sec_inner="0xUNSET" 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6199 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6200 ;; 6201 mips32-linux) 6202 VGCONF_ARCH_PRI="mips32" 6203 VGCONF_PLATFORM_PRI_CAPS="MIPS32_LINUX" 6204 VGCONF_PLATFORM_SEC_CAPS="" 6205 valt_load_address_pri_norml="0x58000000" 6206 valt_load_address_pri_inner="0x38000000" 6207 valt_load_address_sec_norml="0xUNSET" 6208 valt_load_address_sec_inner="0xUNSET" 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6210 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6211 ;; 6212 mips64-linux) 6213 VGCONF_ARCH_PRI="mips64" 6214 VGCONF_PLATFORM_PRI_CAPS="MIPS64_LINUX" 6215 VGCONF_PLATFORM_SEC_CAPS="" 6216 valt_load_address_pri_norml="0x58000000" 6217 valt_load_address_pri_inner="0x38000000" 6218 valt_load_address_sec_norml="0xUNSET" 6219 valt_load_address_sec_inner="0xUNSET" 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6221 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6222 ;; 6223 x86-solaris) 6224 VGCONF_ARCH_PRI="x86" 6225 VGCONF_ARCH_SEC="" 6226 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS" 6227 VGCONF_PLATFORM_SEC_CAPS="" 6228 valt_load_address_pri_norml="0x58000000" 6229 valt_load_address_pri_inner="0x38000000" 6230 valt_load_address_sec_norml="0xUNSET" 6231 valt_load_address_sec_inner="0xUNSET" 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6233 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6234 ;; 6235 amd64-solaris) 6236 valt_load_address_sec_norml="0xUNSET" 6237 valt_load_address_sec_inner="0xUNSET" 6238 if test x$vg_cv_only64bit = xyes; then 6239 VGCONF_ARCH_PRI="amd64" 6240 VGCONF_ARCH_SEC="" 6241 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS" 6242 VGCONF_PLATFORM_SEC_CAPS="" 6243 valt_load_address_pri_norml="0x58000000" 6244 valt_load_address_pri_inner="0x38000000" 6245 elif test x$vg_cv_only32bit = xyes; then 6246 VGCONF_ARCH_PRI="x86" 6247 VGCONF_ARCH_SEC="" 6248 VGCONF_PLATFORM_PRI_CAPS="X86_SOLARIS" 6249 VGCONF_PLATFORM_SEC_CAPS="" 6250 valt_load_address_pri_norml="0x58000000" 6251 valt_load_address_pri_inner="0x38000000" 6252 else 6253 VGCONF_ARCH_PRI="amd64" 6254 VGCONF_ARCH_SEC="x86" 6255 VGCONF_PLATFORM_PRI_CAPS="AMD64_SOLARIS" 6256 VGCONF_PLATFORM_SEC_CAPS="X86_SOLARIS" 6257 valt_load_address_pri_norml="0x58000000" 6258 valt_load_address_pri_inner="0x38000000" 6259 valt_load_address_sec_norml="0x58000000" 6260 valt_load_address_sec_inner="0x38000000" 6261 fi 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${ARCH_MAX}-${VGCONF_OS})" >&5 6263 $as_echo "ok (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6264 ;; 6265 *) 6266 VGCONF_ARCH_PRI="unknown" 6267 VGCONF_ARCH_SEC="unknown" 6268 VGCONF_PLATFORM_PRI_CAPS="UNKNOWN" 6269 VGCONF_PLATFORM_SEC_CAPS="UNKNOWN" 6270 valt_load_address_pri_norml="0xUNSET" 6271 valt_load_address_pri_inner="0xUNSET" 6272 valt_load_address_sec_norml="0xUNSET" 6273 valt_load_address_sec_inner="0xUNSET" 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${ARCH_MAX}-${VGCONF_OS})" >&5 6275 $as_echo "no (${ARCH_MAX}-${VGCONF_OS})" >&6; } 6276 as_fn_error $? "Valgrind is platform specific. Sorry. Please consider doing a port." "$LINENO" 5 6277 ;; 6278 esac 6279 6280 #---------------------------------------------------------------------------- 6281 6282 # Set up VGCONF_ARCHS_INCLUDE_<arch>. Either one or two of these become 6283 # defined. 6284 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \ 6285 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \ 6286 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \ 6287 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN \ 6288 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \ 6289 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then 6290 VGCONF_ARCHS_INCLUDE_X86_TRUE= 6291 VGCONF_ARCHS_INCLUDE_X86_FALSE='#' 6292 else 6293 VGCONF_ARCHS_INCLUDE_X86_TRUE='#' 6294 VGCONF_ARCHS_INCLUDE_X86_FALSE= 6295 fi 6296 6297 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \ 6298 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN \ 6299 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS ; then 6300 VGCONF_ARCHS_INCLUDE_AMD64_TRUE= 6301 VGCONF_ARCHS_INCLUDE_AMD64_FALSE='#' 6302 else 6303 VGCONF_ARCHS_INCLUDE_AMD64_TRUE='#' 6304 VGCONF_ARCHS_INCLUDE_AMD64_FALSE= 6305 fi 6306 6307 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \ 6308 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX ; then 6309 VGCONF_ARCHS_INCLUDE_PPC32_TRUE= 6310 VGCONF_ARCHS_INCLUDE_PPC32_FALSE='#' 6311 else 6312 VGCONF_ARCHS_INCLUDE_PPC32_TRUE='#' 6313 VGCONF_ARCHS_INCLUDE_PPC32_FALSE= 6314 fi 6315 6316 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \ 6317 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX ; then 6318 VGCONF_ARCHS_INCLUDE_PPC64_TRUE= 6319 VGCONF_ARCHS_INCLUDE_PPC64_FALSE='#' 6320 else 6321 VGCONF_ARCHS_INCLUDE_PPC64_TRUE='#' 6322 VGCONF_ARCHS_INCLUDE_PPC64_FALSE= 6323 fi 6324 6325 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \ 6326 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX ; then 6327 VGCONF_ARCHS_INCLUDE_ARM_TRUE= 6328 VGCONF_ARCHS_INCLUDE_ARM_FALSE='#' 6329 else 6330 VGCONF_ARCHS_INCLUDE_ARM_TRUE='#' 6331 VGCONF_ARCHS_INCLUDE_ARM_FALSE= 6332 fi 6333 6334 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX ; then 6335 VGCONF_ARCHS_INCLUDE_ARM64_TRUE= 6336 VGCONF_ARCHS_INCLUDE_ARM64_FALSE='#' 6337 else 6338 VGCONF_ARCHS_INCLUDE_ARM64_TRUE='#' 6339 VGCONF_ARCHS_INCLUDE_ARM64_FALSE= 6340 fi 6341 6342 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then 6343 VGCONF_ARCHS_INCLUDE_S390X_TRUE= 6344 VGCONF_ARCHS_INCLUDE_S390X_FALSE='#' 6345 else 6346 VGCONF_ARCHS_INCLUDE_S390X_TRUE='#' 6347 VGCONF_ARCHS_INCLUDE_S390X_FALSE= 6348 fi 6349 6350 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX ; then 6351 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE= 6352 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE='#' 6353 else 6354 VGCONF_ARCHS_INCLUDE_MIPS32_TRUE='#' 6355 VGCONF_ARCHS_INCLUDE_MIPS32_FALSE= 6356 fi 6357 6358 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then 6359 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE= 6360 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE='#' 6361 else 6362 VGCONF_ARCHS_INCLUDE_MIPS64_TRUE='#' 6363 VGCONF_ARCHS_INCLUDE_MIPS64_FALSE= 6364 fi 6365 6366 6367 # Set up VGCONF_PLATFORMS_INCLUDE_<platform>. Either one or two of these 6368 # become defined. 6369 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \ 6370 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX; then 6371 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE= 6372 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE='#' 6373 else 6374 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE='#' 6375 VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE= 6376 fi 6377 6378 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX; then 6379 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE= 6380 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE='#' 6381 else 6382 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE='#' 6383 VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE= 6384 fi 6385 6386 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \ 6387 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX; then 6388 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE= 6389 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE='#' 6390 else 6391 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE='#' 6392 VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE= 6393 fi 6394 6395 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX; then 6396 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE= 6397 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE='#' 6398 else 6399 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE='#' 6400 VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE= 6401 fi 6402 6403 if test x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX; then 6404 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE= 6405 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE='#' 6406 else 6407 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE='#' 6408 VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE= 6409 fi 6410 6411 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \ 6412 -o x$VGCONF_PLATFORM_SEC_CAPS = xARM_LINUX; then 6413 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE= 6414 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE='#' 6415 else 6416 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE='#' 6417 VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE= 6418 fi 6419 6420 if test x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX; then 6421 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE= 6422 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE='#' 6423 else 6424 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE='#' 6425 VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE= 6426 fi 6427 6428 if test x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \ 6429 -o x$VGCONF_PLATFORM_SEC_CAPS = xS390X_LINUX; then 6430 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE= 6431 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE='#' 6432 else 6433 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE='#' 6434 VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE= 6435 fi 6436 6437 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX; then 6438 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE= 6439 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE='#' 6440 else 6441 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE='#' 6442 VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE= 6443 fi 6444 6445 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then 6446 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE= 6447 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE='#' 6448 else 6449 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE='#' 6450 VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE= 6451 fi 6452 6453 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \ 6454 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN; then 6455 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE= 6456 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE='#' 6457 else 6458 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE='#' 6459 VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE= 6460 fi 6461 6462 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then 6463 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE= 6464 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE='#' 6465 else 6466 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE='#' 6467 VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE= 6468 fi 6469 6470 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \ 6471 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS; then 6472 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE= 6473 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE='#' 6474 else 6475 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE='#' 6476 VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE= 6477 fi 6478 6479 if test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then 6480 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE= 6481 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE='#' 6482 else 6483 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE='#' 6484 VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE= 6485 fi 6486 6487 6488 6489 # Similarly, set up VGCONF_OS_IS_<os>. Exactly one of these becomes defined. 6490 # Relies on the assumption that the primary and secondary targets are 6491 # for the same OS, so therefore only necessary to test the primary. 6492 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \ 6493 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \ 6494 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \ 6495 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64BE_LINUX \ 6496 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64LE_LINUX \ 6497 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \ 6498 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \ 6499 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX \ 6500 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \ 6501 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX; then 6502 VGCONF_OS_IS_LINUX_TRUE= 6503 VGCONF_OS_IS_LINUX_FALSE='#' 6504 else 6505 VGCONF_OS_IS_LINUX_TRUE='#' 6506 VGCONF_OS_IS_LINUX_FALSE= 6507 fi 6508 6509 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN \ 6510 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN; then 6511 VGCONF_OS_IS_DARWIN_TRUE= 6512 VGCONF_OS_IS_DARWIN_FALSE='#' 6513 else 6514 VGCONF_OS_IS_DARWIN_TRUE='#' 6515 VGCONF_OS_IS_DARWIN_FALSE= 6516 fi 6517 6518 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \ 6519 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then 6520 VGCONF_OS_IS_SOLARIS_TRUE= 6521 VGCONF_OS_IS_SOLARIS_FALSE='#' 6522 else 6523 VGCONF_OS_IS_SOLARIS_TRUE='#' 6524 VGCONF_OS_IS_SOLARIS_FALSE= 6525 fi 6526 6527 6528 6529 # Sometimes, in the Makefile.am files, it's useful to know whether or not 6530 # there is a secondary target. 6531 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then 6532 VGCONF_HAVE_PLATFORM_SEC_TRUE= 6533 VGCONF_HAVE_PLATFORM_SEC_FALSE='#' 6534 else 6535 VGCONF_HAVE_PLATFORM_SEC_TRUE='#' 6536 VGCONF_HAVE_PLATFORM_SEC_FALSE= 6537 fi 6538 6539 6540 6541 6542 #---------------------------------------------------------------------------- 6543 # Inner Valgrind? 6544 #---------------------------------------------------------------------------- 6545 6546 # Check if this should be built as an inner Valgrind, to be run within 6547 # another Valgrind. Choose the load address accordingly. 6548 6549 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use as an inner Valgrind" >&5 6551 $as_echo_n "checking for use as an inner Valgrind... " >&6; } 6552 if ${vg_cv_inner+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554 else 6555 # Check whether --enable-inner was given. 6556 if test "${enable_inner+set}" = set; then : 6557 enableval=$enable_inner; vg_cv_inner=$enableval 6558 else 6559 vg_cv_inner=no 6560 fi 6561 6562 fi 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_inner" >&5 6564 $as_echo "$vg_cv_inner" >&6; } 6565 if test "$vg_cv_inner" = yes; then 6566 6567 $as_echo "#define ENABLE_INNER 1" >>confdefs.h 6568 6569 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_inner 6570 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_inner 6571 else 6572 VALT_LOAD_ADDRESS_PRI=$valt_load_address_pri_norml 6573 VALT_LOAD_ADDRESS_SEC=$valt_load_address_sec_norml 6574 fi 6575 6576 #---------------------------------------------------------------------------- 6577 # Undefined behaviour sanitiser 6578 #---------------------------------------------------------------------------- 6579 # Check whether we should build with the undefined beahviour sanitiser. 6580 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for using the undefined behaviour sanitiser" >&5 6582 $as_echo_n "checking for using the undefined behaviour sanitiser... " >&6; } 6583 if ${vg_cv_ubsan+:} false; then : 6584 $as_echo_n "(cached) " >&6 6585 else 6586 # Check whether --enable-ubsan was given. 6587 if test "${enable_ubsan+set}" = set; then : 6588 enableval=$enable_ubsan; vg_cv_ubsan=$enableval 6589 else 6590 vg_cv_ubsan=no 6591 fi 6592 6593 fi 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_ubsan" >&5 6595 $as_echo "$vg_cv_ubsan" >&6; } 6596 6597 #---------------------------------------------------------------------------- 6598 # Extra fine-tuning of installation directories 6599 #---------------------------------------------------------------------------- 6600 6601 # Check whether --with-tmpdir was given. 6602 if test "${with_tmpdir+set}" = set; then : 6603 withval=$with_tmpdir; tmpdir="$withval" 6604 else 6605 tmpdir="/tmp" 6606 fi 6607 6608 6609 cat >>confdefs.h <<_ACEOF 6610 #define VG_TMPDIR "$tmpdir" 6611 _ACEOF 6612 6613 VG_TMPDIR=$tmpdir 6614 6615 6616 6617 #---------------------------------------------------------------------------- 6618 # Libc and suppressions 6619 #---------------------------------------------------------------------------- 6620 # This variable will collect the suppression files to be used. 6621 6622 6623 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6626 if ${ac_cv_path_GREP+:} false; then : 6627 $as_echo_n "(cached) " >&6 6628 else 6629 if test -z "$GREP"; then 6630 ac_path_GREP_found=false 6631 # Loop through the user's path and test for each of PROGNAME-LIST 6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6634 do 6635 IFS=$as_save_IFS 6636 test -z "$as_dir" && as_dir=. 6637 for ac_prog in grep ggrep; do 6638 for ac_exec_ext in '' $ac_executable_extensions; do 6639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6640 as_fn_executable_p "$ac_path_GREP" || continue 6641 # Check for GNU ac_path_GREP and select it if it is found. 6642 # Check for GNU $ac_path_GREP 6643 case `"$ac_path_GREP" --version 2>&1` in 6644 *GNU*) 6645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6646 *) 6647 ac_count=0 6648 $as_echo_n 0123456789 >"conftest.in" 6649 while : 6650 do 6651 cat "conftest.in" "conftest.in" >"conftest.tmp" 6652 mv "conftest.tmp" "conftest.in" 6653 cp "conftest.in" "conftest.nl" 6654 $as_echo 'GREP' >> "conftest.nl" 6655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6657 as_fn_arith $ac_count + 1 && ac_count=$as_val 6658 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6659 # Best one so far, save it but keep looking for a better one 6660 ac_cv_path_GREP="$ac_path_GREP" 6661 ac_path_GREP_max=$ac_count 6662 fi 6663 # 10*(2^10) chars as input seems more than enough 6664 test $ac_count -gt 10 && break 6665 done 6666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6667 esac 6668 6669 $ac_path_GREP_found && break 3 6670 done 6671 done 6672 done 6673 IFS=$as_save_IFS 6674 if test -z "$ac_cv_path_GREP"; then 6675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6676 fi 6677 else 6678 ac_cv_path_GREP=$GREP 6679 fi 6680 6681 fi 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6683 $as_echo "$ac_cv_path_GREP" >&6; } 6684 GREP="$ac_cv_path_GREP" 6685 6686 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6688 $as_echo_n "checking for egrep... " >&6; } 6689 if ${ac_cv_path_EGREP+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691 else 6692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6693 then ac_cv_path_EGREP="$GREP -E" 6694 else 6695 if test -z "$EGREP"; then 6696 ac_path_EGREP_found=false 6697 # Loop through the user's path and test for each of PROGNAME-LIST 6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6700 do 6701 IFS=$as_save_IFS 6702 test -z "$as_dir" && as_dir=. 6703 for ac_prog in egrep; do 6704 for ac_exec_ext in '' $ac_executable_extensions; do 6705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6706 as_fn_executable_p "$ac_path_EGREP" || continue 6707 # Check for GNU ac_path_EGREP and select it if it is found. 6708 # Check for GNU $ac_path_EGREP 6709 case `"$ac_path_EGREP" --version 2>&1` in 6710 *GNU*) 6711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6712 *) 6713 ac_count=0 6714 $as_echo_n 0123456789 >"conftest.in" 6715 while : 6716 do 6717 cat "conftest.in" "conftest.in" >"conftest.tmp" 6718 mv "conftest.tmp" "conftest.in" 6719 cp "conftest.in" "conftest.nl" 6720 $as_echo 'EGREP' >> "conftest.nl" 6721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6723 as_fn_arith $ac_count + 1 && ac_count=$as_val 6724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6725 # Best one so far, save it but keep looking for a better one 6726 ac_cv_path_EGREP="$ac_path_EGREP" 6727 ac_path_EGREP_max=$ac_count 6728 fi 6729 # 10*(2^10) chars as input seems more than enough 6730 test $ac_count -gt 10 && break 6731 done 6732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6733 esac 6734 6735 $ac_path_EGREP_found && break 3 6736 done 6737 done 6738 done 6739 IFS=$as_save_IFS 6740 if test -z "$ac_cv_path_EGREP"; then 6741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6742 fi 6743 else 6744 ac_cv_path_EGREP=$EGREP 6745 fi 6746 6747 fi 6748 fi 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6750 $as_echo "$ac_cv_path_EGREP" >&6; } 6751 EGREP="$ac_cv_path_EGREP" 6752 6753 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6755 $as_echo_n "checking for ANSI C header files... " >&6; } 6756 if ${ac_cv_header_stdc+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758 else 6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760 /* end confdefs.h. */ 6761 #include <stdlib.h> 6762 #include <stdarg.h> 6763 #include <string.h> 6764 #include <float.h> 6765 6766 int 6767 main () 6768 { 6769 6770 ; 6771 return 0; 6772 } 6773 _ACEOF 6774 if ac_fn_c_try_compile "$LINENO"; then : 6775 ac_cv_header_stdc=yes 6776 else 6777 ac_cv_header_stdc=no 6778 fi 6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6780 6781 if test $ac_cv_header_stdc = yes; then 6782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784 /* end confdefs.h. */ 6785 #include <string.h> 6786 6787 _ACEOF 6788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6789 $EGREP "memchr" >/dev/null 2>&1; then : 6790 6791 else 6792 ac_cv_header_stdc=no 6793 fi 6794 rm -f conftest* 6795 6796 fi 6797 6798 if test $ac_cv_header_stdc = yes; then 6799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801 /* end confdefs.h. */ 6802 #include <stdlib.h> 6803 6804 _ACEOF 6805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6806 $EGREP "free" >/dev/null 2>&1; then : 6807 6808 else 6809 ac_cv_header_stdc=no 6810 fi 6811 rm -f conftest* 6812 6813 fi 6814 6815 if test $ac_cv_header_stdc = yes; then 6816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6817 if test "$cross_compiling" = yes; then : 6818 : 6819 else 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821 /* end confdefs.h. */ 6822 #include <ctype.h> 6823 #include <stdlib.h> 6824 #if ((' ' & 0x0FF) == 0x020) 6825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6827 #else 6828 # define ISLOWER(c) \ 6829 (('a' <= (c) && (c) <= 'i') \ 6830 || ('j' <= (c) && (c) <= 'r') \ 6831 || ('s' <= (c) && (c) <= 'z')) 6832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6833 #endif 6834 6835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6836 int 6837 main () 6838 { 6839 int i; 6840 for (i = 0; i < 256; i++) 6841 if (XOR (islower (i), ISLOWER (i)) 6842 || toupper (i) != TOUPPER (i)) 6843 return 2; 6844 return 0; 6845 } 6846 _ACEOF 6847 if ac_fn_c_try_run "$LINENO"; then : 6848 6849 else 6850 ac_cv_header_stdc=no 6851 fi 6852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6853 conftest.$ac_objext conftest.beam conftest.$ac_ext 6854 fi 6855 6856 fi 6857 fi 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6859 $as_echo "$ac_cv_header_stdc" >&6; } 6860 if test $ac_cv_header_stdc = yes; then 6861 6862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 6863 6864 fi 6865 6866 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 6867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6868 inttypes.h stdint.h unistd.h 6869 do : 6870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6871 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6872 " 6873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6874 cat >>confdefs.h <<_ACEOF 6875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6876 _ACEOF 6877 6878 fi 6879 6880 done 6881 6882 6883 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" 6884 if test "x$ac_cv_header_features_h" = xyes; then : 6885 6886 fi 6887 6888 6889 6890 if test x$ac_cv_header_features_h = xyes; then 6891 rm -f conftest.$ac_ext 6892 cat <<_ACEOF >conftest.$ac_ext 6893 #include <features.h> 6894 #if defined(__GNU_LIBRARY__) && defined(__GLIBC__) && defined(__GLIBC_MINOR__) 6895 glibc version is: __GLIBC__ __GLIBC_MINOR__ 6896 #endif 6897 _ACEOF 6898 GLIBC_VERSION="`$CPP -P conftest.$ac_ext | $SED -n 's/^glibc version is: //p' | $SED 's/ /./g'`" 6899 fi 6900 6901 # not really a version check 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903 /* end confdefs.h. */ 6904 6905 #include <sys/cdefs.h> 6906 #if defined(__DARWIN_VERS_1050) 6907 DARWIN_LIBC 6908 #endif 6909 6910 _ACEOF 6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6912 $EGREP "DARWIN_LIBC" >/dev/null 2>&1; then : 6913 GLIBC_VERSION="darwin" 6914 fi 6915 rm -f conftest* 6916 6917 6918 # not really a version check 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 6922 #if defined(__ANDROID__) 6923 BIONIC_LIBC 6924 #endif 6925 6926 _ACEOF 6927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6928 $EGREP "BIONIC_LIBC" >/dev/null 2>&1; then : 6929 GLIBC_VERSION="bionic" 6930 fi 6931 rm -f conftest* 6932 6933 6934 # there is only one version of libc on Solaris 6935 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS \ 6936 -o x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_SOLARIS; then 6937 GLIBC_VERSION="solaris" 6938 fi 6939 6940 # GLIBC_VERSION is empty if a musl libc is used, so use the toolchain tuple 6941 # in this case. 6942 if test x$GLIBC_VERSION = x; then 6943 if $CC -dumpmachine | grep -q musl; then 6944 GLIBC_VERSION=musl 6945 fi 6946 fi 6947 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the glibc version" >&5 6949 $as_echo_n "checking the glibc version... " >&6; } 6950 6951 case "${GLIBC_VERSION}" in 6952 2.2) 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5 6954 $as_echo "${GLIBC_VERSION} family" >&6; } 6955 DEFAULT_SUPP="glibc-2.2.supp ${DEFAULT_SUPP}" 6956 DEFAULT_SUPP="glibc-2.2-LinuxThreads-helgrind.supp ${DEFAULT_SUPP}" 6957 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" 6958 ;; 6959 2.[3-6]) 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5 6961 $as_echo "${GLIBC_VERSION} family" >&6; } 6962 DEFAULT_SUPP="glibc-${GLIBC_VERSION}.supp ${DEFAULT_SUPP}" 6963 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" 6964 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" 6965 ;; 6966 2.[7-9]) 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5 6968 $as_echo "${GLIBC_VERSION} family" >&6; } 6969 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" 6970 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" 6971 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" 6972 ;; 6973 2.10|2.11) 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5 6975 $as_echo "${GLIBC_VERSION} family" >&6; } 6976 6977 $as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h 6978 6979 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" 6980 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" 6981 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" 6982 ;; 6983 2.*) 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GLIBC_VERSION} family" >&5 6985 $as_echo "${GLIBC_VERSION} family" >&6; } 6986 6987 $as_echo "#define GLIBC_MANDATORY_STRLEN_REDIRECT 1" >>confdefs.h 6988 6989 6990 $as_echo "#define GLIBC_MANDATORY_INDEX_AND_STRLEN_REDIRECT 1" >>confdefs.h 6991 6992 DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" 6993 DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" 6994 DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" 6995 ;; 6996 darwin) 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5 6998 $as_echo "Darwin" >&6; } 6999 7000 $as_echo "#define DARWIN_LIBC 1" >>confdefs.h 7001 7002 # DEFAULT_SUPP set by kernel version check above. 7003 ;; 7004 bionic) 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Bionic" >&5 7006 $as_echo "Bionic" >&6; } 7007 7008 $as_echo "#define BIONIC_LIBC 1" >>confdefs.h 7009 7010 DEFAULT_SUPP="bionic.supp ${DEFAULT_SUPP}" 7011 ;; 7012 solaris) 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5 7014 $as_echo "Solaris" >&6; } 7015 # DEFAULT_SUPP set in host_os switch-case above. 7016 # No other suppression file is used. 7017 ;; 7018 musl) 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Musl" >&5 7020 $as_echo "Musl" >&6; } 7021 7022 $as_echo "#define MUSL_LIBC 1" >>confdefs.h 7023 7024 # no DEFAULT_SUPP file yet for musl libc. 7025 ;; 7026 2.0|2.1|*) 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported version ${GLIBC_VERSION}" >&5 7028 $as_echo "unsupported version ${GLIBC_VERSION}" >&6; } 7029 as_fn_error $? "Valgrind requires glibc version 2.2 or later, uClibc," "$LINENO" 5 7030 as_fn_error $? "musl libc, Darwin libc, Bionic libc or Solaris libc" "$LINENO" 5 7031 ;; 7032 esac 7033 7034 7035 7036 7037 if test "$VGCONF_OS" != "solaris"; then 7038 # Add default suppressions for the X client libraries. Make no 7039 # attempt to detect whether such libraries are installed on the 7040 # build machine (or even if any X facilities are present); just 7041 # add the suppressions antidisirregardless. 7042 DEFAULT_SUPP="xfree-4.supp ${DEFAULT_SUPP}" 7043 DEFAULT_SUPP="xfree-3.supp ${DEFAULT_SUPP}" 7044 7045 # Add glibc and X11 suppressions for exp-sgcheck 7046 DEFAULT_SUPP="exp-sgcheck.supp ${DEFAULT_SUPP}" 7047 fi 7048 7049 7050 #---------------------------------------------------------------------------- 7051 # Platform variants? 7052 #---------------------------------------------------------------------------- 7053 7054 # Normally the PLAT = (ARCH, OS) characterisation of the platform is enough. 7055 # But there are times where we need a bit more control. The motivating 7056 # and currently only case is Android: this is almost identical to 7057 # {x86,arm,mips}-linux, but not quite. So this introduces the concept of 7058 # platform variant tags, which get passed in the compile as 7059 # -DVGPV_<arch>_<os>_<variant> along with the main -DVGP_<arch>_<os> definition. 7060 # 7061 # In almost all cases, the <variant> bit is "vanilla". But for Android 7062 # it is "android" instead. 7063 # 7064 # Consequently (eg), plain arm-linux would build with 7065 # 7066 # -DVGP_arm_linux -DVGPV_arm_linux_vanilla 7067 # 7068 # whilst an Android build would have 7069 # 7070 # -DVGP_arm_linux -DVGPV_arm_linux_android 7071 # 7072 # Same for x86. The setup of the platform variant is pushed relatively far 7073 # down this file in order that we can inspect any of the variables set above. 7074 7075 # In the normal case .. 7076 VGCONF_PLATVARIANT="vanilla" 7077 7078 # Android ? 7079 if test "$GLIBC_VERSION" = "bionic"; 7080 then 7081 VGCONF_PLATVARIANT="android" 7082 fi 7083 7084 7085 7086 7087 # FIXME: do we also want to define automake variables 7088 # VGCONF_PLATVARIANT_IS_<WHATEVER>, where WHATEVER is (currently) 7089 # VANILLA or ANDROID ? This would be in the style of VGCONF_ARCHS_INCLUDE, 7090 # VGCONF_PLATFORMS_INCLUDE and VGCONF_OS_IS above? Could easily enough 7091 # do that. Problem is that we can't do and-ing in Makefile.am's, but 7092 # that's what we'd need to do to use this, since what we'd want to write 7093 # is something like 7094 # 7095 # VGCONF_PLATFORMS_INCLUDE_ARM_LINUX && VGCONF_PLATVARIANT_IS_ANDROID 7096 # 7097 # Hmm. Can't think of a nice clean solution to this. 7098 7099 if test x$VGCONF_PLATVARIANT = xvanilla; then 7100 VGCONF_PLATVARIANT_IS_VANILLA_TRUE= 7101 VGCONF_PLATVARIANT_IS_VANILLA_FALSE='#' 7102 else 7103 VGCONF_PLATVARIANT_IS_VANILLA_TRUE='#' 7104 VGCONF_PLATVARIANT_IS_VANILLA_FALSE= 7105 fi 7106 7107 if test x$VGCONF_PLATVARIANT = xandroid; then 7108 VGCONF_PLATVARIANT_IS_ANDROID_TRUE= 7109 VGCONF_PLATVARIANT_IS_ANDROID_FALSE='#' 7110 else 7111 VGCONF_PLATVARIANT_IS_ANDROID_TRUE='#' 7112 VGCONF_PLATVARIANT_IS_ANDROID_FALSE= 7113 fi 7114 7115 7116 7117 #---------------------------------------------------------------------------- 7118 # Checking for various library functions and other definitions 7119 #---------------------------------------------------------------------------- 7120 7121 # Check for AT_FDCWD 7122 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AT_FDCWD" >&5 7124 $as_echo_n "checking for AT_FDCWD... " >&6; } 7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126 /* end confdefs.h. */ 7127 7128 #define _GNU_SOURCE 7129 #include <fcntl.h> 7130 #include <unistd.h> 7131 7132 int 7133 main () 7134 { 7135 7136 int a = AT_FDCWD; 7137 7138 ; 7139 return 0; 7140 } 7141 _ACEOF 7142 if ac_fn_c_try_compile "$LINENO"; then : 7143 7144 ac_have_at_fdcwd=yes 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7146 $as_echo "yes" >&6; } 7147 7148 else 7149 7150 ac_have_at_fdcwd=no 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152 $as_echo "no" >&6; } 7153 7154 fi 7155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7156 7157 if test x$ac_have_at_fdcwd = xyes; then 7158 HAVE_AT_FDCWD_TRUE= 7159 HAVE_AT_FDCWD_FALSE='#' 7160 else 7161 HAVE_AT_FDCWD_TRUE='#' 7162 HAVE_AT_FDCWD_FALSE= 7163 fi 7164 7165 7166 # Check for stpncpy function definition in string.h 7167 # This explicitly checks with _GNU_SOURCE defined since that is also 7168 # used in the test case (some systems might define it without anyway 7169 # since stpncpy is part of The Open Group Base Specifications Issue 7 7170 # IEEE Std 1003.1-2008. 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stpncpy" >&5 7172 $as_echo_n "checking for stpncpy... " >&6; } 7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7174 /* end confdefs.h. */ 7175 7176 #define _GNU_SOURCE 7177 #include <string.h> 7178 7179 int 7180 main () 7181 { 7182 7183 char *d; 7184 char *s; 7185 size_t n = 0; 7186 char *r = stpncpy(d, s, n); 7187 7188 ; 7189 return 0; 7190 } 7191 _ACEOF 7192 if ac_fn_c_try_link "$LINENO"; then : 7193 7194 ac_have_gnu_stpncpy=yes 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7196 $as_echo "yes" >&6; } 7197 7198 else 7199 7200 ac_have_gnu_stpncpy=no 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202 $as_echo "no" >&6; } 7203 7204 fi 7205 rm -f core conftest.err conftest.$ac_objext \ 7206 conftest$ac_exeext conftest.$ac_ext 7207 7208 if test x$ac_have_gnu_stpncpy = xyes; then 7209 HAVE_GNU_STPNCPY_TRUE= 7210 HAVE_GNU_STPNCPY_FALSE='#' 7211 else 7212 HAVE_GNU_STPNCPY_TRUE='#' 7213 HAVE_GNU_STPNCPY_FALSE= 7214 fi 7215 7216 7217 # Check for PTRACE_GETREGS 7218 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 7220 $as_echo_n "checking for PTRACE_GETREGS... " >&6; } 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222 /* end confdefs.h. */ 7223 7224 #include <stdlib.h> 7225 #include <stddef.h> 7226 #include <sys/ptrace.h> 7227 #include <sys/user.h> 7228 7229 int 7230 main () 7231 { 7232 7233 void *p; 7234 long res = ptrace (PTRACE_GETREGS, 0, p, p); 7235 7236 ; 7237 return 0; 7238 } 7239 _ACEOF 7240 if ac_fn_c_try_compile "$LINENO"; then : 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7243 $as_echo "yes" >&6; } 7244 7245 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h 7246 7247 7248 else 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251 $as_echo "no" >&6; } 7252 7253 fi 7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7255 7256 7257 # Check for CLOCK_MONOTONIC 7258 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_MONOTONIC" >&5 7260 $as_echo_n "checking for CLOCK_MONOTONIC... " >&6; } 7261 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263 /* end confdefs.h. */ 7264 7265 #include <time.h> 7266 7267 int 7268 main () 7269 { 7270 7271 struct timespec t; 7272 clock_gettime(CLOCK_MONOTONIC, &t); 7273 return 0; 7274 7275 ; 7276 return 0; 7277 } 7278 _ACEOF 7279 if ac_fn_c_try_compile "$LINENO"; then : 7280 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7282 $as_echo "yes" >&6; } 7283 7284 $as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h 7285 7286 7287 else 7288 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7290 $as_echo "no" >&6; } 7291 7292 fi 7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7294 7295 7296 # Check for ELF32/64_CHDR 7297 7298 ac_fn_c_check_type "$LINENO" "Elf32_Chdr" "ac_cv_type_Elf32_Chdr" "#include <elf.h> 7299 " 7300 if test "x$ac_cv_type_Elf32_Chdr" = xyes; then : 7301 7302 cat >>confdefs.h <<_ACEOF 7303 #define HAVE_ELF32_CHDR 1 7304 _ACEOF 7305 7306 7307 fi 7308 ac_fn_c_check_type "$LINENO" "Elf64_Chdr" "ac_cv_type_Elf64_Chdr" "#include <elf.h> 7309 " 7310 if test "x$ac_cv_type_Elf64_Chdr" = xyes; then : 7311 7312 cat >>confdefs.h <<_ACEOF 7313 #define HAVE_ELF64_CHDR 1 7314 _ACEOF 7315 7316 7317 fi 7318 7319 7320 7321 # Check for PTHREAD_RWLOCK_T 7322 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5 7324 $as_echo_n "checking for pthread_rwlock_t... " >&6; } 7325 7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7327 /* end confdefs.h. */ 7328 7329 #define _GNU_SOURCE 7330 #include <pthread.h> 7331 7332 int 7333 main () 7334 { 7335 7336 pthread_rwlock_t rwl; 7337 7338 ; 7339 return 0; 7340 } 7341 _ACEOF 7342 if ac_fn_c_try_compile "$LINENO"; then : 7343 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7345 $as_echo "yes" >&6; } 7346 7347 $as_echo "#define HAVE_PTHREAD_RWLOCK_T 1" >>confdefs.h 7348 7349 7350 else 7351 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353 $as_echo "no" >&6; } 7354 7355 fi 7356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7357 7358 7359 # Check for PTHREAD_MUTEX_ADAPTIVE_NP 7360 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP" >&5 7362 $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP... " >&6; } 7363 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365 /* end confdefs.h. */ 7366 7367 #define _GNU_SOURCE 7368 #include <pthread.h> 7369 7370 int 7371 main () 7372 { 7373 7374 return (PTHREAD_MUTEX_ADAPTIVE_NP); 7375 7376 ; 7377 return 0; 7378 } 7379 _ACEOF 7380 if ac_fn_c_try_compile "$LINENO"; then : 7381 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7383 $as_echo "yes" >&6; } 7384 7385 $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h 7386 7387 7388 else 7389 7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7391 $as_echo "no" >&6; } 7392 7393 fi 7394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7395 7396 7397 # Check for PTHREAD_MUTEX_ERRORCHECK_NP 7398 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5 7400 $as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; } 7401 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403 /* end confdefs.h. */ 7404 7405 #define _GNU_SOURCE 7406 #include <pthread.h> 7407 7408 int 7409 main () 7410 { 7411 7412 return (PTHREAD_MUTEX_ERRORCHECK_NP); 7413 7414 ; 7415 return 0; 7416 } 7417 _ACEOF 7418 if ac_fn_c_try_compile "$LINENO"; then : 7419 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7421 $as_echo "yes" >&6; } 7422 7423 $as_echo "#define HAVE_PTHREAD_MUTEX_ERRORCHECK_NP 1" >>confdefs.h 7424 7425 7426 else 7427 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7429 $as_echo "no" >&6; } 7430 7431 fi 7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433 7434 7435 # Check for PTHREAD_MUTEX_RECURSIVE_NP 7436 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP" >&5 7438 $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP... " >&6; } 7439 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441 /* end confdefs.h. */ 7442 7443 #define _GNU_SOURCE 7444 #include <pthread.h> 7445 7446 int 7447 main () 7448 { 7449 7450 return (PTHREAD_MUTEX_RECURSIVE_NP); 7451 7452 ; 7453 return 0; 7454 } 7455 _ACEOF 7456 if ac_fn_c_try_compile "$LINENO"; then : 7457 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7459 $as_echo "yes" >&6; } 7460 7461 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h 7462 7463 7464 else 7465 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7467 $as_echo "no" >&6; } 7468 7469 fi 7470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7471 7472 7473 # Check for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 7474 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP" >&5 7476 $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP... " >&6; } 7477 7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7479 /* end confdefs.h. */ 7480 7481 #define _GNU_SOURCE 7482 #include <pthread.h> 7483 7484 int 7485 main () 7486 { 7487 7488 pthread_mutex_t m = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; 7489 return 0; 7490 7491 ; 7492 return 0; 7493 } 7494 _ACEOF 7495 if ac_fn_c_try_compile "$LINENO"; then : 7496 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7498 $as_echo "yes" >&6; } 7499 7500 $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h 7501 7502 7503 else 7504 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7506 $as_echo "no" >&6; } 7507 7508 fi 7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7510 7511 7512 # Check whether pthread_mutex_t has a member called __m_kind. 7513 7514 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__m_kind" "ac_cv_member_pthread_mutex_t___m_kind" "#include <pthread.h> 7515 " 7516 if test "x$ac_cv_member_pthread_mutex_t___m_kind" = xyes; then : 7517 7518 $as_echo "#define HAVE_PTHREAD_MUTEX_T__M_KIND 1" >>confdefs.h 7519 7520 7521 fi 7522 7523 7524 7525 # Check whether pthread_mutex_t has a member called __data.__kind. 7526 7527 ac_fn_c_check_member "$LINENO" "pthread_mutex_t" "__data.__kind" "ac_cv_member_pthread_mutex_t___data___kind" "#include <pthread.h> 7528 " 7529 if test "x$ac_cv_member_pthread_mutex_t___data___kind" = xyes; then : 7530 7531 $as_echo "#define HAVE_PTHREAD_MUTEX_T__DATA__KIND 1" >>confdefs.h 7532 7533 7534 fi 7535 7536 7537 # Convenience function. Set flags based on the existing HWCAP entries. 7538 # The AT_HWCAP entries are generated by glibc, and are based on 7539 # functions supported by the hardware/system/libc. 7540 # Subsequent support for whether the capability will actually be utilized 7541 # will also be checked against the compiler capabilities. 7542 # called as 7543 # AC_HWCAP_CONTAINS_FLAG[hwcap_string_to_match],[VARIABLE_TO_SET] 7544 7545 7546 # gather hardware capabilities. (hardware/kernel/libc) 7547 7548 AUXV_CHECK_FOR=altivec 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7550 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7551 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7552 then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7554 $as_echo "yes" >&6; } 7555 HWCAP_HAS_ALTIVEC=yes 7556 7557 else 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7559 $as_echo "no" >&6; } 7560 7561 fi 7562 7563 7564 AUXV_CHECK_FOR=vsx 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7566 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7567 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7568 then 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7570 $as_echo "yes" >&6; } 7571 HWCAP_HAS_VSX=yes 7572 7573 else 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7575 $as_echo "no" >&6; } 7576 7577 fi 7578 7579 7580 AUXV_CHECK_FOR=dfp 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7582 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7583 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7584 then 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7586 $as_echo "yes" >&6; } 7587 HWCAP_HAS_DFP=yes 7588 7589 else 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7591 $as_echo "no" >&6; } 7592 7593 fi 7594 7595 7596 AUXV_CHECK_FOR=arch_2_05 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7598 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7599 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7600 then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7602 $as_echo "yes" >&6; } 7603 HWCAP_HAS_ISA_2_05=yes 7604 7605 else 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7607 $as_echo "no" >&6; } 7608 7609 fi 7610 7611 7612 AUXV_CHECK_FOR=arch_2_06 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7614 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7615 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7616 then 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7618 $as_echo "yes" >&6; } 7619 HWCAP_HAS_ISA_2_06=yes 7620 7621 else 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7623 $as_echo "no" >&6; } 7624 7625 fi 7626 7627 7628 AUXV_CHECK_FOR=arch_2_07 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7630 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7631 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7632 then 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7634 $as_echo "yes" >&6; } 7635 HWCAP_HAS_ISA_2_07=yes 7636 7637 else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639 $as_echo "no" >&6; } 7640 7641 fi 7642 7643 7644 AUXV_CHECK_FOR=arch_3_00 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7646 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7647 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7648 then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7650 $as_echo "yes" >&6; } 7651 HWCAP_HAS_ISA_3_00=yes 7652 7653 else 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7655 $as_echo "no" >&6; } 7656 7657 fi 7658 7659 7660 AUXV_CHECK_FOR=htm 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator" >&5 7662 $as_echo_n "checking if AT_HWCAP contains the $AUXV_CHECK_FOR indicator... " >&6; } 7663 if LD_SHOW_AUXV=1 `which true` | grep ^AT_HWCAP | grep -q -w ${AUXV_CHECK_FOR} 7664 then 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7666 $as_echo "yes" >&6; } 7667 HWCAP_HAS_HTM=yes 7668 7669 else 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7671 $as_echo "no" >&6; } 7672 7673 fi 7674 7675 7676 # ISA Levels 7677 if test x$HWCAP_HAS_ISA_2_05 = xyes; then 7678 HAS_ISA_2_05_TRUE= 7679 HAS_ISA_2_05_FALSE='#' 7680 else 7681 HAS_ISA_2_05_TRUE='#' 7682 HAS_ISA_2_05_FALSE= 7683 fi 7684 7685 if test x$HWCAP_HAS_ISA_2_06 = xyes; then 7686 HAS_ISA_2_06_TRUE= 7687 HAS_ISA_2_06_FALSE='#' 7688 else 7689 HAS_ISA_2_06_TRUE='#' 7690 HAS_ISA_2_06_FALSE= 7691 fi 7692 7693 # compiler support for isa 2.07 level instructions 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 2.07 instructions " >&5 7695 $as_echo_n "checking that assembler knows ISA 2.07 instructions ... " >&6; } 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697 /* end confdefs.h. */ 7698 7699 7700 int 7701 main () 7702 { 7703 7704 __asm__ __volatile__("mtvsrd 1,2 "); 7705 7706 ; 7707 return 0; 7708 } 7709 _ACEOF 7710 if ac_fn_c_try_compile "$LINENO"; then : 7711 7712 ac_asm_have_isa_2_07=yes 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7714 $as_echo "yes" >&6; } 7715 7716 else 7717 7718 ac_asm_have_isa_2_07=no 7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7720 $as_echo "no" >&6; } 7721 7722 fi 7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7724 if test x$ac_asm_have_isa_2_07 = xyes \ 7725 -a x$HWCAP_HAS_ISA_2_07 = xyes; then 7726 HAS_ISA_2_07_TRUE= 7727 HAS_ISA_2_07_FALSE='#' 7728 else 7729 HAS_ISA_2_07_TRUE='#' 7730 HAS_ISA_2_07_FALSE= 7731 fi 7732 7733 7734 # altivec (vsx) support. 7735 # does this compiler support -maltivec and does it have the include file 7736 # <altivec.h> ? 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec support in the compiler " >&5 7738 $as_echo_n "checking for Altivec support in the compiler ... " >&6; } 7739 safe_CFLAGS=$CFLAGS 7740 CFLAGS="-maltivec -Werror" 7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7742 /* end confdefs.h. */ 7743 7744 #include <altivec.h> 7745 7746 int 7747 main () 7748 { 7749 7750 vector unsigned int v; 7751 7752 ; 7753 return 0; 7754 } 7755 _ACEOF 7756 if ac_fn_c_try_compile "$LINENO"; then : 7757 7758 ac_have_altivec=yes 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7760 $as_echo "yes" >&6; } 7761 7762 else 7763 7764 ac_have_altivec=no 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766 $as_echo "no" >&6; } 7767 7768 fi 7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7770 CFLAGS=$safe_CFLAGS 7771 if test x$ac_have_altivec = xyes \ 7772 -a x$HWCAP_HAS_ALTIVEC = xyes; then 7773 HAS_ALTIVEC_TRUE= 7774 HAS_ALTIVEC_FALSE='#' 7775 else 7776 HAS_ALTIVEC_TRUE='#' 7777 HAS_ALTIVEC_FALSE= 7778 fi 7779 7780 7781 # Check that both: the compiler supports -mvsx and that the assembler 7782 # understands VSX instructions. If either of those doesn't work, 7783 # conclude that we can't do VSX. 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX compiler flag support" >&5 7785 $as_echo_n "checking for VSX compiler flag support... " >&6; } 7786 safe_CFLAGS=$CFLAGS 7787 CFLAGS="-mvsx -Werror" 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789 /* end confdefs.h. */ 7790 7791 7792 int 7793 main () 7794 { 7795 7796 7797 ; 7798 return 0; 7799 } 7800 _ACEOF 7801 if ac_fn_c_try_compile "$LINENO"; then : 7802 7803 ac_compiler_supports_vsx_flag=yes 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7805 $as_echo "yes" >&6; } 7806 7807 else 7808 7809 ac_compiler_supports_vsx_flag=no 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7811 $as_echo "no" >&6; } 7812 7813 fi 7814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7815 CFLAGS=$safe_CFLAGS 7816 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VSX support in the assembler " >&5 7818 $as_echo_n "checking for VSX support in the assembler ... " >&6; } 7819 safe_CFLAGS=$CFLAGS 7820 CFLAGS="-mvsx -Werror" 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822 /* end confdefs.h. */ 7823 7824 #include <altivec.h> 7825 7826 int 7827 main () 7828 { 7829 7830 vector unsigned int v; 7831 __asm__ __volatile__("xsmaddadp 32, 32, 33" ::: "memory","cc"); 7832 7833 ; 7834 return 0; 7835 } 7836 _ACEOF 7837 if ac_fn_c_try_compile "$LINENO"; then : 7838 7839 ac_compiler_supports_vsx=yes 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7841 $as_echo "yes" >&6; } 7842 7843 else 7844 7845 ac_compiler_supports_vsx=no 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847 $as_echo "no" >&6; } 7848 7849 fi 7850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7851 CFLAGS=$safe_CFLAGS 7852 if test x$ac_compiler_supports_vsx_flag = xyes \ 7853 -a x$ac_compiler_supports_vsx = xyes \ 7854 -a x$HWCAP_HAS_VSX = xyes ; then 7855 HAS_VSX_TRUE= 7856 HAS_VSX_FALSE='#' 7857 else 7858 HAS_VSX_TRUE='#' 7859 HAS_VSX_FALSE= 7860 fi 7861 7862 7863 # DFP (Decimal Float) 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows DFP" >&5 7865 $as_echo_n "checking that assembler knows DFP... " >&6; } 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7867 /* end confdefs.h. */ 7868 7869 7870 int 7871 main () 7872 { 7873 7874 #ifdef __s390__ 7875 __asm__ __volatile__("adtr 1, 2, 3") 7876 #else 7877 __asm__ __volatile__("dadd 1, 2, 3"); 7878 __asm__ __volatile__("dcffix 1, 2"); 7879 #endif 7880 7881 ; 7882 return 0; 7883 } 7884 _ACEOF 7885 if ac_fn_c_try_compile "$LINENO"; then : 7886 7887 ac_asm_have_dfp=yes 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7889 $as_echo "yes" >&6; } 7890 7891 else 7892 7893 ac_asm_have_dfp=no 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7895 $as_echo "no" >&6; } 7896 7897 fi 7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows -mhard-dfp switch" >&5 7900 $as_echo_n "checking that compiler knows -mhard-dfp switch... " >&6; } 7901 safe_CFLAGS=$CFLAGS 7902 CFLAGS="-mhard-dfp -Werror" 7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904 /* end confdefs.h. */ 7905 7906 7907 int 7908 main () 7909 { 7910 7911 #ifdef __s390__ 7912 __asm__ __volatile__("adtr 1, 2, 3") 7913 #else 7914 __asm__ __volatile__("dadd 1, 2, 3"); 7915 __asm__ __volatile__("dcffix 1, 2"); 7916 #endif 7917 7918 ; 7919 return 0; 7920 } 7921 _ACEOF 7922 if ac_fn_c_try_compile "$LINENO"; then : 7923 7924 ac_compiler_have_dfp=yes 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7926 $as_echo "yes" >&6; } 7927 7928 else 7929 7930 ac_compiler_have_dfp=no 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7932 $as_echo "no" >&6; } 7933 7934 fi 7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7936 CFLAGS=$safe_CFLAGS 7937 if test x$ac_asm_have_dfp = xyes \ 7938 -a x$ac_compiler_have_dfp = xyes \ 7939 -a x$HWCAP_HAS_DFP = xyes ; then 7940 HAS_DFP_TRUE= 7941 HAS_DFP_FALSE='#' 7942 else 7943 HAS_DFP_TRUE='#' 7944 HAS_DFP_FALSE= 7945 fi 7946 7947 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that compiler knows DFP datatypes" >&5 7949 $as_echo_n "checking that compiler knows DFP datatypes... " >&6; } 7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7951 /* end confdefs.h. */ 7952 7953 7954 int 7955 main () 7956 { 7957 7958 _Decimal64 x = 0.0DD; 7959 7960 ; 7961 return 0; 7962 } 7963 _ACEOF 7964 if ac_fn_c_try_compile "$LINENO"; then : 7965 7966 ac_compiler_have_dfp_type=yes 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7968 $as_echo "yes" >&6; } 7969 7970 else 7971 7972 ac_compiler_have_dfp_type=no 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974 $as_echo "no" >&6; } 7975 7976 fi 7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7978 if test x$ac_compiler_have_dfp_type = xyes \ 7979 -a x$HWCAP_HAS_DFP = xyes ; then 7980 BUILD_DFP_TESTS_TRUE= 7981 BUILD_DFP_TESTS_FALSE='#' 7982 else 7983 BUILD_DFP_TESTS_TRUE='#' 7984 BUILD_DFP_TESTS_FALSE= 7985 fi 7986 7987 7988 7989 # HTM (Hardware Transactional Memory) 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts the -mhtm flag" >&5 7991 $as_echo_n "checking if compiler accepts the -mhtm flag... " >&6; } 7992 safe_CFLAGS=$CFLAGS 7993 CFLAGS="-mhtm -Werror" 7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7995 /* end confdefs.h. */ 7996 7997 7998 int 7999 main () 8000 { 8001 8002 return 0; 8003 8004 ; 8005 return 0; 8006 } 8007 _ACEOF 8008 if ac_fn_c_try_compile "$LINENO"; then : 8009 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8011 $as_echo "yes" >&6; } 8012 ac_compiler_supports_htm=yes 8013 8014 else 8015 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8017 $as_echo "no" >&6; } 8018 ac_compiler_supports_htm=no 8019 8020 fi 8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8022 CFLAGS=$safe_CFLAGS 8023 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler can find the htm builtins" >&5 8025 $as_echo_n "checking if compiler can find the htm builtins... " >&6; } 8026 safe_CFLAGS=$CFLAGS 8027 CFLAGS="-mhtm -Werror" 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029 /* end confdefs.h. */ 8030 8031 8032 int 8033 main () 8034 { 8035 8036 if (__builtin_tbegin (0)) 8037 __builtin_tend (0); 8038 8039 ; 8040 return 0; 8041 } 8042 _ACEOF 8043 if ac_fn_c_try_compile "$LINENO"; then : 8044 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8046 $as_echo "yes" >&6; } 8047 ac_compiler_sees_htm_builtins=yes 8048 8049 else 8050 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8052 $as_echo "no" >&6; } 8053 ac_compiler_sees_htm_builtins=no 8054 8055 fi 8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8057 CFLAGS=$safe_CFLAGS 8058 8059 if test x$ac_compiler_supports_htm = xyes \ 8060 -a x$ac_compiler_sees_htm_builtins = xyes \ 8061 -a x$HWCAP_HAS_HTM = xyes ; then 8062 SUPPORTS_HTM_TRUE= 8063 SUPPORTS_HTM_FALSE='#' 8064 else 8065 SUPPORTS_HTM_TRUE='#' 8066 SUPPORTS_HTM_FALSE= 8067 fi 8068 8069 8070 # isa 3.0 checking 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that assembler knows ISA 3.00 " >&5 8072 $as_echo_n "checking that assembler knows ISA 3.00 ... " >&6; } 8073 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8075 /* end confdefs.h. */ 8076 8077 8078 int 8079 main () 8080 { 8081 8082 __asm__ __volatile__("cnttzw 1,2 "); 8083 8084 ; 8085 return 0; 8086 } 8087 _ACEOF 8088 if ac_fn_c_try_compile "$LINENO"; then : 8089 8090 ac_asm_have_isa_3_00=yes 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8092 $as_echo "yes" >&6; } 8093 8094 else 8095 8096 ac_asm_have_isa_3_00=no 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098 $as_echo "no" >&6; } 8099 8100 fi 8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8102 8103 if test x$ac_asm_have_isa_3_00 = xyes \ 8104 -a x$HWCAP_HAS_ISA_3_00 = xyes; then 8105 HAS_ISA_3_00_TRUE= 8106 HAS_ISA_3_00_FALSE='#' 8107 else 8108 HAS_ISA_3_00_TRUE='#' 8109 HAS_ISA_3_00_FALSE= 8110 fi 8111 8112 8113 # Check for pthread_create (at] GLIBC2.0 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create (at] GLIBC2.0()" >&5 8115 $as_echo_n "checking for pthread_create (at] GLIBC2.0()... " >&6; } 8116 8117 safe_CFLAGS=$CFLAGS 8118 CFLAGS="-lpthread -Werror" 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8120 /* end confdefs.h. */ 8121 8122 extern int pthread_create_glibc_2_0(void*, const void*, 8123 void *(*)(void*), void*); 8124 __asm__(".symver pthread_create_glibc_2_0, pthread_create (at] GLIBC_2.0"); 8125 8126 int 8127 main () 8128 { 8129 8130 #ifdef __powerpc__ 8131 /* 8132 * Apparently on PowerPC linking this program succeeds and generates an 8133 * executable with the undefined symbol pthread_create@GLIBC_2.0. 8134 */ 8135 #error This test does not work properly on PowerPC. 8136 #else 8137 pthread_create_glibc_2_0(0, 0, 0, 0); 8138 #endif 8139 return 0; 8140 8141 ; 8142 return 0; 8143 } 8144 _ACEOF 8145 if ac_fn_c_try_link "$LINENO"; then : 8146 8147 ac_have_pthread_create_glibc_2_0=yes 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8149 $as_echo "yes" >&6; } 8150 8151 $as_echo "#define HAVE_PTHREAD_CREATE_GLIBC_2_0 1" >>confdefs.h 8152 8153 8154 else 8155 8156 ac_have_pthread_create_glibc_2_0=no 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8158 $as_echo "no" >&6; } 8159 8160 fi 8161 rm -f core conftest.err conftest.$ac_objext \ 8162 conftest$ac_exeext conftest.$ac_ext 8163 CFLAGS=$safe_CFLAGS 8164 8165 if test x$ac_have_pthread_create_glibc_2_0 = xyes; then 8166 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE= 8167 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE='#' 8168 else 8169 HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE='#' 8170 HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE= 8171 fi 8172 8173 8174 8175 # Check for dlinfo RTLD_DI_TLS_MODID 8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlinfo RTLD_DI_TLS_MODID" >&5 8177 $as_echo_n "checking for dlinfo RTLD_DI_TLS_MODID... " >&6; } 8178 8179 safe_LIBS="$LIBS" 8180 LIBS="-ldl" 8181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8182 /* end confdefs.h. */ 8183 8184 #ifndef _GNU_SOURCE 8185 #define _GNU_SOURCE 8186 #endif 8187 #include <link.h> 8188 #include <dlfcn.h> 8189 8190 int 8191 main () 8192 { 8193 8194 size_t sizes[10000]; 8195 size_t modid_offset; 8196 (void) dlinfo ((void*)sizes, RTLD_DI_TLS_MODID, &modid_offset); 8197 return 0; 8198 8199 ; 8200 return 0; 8201 } 8202 _ACEOF 8203 if ac_fn_c_try_link "$LINENO"; then : 8204 8205 ac_have_dlinfo_rtld_di_tls_modid=yes 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8207 $as_echo "yes" >&6; } 8208 8209 $as_echo "#define HAVE_DLINFO_RTLD_DI_TLS_MODID 1" >>confdefs.h 8210 8211 8212 else 8213 8214 ac_have_dlinfo_rtld_di_tls_modid=no 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8216 $as_echo "no" >&6; } 8217 8218 fi 8219 rm -f core conftest.err conftest.$ac_objext \ 8220 conftest$ac_exeext conftest.$ac_ext 8221 LIBS=$safe_LIBS 8222 8223 if test x$ac_have_dlinfo_rtld_di_tls_modid = xyes; then 8224 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE= 8225 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE='#' 8226 else 8227 HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE='#' 8228 HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE= 8229 fi 8230 8231 8232 8233 # Check for eventfd_t, eventfd() and eventfd_read() 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd()" >&5 8235 $as_echo_n "checking for eventfd()... " >&6; } 8236 8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238 /* end confdefs.h. */ 8239 8240 #include <sys/eventfd.h> 8241 8242 int 8243 main () 8244 { 8245 8246 eventfd_t ev; 8247 int fd; 8248 8249 fd = eventfd(5, 0); 8250 eventfd_read(fd, &ev); 8251 return 0; 8252 8253 ; 8254 return 0; 8255 } 8256 _ACEOF 8257 if ac_fn_c_try_link "$LINENO"; then : 8258 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8260 $as_echo "yes" >&6; } 8261 8262 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h 8263 8264 8265 $as_echo "#define HAVE_EVENTFD_READ 1" >>confdefs.h 8266 8267 8268 else 8269 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8271 $as_echo "no" >&6; } 8272 8273 fi 8274 rm -f core conftest.err conftest.$ac_objext \ 8275 conftest$ac_exeext conftest.$ac_ext 8276 8277 # Check whether compiler can process #include <thread> without errors 8278 # clang 3.3 cannot process <thread> from e.g. 8279 # gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 8280 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that C++ compiler can include <thread> header file" >&5 8282 $as_echo_n "checking that C++ compiler can include <thread> header file... " >&6; } 8283 ac_ext=cpp 8284 ac_cpp='$CXXCPP $CPPFLAGS' 8285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8288 8289 safe_CXXFLAGS=$CXXFLAGS 8290 CXXFLAGS=-std=c++0x 8291 8292 8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8294 /* end confdefs.h. */ 8295 8296 #include <thread> 8297 8298 _ACEOF 8299 if ac_fn_cxx_try_compile "$LINENO"; then : 8300 8301 ac_cxx_can_include_thread_header=yes 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8303 $as_echo "yes" >&6; } 8304 8305 else 8306 8307 ac_cxx_can_include_thread_header=no 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8309 $as_echo "no" >&6; } 8310 8311 fi 8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8313 CXXFLAGS=$safe_CXXFLAGS 8314 ac_ext=c 8315 ac_cpp='$CPP $CPPFLAGS' 8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8319 8320 8321 if test x$ac_cxx_can_include_thread_header = xyes; then 8322 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE= 8323 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE='#' 8324 else 8325 CXX_CAN_INCLUDE_THREAD_HEADER_TRUE='#' 8326 CXX_CAN_INCLUDE_THREAD_HEADER_FALSE= 8327 fi 8328 8329 8330 8331 # On aarch64 before glibc 2.20 we would get the kernel user_pt_regs instead 8332 # of the user_regs_struct from sys/user.h. They are structurally the same 8333 # but we get either one or the other. 8334 8335 ac_fn_c_check_type "$LINENO" "struct user_regs_struct" "ac_cv_type_struct_user_regs_struct" "#include <sys/ptrace.h> 8336 #include <sys/time.h> 8337 #include <sys/user.h> 8338 " 8339 if test "x$ac_cv_type_struct_user_regs_struct" = xyes; then : 8340 sys_user_has_user_regs=yes 8341 else 8342 sys_user_has_user_regs=no 8343 fi 8344 8345 if test "$sys_user_has_user_regs" = "yes"; then 8346 8347 $as_echo "#define HAVE_SYS_USER_REGS 1" >>confdefs.h 8348 8349 fi 8350 8351 8352 #---------------------------------------------------------------------------- 8353 # Checking for supported compiler flags. 8354 #---------------------------------------------------------------------------- 8355 8356 # does this compiler support -m32 ? 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m32" >&5 8358 $as_echo_n "checking if gcc accepts -m32... " >&6; } 8359 8360 safe_CFLAGS=$CFLAGS 8361 CFLAGS="-m32 -Werror" 8362 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364 /* end confdefs.h. */ 8365 8366 int 8367 main () 8368 { 8369 8370 return 0; 8371 8372 ; 8373 return 0; 8374 } 8375 _ACEOF 8376 if ac_fn_c_try_compile "$LINENO"; then : 8377 8378 FLAG_M32="-m32" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8380 $as_echo "yes" >&6; } 8381 8382 else 8383 8384 FLAG_M32="" 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8386 $as_echo "no" >&6; } 8387 8388 fi 8389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8390 CFLAGS=$safe_CFLAGS 8391 8392 8393 8394 8395 # does this compiler support -m64 ? 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -m64" >&5 8397 $as_echo_n "checking if gcc accepts -m64... " >&6; } 8398 8399 safe_CFLAGS=$CFLAGS 8400 CFLAGS="-m64 -Werror" 8401 8402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8403 /* end confdefs.h. */ 8404 8405 int 8406 main () 8407 { 8408 8409 return 0; 8410 8411 ; 8412 return 0; 8413 } 8414 _ACEOF 8415 if ac_fn_c_try_compile "$LINENO"; then : 8416 8417 FLAG_M64="-m64" 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8419 $as_echo "yes" >&6; } 8420 8421 else 8422 8423 FLAG_M64="" 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8425 $as_echo "no" >&6; } 8426 8427 fi 8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8429 CFLAGS=$safe_CFLAGS 8430 8431 8432 8433 8434 # does this compiler support -march=mips32 (mips32 default) ? 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips32" >&5 8436 $as_echo_n "checking if gcc accepts -march=mips32... " >&6; } 8437 8438 safe_CFLAGS=$CFLAGS 8439 CFLAGS="$CFLAGS -march=mips32 -Werror" 8440 8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8442 /* end confdefs.h. */ 8443 8444 int 8445 main () 8446 { 8447 8448 return 0; 8449 8450 ; 8451 return 0; 8452 } 8453 _ACEOF 8454 if ac_fn_c_try_compile "$LINENO"; then : 8455 8456 FLAG_MIPS32="-march=mips32" 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8458 $as_echo "yes" >&6; } 8459 8460 else 8461 8462 FLAG_MIPS32="" 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8464 $as_echo "no" >&6; } 8465 8466 fi 8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8468 CFLAGS=$safe_CFLAGS 8469 8470 8471 8472 8473 # does this compiler support -march=mips64 (mips64 default) ? 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=mips64" >&5 8475 $as_echo_n "checking if gcc accepts -march=mips64... " >&6; } 8476 8477 safe_CFLAGS=$CFLAGS 8478 CFLAGS="$CFLAGS -march=mips64 -Werror" 8479 8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481 /* end confdefs.h. */ 8482 8483 int 8484 main () 8485 { 8486 8487 return 0; 8488 8489 ; 8490 return 0; 8491 } 8492 _ACEOF 8493 if ac_fn_c_try_compile "$LINENO"; then : 8494 8495 FLAG_MIPS64="-march=mips64" 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8497 $as_echo "yes" >&6; } 8498 8499 else 8500 8501 FLAG_MIPS64="" 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503 $as_echo "no" >&6; } 8504 8505 fi 8506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8507 CFLAGS=$safe_CFLAGS 8508 8509 8510 8511 8512 # does this compiler support -march=octeon (Cavium OCTEON I Specific) ? 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon" >&5 8514 $as_echo_n "checking if gcc accepts -march=octeon... " >&6; } 8515 8516 safe_CFLAGS=$CFLAGS 8517 CFLAGS="$CFLAGS -march=octeon -Werror" 8518 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520 /* end confdefs.h. */ 8521 8522 int 8523 main () 8524 { 8525 8526 return 0; 8527 8528 ; 8529 return 0; 8530 } 8531 _ACEOF 8532 if ac_fn_c_try_compile "$LINENO"; then : 8533 8534 FLAG_OCTEON="-march=octeon" 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8536 $as_echo "yes" >&6; } 8537 8538 else 8539 8540 FLAG_OCTEON="" 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8542 $as_echo "no" >&6; } 8543 8544 fi 8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8546 CFLAGS=$safe_CFLAGS 8547 8548 8549 8550 8551 # does this compiler support -march=octeon2 (Cavium OCTEON II Specific) ? 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -march=octeon2" >&5 8553 $as_echo_n "checking if gcc accepts -march=octeon2... " >&6; } 8554 8555 safe_CFLAGS=$CFLAGS 8556 CFLAGS="$CFLAGS -march=octeon2 -Werror" 8557 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559 /* end confdefs.h. */ 8560 8561 int 8562 main () 8563 { 8564 8565 return 0; 8566 8567 ; 8568 return 0; 8569 } 8570 _ACEOF 8571 if ac_fn_c_try_compile "$LINENO"; then : 8572 8573 FLAG_OCTEON2="-march=octeon2" 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8575 $as_echo "yes" >&6; } 8576 8577 else 8578 8579 FLAG_OCTEON2="" 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8581 $as_echo "no" >&6; } 8582 8583 fi 8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8585 CFLAGS=$safe_CFLAGS 8586 8587 8588 8589 8590 # does this compiler support -mmmx ? 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mmmx" >&5 8592 $as_echo_n "checking if gcc accepts -mmmx... " >&6; } 8593 8594 safe_CFLAGS=$CFLAGS 8595 CFLAGS="-mmmx -Werror" 8596 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598 /* end confdefs.h. */ 8599 8600 int 8601 main () 8602 { 8603 8604 return 0; 8605 8606 ; 8607 return 0; 8608 } 8609 _ACEOF 8610 if ac_fn_c_try_compile "$LINENO"; then : 8611 8612 FLAG_MMMX="-mmmx" 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8614 $as_echo "yes" >&6; } 8615 8616 else 8617 8618 FLAG_MMMX="" 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620 $as_echo "no" >&6; } 8621 8622 fi 8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8624 CFLAGS=$safe_CFLAGS 8625 8626 8627 8628 8629 # does this compiler support -msse ? 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -msse" >&5 8631 $as_echo_n "checking if gcc accepts -msse... " >&6; } 8632 8633 safe_CFLAGS=$CFLAGS 8634 CFLAGS="-msse -Werror" 8635 8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8637 /* end confdefs.h. */ 8638 8639 int 8640 main () 8641 { 8642 8643 return 0; 8644 8645 ; 8646 return 0; 8647 } 8648 _ACEOF 8649 if ac_fn_c_try_compile "$LINENO"; then : 8650 8651 FLAG_MSSE="-msse" 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8653 $as_echo "yes" >&6; } 8654 8655 else 8656 8657 FLAG_MSSE="" 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8659 $as_echo "no" >&6; } 8660 8661 fi 8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8663 CFLAGS=$safe_CFLAGS 8664 8665 8666 8667 8668 # does this compiler support -mpreferred-stack-boundary=2 when 8669 # generating code for a 32-bit target? Note that we only care about 8670 # this when generating code for (32-bit) x86, so if the compiler 8671 # doesn't recognise -m32 it's no big deal. We'll just get code for 8672 # the Memcheck and other helper functions, that is a bit slower than 8673 # it could be, on x86; and no difference at all on any other platform. 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mpreferred-stack-boundary=2 -m32" >&5 8675 $as_echo_n "checking if gcc accepts -mpreferred-stack-boundary=2 -m32... " >&6; } 8676 8677 safe_CFLAGS=$CFLAGS 8678 CFLAGS="-mpreferred-stack-boundary=2 -m32 -Werror" 8679 8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8681 /* end confdefs.h. */ 8682 8683 int 8684 main () 8685 { 8686 8687 return 0; 8688 8689 ; 8690 return 0; 8691 } 8692 _ACEOF 8693 if ac_fn_c_try_compile "$LINENO"; then : 8694 8695 PREFERRED_STACK_BOUNDARY_2="-mpreferred-stack-boundary=2" 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8697 $as_echo "yes" >&6; } 8698 8699 else 8700 8701 PREFERRED_STACK_BOUNDARY_2="" 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8703 $as_echo "no" >&6; } 8704 8705 fi 8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8707 CFLAGS=$safe_CFLAGS 8708 8709 8710 8711 8712 # does this compiler support -mlong-double-128 ? 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -mlong-double-128" >&5 8714 $as_echo_n "checking if gcc accepts -mlong-double-128... " >&6; } 8715 safe_CFLAGS=$CFLAGS 8716 CFLAGS="-mlong-double-128 -Werror" 8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8718 /* end confdefs.h. */ 8719 8720 int 8721 main () 8722 { 8723 8724 return 0; 8725 8726 ; 8727 return 0; 8728 } 8729 _ACEOF 8730 if ac_fn_c_try_compile "$LINENO"; then : 8731 8732 ac_compiler_supports_mlong_double_128=yes 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8734 $as_echo "yes" >&6; } 8735 8736 else 8737 8738 ac_compiler_supports_mlong_double_128=no 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8740 $as_echo "no" >&6; } 8741 8742 fi 8743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8744 CFLAGS=$safe_CFLAGS 8745 if test x$ac_compiler_supports_mlong_double_128 = xyes; then 8746 HAS_MLONG_DOUBLE_128_TRUE= 8747 HAS_MLONG_DOUBLE_128_FALSE='#' 8748 else 8749 HAS_MLONG_DOUBLE_128_TRUE='#' 8750 HAS_MLONG_DOUBLE_128_FALSE= 8751 fi 8752 8753 FLAG_MLONG_DOUBLE_128="-mlong-double-128" 8754 8755 8756 8757 # Convenience function to check whether GCC supports a particular 8758 # warning option. Takes two arguments, 8759 # first the warning flag name to check (without -W), then the 8760 # substitution name to set with -Wno-warning-flag if the flag exists, 8761 # or the empty string if the compiler doesn't accept the flag. Note 8762 # that checking is done against the warning flag itself, but the 8763 # substitution is then done to cancel the warning flag. 8764 8765 8766 # Convenience function. Like AC_GCC_WARNING_SUBST_NO, except it substitutes 8767 # -W$1 (instead of -Wno-$1). 8768 8769 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmemset-transposed-args" >&5 8772 $as_echo_n "checking if gcc accepts -Wmemset-transposed-args... " >&6; } 8773 safe_CFLAGS=$CFLAGS 8774 CFLAGS="-Wmemset-transposed-args -Werror" 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776 /* end confdefs.h. */ 8777 8778 int 8779 main () 8780 { 8781 ; 8782 ; 8783 return 0; 8784 } 8785 _ACEOF 8786 if ac_fn_c_try_compile "$LINENO"; then : 8787 8788 FLAG_W_NO_MEMSET_TRANSPOSED_ARGS=-Wno-memset-transposed-args 8789 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8791 $as_echo "yes" >&6; } 8792 else 8793 8794 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8796 $as_echo "no" >&6; } 8797 fi 8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8799 CFLAGS=$safe_CFLAGS 8800 8801 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wnonnull" >&5 8803 $as_echo_n "checking if gcc accepts -Wnonnull... " >&6; } 8804 safe_CFLAGS=$CFLAGS 8805 CFLAGS="-Wnonnull -Werror" 8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8807 /* end confdefs.h. */ 8808 8809 int 8810 main () 8811 { 8812 ; 8813 ; 8814 return 0; 8815 } 8816 _ACEOF 8817 if ac_fn_c_try_compile "$LINENO"; then : 8818 8819 FLAG_W_NO_NONNULL=-Wno-nonnull 8820 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8822 $as_echo "yes" >&6; } 8823 else 8824 8825 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8827 $as_echo "no" >&6; } 8828 fi 8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8830 CFLAGS=$safe_CFLAGS 8831 8832 8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Woverflow" >&5 8834 $as_echo_n "checking if gcc accepts -Woverflow... " >&6; } 8835 safe_CFLAGS=$CFLAGS 8836 CFLAGS="-Woverflow -Werror" 8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8838 /* end confdefs.h. */ 8839 8840 int 8841 main () 8842 { 8843 ; 8844 ; 8845 return 0; 8846 } 8847 _ACEOF 8848 if ac_fn_c_try_compile "$LINENO"; then : 8849 8850 FLAG_W_NO_OVERFLOW=-Wno-overflow 8851 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8853 $as_echo "yes" >&6; } 8854 else 8855 8856 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8858 $as_echo "no" >&6; } 8859 fi 8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861 CFLAGS=$safe_CFLAGS 8862 8863 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wpointer-sign" >&5 8865 $as_echo_n "checking if gcc accepts -Wpointer-sign... " >&6; } 8866 safe_CFLAGS=$CFLAGS 8867 CFLAGS="-Wpointer-sign -Werror" 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8869 /* end confdefs.h. */ 8870 8871 int 8872 main () 8873 { 8874 ; 8875 ; 8876 return 0; 8877 } 8878 _ACEOF 8879 if ac_fn_c_try_compile "$LINENO"; then : 8880 8881 FLAG_W_NO_POINTER_SIGN=-Wno-pointer-sign 8882 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8884 $as_echo "yes" >&6; } 8885 else 8886 8887 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8889 $as_echo "no" >&6; } 8890 fi 8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8892 CFLAGS=$safe_CFLAGS 8893 8894 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wuninitialized" >&5 8896 $as_echo_n "checking if gcc accepts -Wuninitialized... " >&6; } 8897 safe_CFLAGS=$CFLAGS 8898 CFLAGS="-Wuninitialized -Werror" 8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8900 /* end confdefs.h. */ 8901 8902 int 8903 main () 8904 { 8905 ; 8906 ; 8907 return 0; 8908 } 8909 _ACEOF 8910 if ac_fn_c_try_compile "$LINENO"; then : 8911 8912 FLAG_W_NO_UNINITIALIZED=-Wno-uninitialized 8913 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8915 $as_echo "yes" >&6; } 8916 else 8917 8918 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8920 $as_echo "no" >&6; } 8921 fi 8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8923 CFLAGS=$safe_CFLAGS 8924 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wunused-function" >&5 8927 $as_echo_n "checking if gcc accepts -Wunused-function... " >&6; } 8928 safe_CFLAGS=$CFLAGS 8929 CFLAGS="-Wunused-function -Werror" 8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8931 /* end confdefs.h. */ 8932 8933 int 8934 main () 8935 { 8936 ; 8937 ; 8938 return 0; 8939 } 8940 _ACEOF 8941 if ac_fn_c_try_compile "$LINENO"; then : 8942 8943 FLAG_W_NO_UNUSED_FUNCTION=-Wno-unused-function 8944 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8946 $as_echo "yes" >&6; } 8947 else 8948 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8951 $as_echo "no" >&6; } 8952 fi 8953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8954 CFLAGS=$safe_CFLAGS 8955 8956 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wstatic-local-in-inline" >&5 8958 $as_echo_n "checking if gcc accepts -Wstatic-local-in-inline... " >&6; } 8959 safe_CFLAGS=$CFLAGS 8960 CFLAGS="-Wstatic-local-in-inline -Werror" 8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8962 /* end confdefs.h. */ 8963 8964 int 8965 main () 8966 { 8967 ; 8968 ; 8969 return 0; 8970 } 8971 _ACEOF 8972 if ac_fn_c_try_compile "$LINENO"; then : 8973 8974 FLAG_W_NO_STATIC_LOCAL_IN_INLINE=-Wno-static-local-in-inline 8975 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8977 $as_echo "yes" >&6; } 8978 else 8979 8980 8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8982 $as_echo "no" >&6; } 8983 fi 8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8985 CFLAGS=$safe_CFLAGS 8986 8987 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmismatched-new-delete" >&5 8989 $as_echo_n "checking if gcc accepts -Wmismatched-new-delete... " >&6; } 8990 safe_CFLAGS=$CFLAGS 8991 CFLAGS="-Wmismatched-new-delete -Werror" 8992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8993 /* end confdefs.h. */ 8994 8995 int 8996 main () 8997 { 8998 ; 8999 ; 9000 return 0; 9001 } 9002 _ACEOF 9003 if ac_fn_c_try_compile "$LINENO"; then : 9004 9005 FLAG_W_NO_MISMATCHED_NEW_DELETE=-Wno-mismatched-new-delete 9006 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9008 $as_echo "yes" >&6; } 9009 else 9010 9011 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9013 $as_echo "no" >&6; } 9014 fi 9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9016 CFLAGS=$safe_CFLAGS 9017 9018 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Winfinite-recursion" >&5 9020 $as_echo_n "checking if gcc accepts -Winfinite-recursion... " >&6; } 9021 safe_CFLAGS=$CFLAGS 9022 CFLAGS="-Winfinite-recursion -Werror" 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024 /* end confdefs.h. */ 9025 9026 int 9027 main () 9028 { 9029 ; 9030 ; 9031 return 0; 9032 } 9033 _ACEOF 9034 if ac_fn_c_try_compile "$LINENO"; then : 9035 9036 FLAG_W_NO_INFINITE_RECURSION=-Wno-infinite-recursion 9037 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9039 $as_echo "yes" >&6; } 9040 else 9041 9042 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9044 $as_echo "no" >&6; } 9045 fi 9046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9047 CFLAGS=$safe_CFLAGS 9048 9049 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wwrite-strings" >&5 9051 $as_echo_n "checking if gcc accepts -Wwrite-strings... " >&6; } 9052 safe_CFLAGS=$CFLAGS 9053 CFLAGS="-Wwrite-strings -Werror" 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055 /* end confdefs.h. */ 9056 9057 int 9058 main () 9059 { 9060 ; 9061 ; 9062 return 0; 9063 } 9064 _ACEOF 9065 if ac_fn_c_try_compile "$LINENO"; then : 9066 9067 FLAG_W_WRITE_STRINGS=-Wwrite-strings 9068 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9070 $as_echo "yes" >&6; } 9071 else 9072 9073 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9075 $as_echo "no" >&6; } 9076 fi 9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9078 CFLAGS=$safe_CFLAGS 9079 9080 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wempty-body" >&5 9082 $as_echo_n "checking if gcc accepts -Wempty-body... " >&6; } 9083 safe_CFLAGS=$CFLAGS 9084 CFLAGS="-Wempty-body -Werror" 9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9086 /* end confdefs.h. */ 9087 9088 int 9089 main () 9090 { 9091 ; 9092 ; 9093 return 0; 9094 } 9095 _ACEOF 9096 if ac_fn_c_try_compile "$LINENO"; then : 9097 9098 FLAG_W_EMPTY_BODY=-Wempty-body 9099 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9101 $as_echo "yes" >&6; } 9102 else 9103 9104 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9106 $as_echo "no" >&6; } 9107 fi 9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9109 CFLAGS=$safe_CFLAGS 9110 9111 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat" >&5 9113 $as_echo_n "checking if gcc accepts -Wformat... " >&6; } 9114 safe_CFLAGS=$CFLAGS 9115 CFLAGS="-Wformat -Werror" 9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9117 /* end confdefs.h. */ 9118 9119 int 9120 main () 9121 { 9122 ; 9123 ; 9124 return 0; 9125 } 9126 _ACEOF 9127 if ac_fn_c_try_compile "$LINENO"; then : 9128 9129 FLAG_W_FORMAT=-Wformat 9130 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9132 $as_echo "yes" >&6; } 9133 else 9134 9135 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9137 $as_echo "no" >&6; } 9138 fi 9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9140 CFLAGS=$safe_CFLAGS 9141 9142 # Disabled for now until all platforms are clean 9143 format_checking_enabled=no 9144 #format_checking_enabled=yes 9145 if test "$format_checking_enabled" = "yes"; then 9146 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-signedness" >&5 9148 $as_echo_n "checking if gcc accepts -Wformat-signedness... " >&6; } 9149 safe_CFLAGS=$CFLAGS 9150 CFLAGS="-Wformat-signedness -Werror" 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152 /* end confdefs.h. */ 9153 9154 int 9155 main () 9156 { 9157 ; 9158 ; 9159 return 0; 9160 } 9161 _ACEOF 9162 if ac_fn_c_try_compile "$LINENO"; then : 9163 9164 FLAG_W_FORMAT_SIGNEDNESS=-Wformat-signedness 9165 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9167 $as_echo "yes" >&6; } 9168 else 9169 9170 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9172 $as_echo "no" >&6; } 9173 fi 9174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9175 CFLAGS=$safe_CFLAGS 9176 9177 else 9178 dumy_assignment_to_avoid_syntax_errors=1 9179 9180 fi 9181 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wcast-qual" >&5 9183 $as_echo_n "checking if gcc accepts -Wcast-qual... " >&6; } 9184 safe_CFLAGS=$CFLAGS 9185 CFLAGS="-Wcast-qual -Werror" 9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187 /* end confdefs.h. */ 9188 9189 int 9190 main () 9191 { 9192 ; 9193 ; 9194 return 0; 9195 } 9196 _ACEOF 9197 if ac_fn_c_try_compile "$LINENO"; then : 9198 9199 FLAG_W_CAST_QUAL=-Wcast-qual 9200 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9202 $as_echo "yes" >&6; } 9203 else 9204 9205 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9207 $as_echo "no" >&6; } 9208 fi 9209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9210 CFLAGS=$safe_CFLAGS 9211 9212 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wold-style-declaration" >&5 9214 $as_echo_n "checking if gcc accepts -Wold-style-declaration... " >&6; } 9215 safe_CFLAGS=$CFLAGS 9216 CFLAGS="-Wold-style-declaration -Werror" 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218 /* end confdefs.h. */ 9219 9220 int 9221 main () 9222 { 9223 ; 9224 ; 9225 return 0; 9226 } 9227 _ACEOF 9228 if ac_fn_c_try_compile "$LINENO"; then : 9229 9230 FLAG_W_OLD_STYLE_DECLARATION=-Wold-style-declaration 9231 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9233 $as_echo "yes" >&6; } 9234 else 9235 9236 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9238 $as_echo "no" >&6; } 9239 fi 9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241 CFLAGS=$safe_CFLAGS 9242 9243 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wignored-qualifiers" >&5 9245 $as_echo_n "checking if gcc accepts -Wignored-qualifiers... " >&6; } 9246 safe_CFLAGS=$CFLAGS 9247 CFLAGS="-Wignored-qualifiers -Werror" 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249 /* end confdefs.h. */ 9250 9251 int 9252 main () 9253 { 9254 ; 9255 ; 9256 return 0; 9257 } 9258 _ACEOF 9259 if ac_fn_c_try_compile "$LINENO"; then : 9260 9261 FLAG_W_IGNORED_QUALIFIERS=-Wignored-qualifiers 9262 9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9264 $as_echo "yes" >&6; } 9265 else 9266 9267 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9269 $as_echo "no" >&6; } 9270 fi 9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9272 CFLAGS=$safe_CFLAGS 9273 9274 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wmissing-parameter-type" >&5 9276 $as_echo_n "checking if gcc accepts -Wmissing-parameter-type... " >&6; } 9277 safe_CFLAGS=$CFLAGS 9278 CFLAGS="-Wmissing-parameter-type -Werror" 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280 /* end confdefs.h. */ 9281 9282 int 9283 main () 9284 { 9285 ; 9286 ; 9287 return 0; 9288 } 9289 _ACEOF 9290 if ac_fn_c_try_compile "$LINENO"; then : 9291 9292 FLAG_W_MISSING_PARAMETER_TYPE=-Wmissing-parameter-type 9293 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9295 $as_echo "yes" >&6; } 9296 else 9297 9298 9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9300 $as_echo "no" >&6; } 9301 fi 9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9303 CFLAGS=$safe_CFLAGS 9304 9305 9306 # Does this compiler support -Wformat-security ? 9307 # Special handling is needed, because certain GCC versions require -Wformat 9308 # being present if -Wformat-security is given. Otherwise a warning is issued. 9309 # However, AC_GCC_WARNING_SUBST will stick in -Werror (see r15323 for rationale). 9310 # And with that the warning will be turned into an error with the result 9311 # that -Wformat-security is believed to be unsupported when in fact it is. 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wformat-security" >&5 9313 $as_echo_n "checking if gcc accepts -Wformat-security... " >&6; } 9314 safe_CFLAGS=$CFLAGS 9315 CFLAGS="-Wformat -Wformat-security -Werror" 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317 /* end confdefs.h. */ 9318 9319 int 9320 main () 9321 { 9322 ; 9323 ; 9324 return 0; 9325 } 9326 _ACEOF 9327 if ac_fn_c_try_compile "$LINENO"; then : 9328 9329 FLAG_W_FORMAT_SECURITY=-Wformat-security 9330 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9332 $as_echo "yes" >&6; } 9333 else 9334 9335 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9337 $as_echo "no" >&6; } 9338 fi 9339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9340 CFLAGS=$safe_CFLAGS 9341 9342 # does this compiler support -Wextra or the older -W ? 9343 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -Wextra or -W" >&5 9345 $as_echo_n "checking if gcc accepts -Wextra or -W... " >&6; } 9346 9347 safe_CFLAGS=$CFLAGS 9348 CFLAGS="-Wextra -Werror" 9349 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351 /* end confdefs.h. */ 9352 9353 int 9354 main () 9355 { 9356 9357 return 0; 9358 9359 ; 9360 return 0; 9361 } 9362 _ACEOF 9363 if ac_fn_c_try_compile "$LINENO"; then : 9364 9365 FLAG_W_EXTRA=-Wextra 9366 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -Wextra" >&5 9368 $as_echo "-Wextra" >&6; } 9369 9370 else 9371 9372 CFLAGS="-W -Werror" 9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374 /* end confdefs.h. */ 9375 9376 int 9377 main () 9378 { 9379 9380 return 0; 9381 9382 ; 9383 return 0; 9384 } 9385 _ACEOF 9386 if ac_fn_c_try_compile "$LINENO"; then : 9387 9388 FLAG_W_EXTRA=-W 9389 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -W" >&5 9391 $as_echo "-W" >&6; } 9392 9393 else 9394 9395 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 9397 $as_echo "not supported" >&6; } 9398 9399 fi 9400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9401 9402 fi 9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9404 CFLAGS=$safe_CFLAGS 9405 9406 # On ARM we do not want to pass -Wcast-align as that produces loads 9407 # of warnings. GCC is just being conservative. See here: 9408 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65459#c4 9409 if test "X$VGCONF_ARCH_PRI" = "Xarm"; then 9410 FLAG_W_CAST_ALIGN="" 9411 9412 else 9413 FLAG_W_CAST_ALIGN=-Wcast-align 9414 9415 fi 9416 9417 # does this compiler support -fno-stack-protector ? 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-stack-protector" >&5 9419 $as_echo_n "checking if gcc accepts -fno-stack-protector... " >&6; } 9420 9421 safe_CFLAGS=$CFLAGS 9422 CFLAGS="-fno-stack-protector -Werror" 9423 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425 /* end confdefs.h. */ 9426 9427 int 9428 main () 9429 { 9430 9431 return 0; 9432 9433 ; 9434 return 0; 9435 } 9436 _ACEOF 9437 if ac_fn_c_try_compile "$LINENO"; then : 9438 9439 no_stack_protector=yes 9440 FLAG_FNO_STACK_PROTECTOR="-fno-stack-protector" 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9442 $as_echo "yes" >&6; } 9443 9444 else 9445 9446 no_stack_protector=no 9447 FLAG_FNO_STACK_PROTECTOR="" 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9449 $as_echo "no" >&6; } 9450 9451 fi 9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9453 CFLAGS=$safe_CFLAGS 9454 9455 9456 9457 # Does GCC support disabling Identical Code Folding? 9458 # We want to disabled Identical Code Folding for the 9459 # tools preload shared objects to get better backraces. 9460 # For GCC 5.1+ -fipa-icf is enabled by default at -O2. 9461 # "The optimization reduces code size and may disturb 9462 # unwind stacks by replacing a function by equivalent 9463 # one with a different name." 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fno-ipa-icf" >&5 9465 $as_echo_n "checking if gcc accepts -fno-ipa-icf... " >&6; } 9466 9467 safe_CFLAGS=$CFLAGS 9468 CFLAGS="-fno-ipa-icf -Werror" 9469 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471 /* end confdefs.h. */ 9472 9473 int 9474 main () 9475 { 9476 9477 return 0; 9478 9479 ; 9480 return 0; 9481 } 9482 _ACEOF 9483 if ac_fn_c_try_compile "$LINENO"; then : 9484 9485 no_ipa_icf=yes 9486 FLAG_FNO_IPA_ICF="-fno-ipa-icf" 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9488 $as_echo "yes" >&6; } 9489 9490 else 9491 9492 no_ipa_icf=no 9493 FLAG_FNO_IPA_ICF="" 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9495 $as_echo "no" >&6; } 9496 9497 fi 9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9499 CFLAGS=$safe_CFLAGS 9500 9501 9502 9503 9504 # Does this compiler support -fsanitize=undefined. This is true for 9505 # GCC 4.9 and newer. However, the undefined behaviour sanitiser in GCC 5.1 9506 # also checks for alignment violations on memory accesses which the valgrind 9507 # code base is sprinkled (if not littered) with. As those alignment issues 9508 # don't pose a problem we want to suppress warnings about them. 9509 # In GCC 5.1 this can be done by passing -fno-sanitize=alignment. Earlier 9510 # GCCs do not support that. 9511 # 9512 # Only checked for if --enable-ubsan was given. 9513 if test "x${vg_cv_ubsan}" = "xyes"; then 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment" >&5 9515 $as_echo_n "checking if gcc accepts -fsanitize=undefined -fno-sanitize=alignment... " >&6; } 9516 safe_CFLAGS=$CFLAGS 9517 CFLAGS="-fsanitize=undefined -fno-sanitize=alignment -Werror" 9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9519 /* end confdefs.h. */ 9520 9521 int 9522 main () 9523 { 9524 9525 return 0; 9526 9527 ; 9528 return 0; 9529 } 9530 _ACEOF 9531 if ac_fn_c_try_compile "$LINENO"; then : 9532 9533 FLAG_FSANITIZE="-fsanitize=undefined -fno-sanitize=alignment" 9534 LIB_UBSAN="-static-libubsan" 9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9536 $as_echo "yes" >&6; } 9537 9538 else 9539 9540 CFLAGS="-fsanitize=undefined -Werror" 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542 /* end confdefs.h. */ 9543 9544 int 9545 main () 9546 { 9547 9548 return 0; 9549 9550 ; 9551 return 0; 9552 } 9553 _ACEOF 9554 if ac_fn_c_try_compile "$LINENO"; then : 9555 9556 FLAG_FSANITIZE="-fsanitize=undefined" 9557 LIB_UBSAN="-static-libubsan" 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9559 $as_echo "yes" >&6; } 9560 9561 else 9562 9563 FLAG_FSANITIZE="" 9564 LIB_UBSAN="" 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9566 $as_echo "no" >&6; } 9567 9568 fi 9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9570 9571 fi 9572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9573 CFLAGS=$safe_CFLAGS 9574 9575 9576 fi 9577 # does this compiler support --param inline-unit-growth=... ? 9578 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts --param inline-unit-growth" >&5 9580 $as_echo_n "checking if gcc accepts --param inline-unit-growth... " >&6; } 9581 9582 safe_CFLAGS=$CFLAGS 9583 CFLAGS="--param inline-unit-growth=900 -Werror" 9584 9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9586 /* end confdefs.h. */ 9587 9588 int 9589 main () 9590 { 9591 9592 return 0; 9593 9594 ; 9595 return 0; 9596 } 9597 _ACEOF 9598 if ac_fn_c_try_compile "$LINENO"; then : 9599 9600 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="--param inline-unit-growth=900" 9601 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9603 $as_echo "yes" >&6; } 9604 9605 else 9606 9607 FLAG_UNLIMITED_INLINE_UNIT_GROWTH="" 9608 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9610 $as_echo "no" >&6; } 9611 9612 fi 9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9614 CFLAGS=$safe_CFLAGS 9615 9616 9617 # does this compiler support -gdwarf-4 -fdebug-types-section ? 9618 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -gdwarf-4 -fdebug-types-section" >&5 9620 $as_echo_n "checking if gcc accepts -gdwarf-4 -fdebug-types-section... " >&6; } 9621 9622 safe_CFLAGS=$CFLAGS 9623 CFLAGS="-gdwarf-4 -fdebug-types-section -Werror" 9624 9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9626 /* end confdefs.h. */ 9627 9628 int 9629 main () 9630 { 9631 9632 return 0; 9633 9634 ; 9635 return 0; 9636 } 9637 _ACEOF 9638 if ac_fn_c_try_compile "$LINENO"; then : 9639 9640 ac_have_dwarf4=yes 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9642 $as_echo "yes" >&6; } 9643 9644 else 9645 9646 ac_have_dwarf4=no 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9648 $as_echo "no" >&6; } 9649 9650 fi 9651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9652 if test x$ac_have_dwarf4 = xyes; then 9653 DWARF4_TRUE= 9654 DWARF4_FALSE='#' 9655 else 9656 DWARF4_TRUE='#' 9657 DWARF4_FALSE= 9658 fi 9659 9660 CFLAGS=$safe_CFLAGS 9661 9662 9663 # does this compiler support -g -gz=zlib ? 9664 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib" >&5 9666 $as_echo_n "checking if gcc accepts -g -gz=zlib... " >&6; } 9667 9668 safe_CFLAGS=$CFLAGS 9669 CFLAGS="-g -gz=zlib" 9670 9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672 /* end confdefs.h. */ 9673 9674 int 9675 main () 9676 { 9677 9678 return 0; 9679 9680 ; 9681 return 0; 9682 } 9683 _ACEOF 9684 if ac_fn_c_try_compile "$LINENO"; then : 9685 9686 ac_have_gz_zlib=yes 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9688 $as_echo "yes" >&6; } 9689 9690 else 9691 9692 ac_have_gz_zlib=no 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9694 $as_echo "no" >&6; } 9695 9696 fi 9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9698 if test x$ac_have_gz_zlib = xyes; then 9699 GZ_ZLIB_TRUE= 9700 GZ_ZLIB_FALSE='#' 9701 else 9702 GZ_ZLIB_TRUE='#' 9703 GZ_ZLIB_FALSE= 9704 fi 9705 9706 CFLAGS=$safe_CFLAGS 9707 9708 9709 # does this compiler support -g -gz=zlib-gnu ? 9710 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -g -gz=zlib-gnu" >&5 9712 $as_echo_n "checking if gcc accepts -g -gz=zlib-gnu... " >&6; } 9713 9714 safe_CFLAGS=$CFLAGS 9715 CFLAGS="-g -gz=zlib-gnu" 9716 9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9718 /* end confdefs.h. */ 9719 9720 int 9721 main () 9722 { 9723 9724 return 0; 9725 9726 ; 9727 return 0; 9728 } 9729 _ACEOF 9730 if ac_fn_c_try_compile "$LINENO"; then : 9731 9732 ac_have_gz_zlib_gnu=yes 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9734 $as_echo "yes" >&6; } 9735 9736 else 9737 9738 ac_have_gz_zlib_gnu=no 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9740 $as_echo "no" >&6; } 9741 9742 fi 9743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9744 if test x$ac_have_gz_zlib_gnu = xyes; then 9745 GZ_ZLIB_GNU_TRUE= 9746 GZ_ZLIB_GNU_FALSE='#' 9747 else 9748 GZ_ZLIB_GNU_TRUE='#' 9749 GZ_ZLIB_GNU_FALSE= 9750 fi 9751 9752 CFLAGS=$safe_CFLAGS 9753 9754 9755 # does this compiler support nested functions ? 9756 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts nested functions" >&5 9758 $as_echo_n "checking if gcc accepts nested functions... " >&6; } 9759 9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9761 /* end confdefs.h. */ 9762 9763 int 9764 main () 9765 { 9766 9767 int foo() { return 1; } 9768 return foo(); 9769 9770 ; 9771 return 0; 9772 } 9773 _ACEOF 9774 if ac_fn_c_try_compile "$LINENO"; then : 9775 9776 ac_have_nested_functions=yes 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9778 $as_echo "yes" >&6; } 9779 9780 else 9781 9782 ac_have_nested_functions=no 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9784 $as_echo "no" >&6; } 9785 9786 fi 9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9788 if test x$ac_have_nested_functions = xyes; then 9789 HAVE_NESTED_FUNCTIONS_TRUE= 9790 HAVE_NESTED_FUNCTIONS_FALSE='#' 9791 else 9792 HAVE_NESTED_FUNCTIONS_TRUE='#' 9793 HAVE_NESTED_FUNCTIONS_FALSE= 9794 fi 9795 9796 9797 9798 # does this compiler support the 'p' constraint in ASM statements ? 9799 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts the 'p' constraint in asm statements" >&5 9801 $as_echo_n "checking if gcc accepts the 'p' constraint in asm statements... " >&6; } 9802 9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9804 /* end confdefs.h. */ 9805 9806 int 9807 main () 9808 { 9809 9810 char *p; 9811 __asm__ __volatile__ ("movdqa (%0),%%xmm6\n" : "=p" (p)); 9812 9813 ; 9814 return 0; 9815 } 9816 _ACEOF 9817 if ac_fn_c_try_compile "$LINENO"; then : 9818 9819 ac_have_asm_constraint_p=yes 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9821 $as_echo "yes" >&6; } 9822 9823 else 9824 9825 ac_have_asm_constraint_p=no 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9827 $as_echo "no" >&6; } 9828 9829 fi 9830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9831 if test x$ac_have_asm_constraint_p = xyes; then 9832 HAVE_ASM_CONSTRAINT_P_TRUE= 9833 HAVE_ASM_CONSTRAINT_P_FALSE='#' 9834 else 9835 HAVE_ASM_CONSTRAINT_P_TRUE='#' 9836 HAVE_ASM_CONSTRAINT_P_FALSE= 9837 fi 9838 9839 9840 9841 # Does this compiler support -no-pie? 9842 # On Ubuntu 16.10+, gcc produces position independent executables (PIE) by 9843 # default. However this gets in the way with some tests, we use -no-pie 9844 # for these. 9845 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -no-pie" >&5 9847 $as_echo_n "checking if gcc accepts -no-pie... " >&6; } 9848 9849 safe_CFLAGS=$CFLAGS 9850 CFLAGS="-no-pie" 9851 9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853 /* end confdefs.h. */ 9854 9855 int 9856 main () 9857 { 9858 9859 return 0; 9860 9861 ; 9862 return 0; 9863 } 9864 _ACEOF 9865 if ac_fn_c_try_compile "$LINENO"; then : 9866 9867 FLAG_NO_PIE="-no-pie" 9868 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9870 $as_echo "yes" >&6; } 9871 9872 else 9873 9874 FLAG_NO_PIE="" 9875 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9877 $as_echo "no" >&6; } 9878 9879 fi 9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9881 CFLAGS=$safe_CFLAGS 9882 9883 9884 # We want to use use the -Ttext-segment option to the linker. 9885 # GNU (bfd) ld supports this directly. Newer GNU gold linkers 9886 # support it as an alias of -Ttext. Sadly GNU (bfd) ld's -Ttext 9887 # semantics are NOT what we want (GNU gold -Ttext is fine). 9888 # 9889 # For GNU (bfd) ld -Ttext-segment chooses the base at which ELF headers 9890 # will reside. -Ttext aligns just the .text section start (but not any 9891 # other section). 9892 # 9893 # So test for -Ttext-segment which is supported by all bfd ld versions 9894 # and use that if it exists. If it doesn't exist it must be an older 9895 # version of gold and we can fall back to using -Ttext which has the 9896 # right semantics. 9897 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,-Ttext-segment" >&5 9899 $as_echo_n "checking if the linker accepts -Wl,-Ttext-segment... " >&6; } 9900 9901 safe_CFLAGS=$CFLAGS 9902 CFLAGS="-static -nodefaultlibs -nostartfiles -Wl,-Ttext-segment=$valt_load_address_pri_norml -Werror" 9903 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905 /* end confdefs.h. */ 9906 int _start () { return 0; } 9907 _ACEOF 9908 if ac_fn_c_try_link "$LINENO"; then : 9909 9910 linker_using_t_text="no" 9911 FLAG_T_TEXT="-Ttext-segment" 9912 9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9914 $as_echo "yes" >&6; } 9915 9916 else 9917 9918 linker_using_t_text="yes" 9919 FLAG_T_TEXT="-Ttext" 9920 9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9922 $as_echo "no" >&6; } 9923 9924 fi 9925 rm -f core conftest.err conftest.$ac_objext \ 9926 conftest$ac_exeext conftest.$ac_ext 9927 CFLAGS=$safe_CFLAGS 9928 9929 # If the linker only supports -Ttext (not -Ttext-segment) then we will 9930 # have to strip any build-id ELF NOTEs from the statically linked tools. 9931 # Otherwise the build-id NOTE might end up at the default load address. 9932 # (Pedantically if the linker is gold then -Ttext is fine, but newer 9933 # gold versions also support -Ttext-segment. So just assume that unless 9934 # we can use -Ttext-segment we need to strip the build-id NOTEs. 9935 if test "x${linker_using_t_text}" = "xyes"; then 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext used, need to strip build-id NOTEs." >&5 9937 $as_echo "$as_me: ld -Ttext used, need to strip build-id NOTEs." >&6;} 9938 # does the linker support -Wl,--build-id=none ? Note, it's 9939 # important that we test indirectly via whichever C compiler 9940 # is selected, rather than testing /usr/bin/ld or whatever 9941 # directly. 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--build-id=none" >&5 9943 $as_echo_n "checking if the linker accepts -Wl,--build-id=none... " >&6; } 9944 safe_CFLAGS=$CFLAGS 9945 CFLAGS="-Wl,--build-id=none -Werror" 9946 9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9948 /* end confdefs.h. */ 9949 9950 int 9951 main () 9952 { 9953 return 0; 9954 ; 9955 return 0; 9956 } 9957 _ACEOF 9958 if ac_fn_c_try_link "$LINENO"; then : 9959 9960 FLAG_NO_BUILD_ID="-Wl,--build-id=none" 9961 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9963 $as_echo "yes" >&6; } 9964 9965 else 9966 9967 FLAG_NO_BUILD_ID="" 9968 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9970 $as_echo "no" >&6; } 9971 9972 fi 9973 rm -f core conftest.err conftest.$ac_objext \ 9974 conftest$ac_exeext conftest.$ac_ext 9975 else 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: ld -Ttext-segment used, no need to strip build-id NOTEs." >&5 9977 $as_echo "$as_me: ld -Ttext-segment used, no need to strip build-id NOTEs." >&6;} 9978 FLAG_NO_BUILD_ID="" 9979 9980 fi 9981 CFLAGS=$safe_CFLAGS 9982 9983 # does the ppc assembler support "mtocrf" et al? 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 as supports mtocrf/mfocrf" >&5 9985 $as_echo_n "checking if ppc32/64 as supports mtocrf/mfocrf... " >&6; } 9986 9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9988 /* end confdefs.h. */ 9989 9990 int 9991 main () 9992 { 9993 9994 __asm__ __volatile__("mtocrf 4,0"); 9995 __asm__ __volatile__("mfocrf 0,4"); 9996 9997 ; 9998 return 0; 9999 } 10000 _ACEOF 10001 if ac_fn_c_try_compile "$LINENO"; then : 10002 10003 ac_have_as_ppc_mftocrf=yes 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10005 $as_echo "yes" >&6; } 10006 10007 else 10008 10009 ac_have_as_ppc_mftocrf=no 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10011 $as_echo "no" >&6; } 10012 10013 fi 10014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10015 if test x$ac_have_as_ppc_mftocrf = xyes ; then 10016 10017 $as_echo "#define HAVE_AS_PPC_MFTOCRF 1" >>confdefs.h 10018 10019 fi 10020 10021 10022 # does the ppc assembler support "lfdp" and other phased out floating point insns? 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ppc32/64 asm supports phased out floating point instructions" >&5 10024 $as_echo_n "checking if ppc32/64 asm supports phased out floating point instructions... " >&6; } 10025 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10027 /* end confdefs.h. */ 10028 10029 int 10030 main () 10031 { 10032 10033 do { typedef struct { 10034 double hi; 10035 double lo; 10036 } dbl_pair_t; 10037 dbl_pair_t dbl_pair[3]; 10038 __asm__ volatile ("lfdp 10, %0"::"m" (dbl_pair[0])); 10039 } while (0) 10040 10041 ; 10042 return 0; 10043 } 10044 _ACEOF 10045 if ac_fn_c_try_compile "$LINENO"; then : 10046 10047 ac_have_as_ppc_fpPO=yes 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10049 $as_echo "yes" >&6; } 10050 10051 else 10052 10053 ac_have_as_ppc_fpPO=no 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10055 $as_echo "no" >&6; } 10056 10057 fi 10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10059 if test x$ac_have_as_ppc_fpPO = xyes ; then 10060 10061 $as_echo "#define HAVE_AS_PPC_FPPO 1" >>confdefs.h 10062 10063 fi 10064 10065 10066 # does the amd64 assembler understand "fxsave64" and "fxrstor64"? 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler supports fxsave64/fxrstor64" >&5 10068 $as_echo_n "checking if amd64 assembler supports fxsave64/fxrstor64... " >&6; } 10069 10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10071 /* end confdefs.h. */ 10072 10073 int 10074 main () 10075 { 10076 10077 void* p; 10078 asm __volatile__("fxsave64 (%0)" : : "r" (p) : "memory" ); 10079 asm __volatile__("fxrstor64 (%0)" : : "r" (p) : "memory" ); 10080 10081 ; 10082 return 0; 10083 } 10084 _ACEOF 10085 if ac_fn_c_try_compile "$LINENO"; then : 10086 10087 ac_have_as_amd64_fxsave64=yes 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10089 $as_echo "yes" >&6; } 10090 10091 else 10092 10093 ac_have_as_amd64_fxsave64=no 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10095 $as_echo "no" >&6; } 10096 10097 fi 10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10099 if test x$ac_have_as_amd64_fxsave64 = xyes ; then 10100 10101 $as_echo "#define HAVE_AS_AMD64_FXSAVE64 1" >>confdefs.h 10102 10103 fi 10104 10105 # does the x86/amd64 assembler understand SSE3 instructions? 10106 # Note, this doesn't generate a C-level symbol. It generates a 10107 # automake-level symbol (BUILD_SSE3_TESTS), used in test Makefile.am's 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE3" >&5 10109 $as_echo_n "checking if x86/amd64 assembler speaks SSE3... " >&6; } 10110 10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112 /* end confdefs.h. */ 10113 10114 int 10115 main () 10116 { 10117 10118 do { long long int x; 10119 __asm__ __volatile__("fisttpq (%0)" : :"r"(&x) ); } 10120 while (0) 10121 10122 ; 10123 return 0; 10124 } 10125 _ACEOF 10126 if ac_fn_c_try_compile "$LINENO"; then : 10127 10128 ac_have_as_sse3=yes 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10130 $as_echo "yes" >&6; } 10131 10132 else 10133 10134 ac_have_as_sse3=no 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10136 $as_echo "no" >&6; } 10137 10138 fi 10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10140 10141 if test x$ac_have_as_sse3 = xyes; then 10142 BUILD_SSE3_TESTS_TRUE= 10143 BUILD_SSE3_TESTS_FALSE='#' 10144 else 10145 BUILD_SSE3_TESTS_TRUE='#' 10146 BUILD_SSE3_TESTS_FALSE= 10147 fi 10148 10149 10150 10151 # Ditto for SSSE3 instructions (note extra S) 10152 # Note, this doesn't generate a C-level symbol. It generates a 10153 # automake-level symbol (BUILD_SSSE3_TESTS), used in test Makefile.am's 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSSE3" >&5 10155 $as_echo_n "checking if x86/amd64 assembler speaks SSSE3... " >&6; } 10156 10157 save_CFLAGS="$CFLAGS" 10158 CFLAGS="$CFLAGS -msse -Werror" 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160 /* end confdefs.h. */ 10161 10162 int 10163 main () 10164 { 10165 10166 do { long long int x; 10167 __asm__ __volatile__( 10168 "pabsb (%0),%%xmm7" : : "r"(&x) : "xmm7" ); } 10169 while (0) 10170 10171 ; 10172 return 0; 10173 } 10174 _ACEOF 10175 if ac_fn_c_try_compile "$LINENO"; then : 10176 10177 ac_have_as_ssse3=yes 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10179 $as_echo "yes" >&6; } 10180 10181 else 10182 10183 ac_have_as_ssse3=no 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185 $as_echo "no" >&6; } 10186 10187 fi 10188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189 CFLAGS="$save_CFLAGS" 10190 10191 if test x$ac_have_as_ssse3 = xyes; then 10192 BUILD_SSSE3_TESTS_TRUE= 10193 BUILD_SSSE3_TESTS_FALSE='#' 10194 else 10195 BUILD_SSSE3_TESTS_TRUE='#' 10196 BUILD_SSSE3_TESTS_FALSE= 10197 fi 10198 10199 10200 10201 # does the x86/amd64 assembler understand the PCLMULQDQ instruction? 10202 # Note, this doesn't generate a C-level symbol. It generates a 10203 # automake-level symbol (BUILD_PCLMULQDQ_TESTS), used in test Makefile.am's 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'pclmulqdq'" >&5 10205 $as_echo_n "checking if x86/amd64 assembler supports 'pclmulqdq'... " >&6; } 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207 /* end confdefs.h. */ 10208 10209 int 10210 main () 10211 { 10212 10213 do { 10214 __asm__ __volatile__( 10215 "pclmulqdq \$17,%%xmm6,%%xmm7" : : : "xmm6", "xmm7" ); } 10216 while (0) 10217 10218 ; 10219 return 0; 10220 } 10221 _ACEOF 10222 if ac_fn_c_try_compile "$LINENO"; then : 10223 10224 ac_have_as_pclmulqdq=yes 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10226 $as_echo "yes" >&6; } 10227 10228 else 10229 10230 ac_have_as_pclmulqdq=no 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10232 $as_echo "no" >&6; } 10233 10234 fi 10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10236 10237 if test x$ac_have_as_pclmulqdq = xyes; then 10238 BUILD_PCLMULQDQ_TESTS_TRUE= 10239 BUILD_PCLMULQDQ_TESTS_FALSE='#' 10240 else 10241 BUILD_PCLMULQDQ_TESTS_TRUE='#' 10242 BUILD_PCLMULQDQ_TESTS_FALSE= 10243 fi 10244 10245 10246 10247 # does the x86/amd64 assembler understand the VPCLMULQDQ instruction? 10248 # Note, this doesn't generate a C-level symbol. It generates a 10249 # automake-level symbol (BUILD_VPCLMULQDQ_TESTS), used in test Makefile.am's 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'vpclmulqdq'" >&5 10251 $as_echo_n "checking if x86/amd64 assembler supports 'vpclmulqdq'... " >&6; } 10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10253 /* end confdefs.h. */ 10254 10255 int 10256 main () 10257 { 10258 10259 do { 10260 /* 10261 * Carry-less multiplication of xmm1 with xmm2 and store the result in 10262 * xmm3. The immediate is used to determine which quadwords of xmm1 and 10263 * xmm2 should be used. 10264 */ 10265 __asm__ __volatile__( 10266 "vpclmulqdq \$0,%%xmm1,%%xmm2,%%xmm3" : : : ); 10267 } while (0) 10268 10269 ; 10270 return 0; 10271 } 10272 _ACEOF 10273 if ac_fn_c_try_compile "$LINENO"; then : 10274 10275 ac_have_as_vpclmulqdq=yes 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10277 $as_echo "yes" >&6; } 10278 10279 else 10280 10281 ac_have_as_vpclmulqdq=no 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10283 $as_echo "no" >&6; } 10284 10285 fi 10286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10287 10288 if test x$ac_have_as_vpclmulqdq = xyes; then 10289 BUILD_VPCLMULQDQ_TESTS_TRUE= 10290 BUILD_VPCLMULQDQ_TESTS_FALSE='#' 10291 else 10292 BUILD_VPCLMULQDQ_TESTS_TRUE='#' 10293 BUILD_VPCLMULQDQ_TESTS_FALSE= 10294 fi 10295 10296 10297 10298 # does the x86/amd64 assembler understand FMA4 instructions? 10299 # Note, this doesn't generate a C-level symbol. It generates a 10300 # automake-level symbol (BUILD_AFM4_TESTS), used in test Makefile.am's 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports FMA4 'vfmaddpd'" >&5 10302 $as_echo_n "checking if x86/amd64 assembler supports FMA4 'vfmaddpd'... " >&6; } 10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10304 /* end confdefs.h. */ 10305 10306 int 10307 main () 10308 { 10309 10310 do { 10311 __asm__ __volatile__( 10312 "vfmaddpd %%xmm7,%%xmm8,%%xmm6,%%xmm9" : : : ); 10313 } while (0) 10314 10315 ; 10316 return 0; 10317 } 10318 _ACEOF 10319 if ac_fn_c_try_compile "$LINENO"; then : 10320 10321 ac_have_as_vfmaddpd=yes 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10323 $as_echo "yes" >&6; } 10324 10325 else 10326 10327 ac_have_as_vfmaddpd=no 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10329 $as_echo "no" >&6; } 10330 10331 fi 10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10333 10334 if test x$ac_have_as_vfmaddpd = xyes; then 10335 BUILD_FMA4_TESTS_TRUE= 10336 BUILD_FMA4_TESTS_FALSE='#' 10337 else 10338 BUILD_FMA4_TESTS_TRUE='#' 10339 BUILD_FMA4_TESTS_FALSE= 10340 fi 10341 10342 10343 10344 # does the x86/amd64 assembler understand the LZCNT instruction? 10345 # Note, this doesn't generate a C-level symbol. It generates a 10346 # automake-level symbol (BUILD_LZCNT_TESTS), used in test Makefile.am's 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'lzcnt'" >&5 10348 $as_echo_n "checking if x86/amd64 assembler supports 'lzcnt'... " >&6; } 10349 10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10351 /* end confdefs.h. */ 10352 10353 int 10354 main () 10355 { 10356 10357 do { 10358 __asm__ __volatile__("lzcnt %%rax,%%rax" : : : "rax"); 10359 } while (0) 10360 10361 ; 10362 return 0; 10363 } 10364 _ACEOF 10365 if ac_fn_c_try_compile "$LINENO"; then : 10366 10367 ac_have_as_lzcnt=yes 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10369 $as_echo "yes" >&6; } 10370 10371 else 10372 10373 ac_have_as_lzcnt=no 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10375 $as_echo "no" >&6; } 10376 10377 fi 10378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10379 10380 if test x$ac_have_as_lzcnt = xyes; then 10381 BUILD_LZCNT_TESTS_TRUE= 10382 BUILD_LZCNT_TESTS_FALSE='#' 10383 else 10384 BUILD_LZCNT_TESTS_TRUE='#' 10385 BUILD_LZCNT_TESTS_FALSE= 10386 fi 10387 10388 10389 10390 # does the x86/amd64 assembler understand the LOOPNEL instruction? 10391 # Note, this doesn't generate a C-level symbol. It generates a 10392 # automake-level symbol (BUILD_LOOPNEL_TESTS), used in test Makefile.am's 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'loopnel'" >&5 10394 $as_echo_n "checking if x86/amd64 assembler supports 'loopnel'... " >&6; } 10395 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397 /* end confdefs.h. */ 10398 10399 int 10400 main () 10401 { 10402 10403 do { 10404 __asm__ __volatile__("1: loopnel 1b\n"); 10405 } while (0) 10406 10407 ; 10408 return 0; 10409 } 10410 _ACEOF 10411 if ac_fn_c_try_compile "$LINENO"; then : 10412 10413 ac_have_as_loopnel=yes 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10415 $as_echo "yes" >&6; } 10416 10417 else 10418 10419 ac_have_as_loopnel=no 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10421 $as_echo "no" >&6; } 10422 10423 fi 10424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10425 10426 if test x$ac_have_as_loopnel = xyes; then 10427 BUILD_LOOPNEL_TESTS_TRUE= 10428 BUILD_LOOPNEL_TESTS_FALSE='#' 10429 else 10430 BUILD_LOOPNEL_TESTS_TRUE='#' 10431 BUILD_LOOPNEL_TESTS_FALSE= 10432 fi 10433 10434 10435 10436 # does the x86/amd64 assembler understand ADDR32 ? 10437 # Note, this doesn't generate a C-level symbol. It generates a 10438 # automake-level symbol (BUILD_ADDR32_TESTS), used in test Makefile.am's 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler supports 'addr32'" >&5 10440 $as_echo_n "checking if x86/amd64 assembler supports 'addr32'... " >&6; } 10441 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443 /* end confdefs.h. */ 10444 10445 int 10446 main () 10447 { 10448 10449 do { 10450 asm volatile ("addr32 rep movsb"); 10451 } while (0) 10452 10453 ; 10454 return 0; 10455 } 10456 _ACEOF 10457 if ac_fn_c_try_compile "$LINENO"; then : 10458 10459 ac_have_as_addr32=yes 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10461 $as_echo "yes" >&6; } 10462 10463 else 10464 10465 ac_have_as_addr32=no 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10467 $as_echo "no" >&6; } 10468 10469 fi 10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10471 10472 if test x$ac_have_as_addr32 = xyes; then 10473 BUILD_ADDR32_TESTS_TRUE= 10474 BUILD_ADDR32_TESTS_FALSE='#' 10475 else 10476 BUILD_ADDR32_TESTS_TRUE='#' 10477 BUILD_ADDR32_TESTS_FALSE= 10478 fi 10479 10480 10481 10482 # does the x86/amd64 assembler understand SSE 4.2 instructions? 10483 # Note, this doesn't generate a C-level symbol. It generates a 10484 # automake-level symbol (BUILD_SSE42_TESTS), used in test Makefile.am's 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks SSE4.2" >&5 10486 $as_echo_n "checking if x86/amd64 assembler speaks SSE4.2... " >&6; } 10487 10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10489 /* end confdefs.h. */ 10490 10491 int 10492 main () 10493 { 10494 10495 do { long long int x; 10496 __asm__ __volatile__( 10497 "crc32q %%r15,%%r15" : : : "r15" ); 10498 __asm__ __volatile__( 10499 "pblendvb (%%rcx), %%xmm11" : : : "memory", "xmm11"); 10500 __asm__ __volatile__( 10501 "aesdec %%xmm2, %%xmm1" : : : "xmm2", "xmm1"); } 10502 while (0) 10503 10504 ; 10505 return 0; 10506 } 10507 _ACEOF 10508 if ac_fn_c_try_compile "$LINENO"; then : 10509 10510 ac_have_as_sse42=yes 10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10512 $as_echo "yes" >&6; } 10513 10514 else 10515 10516 ac_have_as_sse42=no 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10518 $as_echo "no" >&6; } 10519 10520 fi 10521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10522 10523 if test x$ac_have_as_sse42 = xyes; then 10524 BUILD_SSE42_TESTS_TRUE= 10525 BUILD_SSE42_TESTS_FALSE='#' 10526 else 10527 BUILD_SSE42_TESTS_TRUE='#' 10528 BUILD_SSE42_TESTS_FALSE= 10529 fi 10530 10531 10532 10533 # does the x86/amd64 assembler understand AVX instructions? 10534 # Note, this doesn't generate a C-level symbol. It generates a 10535 # automake-level symbol (BUILD_AVX_TESTS), used in test Makefile.am's 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX" >&5 10537 $as_echo_n "checking if x86/amd64 assembler speaks AVX... " >&6; } 10538 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540 /* end confdefs.h. */ 10541 10542 int 10543 main () 10544 { 10545 10546 do { long long int x; 10547 __asm__ __volatile__( 10548 "vmovupd (%%rsp), %%ymm7" : : : "xmm7" ); 10549 __asm__ __volatile__( 10550 "vaddpd %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); } 10551 while (0) 10552 10553 ; 10554 return 0; 10555 } 10556 _ACEOF 10557 if ac_fn_c_try_compile "$LINENO"; then : 10558 10559 ac_have_as_avx=yes 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10561 $as_echo "yes" >&6; } 10562 10563 else 10564 10565 ac_have_as_avx=no 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10567 $as_echo "no" >&6; } 10568 10569 fi 10570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10571 10572 if test x$ac_have_as_avx = xyes; then 10573 BUILD_AVX_TESTS_TRUE= 10574 BUILD_AVX_TESTS_FALSE='#' 10575 else 10576 BUILD_AVX_TESTS_TRUE='#' 10577 BUILD_AVX_TESTS_FALSE= 10578 fi 10579 10580 10581 10582 # does the x86/amd64 assembler understand AVX2 instructions? 10583 # Note, this doesn't generate a C-level symbol. It generates a 10584 # automake-level symbol (BUILD_AVX2_TESTS), used in test Makefile.am's 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks AVX2" >&5 10586 $as_echo_n "checking if x86/amd64 assembler speaks AVX2... " >&6; } 10587 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589 /* end confdefs.h. */ 10590 10591 int 10592 main () 10593 { 10594 10595 do { long long int x; 10596 __asm__ __volatile__( 10597 "vpsravd (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" ); 10598 __asm__ __volatile__( 10599 "vpaddb %%ymm6,%%ymm7,%%ymm8" : : : "xmm6","xmm7","xmm8"); } 10600 while (0) 10601 10602 ; 10603 return 0; 10604 } 10605 _ACEOF 10606 if ac_fn_c_try_compile "$LINENO"; then : 10607 10608 ac_have_as_avx2=yes 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10610 $as_echo "yes" >&6; } 10611 10612 else 10613 10614 ac_have_as_avx2=no 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10616 $as_echo "no" >&6; } 10617 10618 fi 10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10620 10621 if test x$ac_have_as_avx2 = xyes; then 10622 BUILD_AVX2_TESTS_TRUE= 10623 BUILD_AVX2_TESTS_FALSE='#' 10624 else 10625 BUILD_AVX2_TESTS_TRUE='#' 10626 BUILD_AVX2_TESTS_FALSE= 10627 fi 10628 10629 10630 10631 # does the x86/amd64 assembler understand TSX instructions and 10632 # the XACQUIRE/XRELEASE prefixes? 10633 # Note, this doesn't generate a C-level symbol. It generates a 10634 # automake-level symbol (BUILD_TSX_TESTS), used in test Makefile.am's 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks TSX" >&5 10636 $as_echo_n "checking if x86/amd64 assembler speaks TSX... " >&6; } 10637 10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10639 /* end confdefs.h. */ 10640 10641 int 10642 main () 10643 { 10644 10645 do { 10646 __asm__ __volatile__( 10647 " xbegin Lfoo \n\t" 10648 "Lfoo: xend \n\t" 10649 " xacquire lock incq 0(%rsp) \n\t" 10650 " xrelease lock incq 0(%rsp) \n" 10651 ); 10652 } while (0) 10653 10654 ; 10655 return 0; 10656 } 10657 _ACEOF 10658 if ac_fn_c_try_compile "$LINENO"; then : 10659 10660 ac_have_as_tsx=yes 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10662 $as_echo "yes" >&6; } 10663 10664 else 10665 10666 ac_have_as_tsx=no 10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10668 $as_echo "no" >&6; } 10669 10670 fi 10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10672 10673 if test x$ac_have_as_tsx = xyes; then 10674 BUILD_TSX_TESTS_TRUE= 10675 BUILD_TSX_TESTS_FALSE='#' 10676 else 10677 BUILD_TSX_TESTS_TRUE='#' 10678 BUILD_TSX_TESTS_FALSE= 10679 fi 10680 10681 10682 10683 # does the x86/amd64 assembler understand BMI1 and BMI2 instructions? 10684 # Note, this doesn't generate a C-level symbol. It generates a 10685 # automake-level symbol (BUILD_BMI_TESTS), used in test Makefile.am's 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks BMI1 and BMI2" >&5 10687 $as_echo_n "checking if x86/amd64 assembler speaks BMI1 and BMI2... " >&6; } 10688 10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10690 /* end confdefs.h. */ 10691 10692 int 10693 main () 10694 { 10695 10696 do { unsigned int h, l; 10697 __asm__ __volatile__( "mulx %rax,%rcx,%r8" ); 10698 __asm__ __volatile__( 10699 "andn %2, %1, %0" : "=r" (h) : "r" (0x1234567), "r" (0x7654321) ); 10700 __asm__ __volatile__( 10701 "movl %2, %%edx; mulx %3, %1, %0" : "=r" (h), "=r" (l) : "g" (0x1234567), "rm" (0x7654321) : "edx" ); } 10702 while (0) 10703 10704 ; 10705 return 0; 10706 } 10707 _ACEOF 10708 if ac_fn_c_try_compile "$LINENO"; then : 10709 10710 ac_have_as_bmi=yes 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10712 $as_echo "yes" >&6; } 10713 10714 else 10715 10716 ac_have_as_bmi=no 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10718 $as_echo "no" >&6; } 10719 10720 fi 10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10722 10723 if test x$ac_have_as_bmi = xyes; then 10724 BUILD_BMI_TESTS_TRUE= 10725 BUILD_BMI_TESTS_FALSE='#' 10726 else 10727 BUILD_BMI_TESTS_TRUE='#' 10728 BUILD_BMI_TESTS_FALSE= 10729 fi 10730 10731 10732 10733 # does the x86/amd64 assembler understand FMA instructions? 10734 # Note, this doesn't generate a C-level symbol. It generates a 10735 # automake-level symbol (BUILD_FMA_TESTS), used in test Makefile.am's 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks FMA" >&5 10737 $as_echo_n "checking if x86/amd64 assembler speaks FMA... " >&6; } 10738 10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740 /* end confdefs.h. */ 10741 10742 int 10743 main () 10744 { 10745 10746 do { unsigned int h, l; 10747 __asm__ __volatile__( 10748 "vfmadd132ps (%%rsp), %%ymm8, %%ymm7" : : : "xmm7", "xmm8" ); 10749 __asm__ __volatile__( 10750 "vfnmsub231sd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" ); 10751 __asm__ __volatile__( 10752 "vfmsubadd213pd (%%rsp), %%xmm8, %%xmm7" : : : "xmm7", "xmm8" ); } 10753 while (0) 10754 10755 ; 10756 return 0; 10757 } 10758 _ACEOF 10759 if ac_fn_c_try_compile "$LINENO"; then : 10760 10761 ac_have_as_fma=yes 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10763 $as_echo "yes" >&6; } 10764 10765 else 10766 10767 ac_have_as_fma=no 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10769 $as_echo "no" >&6; } 10770 10771 fi 10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10773 10774 if test x$ac_have_as_fma = xyes; then 10775 BUILD_FMA_TESTS_TRUE= 10776 BUILD_FMA_TESTS_FALSE='#' 10777 else 10778 BUILD_FMA_TESTS_TRUE='#' 10779 BUILD_FMA_TESTS_FALSE= 10780 fi 10781 10782 10783 10784 # does the amd64 assembler understand MPX instructions? 10785 # Note, this doesn't generate a C-level symbol. It generates a 10786 # automake-level symbol (BUILD_MPX_TESTS), used in test Makefile.am's 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the MPX instructions" >&5 10788 $as_echo_n "checking if amd64 assembler knows the MPX instructions... " >&6; } 10789 10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10791 /* end confdefs.h. */ 10792 10793 int 10794 main () 10795 { 10796 10797 do { 10798 asm ("bndmov %bnd0,(%rsp)"); 10799 asm ("bndldx 3(%rbx,%rdx), %bnd2"); 10800 asm ("bnd call foo\n" 10801 bnd jmp end\n" 10802 foo: bnd ret\n" 10803 end: nop"); 10804 } while (0) 10805 10806 ; 10807 return 0; 10808 } 10809 _ACEOF 10810 if ac_fn_c_try_compile "$LINENO"; then : 10811 10812 ac_have_as_mpx=yes 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10814 $as_echo "yes" >&6; } 10815 10816 else 10817 10818 ac_have_as_mpx=no 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10820 $as_echo "no" >&6; } 10821 10822 fi 10823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10824 10825 if test x$ac_have_as_mpx = xyes; then 10826 BUILD_MPX_TESTS_TRUE= 10827 BUILD_MPX_TESTS_FALSE='#' 10828 else 10829 BUILD_MPX_TESTS_TRUE='#' 10830 BUILD_MPX_TESTS_FALSE= 10831 fi 10832 10833 10834 10835 # does the amd64 assembler understand ADX instructions? 10836 # Note, this doesn't generate a C-level symbol. It generates a 10837 # automake-level symbol (BUILD_ADX_TESTS), used in test Makefile.am's 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if amd64 assembler knows the ADX instructions" >&5 10839 $as_echo_n "checking if amd64 assembler knows the ADX instructions... " >&6; } 10840 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842 /* end confdefs.h. */ 10843 10844 int 10845 main () 10846 { 10847 10848 do { 10849 asm ("adcxq %r14,%r8"); 10850 } while (0) 10851 10852 ; 10853 return 0; 10854 } 10855 _ACEOF 10856 if ac_fn_c_try_compile "$LINENO"; then : 10857 10858 ac_have_as_adx=yes 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10860 $as_echo "yes" >&6; } 10861 10862 else 10863 10864 ac_have_as_adx=no 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10866 $as_echo "no" >&6; } 10867 10868 fi 10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10870 10871 if test x$ac_have_as_adx = xyes; then 10872 BUILD_ADX_TESTS_TRUE= 10873 BUILD_ADX_TESTS_FALSE='#' 10874 else 10875 BUILD_ADX_TESTS_TRUE='#' 10876 BUILD_ADX_TESTS_FALSE= 10877 fi 10878 10879 10880 10881 # Does the C compiler support the "ifunc" attribute 10882 # Note, this doesn't generate a C-level symbol. It generates a 10883 # automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's 10884 # does the x86/amd64 assembler understand MOVBE? 10885 # Note, this doesn't generate a C-level symbol. It generates a 10886 # automake-level symbol (BUILD_MOVBE_TESTS), used in test Makefile.am's 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler knows the MOVBE insn" >&5 10888 $as_echo_n "checking if x86/amd64 assembler knows the MOVBE insn... " >&6; } 10889 10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10891 /* end confdefs.h. */ 10892 10893 int 10894 main () 10895 { 10896 10897 do { long long int x; 10898 __asm__ __volatile__( 10899 "movbe (%%rsp), %%r15" : : : "memory", "r15" ); } 10900 while (0) 10901 10902 ; 10903 return 0; 10904 } 10905 _ACEOF 10906 if ac_fn_c_try_compile "$LINENO"; then : 10907 10908 ac_have_as_movbe=yes 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10910 $as_echo "yes" >&6; } 10911 10912 else 10913 10914 ac_have_as_movbe=no 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10916 $as_echo "no" >&6; } 10917 10918 fi 10919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10920 10921 if test x$ac_have_as_movbe = xyes; then 10922 BUILD_MOVBE_TESTS_TRUE= 10923 BUILD_MOVBE_TESTS_FALSE='#' 10924 else 10925 BUILD_MOVBE_TESTS_TRUE='#' 10926 BUILD_MOVBE_TESTS_FALSE= 10927 fi 10928 10929 10930 10931 # Does the C compiler support the "ifunc" attribute 10932 # Note, this doesn't generate a C-level symbol. It generates a 10933 # automake-level symbol (BUILD_IFUNC_TESTS), used in test Makefile.am's 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the ifunc attribute" >&5 10935 $as_echo_n "checking if gcc supports the ifunc attribute... " >&6; } 10936 10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938 /* end confdefs.h. */ 10939 10940 static void mytest(void) {} 10941 10942 static void (*resolve_test(void))(void) 10943 { 10944 return (void (*)(void))&mytest; 10945 } 10946 10947 void test(void) __attribute__((ifunc("resolve_test"))); 10948 10949 int main() 10950 { 10951 test(); 10952 return 0; 10953 } 10954 10955 _ACEOF 10956 if ac_fn_c_try_link "$LINENO"; then : 10957 10958 ac_have_ifunc_attr=yes 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10960 $as_echo "yes" >&6; } 10961 10962 else 10963 10964 ac_have_ifunc_attr=no 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10966 $as_echo "no" >&6; } 10967 10968 fi 10969 rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971 10972 if test x$ac_have_ifunc_attr = xyes; then 10973 BUILD_IFUNC_TESTS_TRUE= 10974 BUILD_IFUNC_TESTS_FALSE='#' 10975 else 10976 BUILD_IFUNC_TESTS_TRUE='#' 10977 BUILD_IFUNC_TESTS_FALSE= 10978 fi 10979 10980 10981 # Does the C compiler support the armv8 crc feature flag 10982 # Note, this doesn't generate a C-level symbol. It generates a 10983 # automake-level symbol (BUILD_ARMV8_CRC_TESTS), used in test Makefile.am's 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports the armv8 crc feature flag" >&5 10985 $as_echo_n "checking if gcc supports the armv8 crc feature flag... " >&6; } 10986 10987 save_CFLAGS="$CFLAGS" 10988 CFLAGS="$CFLAGS -march=armv8-a+crc -Werror" 10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10990 /* end confdefs.h. */ 10991 10992 int main() 10993 { 10994 return 0; 10995 } 10996 10997 _ACEOF 10998 if ac_fn_c_try_compile "$LINENO"; then : 10999 11000 ac_have_armv8_crc_feature=yes 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11002 $as_echo "yes" >&6; } 11003 11004 else 11005 11006 ac_have_armv8_crc_feature=no 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11008 $as_echo "no" >&6; } 11009 11010 fi 11011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11012 CFLAGS="$save_CFLAGS" 11013 11014 if test x$ac_have_armv8_crc_feature = xyes; then 11015 BUILD_ARMV8_CRC_TESTS_TRUE= 11016 BUILD_ARMV8_CRC_TESTS_FALSE='#' 11017 else 11018 BUILD_ARMV8_CRC_TESTS_TRUE='#' 11019 BUILD_ARMV8_CRC_TESTS_FALSE= 11020 fi 11021 11022 11023 11024 # XXX JRS 2010 Oct 13: what is this for? For sure, we don't need this 11025 # when building the tool executables. I think we should get rid of it. 11026 # 11027 # Check for TLS support in the compiler and linker 11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029 /* end confdefs.h. */ 11030 static __thread int foo; 11031 int 11032 main () 11033 { 11034 return foo; 11035 ; 11036 return 0; 11037 } 11038 _ACEOF 11039 if ac_fn_c_try_link "$LINENO"; then : 11040 vg_cv_linktime_tls=yes 11041 else 11042 vg_cv_linktime_tls=no 11043 fi 11044 rm -f core conftest.err conftest.$ac_objext \ 11045 conftest$ac_exeext conftest.$ac_ext 11046 # Native compilation: check whether running a program using TLS succeeds. 11047 # Linking only is not sufficient -- e.g. on Red Hat 7.3 linking TLS programs 11048 # succeeds but running programs using TLS fails. 11049 # Cross-compiling: check whether linking a program using TLS succeeds. 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5 11051 $as_echo_n "checking for TLS support... " >&6; } 11052 if ${vg_cv_tls+:} false; then : 11053 $as_echo_n "(cached) " >&6 11054 else 11055 # Check whether --enable-tls was given. 11056 if test "${enable_tls+set}" = set; then : 11057 enableval=$enable_tls; vg_cv_tls=$enableval 11058 else 11059 if test "$cross_compiling" = yes; then : 11060 vg_cv_tls=$vg_cv_linktime_tls 11061 else 11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063 /* end confdefs.h. */ 11064 static __thread int foo; 11065 int 11066 main () 11067 { 11068 return foo; 11069 ; 11070 return 0; 11071 } 11072 _ACEOF 11073 if ac_fn_c_try_run "$LINENO"; then : 11074 vg_cv_tls=yes 11075 else 11076 vg_cv_tls=no 11077 fi 11078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11079 conftest.$ac_objext conftest.beam conftest.$ac_ext 11080 fi 11081 11082 fi 11083 11084 fi 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vg_cv_tls" >&5 11086 $as_echo "$vg_cv_tls" >&6; } 11087 11088 if test "$vg_cv_tls" = yes -a $is_clang != applellvm; then 11089 11090 $as_echo "#define HAVE_TLS 1" >>confdefs.h 11091 11092 fi 11093 11094 11095 #---------------------------------------------------------------------------- 11096 # Solaris-specific checks. 11097 #---------------------------------------------------------------------------- 11098 11099 if test "$VGCONF_OS" = "solaris" ; then 11100 for ac_header in sys/lgrp_user_impl.h 11101 do : 11102 ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user_impl.h" "ac_cv_header_sys_lgrp_user_impl_h" "$ac_includes_default" 11103 if test "x$ac_cv_header_sys_lgrp_user_impl_h" = xyes; then : 11104 cat >>confdefs.h <<_ACEOF 11105 #define HAVE_SYS_LGRP_USER_IMPL_H 1 11106 _ACEOF 11107 11108 fi 11109 11110 done 11111 11112 11113 # Solaris-specific check determining if the Sun Studio Assembler is used to 11114 # build Valgrind. The test checks if the x86/amd64 assembler understands the 11115 # cmovl.l instruction, if yes then it's Sun Assembler. 11116 # 11117 # C-level symbol: none 11118 # Automake-level symbol: SOLARIS_SUN_STUDIO_AS 11119 # 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)" >&5 11121 $as_echo_n "checking if x86/amd64 assembler speaks cmovl.l (Solaris-specific)... " >&6; } 11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11123 /* end confdefs.h. */ 11124 11125 11126 int 11127 main () 11128 { 11129 11130 __asm__ __volatile__("cmovl.l %edx, %eax"); 11131 11132 ; 11133 return 0; 11134 } 11135 _ACEOF 11136 if ac_fn_c_try_compile "$LINENO"; then : 11137 11138 solaris_have_sun_studio_as=yes 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11140 $as_echo "yes" >&6; } 11141 11142 else 11143 11144 solaris_have_sun_studio_as=no 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146 $as_echo "no" >&6; } 11147 11148 fi 11149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11150 if test x$solaris_have_sun_studio_as = xyes; then 11151 SOLARIS_SUN_STUDIO_AS_TRUE= 11152 SOLARIS_SUN_STUDIO_AS_FALSE='#' 11153 else 11154 SOLARIS_SUN_STUDIO_AS_TRUE='#' 11155 SOLARIS_SUN_STUDIO_AS_FALSE= 11156 fi 11157 11158 11159 # Solaris-specific check determining if symbols __xpg4 and __xpg6 11160 # are present in linked shared libraries when gcc is invoked with -std=gnu99. 11161 # See solaris/vgpreload-solaris.mapfile for details. 11162 # gcc on older Solaris instructs linker to include these symbols, 11163 # gcc on illumos and newer Solaris does not. 11164 # 11165 # C-level symbol: none 11166 # Automake-level symbol: SOLARIS_XPG_SYMBOLS_PRESENT 11167 # 11168 save_CFLAGS="$CFLAGS" 11169 CFLAGS="$CFLAGS -std=gnu99" 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if xpg symbols are present with -std=gnu99 (Solaris-specific)" >&5 11171 $as_echo_n "checking if xpg symbols are present with -std=gnu99 (Solaris-specific)... " >&6; } 11172 temp_dir=$( /usr/bin/mktemp -d ) 11173 cat <<_ACEOF >${temp_dir}/mylib.c 11174 #include <stdio.h> 11175 int myfunc(void) { printf("LaPutyka\n"); } 11176 _ACEOF 11177 ${CC} ${CFLAGS} -fpic -shared -o ${temp_dir}/mylib.so ${temp_dir}/mylib.c 11178 xpg_present=$( /usr/bin/nm ${temp_dir}/mylib.so | ${EGREP} '(__xpg4|__xpg6)' ) 11179 if test "x${xpg_present}" = "x" ; then 11180 solaris_xpg_symbols_present=no 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11182 $as_echo "no" >&6; } 11183 else 11184 solaris_xpg_symbols_present=yes 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11186 $as_echo "yes" >&6; } 11187 fi 11188 rm -rf ${temp_dir} 11189 if test x$solaris_xpg_symbols_present = xyes; then 11190 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE= 11191 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#' 11192 else 11193 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#' 11194 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE= 11195 fi 11196 11197 CFLAGS="$save_CFLAGS" 11198 11199 11200 # Solaris-specific check determining if gcc enables largefile support by 11201 # default for 32-bit executables. If it does, then set SOLARIS_UNDEF_LARGESOURCE 11202 # variable with gcc flags which disable it. 11203 # 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc enables largefile support for 32-bit apps (Solaris-specific)" >&5 11205 $as_echo_n "checking if gcc enables largefile support for 32-bit apps (Solaris-specific)... " >&6; } 11206 save_CFLAGS="$CFLAGS" 11207 CFLAGS="$CFLAGS -m32" 11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11209 /* end confdefs.h. */ 11210 11211 int 11212 main () 11213 { 11214 11215 return _LARGEFILE_SOURCE; 11216 11217 ; 11218 return 0; 11219 } 11220 _ACEOF 11221 if ac_fn_c_try_compile "$LINENO"; then : 11222 11223 SOLARIS_UNDEF_LARGESOURCE="-U_LARGEFILE_SOURCE -U_LARGEFILE64_SOURCE -U_FILE_OFFSET_BITS" 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11225 $as_echo "yes" >&6; } 11226 11227 else 11228 11229 SOLARIS_UNDEF_LARGESOURCE="" 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11231 $as_echo "no" >&6; } 11232 11233 fi 11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11235 CFLAGS=$safe_CFLAGS 11236 11237 11238 11239 # Solaris-specific check determining if /proc/self/cmdline 11240 # or /proc/<pid>/cmdline is supported. 11241 # 11242 # C-level symbol: SOLARIS_PROC_CMDLINE 11243 # Automake-level symbol: SOLARIS_PROC_CMDLINE 11244 # 11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/cmdline" >&5 11246 $as_echo_n "checking for /proc/self/cmdline... " >&6; } 11247 if ${ac_cv_file__proc_self_cmdline+:} false; then : 11248 $as_echo_n "(cached) " >&6 11249 else 11250 test "$cross_compiling" = yes && 11251 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11252 if test -r "/proc/self/cmdline"; then 11253 ac_cv_file__proc_self_cmdline=yes 11254 else 11255 ac_cv_file__proc_self_cmdline=no 11256 fi 11257 fi 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_cmdline" >&5 11259 $as_echo "$ac_cv_file__proc_self_cmdline" >&6; } 11260 if test "x$ac_cv_file__proc_self_cmdline" = xyes; then : 11261 11262 solaris_proc_cmdline=yes 11263 11264 $as_echo "#define SOLARIS_PROC_CMDLINE 1" >>confdefs.h 11265 11266 11267 else 11268 11269 solaris_proc_cmdline=no 11270 11271 fi 11272 11273 if test x$solaris_proc_cmdline = xyes; then 11274 SOLARIS_PROC_CMDLINE_TRUE= 11275 SOLARIS_PROC_CMDLINE_FALSE='#' 11276 else 11277 SOLARIS_PROC_CMDLINE_TRUE='#' 11278 SOLARIS_PROC_CMDLINE_FALSE= 11279 fi 11280 11281 11282 11283 # Solaris-specific check determining default platform for the Valgrind launcher. 11284 # Used in case the launcher cannot select platform by looking at the client 11285 # image (for example because the executable is a shell script). 11286 # 11287 # C-level symbol: SOLARIS_LAUNCHER_DEFAULT_PLATFORM 11288 # Automake-level symbol: none 11289 # 11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default platform of Valgrind launcher (Solaris-specific)" >&5 11291 $as_echo_n "checking for default platform of Valgrind launcher (Solaris-specific)... " >&6; } 11292 # Get the ELF class of /bin/sh first. 11293 if ! test -f /bin/sh; then 11294 as_fn_error $? "Shell interpreter \`/bin/sh' not found." "$LINENO" 5 11295 fi 11296 elf_class=$( /usr/bin/file /bin/sh | sed -n 's/.*ELF \(..\)-bit.*/\1/p' ) 11297 case "$elf_class" in 11298 64) 11299 default_arch="$VGCONF_ARCH_PRI"; 11300 ;; 11301 32) 11302 if test "x$VGCONF_ARCH_SEC" != "x"; then 11303 default_arch="$VGCONF_ARCH_SEC" 11304 else 11305 default_arch="$VGCONF_ARCH_PRI"; 11306 fi 11307 ;; 11308 *) 11309 as_fn_error $? "Cannot determine ELF class of \`/bin/sh'." "$LINENO" 5 11310 ;; 11311 esac 11312 default_platform="$default_arch-$VGCONF_OS" 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_platform" >&5 11314 $as_echo "$default_platform" >&6; } 11315 11316 cat >>confdefs.h <<_ACEOF 11317 #define SOLARIS_LAUNCHER_DEFAULT_PLATFORM "$default_platform" 11318 _ACEOF 11319 11320 11321 11322 # Solaris-specific check determining if the old syscalls are available. 11323 # 11324 # C-level symbol: SOLARIS_OLD_SYSCALLS 11325 # Automake-level symbol: SOLARIS_OLD_SYSCALLS 11326 # 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the old Solaris syscalls (Solaris-specific)" >&5 11328 $as_echo_n "checking for the old Solaris syscalls (Solaris-specific)... " >&6; } 11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11330 /* end confdefs.h. */ 11331 11332 #include <sys/syscall.h> 11333 11334 int 11335 main () 11336 { 11337 11338 return !SYS_open; 11339 11340 ; 11341 return 0; 11342 } 11343 _ACEOF 11344 if ac_fn_c_try_compile "$LINENO"; then : 11345 11346 solaris_old_syscalls=yes 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11348 $as_echo "yes" >&6; } 11349 11350 $as_echo "#define SOLARIS_OLD_SYSCALLS 1" >>confdefs.h 11351 11352 11353 else 11354 11355 solaris_old_syscalls=no 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11357 $as_echo "no" >&6; } 11358 11359 fi 11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11361 if test x$solaris_old_syscalls = xyes; then 11362 SOLARIS_OLD_SYSCALLS_TRUE= 11363 SOLARIS_OLD_SYSCALLS_FALSE='#' 11364 else 11365 SOLARIS_OLD_SYSCALLS_TRUE='#' 11366 SOLARIS_OLD_SYSCALLS_FALSE= 11367 fi 11368 11369 11370 11371 # Solaris-specific check determining if the new accept() syscall is available. 11372 # 11373 # Old syscall: 11374 # int accept(int sock, struct sockaddr *name, socklen_t *namelenp, 11375 # int version); 11376 # 11377 # New syscall (available on illumos): 11378 # int accept(int sock, struct sockaddr *name, socklen_t *namelenp, 11379 # int version, int flags); 11380 # 11381 # If the old syscall is present then the following syscall will fail with 11382 # ENOTSOCK (because file descriptor 0 is not a socket), if the new syscall is 11383 # available then it will fail with EINVAL (because the flags parameter is 11384 # invalid). 11385 # 11386 # C-level symbol: SOLARIS_NEW_ACCEPT_SYSCALL 11387 # Automake-level symbol: none 11388 # 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`accept' syscall (Solaris-specific)" >&5 11390 $as_echo_n "checking for the new \`accept' syscall (Solaris-specific)... " >&6; } 11391 if test "$cross_compiling" = yes; then : 11392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11394 as_fn_error $? "cannot run test program while cross compiling 11395 See \`config.log' for more details" "$LINENO" 5; } 11396 else 11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11398 /* end confdefs.h. */ 11399 11400 #include <sys/syscall.h> 11401 #include <errno.h> 11402 11403 int 11404 main () 11405 { 11406 11407 errno = 0; 11408 syscall(SYS_accept, 0, 0, 0, 0, -1); 11409 return !(errno == EINVAL); 11410 11411 ; 11412 return 0; 11413 } 11414 _ACEOF 11415 if ac_fn_c_try_run "$LINENO"; then : 11416 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11418 $as_echo "yes" >&6; } 11419 11420 $as_echo "#define SOLARIS_NEW_ACCEPT_SYSCALL 1" >>confdefs.h 11421 11422 11423 else 11424 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11426 $as_echo "no" >&6; } 11427 11428 fi 11429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11430 conftest.$ac_objext conftest.beam conftest.$ac_ext 11431 fi 11432 11433 11434 11435 # Solaris-specific check determining if the new illumos pipe() syscall is 11436 # available. 11437 # 11438 # Old syscall: 11439 # longlong_t pipe(); 11440 # 11441 # New syscall (available on illumos): 11442 # int pipe(intptr_t arg, int flags); 11443 # 11444 # If the old syscall is present then the following call will succeed, if the 11445 # new syscall is available then it will fail with EFAULT (because address 0 11446 # cannot be accessed). 11447 # 11448 # C-level symbol: SOLARIS_NEW_PIPE_SYSCALL 11449 # Automake-level symbol: none 11450 # 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`pipe' syscall (Solaris-specific)" >&5 11452 $as_echo_n "checking for the new \`pipe' syscall (Solaris-specific)... " >&6; } 11453 if test "$cross_compiling" = yes; then : 11454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11456 as_fn_error $? "cannot run test program while cross compiling 11457 See \`config.log' for more details" "$LINENO" 5; } 11458 else 11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460 /* end confdefs.h. */ 11461 11462 #include <sys/syscall.h> 11463 #include <errno.h> 11464 11465 int 11466 main () 11467 { 11468 11469 errno = 0; 11470 syscall(SYS_pipe, 0, 0); 11471 return !(errno == EFAULT); 11472 11473 ; 11474 return 0; 11475 } 11476 _ACEOF 11477 if ac_fn_c_try_run "$LINENO"; then : 11478 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11480 $as_echo "yes" >&6; } 11481 11482 $as_echo "#define SOLARIS_NEW_PIPE_SYSCALL 1" >>confdefs.h 11483 11484 11485 else 11486 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11488 $as_echo "no" >&6; } 11489 11490 fi 11491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11492 conftest.$ac_objext conftest.beam conftest.$ac_ext 11493 fi 11494 11495 11496 11497 # Solaris-specific check determining if the new lwp_sigqueue() syscall is 11498 # available. 11499 # 11500 # Old syscall: 11501 # int lwp_kill(id_t lwpid, int sig); 11502 # 11503 # New syscall (available on Solaris 11): 11504 # int lwp_sigqueue(id_t lwpid, int sig, void *value, 11505 # int si_code, timespec_t *timeout); 11506 # 11507 # C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL 11508 # Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL 11509 # 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_sigqueue' syscall (Solaris-specific)" >&5 11511 $as_echo_n "checking for the new \`lwp_sigqueue' syscall (Solaris-specific)... " >&6; } 11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11513 /* end confdefs.h. */ 11514 11515 #include <sys/syscall.h> 11516 11517 int 11518 main () 11519 { 11520 11521 return !SYS_lwp_sigqueue; 11522 11523 ; 11524 return 0; 11525 } 11526 _ACEOF 11527 if ac_fn_c_try_compile "$LINENO"; then : 11528 11529 solaris_lwp_sigqueue_syscall=yes 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11531 $as_echo "yes" >&6; } 11532 11533 $as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL 1" >>confdefs.h 11534 11535 11536 else 11537 11538 solaris_lwp_sigqueue_syscall=no 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11540 $as_echo "no" >&6; } 11541 11542 fi 11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11544 if test x$solaris_lwp_sigqueue_syscall = xyes; then 11545 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE= 11546 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#' 11547 else 11548 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#' 11549 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE= 11550 fi 11551 11552 11553 11554 # Solaris-specific check determining if the lwp_sigqueue() syscall 11555 # takes both pid and thread id arguments or just thread id. 11556 # 11557 # Old syscall (available on Solaris 11.x): 11558 # int lwp_sigqueue(id_t lwpid, int sig, void *value, 11559 # int si_code, timespec_t *timeout); 11560 # 11561 # New syscall (available on Solaris 12): 11562 # int lwp_sigqueue(pid_t pid, id_t lwpid, int sig, void *value, 11563 # int si_code, timespec_t *timeout); 11564 # 11565 # If the old syscall is present then the following syscall will fail with 11566 # EINVAL (because signal is out of range); if the new syscall is available 11567 # then it will fail with ESRCH (because it would not find such thread in the 11568 # current process). 11569 # 11570 # C-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 11571 # Automake-level symbol: SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 11572 # 11573 11574 if test -z "$SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE"; then : 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)" >&5 11576 $as_echo_n "checking if the \`lwp_sigqueue' syscall accepts pid (Solaris-specific)... " >&6; } 11577 if test "$cross_compiling" = yes; then : 11578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11580 as_fn_error $? "cannot run test program while cross compiling 11581 See \`config.log' for more details" "$LINENO" 5; } 11582 else 11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11584 /* end confdefs.h. */ 11585 11586 #include <sys/syscall.h> 11587 #include <errno.h> 11588 11589 int 11590 main () 11591 { 11592 11593 errno = 0; 11594 syscall(SYS_lwp_sigqueue, 0, 101, 0, 0, 0, 0); 11595 return !(errno == ESRCH); 11596 11597 ; 11598 return 0; 11599 } 11600 _ACEOF 11601 if ac_fn_c_try_run "$LINENO"; then : 11602 11603 solaris_lwp_sigqueue_syscall_takes_pid=yes 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11605 $as_echo "yes" >&6; } 11606 11607 $as_echo "#define SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID 1" >>confdefs.h 11608 11609 11610 else 11611 11612 solaris_lwp_sigqueue_syscall_takes_pid=no 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11614 $as_echo "no" >&6; } 11615 11616 fi 11617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11618 conftest.$ac_objext conftest.beam conftest.$ac_ext 11619 fi 11620 11621 if test x$solaris_lwp_sigqueue_syscall_takes_pid = xyes; then 11622 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE= 11623 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#' 11624 else 11625 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#' 11626 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE= 11627 fi 11628 11629 11630 else 11631 if test x = y; then 11632 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE= 11633 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#' 11634 else 11635 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#' 11636 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE= 11637 fi 11638 11639 11640 fi 11641 11642 11643 # Solaris-specific check determining if the new lwp_name() syscall is 11644 # available. 11645 # 11646 # New syscall (available on Solaris 11): 11647 # int lwp_name(int opcode, id_t lwpid, char *name, size_t len); 11648 # 11649 # C-level symbol: SOLARIS_LWP_NAME_SYSCALL 11650 # Automake-level symbol: SOLARIS_LWP_NAME_SYSCALL 11651 # 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`lwp_name' syscall (Solaris-specific)" >&5 11653 $as_echo_n "checking for the new \`lwp_name' syscall (Solaris-specific)... " >&6; } 11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11655 /* end confdefs.h. */ 11656 11657 #include <sys/syscall.h> 11658 11659 int 11660 main () 11661 { 11662 11663 return !SYS_lwp_name; 11664 11665 ; 11666 return 0; 11667 } 11668 _ACEOF 11669 if ac_fn_c_try_compile "$LINENO"; then : 11670 11671 solaris_lwp_name_syscall=yes 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11673 $as_echo "yes" >&6; } 11674 11675 $as_echo "#define SOLARIS_LWP_NAME_SYSCALL 1" >>confdefs.h 11676 11677 11678 else 11679 11680 solaris_lwp_name_syscall=no 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11682 $as_echo "no" >&6; } 11683 11684 fi 11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11686 if test x$solaris_lwp_name_syscall = xyes; then 11687 SOLARIS_LWP_NAME_SYSCALL_TRUE= 11688 SOLARIS_LWP_NAME_SYSCALL_FALSE='#' 11689 else 11690 SOLARIS_LWP_NAME_SYSCALL_TRUE='#' 11691 SOLARIS_LWP_NAME_SYSCALL_FALSE= 11692 fi 11693 11694 11695 11696 # Solaris-specific check determining if the new getrandom() syscall is 11697 # available. 11698 # 11699 # New syscall (available on Solaris 11): 11700 # int getrandom(void *buf, size_t buflen, uint_t flags); 11701 # 11702 # C-level symbol: SOLARIS_GETRANDOM_SYSCALL 11703 # Automake-level symbol: SOLARIS_GETRANDOM_SYSCALL 11704 # 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`getrandom' syscall (Solaris-specific)" >&5 11706 $as_echo_n "checking for the new \`getrandom' syscall (Solaris-specific)... " >&6; } 11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11708 /* end confdefs.h. */ 11709 11710 #include <sys/syscall.h> 11711 11712 int 11713 main () 11714 { 11715 11716 return !SYS_getrandom; 11717 11718 ; 11719 return 0; 11720 } 11721 _ACEOF 11722 if ac_fn_c_try_compile "$LINENO"; then : 11723 11724 solaris_getrandom_syscall=yes 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11726 $as_echo "yes" >&6; } 11727 11728 $as_echo "#define SOLARIS_GETRANDOM_SYSCALL 1" >>confdefs.h 11729 11730 11731 else 11732 11733 solaris_getrandom_syscall=no 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11735 $as_echo "no" >&6; } 11736 11737 fi 11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11739 if test x$solaris_getrandom_syscall = xyes; then 11740 SOLARIS_GETRANDOM_SYSCALL_TRUE= 11741 SOLARIS_GETRANDOM_SYSCALL_FALSE='#' 11742 else 11743 SOLARIS_GETRANDOM_SYSCALL_TRUE='#' 11744 SOLARIS_GETRANDOM_SYSCALL_FALSE= 11745 fi 11746 11747 11748 11749 # Solaris-specific check determining if the new zone() syscall subcodes 11750 # ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT are available. These subcodes 11751 # were added in Solaris 11 but are missing on illumos. 11752 # 11753 # C-level symbol: SOLARIS_ZONE_DEFUNCT 11754 # Automake-level symbol: SOLARIS_ZONE_DEFUNCT 11755 # 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)" >&5 11757 $as_echo_n "checking for ZONE_LIST_DEFUNCT and ZONE_GETATTR_DEFUNCT (Solaris-specific)... " >&6; } 11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759 /* end confdefs.h. */ 11760 11761 #include <sys/zone.h> 11762 11763 int 11764 main () 11765 { 11766 11767 return !(ZONE_LIST_DEFUNCT && ZONE_GETATTR_DEFUNCT); 11768 11769 ; 11770 return 0; 11771 } 11772 _ACEOF 11773 if ac_fn_c_try_compile "$LINENO"; then : 11774 11775 solaris_zone_defunct=yes 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11777 $as_echo "yes" >&6; } 11778 11779 $as_echo "#define SOLARIS_ZONE_DEFUNCT 1" >>confdefs.h 11780 11781 11782 else 11783 11784 solaris_zone_defunct=no 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11786 $as_echo "no" >&6; } 11787 11788 fi 11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11790 if test x$solaris_zone_defunct = xyes; then 11791 SOLARIS_ZONE_DEFUNCT_TRUE= 11792 SOLARIS_ZONE_DEFUNCT_FALSE='#' 11793 else 11794 SOLARIS_ZONE_DEFUNCT_TRUE='#' 11795 SOLARIS_ZONE_DEFUNCT_FALSE= 11796 fi 11797 11798 11799 11800 # Solaris-specific check determining if commands A_GETSTAT and A_SETSTAT 11801 # for auditon(2) subcode of the auditsys() syscall are available. 11802 # These commands are available in Solaris 11 and illumos but were removed 11803 # in Solaris 12. 11804 # 11805 # C-level symbol: SOLARIS_AUDITON_STAT 11806 # Automake-level symbol: SOLARIS_AUDITON_STAT 11807 # 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)" >&5 11809 $as_echo_n "checking for A_GETSTAT and A_SETSTAT auditon(2) commands (Solaris-specific)... " >&6; } 11810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11811 /* end confdefs.h. */ 11812 11813 #include <bsm/audit.h> 11814 11815 int 11816 main () 11817 { 11818 11819 return !(A_GETSTAT && A_SETSTAT); 11820 11821 ; 11822 return 0; 11823 } 11824 _ACEOF 11825 if ac_fn_c_try_compile "$LINENO"; then : 11826 11827 solaris_auditon_stat=yes 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11829 $as_echo "yes" >&6; } 11830 11831 $as_echo "#define SOLARIS_AUDITON_STAT 1" >>confdefs.h 11832 11833 11834 else 11835 11836 solaris_auditon_stat=no 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11838 $as_echo "no" >&6; } 11839 11840 fi 11841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11842 if test x$solaris_auditon_stat = xyes; then 11843 SOLARIS_AUDITON_STAT_TRUE= 11844 SOLARIS_AUDITON_STAT_FALSE='#' 11845 else 11846 SOLARIS_AUDITON_STAT_TRUE='#' 11847 SOLARIS_AUDITON_STAT_FALSE= 11848 fi 11849 11850 11851 11852 # Solaris-specific check determining if the new shmsys() syscall subcodes 11853 # IPC_XSTAT64, SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM are available. 11854 # These subcodes were added in Solaris 11 but are missing on illumos. 11855 # 11856 # C-level symbol: SOLARIS_SHM_NEW 11857 # Automake-level symbol: SOLARIS_SHM_NEW 11858 # 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)" >&5 11860 $as_echo_n "checking for SHMADV, SHM_ADV_GET, SHM_ADV_SET and SHMGET_OSM (Solaris-specific)... " >&6; } 11861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11862 /* end confdefs.h. */ 11863 11864 #include <sys/ipc_impl.h> 11865 #include <sys/shm.h> 11866 #include <sys/shm_impl.h> 11867 11868 int 11869 main () 11870 { 11871 11872 return !(IPC_XSTAT64 && SHMADV && SHM_ADV_GET && SHM_ADV_SET && SHMGET_OSM); 11873 11874 ; 11875 return 0; 11876 } 11877 _ACEOF 11878 if ac_fn_c_try_compile "$LINENO"; then : 11879 11880 solaris_shm_new=yes 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11882 $as_echo "yes" >&6; } 11883 11884 $as_echo "#define SOLARIS_SHM_NEW 1" >>confdefs.h 11885 11886 11887 else 11888 11889 solaris_shm_new=no 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891 $as_echo "no" >&6; } 11892 11893 fi 11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11895 if test x$solaris_shm_new = xyes; then 11896 SOLARIS_SHM_NEW_TRUE= 11897 SOLARIS_SHM_NEW_FALSE='#' 11898 else 11899 SOLARIS_SHM_NEW_TRUE='#' 11900 SOLARIS_SHM_NEW_FALSE= 11901 fi 11902 11903 11904 11905 # Solaris-specific check determining if prxregset_t is available. Illumos 11906 # currently does not define it on the x86 platform. 11907 # 11908 # C-level symbol: SOLARIS_PRXREGSET_T 11909 # Automake-level symbol: SOLARIS_PRXREGSET_T 11910 # 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`prxregset_t' type (Solaris-specific)" >&5 11912 $as_echo_n "checking for the \`prxregset_t' type (Solaris-specific)... " >&6; } 11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11914 /* end confdefs.h. */ 11915 11916 #include <sys/procfs_isa.h> 11917 11918 int 11919 main () 11920 { 11921 11922 return !sizeof(prxregset_t); 11923 11924 ; 11925 return 0; 11926 } 11927 _ACEOF 11928 if ac_fn_c_try_compile "$LINENO"; then : 11929 11930 solaris_prxregset_t=yes 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11932 $as_echo "yes" >&6; } 11933 11934 $as_echo "#define SOLARIS_PRXREGSET_T 1" >>confdefs.h 11935 11936 11937 else 11938 11939 solaris_prxregset_t=no 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11941 $as_echo "no" >&6; } 11942 11943 fi 11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11945 if test x$solaris_prxregset_t = xyes; then 11946 SOLARIS_PRXREGSET_T_TRUE= 11947 SOLARIS_PRXREGSET_T_FALSE='#' 11948 else 11949 SOLARIS_PRXREGSET_T_TRUE='#' 11950 SOLARIS_PRXREGSET_T_FALSE= 11951 fi 11952 11953 11954 11955 # Solaris-specific check determining if the new frealpathat() syscall is 11956 # available. 11957 # 11958 # New syscall (available on Solaris 11.1): 11959 # int frealpathat(int fd, char *path, char *buf, size_t buflen); 11960 # 11961 # C-level symbol: SOLARIS_FREALPATHAT_SYSCALL 11962 # Automake-level symbol: SOLARIS_FREALPATHAT_SYSCALL 11963 # 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`frealpathat' syscall (Solaris-specific)" >&5 11965 $as_echo_n "checking for the new \`frealpathat' syscall (Solaris-specific)... " >&6; } 11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11967 /* end confdefs.h. */ 11968 11969 #include <sys/syscall.h> 11970 11971 int 11972 main () 11973 { 11974 11975 return !SYS_frealpathat; 11976 11977 ; 11978 return 0; 11979 } 11980 _ACEOF 11981 if ac_fn_c_try_compile "$LINENO"; then : 11982 11983 solaris_frealpathat_syscall=yes 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11985 $as_echo "yes" >&6; } 11986 11987 $as_echo "#define SOLARIS_FREALPATHAT_SYSCALL 1" >>confdefs.h 11988 11989 11990 else 11991 11992 solaris_frealpathat_syscall=no 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11994 $as_echo "no" >&6; } 11995 11996 fi 11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11998 if test x$solaris_frealpathat_syscall = xyes; then 11999 SOLARIS_FREALPATHAT_SYSCALL_TRUE= 12000 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#' 12001 else 12002 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#' 12003 SOLARIS_FREALPATHAT_SYSCALL_FALSE= 12004 fi 12005 12006 12007 12008 # Solaris-specific check determining if the new uuidsys() syscall is 12009 # available. 12010 # 12011 # New syscall (available on newer Solaris): 12012 # int uuidsys(struct uuid *uuid); 12013 # 12014 # C-level symbol: SOLARIS_UUIDSYS_SYSCALL 12015 # Automake-level symbol: SOLARIS_UUIDSYS_SYSCALL 12016 # 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`uuidsys' syscall (Solaris-specific)" >&5 12018 $as_echo_n "checking for the new \`uuidsys' syscall (Solaris-specific)... " >&6; } 12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12020 /* end confdefs.h. */ 12021 12022 #include <sys/syscall.h> 12023 12024 int 12025 main () 12026 { 12027 12028 return !SYS_uuidsys; 12029 12030 ; 12031 return 0; 12032 } 12033 _ACEOF 12034 if ac_fn_c_try_compile "$LINENO"; then : 12035 12036 solaris_uuidsys_syscall=yes 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12038 $as_echo "yes" >&6; } 12039 12040 $as_echo "#define SOLARIS_UUIDSYS_SYSCALL 1" >>confdefs.h 12041 12042 12043 else 12044 12045 solaris_uuidsys_syscall=no 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12047 $as_echo "no" >&6; } 12048 12049 fi 12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12051 if test x$solaris_uuidsys_syscall = xyes; then 12052 SOLARIS_UUIDSYS_SYSCALL_TRUE= 12053 SOLARIS_UUIDSYS_SYSCALL_FALSE='#' 12054 else 12055 SOLARIS_UUIDSYS_SYSCALL_TRUE='#' 12056 SOLARIS_UUIDSYS_SYSCALL_FALSE= 12057 fi 12058 12059 12060 12061 # Solaris-specific check determining if the new labelsys() syscall subcode 12062 # TNDB_GET_TNIP is available. This subcode was added in Solaris 11 but is 12063 # missing on illumos. 12064 # 12065 # C-level symbol: SOLARIS_TNDB_GET_TNIP 12066 # Automake-level symbol: SOLARIS_TNDB_GET_TNIP 12067 # 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TNDB_GET_TNIP (Solaris-specific)" >&5 12069 $as_echo_n "checking for TNDB_GET_TNIP (Solaris-specific)... " >&6; } 12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12071 /* end confdefs.h. */ 12072 12073 #include <sys/tsol/tndb.h> 12074 12075 int 12076 main () 12077 { 12078 12079 return !TNDB_GET_TNIP; 12080 12081 ; 12082 return 0; 12083 } 12084 _ACEOF 12085 if ac_fn_c_try_compile "$LINENO"; then : 12086 12087 solaris_tndb_get_tnip=yes 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12089 $as_echo "yes" >&6; } 12090 12091 $as_echo "#define SOLARIS_TNDB_GET_TNIP 1" >>confdefs.h 12092 12093 12094 else 12095 12096 solaris_tndb_get_tnip=no 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12098 $as_echo "no" >&6; } 12099 12100 fi 12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12102 if test x$solaris_tndb_get_tnip = xyes; then 12103 SOLARIS_TNDB_GET_TNIP_TRUE= 12104 SOLARIS_TNDB_GET_TNIP_FALSE='#' 12105 else 12106 SOLARIS_TNDB_GET_TNIP_TRUE='#' 12107 SOLARIS_TNDB_GET_TNIP_FALSE= 12108 fi 12109 12110 12111 12112 # Solaris-specific check determining if the new labelsys() syscall opcodes 12113 # TSOL_GETCLEARANCE and TSOL_SETCLEARANCE are available. These opcodes were 12114 # added in Solaris 11 but are missing on illumos. 12115 # 12116 # C-level symbol: SOLARIS_TSOL_CLEARANCE 12117 # Automake-level symbol: SOLARIS_TSOL_CLEARANCE 12118 # 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)" >&5 12120 $as_echo_n "checking for TSOL_GETCLEARANCE and TSOL_SETCLEARANCE (Solaris-specific)... " >&6; } 12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12122 /* end confdefs.h. */ 12123 12124 #include <sys/tsol/tsyscall.h> 12125 12126 int 12127 main () 12128 { 12129 12130 return !(TSOL_GETCLEARANCE && TSOL_SETCLEARANCE); 12131 12132 ; 12133 return 0; 12134 } 12135 _ACEOF 12136 if ac_fn_c_try_compile "$LINENO"; then : 12137 12138 solaris_tsol_clearance=yes 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12140 $as_echo "yes" >&6; } 12141 12142 $as_echo "#define SOLARIS_TSOL_CLEARANCE 1" >>confdefs.h 12143 12144 12145 else 12146 12147 solaris_tsol_clearance=no 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12149 $as_echo "no" >&6; } 12150 12151 fi 12152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12153 if test x$solaris_tsol_clearance = xyes; then 12154 SOLARIS_TSOL_CLEARANCE_TRUE= 12155 SOLARIS_TSOL_CLEARANCE_FALSE='#' 12156 else 12157 SOLARIS_TSOL_CLEARANCE_TRUE='#' 12158 SOLARIS_TSOL_CLEARANCE_FALSE= 12159 fi 12160 12161 12162 12163 # Solaris-specific check determining if the new pset() syscall subcode 12164 # PSET_GET_NAME is available. This subcode was added in Solaris 12 but 12165 # is missing on illumos and Solaris 11. 12166 # 12167 # C-level symbol: SOLARIS_PSET_GET_NAME 12168 # Automake-level symbol: SOLARIS_PSET_GET_NAME 12169 # 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSET_GET_NAME (Solaris-specific)" >&5 12171 $as_echo_n "checking for PSET_GET_NAME (Solaris-specific)... " >&6; } 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173 /* end confdefs.h. */ 12174 12175 #include <sys/pset.h> 12176 12177 int 12178 main () 12179 { 12180 12181 return !(PSET_GET_NAME); 12182 12183 ; 12184 return 0; 12185 } 12186 _ACEOF 12187 if ac_fn_c_try_compile "$LINENO"; then : 12188 12189 solaris_pset_get_name=yes 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12191 $as_echo "yes" >&6; } 12192 12193 $as_echo "#define SOLARIS_PSET_GET_NAME 1" >>confdefs.h 12194 12195 12196 else 12197 12198 solaris_pset_get_name=no 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12200 $as_echo "no" >&6; } 12201 12202 fi 12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12204 if test x$solaris_pset_get_name = xyes; then 12205 SOLARIS_PSET_GET_NAME_TRUE= 12206 SOLARIS_PSET_GET_NAME_FALSE='#' 12207 else 12208 SOLARIS_PSET_GET_NAME_TRUE='#' 12209 SOLARIS_PSET_GET_NAME_FALSE= 12210 fi 12211 12212 12213 12214 # Solaris-specific check determining if the utimesys() syscall is 12215 # available (on illumos and older Solaris). 12216 # 12217 # C-level symbol: SOLARIS_UTIMESYS_SYSCALL 12218 # Automake-level symbol: SOLARIS_UTIMESYS_SYSCALL 12219 # 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimesys' syscall (Solaris-specific)" >&5 12221 $as_echo_n "checking for the \`utimesys' syscall (Solaris-specific)... " >&6; } 12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12223 /* end confdefs.h. */ 12224 12225 #include <sys/syscall.h> 12226 12227 int 12228 main () 12229 { 12230 12231 return !SYS_utimesys; 12232 12233 ; 12234 return 0; 12235 } 12236 _ACEOF 12237 if ac_fn_c_try_compile "$LINENO"; then : 12238 12239 solaris_utimesys_syscall=yes 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12241 $as_echo "yes" >&6; } 12242 12243 $as_echo "#define SOLARIS_UTIMESYS_SYSCALL 1" >>confdefs.h 12244 12245 12246 else 12247 12248 solaris_utimesys_syscall=no 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12250 $as_echo "no" >&6; } 12251 12252 fi 12253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12254 if test x$solaris_utimesys_syscall = xyes; then 12255 SOLARIS_UTIMESYS_SYSCALL_TRUE= 12256 SOLARIS_UTIMESYS_SYSCALL_FALSE='#' 12257 else 12258 SOLARIS_UTIMESYS_SYSCALL_TRUE='#' 12259 SOLARIS_UTIMESYS_SYSCALL_FALSE= 12260 fi 12261 12262 12263 12264 # Solaris-specific check determining if the utimensat() syscall is 12265 # available (on newer Solaris). 12266 # 12267 # C-level symbol: SOLARIS_UTIMENSAT_SYSCALL 12268 # Automake-level symbol: SOLARIS_UTIMENSAT_SYSCALL 12269 # 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`utimensat' syscall (Solaris-specific)" >&5 12271 $as_echo_n "checking for the \`utimensat' syscall (Solaris-specific)... " >&6; } 12272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273 /* end confdefs.h. */ 12274 12275 #include <sys/syscall.h> 12276 12277 int 12278 main () 12279 { 12280 12281 return !SYS_utimensat; 12282 12283 ; 12284 return 0; 12285 } 12286 _ACEOF 12287 if ac_fn_c_try_compile "$LINENO"; then : 12288 12289 solaris_utimensat_syscall=yes 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12291 $as_echo "yes" >&6; } 12292 12293 $as_echo "#define SOLARIS_UTIMENSAT_SYSCALL 1" >>confdefs.h 12294 12295 12296 else 12297 12298 solaris_utimensat_syscall=no 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12300 $as_echo "no" >&6; } 12301 12302 fi 12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12304 if test x$solaris_utimensat_syscall = xyes; then 12305 SOLARIS_UTIMENSAT_SYSCALL_TRUE= 12306 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#' 12307 else 12308 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#' 12309 SOLARIS_UTIMENSAT_SYSCALL_FALSE= 12310 fi 12311 12312 12313 12314 # Solaris-specific check determining if the spawn() syscall is available 12315 # (on newer Solaris). 12316 # 12317 # C-level symbol: SOLARIS_SPAWN_SYSCALL 12318 # Automake-level symbol: SOLARIS_SPAWN_SYSCALL 12319 # 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`spawn' syscall (Solaris-specific)" >&5 12321 $as_echo_n "checking for the \`spawn' syscall (Solaris-specific)... " >&6; } 12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323 /* end confdefs.h. */ 12324 12325 #include <sys/syscall.h> 12326 12327 int 12328 main () 12329 { 12330 12331 return !SYS_spawn; 12332 12333 ; 12334 return 0; 12335 } 12336 _ACEOF 12337 if ac_fn_c_try_compile "$LINENO"; then : 12338 12339 solaris_spawn_syscall=yes 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12341 $as_echo "yes" >&6; } 12342 12343 $as_echo "#define SOLARIS_SPAWN_SYSCALL 1" >>confdefs.h 12344 12345 12346 else 12347 12348 solaris_spawn_syscall=no 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12350 $as_echo "no" >&6; } 12351 12352 fi 12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12354 if test x$solaris_spawn_syscall = xyes; then 12355 SOLARIS_SPAWN_SYSCALL_TRUE= 12356 SOLARIS_SPAWN_SYSCALL_FALSE='#' 12357 else 12358 SOLARIS_SPAWN_SYSCALL_TRUE='#' 12359 SOLARIS_SPAWN_SYSCALL_FALSE= 12360 fi 12361 12362 12363 12364 # Solaris-specific check determining if commands MODNVL_CTRLMAP through 12365 # MODDEVINFO_CACHE_TS for modctl() syscall are available (on newer Solaris). 12366 # 12367 # C-level symbol: SOLARIS_MODCTL_MODNVL 12368 # Automake-level symbol: SOLARIS_MODCTL_MODNVL 12369 # 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)" >&5 12371 $as_echo_n "checking for MODNVL_CTRLMAP through MODDEVINFO_CACHE_TS modctl(2) commands (Solaris-specific)... " >&6; } 12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12373 /* end confdefs.h. */ 12374 12375 #include <sys/modctl.h> 12376 12377 int 12378 main () 12379 { 12380 12381 return !(MODNVL_CTRLMAP && MODDEVINFO_CACHE_TS); 12382 12383 ; 12384 return 0; 12385 } 12386 _ACEOF 12387 if ac_fn_c_try_compile "$LINENO"; then : 12388 12389 solaris_modctl_modnvl=yes 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12391 $as_echo "yes" >&6; } 12392 12393 $as_echo "#define SOLARIS_MODCTL_MODNVL 1" >>confdefs.h 12394 12395 12396 else 12397 12398 solaris_modctl_modnvl=no 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400 $as_echo "no" >&6; } 12401 12402 fi 12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12404 if test x$solaris_modctl_modnvl = xyes; then 12405 SOLARIS_MODCTL_MODNVL_TRUE= 12406 SOLARIS_MODCTL_MODNVL_FALSE='#' 12407 else 12408 SOLARIS_MODCTL_MODNVL_TRUE='#' 12409 SOLARIS_MODCTL_MODNVL_FALSE= 12410 fi 12411 12412 12413 12414 # Solaris-specific check determining whether nscd (name switch cache daemon) 12415 # attaches its door at /system/volatile/name_service_door (Solaris) 12416 # or at /var/run/name_service_door (illumos). 12417 # 12418 # Note that /var/run is a symlink to /system/volatile on Solaris 12419 # but not vice versa on illumos. 12420 # 12421 # C-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 12422 # Automake-level symbol: SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 12423 # 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nscd door location (Solaris-specific)" >&5 12425 $as_echo_n "checking for nscd door location (Solaris-specific)... " >&6; } 12426 if test -e /system/volatile/name_service_door; then 12427 solaris_nscd_door_system_volatile=yes 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /system/volatile/name_service_door" >&5 12429 $as_echo "/system/volatile/name_service_door" >&6; } 12430 12431 $as_echo "#define SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE 1" >>confdefs.h 12432 12433 else 12434 solaris_nscd_door_system_volatile=no 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/run/name_service_door" >&5 12436 $as_echo "/var/run/name_service_door" >&6; } 12437 fi 12438 if test x$solaris_nscd_door_system_volatile = xyes; then 12439 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE= 12440 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#' 12441 else 12442 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#' 12443 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE= 12444 fi 12445 12446 12447 12448 # Solaris-specific check determining if the new gethrt() fasttrap is available. 12449 # 12450 # New fasttrap (available on Solaris 11): 12451 # hrt_t *gethrt(void); 12452 # 12453 # C-level symbol: SOLARIS_GETHRT_FASTTRAP 12454 # Automake-level symbol: SOLARIS_GETHRT_FASTTRAP 12455 # 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`gethrt' fasttrap (Solaris-specific)" >&5 12457 $as_echo_n "checking for the new \`gethrt' fasttrap (Solaris-specific)... " >&6; } 12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12459 /* end confdefs.h. */ 12460 12461 #include <sys/trap.h> 12462 12463 int 12464 main () 12465 { 12466 12467 return !T_GETHRT; 12468 12469 ; 12470 return 0; 12471 } 12472 _ACEOF 12473 if ac_fn_c_try_compile "$LINENO"; then : 12474 12475 solaris_gethrt_fasttrap=yes 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12477 $as_echo "yes" >&6; } 12478 12479 $as_echo "#define SOLARIS_GETHRT_FASTTRAP 1" >>confdefs.h 12480 12481 12482 else 12483 12484 solaris_gethrt_fasttrap=no 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12486 $as_echo "no" >&6; } 12487 12488 fi 12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12490 if test x$solaris_gethrt_fasttrap = xyes; then 12491 SOLARIS_GETHRT_FASTTRAP_TRUE= 12492 SOLARIS_GETHRT_FASTTRAP_FALSE='#' 12493 else 12494 SOLARIS_GETHRT_FASTTRAP_TRUE='#' 12495 SOLARIS_GETHRT_FASTTRAP_FALSE= 12496 fi 12497 12498 12499 12500 # Solaris-specific check determining if the new get_zone_offset() fasttrap 12501 # is available. 12502 # 12503 # New fasttrap (available on Solaris 11): 12504 # zonehrtoffset_t *get_zone_offset(void); 12505 # 12506 # C-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP 12507 # Automake-level symbol: SOLARIS_GETZONEOFFSET_FASTTRAP 12508 # 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`get_zone_offset' fasttrap (Solaris-specific)" >&5 12510 $as_echo_n "checking for the new \`get_zone_offset' fasttrap (Solaris-specific)... " >&6; } 12511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12512 /* end confdefs.h. */ 12513 12514 #include <sys/trap.h> 12515 12516 int 12517 main () 12518 { 12519 12520 return !T_GETZONEOFFSET; 12521 12522 ; 12523 return 0; 12524 } 12525 _ACEOF 12526 if ac_fn_c_try_compile "$LINENO"; then : 12527 12528 solaris_getzoneoffset_fasttrap=yes 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12530 $as_echo "yes" >&6; } 12531 12532 $as_echo "#define SOLARIS_GETZONEOFFSET_FASTTRAP 1" >>confdefs.h 12533 12534 12535 else 12536 12537 solaris_getzoneoffset_fasttrap=no 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12539 $as_echo "no" >&6; } 12540 12541 fi 12542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12543 if test x$solaris_getzoneoffset_fasttrap = xyes; then 12544 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE= 12545 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#' 12546 else 12547 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#' 12548 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE= 12549 fi 12550 12551 12552 12553 # Solaris-specific check determining if the execve() syscall 12554 # takes fourth argument (flags) or not. 12555 # 12556 # Old syscall (available on illumos): 12557 # int execve(const char *fname, const char **argv, const char **envp); 12558 # 12559 # New syscall (available on Solaris): 12560 # int execve(uintptr_t file, const char **argv, const char **envp, int flags); 12561 # 12562 # If the new syscall is present then it will fail with EINVAL (because flags 12563 # are invalid); if the old syscall is available then it will fail with ENOENT 12564 # (because the file could not be found). 12565 # 12566 # C-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 12567 # Automake-level symbol: SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 12568 # 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the \`execve' syscall accepts flags (Solaris-specific)" >&5 12570 $as_echo_n "checking if the \`execve' syscall accepts flags (Solaris-specific)... " >&6; } 12571 if test "$cross_compiling" = yes; then : 12572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12574 as_fn_error $? "cannot run test program while cross compiling 12575 See \`config.log' for more details" "$LINENO" 5; } 12576 else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578 /* end confdefs.h. */ 12579 12580 #include <sys/syscall.h> 12581 #include <errno.h> 12582 12583 int 12584 main () 12585 { 12586 12587 errno = 0; 12588 syscall(SYS_execve, "/no/existing/path", 0, 0, 0xdeadbeef, 0, 0); 12589 return !(errno == EINVAL); 12590 12591 ; 12592 return 0; 12593 } 12594 _ACEOF 12595 if ac_fn_c_try_run "$LINENO"; then : 12596 12597 solaris_execve_syscall_takes_flags=yes 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12599 $as_echo "yes" >&6; } 12600 12601 $as_echo "#define SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS 1" >>confdefs.h 12602 12603 12604 else 12605 12606 solaris_execve_syscall_takes_flags=no 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12608 $as_echo "no" >&6; } 12609 12610 fi 12611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12612 conftest.$ac_objext conftest.beam conftest.$ac_ext 12613 fi 12614 12615 if test x$solaris_execve_syscall_takes_flags = xyes; then 12616 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE= 12617 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#' 12618 else 12619 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#' 12620 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE= 12621 fi 12622 12623 12624 12625 # Solaris-specific check determining version of the repository cache protocol. 12626 # Every Solaris version uses a different one, ranging from 21 to current 25. 12627 # The check is very ugly, though. 12628 # 12629 # C-level symbol: SOLARIS_REPCACHE_PROTOCOL_VERSION vv 12630 # Automake-level symbol: none 12631 # 12632 # Extract the first word of "dis", so it can be a program name with args. 12633 set dummy dis; ac_word=$2 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12635 $as_echo_n "checking for $ac_word... " >&6; } 12636 if ${ac_cv_path_DIS_PATH+:} false; then : 12637 $as_echo_n "(cached) " >&6 12638 else 12639 case $DIS_PATH in 12640 [\\/]* | ?:[\\/]*) 12641 ac_cv_path_DIS_PATH="$DIS_PATH" # Let the user override the test with a path. 12642 ;; 12643 *) 12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12645 for as_dir in $PATH 12646 do 12647 IFS=$as_save_IFS 12648 test -z "$as_dir" && as_dir=. 12649 for ac_exec_ext in '' $ac_executable_extensions; do 12650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12651 ac_cv_path_DIS_PATH="$as_dir/$ac_word$ac_exec_ext" 12652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12653 break 2 12654 fi 12655 done 12656 done 12657 IFS=$as_save_IFS 12658 12659 test -z "$ac_cv_path_DIS_PATH" && ac_cv_path_DIS_PATH="false" 12660 ;; 12661 esac 12662 fi 12663 DIS_PATH=$ac_cv_path_DIS_PATH 12664 if test -n "$DIS_PATH"; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIS_PATH" >&5 12666 $as_echo "$DIS_PATH" >&6; } 12667 else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669 $as_echo "no" >&6; } 12670 fi 12671 12672 12673 if test "x$DIS_PATH" = "xfalse"; then 12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12676 as_fn_error $? "Object code disassembler (\`dis') not found. 12677 See \`config.log' for more details" "$LINENO" 5; } 12678 fi 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scf_handle_bind in -lscf" >&5 12680 $as_echo_n "checking for scf_handle_bind in -lscf... " >&6; } 12681 if ${ac_cv_lib_scf_scf_handle_bind+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683 else 12684 ac_check_lib_save_LIBS=$LIBS 12685 LIBS="-lscf $LIBS" 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687 /* end confdefs.h. */ 12688 12689 /* Override any GCC internal prototype to avoid an error. 12690 Use char because int might match the return type of a GCC 12691 builtin and then its argument prototype would still apply. */ 12692 #ifdef __cplusplus 12693 extern "C" 12694 #endif 12695 char scf_handle_bind (); 12696 int 12697 main () 12698 { 12699 return scf_handle_bind (); 12700 ; 12701 return 0; 12702 } 12703 _ACEOF 12704 if ac_fn_c_try_link "$LINENO"; then : 12705 ac_cv_lib_scf_scf_handle_bind=yes 12706 else 12707 ac_cv_lib_scf_scf_handle_bind=no 12708 fi 12709 rm -f core conftest.err conftest.$ac_objext \ 12710 conftest$ac_exeext conftest.$ac_ext 12711 LIBS=$ac_check_lib_save_LIBS 12712 fi 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_scf_scf_handle_bind" >&5 12714 $as_echo "$ac_cv_lib_scf_scf_handle_bind" >&6; } 12715 if test "x$ac_cv_lib_scf_scf_handle_bind" = xyes; then : 12716 cat >>confdefs.h <<_ACEOF 12717 #define HAVE_LIBSCF 1 12718 _ACEOF 12719 12720 LIBS="-lscf $LIBS" 12721 12722 else 12723 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&5 12725 $as_echo "$as_me: WARNING: Function \`scf_handle_bind' was not found in \`libscf'." >&2;} 12726 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5 12727 12728 fi 12729 12730 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of the repository cache protocol (Solaris-specific)" >&5 12732 $as_echo_n "checking for version of the repository cache protocol (Solaris-specific)... " >&6; } 12733 if test "X$VGCONF_ARCH_PRI" = "Xamd64"; then 12734 libscf=/usr/lib/64/libscf.so.1 12735 else 12736 libscf=/usr/lib/libscf.so.1 12737 fi 12738 if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q 0x526570; then 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&5 12740 $as_echo "$as_me: WARNING: Function \`scf_handle_bind' does not contain repository cache protocol version." >&2;} 12741 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5 12742 fi 12743 hex=$( $DIS_PATH -F scf_handle_bind $libscf | sed -n 's/.*0x526570\(..\).*/\1/p' ) 12744 if test -z "$hex"; then 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Version of the repository cache protocol is empty?!" >&5 12746 $as_echo "$as_me: WARNING: Version of the repository cache protocol is empty?!" >&2;} 12747 as_fn_error $? "Cannot determine version of the repository cache protocol." "$LINENO" 5 12748 fi 12749 version=$( printf "%d\n" 0x$hex ) 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version" >&5 12751 $as_echo "$version" >&6; } 12752 12753 cat >>confdefs.h <<_ACEOF 12754 #define SOLARIS_REPCACHE_PROTOCOL_VERSION $version 12755 _ACEOF 12756 12757 12758 12759 # Solaris-specific check determining if "sysstat" segment reservation type 12760 # is available. 12761 # 12762 # New "sysstat" segment reservation (available on Solaris 12): 12763 # - program header type: PT_SUNW_SYSSTAT 12764 # - auxiliary vector entry: AT_SUN_SYSSTAT_ADDR 12765 # 12766 # C-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR 12767 # Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ADDR 12768 # 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat' segment reservation (Solaris-specific)" >&5 12770 $as_echo_n "checking for the new \`sysstat' segment reservation (Solaris-specific)... " >&6; } 12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12772 /* end confdefs.h. */ 12773 12774 #include <sys/auxv.h> 12775 12776 int 12777 main () 12778 { 12779 12780 return !AT_SUN_SYSSTAT_ADDR; 12781 12782 ; 12783 return 0; 12784 } 12785 _ACEOF 12786 if ac_fn_c_try_compile "$LINENO"; then : 12787 12788 solaris_reserve_sysstat_addr=yes 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12790 $as_echo "yes" >&6; } 12791 12792 $as_echo "#define SOLARIS_RESERVE_SYSSTAT_ADDR 1" >>confdefs.h 12793 12794 12795 else 12796 12797 solaris_reserve_sysstat_addr=no 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12799 $as_echo "no" >&6; } 12800 12801 fi 12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12803 if test x$solaris_reserve_sysstat_addr = xyes; then 12804 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE= 12805 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#' 12806 else 12807 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#' 12808 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE= 12809 fi 12810 12811 12812 12813 # Solaris-specific check determining if "sysstat_zone" segment reservation type 12814 # is available. 12815 # 12816 # New "sysstat_zone" segment reservation (available on Solaris 12): 12817 # - program header type: PT_SUNW_SYSSTAT_ZONE 12818 # - auxiliary vector entry: AT_SUN_SYSSTAT_ZONE_ADDR 12819 # 12820 # C-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 12821 # Automake-level symbol: SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 12822 # 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the new \`sysstat_zone' segment reservation (Solaris-specific)" >&5 12824 $as_echo_n "checking for the new \`sysstat_zone' segment reservation (Solaris-specific)... " >&6; } 12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12826 /* end confdefs.h. */ 12827 12828 #include <sys/auxv.h> 12829 12830 int 12831 main () 12832 { 12833 12834 return !AT_SUN_SYSSTAT_ZONE_ADDR; 12835 12836 ; 12837 return 0; 12838 } 12839 _ACEOF 12840 if ac_fn_c_try_compile "$LINENO"; then : 12841 12842 solaris_reserve_sysstat_zone_addr=yes 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12844 $as_echo "yes" >&6; } 12845 12846 $as_echo "#define SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR 1" >>confdefs.h 12847 12848 12849 else 12850 12851 solaris_reserve_sysstat_zone_addr=no 12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12853 $as_echo "no" >&6; } 12854 12855 fi 12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12857 if test x$solaris_reserve_sysstat_zone_addr = xyes; then 12858 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE= 12859 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#' 12860 else 12861 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#' 12862 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE= 12863 fi 12864 12865 12866 12867 # Solaris-specific check determining if the system_stats() syscall is available 12868 # (on newer Solaris). 12869 # 12870 # C-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL 12871 # Automake-level symbol: SOLARIS_SYSTEM_STATS_SYSCALL 12872 # 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the \`system_stats' syscall (Solaris-specific)" >&5 12874 $as_echo_n "checking for the \`system_stats' syscall (Solaris-specific)... " >&6; } 12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12876 /* end confdefs.h. */ 12877 12878 #include <sys/syscall.h> 12879 12880 int 12881 main () 12882 { 12883 12884 return !SYS_system_stats; 12885 12886 ; 12887 return 0; 12888 } 12889 _ACEOF 12890 if ac_fn_c_try_compile "$LINENO"; then : 12891 12892 solaris_system_stats_syscall=yes 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12894 $as_echo "yes" >&6; } 12895 12896 $as_echo "#define SOLARIS_SYSTEM_STATS_SYSCALL 1" >>confdefs.h 12897 12898 12899 else 12900 12901 solaris_system_stats_syscall=no 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12903 $as_echo "no" >&6; } 12904 12905 fi 12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12907 if test x$solaris_system_stats_syscall = xyes; then 12908 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE= 12909 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#' 12910 else 12911 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#' 12912 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE= 12913 fi 12914 12915 12916 12917 # Solaris-specific check determining if fpregset_t defines struct _fpchip_state 12918 # (on newer illumos) or struct fpchip_state (Solaris, older illumos). 12919 # 12920 # C-level symbol: SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE 12921 # Automake-level symbol: none 12922 # 12923 ac_fn_c_check_type "$LINENO" "struct _fpchip_state" "ac_cv_type_struct__fpchip_state" "#include <sys/regset.h> 12924 " 12925 if test "x$ac_cv_type_struct__fpchip_state" = xyes; then : 12926 solaris_fpchip_state_takes_underscore=yes 12927 else 12928 solaris_fpchip_state_takes_underscore=no 12929 fi 12930 12931 if test "$solaris_fpchip_state_takes_underscore" = "yes"; then 12932 12933 $as_echo "#define SOLARIS_FPCHIP_STATE_TAKES_UNDERSCORE 1" >>confdefs.h 12934 12935 fi 12936 12937 12938 # Solaris-specific check determining if schedctl page shared between kernel 12939 # and userspace program is executable (illumos, older Solaris) or not (newer 12940 # Solaris). 12941 # 12942 # C-level symbol: SOLARIS_SCHEDCTL_PAGE_EXEC 12943 # Automake-level symbol: none 12944 # 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if schedctl page is executable (Solaris-specific)" >&5 12946 $as_echo_n "checking if schedctl page is executable (Solaris-specific)... " >&6; } 12947 if test "$cross_compiling" = yes; then : 12948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12950 as_fn_error $? "cannot run test program while cross compiling 12951 See \`config.log' for more details" "$LINENO" 5; } 12952 else 12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12954 /* end confdefs.h. */ 12955 12956 #include <assert.h> 12957 #include <fcntl.h> 12958 #include <procfs.h> 12959 #include <schedctl.h> 12960 #include <stdio.h> 12961 #include <unistd.h> 12962 12963 int 12964 main () 12965 { 12966 12967 schedctl_t *scp = schedctl_init(); 12968 if (scp == NULL) 12969 return 1; 12970 12971 int fd = open("/proc/self/map", O_RDONLY); 12972 assert(fd >= 0); 12973 12974 prmap_t map; 12975 ssize_t rd; 12976 while ((rd = read(fd, &map, sizeof(map))) == sizeof(map)) { 12977 if (map.pr_vaddr == ((uintptr_t) scp & PAGEMASK)) { 12978 fprintf(stderr, "%#lx [%zu] %s\n", map.pr_vaddr, map.pr_size, 12979 (map.pr_mflags & MA_EXEC) ? "x" : "no-x"); 12980 return (map.pr_mflags & MA_EXEC); 12981 } 12982 } 12983 12984 return 1; 12985 12986 ; 12987 return 0; 12988 } 12989 _ACEOF 12990 if ac_fn_c_try_run "$LINENO"; then : 12991 12992 solaris_schedctl_page_exec=no 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12994 $as_echo "no" >&6; } 12995 12996 else 12997 12998 solaris_schedctl_page_exec=yes 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13000 $as_echo "yes" >&6; } 13001 13002 $as_echo "#define SOLARIS_SCHEDCTL_PAGE_EXEC 1" >>confdefs.h 13003 13004 13005 fi 13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13007 conftest.$ac_objext conftest.beam conftest.$ac_ext 13008 fi 13009 13010 13011 13012 # Solaris-specific check determining if PT_SUNWDTRACE program header provides 13013 # scratch space for DTrace fasttrap provider (illumos, older Solaris) or just 13014 # an initial thread pointer for libc (newer Solaris). 13015 # 13016 # C-level symbol: SOLARIS_PT_SUNDWTRACE_THRP 13017 # Automake-level symbol: none 13018 # 13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)" >&5 13020 $as_echo_n "checking if PT_SUNWDTRACE serves for initial thread pointer (Solaris-specific)... " >&6; } 13021 if test "$cross_compiling" = yes; then : 13022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13024 as_fn_error $? "cannot run test program while cross compiling 13025 See \`config.log' for more details" "$LINENO" 5; } 13026 else 13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13028 /* end confdefs.h. */ 13029 13030 #include <sys/fasttrap_isa.h> 13031 13032 int 13033 main () 13034 { 13035 13036 return !FT_SCRATCHSIZE; 13037 13038 ; 13039 return 0; 13040 } 13041 _ACEOF 13042 if ac_fn_c_try_run "$LINENO"; then : 13043 13044 solaris_pt_sunwdtrace_thrp=yes 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13046 $as_echo "yes" >&6; } 13047 13048 $as_echo "#define SOLARIS_PT_SUNDWTRACE_THRP 1" >>confdefs.h 13049 13050 13051 else 13052 13053 solaris_pt_sunwdtrace_thrp=no 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13055 $as_echo "no" >&6; } 13056 13057 fi 13058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13059 conftest.$ac_objext conftest.beam conftest.$ac_ext 13060 fi 13061 13062 13063 else 13064 if false; then 13065 SOLARIS_SUN_STUDIO_AS_TRUE= 13066 SOLARIS_SUN_STUDIO_AS_FALSE='#' 13067 else 13068 SOLARIS_SUN_STUDIO_AS_TRUE='#' 13069 SOLARIS_SUN_STUDIO_AS_FALSE= 13070 fi 13071 13072 if false; then 13073 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE= 13074 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE='#' 13075 else 13076 SOLARIS_XPG_SYMBOLS_PRESENT_TRUE='#' 13077 SOLARIS_XPG_SYMBOLS_PRESENT_FALSE= 13078 fi 13079 13080 if false; then 13081 SOLARIS_PROC_CMDLINE_TRUE= 13082 SOLARIS_PROC_CMDLINE_FALSE='#' 13083 else 13084 SOLARIS_PROC_CMDLINE_TRUE='#' 13085 SOLARIS_PROC_CMDLINE_FALSE= 13086 fi 13087 13088 if false; then 13089 SOLARIS_OLD_SYSCALLS_TRUE= 13090 SOLARIS_OLD_SYSCALLS_FALSE='#' 13091 else 13092 SOLARIS_OLD_SYSCALLS_TRUE='#' 13093 SOLARIS_OLD_SYSCALLS_FALSE= 13094 fi 13095 13096 if false; then 13097 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE= 13098 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE='#' 13099 else 13100 SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE='#' 13101 SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE= 13102 fi 13103 13104 if false; then 13105 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE= 13106 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE='#' 13107 else 13108 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE='#' 13109 SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE= 13110 fi 13111 13112 if false; then 13113 SOLARIS_LWP_NAME_SYSCALL_TRUE= 13114 SOLARIS_LWP_NAME_SYSCALL_FALSE='#' 13115 else 13116 SOLARIS_LWP_NAME_SYSCALL_TRUE='#' 13117 SOLARIS_LWP_NAME_SYSCALL_FALSE= 13118 fi 13119 13120 if false; then 13121 SOLARIS_GETRANDOM_SYSCALL_TRUE= 13122 SOLARIS_GETRANDOM_SYSCALL_FALSE='#' 13123 else 13124 SOLARIS_GETRANDOM_SYSCALL_TRUE='#' 13125 SOLARIS_GETRANDOM_SYSCALL_FALSE= 13126 fi 13127 13128 if false; then 13129 SOLARIS_ZONE_DEFUNCT_TRUE= 13130 SOLARIS_ZONE_DEFUNCT_FALSE='#' 13131 else 13132 SOLARIS_ZONE_DEFUNCT_TRUE='#' 13133 SOLARIS_ZONE_DEFUNCT_FALSE= 13134 fi 13135 13136 if false; then 13137 SOLARIS_AUDITON_STAT_TRUE= 13138 SOLARIS_AUDITON_STAT_FALSE='#' 13139 else 13140 SOLARIS_AUDITON_STAT_TRUE='#' 13141 SOLARIS_AUDITON_STAT_FALSE= 13142 fi 13143 13144 if false; then 13145 SOLARIS_SHM_NEW_TRUE= 13146 SOLARIS_SHM_NEW_FALSE='#' 13147 else 13148 SOLARIS_SHM_NEW_TRUE='#' 13149 SOLARIS_SHM_NEW_FALSE= 13150 fi 13151 13152 if false; then 13153 SOLARIS_PRXREGSET_T_TRUE= 13154 SOLARIS_PRXREGSET_T_FALSE='#' 13155 else 13156 SOLARIS_PRXREGSET_T_TRUE='#' 13157 SOLARIS_PRXREGSET_T_FALSE= 13158 fi 13159 13160 if false; then 13161 SOLARIS_FREALPATHAT_SYSCALL_TRUE= 13162 SOLARIS_FREALPATHAT_SYSCALL_FALSE='#' 13163 else 13164 SOLARIS_FREALPATHAT_SYSCALL_TRUE='#' 13165 SOLARIS_FREALPATHAT_SYSCALL_FALSE= 13166 fi 13167 13168 if false; then 13169 SOLARIS_UUIDSYS_SYSCALL_TRUE= 13170 SOLARIS_UUIDSYS_SYSCALL_FALSE='#' 13171 else 13172 SOLARIS_UUIDSYS_SYSCALL_TRUE='#' 13173 SOLARIS_UUIDSYS_SYSCALL_FALSE= 13174 fi 13175 13176 if false; then 13177 SOLARIS_TNDB_GET_TNIP_TRUE= 13178 SOLARIS_TNDB_GET_TNIP_FALSE='#' 13179 else 13180 SOLARIS_TNDB_GET_TNIP_TRUE='#' 13181 SOLARIS_TNDB_GET_TNIP_FALSE= 13182 fi 13183 13184 if false; then 13185 SOLARIS_TSOL_CLEARANCE_TRUE= 13186 SOLARIS_TSOL_CLEARANCE_FALSE='#' 13187 else 13188 SOLARIS_TSOL_CLEARANCE_TRUE='#' 13189 SOLARIS_TSOL_CLEARANCE_FALSE= 13190 fi 13191 13192 if false; then 13193 SOLARIS_PSET_GET_NAME_TRUE= 13194 SOLARIS_PSET_GET_NAME_FALSE='#' 13195 else 13196 SOLARIS_PSET_GET_NAME_TRUE='#' 13197 SOLARIS_PSET_GET_NAME_FALSE= 13198 fi 13199 13200 if false; then 13201 SOLARIS_UTIMESYS_SYSCALL_TRUE= 13202 SOLARIS_UTIMESYS_SYSCALL_FALSE='#' 13203 else 13204 SOLARIS_UTIMESYS_SYSCALL_TRUE='#' 13205 SOLARIS_UTIMESYS_SYSCALL_FALSE= 13206 fi 13207 13208 if false; then 13209 SOLARIS_UTIMENSAT_SYSCALL_TRUE= 13210 SOLARIS_UTIMENSAT_SYSCALL_FALSE='#' 13211 else 13212 SOLARIS_UTIMENSAT_SYSCALL_TRUE='#' 13213 SOLARIS_UTIMENSAT_SYSCALL_FALSE= 13214 fi 13215 13216 if false; then 13217 SOLARIS_SPAWN_SYSCALL_TRUE= 13218 SOLARIS_SPAWN_SYSCALL_FALSE='#' 13219 else 13220 SOLARIS_SPAWN_SYSCALL_TRUE='#' 13221 SOLARIS_SPAWN_SYSCALL_FALSE= 13222 fi 13223 13224 if false; then 13225 SOLARIS_MODCTL_MODNVL_TRUE= 13226 SOLARIS_MODCTL_MODNVL_FALSE='#' 13227 else 13228 SOLARIS_MODCTL_MODNVL_TRUE='#' 13229 SOLARIS_MODCTL_MODNVL_FALSE= 13230 fi 13231 13232 if false; then 13233 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE= 13234 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE='#' 13235 else 13236 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE='#' 13237 SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE= 13238 fi 13239 13240 if false; then 13241 SOLARIS_GETHRT_FASTTRAP_TRUE= 13242 SOLARIS_GETHRT_FASTTRAP_FALSE='#' 13243 else 13244 SOLARIS_GETHRT_FASTTRAP_TRUE='#' 13245 SOLARIS_GETHRT_FASTTRAP_FALSE= 13246 fi 13247 13248 if false; then 13249 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE= 13250 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE='#' 13251 else 13252 SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE='#' 13253 SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE= 13254 fi 13255 13256 if false; then 13257 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE= 13258 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE='#' 13259 else 13260 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE='#' 13261 SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE= 13262 fi 13263 13264 if false; then 13265 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE= 13266 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE='#' 13267 else 13268 SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE='#' 13269 SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE= 13270 fi 13271 13272 if false; then 13273 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE= 13274 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE='#' 13275 else 13276 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE='#' 13277 SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE= 13278 fi 13279 13280 if false; then 13281 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE= 13282 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE='#' 13283 else 13284 SOLARIS_SYSTEM_STATS_SYSCALL_TRUE='#' 13285 SOLARIS_SYSTEM_STATS_SYSCALL_FALSE= 13286 fi 13287 13288 fi # test "$VGCONF_OS" = "solaris" 13289 13290 13291 #---------------------------------------------------------------------------- 13292 # Checks for C header files. 13293 #---------------------------------------------------------------------------- 13294 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 13296 $as_echo_n "checking for ANSI C header files... " >&6; } 13297 if ${ac_cv_header_stdc+:} false; then : 13298 $as_echo_n "(cached) " >&6 13299 else 13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13301 /* end confdefs.h. */ 13302 #include <stdlib.h> 13303 #include <stdarg.h> 13304 #include <string.h> 13305 #include <float.h> 13306 13307 int 13308 main () 13309 { 13310 13311 ; 13312 return 0; 13313 } 13314 _ACEOF 13315 if ac_fn_c_try_compile "$LINENO"; then : 13316 ac_cv_header_stdc=yes 13317 else 13318 ac_cv_header_stdc=no 13319 fi 13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13321 13322 if test $ac_cv_header_stdc = yes; then 13323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325 /* end confdefs.h. */ 13326 #include <string.h> 13327 13328 _ACEOF 13329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13330 $EGREP "memchr" >/dev/null 2>&1; then : 13331 13332 else 13333 ac_cv_header_stdc=no 13334 fi 13335 rm -f conftest* 13336 13337 fi 13338 13339 if test $ac_cv_header_stdc = yes; then 13340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342 /* end confdefs.h. */ 13343 #include <stdlib.h> 13344 13345 _ACEOF 13346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13347 $EGREP "free" >/dev/null 2>&1; then : 13348 13349 else 13350 ac_cv_header_stdc=no 13351 fi 13352 rm -f conftest* 13353 13354 fi 13355 13356 if test $ac_cv_header_stdc = yes; then 13357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13358 if test "$cross_compiling" = yes; then : 13359 : 13360 else 13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13362 /* end confdefs.h. */ 13363 #include <ctype.h> 13364 #include <stdlib.h> 13365 #if ((' ' & 0x0FF) == 0x020) 13366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13368 #else 13369 # define ISLOWER(c) \ 13370 (('a' <= (c) && (c) <= 'i') \ 13371 || ('j' <= (c) && (c) <= 'r') \ 13372 || ('s' <= (c) && (c) <= 'z')) 13373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13374 #endif 13375 13376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13377 int 13378 main () 13379 { 13380 int i; 13381 for (i = 0; i < 256; i++) 13382 if (XOR (islower (i), ISLOWER (i)) 13383 || toupper (i) != TOUPPER (i)) 13384 return 2; 13385 return 0; 13386 } 13387 _ACEOF 13388 if ac_fn_c_try_run "$LINENO"; then : 13389 13390 else 13391 ac_cv_header_stdc=no 13392 fi 13393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13394 conftest.$ac_objext conftest.beam conftest.$ac_ext 13395 fi 13396 13397 fi 13398 fi 13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13400 $as_echo "$ac_cv_header_stdc" >&6; } 13401 if test $ac_cv_header_stdc = yes; then 13402 13403 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 13404 13405 fi 13406 13407 for ac_header in \ 13408 asm/unistd.h \ 13409 endian.h \ 13410 mqueue.h \ 13411 sys/endian.h \ 13412 sys/epoll.h \ 13413 sys/eventfd.h \ 13414 sys/klog.h \ 13415 sys/poll.h \ 13416 sys/prctl.h \ 13417 sys/signal.h \ 13418 sys/signalfd.h \ 13419 sys/syscall.h \ 13420 sys/sysnvl.h \ 13421 sys/time.h \ 13422 sys/types.h \ 13423 13424 do : 13425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13428 cat >>confdefs.h <<_ACEOF 13429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13430 _ACEOF 13431 13432 fi 13433 13434 done 13435 13436 13437 # Verify whether the <linux/futex.h> header is usable. 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <linux/futex.h> is usable" >&5 13439 $as_echo_n "checking if <linux/futex.h> is usable... " >&6; } 13440 13441 save_CFLAGS="$CFLAGS" 13442 CFLAGS="$CFLAGS -D__user=" 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444 /* end confdefs.h. */ 13445 13446 #include <linux/futex.h> 13447 13448 int 13449 main () 13450 { 13451 13452 return FUTEX_WAIT; 13453 13454 ; 13455 return 0; 13456 } 13457 _ACEOF 13458 if ac_fn_c_try_compile "$LINENO"; then : 13459 13460 ac_have_usable_linux_futex_h=yes 13461 13462 $as_echo "#define HAVE_USABLE_LINUX_FUTEX_H 1" >>confdefs.h 13463 13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13465 $as_echo "yes" >&6; } 13466 13467 else 13468 13469 ac_have_usable_linux_futex_h=no 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13471 $as_echo "no" >&6; } 13472 13473 fi 13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13475 CFLAGS="$save_CFLAGS" 13476 13477 13478 #---------------------------------------------------------------------------- 13479 # Checks for typedefs, structures, and compiler characteristics. 13480 #---------------------------------------------------------------------------- 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 13482 $as_echo_n "checking for uid_t in sys/types.h... " >&6; } 13483 if ${ac_cv_type_uid_t+:} false; then : 13484 $as_echo_n "(cached) " >&6 13485 else 13486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487 /* end confdefs.h. */ 13488 #include <sys/types.h> 13489 13490 _ACEOF 13491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13492 $EGREP "uid_t" >/dev/null 2>&1; then : 13493 ac_cv_type_uid_t=yes 13494 else 13495 ac_cv_type_uid_t=no 13496 fi 13497 rm -f conftest* 13498 13499 fi 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 13501 $as_echo "$ac_cv_type_uid_t" >&6; } 13502 if test $ac_cv_type_uid_t = no; then 13503 13504 $as_echo "#define uid_t int" >>confdefs.h 13505 13506 13507 $as_echo "#define gid_t int" >>confdefs.h 13508 13509 fi 13510 13511 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 13512 if test "x$ac_cv_type_off_t" = xyes; then : 13513 13514 else 13515 13516 cat >>confdefs.h <<_ACEOF 13517 #define off_t long int 13518 _ACEOF 13519 13520 fi 13521 13522 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13523 if test "x$ac_cv_type_size_t" = xyes; then : 13524 13525 else 13526 13527 cat >>confdefs.h <<_ACEOF 13528 #define size_t unsigned int 13529 _ACEOF 13530 13531 fi 13532 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13534 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13535 if ${ac_cv_header_time+:} false; then : 13536 $as_echo_n "(cached) " >&6 13537 else 13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13539 /* end confdefs.h. */ 13540 #include <sys/types.h> 13541 #include <sys/time.h> 13542 #include <time.h> 13543 13544 int 13545 main () 13546 { 13547 if ((struct tm *) 0) 13548 return 0; 13549 ; 13550 return 0; 13551 } 13552 _ACEOF 13553 if ac_fn_c_try_compile "$LINENO"; then : 13554 ac_cv_header_time=yes 13555 else 13556 ac_cv_header_time=no 13557 fi 13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13559 fi 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13561 $as_echo "$ac_cv_header_time" >&6; } 13562 if test $ac_cv_header_time = yes; then 13563 13564 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13565 13566 fi 13567 13568 13569 13570 #---------------------------------------------------------------------------- 13571 # Checks for library functions. 13572 #---------------------------------------------------------------------------- 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 13574 $as_echo_n "checking for working memcmp... " >&6; } 13575 if ${ac_cv_func_memcmp_working+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577 else 13578 if test "$cross_compiling" = yes; then : 13579 ac_cv_func_memcmp_working=no 13580 else 13581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13582 /* end confdefs.h. */ 13583 $ac_includes_default 13584 int 13585 main () 13586 { 13587 13588 /* Some versions of memcmp are not 8-bit clean. */ 13589 char c0 = '\100', c1 = '\200', c2 = '\201'; 13590 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 13591 return 1; 13592 13593 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 13594 or more and with at least one buffer not starting on a 4-byte boundary. 13595 William Lewis provided this test program. */ 13596 { 13597 char foo[21]; 13598 char bar[21]; 13599 int i; 13600 for (i = 0; i < 4; i++) 13601 { 13602 char *a = foo + i; 13603 char *b = bar + i; 13604 strcpy (a, "--------01111111"); 13605 strcpy (b, "--------10000000"); 13606 if (memcmp (a, b, 16) >= 0) 13607 return 1; 13608 } 13609 return 0; 13610 } 13611 13612 ; 13613 return 0; 13614 } 13615 _ACEOF 13616 if ac_fn_c_try_run "$LINENO"; then : 13617 ac_cv_func_memcmp_working=yes 13618 else 13619 ac_cv_func_memcmp_working=no 13620 fi 13621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13622 conftest.$ac_objext conftest.beam conftest.$ac_ext 13623 fi 13624 13625 fi 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 13627 $as_echo "$ac_cv_func_memcmp_working" >&6; } 13628 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 13629 *" memcmp.$ac_objext "* ) ;; 13630 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 13631 ;; 13632 esac 13633 13634 13635 13636 13637 13638 for ac_header in $ac_header_list 13639 do : 13640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13641 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13642 " 13643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13644 cat >>confdefs.h <<_ACEOF 13645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13646 _ACEOF 13647 13648 fi 13649 13650 done 13651 13652 13653 13654 13655 13656 13657 13658 13659 for ac_func in getpagesize 13660 do : 13661 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13662 if test "x$ac_cv_func_getpagesize" = xyes; then : 13663 cat >>confdefs.h <<_ACEOF 13664 #define HAVE_GETPAGESIZE 1 13665 _ACEOF 13666 13667 fi 13668 done 13669 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13671 $as_echo_n "checking for working mmap... " >&6; } 13672 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674 else 13675 if test "$cross_compiling" = yes; then : 13676 ac_cv_func_mmap_fixed_mapped=no 13677 else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679 /* end confdefs.h. */ 13680 $ac_includes_default 13681 /* malloc might have been renamed as rpl_malloc. */ 13682 #undef malloc 13683 13684 /* Thanks to Mike Haertel and Jim Avera for this test. 13685 Here is a matrix of mmap possibilities: 13686 mmap private not fixed 13687 mmap private fixed at somewhere currently unmapped 13688 mmap private fixed at somewhere already mapped 13689 mmap shared not fixed 13690 mmap shared fixed at somewhere currently unmapped 13691 mmap shared fixed at somewhere already mapped 13692 For private mappings, we should verify that changes cannot be read() 13693 back from the file, nor mmap's back from the file at a different 13694 address. (There have been systems where private was not correctly 13695 implemented like the infamous i386 svr4.0, and systems where the 13696 VM page cache was not coherent with the file system buffer cache 13697 like early versions of FreeBSD and possibly contemporary NetBSD.) 13698 For shared mappings, we should conversely verify that changes get 13699 propagated back to all the places they're supposed to be. 13700 13701 Grep wants private fixed already mapped. 13702 The main things grep needs to know about mmap are: 13703 * does it exist and is it safe to write into the mmap'd area 13704 * how to use it (BSD variants) */ 13705 13706 #include <fcntl.h> 13707 #include <sys/mman.h> 13708 13709 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13710 char *malloc (); 13711 #endif 13712 13713 /* This mess was copied from the GNU getpagesize.h. */ 13714 #ifndef HAVE_GETPAGESIZE 13715 # ifdef _SC_PAGESIZE 13716 # define getpagesize() sysconf(_SC_PAGESIZE) 13717 # else /* no _SC_PAGESIZE */ 13718 # ifdef HAVE_SYS_PARAM_H 13719 # include <sys/param.h> 13720 # ifdef EXEC_PAGESIZE 13721 # define getpagesize() EXEC_PAGESIZE 13722 # else /* no EXEC_PAGESIZE */ 13723 # ifdef NBPG 13724 # define getpagesize() NBPG * CLSIZE 13725 # ifndef CLSIZE 13726 # define CLSIZE 1 13727 # endif /* no CLSIZE */ 13728 # else /* no NBPG */ 13729 # ifdef NBPC 13730 # define getpagesize() NBPC 13731 # else /* no NBPC */ 13732 # ifdef PAGESIZE 13733 # define getpagesize() PAGESIZE 13734 # endif /* PAGESIZE */ 13735 # endif /* no NBPC */ 13736 # endif /* no NBPG */ 13737 # endif /* no EXEC_PAGESIZE */ 13738 # else /* no HAVE_SYS_PARAM_H */ 13739 # define getpagesize() 8192 /* punt totally */ 13740 # endif /* no HAVE_SYS_PARAM_H */ 13741 # endif /* no _SC_PAGESIZE */ 13742 13743 #endif /* no HAVE_GETPAGESIZE */ 13744 13745 int 13746 main () 13747 { 13748 char *data, *data2, *data3; 13749 const char *cdata2; 13750 int i, pagesize; 13751 int fd, fd2; 13752 13753 pagesize = getpagesize (); 13754 13755 /* First, make a file with some known garbage in it. */ 13756 data = (char *) malloc (pagesize); 13757 if (!data) 13758 return 1; 13759 for (i = 0; i < pagesize; ++i) 13760 *(data + i) = rand (); 13761 umask (0); 13762 fd = creat ("conftest.mmap", 0600); 13763 if (fd < 0) 13764 return 2; 13765 if (write (fd, data, pagesize) != pagesize) 13766 return 3; 13767 close (fd); 13768 13769 /* Next, check that the tail of a page is zero-filled. File must have 13770 non-zero length, otherwise we risk SIGBUS for entire page. */ 13771 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13772 if (fd2 < 0) 13773 return 4; 13774 cdata2 = ""; 13775 if (write (fd2, cdata2, 1) != 1) 13776 return 5; 13777 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13778 if (data2 == MAP_FAILED) 13779 return 6; 13780 for (i = 0; i < pagesize; ++i) 13781 if (*(data2 + i)) 13782 return 7; 13783 close (fd2); 13784 if (munmap (data2, pagesize)) 13785 return 8; 13786 13787 /* Next, try to mmap the file at a fixed address which already has 13788 something else allocated at it. If we can, also make sure that 13789 we see the same garbage. */ 13790 fd = open ("conftest.mmap", O_RDWR); 13791 if (fd < 0) 13792 return 9; 13793 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13794 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13795 return 10; 13796 for (i = 0; i < pagesize; ++i) 13797 if (*(data + i) != *(data2 + i)) 13798 return 11; 13799 13800 /* Finally, make sure that changes to the mapped area do not 13801 percolate back to the file as seen by read(). (This is a bug on 13802 some variants of i386 svr4.0.) */ 13803 for (i = 0; i < pagesize; ++i) 13804 *(data2 + i) = *(data2 + i) + 1; 13805 data3 = (char *) malloc (pagesize); 13806 if (!data3) 13807 return 12; 13808 if (read (fd, data3, pagesize) != pagesize) 13809 return 13; 13810 for (i = 0; i < pagesize; ++i) 13811 if (*(data + i) != *(data3 + i)) 13812 return 14; 13813 close (fd); 13814 return 0; 13815 } 13816 _ACEOF 13817 if ac_fn_c_try_run "$LINENO"; then : 13818 ac_cv_func_mmap_fixed_mapped=yes 13819 else 13820 ac_cv_func_mmap_fixed_mapped=no 13821 fi 13822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13823 conftest.$ac_objext conftest.beam conftest.$ac_ext 13824 fi 13825 13826 fi 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13828 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13829 if test $ac_cv_func_mmap_fixed_mapped = yes; then 13830 13831 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 13832 13833 fi 13834 rm -f conftest.mmap conftest.txt 13835 13836 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 13838 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 13839 if ${ac_cv_lib_pthread_pthread_create+:} false; then : 13840 $as_echo_n "(cached) " >&6 13841 else 13842 ac_check_lib_save_LIBS=$LIBS 13843 LIBS="-lpthread $LIBS" 13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13845 /* end confdefs.h. */ 13846 13847 /* Override any GCC internal prototype to avoid an error. 13848 Use char because int might match the return type of a GCC 13849 builtin and then its argument prototype would still apply. */ 13850 #ifdef __cplusplus 13851 extern "C" 13852 #endif 13853 char pthread_create (); 13854 int 13855 main () 13856 { 13857 return pthread_create (); 13858 ; 13859 return 0; 13860 } 13861 _ACEOF 13862 if ac_fn_c_try_link "$LINENO"; then : 13863 ac_cv_lib_pthread_pthread_create=yes 13864 else 13865 ac_cv_lib_pthread_pthread_create=no 13866 fi 13867 rm -f core conftest.err conftest.$ac_objext \ 13868 conftest$ac_exeext conftest.$ac_ext 13869 LIBS=$ac_check_lib_save_LIBS 13870 fi 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 13872 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 13873 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 13874 cat >>confdefs.h <<_ACEOF 13875 #define HAVE_LIBPTHREAD 1 13876 _ACEOF 13877 13878 LIBS="-lpthread $LIBS" 13879 13880 fi 13881 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 13883 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } 13884 if ${ac_cv_lib_rt_clock_gettime+:} false; then : 13885 $as_echo_n "(cached) " >&6 13886 else 13887 ac_check_lib_save_LIBS=$LIBS 13888 LIBS="-lrt $LIBS" 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890 /* end confdefs.h. */ 13891 13892 /* Override any GCC internal prototype to avoid an error. 13893 Use char because int might match the return type of a GCC 13894 builtin and then its argument prototype would still apply. */ 13895 #ifdef __cplusplus 13896 extern "C" 13897 #endif 13898 char clock_gettime (); 13899 int 13900 main () 13901 { 13902 return clock_gettime (); 13903 ; 13904 return 0; 13905 } 13906 _ACEOF 13907 if ac_fn_c_try_link "$LINENO"; then : 13908 ac_cv_lib_rt_clock_gettime=yes 13909 else 13910 ac_cv_lib_rt_clock_gettime=no 13911 fi 13912 rm -f core conftest.err conftest.$ac_objext \ 13913 conftest$ac_exeext conftest.$ac_ext 13914 LIBS=$ac_check_lib_save_LIBS 13915 fi 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 13917 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 13918 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 13919 cat >>confdefs.h <<_ACEOF 13920 #define HAVE_LIBRT 1 13921 _ACEOF 13922 13923 LIBS="-lrt $LIBS" 13924 13925 fi 13926 13927 13928 for ac_func in \ 13929 clock_gettime\ 13930 epoll_create \ 13931 epoll_pwait \ 13932 klogctl \ 13933 mallinfo \ 13934 memchr \ 13935 memset \ 13936 mkdir \ 13937 mremap \ 13938 ppoll \ 13939 pthread_barrier_init \ 13940 pthread_condattr_setclock \ 13941 pthread_mutex_timedlock \ 13942 pthread_rwlock_timedrdlock \ 13943 pthread_rwlock_timedwrlock \ 13944 pthread_spin_lock \ 13945 pthread_yield \ 13946 pthread_setname_np \ 13947 readlinkat \ 13948 semtimedop \ 13949 signalfd \ 13950 sigwaitinfo \ 13951 strchr \ 13952 strdup \ 13953 strpbrk \ 13954 strrchr \ 13955 strstr \ 13956 syscall \ 13957 utimensat \ 13958 process_vm_readv \ 13959 process_vm_writev \ 13960 13961 do : 13962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13964 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13965 cat >>confdefs.h <<_ACEOF 13966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13967 _ACEOF 13968 13969 fi 13970 done 13971 13972 13973 # AC_CHECK_LIB adds any library found to the variable LIBS, and links these 13974 # libraries with any shared object and/or executable. This is NOT what we 13975 # want for e.g. vgpreload_core-x86-linux.so 13976 LIBS="" 13977 13978 if test x$ac_cv_func_pthread_barrier_init = xyes; then 13979 HAVE_PTHREAD_BARRIER_TRUE= 13980 HAVE_PTHREAD_BARRIER_FALSE='#' 13981 else 13982 HAVE_PTHREAD_BARRIER_TRUE='#' 13983 HAVE_PTHREAD_BARRIER_FALSE= 13984 fi 13985 13986 if test x$ac_cv_func_pthread_mutex_timedlock = xyes; then 13987 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE= 13988 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE='#' 13989 else 13990 HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE='#' 13991 HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE= 13992 fi 13993 13994 if test x$ac_cv_func_pthread_spin_lock = xyes; then 13995 HAVE_PTHREAD_SPINLOCK_TRUE= 13996 HAVE_PTHREAD_SPINLOCK_FALSE='#' 13997 else 13998 HAVE_PTHREAD_SPINLOCK_TRUE='#' 13999 HAVE_PTHREAD_SPINLOCK_FALSE= 14000 fi 14001 14002 if test x$ac_cv_func_pthread_setname_np = xyes; then 14003 HAVE_PTHREAD_SETNAME_NP_TRUE= 14004 HAVE_PTHREAD_SETNAME_NP_FALSE='#' 14005 else 14006 HAVE_PTHREAD_SETNAME_NP_TRUE='#' 14007 HAVE_PTHREAD_SETNAME_NP_FALSE= 14008 fi 14009 14010 14011 if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \ 14012 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then 14013 14014 $as_echo "#define DISABLE_PTHREAD_SPINLOCK_INTERCEPT 1" >>confdefs.h 14015 14016 fi 14017 14018 #---------------------------------------------------------------------------- 14019 # MPI checks 14020 #---------------------------------------------------------------------------- 14021 # Do we have a useable MPI setup on the primary and/or secondary targets? 14022 # On Linux, by default, assumes mpicc and -m32/-m64 14023 # Note: this is a kludge in that it assumes the specified mpicc 14024 # understands -m32/-m64 regardless of what is specified using 14025 # --with-mpicc=. 14026 # Extract the first word of "mpicc", so it can be a program name with args. 14027 set dummy mpicc; ac_word=$2 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14029 $as_echo_n "checking for $ac_word... " >&6; } 14030 if ${ac_cv_path_MPI_CC+:} false; then : 14031 $as_echo_n "(cached) " >&6 14032 else 14033 case $MPI_CC in 14034 [\\/]* | ?:[\\/]*) 14035 ac_cv_path_MPI_CC="$MPI_CC" # Let the user override the test with a path. 14036 ;; 14037 *) 14038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14039 as_dummy="$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin" 14040 for as_dir in $as_dummy 14041 do 14042 IFS=$as_save_IFS 14043 test -z "$as_dir" && as_dir=. 14044 for ac_exec_ext in '' $ac_executable_extensions; do 14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14046 ac_cv_path_MPI_CC="$as_dir/$ac_word$ac_exec_ext" 14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14048 break 2 14049 fi 14050 done 14051 done 14052 IFS=$as_save_IFS 14053 14054 test -z "$ac_cv_path_MPI_CC" && ac_cv_path_MPI_CC="mpicc" 14055 ;; 14056 esac 14057 fi 14058 MPI_CC=$ac_cv_path_MPI_CC 14059 if test -n "$MPI_CC"; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPI_CC" >&5 14061 $as_echo "$MPI_CC" >&6; } 14062 else 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14064 $as_echo "no" >&6; } 14065 fi 14066 14067 14068 14069 mflag_primary= 14070 if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \ 14071 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC32_LINUX \ 14072 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM_LINUX \ 14073 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \ 14074 -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX \ 14075 -o x$VGCONF_PLATFORM_PRI_CAPS = xX86_SOLARIS ; then 14076 mflag_primary=$FLAG_M32 14077 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_LINUX \ 14078 -o x$VGCONF_PLATFORM_PRI_CAPS = xPPC64_LINUX \ 14079 -o x$VGCONF_PLATFORM_PRI_CAPS = xARM64_LINUX \ 14080 -o x$VGCONF_PLATFORM_PRI_CAPS = xS390X_LINUX ; then 14081 mflag_primary=$FLAG_M64 14082 elif test x$VGCONF_PLATFORM_PRI_CAPS = xX86_DARWIN ; then 14083 mflag_primary="$FLAG_M32 -arch i386" 14084 elif test x$VGCONF_PLATFORM_PRI_CAPS = xAMD64_DARWIN ; then 14085 mflag_primary="$FLAG_M64 -arch x86_64" 14086 fi 14087 14088 mflag_secondary= 14089 if test x$VGCONF_PLATFORM_SEC_CAPS = xX86_LINUX \ 14090 -o x$VGCONF_PLATFORM_SEC_CAPS = xPPC32_LINUX \ 14091 -o x$VGCONF_PLATFORM_SEC_CAPS = xX86_SOLARIS ; then 14092 mflag_secondary=$FLAG_M32 14093 elif test x$VGCONF_PLATFORM_SEC_CAPS = xX86_DARWIN ; then 14094 mflag_secondary="$FLAG_M32 -arch i386" 14095 fi 14096 14097 14098 14099 # Check whether --with-mpicc was given. 14100 if test "${with_mpicc+set}" = set; then : 14101 withval=$with_mpicc; MPI_CC=$withval 14102 14103 fi 14104 14105 14106 14107 ## We AM_COND_IF here instead of automake "if" in mpi/Makefile.am so that we can 14108 ## use these values in the check for a functioning mpicc. 14109 ## 14110 ## We leave the MPI_FLAG_M3264_ logic in mpi/Makefile.am and assume that 14111 ## mflag_primary/mflag_secondary are sufficient approximations of that behavior 14112 14113 if test -z "$VGCONF_OS_IS_LINUX_TRUE"; then : 14114 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic" 14115 LDFLAGS_MPI="-fpic -shared" 14116 fi 14117 14118 if test -z "$VGCONF_OS_IS_DARWIN_TRUE"; then : 14119 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -dynamic" 14120 LDFLAGS_MPI="-dynamic -dynamiclib -all_load" 14121 fi 14122 14123 if test -z "$VGCONF_OS_IS_SOLARIS_TRUE"; then : 14124 CFLAGS_MPI="-g -O -fno-omit-frame-pointer -Wall -fpic" 14125 LDFLAGS_MPI="-fpic -shared" 14126 fi 14127 14128 14129 14130 14131 14132 ## See if MPI_CC works for the primary target 14133 ## 14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking primary target for usable MPI2-compliant C compiler and mpi.h" >&5 14135 $as_echo_n "checking primary target for usable MPI2-compliant C compiler and mpi.h... " >&6; } 14136 saved_CC=$CC 14137 saved_CFLAGS=$CFLAGS 14138 CC=$MPI_CC 14139 CFLAGS="$CFLAGS_MPI $mflag_primary" 14140 saved_LDFLAGS="$LDFLAGS" 14141 LDFLAGS="$LDFLAGS_MPI $mflag_primary" 14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14143 /* end confdefs.h. */ 14144 14145 #include <mpi.h> 14146 #include <stdio.h> 14147 14148 int 14149 main () 14150 { 14151 14152 int ni, na, nd, comb; 14153 int r = MPI_Init(NULL,NULL); 14154 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb ); 14155 r |= MPI_Finalize(); 14156 return r; 14157 14158 ; 14159 return 0; 14160 } 14161 _ACEOF 14162 if ac_fn_c_try_link "$LINENO"; then : 14163 14164 ac_have_mpi2_pri=yes 14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5 14166 $as_echo "yes, $MPI_CC" >&6; } 14167 14168 else 14169 14170 ac_have_mpi2_pri=no 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14172 $as_echo "no" >&6; } 14173 14174 fi 14175 rm -f core conftest.err conftest.$ac_objext \ 14176 conftest$ac_exeext conftest.$ac_ext 14177 CC=$saved_CC 14178 CFLAGS=$saved_CFLAGS 14179 LDFLAGS="$saved_LDFLAGS" 14180 if test x$ac_have_mpi2_pri = xyes; then 14181 BUILD_MPIWRAP_PRI_TRUE= 14182 BUILD_MPIWRAP_PRI_FALSE='#' 14183 else 14184 BUILD_MPIWRAP_PRI_TRUE='#' 14185 BUILD_MPIWRAP_PRI_FALSE= 14186 fi 14187 14188 14189 ## See if MPI_CC works for the secondary target. Complication: what if 14190 ## there is no secondary target? We need this to then fail. 14191 ## Kludge this by making MPI_CC something which will surely fail in 14192 ## such a case. 14193 ## 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking secondary target for usable MPI2-compliant C compiler and mpi.h" >&5 14195 $as_echo_n "checking secondary target for usable MPI2-compliant C compiler and mpi.h... " >&6; } 14196 saved_CC=$CC 14197 saved_CFLAGS=$CFLAGS 14198 saved_LDFLAGS="$LDFLAGS" 14199 LDFLAGS="$LDFLAGS_MPI $mflag_secondary" 14200 if test x$VGCONF_PLATFORM_SEC_CAPS = x ; then 14201 CC="$MPI_CC this will surely fail" 14202 else 14203 CC=$MPI_CC 14204 fi 14205 CFLAGS="$CFLAGS_MPI $mflag_secondary" 14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14207 /* end confdefs.h. */ 14208 14209 #include <mpi.h> 14210 #include <stdio.h> 14211 14212 int 14213 main () 14214 { 14215 14216 int ni, na, nd, comb; 14217 int r = MPI_Init(NULL,NULL); 14218 r |= MPI_Type_get_envelope( MPI_INT, &ni, &na, &nd, &comb ); 14219 r |= MPI_Finalize(); 14220 return r; 14221 14222 ; 14223 return 0; 14224 } 14225 _ACEOF 14226 if ac_fn_c_try_link "$LINENO"; then : 14227 14228 ac_have_mpi2_sec=yes 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $MPI_CC" >&5 14230 $as_echo "yes, $MPI_CC" >&6; } 14231 14232 else 14233 14234 ac_have_mpi2_sec=no 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14236 $as_echo "no" >&6; } 14237 14238 fi 14239 rm -f core conftest.err conftest.$ac_objext \ 14240 conftest$ac_exeext conftest.$ac_ext 14241 CC=$saved_CC 14242 CFLAGS=$saved_CFLAGS 14243 LDFLAGS="$saved_LDFLAGS" 14244 if test x$ac_have_mpi2_sec = xyes; then 14245 BUILD_MPIWRAP_SEC_TRUE= 14246 BUILD_MPIWRAP_SEC_FALSE='#' 14247 else 14248 BUILD_MPIWRAP_SEC_TRUE='#' 14249 BUILD_MPIWRAP_SEC_FALSE= 14250 fi 14251 14252 14253 14254 #---------------------------------------------------------------------------- 14255 # Other library checks 14256 #---------------------------------------------------------------------------- 14257 # There now follow some tests for Boost, and OpenMP. These 14258 # tests are present because Drd has some regression tests that use 14259 # these packages. All regression test programs all compiled only 14260 # for the primary target. And so it is important that the configure 14261 # checks that follow, use the correct -m32 or -m64 flag for the 14262 # primary target (called $mflag_primary). Otherwise, we can end up 14263 # in a situation (eg) where, on amd64-linux, the test for Boost checks 14264 # for usable 64-bit Boost facilities, but because we are doing a 32-bit 14265 # only build (meaning, the primary target is x86-linux), the build 14266 # of the regtest programs that use Boost fails, because they are 14267 # build as 32-bit (IN THIS EXAMPLE). 14268 # 14269 # Hence: ALWAYS USE $mflag_primary FOR CONFIGURE TESTS FOR FACILITIES 14270 # NEEDED BY THE REGRESSION TEST PROGRAMS. 14271 14272 14273 # Check whether the boost library 1.35 or later has been installed. 14274 # The Boost.Threads library has undergone a major rewrite in version 1.35.0. 14275 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost" >&5 14277 $as_echo_n "checking for boost... " >&6; } 14278 14279 ac_ext=cpp 14280 ac_cpp='$CXXCPP $CPPFLAGS' 14281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14284 14285 safe_CXXFLAGS=$CXXFLAGS 14286 CXXFLAGS="$mflag_primary" 14287 safe_LIBS="$LIBS" 14288 LIBS="-lboost_thread-mt -lboost_system-mt $LIBS" 14289 14290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291 /* end confdefs.h. */ 14292 14293 #include <boost/thread.hpp> 14294 static void thread_func(void) 14295 { } 14296 int main(int argc, char** argv) 14297 { 14298 boost::thread t(thread_func); 14299 return 0; 14300 } 14301 14302 _ACEOF 14303 if ac_fn_cxx_try_link "$LINENO"; then : 14304 14305 ac_have_boost_1_35=yes 14306 14307 BOOST_LIBS="-lboost_thread-mt -lboost_system-mt" 14308 14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14310 $as_echo "yes" >&6; } 14311 14312 else 14313 14314 ac_have_boost_1_35=no 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14316 $as_echo "no" >&6; } 14317 14318 fi 14319 rm -f core conftest.err conftest.$ac_objext \ 14320 conftest$ac_exeext conftest.$ac_ext 14321 14322 LIBS="$safe_LIBS" 14323 CXXFLAGS=$safe_CXXFLAGS 14324 ac_ext=c 14325 ac_cpp='$CPP $CPPFLAGS' 14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14329 14330 14331 if test x$ac_have_boost_1_35 = xyes; then 14332 HAVE_BOOST_1_35_TRUE= 14333 HAVE_BOOST_1_35_FALSE='#' 14334 else 14335 HAVE_BOOST_1_35_TRUE='#' 14336 HAVE_BOOST_1_35_FALSE= 14337 fi 14338 14339 14340 14341 # does this compiler support -fopenmp, does it have the include file 14342 # <omp.h> and does it have libgomp ? 14343 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP" >&5 14345 $as_echo_n "checking for OpenMP... " >&6; } 14346 14347 safe_CFLAGS=$CFLAGS 14348 CFLAGS="-fopenmp $mflag_primary -Werror" 14349 14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351 /* end confdefs.h. */ 14352 14353 #include <omp.h> 14354 int main(int argc, char** argv) 14355 { 14356 omp_set_dynamic(0); 14357 return 0; 14358 } 14359 14360 _ACEOF 14361 if ac_fn_c_try_link "$LINENO"; then : 14362 14363 ac_have_openmp=yes 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14365 $as_echo "yes" >&6; } 14366 14367 else 14368 14369 ac_have_openmp=no 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14371 $as_echo "no" >&6; } 14372 14373 fi 14374 rm -f core conftest.err conftest.$ac_objext \ 14375 conftest$ac_exeext conftest.$ac_ext 14376 CFLAGS=$safe_CFLAGS 14377 14378 if test x$ac_have_openmp = xyes; then 14379 HAVE_OPENMP_TRUE= 14380 HAVE_OPENMP_FALSE='#' 14381 else 14382 HAVE_OPENMP_TRUE='#' 14383 HAVE_OPENMP_FALSE= 14384 fi 14385 14386 14387 14388 # Check for __builtin_popcount 14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount()" >&5 14390 $as_echo_n "checking for __builtin_popcount()... " >&6; } 14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392 /* end confdefs.h. */ 14393 14394 14395 int 14396 main () 14397 { 14398 14399 __builtin_popcount(2); 14400 return 0; 14401 14402 ; 14403 return 0; 14404 } 14405 _ACEOF 14406 if ac_fn_c_try_link "$LINENO"; then : 14407 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14409 $as_echo "yes" >&6; } 14410 14411 $as_echo "#define HAVE_BUILTIN_POPCOUT 1" >>confdefs.h 14412 14413 14414 else 14415 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14417 $as_echo "no" >&6; } 14418 14419 fi 14420 rm -f core conftest.err conftest.$ac_objext \ 14421 conftest$ac_exeext conftest.$ac_ext 14422 14423 # Check for __builtin_clz 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz()" >&5 14425 $as_echo_n "checking for __builtin_clz()... " >&6; } 14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14427 /* end confdefs.h. */ 14428 14429 14430 int 14431 main () 14432 { 14433 14434 __builtin_clz(2); 14435 return 0; 14436 14437 ; 14438 return 0; 14439 } 14440 _ACEOF 14441 if ac_fn_c_try_link "$LINENO"; then : 14442 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14444 $as_echo "yes" >&6; } 14445 14446 $as_echo "#define HAVE_BUILTIN_CLZ 1" >>confdefs.h 14447 14448 14449 else 14450 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14452 $as_echo "no" >&6; } 14453 14454 fi 14455 rm -f core conftest.err conftest.$ac_objext \ 14456 conftest$ac_exeext conftest.$ac_ext 14457 14458 # Check for __builtin_ctz 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz()" >&5 14460 $as_echo_n "checking for __builtin_ctz()... " >&6; } 14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462 /* end confdefs.h. */ 14463 14464 14465 int 14466 main () 14467 { 14468 14469 __builtin_ctz(2); 14470 return 0; 14471 14472 ; 14473 return 0; 14474 } 14475 _ACEOF 14476 if ac_fn_c_try_link "$LINENO"; then : 14477 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14479 $as_echo "yes" >&6; } 14480 14481 $as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h 14482 14483 14484 else 14485 14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14487 $as_echo "no" >&6; } 14488 14489 fi 14490 rm -f core conftest.err conftest.$ac_objext \ 14491 conftest$ac_exeext conftest.$ac_ext 14492 14493 # does this compiler have built-in functions for atomic memory access for the 14494 # primary target ? 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the primary target" >&5 14496 $as_echo_n "checking if gcc supports __sync_add_and_fetch for the primary target... " >&6; } 14497 14498 safe_CFLAGS=$CFLAGS 14499 CFLAGS="$mflag_primary" 14500 14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502 /* end confdefs.h. */ 14503 14504 int 14505 main () 14506 { 14507 14508 int variable = 1; 14509 return (__sync_bool_compare_and_swap(&variable, 1, 2) 14510 && __sync_add_and_fetch(&variable, 1) ? 1 : 0) 14511 14512 ; 14513 return 0; 14514 } 14515 _ACEOF 14516 if ac_fn_c_try_link "$LINENO"; then : 14517 14518 ac_have_builtin_atomic_primary=yes 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14520 $as_echo "yes" >&6; } 14521 14522 $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 14523 14524 14525 else 14526 14527 ac_have_builtin_atomic_primary=no 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14529 $as_echo "no" >&6; } 14530 14531 fi 14532 rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534 14535 CFLAGS=$safe_CFLAGS 14536 14537 if test x$ac_have_builtin_atomic_primary = xyes; then 14538 HAVE_BUILTIN_ATOMIC_TRUE= 14539 HAVE_BUILTIN_ATOMIC_FALSE='#' 14540 else 14541 HAVE_BUILTIN_ATOMIC_TRUE='#' 14542 HAVE_BUILTIN_ATOMIC_FALSE= 14543 fi 14544 14545 14546 14547 # does this compiler have built-in functions for atomic memory access for the 14548 # secondary target ? 14549 14550 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then 14551 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch for the secondary target" >&5 14553 $as_echo_n "checking if gcc supports __sync_add_and_fetch for the secondary target... " >&6; } 14554 14555 safe_CFLAGS=$CFLAGS 14556 CFLAGS="$mflag_secondary" 14557 14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14559 /* end confdefs.h. */ 14560 14561 int 14562 main () 14563 { 14564 14565 int variable = 1; 14566 return (__sync_add_and_fetch(&variable, 1) ? 1 : 0) 14567 14568 ; 14569 return 0; 14570 } 14571 _ACEOF 14572 if ac_fn_c_try_link "$LINENO"; then : 14573 14574 ac_have_builtin_atomic_secondary=yes 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14576 $as_echo "yes" >&6; } 14577 14578 else 14579 14580 ac_have_builtin_atomic_secondary=no 14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14582 $as_echo "no" >&6; } 14583 14584 fi 14585 rm -f core conftest.err conftest.$ac_objext \ 14586 conftest$ac_exeext conftest.$ac_ext 14587 14588 CFLAGS=$safe_CFLAGS 14589 14590 fi 14591 14592 if test x$ac_have_builtin_atomic_secondary = xyes; then 14593 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE= 14594 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE='#' 14595 else 14596 HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE='#' 14597 HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE= 14598 fi 14599 14600 14601 # does this compiler have built-in functions for atomic memory access on 14602 # 64-bit integers for all targets ? 14603 14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_add_and_fetch on uint64_t for all targets" >&5 14605 $as_echo_n "checking if gcc supports __sync_add_and_fetch on uint64_t for all targets... " >&6; } 14606 14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14608 /* end confdefs.h. */ 14609 14610 #include <stdint.h> 14611 14612 int 14613 main () 14614 { 14615 14616 uint64_t variable = 1; 14617 return __sync_add_and_fetch(&variable, 1) 14618 14619 ; 14620 return 0; 14621 } 14622 _ACEOF 14623 if ac_fn_c_try_link "$LINENO"; then : 14624 14625 ac_have_builtin_atomic64_primary=yes 14626 14627 else 14628 14629 ac_have_builtin_atomic64_primary=no 14630 14631 fi 14632 rm -f core conftest.err conftest.$ac_objext \ 14633 conftest$ac_exeext conftest.$ac_ext 14634 14635 if test x$VGCONF_PLATFORM_SEC_CAPS != x; then 14636 14637 safe_CFLAGS=$CFLAGS 14638 CFLAGS="$mflag_secondary" 14639 14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14641 /* end confdefs.h. */ 14642 14643 #include <stdint.h> 14644 14645 int 14646 main () 14647 { 14648 14649 uint64_t variable = 1; 14650 return __sync_add_and_fetch(&variable, 1) 14651 14652 ; 14653 return 0; 14654 } 14655 _ACEOF 14656 if ac_fn_c_try_link "$LINENO"; then : 14657 14658 ac_have_builtin_atomic64_secondary=yes 14659 14660 else 14661 14662 ac_have_builtin_atomic64_secondary=no 14663 14664 fi 14665 rm -f core conftest.err conftest.$ac_objext \ 14666 conftest$ac_exeext conftest.$ac_ext 14667 14668 CFLAGS=$safe_CFLAGS 14669 14670 fi 14671 14672 if test x$ac_have_builtin_atomic64_primary = xyes && \ 14673 test x$VGCONF_PLATFORM_SEC_CAPS = x \ 14674 -o x$ac_have_builtin_atomic64_secondary = xyes; then 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14676 $as_echo "yes" >&6; } 14677 ac_have_builtin_atomic64=yes 14678 else 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14680 $as_echo "no" >&6; } 14681 ac_have_builtin_atomic64=no 14682 fi 14683 14684 if test x$ac_have_builtin_atomic64 = xyes; then 14685 HAVE_BUILTIN_ATOMIC64_TRUE= 14686 HAVE_BUILTIN_ATOMIC64_FALSE='#' 14687 else 14688 HAVE_BUILTIN_ATOMIC64_TRUE='#' 14689 HAVE_BUILTIN_ATOMIC64_FALSE= 14690 fi 14691 14692 14693 14694 # does g++ have built-in functions for atomic memory access ? 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports __sync_add_and_fetch" >&5 14696 $as_echo_n "checking if g++ supports __sync_add_and_fetch... " >&6; } 14697 14698 safe_CXXFLAGS=$CXXFLAGS 14699 CXXFLAGS="$mflag_primary" 14700 14701 ac_ext=cpp 14702 ac_cpp='$CXXCPP $CPPFLAGS' 14703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14706 14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14708 /* end confdefs.h. */ 14709 14710 int 14711 main () 14712 { 14713 14714 int variable = 1; 14715 return (__sync_bool_compare_and_swap(&variable, 1, 2) 14716 && __sync_add_and_fetch(&variable, 1) ? 1 : 0) 14717 14718 ; 14719 return 0; 14720 } 14721 _ACEOF 14722 if ac_fn_cxx_try_link "$LINENO"; then : 14723 14724 ac_have_builtin_atomic_cxx=yes 14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14726 $as_echo "yes" >&6; } 14727 14728 $as_echo "#define HAVE_BUILTIN_ATOMIC_CXX 1" >>confdefs.h 14729 14730 14731 else 14732 14733 ac_have_builtin_atomic_cxx=no 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14735 $as_echo "no" >&6; } 14736 14737 fi 14738 rm -f core conftest.err conftest.$ac_objext \ 14739 conftest$ac_exeext conftest.$ac_ext 14740 ac_ext=c 14741 ac_cpp='$CPP $CPPFLAGS' 14742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14744 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14745 14746 14747 CXXFLAGS=$safe_CXXFLAGS 14748 14749 if test x$ac_have_builtin_atomic_cxx = xyes; then 14750 HAVE_BUILTIN_ATOMIC_CXX_TRUE= 14751 HAVE_BUILTIN_ATOMIC_CXX_FALSE='#' 14752 else 14753 HAVE_BUILTIN_ATOMIC_CXX_TRUE='#' 14754 HAVE_BUILTIN_ATOMIC_CXX_FALSE= 14755 fi 14756 14757 14758 14759 if test x$ac_have_usable_linux_futex_h = xyes \ 14760 -a x$ac_have_builtin_atomic_primary = xyes; then 14761 ac_enable_linux_ticket_lock_primary=yes 14762 fi 14763 if test x$ac_enable_linux_ticket_lock_primary = xyes; then 14764 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE= 14765 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE='#' 14766 else 14767 ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE='#' 14768 ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE= 14769 fi 14770 14771 14772 if test x$VGCONF_PLATFORM_SEC_CAPS != x \ 14773 -a x$ac_have_usable_linux_futex_h = xyes \ 14774 -a x$ac_have_builtin_atomic_secondary = xyes; then 14775 ac_enable_linux_ticket_lock_secondary=yes 14776 fi 14777 if test x$ac_enable_linux_ticket_lock_secondary = xyes; then 14778 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE= 14779 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE='#' 14780 else 14781 ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE='#' 14782 ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE= 14783 fi 14784 14785 14786 14787 # does libstdc++ support annotating shared pointers ? 14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libstdc++ supports annotating shared pointers" >&5 14789 $as_echo_n "checking if libstdc++ supports annotating shared pointers... " >&6; } 14790 14791 safe_CXXFLAGS=$CXXFLAGS 14792 CXXFLAGS="-std=c++0x" 14793 14794 ac_ext=cpp 14795 ac_cpp='$CXXCPP $CPPFLAGS' 14796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14799 14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14801 /* end confdefs.h. */ 14802 14803 #include <memory> 14804 14805 int 14806 main () 14807 { 14808 14809 std::shared_ptr<int> p 14810 14811 ; 14812 return 0; 14813 } 14814 _ACEOF 14815 if ac_fn_cxx_try_link "$LINENO"; then : 14816 14817 ac_have_shared_ptr=yes 14818 14819 else 14820 14821 ac_have_shared_ptr=no 14822 14823 fi 14824 rm -f core conftest.err conftest.$ac_objext \ 14825 conftest$ac_exeext conftest.$ac_ext 14826 if test x$ac_have_shared_ptr = xyes; then 14827 # If compilation of the program below fails because of a syntax error 14828 # triggered by substituting one of the annotation macros then that 14829 # means that libstdc++ supports these macros. 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831 /* end confdefs.h. */ 14832 14833 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE(a) (a)---- 14834 #define _GLIBCXX_SYNCHRONIZATION_HAPPENS_AFTER(a) (a)---- 14835 #include <memory> 14836 14837 int 14838 main () 14839 { 14840 14841 std::shared_ptr<int> p 14842 14843 ; 14844 return 0; 14845 } 14846 _ACEOF 14847 if ac_fn_cxx_try_link "$LINENO"; then : 14848 14849 ac_have_shared_pointer_annotation=no 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14851 $as_echo "no" >&6; } 14852 14853 else 14854 14855 ac_have_shared_pointer_annotation=yes 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14857 $as_echo "yes" >&6; } 14858 14859 $as_echo "#define HAVE_SHARED_POINTER_ANNOTATION 1" >>confdefs.h 14860 14861 14862 fi 14863 rm -f core conftest.err conftest.$ac_objext \ 14864 conftest$ac_exeext conftest.$ac_ext 14865 else 14866 ac_have_shared_pointer_annotation=no 14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14868 $as_echo "no" >&6; } 14869 fi 14870 ac_ext=c 14871 ac_cpp='$CPP $CPPFLAGS' 14872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14875 14876 14877 CXXFLAGS=$safe_CXXFLAGS 14878 14879 if test x$ac_have_shared_pointer_annotation = xyes; then 14880 HAVE_SHARED_POINTER_ANNOTATION_TRUE= 14881 HAVE_SHARED_POINTER_ANNOTATION_FALSE='#' 14882 else 14883 HAVE_SHARED_POINTER_ANNOTATION_TRUE='#' 14884 HAVE_SHARED_POINTER_ANNOTATION_FALSE= 14885 fi 14886 14887 14888 14889 #---------------------------------------------------------------------------- 14890 # Ok. We're done checking. 14891 #---------------------------------------------------------------------------- 14892 14893 # Nb: VEX/Makefile is generated from Makefile.vex.in. 14894 ac_config_files="$ac_config_files Makefile VEX/Makefile:Makefile.vex.in valgrind.spec valgrind.pc glibc-2.X.supp docs/Makefile tests/Makefile tests/vg_regtest perf/Makefile perf/vg_perf gdbserver_tests/Makefile gdbserver_tests/solaris/Makefile include/Makefile auxprogs/Makefile mpi/Makefile coregrind/Makefile memcheck/Makefile memcheck/tests/Makefile memcheck/tests/common/Makefile memcheck/tests/amd64/Makefile memcheck/tests/x86/Makefile memcheck/tests/linux/Makefile memcheck/tests/darwin/Makefile memcheck/tests/solaris/Makefile memcheck/tests/amd64-linux/Makefile memcheck/tests/arm64-linux/Makefile memcheck/tests/x86-linux/Makefile memcheck/tests/amd64-solaris/Makefile memcheck/tests/x86-solaris/Makefile memcheck/tests/ppc32/Makefile memcheck/tests/ppc64/Makefile memcheck/tests/s390x/Makefile memcheck/tests/mips32/Makefile memcheck/tests/mips64/Makefile memcheck/tests/vbit-test/Makefile cachegrind/Makefile cachegrind/tests/Makefile cachegrind/tests/x86/Makefile cachegrind/cg_annotate cachegrind/cg_diff callgrind/Makefile callgrind/callgrind_annotate callgrind/callgrind_control callgrind/tests/Makefile helgrind/Makefile helgrind/tests/Makefile massif/Makefile massif/tests/Makefile massif/ms_print lackey/Makefile lackey/tests/Makefile none/Makefile none/tests/Makefile none/tests/scripts/Makefile none/tests/amd64/Makefile none/tests/ppc32/Makefile none/tests/ppc64/Makefile none/tests/x86/Makefile none/tests/arm/Makefile none/tests/arm64/Makefile none/tests/s390x/Makefile none/tests/mips32/Makefile none/tests/mips64/Makefile none/tests/linux/Makefile none/tests/darwin/Makefile none/tests/solaris/Makefile none/tests/amd64-linux/Makefile none/tests/x86-linux/Makefile none/tests/amd64-darwin/Makefile none/tests/x86-darwin/Makefile none/tests/amd64-solaris/Makefile none/tests/x86-solaris/Makefile exp-sgcheck/Makefile exp-sgcheck/tests/Makefile drd/Makefile drd/scripts/download-and-build-splash2 drd/tests/Makefile exp-bbv/Makefile exp-bbv/tests/Makefile exp-bbv/tests/x86/Makefile exp-bbv/tests/x86-linux/Makefile exp-bbv/tests/amd64-linux/Makefile exp-bbv/tests/ppc32-linux/Makefile exp-bbv/tests/arm-linux/Makefile exp-dhat/Makefile exp-dhat/tests/Makefile shared/Makefile solaris/Makefile" 14895 14896 ac_config_files="$ac_config_files coregrind/link_tool_exe_linux" 14897 14898 ac_config_files="$ac_config_files coregrind/link_tool_exe_darwin" 14899 14900 ac_config_files="$ac_config_files coregrind/link_tool_exe_solaris" 14901 14902 cat >confcache <<\_ACEOF 14903 # This file is a shell script that caches the results of configure 14904 # tests run on this system so they can be shared between configure 14905 # scripts and configure runs, see configure's option --config-cache. 14906 # It is not useful on other systems. If it contains results you don't 14907 # want to keep, you may remove or edit it. 14908 # 14909 # config.status only pays attention to the cache file if you give it 14910 # the --recheck option to rerun configure. 14911 # 14912 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14913 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14914 # following values. 14915 14916 _ACEOF 14917 14918 # The following way of writing the cache mishandles newlines in values, 14919 # but we know of no workaround that is simple, portable, and efficient. 14920 # So, we kill variables containing newlines. 14921 # Ultrix sh set writes to stderr and can't be redirected directly, 14922 # and sets the high bit in the cache file unless we assign to the vars. 14923 ( 14924 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14925 eval ac_val=\$$ac_var 14926 case $ac_val in #( 14927 *${as_nl}*) 14928 case $ac_var in #( 14929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14930 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14931 esac 14932 case $ac_var in #( 14933 _ | IFS | as_nl) ;; #( 14934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14935 *) { eval $ac_var=; unset $ac_var;} ;; 14936 esac ;; 14937 esac 14938 done 14939 14940 (set) 2>&1 | 14941 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14942 *${as_nl}ac_space=\ *) 14943 # `set' does not quote correctly, so add quotes: double-quote 14944 # substitution turns \\\\ into \\, and sed turns \\ into \. 14945 sed -n \ 14946 "s/'/'\\\\''/g; 14947 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14948 ;; #( 14949 *) 14950 # `set' quotes correctly as required by POSIX, so do not add quotes. 14951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14952 ;; 14953 esac | 14954 sort 14955 ) | 14956 sed ' 14957 /^ac_cv_env_/b end 14958 t clear 14959 :clear 14960 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14961 t end 14962 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14963 :end' >>confcache 14964 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14965 if test -w "$cache_file"; then 14966 if test "x$cache_file" != "x/dev/null"; then 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14968 $as_echo "$as_me: updating cache $cache_file" >&6;} 14969 if test ! -f "$cache_file" || test -h "$cache_file"; then 14970 cat confcache >"$cache_file" 14971 else 14972 case $cache_file in #( 14973 */* | ?:*) 14974 mv -f confcache "$cache_file"$$ && 14975 mv -f "$cache_file"$$ "$cache_file" ;; #( 14976 *) 14977 mv -f confcache "$cache_file" ;; 14978 esac 14979 fi 14980 fi 14981 else 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14983 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14984 fi 14985 fi 14986 rm -f confcache 14987 14988 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14989 # Let make expand exec_prefix. 14990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14991 14992 DEFS=-DHAVE_CONFIG_H 14993 14994 ac_libobjs= 14995 ac_ltlibobjs= 14996 U= 14997 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14998 # 1. Remove the extension, and $U if already installed. 14999 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15000 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15001 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15002 # will be set to the directory where LIBOBJS objects are built. 15003 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15004 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15005 done 15006 LIBOBJS=$ac_libobjs 15007 15008 LTLIBOBJS=$ac_ltlibobjs 15009 15010 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15012 $as_echo_n "checking that generated files are newer than configure... " >&6; } 15013 if test -n "$am_sleep_pid"; then 15014 # Hide warnings about reused PIDs. 15015 wait $am_sleep_pid 2>/dev/null 15016 fi 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15018 $as_echo "done" >&6; } 15019 if test -n "$EXEEXT"; then 15020 am__EXEEXT_TRUE= 15021 am__EXEEXT_FALSE='#' 15022 else 15023 am__EXEEXT_TRUE='#' 15024 am__EXEEXT_FALSE= 15025 fi 15026 15027 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15028 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15030 fi 15031 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15032 as_fn_error $? "conditional \"AMDEP\" was never defined. 15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15034 fi 15035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15036 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15037 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15038 fi 15039 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15040 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15041 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15042 fi 15043 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 15044 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 15045 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15046 fi 15047 if test -z "${COMPILER_IS_CLANG_TRUE}" && test -z "${COMPILER_IS_CLANG_FALSE}"; then 15048 as_fn_error $? "conditional \"COMPILER_IS_CLANG\" was never defined. 15049 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15050 fi 15051 if test -z "${COMPILER_IS_ICC_TRUE}" && test -z "${COMPILER_IS_ICC_FALSE}"; then 15052 as_fn_error $? "conditional \"COMPILER_IS_ICC\" was never defined. 15053 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15054 fi 15055 if test -z "${VGCONF_ARCHS_INCLUDE_X86_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_X86_FALSE}"; then 15056 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_X86\" was never defined. 15057 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15058 fi 15059 if test -z "${VGCONF_ARCHS_INCLUDE_AMD64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_AMD64_FALSE}"; then 15060 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_AMD64\" was never defined. 15061 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15062 fi 15063 if test -z "${VGCONF_ARCHS_INCLUDE_PPC32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC32_FALSE}"; then 15064 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC32\" was never defined. 15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15066 fi 15067 if test -z "${VGCONF_ARCHS_INCLUDE_PPC64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_PPC64_FALSE}"; then 15068 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_PPC64\" was never defined. 15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15070 fi 15071 if test -z "${VGCONF_ARCHS_INCLUDE_ARM_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM_FALSE}"; then 15072 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM\" was never defined. 15073 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15074 fi 15075 if test -z "${VGCONF_ARCHS_INCLUDE_ARM64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_ARM64_FALSE}"; then 15076 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_ARM64\" was never defined. 15077 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15078 fi 15079 if test -z "${VGCONF_ARCHS_INCLUDE_S390X_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_S390X_FALSE}"; then 15080 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_S390X\" was never defined. 15081 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15082 fi 15083 if test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS32_FALSE}"; then 15084 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS32\" was never defined. 15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15086 fi 15087 if test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_TRUE}" && test -z "${VGCONF_ARCHS_INCLUDE_MIPS64_FALSE}"; then 15088 as_fn_error $? "conditional \"VGCONF_ARCHS_INCLUDE_MIPS64\" was never defined. 15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15090 fi 15091 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_LINUX_FALSE}"; then 15092 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_LINUX\" was never defined. 15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15094 fi 15095 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX_FALSE}"; then 15096 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX\" was never defined. 15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15098 fi 15099 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX_FALSE}"; then 15100 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC32_LINUX\" was never defined. 15101 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15102 fi 15103 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX_FALSE}"; then 15104 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64BE_LINUX\" was never defined. 15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15106 fi 15107 if test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX_FALSE}"; then 15108 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_PPC64LE_LINUX\" was never defined. 15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15110 fi 15111 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM_LINUX_FALSE}"; then 15112 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM_LINUX\" was never defined. 15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15114 fi 15115 if test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX_FALSE}"; then 15116 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX\" was never defined. 15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15118 fi 15119 if test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_S390X_LINUX_FALSE}"; then 15120 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_S390X_LINUX\" was never defined. 15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15122 fi 15123 if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX_FALSE}"; then 15124 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS32_LINUX\" was never defined. 15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15126 fi 15127 if test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX_FALSE}"; then 15128 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_MIPS64_LINUX\" was never defined. 15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15130 fi 15131 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_DARWIN_FALSE}"; then 15132 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_DARWIN\" was never defined. 15133 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15134 fi 15135 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN_FALSE}"; then 15136 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN\" was never defined. 15137 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15138 fi 15139 if test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS_FALSE}"; then 15140 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS\" was never defined. 15141 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15142 fi 15143 if test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_TRUE}" && test -z "${VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS_FALSE}"; then 15144 as_fn_error $? "conditional \"VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS\" was never defined. 15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15146 fi 15147 if test -z "${VGCONF_OS_IS_LINUX_TRUE}" && test -z "${VGCONF_OS_IS_LINUX_FALSE}"; then 15148 as_fn_error $? "conditional \"VGCONF_OS_IS_LINUX\" was never defined. 15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15150 fi 15151 if test -z "${VGCONF_OS_IS_DARWIN_TRUE}" && test -z "${VGCONF_OS_IS_DARWIN_FALSE}"; then 15152 as_fn_error $? "conditional \"VGCONF_OS_IS_DARWIN\" was never defined. 15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15154 fi 15155 if test -z "${VGCONF_OS_IS_SOLARIS_TRUE}" && test -z "${VGCONF_OS_IS_SOLARIS_FALSE}"; then 15156 as_fn_error $? "conditional \"VGCONF_OS_IS_SOLARIS\" was never defined. 15157 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15158 fi 15159 if test -z "${VGCONF_HAVE_PLATFORM_SEC_TRUE}" && test -z "${VGCONF_HAVE_PLATFORM_SEC_FALSE}"; then 15160 as_fn_error $? "conditional \"VGCONF_HAVE_PLATFORM_SEC\" was never defined. 15161 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15162 fi 15163 if test -z "${VGCONF_PLATVARIANT_IS_VANILLA_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_VANILLA_FALSE}"; then 15164 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_VANILLA\" was never defined. 15165 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15166 fi 15167 if test -z "${VGCONF_PLATVARIANT_IS_ANDROID_TRUE}" && test -z "${VGCONF_PLATVARIANT_IS_ANDROID_FALSE}"; then 15168 as_fn_error $? "conditional \"VGCONF_PLATVARIANT_IS_ANDROID\" was never defined. 15169 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15170 fi 15171 if test -z "${HAVE_AT_FDCWD_TRUE}" && test -z "${HAVE_AT_FDCWD_FALSE}"; then 15172 as_fn_error $? "conditional \"HAVE_AT_FDCWD\" was never defined. 15173 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15174 fi 15175 if test -z "${HAVE_GNU_STPNCPY_TRUE}" && test -z "${HAVE_GNU_STPNCPY_FALSE}"; then 15176 as_fn_error $? "conditional \"HAVE_GNU_STPNCPY\" was never defined. 15177 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15178 fi 15179 if test -z "${HAS_ISA_2_05_TRUE}" && test -z "${HAS_ISA_2_05_FALSE}"; then 15180 as_fn_error $? "conditional \"HAS_ISA_2_05\" was never defined. 15181 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15182 fi 15183 if test -z "${HAS_ISA_2_06_TRUE}" && test -z "${HAS_ISA_2_06_FALSE}"; then 15184 as_fn_error $? "conditional \"HAS_ISA_2_06\" was never defined. 15185 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15186 fi 15187 if test -z "${HAS_ISA_2_07_TRUE}" && test -z "${HAS_ISA_2_07_FALSE}"; then 15188 as_fn_error $? "conditional \"HAS_ISA_2_07\" was never defined. 15189 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15190 fi 15191 if test -z "${HAS_ALTIVEC_TRUE}" && test -z "${HAS_ALTIVEC_FALSE}"; then 15192 as_fn_error $? "conditional \"HAS_ALTIVEC\" was never defined. 15193 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15194 fi 15195 if test -z "${HAS_VSX_TRUE}" && test -z "${HAS_VSX_FALSE}"; then 15196 as_fn_error $? "conditional \"HAS_VSX\" was never defined. 15197 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15198 fi 15199 if test -z "${HAS_DFP_TRUE}" && test -z "${HAS_DFP_FALSE}"; then 15200 as_fn_error $? "conditional \"HAS_DFP\" was never defined. 15201 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15202 fi 15203 if test -z "${BUILD_DFP_TESTS_TRUE}" && test -z "${BUILD_DFP_TESTS_FALSE}"; then 15204 as_fn_error $? "conditional \"BUILD_DFP_TESTS\" was never defined. 15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15206 fi 15207 if test -z "${SUPPORTS_HTM_TRUE}" && test -z "${SUPPORTS_HTM_FALSE}"; then 15208 as_fn_error $? "conditional \"SUPPORTS_HTM\" was never defined. 15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15210 fi 15211 if test -z "${HAS_ISA_3_00_TRUE}" && test -z "${HAS_ISA_3_00_FALSE}"; then 15212 as_fn_error $? "conditional \"HAS_ISA_3_00\" was never defined. 15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15214 fi 15215 if test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_TRUE}" && test -z "${HAVE_PTHREAD_CREATE_GLIBC_2_0_FALSE}"; then 15216 as_fn_error $? "conditional \"HAVE_PTHREAD_CREATE_GLIBC_2_0\" was never defined. 15217 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15218 fi 15219 if test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_TRUE}" && test -z "${HAVE_DLINFO_RTLD_DI_TLS_MODID_FALSE}"; then 15220 as_fn_error $? "conditional \"HAVE_DLINFO_RTLD_DI_TLS_MODID\" was never defined. 15221 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15222 fi 15223 if test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_TRUE}" && test -z "${CXX_CAN_INCLUDE_THREAD_HEADER_FALSE}"; then 15224 as_fn_error $? "conditional \"CXX_CAN_INCLUDE_THREAD_HEADER\" was never defined. 15225 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15226 fi 15227 if test -z "${HAS_MLONG_DOUBLE_128_TRUE}" && test -z "${HAS_MLONG_DOUBLE_128_FALSE}"; then 15228 as_fn_error $? "conditional \"HAS_MLONG_DOUBLE_128\" was never defined. 15229 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15230 fi 15231 if test -z "${DWARF4_TRUE}" && test -z "${DWARF4_FALSE}"; then 15232 as_fn_error $? "conditional \"DWARF4\" was never defined. 15233 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15234 fi 15235 if test -z "${GZ_ZLIB_TRUE}" && test -z "${GZ_ZLIB_FALSE}"; then 15236 as_fn_error $? "conditional \"GZ_ZLIB\" was never defined. 15237 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15238 fi 15239 if test -z "${GZ_ZLIB_GNU_TRUE}" && test -z "${GZ_ZLIB_GNU_FALSE}"; then 15240 as_fn_error $? "conditional \"GZ_ZLIB_GNU\" was never defined. 15241 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15242 fi 15243 if test -z "${HAVE_NESTED_FUNCTIONS_TRUE}" && test -z "${HAVE_NESTED_FUNCTIONS_FALSE}"; then 15244 as_fn_error $? "conditional \"HAVE_NESTED_FUNCTIONS\" was never defined. 15245 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15246 fi 15247 if test -z "${HAVE_ASM_CONSTRAINT_P_TRUE}" && test -z "${HAVE_ASM_CONSTRAINT_P_FALSE}"; then 15248 as_fn_error $? "conditional \"HAVE_ASM_CONSTRAINT_P\" was never defined. 15249 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15250 fi 15251 if test -z "${BUILD_SSE3_TESTS_TRUE}" && test -z "${BUILD_SSE3_TESTS_FALSE}"; then 15252 as_fn_error $? "conditional \"BUILD_SSE3_TESTS\" was never defined. 15253 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15254 fi 15255 if test -z "${BUILD_SSSE3_TESTS_TRUE}" && test -z "${BUILD_SSSE3_TESTS_FALSE}"; then 15256 as_fn_error $? "conditional \"BUILD_SSSE3_TESTS\" was never defined. 15257 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15258 fi 15259 if test -z "${BUILD_PCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_PCLMULQDQ_TESTS_FALSE}"; then 15260 as_fn_error $? "conditional \"BUILD_PCLMULQDQ_TESTS\" was never defined. 15261 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15262 fi 15263 if test -z "${BUILD_VPCLMULQDQ_TESTS_TRUE}" && test -z "${BUILD_VPCLMULQDQ_TESTS_FALSE}"; then 15264 as_fn_error $? "conditional \"BUILD_VPCLMULQDQ_TESTS\" was never defined. 15265 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15266 fi 15267 if test -z "${BUILD_FMA4_TESTS_TRUE}" && test -z "${BUILD_FMA4_TESTS_FALSE}"; then 15268 as_fn_error $? "conditional \"BUILD_FMA4_TESTS\" was never defined. 15269 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15270 fi 15271 if test -z "${BUILD_LZCNT_TESTS_TRUE}" && test -z "${BUILD_LZCNT_TESTS_FALSE}"; then 15272 as_fn_error $? "conditional \"BUILD_LZCNT_TESTS\" was never defined. 15273 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15274 fi 15275 if test -z "${BUILD_LOOPNEL_TESTS_TRUE}" && test -z "${BUILD_LOOPNEL_TESTS_FALSE}"; then 15276 as_fn_error $? "conditional \"BUILD_LOOPNEL_TESTS\" was never defined. 15277 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15278 fi 15279 if test -z "${BUILD_ADDR32_TESTS_TRUE}" && test -z "${BUILD_ADDR32_TESTS_FALSE}"; then 15280 as_fn_error $? "conditional \"BUILD_ADDR32_TESTS\" was never defined. 15281 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15282 fi 15283 if test -z "${BUILD_SSE42_TESTS_TRUE}" && test -z "${BUILD_SSE42_TESTS_FALSE}"; then 15284 as_fn_error $? "conditional \"BUILD_SSE42_TESTS\" was never defined. 15285 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15286 fi 15287 if test -z "${BUILD_AVX_TESTS_TRUE}" && test -z "${BUILD_AVX_TESTS_FALSE}"; then 15288 as_fn_error $? "conditional \"BUILD_AVX_TESTS\" was never defined. 15289 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15290 fi 15291 if test -z "${BUILD_AVX2_TESTS_TRUE}" && test -z "${BUILD_AVX2_TESTS_FALSE}"; then 15292 as_fn_error $? "conditional \"BUILD_AVX2_TESTS\" was never defined. 15293 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15294 fi 15295 if test -z "${BUILD_TSX_TESTS_TRUE}" && test -z "${BUILD_TSX_TESTS_FALSE}"; then 15296 as_fn_error $? "conditional \"BUILD_TSX_TESTS\" was never defined. 15297 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15298 fi 15299 if test -z "${BUILD_BMI_TESTS_TRUE}" && test -z "${BUILD_BMI_TESTS_FALSE}"; then 15300 as_fn_error $? "conditional \"BUILD_BMI_TESTS\" was never defined. 15301 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15302 fi 15303 if test -z "${BUILD_FMA_TESTS_TRUE}" && test -z "${BUILD_FMA_TESTS_FALSE}"; then 15304 as_fn_error $? "conditional \"BUILD_FMA_TESTS\" was never defined. 15305 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15306 fi 15307 if test -z "${BUILD_MPX_TESTS_TRUE}" && test -z "${BUILD_MPX_TESTS_FALSE}"; then 15308 as_fn_error $? "conditional \"BUILD_MPX_TESTS\" was never defined. 15309 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15310 fi 15311 if test -z "${BUILD_ADX_TESTS_TRUE}" && test -z "${BUILD_ADX_TESTS_FALSE}"; then 15312 as_fn_error $? "conditional \"BUILD_ADX_TESTS\" was never defined. 15313 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15314 fi 15315 if test -z "${BUILD_MOVBE_TESTS_TRUE}" && test -z "${BUILD_MOVBE_TESTS_FALSE}"; then 15316 as_fn_error $? "conditional \"BUILD_MOVBE_TESTS\" was never defined. 15317 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15318 fi 15319 if test -z "${BUILD_IFUNC_TESTS_TRUE}" && test -z "${BUILD_IFUNC_TESTS_FALSE}"; then 15320 as_fn_error $? "conditional \"BUILD_IFUNC_TESTS\" was never defined. 15321 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15322 fi 15323 if test -z "${BUILD_ARMV8_CRC_TESTS_TRUE}" && test -z "${BUILD_ARMV8_CRC_TESTS_FALSE}"; then 15324 as_fn_error $? "conditional \"BUILD_ARMV8_CRC_TESTS\" was never defined. 15325 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15326 fi 15327 if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then 15328 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined. 15329 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15330 fi 15331 if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then 15332 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined. 15333 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15334 fi 15335 if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then 15336 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined. 15337 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15338 fi 15339 if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then 15340 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined. 15341 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15342 fi 15343 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then 15344 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined. 15345 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15346 fi 15347 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then 15348 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined. 15349 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15350 fi 15351 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then 15352 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined. 15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15354 fi 15355 if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then 15356 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined. 15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15358 fi 15359 if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then 15360 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined. 15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15362 fi 15363 if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then 15364 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined. 15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15366 fi 15367 if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then 15368 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined. 15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15370 fi 15371 if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then 15372 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined. 15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15374 fi 15375 if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then 15376 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined. 15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15378 fi 15379 if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then 15380 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined. 15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15382 fi 15383 if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then 15384 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined. 15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15386 fi 15387 if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then 15388 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined. 15389 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15390 fi 15391 if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then 15392 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined. 15393 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15394 fi 15395 if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then 15396 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined. 15397 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15398 fi 15399 if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then 15400 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined. 15401 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15402 fi 15403 if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then 15404 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined. 15405 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15406 fi 15407 if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then 15408 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined. 15409 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15410 fi 15411 if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then 15412 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined. 15413 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15414 fi 15415 if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then 15416 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined. 15417 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15418 fi 15419 if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then 15420 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined. 15421 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15422 fi 15423 if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then 15424 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined. 15425 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15426 fi 15427 if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then 15428 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined. 15429 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15430 fi 15431 if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then 15432 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined. 15433 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15434 fi 15435 if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then 15436 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined. 15437 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15438 fi 15439 if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then 15440 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined. 15441 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15442 fi 15443 if test -z "${SOLARIS_SUN_STUDIO_AS_TRUE}" && test -z "${SOLARIS_SUN_STUDIO_AS_FALSE}"; then 15444 as_fn_error $? "conditional \"SOLARIS_SUN_STUDIO_AS\" was never defined. 15445 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15446 fi 15447 if test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_TRUE}" && test -z "${SOLARIS_XPG_SYMBOLS_PRESENT_FALSE}"; then 15448 as_fn_error $? "conditional \"SOLARIS_XPG_SYMBOLS_PRESENT\" was never defined. 15449 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15450 fi 15451 if test -z "${SOLARIS_PROC_CMDLINE_TRUE}" && test -z "${SOLARIS_PROC_CMDLINE_FALSE}"; then 15452 as_fn_error $? "conditional \"SOLARIS_PROC_CMDLINE\" was never defined. 15453 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15454 fi 15455 if test -z "${SOLARIS_OLD_SYSCALLS_TRUE}" && test -z "${SOLARIS_OLD_SYSCALLS_FALSE}"; then 15456 as_fn_error $? "conditional \"SOLARIS_OLD_SYSCALLS\" was never defined. 15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15458 fi 15459 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_FALSE}"; then 15460 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL\" was never defined. 15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15462 fi 15463 if test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_TRUE}" && test -z "${SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID_FALSE}"; then 15464 as_fn_error $? "conditional \"SOLARIS_LWP_SIGQUEUE_SYSCALL_TAKES_PID\" was never defined. 15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15466 fi 15467 if test -z "${SOLARIS_LWP_NAME_SYSCALL_TRUE}" && test -z "${SOLARIS_LWP_NAME_SYSCALL_FALSE}"; then 15468 as_fn_error $? "conditional \"SOLARIS_LWP_NAME_SYSCALL\" was never defined. 15469 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15470 fi 15471 if test -z "${SOLARIS_GETRANDOM_SYSCALL_TRUE}" && test -z "${SOLARIS_GETRANDOM_SYSCALL_FALSE}"; then 15472 as_fn_error $? "conditional \"SOLARIS_GETRANDOM_SYSCALL\" was never defined. 15473 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15474 fi 15475 if test -z "${SOLARIS_ZONE_DEFUNCT_TRUE}" && test -z "${SOLARIS_ZONE_DEFUNCT_FALSE}"; then 15476 as_fn_error $? "conditional \"SOLARIS_ZONE_DEFUNCT\" was never defined. 15477 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15478 fi 15479 if test -z "${SOLARIS_AUDITON_STAT_TRUE}" && test -z "${SOLARIS_AUDITON_STAT_FALSE}"; then 15480 as_fn_error $? "conditional \"SOLARIS_AUDITON_STAT\" was never defined. 15481 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15482 fi 15483 if test -z "${SOLARIS_SHM_NEW_TRUE}" && test -z "${SOLARIS_SHM_NEW_FALSE}"; then 15484 as_fn_error $? "conditional \"SOLARIS_SHM_NEW\" was never defined. 15485 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15486 fi 15487 if test -z "${SOLARIS_PRXREGSET_T_TRUE}" && test -z "${SOLARIS_PRXREGSET_T_FALSE}"; then 15488 as_fn_error $? "conditional \"SOLARIS_PRXREGSET_T\" was never defined. 15489 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15490 fi 15491 if test -z "${SOLARIS_FREALPATHAT_SYSCALL_TRUE}" && test -z "${SOLARIS_FREALPATHAT_SYSCALL_FALSE}"; then 15492 as_fn_error $? "conditional \"SOLARIS_FREALPATHAT_SYSCALL\" was never defined. 15493 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15494 fi 15495 if test -z "${SOLARIS_UUIDSYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UUIDSYS_SYSCALL_FALSE}"; then 15496 as_fn_error $? "conditional \"SOLARIS_UUIDSYS_SYSCALL\" was never defined. 15497 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15498 fi 15499 if test -z "${SOLARIS_TNDB_GET_TNIP_TRUE}" && test -z "${SOLARIS_TNDB_GET_TNIP_FALSE}"; then 15500 as_fn_error $? "conditional \"SOLARIS_TNDB_GET_TNIP\" was never defined. 15501 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15502 fi 15503 if test -z "${SOLARIS_TSOL_CLEARANCE_TRUE}" && test -z "${SOLARIS_TSOL_CLEARANCE_FALSE}"; then 15504 as_fn_error $? "conditional \"SOLARIS_TSOL_CLEARANCE\" was never defined. 15505 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15506 fi 15507 if test -z "${SOLARIS_PSET_GET_NAME_TRUE}" && test -z "${SOLARIS_PSET_GET_NAME_FALSE}"; then 15508 as_fn_error $? "conditional \"SOLARIS_PSET_GET_NAME\" was never defined. 15509 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15510 fi 15511 if test -z "${SOLARIS_UTIMESYS_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMESYS_SYSCALL_FALSE}"; then 15512 as_fn_error $? "conditional \"SOLARIS_UTIMESYS_SYSCALL\" was never defined. 15513 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15514 fi 15515 if test -z "${SOLARIS_UTIMENSAT_SYSCALL_TRUE}" && test -z "${SOLARIS_UTIMENSAT_SYSCALL_FALSE}"; then 15516 as_fn_error $? "conditional \"SOLARIS_UTIMENSAT_SYSCALL\" was never defined. 15517 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15518 fi 15519 if test -z "${SOLARIS_SPAWN_SYSCALL_TRUE}" && test -z "${SOLARIS_SPAWN_SYSCALL_FALSE}"; then 15520 as_fn_error $? "conditional \"SOLARIS_SPAWN_SYSCALL\" was never defined. 15521 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15522 fi 15523 if test -z "${SOLARIS_MODCTL_MODNVL_TRUE}" && test -z "${SOLARIS_MODCTL_MODNVL_FALSE}"; then 15524 as_fn_error $? "conditional \"SOLARIS_MODCTL_MODNVL\" was never defined. 15525 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15526 fi 15527 if test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_TRUE}" && test -z "${SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE_FALSE}"; then 15528 as_fn_error $? "conditional \"SOLARIS_NSCD_DOOR_SYSTEM_VOLATILE\" was never defined. 15529 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15530 fi 15531 if test -z "${SOLARIS_GETHRT_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETHRT_FASTTRAP_FALSE}"; then 15532 as_fn_error $? "conditional \"SOLARIS_GETHRT_FASTTRAP\" was never defined. 15533 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15534 fi 15535 if test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_TRUE}" && test -z "${SOLARIS_GETZONEOFFSET_FASTTRAP_FALSE}"; then 15536 as_fn_error $? "conditional \"SOLARIS_GETZONEOFFSET_FASTTRAP\" was never defined. 15537 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15538 fi 15539 if test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_TRUE}" && test -z "${SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS_FALSE}"; then 15540 as_fn_error $? "conditional \"SOLARIS_EXECVE_SYSCALL_TAKES_FLAGS\" was never defined. 15541 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15542 fi 15543 if test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ADDR_FALSE}"; then 15544 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ADDR\" was never defined. 15545 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15546 fi 15547 if test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_TRUE}" && test -z "${SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR_FALSE}"; then 15548 as_fn_error $? "conditional \"SOLARIS_RESERVE_SYSSTAT_ZONE_ADDR\" was never defined. 15549 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15550 fi 15551 if test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_TRUE}" && test -z "${SOLARIS_SYSTEM_STATS_SYSCALL_FALSE}"; then 15552 as_fn_error $? "conditional \"SOLARIS_SYSTEM_STATS_SYSCALL\" was never defined. 15553 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15554 fi 15555 if test -z "${HAVE_PTHREAD_BARRIER_TRUE}" && test -z "${HAVE_PTHREAD_BARRIER_FALSE}"; then 15556 as_fn_error $? "conditional \"HAVE_PTHREAD_BARRIER\" was never defined. 15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15558 fi 15559 if test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_TRUE}" && test -z "${HAVE_PTHREAD_MUTEX_TIMEDLOCK_FALSE}"; then 15560 as_fn_error $? "conditional \"HAVE_PTHREAD_MUTEX_TIMEDLOCK\" was never defined. 15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15562 fi 15563 if test -z "${HAVE_PTHREAD_SPINLOCK_TRUE}" && test -z "${HAVE_PTHREAD_SPINLOCK_FALSE}"; then 15564 as_fn_error $? "conditional \"HAVE_PTHREAD_SPINLOCK\" was never defined. 15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15566 fi 15567 if test -z "${HAVE_PTHREAD_SETNAME_NP_TRUE}" && test -z "${HAVE_PTHREAD_SETNAME_NP_FALSE}"; then 15568 as_fn_error $? "conditional \"HAVE_PTHREAD_SETNAME_NP\" was never defined. 15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15570 fi 15571 if test -z "${BUILD_MPIWRAP_PRI_TRUE}" && test -z "${BUILD_MPIWRAP_PRI_FALSE}"; then 15572 as_fn_error $? "conditional \"BUILD_MPIWRAP_PRI\" was never defined. 15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15574 fi 15575 if test -z "${BUILD_MPIWRAP_SEC_TRUE}" && test -z "${BUILD_MPIWRAP_SEC_FALSE}"; then 15576 as_fn_error $? "conditional \"BUILD_MPIWRAP_SEC\" was never defined. 15577 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15578 fi 15579 if test -z "${HAVE_BOOST_1_35_TRUE}" && test -z "${HAVE_BOOST_1_35_FALSE}"; then 15580 as_fn_error $? "conditional \"HAVE_BOOST_1_35\" was never defined. 15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15582 fi 15583 if test -z "${HAVE_OPENMP_TRUE}" && test -z "${HAVE_OPENMP_FALSE}"; then 15584 as_fn_error $? "conditional \"HAVE_OPENMP\" was never defined. 15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15586 fi 15587 if test -z "${HAVE_BUILTIN_ATOMIC_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_FALSE}"; then 15588 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC\" was never defined. 15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15590 fi 15591 if test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_SECONDARY_FALSE}"; then 15592 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_SECONDARY\" was never defined. 15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15594 fi 15595 if test -z "${HAVE_BUILTIN_ATOMIC64_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC64_FALSE}"; then 15596 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC64\" was never defined. 15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15598 fi 15599 if test -z "${HAVE_BUILTIN_ATOMIC_CXX_TRUE}" && test -z "${HAVE_BUILTIN_ATOMIC_CXX_FALSE}"; then 15600 as_fn_error $? "conditional \"HAVE_BUILTIN_ATOMIC_CXX\" was never defined. 15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15602 fi 15603 if test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_PRIMARY_FALSE}"; then 15604 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_PRIMARY\" was never defined. 15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15606 fi 15607 if test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_TRUE}" && test -z "${ENABLE_LINUX_TICKET_LOCK_SECONDARY_FALSE}"; then 15608 as_fn_error $? "conditional \"ENABLE_LINUX_TICKET_LOCK_SECONDARY\" was never defined. 15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15610 fi 15611 if test -z "${HAVE_SHARED_POINTER_ANNOTATION_TRUE}" && test -z "${HAVE_SHARED_POINTER_ANNOTATION_FALSE}"; then 15612 as_fn_error $? "conditional \"HAVE_SHARED_POINTER_ANNOTATION\" was never defined. 15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5 15614 fi 15615 15616 : "${CONFIG_STATUS=./config.status}" 15617 ac_write_fail=0 15618 ac_clean_files_save=$ac_clean_files 15619 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15622 as_write_fail=0 15623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15624 #! $SHELL 15625 # Generated by $as_me. 15626 # Run this file to recreate the current configuration. 15627 # Compiler output produced by configure, useful for debugging 15628 # configure, is in config.log if it exists. 15629 15630 debug=false 15631 ac_cs_recheck=false 15632 ac_cs_silent=false 15633 15634 SHELL=\${CONFIG_SHELL-$SHELL} 15635 export SHELL 15636 _ASEOF 15637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15638 ## -------------------- ## 15639 ## M4sh Initialization. ## 15640 ## -------------------- ## 15641 15642 # Be more Bourne compatible 15643 DUALCASE=1; export DUALCASE # for MKS sh 15644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15645 emulate sh 15646 NULLCMD=: 15647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15648 # is contrary to our usage. Disable this feature. 15649 alias -g '${1+"$@"}'='"$@"' 15650 setopt NO_GLOB_SUBST 15651 else 15652 case `(set -o) 2>/dev/null` in #( 15653 *posix*) : 15654 set -o posix ;; #( 15655 *) : 15656 ;; 15657 esac 15658 fi 15659 15660 15661 as_nl=' 15662 ' 15663 export as_nl 15664 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15668 # Prefer a ksh shell builtin over an external printf program on Solaris, 15669 # but without wasting forks for bash or zsh. 15670 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15672 as_echo='print -r --' 15673 as_echo_n='print -rn --' 15674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15675 as_echo='printf %s\n' 15676 as_echo_n='printf %s' 15677 else 15678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15680 as_echo_n='/usr/ucb/echo -n' 15681 else 15682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15683 as_echo_n_body='eval 15684 arg=$1; 15685 case $arg in #( 15686 *"$as_nl"*) 15687 expr "X$arg" : "X\\(.*\\)$as_nl"; 15688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15689 esac; 15690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15691 ' 15692 export as_echo_n_body 15693 as_echo_n='sh -c $as_echo_n_body as_echo' 15694 fi 15695 export as_echo_body 15696 as_echo='sh -c $as_echo_body as_echo' 15697 fi 15698 15699 # The user is always right. 15700 if test "${PATH_SEPARATOR+set}" != set; then 15701 PATH_SEPARATOR=: 15702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15704 PATH_SEPARATOR=';' 15705 } 15706 fi 15707 15708 15709 # IFS 15710 # We need space, tab and new line, in precisely that order. Quoting is 15711 # there to prevent editors from complaining about space-tab. 15712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15713 # splitting by setting IFS to empty value.) 15714 IFS=" "" $as_nl" 15715 15716 # Find who we are. Look in the path if we contain no directory separator. 15717 as_myself= 15718 case $0 in #(( 15719 *[\\/]* ) as_myself=$0 ;; 15720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15721 for as_dir in $PATH 15722 do 15723 IFS=$as_save_IFS 15724 test -z "$as_dir" && as_dir=. 15725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15726 done 15727 IFS=$as_save_IFS 15728 15729 ;; 15730 esac 15731 # We did not find ourselves, most probably we were run as `sh COMMAND' 15732 # in which case we are not to be found in the path. 15733 if test "x$as_myself" = x; then 15734 as_myself=$0 15735 fi 15736 if test ! -f "$as_myself"; then 15737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15738 exit 1 15739 fi 15740 15741 # Unset variables that we do not need and which cause bugs (e.g. in 15742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15743 # suppresses any "Segmentation fault" message there. '((' could 15744 # trigger a bug in pdksh 5.2.14. 15745 for as_var in BASH_ENV ENV MAIL MAILPATH 15746 do eval test x\${$as_var+set} = xset \ 15747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15748 done 15749 PS1='$ ' 15750 PS2='> ' 15751 PS4='+ ' 15752 15753 # NLS nuisances. 15754 LC_ALL=C 15755 export LC_ALL 15756 LANGUAGE=C 15757 export LANGUAGE 15758 15759 # CDPATH. 15760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15761 15762 15763 # as_fn_error STATUS ERROR [LINENO LOG_FD] 15764 # ---------------------------------------- 15765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15767 # script with STATUS, using 1 if that was 0. 15768 as_fn_error () 15769 { 15770 as_status=$1; test $as_status -eq 0 && as_status=1 15771 if test "$4"; then 15772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15774 fi 15775 $as_echo "$as_me: error: $2" >&2 15776 as_fn_exit $as_status 15777 } # as_fn_error 15778 15779 15780 # as_fn_set_status STATUS 15781 # ----------------------- 15782 # Set $? to STATUS, without forking. 15783 as_fn_set_status () 15784 { 15785 return $1 15786 } # as_fn_set_status 15787 15788 # as_fn_exit STATUS 15789 # ----------------- 15790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15791 as_fn_exit () 15792 { 15793 set +e 15794 as_fn_set_status $1 15795 exit $1 15796 } # as_fn_exit 15797 15798 # as_fn_unset VAR 15799 # --------------- 15800 # Portably unset VAR. 15801 as_fn_unset () 15802 { 15803 { eval $1=; unset $1;} 15804 } 15805 as_unset=as_fn_unset 15806 # as_fn_append VAR VALUE 15807 # ---------------------- 15808 # Append the text in VALUE to the end of the definition contained in VAR. Take 15809 # advantage of any shell optimizations that allow amortized linear growth over 15810 # repeated appends, instead of the typical quadratic growth present in naive 15811 # implementations. 15812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15813 eval 'as_fn_append () 15814 { 15815 eval $1+=\$2 15816 }' 15817 else 15818 as_fn_append () 15819 { 15820 eval $1=\$$1\$2 15821 } 15822 fi # as_fn_append 15823 15824 # as_fn_arith ARG... 15825 # ------------------ 15826 # Perform arithmetic evaluation on the ARGs, and store the result in the 15827 # global $as_val. Take advantage of shells that can avoid forks. The arguments 15828 # must be portable across $(()) and expr. 15829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15830 eval 'as_fn_arith () 15831 { 15832 as_val=$(( $* )) 15833 }' 15834 else 15835 as_fn_arith () 15836 { 15837 as_val=`expr "$@" || test $? -eq 1` 15838 } 15839 fi # as_fn_arith 15840 15841 15842 if expr a : '\(a\)' >/dev/null 2>&1 && 15843 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15844 as_expr=expr 15845 else 15846 as_expr=false 15847 fi 15848 15849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15850 as_basename=basename 15851 else 15852 as_basename=false 15853 fi 15854 15855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15856 as_dirname=dirname 15857 else 15858 as_dirname=false 15859 fi 15860 15861 as_me=`$as_basename -- "$0" || 15862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15863 X"$0" : 'X\(//\)$' \| \ 15864 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15865 $as_echo X/"$0" | 15866 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15867 s//\1/ 15868 q 15869 } 15870 /^X\/\(\/\/\)$/{ 15871 s//\1/ 15872 q 15873 } 15874 /^X\/\(\/\).*/{ 15875 s//\1/ 15876 q 15877 } 15878 s/.*/./; q'` 15879 15880 # Avoid depending upon Character Ranges. 15881 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15884 as_cr_digits='0123456789' 15885 as_cr_alnum=$as_cr_Letters$as_cr_digits 15886 15887 ECHO_C= ECHO_N= ECHO_T= 15888 case `echo -n x` in #((((( 15889 -n*) 15890 case `echo 'xy\c'` in 15891 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15892 xy) ECHO_C='\c';; 15893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15894 ECHO_T=' ';; 15895 esac;; 15896 *) 15897 ECHO_N='-n';; 15898 esac 15899 15900 rm -f conf$$ conf$$.exe conf$$.file 15901 if test -d conf$$.dir; then 15902 rm -f conf$$.dir/conf$$.file 15903 else 15904 rm -f conf$$.dir 15905 mkdir conf$$.dir 2>/dev/null 15906 fi 15907 if (echo >conf$$.file) 2>/dev/null; then 15908 if ln -s conf$$.file conf$$ 2>/dev/null; then 15909 as_ln_s='ln -s' 15910 # ... but there are two gotchas: 15911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15913 # In both cases, we have to default to `cp -pR'. 15914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15915 as_ln_s='cp -pR' 15916 elif ln conf$$.file conf$$ 2>/dev/null; then 15917 as_ln_s=ln 15918 else 15919 as_ln_s='cp -pR' 15920 fi 15921 else 15922 as_ln_s='cp -pR' 15923 fi 15924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15925 rmdir conf$$.dir 2>/dev/null 15926 15927 15928 # as_fn_mkdir_p 15929 # ------------- 15930 # Create "$as_dir" as a directory, including parents if necessary. 15931 as_fn_mkdir_p () 15932 { 15933 15934 case $as_dir in #( 15935 -*) as_dir=./$as_dir;; 15936 esac 15937 test -d "$as_dir" || eval $as_mkdir_p || { 15938 as_dirs= 15939 while :; do 15940 case $as_dir in #( 15941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15942 *) as_qdir=$as_dir;; 15943 esac 15944 as_dirs="'$as_qdir' $as_dirs" 15945 as_dir=`$as_dirname -- "$as_dir" || 15946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15947 X"$as_dir" : 'X\(//\)[^/]' \| \ 15948 X"$as_dir" : 'X\(//\)$' \| \ 15949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15950 $as_echo X"$as_dir" | 15951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15952 s//\1/ 15953 q 15954 } 15955 /^X\(\/\/\)[^/].*/{ 15956 s//\1/ 15957 q 15958 } 15959 /^X\(\/\/\)$/{ 15960 s//\1/ 15961 q 15962 } 15963 /^X\(\/\).*/{ 15964 s//\1/ 15965 q 15966 } 15967 s/.*/./; q'` 15968 test -d "$as_dir" && break 15969 done 15970 test -z "$as_dirs" || eval "mkdir $as_dirs" 15971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15972 15973 15974 } # as_fn_mkdir_p 15975 if mkdir -p . 2>/dev/null; then 15976 as_mkdir_p='mkdir -p "$as_dir"' 15977 else 15978 test -d ./-p && rmdir ./-p 15979 as_mkdir_p=false 15980 fi 15981 15982 15983 # as_fn_executable_p FILE 15984 # ----------------------- 15985 # Test if FILE is an executable regular file. 15986 as_fn_executable_p () 15987 { 15988 test -f "$1" && test -x "$1" 15989 } # as_fn_executable_p 15990 as_test_x='test -x' 15991 as_executable_p=as_fn_executable_p 15992 15993 # Sed expression to map a string onto a valid CPP name. 15994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15995 15996 # Sed expression to map a string onto a valid variable name. 15997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15998 15999 16000 exec 6>&1 16001 ## ----------------------------------- ## 16002 ## Main body of $CONFIG_STATUS script. ## 16003 ## ----------------------------------- ## 16004 _ASEOF 16005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16006 16007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16008 # Save the log message, to keep $0 and so on meaningful, and to 16009 # report actual input values of CONFIG_FILES etc. instead of their 16010 # values after options handling. 16011 ac_log=" 16012 This file was extended by Valgrind $as_me 3.13.0, which was 16013 generated by GNU Autoconf 2.69. Invocation command line was 16014 16015 CONFIG_FILES = $CONFIG_FILES 16016 CONFIG_HEADERS = $CONFIG_HEADERS 16017 CONFIG_LINKS = $CONFIG_LINKS 16018 CONFIG_COMMANDS = $CONFIG_COMMANDS 16019 $ $0 $@ 16020 16021 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16022 " 16023 16024 _ACEOF 16025 16026 case $ac_config_files in *" 16027 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16028 esac 16029 16030 case $ac_config_headers in *" 16031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16032 esac 16033 16034 16035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16036 # Files that config.status was made for. 16037 config_files="$ac_config_files" 16038 config_headers="$ac_config_headers" 16039 config_commands="$ac_config_commands" 16040 16041 _ACEOF 16042 16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16044 ac_cs_usage="\ 16045 \`$as_me' instantiates files and other configuration actions 16046 from templates according to the current configuration. Unless the files 16047 and actions are specified as TAGs, all are instantiated by default. 16048 16049 Usage: $0 [OPTION]... [TAG]... 16050 16051 -h, --help print this help, then exit 16052 -V, --version print version number and configuration settings, then exit 16053 --config print configuration, then exit 16054 -q, --quiet, --silent 16055 do not print progress messages 16056 -d, --debug don't remove temporary files 16057 --recheck update $as_me by reconfiguring in the same conditions 16058 --file=FILE[:TEMPLATE] 16059 instantiate the configuration file FILE 16060 --header=FILE[:TEMPLATE] 16061 instantiate the configuration header FILE 16062 16063 Configuration files: 16064 $config_files 16065 16066 Configuration headers: 16067 $config_headers 16068 16069 Configuration commands: 16070 $config_commands 16071 16072 Report bugs to <valgrind-users@lists.sourceforge.net>." 16073 16074 _ACEOF 16075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16077 ac_cs_version="\\ 16078 Valgrind config.status 3.13.0 16079 configured by $0, generated by GNU Autoconf 2.69, 16080 with options \\"\$ac_cs_config\\" 16081 16082 Copyright (C) 2012 Free Software Foundation, Inc. 16083 This config.status script is free software; the Free Software Foundation 16084 gives unlimited permission to copy, distribute and modify it." 16085 16086 ac_pwd='$ac_pwd' 16087 srcdir='$srcdir' 16088 INSTALL='$INSTALL' 16089 MKDIR_P='$MKDIR_P' 16090 AWK='$AWK' 16091 test -n "\$AWK" || AWK=awk 16092 _ACEOF 16093 16094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16095 # The default lists apply if the user does not specify any file. 16096 ac_need_defaults=: 16097 while test $# != 0 16098 do 16099 case $1 in 16100 --*=?*) 16101 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16103 ac_shift=: 16104 ;; 16105 --*=) 16106 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16107 ac_optarg= 16108 ac_shift=: 16109 ;; 16110 *) 16111 ac_option=$1 16112 ac_optarg=$2 16113 ac_shift=shift 16114 ;; 16115 esac 16116 16117 case $ac_option in 16118 # Handling of the options. 16119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16120 ac_cs_recheck=: ;; 16121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16122 $as_echo "$ac_cs_version"; exit ;; 16123 --config | --confi | --conf | --con | --co | --c ) 16124 $as_echo "$ac_cs_config"; exit ;; 16125 --debug | --debu | --deb | --de | --d | -d ) 16126 debug=: ;; 16127 --file | --fil | --fi | --f ) 16128 $ac_shift 16129 case $ac_optarg in 16130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16131 '') as_fn_error $? "missing file argument" ;; 16132 esac 16133 as_fn_append CONFIG_FILES " '$ac_optarg'" 16134 ac_need_defaults=false;; 16135 --header | --heade | --head | --hea ) 16136 $ac_shift 16137 case $ac_optarg in 16138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16139 esac 16140 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16141 ac_need_defaults=false;; 16142 --he | --h) 16143 # Conflict between --help and --header 16144 as_fn_error $? "ambiguous option: \`$1' 16145 Try \`$0 --help' for more information.";; 16146 --help | --hel | -h ) 16147 $as_echo "$ac_cs_usage"; exit ;; 16148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16149 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16150 ac_cs_silent=: ;; 16151 16152 # This is an error. 16153 -*) as_fn_error $? "unrecognized option: \`$1' 16154 Try \`$0 --help' for more information." ;; 16155 16156 *) as_fn_append ac_config_targets " $1" 16157 ac_need_defaults=false ;; 16158 16159 esac 16160 shift 16161 done 16162 16163 ac_configure_extra_args= 16164 16165 if $ac_cs_silent; then 16166 exec 6>/dev/null 16167 ac_configure_extra_args="$ac_configure_extra_args --silent" 16168 fi 16169 16170 _ACEOF 16171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16172 if \$ac_cs_recheck; then 16173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16174 shift 16175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16176 CONFIG_SHELL='$SHELL' 16177 export CONFIG_SHELL 16178 exec "\$@" 16179 fi 16180 16181 _ACEOF 16182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16183 exec 5>>config.log 16184 { 16185 echo 16186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16187 ## Running $as_me. ## 16188 _ASBOX 16189 $as_echo "$ac_log" 16190 } >&5 16191 16192 _ACEOF 16193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16194 # 16195 # INIT-COMMANDS 16196 # 16197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16198 16199 _ACEOF 16200 16201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16202 16203 # Handling of arguments. 16204 for ac_config_target in $ac_config_targets 16205 do 16206 case $ac_config_target in 16207 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 16208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16210 "VEX/Makefile") CONFIG_FILES="$CONFIG_FILES VEX/Makefile:Makefile.vex.in" ;; 16211 "valgrind.spec") CONFIG_FILES="$CONFIG_FILES valgrind.spec" ;; 16212 "valgrind.pc") CONFIG_FILES="$CONFIG_FILES valgrind.pc" ;; 16213 "glibc-2.X.supp") CONFIG_FILES="$CONFIG_FILES glibc-2.X.supp" ;; 16214 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 16215 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 16216 "tests/vg_regtest") CONFIG_FILES="$CONFIG_FILES tests/vg_regtest" ;; 16217 "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;; 16218 "perf/vg_perf") CONFIG_FILES="$CONFIG_FILES perf/vg_perf" ;; 16219 "gdbserver_tests/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/Makefile" ;; 16220 "gdbserver_tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES gdbserver_tests/solaris/Makefile" ;; 16221 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 16222 "auxprogs/Makefile") CONFIG_FILES="$CONFIG_FILES auxprogs/Makefile" ;; 16223 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;; 16224 "coregrind/Makefile") CONFIG_FILES="$CONFIG_FILES coregrind/Makefile" ;; 16225 "memcheck/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/Makefile" ;; 16226 "memcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/Makefile" ;; 16227 "memcheck/tests/common/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/common/Makefile" ;; 16228 "memcheck/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64/Makefile" ;; 16229 "memcheck/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86/Makefile" ;; 16230 "memcheck/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/linux/Makefile" ;; 16231 "memcheck/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/darwin/Makefile" ;; 16232 "memcheck/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/solaris/Makefile" ;; 16233 "memcheck/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-linux/Makefile" ;; 16234 "memcheck/tests/arm64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/arm64-linux/Makefile" ;; 16235 "memcheck/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-linux/Makefile" ;; 16236 "memcheck/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/amd64-solaris/Makefile" ;; 16237 "memcheck/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/x86-solaris/Makefile" ;; 16238 "memcheck/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc32/Makefile" ;; 16239 "memcheck/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/ppc64/Makefile" ;; 16240 "memcheck/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/s390x/Makefile" ;; 16241 "memcheck/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips32/Makefile" ;; 16242 "memcheck/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/mips64/Makefile" ;; 16243 "memcheck/tests/vbit-test/Makefile") CONFIG_FILES="$CONFIG_FILES memcheck/tests/vbit-test/Makefile" ;; 16244 "cachegrind/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/Makefile" ;; 16245 "cachegrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/Makefile" ;; 16246 "cachegrind/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES cachegrind/tests/x86/Makefile" ;; 16247 "cachegrind/cg_annotate") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_annotate" ;; 16248 "cachegrind/cg_diff") CONFIG_FILES="$CONFIG_FILES cachegrind/cg_diff" ;; 16249 "callgrind/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/Makefile" ;; 16250 "callgrind/callgrind_annotate") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_annotate" ;; 16251 "callgrind/callgrind_control") CONFIG_FILES="$CONFIG_FILES callgrind/callgrind_control" ;; 16252 "callgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES callgrind/tests/Makefile" ;; 16253 "helgrind/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/Makefile" ;; 16254 "helgrind/tests/Makefile") CONFIG_FILES="$CONFIG_FILES helgrind/tests/Makefile" ;; 16255 "massif/Makefile") CONFIG_FILES="$CONFIG_FILES massif/Makefile" ;; 16256 "massif/tests/Makefile") CONFIG_FILES="$CONFIG_FILES massif/tests/Makefile" ;; 16257 "massif/ms_print") CONFIG_FILES="$CONFIG_FILES massif/ms_print" ;; 16258 "lackey/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/Makefile" ;; 16259 "lackey/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lackey/tests/Makefile" ;; 16260 "none/Makefile") CONFIG_FILES="$CONFIG_FILES none/Makefile" ;; 16261 "none/tests/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/Makefile" ;; 16262 "none/tests/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/scripts/Makefile" ;; 16263 "none/tests/amd64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64/Makefile" ;; 16264 "none/tests/ppc32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc32/Makefile" ;; 16265 "none/tests/ppc64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/ppc64/Makefile" ;; 16266 "none/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86/Makefile" ;; 16267 "none/tests/arm/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm/Makefile" ;; 16268 "none/tests/arm64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/arm64/Makefile" ;; 16269 "none/tests/s390x/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/s390x/Makefile" ;; 16270 "none/tests/mips32/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips32/Makefile" ;; 16271 "none/tests/mips64/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/mips64/Makefile" ;; 16272 "none/tests/linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/linux/Makefile" ;; 16273 "none/tests/darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/darwin/Makefile" ;; 16274 "none/tests/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/solaris/Makefile" ;; 16275 "none/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-linux/Makefile" ;; 16276 "none/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-linux/Makefile" ;; 16277 "none/tests/amd64-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-darwin/Makefile" ;; 16278 "none/tests/x86-darwin/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-darwin/Makefile" ;; 16279 "none/tests/amd64-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/amd64-solaris/Makefile" ;; 16280 "none/tests/x86-solaris/Makefile") CONFIG_FILES="$CONFIG_FILES none/tests/x86-solaris/Makefile" ;; 16281 "exp-sgcheck/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/Makefile" ;; 16282 "exp-sgcheck/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-sgcheck/tests/Makefile" ;; 16283 "drd/Makefile") CONFIG_FILES="$CONFIG_FILES drd/Makefile" ;; 16284 "drd/scripts/download-and-build-splash2") CONFIG_FILES="$CONFIG_FILES drd/scripts/download-and-build-splash2" ;; 16285 "drd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES drd/tests/Makefile" ;; 16286 "exp-bbv/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/Makefile" ;; 16287 "exp-bbv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/Makefile" ;; 16288 "exp-bbv/tests/x86/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86/Makefile" ;; 16289 "exp-bbv/tests/x86-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/x86-linux/Makefile" ;; 16290 "exp-bbv/tests/amd64-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/amd64-linux/Makefile" ;; 16291 "exp-bbv/tests/ppc32-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/ppc32-linux/Makefile" ;; 16292 "exp-bbv/tests/arm-linux/Makefile") CONFIG_FILES="$CONFIG_FILES exp-bbv/tests/arm-linux/Makefile" ;; 16293 "exp-dhat/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/Makefile" ;; 16294 "exp-dhat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES exp-dhat/tests/Makefile" ;; 16295 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;; 16296 "solaris/Makefile") CONFIG_FILES="$CONFIG_FILES solaris/Makefile" ;; 16297 "coregrind/link_tool_exe_linux") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_linux" ;; 16298 "coregrind/link_tool_exe_darwin") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_darwin" ;; 16299 "coregrind/link_tool_exe_solaris") CONFIG_FILES="$CONFIG_FILES coregrind/link_tool_exe_solaris" ;; 16300 16301 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16302 esac 16303 done 16304 16305 16306 # If the user did not use the arguments to specify the items to instantiate, 16307 # then the envvar interface is used. Set only those that are not. 16308 # We use the long form for the default assignment because of an extremely 16309 # bizarre bug on SunOS 4.1.3. 16310 if $ac_need_defaults; then 16311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16314 fi 16315 16316 # Have a temporary directory for convenience. Make it in the build tree 16317 # simply because there is no reason against having it here, and in addition, 16318 # creating and moving files from /tmp can sometimes cause problems. 16319 # Hook for its removal unless debugging. 16320 # Note that there is a small window in which the directory will not be cleaned: 16321 # after its creation but before its name has been assigned to `$tmp'. 16322 $debug || 16323 { 16324 tmp= ac_tmp= 16325 trap 'exit_status=$? 16326 : "${ac_tmp:=$tmp}" 16327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16328 ' 0 16329 trap 'as_fn_exit 1' 1 2 13 15 16330 } 16331 # Create a (secure) tmp directory for tmp files. 16332 16333 { 16334 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16335 test -d "$tmp" 16336 } || 16337 { 16338 tmp=./conf$$-$RANDOM 16339 (umask 077 && mkdir "$tmp") 16340 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16341 ac_tmp=$tmp 16342 16343 # Set up the scripts for CONFIG_FILES section. 16344 # No need to generate them if there are no CONFIG_FILES. 16345 # This happens for instance with `./config.status config.h'. 16346 if test -n "$CONFIG_FILES"; then 16347 16348 16349 ac_cr=`echo X | tr X '\015'` 16350 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16351 # But we know of no other shell where ac_cr would be empty at this 16352 # point, so we can use a bashism as a fallback. 16353 if test "x$ac_cr" = x; then 16354 eval ac_cr=\$\'\\r\' 16355 fi 16356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16358 ac_cs_awk_cr='\\r' 16359 else 16360 ac_cs_awk_cr=$ac_cr 16361 fi 16362 16363 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16364 _ACEOF 16365 16366 16367 { 16368 echo "cat >conf$$subs.awk <<_ACEOF" && 16369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16370 echo "_ACEOF" 16371 } >conf$$subs.sh || 16372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16373 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16374 ac_delim='%!_!# ' 16375 for ac_last_try in false false false false false :; do 16376 . ./conf$$subs.sh || 16377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16378 16379 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16380 if test $ac_delim_n = $ac_delim_num; then 16381 break 16382 elif $ac_last_try; then 16383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16384 else 16385 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16386 fi 16387 done 16388 rm -f conf$$subs.sh 16389 16390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16391 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16392 _ACEOF 16393 sed -n ' 16394 h 16395 s/^/S["/; s/!.*/"]=/ 16396 p 16397 g 16398 s/^[^!]*!// 16399 :repl 16400 t repl 16401 s/'"$ac_delim"'$// 16402 t delim 16403 :nl 16404 h 16405 s/\(.\{148\}\)..*/\1/ 16406 t more1 16407 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16408 p 16409 n 16410 b repl 16411 :more1 16412 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16413 p 16414 g 16415 s/.\{148\}// 16416 t nl 16417 :delim 16418 h 16419 s/\(.\{148\}\)..*/\1/ 16420 t more2 16421 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16422 p 16423 b 16424 :more2 16425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16426 p 16427 g 16428 s/.\{148\}// 16429 t delim 16430 ' <conf$$subs.awk | sed ' 16431 /^[^""]/{ 16432 N 16433 s/\n// 16434 } 16435 ' >>$CONFIG_STATUS || ac_write_fail=1 16436 rm -f conf$$subs.awk 16437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16438 _ACAWK 16439 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16440 for (key in S) S_is_set[key] = 1 16441 FS = "" 16442 16443 } 16444 { 16445 line = $ 0 16446 nfields = split(line, field, "@") 16447 substed = 0 16448 len = length(field[1]) 16449 for (i = 2; i < nfields; i++) { 16450 key = field[i] 16451 keylen = length(key) 16452 if (S_is_set[key]) { 16453 value = S[key] 16454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16455 len += length(value) + length(field[++i]) 16456 substed = 1 16457 } else 16458 len += 1 + keylen 16459 } 16460 16461 print line 16462 } 16463 16464 _ACAWK 16465 _ACEOF 16466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16467 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16468 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16469 else 16470 cat 16471 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16472 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16473 _ACEOF 16474 16475 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16476 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16477 # trailing colons and then remove the whole line if VPATH becomes empty 16478 # (actually we leave an empty line to preserve line numbers). 16479 if test "x$srcdir" = x.; then 16480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16481 h 16482 s/// 16483 s/^/:/ 16484 s/[ ]*$/:/ 16485 s/:\$(srcdir):/:/g 16486 s/:\${srcdir}:/:/g 16487 s/:@srcdir@:/:/g 16488 s/^:*// 16489 s/:*$// 16490 x 16491 s/\(=[ ]*\).*/\1/ 16492 G 16493 s/\n// 16494 s/^[^=]*=[ ]*$// 16495 }' 16496 fi 16497 16498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16499 fi # test -n "$CONFIG_FILES" 16500 16501 # Set up the scripts for CONFIG_HEADERS section. 16502 # No need to generate them if there are no CONFIG_HEADERS. 16503 # This happens for instance with `./config.status Makefile'. 16504 if test -n "$CONFIG_HEADERS"; then 16505 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16506 BEGIN { 16507 _ACEOF 16508 16509 # Transform confdefs.h into an awk script `defines.awk', embedded as 16510 # here-document in config.status, that substitutes the proper values into 16511 # config.h.in to produce config.h. 16512 16513 # Create a delimiter string that does not exist in confdefs.h, to ease 16514 # handling of long lines. 16515 ac_delim='%!_!# ' 16516 for ac_last_try in false false :; do 16517 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16518 if test -z "$ac_tt"; then 16519 break 16520 elif $ac_last_try; then 16521 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16522 else 16523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16524 fi 16525 done 16526 16527 # For the awk script, D is an array of macro values keyed by name, 16528 # likewise P contains macro parameters if any. Preserve backslash 16529 # newline sequences. 16530 16531 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16532 sed -n ' 16533 s/.\{148\}/&'"$ac_delim"'/g 16534 t rset 16535 :rset 16536 s/^[ ]*#[ ]*define[ ][ ]*/ / 16537 t def 16538 d 16539 :def 16540 s/\\$// 16541 t bsnl 16542 s/["\\]/\\&/g 16543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16544 D["\1"]=" \3"/p 16545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16546 d 16547 :bsnl 16548 s/["\\]/\\&/g 16549 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16550 D["\1"]=" \3\\\\\\n"\\/p 16551 t cont 16552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16553 t cont 16554 d 16555 :cont 16556 n 16557 s/.\{148\}/&'"$ac_delim"'/g 16558 t clear 16559 :clear 16560 s/\\$// 16561 t bsnlc 16562 s/["\\]/\\&/g; s/^/"/; s/$/"/p 16563 d 16564 :bsnlc 16565 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16566 b cont 16567 ' <confdefs.h | sed ' 16568 s/'"$ac_delim"'/"\\\ 16569 "/g' >>$CONFIG_STATUS || ac_write_fail=1 16570 16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16572 for (key in D) D_is_set[key] = 1 16573 FS = "" 16574 } 16575 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16576 line = \$ 0 16577 split(line, arg, " ") 16578 if (arg[1] == "#") { 16579 defundef = arg[2] 16580 mac1 = arg[3] 16581 } else { 16582 defundef = substr(arg[1], 2) 16583 mac1 = arg[2] 16584 } 16585 split(mac1, mac2, "(") #) 16586 macro = mac2[1] 16587 prefix = substr(line, 1, index(line, defundef) - 1) 16588 if (D_is_set[macro]) { 16589 # Preserve the white space surrounding the "#". 16590 print prefix "define", macro P[macro] D[macro] 16591 next 16592 } else { 16593 # Replace #undef with comments. This is necessary, for example, 16594 # in the case of _POSIX_SOURCE, which is predefined and required 16595 # on some systems where configure will not decide to define it. 16596 if (defundef == "undef") { 16597 print "/*", prefix defundef, macro, "*/" 16598 next 16599 } 16600 } 16601 } 16602 { print } 16603 _ACAWK 16604 _ACEOF 16605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16606 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16607 fi # test -n "$CONFIG_HEADERS" 16608 16609 16610 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16611 shift 16612 for ac_tag 16613 do 16614 case $ac_tag in 16615 :[FHLC]) ac_mode=$ac_tag; continue;; 16616 esac 16617 case $ac_mode$ac_tag in 16618 :[FHL]*:*);; 16619 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16620 :[FH]-) ac_tag=-:-;; 16621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16622 esac 16623 ac_save_IFS=$IFS 16624 IFS=: 16625 set x $ac_tag 16626 IFS=$ac_save_IFS 16627 shift 16628 ac_file=$1 16629 shift 16630 16631 case $ac_mode in 16632 :L) ac_source=$1;; 16633 :[FH]) 16634 ac_file_inputs= 16635 for ac_f 16636 do 16637 case $ac_f in 16638 -) ac_f="$ac_tmp/stdin";; 16639 *) # Look for the file first in the build tree, then in the source tree 16640 # (if the path is not absolute). The absolute path cannot be DOS-style, 16641 # because $ac_f cannot contain `:'. 16642 test -f "$ac_f" || 16643 case $ac_f in 16644 [\\/$]*) false;; 16645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16646 esac || 16647 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16648 esac 16649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16650 as_fn_append ac_file_inputs " '$ac_f'" 16651 done 16652 16653 # Let's still pretend it is `configure' which instantiates (i.e., don't 16654 # use $as_me), people would be surprised to read: 16655 # /* config.h. Generated by config.status. */ 16656 configure_input='Generated from '` 16657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16658 `' by configure.' 16659 if test x"$ac_file" != x-; then 16660 configure_input="$ac_file. $configure_input" 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16662 $as_echo "$as_me: creating $ac_file" >&6;} 16663 fi 16664 # Neutralize special characters interpreted by sed in replacement strings. 16665 case $configure_input in #( 16666 *\&* | *\|* | *\\* ) 16667 ac_sed_conf_input=`$as_echo "$configure_input" | 16668 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16669 *) ac_sed_conf_input=$configure_input;; 16670 esac 16671 16672 case $ac_tag in 16673 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16675 esac 16676 ;; 16677 esac 16678 16679 ac_dir=`$as_dirname -- "$ac_file" || 16680 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16681 X"$ac_file" : 'X\(//\)[^/]' \| \ 16682 X"$ac_file" : 'X\(//\)$' \| \ 16683 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16684 $as_echo X"$ac_file" | 16685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16686 s//\1/ 16687 q 16688 } 16689 /^X\(\/\/\)[^/].*/{ 16690 s//\1/ 16691 q 16692 } 16693 /^X\(\/\/\)$/{ 16694 s//\1/ 16695 q 16696 } 16697 /^X\(\/\).*/{ 16698 s//\1/ 16699 q 16700 } 16701 s/.*/./; q'` 16702 as_dir="$ac_dir"; as_fn_mkdir_p 16703 ac_builddir=. 16704 16705 case "$ac_dir" in 16706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16707 *) 16708 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16709 # A ".." for each directory in $ac_dir_suffix. 16710 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16711 case $ac_top_builddir_sub in 16712 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16713 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16714 esac ;; 16715 esac 16716 ac_abs_top_builddir=$ac_pwd 16717 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16718 # for backward compatibility: 16719 ac_top_builddir=$ac_top_build_prefix 16720 16721 case $srcdir in 16722 .) # We are building in place. 16723 ac_srcdir=. 16724 ac_top_srcdir=$ac_top_builddir_sub 16725 ac_abs_top_srcdir=$ac_pwd ;; 16726 [\\/]* | ?:[\\/]* ) # Absolute name. 16727 ac_srcdir=$srcdir$ac_dir_suffix; 16728 ac_top_srcdir=$srcdir 16729 ac_abs_top_srcdir=$srcdir ;; 16730 *) # Relative name. 16731 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16732 ac_top_srcdir=$ac_top_build_prefix$srcdir 16733 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16734 esac 16735 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16736 16737 16738 case $ac_mode in 16739 :F) 16740 # 16741 # CONFIG_FILE 16742 # 16743 16744 case $INSTALL in 16745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16746 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16747 esac 16748 ac_MKDIR_P=$MKDIR_P 16749 case $MKDIR_P in 16750 [\\/$]* | ?:[\\/]* ) ;; 16751 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16752 esac 16753 _ACEOF 16754 16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16756 # If the template does not know about datarootdir, expand it. 16757 # FIXME: This hack should be removed a few years after 2.60. 16758 ac_datarootdir_hack=; ac_datarootdir_seen= 16759 ac_sed_dataroot=' 16760 /datarootdir/ { 16761 p 16762 q 16763 } 16764 /@datadir@/p 16765 /@docdir@/p 16766 /@infodir@/p 16767 /@localedir@/p 16768 /@mandir@/p' 16769 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16770 *datarootdir*) ac_datarootdir_seen=yes;; 16771 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16773 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16774 _ACEOF 16775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16776 ac_datarootdir_hack=' 16777 s&@datadir@&$datadir&g 16778 s&@docdir@&$docdir&g 16779 s&@infodir@&$infodir&g 16780 s&@localedir@&$localedir&g 16781 s&@mandir@&$mandir&g 16782 s&\\\${datarootdir}&$datarootdir&g' ;; 16783 esac 16784 _ACEOF 16785 16786 # Neutralize VPATH when `$srcdir' = `.'. 16787 # Shell code in configure.ac might set extrasub. 16788 # FIXME: do we really want to maintain this feature? 16789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16790 ac_sed_extra="$ac_vpsub 16791 $extrasub 16792 _ACEOF 16793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16794 :t 16795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16796 s|@configure_input@|$ac_sed_conf_input|;t t 16797 s&@top_builddir@&$ac_top_builddir_sub&;t t 16798 s&@top_build_prefix@&$ac_top_build_prefix&;t t 16799 s&@srcdir@&$ac_srcdir&;t t 16800 s&@abs_srcdir@&$ac_abs_srcdir&;t t 16801 s&@top_srcdir@&$ac_top_srcdir&;t t 16802 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16803 s&@builddir@&$ac_builddir&;t t 16804 s&@abs_builddir@&$ac_abs_builddir&;t t 16805 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16806 s&@INSTALL@&$ac_INSTALL&;t t 16807 s&@MKDIR_P@&$ac_MKDIR_P&;t t 16808 $ac_datarootdir_hack 16809 " 16810 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16811 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16812 16813 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16814 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16815 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16816 "$ac_tmp/out"`; test -z "$ac_out"; } && 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16818 which seems to be undefined. Please make sure it is defined" >&5 16819 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16820 which seems to be undefined. Please make sure it is defined" >&2;} 16821 16822 rm -f "$ac_tmp/stdin" 16823 case $ac_file in 16824 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16825 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16826 esac \ 16827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16828 ;; 16829 :H) 16830 # 16831 # CONFIG_HEADER 16832 # 16833 if test x"$ac_file" != x-; then 16834 { 16835 $as_echo "/* $configure_input */" \ 16836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16837 } >"$ac_tmp/config.h" \ 16838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16839 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16841 $as_echo "$as_me: $ac_file is unchanged" >&6;} 16842 else 16843 rm -f "$ac_file" 16844 mv "$ac_tmp/config.h" "$ac_file" \ 16845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16846 fi 16847 else 16848 $as_echo "/* $configure_input */" \ 16849 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16850 || as_fn_error $? "could not create -" "$LINENO" 5 16851 fi 16852 # Compute "$ac_file"'s index in $config_headers. 16853 _am_arg="$ac_file" 16854 _am_stamp_count=1 16855 for _am_header in $config_headers :; do 16856 case $_am_header in 16857 $_am_arg | $_am_arg:* ) 16858 break ;; 16859 * ) 16860 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16861 esac 16862 done 16863 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16864 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16865 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16866 X"$_am_arg" : 'X\(//\)$' \| \ 16867 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16868 $as_echo X"$_am_arg" | 16869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16870 s//\1/ 16871 q 16872 } 16873 /^X\(\/\/\)[^/].*/{ 16874 s//\1/ 16875 q 16876 } 16877 /^X\(\/\/\)$/{ 16878 s//\1/ 16879 q 16880 } 16881 /^X\(\/\).*/{ 16882 s//\1/ 16883 q 16884 } 16885 s/.*/./; q'`/stamp-h$_am_stamp_count 16886 ;; 16887 16888 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16889 $as_echo "$as_me: executing $ac_file commands" >&6;} 16890 ;; 16891 esac 16892 16893 16894 case $ac_file$ac_mode in 16895 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16896 # Older Autoconf quotes --file arguments for eval, but not when files 16897 # are listed without --file. Let's play safe and only enable the eval 16898 # if we detect the quoting. 16899 case $CONFIG_FILES in 16900 *\'*) eval set x "$CONFIG_FILES" ;; 16901 *) set x $CONFIG_FILES ;; 16902 esac 16903 shift 16904 for mf 16905 do 16906 # Strip MF so we end up with the name of the file. 16907 mf=`echo "$mf" | sed -e 's/:.*$//'` 16908 # Check whether this is an Automake generated Makefile or not. 16909 # We used to match only the files named 'Makefile.in', but 16910 # some people rename them; so instead we look at the file content. 16911 # Grep'ing the first line is not enough: some people post-process 16912 # each Makefile.in and add a new line on top of each file to say so. 16913 # Grep'ing the whole file is not good either: AIX grep has a line 16914 # limit of 2048, but all sed's we know have understand at least 4000. 16915 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16916 dirpart=`$as_dirname -- "$mf" || 16917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16918 X"$mf" : 'X\(//\)[^/]' \| \ 16919 X"$mf" : 'X\(//\)$' \| \ 16920 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16921 $as_echo X"$mf" | 16922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16923 s//\1/ 16924 q 16925 } 16926 /^X\(\/\/\)[^/].*/{ 16927 s//\1/ 16928 q 16929 } 16930 /^X\(\/\/\)$/{ 16931 s//\1/ 16932 q 16933 } 16934 /^X\(\/\).*/{ 16935 s//\1/ 16936 q 16937 } 16938 s/.*/./; q'` 16939 else 16940 continue 16941 fi 16942 # Extract the definition of DEPDIR, am__include, and am__quote 16943 # from the Makefile without running 'make'. 16944 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16945 test -z "$DEPDIR" && continue 16946 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16947 test -z "$am__include" && continue 16948 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16949 # Find all dependency output files, they are included files with 16950 # $(DEPDIR) in their names. We invoke sed twice because it is the 16951 # simplest approach to changing $(DEPDIR) to its actual value in the 16952 # expansion. 16953 for file in `sed -n " 16954 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16955 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16956 # Make sure the directory exists. 16957 test -f "$dirpart/$file" && continue 16958 fdir=`$as_dirname -- "$file" || 16959 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16960 X"$file" : 'X\(//\)[^/]' \| \ 16961 X"$file" : 'X\(//\)$' \| \ 16962 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16963 $as_echo X"$file" | 16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16965 s//\1/ 16966 q 16967 } 16968 /^X\(\/\/\)[^/].*/{ 16969 s//\1/ 16970 q 16971 } 16972 /^X\(\/\/\)$/{ 16973 s//\1/ 16974 q 16975 } 16976 /^X\(\/\).*/{ 16977 s//\1/ 16978 q 16979 } 16980 s/.*/./; q'` 16981 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16982 # echo "creating $dirpart/$file" 16983 echo '# dummy' > "$dirpart/$file" 16984 done 16985 done 16986 } 16987 ;; 16988 "coregrind/link_tool_exe_linux":F) chmod +x coregrind/link_tool_exe_linux ;; 16989 "coregrind/link_tool_exe_darwin":F) chmod +x coregrind/link_tool_exe_darwin ;; 16990 "coregrind/link_tool_exe_solaris":F) chmod +x coregrind/link_tool_exe_solaris ;; 16991 16992 esac 16993 done # for ac_tag 16994 16995 16996 as_fn_exit 0 16997 _ACEOF 16998 ac_clean_files=$ac_clean_files_save 16999 17000 test $ac_write_fail = 0 || 17001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17002 17003 17004 # configure is writing to config.log, and then calls config.status. 17005 # config.status does its own redirection, appending to config.log. 17006 # Unfortunately, on DOS this fails, as config.log is still kept open 17007 # by configure, so config.status won't be able to write to it; its 17008 # output is simply discarded. So we exec the FD to /dev/null, 17009 # effectively closing config.log, so it can be properly (re)opened and 17010 # appended to by config.status. When coming back to configure, we 17011 # need to make the FD available again. 17012 if test "$no_create" != yes; then 17013 ac_cs_success=: 17014 ac_config_status_args= 17015 test "$silent" = yes && 17016 ac_config_status_args="$ac_config_status_args --quiet" 17017 exec 5>/dev/null 17018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17019 exec 5>>config.log 17020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17021 # would make configure fail if this is the last instruction. 17022 $ac_cs_success || as_fn_exit 1 17023 fi 17024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17027 fi 17028 17029 17030 cat<<EOF 17031 17032 Maximum build arch: ${ARCH_MAX} 17033 Primary build arch: ${VGCONF_ARCH_PRI} 17034 Secondary build arch: ${VGCONF_ARCH_SEC} 17035 Build OS: ${VGCONF_OS} 17036 Primary build target: ${VGCONF_PLATFORM_PRI_CAPS} 17037 Secondary build target: ${VGCONF_PLATFORM_SEC_CAPS} 17038 Platform variant: ${VGCONF_PLATVARIANT} 17039 Primary -DVGPV string: -DVGPV_${VGCONF_ARCH_PRI}_${VGCONF_OS}_${VGCONF_PLATVARIANT}=1 17040 Default supp files: ${DEFAULT_SUPP} 17041 17042 EOF 17043