1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="main.c" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622enable_option_checking=no 623ac_header_list= 624ac_subst_vars='LTLIBOBJS 625LIBOBJS 626GCORE_TRANSFORM_NAME 627GDB_TRANSFORM_NAME 628XSLTPROC 629NM_H 630GDB_NM_FILE 631LTLIBXXHASH 632LIBXXHASH 633HAVE_LIBXXHASH 634CTF_DEPS 635LIBCTF 636ENABLE_LIBCTF 637LTLIBBABELTRACE 638LIBBABELTRACE 639HAVE_LIBBABELTRACE 640HAVE_NATIVE_GCORE_HOST 641NAT_GENERATED_FILES 642XM_CLIBS 643MH_CFLAGS 644LOADLIBES 645NAT_CDEPS 646NATDEPFILES 647NAT_FILE 648target_subdir 649CONFIG_UNINSTALL 650CONFIG_INSTALL 651CONFIG_CLEAN 652CONFIG_ALL 653CONFIG_SRCS 654CONFIG_DEPS 655CONFIG_OBS 656PROFILE_CFLAGS 657ENABLE_CFLAGS 658SIM_OBS 659SIM 660XMKMF 661GDBTK_SRC_DIR 662GDBTK_CFLAGS 663GDBTKLIBS 664X_LIBS 665X_LDFLAGS 666X_CFLAGS 667TK_XINCLUDES 668TK_DEPS 669TK_LIBRARY 670TK_INCLUDE 671TK_STUB_LIB_SPEC 672TK_STUB_LIB_FLAG 673TK_STUB_LIB_FILE 674TK_LIB_SPEC 675TK_LIB_FLAG 676TK_LIB_FILE 677TK_SRC_DIR 678TK_BIN_DIR 679TK_VERSION 680TCL_DEPS 681TCL_LIBRARY 682TCL_INCLUDE 683TCL_STUB_LIB_SPEC 684TCL_STUB_LIB_FLAG 685TCL_STUB_LIB_FILE 686TCL_LIB_SPEC 687TCL_LIB_FLAG 688TCL_LIB_FILE 689TCL_SRC_DIR 690TCL_BIN_DIR 691TCL_PATCH_LEVEL 692TCL_VERSION 693WIN32LDAPP 694WIN32LIBS 695GUI_CFLAGS_X 696LIBGUI 697LTLIBLZMA 698LIBLZMA 699HAVE_LIBLZMA 700SER_HARDWIRE 701WERROR_CFLAGS 702WARN_CFLAGS 703SYSTEM_GDBINIT_DIR 704SYSTEM_GDBINIT 705TARGET_SYSTEM_ROOT 706CONFIG_LDFLAGS 707RDYNAMIC 708LTLIBIPT 709LIBIPT 710HAVE_LIBIPT 711PTHREAD_CFLAGS 712PTHREAD_LIBS 713PTHREAD_CC 714ax_pthread_config 715SED 716ALLOCA 717SRCHIGH_CFLAGS 718SRCHIGH_LIBS 719HAVE_GUILE_FALSE 720HAVE_GUILE_TRUE 721GUILE_LIBS 722GUILE_CPPFLAGS 723GUILD_TARGET_FLAG 724GUILD 725pkg_config_prog_path 726HAVE_PYTHON_FALSE 727HAVE_PYTHON_TRUE 728PYTHON_LIBS 729PYTHON_CPPFLAGS 730PYTHON_CFLAGS 731python_prog_path 732LTLIBMPFR 733LIBMPFR 734HAVE_LIBMPFR 735LTLIBEXPAT 736LIBEXPAT 737HAVE_LIBEXPAT 738JIT_READER_DIR 739TARGET_PTR 740READLINE_TEXI_INCFLAG 741READLINE_CFLAGS 742READLINE_DEPS 743READLINE 744LTLIBICONV 745LIBICONV 746zlibinc 747zlibdir 748MIG 749WINDRES 750DLLTOOL 751AR 752YFLAGS 753YACC 754RANLIB 755LN_S 756INSTALL_DATA 757INSTALL_SCRIPT 758INSTALL_PROGRAM 759AWK 760REPORT_BUGS_TEXI 761REPORT_BUGS_TO 762PKGVERSION 763CODESIGN_CERT 764DEBUGINFOD_LIBS 765DEBUGINFOD_CFLAGS 766PKG_CONFIG_LIBDIR 767PKG_CONFIG_PATH 768PKG_CONFIG 769HAVE_NATIVE_GCORE_TARGET 770TARGET_OBS 771subdirs 772GDB_DATADIR 773DEBUGDIR 774MAKEINFO_EXTRA_FLAGS 775MAKEINFOFLAGS 776MAKEINFO 777PACKAGE 778CATOBJEXT 779GENCAT 780INSTOBJEXT 781DATADIRNAME 782CATALOGS 783POSUB 784GMSGFMT 785XGETTEXT 786INCINTL 787LIBINTL_DEP 788LIBINTL 789USE_NLS 790CCDEPMODE 791DEPDIR 792am__leading_dot 793CXX_DIALECT 794HAVE_CXX11 795INSTALL_STRIP_PROGRAM 796STRIP 797install_sh 798LARGEFILE_CPPFLAGS 799target_os 800target_vendor 801target_cpu 802target 803host_os 804host_vendor 805host_cpu 806host 807build_os 808build_vendor 809build_cpu 810build 811EGREP 812GREP 813CPP 814ac_ct_CXX 815CXXFLAGS 816CXX 817OBJEXT 818EXEEXT 819ac_ct_CC 820CPPFLAGS 821LDFLAGS 822CFLAGS 823CC 824MAINT 825MAINTAINER_MODE_FALSE 826MAINTAINER_MODE_TRUE 827target_alias 828host_alias 829build_alias 830LIBS 831ECHO_T 832ECHO_N 833ECHO_C 834DEFS 835mandir 836localedir 837libdir 838psdir 839pdfdir 840dvidir 841htmldir 842infodir 843docdir 844oldincludedir 845includedir 846localstatedir 847sharedstatedir 848sysconfdir 849datadir 850datarootdir 851libexecdir 852sbindir 853bindir 854program_transform_name 855prefix 856exec_prefix 857PACKAGE_URL 858PACKAGE_BUGREPORT 859PACKAGE_STRING 860PACKAGE_VERSION 861PACKAGE_TARNAME 862PACKAGE_NAME 863PATH_SEPARATOR 864SHELL' 865ac_subst_files='nat_makefile_frag' 866ac_user_opts=' 867enable_option_checking 868enable_maintainer_mode 869enable_plugins 870enable_largefile 871with_separate_debug_dir 872with_gdb_datadir 873with_relocated_sources 874with_auto_load_dir 875with_auto_load_safe_path 876enable_targets 877enable_64_bit_bfd 878enable_gdbmi 879enable_tui 880enable_gdbtk 881with_debuginfod 882with_libunwind_ia64 883with_curses 884enable_profiling 885enable_codesign 886with_pkgversion 887with_bugurl 888with_system_zlib 889with_gnu_ld 890enable_rpath 891with_libiconv_prefix 892with_libiconv_type 893with_iconv_bin 894with_system_readline 895with_jit_reader_dir 896with_expat 897with_libexpat_prefix 898with_libexpat_type 899with_mpfr 900with_libmpfr_prefix 901with_libmpfr_type 902with_python 903with_python_libdir 904with_guile 905enable_source_highlight 906with_intel_pt 907with_libipt_prefix 908with_libipt_type 909with_included_regex 910with_sysroot 911with_system_gdbinit 912with_system_gdbinit_dir 913enable_werror 914enable_build_warnings 915enable_gdb_build_warnings 916enable_ubsan 917with_lzma 918with_liblzma_prefix 919with_liblzma_type 920with_tcl 921with_tk 922with_x 923enable_sim 924with_babeltrace 925with_libbabeltrace_prefix 926with_libbabeltrace_type 927with_xxhash 928enable_libctf 929with_libxxhash_prefix 930with_libxxhash_type 931enable_unit_tests 932' 933 ac_precious_vars='build_alias 934host_alias 935target_alias 936CC 937CFLAGS 938LDFLAGS 939LIBS 940CPPFLAGS 941CXX 942CXXFLAGS 943CCC 944CPP 945MAKEINFO 946MAKEINFOFLAGS 947PKG_CONFIG 948PKG_CONFIG_PATH 949PKG_CONFIG_LIBDIR 950DEBUGINFOD_CFLAGS 951DEBUGINFOD_LIBS 952YACC 953YFLAGS 954XMKMF' 955ac_subdirs_all='testsuite 956gdbtk' 957 958# Initialize some variables set by options. 959ac_init_help= 960ac_init_version=false 961ac_unrecognized_opts= 962ac_unrecognized_sep= 963# The variables have the same names as the options, with 964# dashes changed to underlines. 965cache_file=/dev/null 966exec_prefix=NONE 967no_create= 968no_recursion= 969prefix=NONE 970program_prefix=NONE 971program_suffix=NONE 972program_transform_name=s,x,x, 973silent= 974site= 975srcdir= 976verbose= 977x_includes=NONE 978x_libraries=NONE 979 980# Installation directory options. 981# These are left unexpanded so users can "make install exec_prefix=/foo" 982# and all the variables that are supposed to be based on exec_prefix 983# by default will actually change. 984# Use braces instead of parens because sh, perl, etc. also accept them. 985# (The list follows the same order as the GNU Coding Standards.) 986bindir='${exec_prefix}/bin' 987sbindir='${exec_prefix}/sbin' 988libexecdir='${exec_prefix}/libexec' 989datarootdir='${prefix}/share' 990datadir='${datarootdir}' 991sysconfdir='${prefix}/etc' 992sharedstatedir='${prefix}/com' 993localstatedir='${prefix}/var' 994includedir='${prefix}/include' 995oldincludedir='/usr/include' 996docdir='${datarootdir}/doc/${PACKAGE}' 997infodir='${datarootdir}/info' 998htmldir='${docdir}' 999dvidir='${docdir}' 1000pdfdir='${docdir}' 1001psdir='${docdir}' 1002libdir='${exec_prefix}/lib' 1003localedir='${datarootdir}/locale' 1004mandir='${datarootdir}/man' 1005 1006ac_prev= 1007ac_dashdash= 1008for ac_option 1009do 1010 # If the previous option needs an argument, assign it. 1011 if test -n "$ac_prev"; then 1012 eval $ac_prev=\$ac_option 1013 ac_prev= 1014 continue 1015 fi 1016 1017 case $ac_option in 1018 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1019 *=) ac_optarg= ;; 1020 *) ac_optarg=yes ;; 1021 esac 1022 1023 # Accept the important Cygnus configure options, so we can diagnose typos. 1024 1025 case $ac_dashdash$ac_option in 1026 --) 1027 ac_dashdash=yes ;; 1028 1029 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1030 ac_prev=bindir ;; 1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1032 bindir=$ac_optarg ;; 1033 1034 -build | --build | --buil | --bui | --bu) 1035 ac_prev=build_alias ;; 1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1037 build_alias=$ac_optarg ;; 1038 1039 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1041 ac_prev=cache_file ;; 1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1044 cache_file=$ac_optarg ;; 1045 1046 --config-cache | -C) 1047 cache_file=config.cache ;; 1048 1049 -datadir | --datadir | --datadi | --datad) 1050 ac_prev=datadir ;; 1051 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1052 datadir=$ac_optarg ;; 1053 1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1055 | --dataroo | --dataro | --datar) 1056 ac_prev=datarootdir ;; 1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1059 datarootdir=$ac_optarg ;; 1060 1061 -disable-* | --disable-*) 1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1065 as_fn_error $? "invalid feature name: $ac_useropt" 1066 ac_useropt_orig=$ac_useropt 1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1068 case $ac_user_opts in 1069 *" 1070"enable_$ac_useropt" 1071"*) ;; 1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1073 ac_unrecognized_sep=', ';; 1074 esac 1075 eval enable_$ac_useropt=no ;; 1076 1077 -docdir | --docdir | --docdi | --doc | --do) 1078 ac_prev=docdir ;; 1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1080 docdir=$ac_optarg ;; 1081 1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1083 ac_prev=dvidir ;; 1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1085 dvidir=$ac_optarg ;; 1086 1087 -enable-* | --enable-*) 1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1091 as_fn_error $? "invalid feature name: $ac_useropt" 1092 ac_useropt_orig=$ac_useropt 1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1094 case $ac_user_opts in 1095 *" 1096"enable_$ac_useropt" 1097"*) ;; 1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1099 ac_unrecognized_sep=', ';; 1100 esac 1101 eval enable_$ac_useropt=\$ac_optarg ;; 1102 1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1105 | --exec | --exe | --ex) 1106 ac_prev=exec_prefix ;; 1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1109 | --exec=* | --exe=* | --ex=*) 1110 exec_prefix=$ac_optarg ;; 1111 1112 -gas | --gas | --ga | --g) 1113 # Obsolete; use --with-gas. 1114 with_gas=yes ;; 1115 1116 -help | --help | --hel | --he | -h) 1117 ac_init_help=long ;; 1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1119 ac_init_help=recursive ;; 1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1121 ac_init_help=short ;; 1122 1123 -host | --host | --hos | --ho) 1124 ac_prev=host_alias ;; 1125 -host=* | --host=* | --hos=* | --ho=*) 1126 host_alias=$ac_optarg ;; 1127 1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1129 ac_prev=htmldir ;; 1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1131 | --ht=*) 1132 htmldir=$ac_optarg ;; 1133 1134 -includedir | --includedir | --includedi | --included | --include \ 1135 | --includ | --inclu | --incl | --inc) 1136 ac_prev=includedir ;; 1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1138 | --includ=* | --inclu=* | --incl=* | --inc=*) 1139 includedir=$ac_optarg ;; 1140 1141 -infodir | --infodir | --infodi | --infod | --info | --inf) 1142 ac_prev=infodir ;; 1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1144 infodir=$ac_optarg ;; 1145 1146 -libdir | --libdir | --libdi | --libd) 1147 ac_prev=libdir ;; 1148 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1149 libdir=$ac_optarg ;; 1150 1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1152 | --libexe | --libex | --libe) 1153 ac_prev=libexecdir ;; 1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1155 | --libexe=* | --libex=* | --libe=*) 1156 libexecdir=$ac_optarg ;; 1157 1158 -localedir | --localedir | --localedi | --localed | --locale) 1159 ac_prev=localedir ;; 1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1161 localedir=$ac_optarg ;; 1162 1163 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1164 | --localstate | --localstat | --localsta | --localst | --locals) 1165 ac_prev=localstatedir ;; 1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1168 localstatedir=$ac_optarg ;; 1169 1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1171 ac_prev=mandir ;; 1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1173 mandir=$ac_optarg ;; 1174 1175 -nfp | --nfp | --nf) 1176 # Obsolete; use --without-fp. 1177 with_fp=no ;; 1178 1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1180 | --no-cr | --no-c | -n) 1181 no_create=yes ;; 1182 1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1185 no_recursion=yes ;; 1186 1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1189 | --oldin | --oldi | --old | --ol | --o) 1190 ac_prev=oldincludedir ;; 1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1194 oldincludedir=$ac_optarg ;; 1195 1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1197 ac_prev=prefix ;; 1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1199 prefix=$ac_optarg ;; 1200 1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1202 | --program-pre | --program-pr | --program-p) 1203 ac_prev=program_prefix ;; 1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1206 program_prefix=$ac_optarg ;; 1207 1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1209 | --program-suf | --program-su | --program-s) 1210 ac_prev=program_suffix ;; 1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1213 program_suffix=$ac_optarg ;; 1214 1215 -program-transform-name | --program-transform-name \ 1216 | --program-transform-nam | --program-transform-na \ 1217 | --program-transform-n | --program-transform- \ 1218 | --program-transform | --program-transfor \ 1219 | --program-transfo | --program-transf \ 1220 | --program-trans | --program-tran \ 1221 | --progr-tra | --program-tr | --program-t) 1222 ac_prev=program_transform_name ;; 1223 -program-transform-name=* | --program-transform-name=* \ 1224 | --program-transform-nam=* | --program-transform-na=* \ 1225 | --program-transform-n=* | --program-transform-=* \ 1226 | --program-transform=* | --program-transfor=* \ 1227 | --program-transfo=* | --program-transf=* \ 1228 | --program-trans=* | --program-tran=* \ 1229 | --progr-tra=* | --program-tr=* | --program-t=*) 1230 program_transform_name=$ac_optarg ;; 1231 1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1233 ac_prev=pdfdir ;; 1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1235 pdfdir=$ac_optarg ;; 1236 1237 -psdir | --psdir | --psdi | --psd | --ps) 1238 ac_prev=psdir ;; 1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1240 psdir=$ac_optarg ;; 1241 1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1243 | -silent | --silent | --silen | --sile | --sil) 1244 silent=yes ;; 1245 1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1247 ac_prev=sbindir ;; 1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1249 | --sbi=* | --sb=*) 1250 sbindir=$ac_optarg ;; 1251 1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1254 | --sharedst | --shareds | --shared | --share | --shar \ 1255 | --sha | --sh) 1256 ac_prev=sharedstatedir ;; 1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1260 | --sha=* | --sh=*) 1261 sharedstatedir=$ac_optarg ;; 1262 1263 -site | --site | --sit) 1264 ac_prev=site ;; 1265 -site=* | --site=* | --sit=*) 1266 site=$ac_optarg ;; 1267 1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1269 ac_prev=srcdir ;; 1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1271 srcdir=$ac_optarg ;; 1272 1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1274 | --syscon | --sysco | --sysc | --sys | --sy) 1275 ac_prev=sysconfdir ;; 1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1278 sysconfdir=$ac_optarg ;; 1279 1280 -target | --target | --targe | --targ | --tar | --ta | --t) 1281 ac_prev=target_alias ;; 1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1283 target_alias=$ac_optarg ;; 1284 1285 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1286 verbose=yes ;; 1287 1288 -version | --version | --versio | --versi | --vers | -V) 1289 ac_init_version=: ;; 1290 1291 -with-* | --with-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 as_fn_error $? "invalid package name: $ac_useropt" 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300"with_$ac_useropt" 1301"*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=\$ac_optarg ;; 1306 1307 -without-* | --without-*) 1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1309 # Reject names that are not valid shell variable names. 1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1311 as_fn_error $? "invalid package name: $ac_useropt" 1312 ac_useropt_orig=$ac_useropt 1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1314 case $ac_user_opts in 1315 *" 1316"with_$ac_useropt" 1317"*) ;; 1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1319 ac_unrecognized_sep=', ';; 1320 esac 1321 eval with_$ac_useropt=no ;; 1322 1323 --x) 1324 # Obsolete; use --with-x. 1325 with_x=yes ;; 1326 1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1328 | --x-incl | --x-inc | --x-in | --x-i) 1329 ac_prev=x_includes ;; 1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1332 x_includes=$ac_optarg ;; 1333 1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1336 ac_prev=x_libraries ;; 1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1339 x_libraries=$ac_optarg ;; 1340 1341 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1342Try \`$0 --help' for more information" 1343 ;; 1344 1345 *=*) 1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1347 # Reject names that are not valid shell variable names. 1348 case $ac_envvar in #( 1349 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1350 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1351 esac 1352 eval $ac_envvar=\$ac_optarg 1353 export $ac_envvar ;; 1354 1355 *) 1356 # FIXME: should be removed in autoconf 3.0. 1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1361 ;; 1362 1363 esac 1364done 1365 1366if test -n "$ac_prev"; then 1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1368 as_fn_error $? "missing argument to $ac_option" 1369fi 1370 1371if test -n "$ac_unrecognized_opts"; then 1372 case $enable_option_checking in 1373 no) ;; 1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1376 esac 1377fi 1378 1379# Check all directory arguments for consistency. 1380for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1381 datadir sysconfdir sharedstatedir localstatedir includedir \ 1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1383 libdir localedir mandir 1384do 1385 eval ac_val=\$$ac_var 1386 # Remove trailing slashes. 1387 case $ac_val in 1388 */ ) 1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1390 eval $ac_var=\$ac_val;; 1391 esac 1392 # Be sure to have absolute directory names. 1393 case $ac_val in 1394 [\\/$]* | ?:[\\/]* ) continue;; 1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1396 esac 1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1398done 1399 1400# There might be people who depend on the old broken behavior: `$host' 1401# used to hold the argument of --host etc. 1402# FIXME: To remove some day. 1403build=$build_alias 1404host=$host_alias 1405target=$target_alias 1406 1407# FIXME: To remove some day. 1408if test "x$host_alias" != x; then 1409 if test "x$build_alias" = x; then 1410 cross_compiling=maybe 1411 elif test "x$build_alias" != "x$host_alias"; then 1412 cross_compiling=yes 1413 fi 1414fi 1415 1416ac_tool_prefix= 1417test -n "$host_alias" && ac_tool_prefix=$host_alias- 1418 1419test "$silent" = yes && exec 6>/dev/null 1420 1421 1422ac_pwd=`pwd` && test -n "$ac_pwd" && 1423ac_ls_di=`ls -di .` && 1424ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1425 as_fn_error $? "working directory cannot be determined" 1426test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1427 as_fn_error $? "pwd does not report name of working directory" 1428 1429 1430# Find the source files, if location was not specified. 1431if test -z "$srcdir"; then 1432 ac_srcdir_defaulted=yes 1433 # Try the directory containing this script, then the parent directory. 1434 ac_confdir=`$as_dirname -- "$as_myself" || 1435$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1436 X"$as_myself" : 'X\(//\)[^/]' \| \ 1437 X"$as_myself" : 'X\(//\)$' \| \ 1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1439$as_echo X"$as_myself" | 1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\/\)[^/].*/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\/\)$/{ 1449 s//\1/ 1450 q 1451 } 1452 /^X\(\/\).*/{ 1453 s//\1/ 1454 q 1455 } 1456 s/.*/./; q'` 1457 srcdir=$ac_confdir 1458 if test ! -r "$srcdir/$ac_unique_file"; then 1459 srcdir=.. 1460 fi 1461else 1462 ac_srcdir_defaulted=no 1463fi 1464if test ! -r "$srcdir/$ac_unique_file"; then 1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1467fi 1468ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1469ac_abs_confdir=`( 1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1471 pwd)` 1472# When building in place, set srcdir=. 1473if test "$ac_abs_confdir" = "$ac_pwd"; then 1474 srcdir=. 1475fi 1476# Remove unnecessary trailing slashes from srcdir. 1477# Double slashes in file names in object file debugging info 1478# mess up M-x gdb in Emacs. 1479case $srcdir in 1480*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1481esac 1482for ac_var in $ac_precious_vars; do 1483 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1484 eval ac_env_${ac_var}_value=\$${ac_var} 1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1486 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1487done 1488 1489# 1490# Report the --help message. 1491# 1492if test "$ac_init_help" = "long"; then 1493 # Omit some internal or obsolete options to make the list less imposing. 1494 # This message is too long to be a string in the A/UX 3.1 sh. 1495 cat <<_ACEOF 1496\`configure' configures this package to adapt to many kinds of systems. 1497 1498Usage: $0 [OPTION]... [VAR=VALUE]... 1499 1500To assign environment variables (e.g., CC, CFLAGS...), specify them as 1501VAR=VALUE. See below for descriptions of some of the useful variables. 1502 1503Defaults for the options are specified in brackets. 1504 1505Configuration: 1506 -h, --help display this help and exit 1507 --help=short display options specific to this package 1508 --help=recursive display the short help of all the included packages 1509 -V, --version display version information and exit 1510 -q, --quiet, --silent do not print \`checking ...' messages 1511 --cache-file=FILE cache test results in FILE [disabled] 1512 -C, --config-cache alias for \`--cache-file=config.cache' 1513 -n, --no-create do not create output files 1514 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1515 1516Installation directories: 1517 --prefix=PREFIX install architecture-independent files in PREFIX 1518 [$ac_default_prefix] 1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1520 [PREFIX] 1521 1522By default, \`make install' will install all the files in 1523\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1524an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1525for instance \`--prefix=\$HOME'. 1526 1527For better control, use the options below. 1528 1529Fine tuning of the installation directories: 1530 --bindir=DIR user executables [EPREFIX/bin] 1531 --sbindir=DIR system admin executables [EPREFIX/sbin] 1532 --libexecdir=DIR program executables [EPREFIX/libexec] 1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1536 --libdir=DIR object code libraries [EPREFIX/lib] 1537 --includedir=DIR C header files [PREFIX/include] 1538 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1541 --infodir=DIR info documentation [DATAROOTDIR/info] 1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1543 --mandir=DIR man documentation [DATAROOTDIR/man] 1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1545 --htmldir=DIR html documentation [DOCDIR] 1546 --dvidir=DIR dvi documentation [DOCDIR] 1547 --pdfdir=DIR pdf documentation [DOCDIR] 1548 --psdir=DIR ps documentation [DOCDIR] 1549_ACEOF 1550 1551 cat <<\_ACEOF 1552 1553Program names: 1554 --program-prefix=PREFIX prepend PREFIX to installed program names 1555 --program-suffix=SUFFIX append SUFFIX to installed program names 1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1557 1558X features: 1559 --x-includes=DIR X include files are in DIR 1560 --x-libraries=DIR X library files are in DIR 1561 1562System types: 1563 --build=BUILD configure for building on BUILD [guessed] 1564 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1565 --target=TARGET configure for building compilers for TARGET [HOST] 1566_ACEOF 1567fi 1568 1569if test -n "$ac_init_help"; then 1570 1571 cat <<\_ACEOF 1572 1573Optional Features: 1574 --disable-option-checking ignore unrecognized --enable/--with options 1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1577 --enable-maintainer-mode 1578 enable make rules and dependencies not useful (and 1579 sometimes confusing) to the casual installer 1580 --enable-plugins Enable support for plugins 1581 --disable-largefile omit support for large files 1582 --enable-targets=TARGETS 1583 alternative target configurations 1584 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1585 --disable-gdbmi disable machine-interface (MI) 1586 --enable-tui enable full-screen terminal user interface (TUI) 1587 --enable-gdbtk enable gdbtk graphical user interface (GUI) 1588 --enable-profiling enable profiling of GDB 1589 --enable-codesign=CERT sign gdb with 'codesign -s CERT' 1590 --disable-rpath do not hardcode runtime library paths 1591 --enable-source-highlight 1592 enable source-highlight for source listings 1593 --enable-werror treat compile warnings as errors 1594 --enable-build-warnings enable build-time compiler warnings if gcc is used 1595 --enable-gdb-build-warnings 1596 enable GDB specific build-time compiler warnings if 1597 gcc is used 1598 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no) 1599 --enable-sim link gdb with simulator 1600 --enable-libctf Handle .ctf type-info sections [default=yes] 1601 --enable-unit-tests Enable the inclusion of unit tests when compiling 1602 GDB 1603 1604Optional Packages: 1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1607 --with-separate-debug-dir=PATH 1608 look for global separate debug info in this path 1609 [LIBDIR/debug] 1610 --with-gdb-datadir=PATH look for global separate data files in this path 1611 [DATADIR/gdb] 1612 --with-relocated-sources=PATH 1613 automatically relocate this path for source files 1614 --with-auto-load-dir=PATH 1615 directories from which to load auto-loaded scripts 1616 [$debugdir:$datadir/auto-load] 1617 --with-auto-load-safe-path=PATH 1618 directories safe to hold auto-loaded files 1619 [--with-auto-load-dir] 1620 --without-auto-load-safe-path 1621 do not restrict auto-loaded files locations 1622 --with-debuginfod Enable debuginfo lookups with debuginfod 1623 (auto/yes/no) 1624 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets 1625 --with-curses use the curses library instead of the termcap 1626 library 1627 --with-pkgversion=PKG Use PKG in the version string in place of "GDB" 1628 --with-bugurl=URL Direct users to URL to report a bug 1629 --with-system-zlib use installed libz 1630 --with-gnu-ld assume the C compiler uses GNU ld default=no 1631 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1632 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1633 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1634 --with-iconv-bin=PATH specify where to find the iconv program 1635 --with-system-readline use installed readline library 1636 --with-jit-reader-dir=PATH 1637 directory to load the JIT readers from 1638 --with-expat include expat support (auto/yes/no) 1639 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib 1640 --without-libexpat-prefix don't search for libexpat in includedir and libdir 1641 --with-libexpat-type=TYPE type of library to search for (auto/static/shared) 1642 --with-mpfr include MPFR support (auto/yes/no) 1643 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib 1644 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir 1645 --with-libmpfr-type=TYPE type of library to search for (auto/static/shared) 1646 --with-python[=PYTHON] include python support 1647 (auto/yes/no/<python-program>) 1648 --with-python-libdir[=DIR] 1649 search for python's libraries in DIR 1650 --with-guile[=GUILE] include guile support 1651 (auto/yes/no/<guile-version>/<pkg-config-program>) 1652 --with-intel-pt include Intel Processor Trace support (auto/yes/no) 1653 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib 1654 --without-libipt-prefix don't search for libipt in includedir and libdir 1655 --with-libipt-type=TYPE type of library to search for (auto/static/shared) 1656 --without-included-regex 1657 don't use included regex; this is the default on 1658 systems with version 2 of the GNU C library (use 1659 with caution on other system) 1660 --with-sysroot[=DIR] search for usr/lib et al within DIR 1661 --with-system-gdbinit=PATH 1662 automatically load a system-wide gdbinit file 1663 --with-system-gdbinit-dir=PATH 1664 automatically load system-wide gdbinit files from 1665 this directory 1666 --with-lzma support lzma compression (auto/yes/no) 1667 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib 1668 --without-liblzma-prefix don't search for liblzma in includedir and libdir 1669 --with-liblzma-type=TYPE type of library to search for (auto/static/shared) 1670 --with-tcl directory containing tcl configuration (tclConfig.sh) 1671 --with-tk directory containing tk configuration (tkConfig.sh) 1672 --with-x use the X Window System 1673 --with-babeltrace include babeltrace support (auto/yes/no) 1674 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib 1675 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir 1676 --with-libbabeltrace-type=TYPE type of library to search for (auto/static/shared) 1677 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no) 1678 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib 1679 --without-libxxhash-prefix don't search for libxxhash in includedir and libdir 1680 --with-libxxhash-type=TYPE type of library to search for (auto/static/shared) 1681 1682Some influential environment variables: 1683 CC C compiler command 1684 CFLAGS C compiler flags 1685 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1686 nonstandard directory <lib dir> 1687 LIBS libraries to pass to the linker, e.g. -l<library> 1688 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1689 you have headers in a nonstandard directory <include dir> 1690 CXX C++ compiler command 1691 CXXFLAGS C++ compiler flags 1692 CPP C preprocessor 1693 MAKEINFO Parent configure detects if it is of sufficient version. 1694 MAKEINFOFLAGS 1695 Parameters for MAKEINFO. 1696 PKG_CONFIG path to pkg-config utility 1697 PKG_CONFIG_PATH 1698 directories to add to pkg-config's search path 1699 PKG_CONFIG_LIBDIR 1700 path overriding pkg-config's built-in search path 1701 DEBUGINFOD_CFLAGS 1702 C compiler flags for DEBUGINFOD, overriding pkg-config 1703 DEBUGINFOD_LIBS 1704 linker flags for DEBUGINFOD, overriding pkg-config 1705 YACC The `Yet Another Compiler Compiler' implementation to use. 1706 Defaults to the first program found out of: `bison -y', `byacc', 1707 `yacc'. 1708 YFLAGS The list of arguments that will be passed by default to $YACC. 1709 This script will default YFLAGS to the empty string to avoid a 1710 default value of `-d' given by some make applications. 1711 XMKMF Path to xmkmf, Makefile generator for X Window System 1712 1713Use these variables to override the choices made by `configure' or to help 1714it to find libraries and programs with nonstandard names/locations. 1715 1716Report bugs to the package provider. 1717_ACEOF 1718ac_status=$? 1719fi 1720 1721if test "$ac_init_help" = "recursive"; then 1722 # If there are subdirs, report their specific --help. 1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1724 test -d "$ac_dir" || 1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1726 continue 1727 ac_builddir=. 1728 1729case "$ac_dir" in 1730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1731*) 1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1733 # A ".." for each directory in $ac_dir_suffix. 1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1735 case $ac_top_builddir_sub in 1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1738 esac ;; 1739esac 1740ac_abs_top_builddir=$ac_pwd 1741ac_abs_builddir=$ac_pwd$ac_dir_suffix 1742# for backward compatibility: 1743ac_top_builddir=$ac_top_build_prefix 1744 1745case $srcdir in 1746 .) # We are building in place. 1747 ac_srcdir=. 1748 ac_top_srcdir=$ac_top_builddir_sub 1749 ac_abs_top_srcdir=$ac_pwd ;; 1750 [\\/]* | ?:[\\/]* ) # Absolute name. 1751 ac_srcdir=$srcdir$ac_dir_suffix; 1752 ac_top_srcdir=$srcdir 1753 ac_abs_top_srcdir=$srcdir ;; 1754 *) # Relative name. 1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1756 ac_top_srcdir=$ac_top_build_prefix$srcdir 1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1758esac 1759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1760 1761 cd "$ac_dir" || { ac_status=$?; continue; } 1762 # Check for guested configure. 1763 if test -f "$ac_srcdir/configure.gnu"; then 1764 echo && 1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1766 elif test -f "$ac_srcdir/configure"; then 1767 echo && 1768 $SHELL "$ac_srcdir/configure" --help=recursive 1769 else 1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1771 fi || ac_status=$? 1772 cd "$ac_pwd" || { ac_status=$?; break; } 1773 done 1774fi 1775 1776test -n "$ac_init_help" && exit $ac_status 1777if $ac_init_version; then 1778 cat <<\_ACEOF 1779configure 1780generated by GNU Autoconf 2.69 1781 1782Copyright (C) 2012 Free Software Foundation, Inc. 1783This configure script is free software; the Free Software Foundation 1784gives unlimited permission to copy, distribute and modify it. 1785_ACEOF 1786 exit 1787fi 1788 1789## ------------------------ ## 1790## Autoconf initialization. ## 1791## ------------------------ ## 1792 1793# ac_fn_c_try_compile LINENO 1794# -------------------------- 1795# Try to compile conftest.$ac_ext, and return whether this succeeded. 1796ac_fn_c_try_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 rm -f conftest.$ac_objext 1800 if { { ac_try="$ac_compile" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_compile") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { 1816 test -z "$ac_c_werror_flag" || 1817 test ! -s conftest.err 1818 } && test -s conftest.$ac_objext; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_compile 1830 1831# ac_fn_cxx_try_compile LINENO 1832# ---------------------------- 1833# Try to compile conftest.$ac_ext, and return whether this succeeded. 1834ac_fn_cxx_try_compile () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 rm -f conftest.$ac_objext 1838 if { { ac_try="$ac_compile" 1839case "(($ac_try" in 1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1841 *) ac_try_echo=$ac_try;; 1842esac 1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1844$as_echo "$ac_try_echo"; } >&5 1845 (eval "$ac_compile") 2>conftest.err 1846 ac_status=$? 1847 if test -s conftest.err; then 1848 grep -v '^ *+' conftest.err >conftest.er1 1849 cat conftest.er1 >&5 1850 mv -f conftest.er1 conftest.err 1851 fi 1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1853 test $ac_status = 0; } && { 1854 test -z "$ac_cxx_werror_flag" || 1855 test ! -s conftest.err 1856 } && test -s conftest.$ac_objext; then : 1857 ac_retval=0 1858else 1859 $as_echo "$as_me: failed program was:" >&5 1860sed 's/^/| /' conftest.$ac_ext >&5 1861 1862 ac_retval=1 1863fi 1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1865 as_fn_set_status $ac_retval 1866 1867} # ac_fn_cxx_try_compile 1868 1869# ac_fn_c_try_cpp LINENO 1870# ---------------------- 1871# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1872ac_fn_c_try_cpp () 1873{ 1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1875 if { { ac_try="$ac_cpp conftest.$ac_ext" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } > conftest.i && { 1891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1892 test ! -s conftest.err 1893 }; then : 1894 ac_retval=0 1895else 1896 $as_echo "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=1 1900fi 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 as_fn_set_status $ac_retval 1903 1904} # ac_fn_c_try_cpp 1905 1906# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1907# ------------------------------------------------------- 1908# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1909# the include files in INCLUDES and setting the cache variable VAR 1910# accordingly. 1911ac_fn_c_check_header_mongrel () 1912{ 1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1914 if eval \${$3+:} false; then : 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1916$as_echo_n "checking for $2... " >&6; } 1917if eval \${$3+:} false; then : 1918 $as_echo_n "(cached) " >&6 1919fi 1920eval ac_res=\$$3 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922$as_echo "$ac_res" >&6; } 1923else 1924 # Is the header compilable? 1925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1926$as_echo_n "checking $2 usability... " >&6; } 1927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929$4 1930#include <$2> 1931_ACEOF 1932if ac_fn_c_try_compile "$LINENO"; then : 1933 ac_header_compiler=yes 1934else 1935 ac_header_compiler=no 1936fi 1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1939$as_echo "$ac_header_compiler" >&6; } 1940 1941# Is the header present? 1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1943$as_echo_n "checking $2 presence... " >&6; } 1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946#include <$2> 1947_ACEOF 1948if ac_fn_c_try_cpp "$LINENO"; then : 1949 ac_header_preproc=yes 1950else 1951 ac_header_preproc=no 1952fi 1953rm -f conftest.err conftest.i conftest.$ac_ext 1954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1955$as_echo "$ac_header_preproc" >&6; } 1956 1957# So? What about this header? 1958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1959 yes:no: ) 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1961$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1963$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1964 ;; 1965 no:yes:* ) 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1967$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1969$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1971$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1973$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1975$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1976 ;; 1977esac 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1979$as_echo_n "checking for $2... " >&6; } 1980if eval \${$3+:} false; then : 1981 $as_echo_n "(cached) " >&6 1982else 1983 eval "$3=\$ac_header_compiler" 1984fi 1985eval ac_res=\$$3 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1987$as_echo "$ac_res" >&6; } 1988fi 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 1991} # ac_fn_c_check_header_mongrel 1992 1993# ac_fn_c_try_run LINENO 1994# ---------------------- 1995# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1996# that executables *can* be run. 1997ac_fn_c_try_run () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 if { { ac_try="$ac_link" 2001case "(($ac_try" in 2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2003 *) ac_try_echo=$ac_try;; 2004esac 2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2006$as_echo "$ac_try_echo"; } >&5 2007 (eval "$ac_link") 2>&5 2008 ac_status=$? 2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2010 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2011 { { case "(($ac_try" in 2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2013 *) ac_try_echo=$ac_try;; 2014esac 2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2016$as_echo "$ac_try_echo"; } >&5 2017 (eval "$ac_try") 2>&5 2018 ac_status=$? 2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2020 test $ac_status = 0; }; }; then : 2021 ac_retval=0 2022else 2023 $as_echo "$as_me: program exited with status $ac_status" >&5 2024 $as_echo "$as_me: failed program was:" >&5 2025sed 's/^/| /' conftest.$ac_ext >&5 2026 2027 ac_retval=$ac_status 2028fi 2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2031 as_fn_set_status $ac_retval 2032 2033} # ac_fn_c_try_run 2034 2035# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2036# ------------------------------------------------------- 2037# Tests whether HEADER exists and can be compiled using the include files in 2038# INCLUDES, setting the cache variable VAR accordingly. 2039ac_fn_c_check_header_compile () 2040{ 2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2043$as_echo_n "checking for $2... " >&6; } 2044if eval \${$3+:} false; then : 2045 $as_echo_n "(cached) " >&6 2046else 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049$4 2050#include <$2> 2051_ACEOF 2052if ac_fn_c_try_compile "$LINENO"; then : 2053 eval "$3=yes" 2054else 2055 eval "$3=no" 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058fi 2059eval ac_res=\$$3 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2061$as_echo "$ac_res" >&6; } 2062 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2063 2064} # ac_fn_c_check_header_compile 2065 2066# ac_fn_c_try_link LINENO 2067# ----------------------- 2068# Try to link conftest.$ac_ext, and return whether this succeeded. 2069ac_fn_c_try_link () 2070{ 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 rm -f conftest.$ac_objext conftest$ac_exeext 2073 if { { ac_try="$ac_link" 2074case "(($ac_try" in 2075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2076 *) ac_try_echo=$ac_try;; 2077esac 2078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2079$as_echo "$ac_try_echo"; } >&5 2080 (eval "$ac_link") 2>conftest.err 2081 ac_status=$? 2082 if test -s conftest.err; then 2083 grep -v '^ *+' conftest.err >conftest.er1 2084 cat conftest.er1 >&5 2085 mv -f conftest.er1 conftest.err 2086 fi 2087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2088 test $ac_status = 0; } && { 2089 test -z "$ac_c_werror_flag" || 2090 test ! -s conftest.err 2091 } && test -s conftest$ac_exeext && { 2092 test "$cross_compiling" = yes || 2093 test -x conftest$ac_exeext 2094 }; then : 2095 ac_retval=0 2096else 2097 $as_echo "$as_me: failed program was:" >&5 2098sed 's/^/| /' conftest.$ac_ext >&5 2099 2100 ac_retval=1 2101fi 2102 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2103 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2104 # interfere with the next link command; also delete a directory that is 2105 # left behind by Apple's compiler. We do this before executing the actions. 2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2108 as_fn_set_status $ac_retval 2109 2110} # ac_fn_c_try_link 2111 2112# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2113# -------------------------------------------- 2114# Tries to find the compile-time value of EXPR in a program that includes 2115# INCLUDES, setting VAR accordingly. Returns whether the value could be 2116# computed 2117ac_fn_c_compute_int () 2118{ 2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2120 if test "$cross_compiling" = yes; then 2121 # Depending upon the size, compute the lo and hi bounds. 2122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2123/* end confdefs.h. */ 2124$4 2125int 2126main () 2127{ 2128static int test_array [1 - 2 * !(($2) >= 0)]; 2129test_array [0] = 0; 2130return test_array [0]; 2131 2132 ; 2133 return 0; 2134} 2135_ACEOF 2136if ac_fn_c_try_compile "$LINENO"; then : 2137 ac_lo=0 ac_mid=0 2138 while :; do 2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2140/* end confdefs.h. */ 2141$4 2142int 2143main () 2144{ 2145static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2146test_array [0] = 0; 2147return test_array [0]; 2148 2149 ; 2150 return 0; 2151} 2152_ACEOF 2153if ac_fn_c_try_compile "$LINENO"; then : 2154 ac_hi=$ac_mid; break 2155else 2156 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2157 if test $ac_lo -le $ac_mid; then 2158 ac_lo= ac_hi= 2159 break 2160 fi 2161 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2162fi 2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2164 done 2165else 2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2167/* end confdefs.h. */ 2168$4 2169int 2170main () 2171{ 2172static int test_array [1 - 2 * !(($2) < 0)]; 2173test_array [0] = 0; 2174return test_array [0]; 2175 2176 ; 2177 return 0; 2178} 2179_ACEOF 2180if ac_fn_c_try_compile "$LINENO"; then : 2181 ac_hi=-1 ac_mid=-1 2182 while :; do 2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2184/* end confdefs.h. */ 2185$4 2186int 2187main () 2188{ 2189static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2190test_array [0] = 0; 2191return test_array [0]; 2192 2193 ; 2194 return 0; 2195} 2196_ACEOF 2197if ac_fn_c_try_compile "$LINENO"; then : 2198 ac_lo=$ac_mid; break 2199else 2200 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2201 if test $ac_mid -le $ac_hi; then 2202 ac_lo= ac_hi= 2203 break 2204 fi 2205 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2208 done 2209else 2210 ac_lo= ac_hi= 2211fi 2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215# Binary search between lo and hi bounds. 2216while test "x$ac_lo" != "x$ac_hi"; do 2217 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221int 2222main () 2223{ 2224static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2225test_array [0] = 0; 2226return test_array [0]; 2227 2228 ; 2229 return 0; 2230} 2231_ACEOF 2232if ac_fn_c_try_compile "$LINENO"; then : 2233 ac_hi=$ac_mid 2234else 2235 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238done 2239case $ac_lo in #(( 2240?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2241'') ac_retval=1 ;; 2242esac 2243 else 2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2245/* end confdefs.h. */ 2246$4 2247static long int longval () { return $2; } 2248static unsigned long int ulongval () { return $2; } 2249#include <stdio.h> 2250#include <stdlib.h> 2251int 2252main () 2253{ 2254 2255 FILE *f = fopen ("conftest.val", "w"); 2256 if (! f) 2257 return 1; 2258 if (($2) < 0) 2259 { 2260 long int i = longval (); 2261 if (i != ($2)) 2262 return 1; 2263 fprintf (f, "%ld", i); 2264 } 2265 else 2266 { 2267 unsigned long int i = ulongval (); 2268 if (i != ($2)) 2269 return 1; 2270 fprintf (f, "%lu", i); 2271 } 2272 /* Do not output a trailing newline, as this causes \r\n confusion 2273 on some platforms. */ 2274 return ferror (f) || fclose (f) != 0; 2275 2276 ; 2277 return 0; 2278} 2279_ACEOF 2280if ac_fn_c_try_run "$LINENO"; then : 2281 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2282else 2283 ac_retval=1 2284fi 2285rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2286 conftest.$ac_objext conftest.beam conftest.$ac_ext 2287rm -f conftest.val 2288 2289 fi 2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2291 as_fn_set_status $ac_retval 2292 2293} # ac_fn_c_compute_int 2294 2295# ac_fn_c_check_func LINENO FUNC VAR 2296# ---------------------------------- 2297# Tests whether FUNC exists, setting the cache variable VAR accordingly 2298ac_fn_c_check_func () 2299{ 2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2302$as_echo_n "checking for $2... " >&6; } 2303if eval \${$3+:} false; then : 2304 $as_echo_n "(cached) " >&6 2305else 2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2307/* end confdefs.h. */ 2308/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2309 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2310#define $2 innocuous_$2 2311 2312/* System header to define __stub macros and hopefully few prototypes, 2313 which can conflict with char $2 (); below. 2314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2315 <limits.h> exists even on freestanding compilers. */ 2316 2317#ifdef __STDC__ 2318# include <limits.h> 2319#else 2320# include <assert.h> 2321#endif 2322 2323#undef $2 2324 2325/* Override any GCC internal prototype to avoid an error. 2326 Use char because int might match the return type of a GCC 2327 builtin and then its argument prototype would still apply. */ 2328#ifdef __cplusplus 2329extern "C" 2330#endif 2331char $2 (); 2332/* The GNU C library defines this for functions which it implements 2333 to always fail with ENOSYS. Some functions are actually named 2334 something starting with __ and the normal name is an alias. */ 2335#if defined __stub_$2 || defined __stub___$2 2336choke me 2337#endif 2338 2339int 2340main () 2341{ 2342return $2 (); 2343 ; 2344 return 0; 2345} 2346_ACEOF 2347if ac_fn_c_try_link "$LINENO"; then : 2348 eval "$3=yes" 2349else 2350 eval "$3=no" 2351fi 2352rm -f core conftest.err conftest.$ac_objext \ 2353 conftest$ac_exeext conftest.$ac_ext 2354fi 2355eval ac_res=\$$3 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2357$as_echo "$ac_res" >&6; } 2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2359 2360} # ac_fn_c_check_func 2361 2362# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2363# ------------------------------------------- 2364# Tests whether TYPE exists after having included INCLUDES, setting cache 2365# variable VAR accordingly. 2366ac_fn_c_check_type () 2367{ 2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2370$as_echo_n "checking for $2... " >&6; } 2371if eval \${$3+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373else 2374 eval "$3=no" 2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2376/* end confdefs.h. */ 2377$4 2378int 2379main () 2380{ 2381if (sizeof ($2)) 2382 return 0; 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387if ac_fn_c_try_compile "$LINENO"; then : 2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2389/* end confdefs.h. */ 2390$4 2391int 2392main () 2393{ 2394if (sizeof (($2))) 2395 return 0; 2396 ; 2397 return 0; 2398} 2399_ACEOF 2400if ac_fn_c_try_compile "$LINENO"; then : 2401 2402else 2403 eval "$3=yes" 2404fi 2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2406fi 2407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2408fi 2409eval ac_res=\$$3 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2411$as_echo "$ac_res" >&6; } 2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2413 2414} # ac_fn_c_check_type 2415 2416# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2417# --------------------------------------------- 2418# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2419# accordingly. 2420ac_fn_c_check_decl () 2421{ 2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2423 as_decl_name=`echo $2|sed 's/ *(.*//'` 2424 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2426$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2427if eval \${$3+:} false; then : 2428 $as_echo_n "(cached) " >&6 2429else 2430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2431/* end confdefs.h. */ 2432$4 2433int 2434main () 2435{ 2436#ifndef $as_decl_name 2437#ifdef __cplusplus 2438 (void) $as_decl_use; 2439#else 2440 (void) $as_decl_name; 2441#endif 2442#endif 2443 2444 ; 2445 return 0; 2446} 2447_ACEOF 2448if ac_fn_c_try_compile "$LINENO"; then : 2449 eval "$3=yes" 2450else 2451 eval "$3=no" 2452fi 2453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2454fi 2455eval ac_res=\$$3 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2457$as_echo "$ac_res" >&6; } 2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2459 2460} # ac_fn_c_check_decl 2461 2462# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2463# ---------------------------------------------------- 2464# Tries to find if the field MEMBER exists in type AGGR, after including 2465# INCLUDES, setting cache variable VAR accordingly. 2466ac_fn_c_check_member () 2467{ 2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2470$as_echo_n "checking for $2.$3... " >&6; } 2471if eval \${$4+:} false; then : 2472 $as_echo_n "(cached) " >&6 2473else 2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2475/* end confdefs.h. */ 2476$5 2477int 2478main () 2479{ 2480static $2 ac_aggr; 2481if (ac_aggr.$3) 2482return 0; 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487if ac_fn_c_try_compile "$LINENO"; then : 2488 eval "$4=yes" 2489else 2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2491/* end confdefs.h. */ 2492$5 2493int 2494main () 2495{ 2496static $2 ac_aggr; 2497if (sizeof ac_aggr.$3) 2498return 0; 2499 ; 2500 return 0; 2501} 2502_ACEOF 2503if ac_fn_c_try_compile "$LINENO"; then : 2504 eval "$4=yes" 2505else 2506 eval "$4=no" 2507fi 2508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2509fi 2510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2511fi 2512eval ac_res=\$$4 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2514$as_echo "$ac_res" >&6; } 2515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2516 2517} # ac_fn_c_check_member 2518 2519# ac_fn_cxx_try_link LINENO 2520# ------------------------- 2521# Try to link conftest.$ac_ext, and return whether this succeeded. 2522ac_fn_cxx_try_link () 2523{ 2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2525 rm -f conftest.$ac_objext conftest$ac_exeext 2526 if { { ac_try="$ac_link" 2527case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530esac 2531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2532$as_echo "$ac_try_echo"; } >&5 2533 (eval "$ac_link") 2>conftest.err 2534 ac_status=$? 2535 if test -s conftest.err; then 2536 grep -v '^ *+' conftest.err >conftest.er1 2537 cat conftest.er1 >&5 2538 mv -f conftest.er1 conftest.err 2539 fi 2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2541 test $ac_status = 0; } && { 2542 test -z "$ac_cxx_werror_flag" || 2543 test ! -s conftest.err 2544 } && test -s conftest$ac_exeext && { 2545 test "$cross_compiling" = yes || 2546 test -x conftest$ac_exeext 2547 }; then : 2548 ac_retval=0 2549else 2550 $as_echo "$as_me: failed program was:" >&5 2551sed 's/^/| /' conftest.$ac_ext >&5 2552 2553 ac_retval=1 2554fi 2555 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2556 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2557 # interfere with the next link command; also delete a directory that is 2558 # left behind by Apple's compiler. We do this before executing the actions. 2559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2561 as_fn_set_status $ac_retval 2562 2563} # ac_fn_cxx_try_link 2564 2565# ac_fn_cxx_check_func LINENO FUNC VAR 2566# ------------------------------------ 2567# Tests whether FUNC exists, setting the cache variable VAR accordingly 2568ac_fn_cxx_check_func () 2569{ 2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2572$as_echo_n "checking for $2... " >&6; } 2573if eval \${$3+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2577/* end confdefs.h. */ 2578/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2580#define $2 innocuous_$2 2581 2582/* System header to define __stub macros and hopefully few prototypes, 2583 which can conflict with char $2 (); below. 2584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2585 <limits.h> exists even on freestanding compilers. */ 2586 2587#ifdef __STDC__ 2588# include <limits.h> 2589#else 2590# include <assert.h> 2591#endif 2592 2593#undef $2 2594 2595/* Override any GCC internal prototype to avoid an error. 2596 Use char because int might match the return type of a GCC 2597 builtin and then its argument prototype would still apply. */ 2598#ifdef __cplusplus 2599extern "C" 2600#endif 2601char $2 (); 2602/* The GNU C library defines this for functions which it implements 2603 to always fail with ENOSYS. Some functions are actually named 2604 something starting with __ and the normal name is an alias. */ 2605#if defined __stub_$2 || defined __stub___$2 2606choke me 2607#endif 2608 2609int 2610main () 2611{ 2612return $2 (); 2613 ; 2614 return 0; 2615} 2616_ACEOF 2617if ac_fn_cxx_try_link "$LINENO"; then : 2618 eval "$3=yes" 2619else 2620 eval "$3=no" 2621fi 2622rm -f core conftest.err conftest.$ac_objext \ 2623 conftest$ac_exeext conftest.$ac_ext 2624fi 2625eval ac_res=\$$3 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2627$as_echo "$ac_res" >&6; } 2628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2629 2630} # ac_fn_cxx_check_func 2631cat >config.log <<_ACEOF 2632This file contains any messages produced by compilers while 2633running configure, to aid debugging if configure makes a mistake. 2634 2635It was created by $as_me, which was 2636generated by GNU Autoconf 2.69. Invocation command line was 2637 2638 $ $0 $@ 2639 2640_ACEOF 2641exec 5>>config.log 2642{ 2643cat <<_ASUNAME 2644## --------- ## 2645## Platform. ## 2646## --------- ## 2647 2648hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2649uname -m = `(uname -m) 2>/dev/null || echo unknown` 2650uname -r = `(uname -r) 2>/dev/null || echo unknown` 2651uname -s = `(uname -s) 2>/dev/null || echo unknown` 2652uname -v = `(uname -v) 2>/dev/null || echo unknown` 2653 2654/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2655/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2656 2657/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2658/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2659/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2660/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2661/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2662/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2663/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2664 2665_ASUNAME 2666 2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668for as_dir in $PATH 2669do 2670 IFS=$as_save_IFS 2671 test -z "$as_dir" && as_dir=. 2672 $as_echo "PATH: $as_dir" 2673 done 2674IFS=$as_save_IFS 2675 2676} >&5 2677 2678cat >&5 <<_ACEOF 2679 2680 2681## ----------- ## 2682## Core tests. ## 2683## ----------- ## 2684 2685_ACEOF 2686 2687 2688# Keep a trace of the command line. 2689# Strip out --no-create and --no-recursion so they do not pile up. 2690# Strip out --silent because we don't want to record it for future runs. 2691# Also quote any args containing shell meta-characters. 2692# Make two passes to allow for proper duplicate-argument suppression. 2693ac_configure_args= 2694ac_configure_args0= 2695ac_configure_args1= 2696ac_must_keep_next=false 2697for ac_pass in 1 2 2698do 2699 for ac_arg 2700 do 2701 case $ac_arg in 2702 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2704 | -silent | --silent | --silen | --sile | --sil) 2705 continue ;; 2706 *\'*) 2707 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2708 esac 2709 case $ac_pass in 2710 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2711 2) 2712 as_fn_append ac_configure_args1 " '$ac_arg'" 2713 if test $ac_must_keep_next = true; then 2714 ac_must_keep_next=false # Got value, back to normal. 2715 else 2716 case $ac_arg in 2717 *=* | --config-cache | -C | -disable-* | --disable-* \ 2718 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2719 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2720 | -with-* | --with-* | -without-* | --without-* | --x) 2721 case "$ac_configure_args0 " in 2722 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2723 esac 2724 ;; 2725 -* ) ac_must_keep_next=true ;; 2726 esac 2727 fi 2728 as_fn_append ac_configure_args " '$ac_arg'" 2729 ;; 2730 esac 2731 done 2732done 2733{ ac_configure_args0=; unset ac_configure_args0;} 2734{ ac_configure_args1=; unset ac_configure_args1;} 2735 2736# When interrupted or exit'd, cleanup temporary files, and complete 2737# config.log. We remove comments because anyway the quotes in there 2738# would cause problems or look ugly. 2739# WARNING: Use '\'' to represent an apostrophe within the trap. 2740# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2741trap 'exit_status=$? 2742 # Save into config.log some information that might help in debugging. 2743 { 2744 echo 2745 2746 $as_echo "## ---------------- ## 2747## Cache variables. ## 2748## ---------------- ##" 2749 echo 2750 # The following way of writing the cache mishandles newlines in values, 2751( 2752 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2753 eval ac_val=\$$ac_var 2754 case $ac_val in #( 2755 *${as_nl}*) 2756 case $ac_var in #( 2757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2758$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2759 esac 2760 case $ac_var in #( 2761 _ | IFS | as_nl) ;; #( 2762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2763 *) { eval $ac_var=; unset $ac_var;} ;; 2764 esac ;; 2765 esac 2766 done 2767 (set) 2>&1 | 2768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2769 *${as_nl}ac_space=\ *) 2770 sed -n \ 2771 "s/'\''/'\''\\\\'\'''\''/g; 2772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2773 ;; #( 2774 *) 2775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2776 ;; 2777 esac | 2778 sort 2779) 2780 echo 2781 2782 $as_echo "## ----------------- ## 2783## Output variables. ## 2784## ----------------- ##" 2785 echo 2786 for ac_var in $ac_subst_vars 2787 do 2788 eval ac_val=\$$ac_var 2789 case $ac_val in 2790 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2791 esac 2792 $as_echo "$ac_var='\''$ac_val'\''" 2793 done | sort 2794 echo 2795 2796 if test -n "$ac_subst_files"; then 2797 $as_echo "## ------------------- ## 2798## File substitutions. ## 2799## ------------------- ##" 2800 echo 2801 for ac_var in $ac_subst_files 2802 do 2803 eval ac_val=\$$ac_var 2804 case $ac_val in 2805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2806 esac 2807 $as_echo "$ac_var='\''$ac_val'\''" 2808 done | sort 2809 echo 2810 fi 2811 2812 if test -s confdefs.h; then 2813 $as_echo "## ----------- ## 2814## confdefs.h. ## 2815## ----------- ##" 2816 echo 2817 cat confdefs.h 2818 echo 2819 fi 2820 test "$ac_signal" != 0 && 2821 $as_echo "$as_me: caught signal $ac_signal" 2822 $as_echo "$as_me: exit $exit_status" 2823 } >&5 2824 rm -f core *.core core.conftest.* && 2825 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2826 exit $exit_status 2827' 0 2828for ac_signal in 1 2 13 15; do 2829 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2830done 2831ac_signal=0 2832 2833# confdefs.h avoids OS command line length limits that DEFS can exceed. 2834rm -f -r conftest* confdefs.h 2835 2836$as_echo "/* confdefs.h */" > confdefs.h 2837 2838# Predefined preprocessor variables. 2839 2840cat >>confdefs.h <<_ACEOF 2841#define PACKAGE_NAME "$PACKAGE_NAME" 2842_ACEOF 2843 2844cat >>confdefs.h <<_ACEOF 2845#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2846_ACEOF 2847 2848cat >>confdefs.h <<_ACEOF 2849#define PACKAGE_VERSION "$PACKAGE_VERSION" 2850_ACEOF 2851 2852cat >>confdefs.h <<_ACEOF 2853#define PACKAGE_STRING "$PACKAGE_STRING" 2854_ACEOF 2855 2856cat >>confdefs.h <<_ACEOF 2857#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2858_ACEOF 2859 2860cat >>confdefs.h <<_ACEOF 2861#define PACKAGE_URL "$PACKAGE_URL" 2862_ACEOF 2863 2864 2865# Let the site file select an alternate cache file if it wants to. 2866# Prefer an explicitly selected file to automatically selected ones. 2867ac_site_file1=NONE 2868ac_site_file2=NONE 2869if test -n "$CONFIG_SITE"; then 2870 # We do not want a PATH search for config.site. 2871 case $CONFIG_SITE in #(( 2872 -*) ac_site_file1=./$CONFIG_SITE;; 2873 */*) ac_site_file1=$CONFIG_SITE;; 2874 *) ac_site_file1=./$CONFIG_SITE;; 2875 esac 2876elif test "x$prefix" != xNONE; then 2877 ac_site_file1=$prefix/share/config.site 2878 ac_site_file2=$prefix/etc/config.site 2879else 2880 ac_site_file1=$ac_default_prefix/share/config.site 2881 ac_site_file2=$ac_default_prefix/etc/config.site 2882fi 2883for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2884do 2885 test "x$ac_site_file" = xNONE && continue 2886 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2888$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2889 sed 's/^/| /' "$ac_site_file" >&5 2890 . "$ac_site_file" \ 2891 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2893as_fn_error $? "failed to load site script $ac_site_file 2894See \`config.log' for more details" "$LINENO" 5; } 2895 fi 2896done 2897 2898if test -r "$cache_file"; then 2899 # Some versions of bash will fail to source /dev/null (special files 2900 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2901 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2903$as_echo "$as_me: loading cache $cache_file" >&6;} 2904 case $cache_file in 2905 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2906 *) . "./$cache_file";; 2907 esac 2908 fi 2909else 2910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2911$as_echo "$as_me: creating cache $cache_file" >&6;} 2912 >$cache_file 2913fi 2914 2915as_fn_append ac_header_list " stdlib.h" 2916as_fn_append ac_header_list " unistd.h" 2917as_fn_append ac_header_list " sys/param.h" 2918# Check that the precious variables saved in the cache have kept the same 2919# value. 2920ac_cache_corrupted=false 2921for ac_var in $ac_precious_vars; do 2922 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2923 eval ac_new_set=\$ac_env_${ac_var}_set 2924 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2925 eval ac_new_val=\$ac_env_${ac_var}_value 2926 case $ac_old_set,$ac_new_set in 2927 set,) 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2929$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2930 ac_cache_corrupted=: ;; 2931 ,set) 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2933$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2934 ac_cache_corrupted=: ;; 2935 ,);; 2936 *) 2937 if test "x$ac_old_val" != "x$ac_new_val"; then 2938 # differences in whitespace do not lead to failure. 2939 ac_old_val_w=`echo x $ac_old_val` 2940 ac_new_val_w=`echo x $ac_new_val` 2941 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2943$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2944 ac_cache_corrupted=: 2945 else 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2947$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2948 eval $ac_var=\$ac_old_val 2949 fi 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2951$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2953$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2954 fi;; 2955 esac 2956 # Pass precious variables to config.status. 2957 if test "$ac_new_set" = set; then 2958 case $ac_new_val in 2959 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2960 *) ac_arg=$ac_var=$ac_new_val ;; 2961 esac 2962 case " $ac_configure_args " in 2963 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2964 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2965 esac 2966 fi 2967done 2968if $ac_cache_corrupted; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2972$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2973 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2974fi 2975## -------------------- ## 2976## Main body of script. ## 2977## -------------------- ## 2978 2979ac_ext=c 2980ac_cpp='$CPP $CPPFLAGS' 2981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2983ac_compiler_gnu=$ac_cv_c_compiler_gnu 2984 2985 2986 2987 2988 2989ac_config_headers="$ac_config_headers config.h:config.in" 2990 2991 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2993$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2994 # Check whether --enable-maintainer-mode was given. 2995if test "${enable_maintainer_mode+set}" = set; then : 2996 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2997else 2998 USE_MAINTAINER_MODE=no 2999fi 3000 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3002$as_echo "$USE_MAINTAINER_MODE" >&6; } 3003 if test $USE_MAINTAINER_MODE = yes; then 3004 MAINTAINER_MODE_TRUE= 3005 MAINTAINER_MODE_FALSE='#' 3006else 3007 MAINTAINER_MODE_TRUE='#' 3008 MAINTAINER_MODE_FALSE= 3009fi 3010 3011 MAINT=$MAINTAINER_MODE_TRUE 3012 3013 3014 3015ac_ext=c 3016ac_cpp='$CPP $CPPFLAGS' 3017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3019ac_compiler_gnu=$ac_cv_c_compiler_gnu 3020if test -n "$ac_tool_prefix"; then 3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3022set dummy ${ac_tool_prefix}gcc; ac_word=$2 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024$as_echo_n "checking for $ac_word... " >&6; } 3025if ${ac_cv_prog_CC+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 if test -n "$CC"; then 3029 ac_cv_prog_CC="$CC" # Let the user override the test. 3030else 3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3032for as_dir in $PATH 3033do 3034 IFS=$as_save_IFS 3035 test -z "$as_dir" && as_dir=. 3036 for ac_exec_ext in '' $ac_executable_extensions; do 3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3038 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3040 break 2 3041 fi 3042done 3043 done 3044IFS=$as_save_IFS 3045 3046fi 3047fi 3048CC=$ac_cv_prog_CC 3049if test -n "$CC"; then 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3051$as_echo "$CC" >&6; } 3052else 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3054$as_echo "no" >&6; } 3055fi 3056 3057 3058fi 3059if test -z "$ac_cv_prog_CC"; then 3060 ac_ct_CC=$CC 3061 # Extract the first word of "gcc", so it can be a program name with args. 3062set dummy gcc; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_ac_ct_CC+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$ac_ct_CC"; then 3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_ac_ct_CC="gcc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088ac_ct_CC=$ac_cv_prog_ac_ct_CC 3089if test -n "$ac_ct_CC"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3091$as_echo "$ac_ct_CC" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 if test "x$ac_ct_CC" = x; then 3098 CC="" 3099 else 3100 case $cross_compiling:$ac_tool_warned in 3101yes:) 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104ac_tool_warned=yes ;; 3105esac 3106 CC=$ac_ct_CC 3107 fi 3108else 3109 CC="$ac_cv_prog_CC" 3110fi 3111 3112if test -z "$CC"; then 3113 if test -n "$ac_tool_prefix"; then 3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3115set dummy ${ac_tool_prefix}cc; ac_word=$2 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3117$as_echo_n "checking for $ac_word... " >&6; } 3118if ${ac_cv_prog_CC+:} false; then : 3119 $as_echo_n "(cached) " >&6 3120else 3121 if test -n "$CC"; then 3122 ac_cv_prog_CC="$CC" # Let the user override the test. 3123else 3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3125for as_dir in $PATH 3126do 3127 IFS=$as_save_IFS 3128 test -z "$as_dir" && as_dir=. 3129 for ac_exec_ext in '' $ac_executable_extensions; do 3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3131 ac_cv_prog_CC="${ac_tool_prefix}cc" 3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3133 break 2 3134 fi 3135done 3136 done 3137IFS=$as_save_IFS 3138 3139fi 3140fi 3141CC=$ac_cv_prog_CC 3142if test -n "$CC"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3144$as_echo "$CC" >&6; } 3145else 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3147$as_echo "no" >&6; } 3148fi 3149 3150 3151 fi 3152fi 3153if test -z "$CC"; then 3154 # Extract the first word of "cc", so it can be a program name with args. 3155set dummy cc; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if ${ac_cv_prog_CC+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164 ac_prog_rejected=no 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3173 ac_prog_rejected=yes 3174 continue 3175 fi 3176 ac_cv_prog_CC="cc" 3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3178 break 2 3179 fi 3180done 3181 done 3182IFS=$as_save_IFS 3183 3184if test $ac_prog_rejected = yes; then 3185 # We found a bogon in the path, so make sure we never use it. 3186 set dummy $ac_cv_prog_CC 3187 shift 3188 if test $# != 0; then 3189 # We chose a different compiler from the bogus one. 3190 # However, it has the same basename, so the bogon will be chosen 3191 # first if we set CC to just the basename; use the full file name. 3192 shift 3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3194 fi 3195fi 3196fi 3197fi 3198CC=$ac_cv_prog_CC 3199if test -n "$CC"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3201$as_echo "$CC" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208fi 3209if test -z "$CC"; then 3210 if test -n "$ac_tool_prefix"; then 3211 for ac_prog in cl.exe 3212 do 3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3214set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3216$as_echo_n "checking for $ac_word... " >&6; } 3217if ${ac_cv_prog_CC+:} false; then : 3218 $as_echo_n "(cached) " >&6 3219else 3220 if test -n "$CC"; then 3221 ac_cv_prog_CC="$CC" # Let the user override the test. 3222else 3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3224for as_dir in $PATH 3225do 3226 IFS=$as_save_IFS 3227 test -z "$as_dir" && as_dir=. 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3232 break 2 3233 fi 3234done 3235 done 3236IFS=$as_save_IFS 3237 3238fi 3239fi 3240CC=$ac_cv_prog_CC 3241if test -n "$CC"; then 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3243$as_echo "$CC" >&6; } 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247fi 3248 3249 3250 test -n "$CC" && break 3251 done 3252fi 3253if test -z "$CC"; then 3254 ac_ct_CC=$CC 3255 for ac_prog in cl.exe 3256do 3257 # Extract the first word of "$ac_prog", so it can be a program name with args. 3258set dummy $ac_prog; ac_word=$2 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3260$as_echo_n "checking for $ac_word... " >&6; } 3261if ${ac_cv_prog_ac_ct_CC+:} false; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 if test -n "$ac_ct_CC"; then 3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3266else 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH 3269do 3270 IFS=$as_save_IFS 3271 test -z "$as_dir" && as_dir=. 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3274 ac_cv_prog_ac_ct_CC="$ac_prog" 3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3276 break 2 3277 fi 3278done 3279 done 3280IFS=$as_save_IFS 3281 3282fi 3283fi 3284ac_ct_CC=$ac_cv_prog_ac_ct_CC 3285if test -n "$ac_ct_CC"; then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3287$as_echo "$ac_ct_CC" >&6; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3290$as_echo "no" >&6; } 3291fi 3292 3293 3294 test -n "$ac_ct_CC" && break 3295done 3296 3297 if test "x$ac_ct_CC" = x; then 3298 CC="" 3299 else 3300 case $cross_compiling:$ac_tool_warned in 3301yes:) 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3304ac_tool_warned=yes ;; 3305esac 3306 CC=$ac_ct_CC 3307 fi 3308fi 3309 3310fi 3311 3312 3313test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3315as_fn_error $? "no acceptable C compiler found in \$PATH 3316See \`config.log' for more details" "$LINENO" 5; } 3317 3318# Provide some information about the compiler. 3319$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3320set X $ac_compile 3321ac_compiler=$2 3322for ac_option in --version -v -V -qversion; do 3323 { { ac_try="$ac_compiler $ac_option >&5" 3324case "(($ac_try" in 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3326 *) ac_try_echo=$ac_try;; 3327esac 3328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329$as_echo "$ac_try_echo"; } >&5 3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3331 ac_status=$? 3332 if test -s conftest.err; then 3333 sed '10a\ 3334... rest of stderr output deleted ... 3335 10q' conftest.err >conftest.er1 3336 cat conftest.er1 >&5 3337 fi 3338 rm -f conftest.er1 conftest.err 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; } 3341done 3342 3343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3344/* end confdefs.h. */ 3345 3346int 3347main () 3348{ 3349 3350 ; 3351 return 0; 3352} 3353_ACEOF 3354ac_clean_files_save=$ac_clean_files 3355ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3356# Try to create an executable without -o first, disregard a.out. 3357# It will help us diagnose broken compilers, and finding out an intuition 3358# of exeext. 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3360$as_echo_n "checking whether the C compiler works... " >&6; } 3361ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3362 3363# The possible output files: 3364ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3365 3366ac_rmfiles= 3367for ac_file in $ac_files 3368do 3369 case $ac_file in 3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3371 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3372 esac 3373done 3374rm -f $ac_rmfiles 3375 3376if { { ac_try="$ac_link_default" 3377case "(($ac_try" in 3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3379 *) ac_try_echo=$ac_try;; 3380esac 3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3382$as_echo "$ac_try_echo"; } >&5 3383 (eval "$ac_link_default") 2>&5 3384 ac_status=$? 3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3386 test $ac_status = 0; }; then : 3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3388# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3389# in a Makefile. We should not override ac_cv_exeext if it was cached, 3390# so that the user can short-circuit this test for compilers unknown to 3391# Autoconf. 3392for ac_file in $ac_files '' 3393do 3394 test -f "$ac_file" || continue 3395 case $ac_file in 3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3397 ;; 3398 [ab].out ) 3399 # We found the default executable, but exeext='' is most 3400 # certainly right. 3401 break;; 3402 *.* ) 3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3404 then :; else 3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3406 fi 3407 # We set ac_cv_exeext here because the later test for it is not 3408 # safe: cross compilers may not add the suffix if given an `-o' 3409 # argument, so we may need to know it at that point already. 3410 # Even if this section looks crufty: it has the advantage of 3411 # actually working. 3412 break;; 3413 * ) 3414 break;; 3415 esac 3416done 3417test "$ac_cv_exeext" = no && ac_cv_exeext= 3418 3419else 3420 ac_file='' 3421fi 3422if test -z "$ac_file"; then : 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3424$as_echo "no" >&6; } 3425$as_echo "$as_me: failed program was:" >&5 3426sed 's/^/| /' conftest.$ac_ext >&5 3427 3428{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3430as_fn_error 77 "C compiler cannot create executables 3431See \`config.log' for more details" "$LINENO" 5; } 3432else 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3434$as_echo "yes" >&6; } 3435fi 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3437$as_echo_n "checking for C compiler default output file name... " >&6; } 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3439$as_echo "$ac_file" >&6; } 3440ac_exeext=$ac_cv_exeext 3441 3442rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3443ac_clean_files=$ac_clean_files_save 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3445$as_echo_n "checking for suffix of executables... " >&6; } 3446if { { ac_try="$ac_link" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452$as_echo "$ac_try_echo"; } >&5 3453 (eval "$ac_link") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; }; then : 3457 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3458# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3459# work properly (i.e., refer to `conftest.exe'), while it won't with 3460# `rm'. 3461for ac_file in conftest.exe conftest conftest.*; do 3462 test -f "$ac_file" || continue 3463 case $ac_file in 3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3466 break;; 3467 * ) break;; 3468 esac 3469done 3470else 3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3473as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3474See \`config.log' for more details" "$LINENO" 5; } 3475fi 3476rm -f conftest conftest$ac_cv_exeext 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3478$as_echo "$ac_cv_exeext" >&6; } 3479 3480rm -f conftest.$ac_ext 3481EXEEXT=$ac_cv_exeext 3482ac_exeext=$EXEEXT 3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485#include <stdio.h> 3486int 3487main () 3488{ 3489FILE *f = fopen ("conftest.out", "w"); 3490 return ferror (f) || fclose (f) != 0; 3491 3492 ; 3493 return 0; 3494} 3495_ACEOF 3496ac_clean_files="$ac_clean_files conftest.out" 3497# Check that the compiler produces executables we can run. If not, either 3498# the compiler is broken, or we cross compile. 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3500$as_echo_n "checking whether we are cross compiling... " >&6; } 3501if test "$cross_compiling" != yes; then 3502 { { ac_try="$ac_link" 3503case "(($ac_try" in 3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3505 *) ac_try_echo=$ac_try;; 3506esac 3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3508$as_echo "$ac_try_echo"; } >&5 3509 (eval "$ac_link") 2>&5 3510 ac_status=$? 3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3512 test $ac_status = 0; } 3513 if { ac_try='./conftest$ac_cv_exeext' 3514 { { case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_try") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; }; then 3524 cross_compiling=no 3525 else 3526 if test "$cross_compiling" = maybe; then 3527 cross_compiling=yes 3528 else 3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3531as_fn_error $? "cannot run C compiled programs. 3532If you meant to cross compile, use \`--host'. 3533See \`config.log' for more details" "$LINENO" 5; } 3534 fi 3535 fi 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3538$as_echo "$cross_compiling" >&6; } 3539 3540rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3541ac_clean_files=$ac_clean_files_save 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3543$as_echo_n "checking for suffix of object files... " >&6; } 3544if ${ac_cv_objext+:} false; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558rm -f conftest.o conftest.obj 3559if { { ac_try="$ac_compile" 3560case "(($ac_try" in 3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3562 *) ac_try_echo=$ac_try;; 3563esac 3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3565$as_echo "$ac_try_echo"; } >&5 3566 (eval "$ac_compile") 2>&5 3567 ac_status=$? 3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3569 test $ac_status = 0; }; then : 3570 for ac_file in conftest.o conftest.obj conftest.*; do 3571 test -f "$ac_file" || continue; 3572 case $ac_file in 3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3575 break;; 3576 esac 3577done 3578else 3579 $as_echo "$as_me: failed program was:" >&5 3580sed 's/^/| /' conftest.$ac_ext >&5 3581 3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3584as_fn_error $? "cannot compute suffix of object files: cannot compile 3585See \`config.log' for more details" "$LINENO" 5; } 3586fi 3587rm -f conftest.$ac_cv_objext conftest.$ac_ext 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3590$as_echo "$ac_cv_objext" >&6; } 3591OBJEXT=$ac_cv_objext 3592ac_objext=$OBJEXT 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3594$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3595if ${ac_cv_c_compiler_gnu+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599/* end confdefs.h. */ 3600 3601int 3602main () 3603{ 3604#ifndef __GNUC__ 3605 choke me 3606#endif 3607 3608 ; 3609 return 0; 3610} 3611_ACEOF 3612if ac_fn_c_try_compile "$LINENO"; then : 3613 ac_compiler_gnu=yes 3614else 3615 ac_compiler_gnu=no 3616fi 3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3618ac_cv_c_compiler_gnu=$ac_compiler_gnu 3619 3620fi 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3622$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3623if test $ac_compiler_gnu = yes; then 3624 GCC=yes 3625else 3626 GCC= 3627fi 3628ac_test_CFLAGS=${CFLAGS+set} 3629ac_save_CFLAGS=$CFLAGS 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3631$as_echo_n "checking whether $CC accepts -g... " >&6; } 3632if ${ac_cv_prog_cc_g+:} false; then : 3633 $as_echo_n "(cached) " >&6 3634else 3635 ac_save_c_werror_flag=$ac_c_werror_flag 3636 ac_c_werror_flag=yes 3637 ac_cv_prog_cc_g=no 3638 CFLAGS="-g" 3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642int 3643main () 3644{ 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650if ac_fn_c_try_compile "$LINENO"; then : 3651 ac_cv_prog_cc_g=yes 3652else 3653 CFLAGS="" 3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665if ac_fn_c_try_compile "$LINENO"; then : 3666 3667else 3668 ac_c_werror_flag=$ac_save_c_werror_flag 3669 CFLAGS="-g" 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main () 3675{ 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681if ac_fn_c_try_compile "$LINENO"; then : 3682 ac_cv_prog_cc_g=yes 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3685fi 3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3687fi 3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3689 ac_c_werror_flag=$ac_save_c_werror_flag 3690fi 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3692$as_echo "$ac_cv_prog_cc_g" >&6; } 3693if test "$ac_test_CFLAGS" = set; then 3694 CFLAGS=$ac_save_CFLAGS 3695elif test $ac_cv_prog_cc_g = yes; then 3696 if test "$GCC" = yes; then 3697 CFLAGS="-g -O2" 3698 else 3699 CFLAGS="-g" 3700 fi 3701else 3702 if test "$GCC" = yes; then 3703 CFLAGS="-O2" 3704 else 3705 CFLAGS= 3706 fi 3707fi 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3709$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3710if ${ac_cv_prog_cc_c89+:} false; then : 3711 $as_echo_n "(cached) " >&6 3712else 3713 ac_cv_prog_cc_c89=no 3714ac_save_CC=$CC 3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3716/* end confdefs.h. */ 3717#include <stdarg.h> 3718#include <stdio.h> 3719struct stat; 3720/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3721struct buf { int x; }; 3722FILE * (*rcsopen) (struct buf *, struct stat *, int); 3723static char *e (p, i) 3724 char **p; 3725 int i; 3726{ 3727 return p[i]; 3728} 3729static char *f (char * (*g) (char **, int), char **p, ...) 3730{ 3731 char *s; 3732 va_list v; 3733 va_start (v,p); 3734 s = g (p, va_arg (v,int)); 3735 va_end (v); 3736 return s; 3737} 3738 3739/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3740 function prototypes and stuff, but not '\xHH' hex character constants. 3741 These don't provoke an error unfortunately, instead are silently treated 3742 as 'x'. The following induces an error, until -std is added to get 3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3744 array size at least. It's necessary to write '\x00'==0 to get something 3745 that's true only with -std. */ 3746int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3747 3748/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3749 inside strings and character constants. */ 3750#define FOO(x) 'x' 3751int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3752 3753int test (int i, double x); 3754struct s1 {int (*f) (int a);}; 3755struct s2 {int (*f) (double a);}; 3756int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3757int argc; 3758char **argv; 3759int 3760main () 3761{ 3762return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3763 ; 3764 return 0; 3765} 3766_ACEOF 3767for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3769do 3770 CC="$ac_save_CC $ac_arg" 3771 if ac_fn_c_try_compile "$LINENO"; then : 3772 ac_cv_prog_cc_c89=$ac_arg 3773fi 3774rm -f core conftest.err conftest.$ac_objext 3775 test "x$ac_cv_prog_cc_c89" != "xno" && break 3776done 3777rm -f conftest.$ac_ext 3778CC=$ac_save_CC 3779 3780fi 3781# AC_CACHE_VAL 3782case "x$ac_cv_prog_cc_c89" in 3783 x) 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3785$as_echo "none needed" >&6; } ;; 3786 xno) 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3788$as_echo "unsupported" >&6; } ;; 3789 *) 3790 CC="$CC $ac_cv_prog_cc_c89" 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3792$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3793esac 3794if test "x$ac_cv_prog_cc_c89" != xno; then : 3795 3796fi 3797 3798ac_ext=c 3799ac_cpp='$CPP $CPPFLAGS' 3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3802ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803 3804ac_ext=cpp 3805ac_cpp='$CXXCPP $CPPFLAGS' 3806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3809if test -z "$CXX"; then 3810 if test -n "$CCC"; then 3811 CXX=$CCC 3812 else 3813 if test -n "$ac_tool_prefix"; then 3814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3815 do 3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3817set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3819$as_echo_n "checking for $ac_word... " >&6; } 3820if ${ac_cv_prog_CXX+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 if test -n "$CXX"; then 3824 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3825else 3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3827for as_dir in $PATH 3828do 3829 IFS=$as_save_IFS 3830 test -z "$as_dir" && as_dir=. 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3835 break 2 3836 fi 3837done 3838 done 3839IFS=$as_save_IFS 3840 3841fi 3842fi 3843CXX=$ac_cv_prog_CXX 3844if test -n "$CXX"; then 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3846$as_echo "$CXX" >&6; } 3847else 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3849$as_echo "no" >&6; } 3850fi 3851 3852 3853 test -n "$CXX" && break 3854 done 3855fi 3856if test -z "$CXX"; then 3857 ac_ct_CXX=$CXX 3858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3859do 3860 # Extract the first word of "$ac_prog", so it can be a program name with args. 3861set dummy $ac_prog; ac_word=$2 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3863$as_echo_n "checking for $ac_word... " >&6; } 3864if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 if test -n "$ac_ct_CXX"; then 3868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3869else 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_ac_ct_CXX="$ac_prog" 3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881done 3882 done 3883IFS=$as_save_IFS 3884 3885fi 3886fi 3887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3888if test -n "$ac_ct_CXX"; then 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3890$as_echo "$ac_ct_CXX" >&6; } 3891else 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893$as_echo "no" >&6; } 3894fi 3895 3896 3897 test -n "$ac_ct_CXX" && break 3898done 3899 3900 if test "x$ac_ct_CXX" = x; then 3901 CXX="g++" 3902 else 3903 case $cross_compiling:$ac_tool_warned in 3904yes:) 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3907ac_tool_warned=yes ;; 3908esac 3909 CXX=$ac_ct_CXX 3910 fi 3911fi 3912 3913 fi 3914fi 3915# Provide some information about the compiler. 3916$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3917set X $ac_compile 3918ac_compiler=$2 3919for ac_option in --version -v -V -qversion; do 3920 { { ac_try="$ac_compiler $ac_option >&5" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3928 ac_status=$? 3929 if test -s conftest.err; then 3930 sed '10a\ 3931... rest of stderr output deleted ... 3932 10q' conftest.err >conftest.er1 3933 cat conftest.er1 >&5 3934 fi 3935 rm -f conftest.er1 conftest.err 3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3937 test $ac_status = 0; } 3938done 3939 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3941$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3942if ${ac_cv_cxx_compiler_gnu+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947 3948int 3949main () 3950{ 3951#ifndef __GNUC__ 3952 choke me 3953#endif 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959if ac_fn_cxx_try_compile "$LINENO"; then : 3960 ac_compiler_gnu=yes 3961else 3962 ac_compiler_gnu=no 3963fi 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3966 3967fi 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3969$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3970if test $ac_compiler_gnu = yes; then 3971 GXX=yes 3972else 3973 GXX= 3974fi 3975ac_test_CXXFLAGS=${CXXFLAGS+set} 3976ac_save_CXXFLAGS=$CXXFLAGS 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3978$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3979if ${ac_cv_prog_cxx_g+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3983 ac_cxx_werror_flag=yes 3984 ac_cv_prog_cxx_g=no 3985 CXXFLAGS="-g" 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988 3989int 3990main () 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997if ac_fn_cxx_try_compile "$LINENO"; then : 3998 ac_cv_prog_cxx_g=yes 3999else 4000 CXXFLAGS="" 4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002/* end confdefs.h. */ 4003 4004int 4005main () 4006{ 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012if ac_fn_cxx_try_compile "$LINENO"; then : 4013 4014else 4015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4016 CXXFLAGS="-g" 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019 4020int 4021main () 4022{ 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028if ac_fn_cxx_try_compile "$LINENO"; then : 4029 ac_cv_prog_cxx_g=yes 4030fi 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4039$as_echo "$ac_cv_prog_cxx_g" >&6; } 4040if test "$ac_test_CXXFLAGS" = set; then 4041 CXXFLAGS=$ac_save_CXXFLAGS 4042elif test $ac_cv_prog_cxx_g = yes; then 4043 if test "$GXX" = yes; then 4044 CXXFLAGS="-g -O2" 4045 else 4046 CXXFLAGS="-g" 4047 fi 4048else 4049 if test "$GXX" = yes; then 4050 CXXFLAGS="-O2" 4051 else 4052 CXXFLAGS= 4053 fi 4054fi 4055ac_ext=c 4056ac_cpp='$CPP $CPPFLAGS' 4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4059ac_compiler_gnu=$ac_cv_c_compiler_gnu 4060 4061 4062 4063ac_ext=c 4064ac_cpp='$CPP $CPPFLAGS' 4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4067ac_compiler_gnu=$ac_cv_c_compiler_gnu 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4069$as_echo_n "checking how to run the C preprocessor... " >&6; } 4070# On Suns, sometimes $CPP names a directory. 4071if test -n "$CPP" && test -d "$CPP"; then 4072 CPP= 4073fi 4074if test -z "$CPP"; then 4075 if ${ac_cv_prog_CPP+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 # Double quotes because CPP needs to be expanded 4079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4080 do 4081 ac_preproc_ok=false 4082for ac_c_preproc_warn_flag in '' yes 4083do 4084 # Use a header file that comes with gcc, so configuring glibc 4085 # with a fresh cross-compiler works. 4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4087 # <limits.h> exists even on freestanding compilers. 4088 # On the NeXT, cc -E runs the code through the compiler's parser, 4089 # not just through cpp. "Syntax error" is here to catch this case. 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092#ifdef __STDC__ 4093# include <limits.h> 4094#else 4095# include <assert.h> 4096#endif 4097 Syntax error 4098_ACEOF 4099if ac_fn_c_try_cpp "$LINENO"; then : 4100 4101else 4102 # Broken: fails on valid input. 4103continue 4104fi 4105rm -f conftest.err conftest.i conftest.$ac_ext 4106 4107 # OK, works on sane cases. Now check whether nonexistent headers 4108 # can be detected and how. 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111#include <ac_nonexistent.h> 4112_ACEOF 4113if ac_fn_c_try_cpp "$LINENO"; then : 4114 # Broken: success on invalid input. 4115continue 4116else 4117 # Passes both tests. 4118ac_preproc_ok=: 4119break 4120fi 4121rm -f conftest.err conftest.i conftest.$ac_ext 4122 4123done 4124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4125rm -f conftest.i conftest.err conftest.$ac_ext 4126if $ac_preproc_ok; then : 4127 break 4128fi 4129 4130 done 4131 ac_cv_prog_CPP=$CPP 4132 4133fi 4134 CPP=$ac_cv_prog_CPP 4135else 4136 ac_cv_prog_CPP=$CPP 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4139$as_echo "$CPP" >&6; } 4140ac_preproc_ok=false 4141for ac_c_preproc_warn_flag in '' yes 4142do 4143 # Use a header file that comes with gcc, so configuring glibc 4144 # with a fresh cross-compiler works. 4145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4146 # <limits.h> exists even on freestanding compilers. 4147 # On the NeXT, cc -E runs the code through the compiler's parser, 4148 # not just through cpp. "Syntax error" is here to catch this case. 4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4150/* end confdefs.h. */ 4151#ifdef __STDC__ 4152# include <limits.h> 4153#else 4154# include <assert.h> 4155#endif 4156 Syntax error 4157_ACEOF 4158if ac_fn_c_try_cpp "$LINENO"; then : 4159 4160else 4161 # Broken: fails on valid input. 4162continue 4163fi 4164rm -f conftest.err conftest.i conftest.$ac_ext 4165 4166 # OK, works on sane cases. Now check whether nonexistent headers 4167 # can be detected and how. 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170#include <ac_nonexistent.h> 4171_ACEOF 4172if ac_fn_c_try_cpp "$LINENO"; then : 4173 # Broken: success on invalid input. 4174continue 4175else 4176 # Passes both tests. 4177ac_preproc_ok=: 4178break 4179fi 4180rm -f conftest.err conftest.i conftest.$ac_ext 4181 4182done 4183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4184rm -f conftest.i conftest.err conftest.$ac_ext 4185if $ac_preproc_ok; then : 4186 4187else 4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4190as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4191See \`config.log' for more details" "$LINENO" 5; } 4192fi 4193 4194ac_ext=c 4195ac_cpp='$CPP $CPPFLAGS' 4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198ac_compiler_gnu=$ac_cv_c_compiler_gnu 4199 4200 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4202$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4203if ${ac_cv_path_GREP+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 if test -z "$GREP"; then 4207 ac_path_GREP_found=false 4208 # Loop through the user's path and test for each of PROGNAME-LIST 4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4210for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4211do 4212 IFS=$as_save_IFS 4213 test -z "$as_dir" && as_dir=. 4214 for ac_prog in grep ggrep; do 4215 for ac_exec_ext in '' $ac_executable_extensions; do 4216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4217 as_fn_executable_p "$ac_path_GREP" || continue 4218# Check for GNU ac_path_GREP and select it if it is found. 4219 # Check for GNU $ac_path_GREP 4220case `"$ac_path_GREP" --version 2>&1` in 4221*GNU*) 4222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4223*) 4224 ac_count=0 4225 $as_echo_n 0123456789 >"conftest.in" 4226 while : 4227 do 4228 cat "conftest.in" "conftest.in" >"conftest.tmp" 4229 mv "conftest.tmp" "conftest.in" 4230 cp "conftest.in" "conftest.nl" 4231 $as_echo 'GREP' >> "conftest.nl" 4232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4234 as_fn_arith $ac_count + 1 && ac_count=$as_val 4235 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4236 # Best one so far, save it but keep looking for a better one 4237 ac_cv_path_GREP="$ac_path_GREP" 4238 ac_path_GREP_max=$ac_count 4239 fi 4240 # 10*(2^10) chars as input seems more than enough 4241 test $ac_count -gt 10 && break 4242 done 4243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4244esac 4245 4246 $ac_path_GREP_found && break 3 4247 done 4248 done 4249 done 4250IFS=$as_save_IFS 4251 if test -z "$ac_cv_path_GREP"; then 4252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4253 fi 4254else 4255 ac_cv_path_GREP=$GREP 4256fi 4257 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4260$as_echo "$ac_cv_path_GREP" >&6; } 4261 GREP="$ac_cv_path_GREP" 4262 4263 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4265$as_echo_n "checking for egrep... " >&6; } 4266if ${ac_cv_path_EGREP+:} false; then : 4267 $as_echo_n "(cached) " >&6 4268else 4269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4270 then ac_cv_path_EGREP="$GREP -E" 4271 else 4272 if test -z "$EGREP"; then 4273 ac_path_EGREP_found=false 4274 # Loop through the user's path and test for each of PROGNAME-LIST 4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4277do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_prog in egrep; do 4281 for ac_exec_ext in '' $ac_executable_extensions; do 4282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4283 as_fn_executable_p "$ac_path_EGREP" || continue 4284# Check for GNU ac_path_EGREP and select it if it is found. 4285 # Check for GNU $ac_path_EGREP 4286case `"$ac_path_EGREP" --version 2>&1` in 4287*GNU*) 4288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4289*) 4290 ac_count=0 4291 $as_echo_n 0123456789 >"conftest.in" 4292 while : 4293 do 4294 cat "conftest.in" "conftest.in" >"conftest.tmp" 4295 mv "conftest.tmp" "conftest.in" 4296 cp "conftest.in" "conftest.nl" 4297 $as_echo 'EGREP' >> "conftest.nl" 4298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4300 as_fn_arith $ac_count + 1 && ac_count=$as_val 4301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4302 # Best one so far, save it but keep looking for a better one 4303 ac_cv_path_EGREP="$ac_path_EGREP" 4304 ac_path_EGREP_max=$ac_count 4305 fi 4306 # 10*(2^10) chars as input seems more than enough 4307 test $ac_count -gt 10 && break 4308 done 4309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4310esac 4311 4312 $ac_path_EGREP_found && break 3 4313 done 4314 done 4315 done 4316IFS=$as_save_IFS 4317 if test -z "$ac_cv_path_EGREP"; then 4318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4319 fi 4320else 4321 ac_cv_path_EGREP=$EGREP 4322fi 4323 4324 fi 4325fi 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4327$as_echo "$ac_cv_path_EGREP" >&6; } 4328 EGREP="$ac_cv_path_EGREP" 4329 4330 4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4332$as_echo_n "checking for ANSI C header files... " >&6; } 4333if ${ac_cv_header_stdc+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335else 4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337/* end confdefs.h. */ 4338#include <stdlib.h> 4339#include <stdarg.h> 4340#include <string.h> 4341#include <float.h> 4342 4343int 4344main () 4345{ 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351if ac_fn_c_try_compile "$LINENO"; then : 4352 ac_cv_header_stdc=yes 4353else 4354 ac_cv_header_stdc=no 4355fi 4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4357 4358if test $ac_cv_header_stdc = yes; then 4359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <string.h> 4363 4364_ACEOF 4365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4366 $EGREP "memchr" >/dev/null 2>&1; then : 4367 4368else 4369 ac_cv_header_stdc=no 4370fi 4371rm -f conftest* 4372 4373fi 4374 4375if test $ac_cv_header_stdc = yes; then 4376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4378/* end confdefs.h. */ 4379#include <stdlib.h> 4380 4381_ACEOF 4382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4383 $EGREP "free" >/dev/null 2>&1; then : 4384 4385else 4386 ac_cv_header_stdc=no 4387fi 4388rm -f conftest* 4389 4390fi 4391 4392if test $ac_cv_header_stdc = yes; then 4393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4394 if test "$cross_compiling" = yes; then : 4395 : 4396else 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399#include <ctype.h> 4400#include <stdlib.h> 4401#if ((' ' & 0x0FF) == 0x020) 4402# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4403# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4404#else 4405# define ISLOWER(c) \ 4406 (('a' <= (c) && (c) <= 'i') \ 4407 || ('j' <= (c) && (c) <= 'r') \ 4408 || ('s' <= (c) && (c) <= 'z')) 4409# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4410#endif 4411 4412#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4413int 4414main () 4415{ 4416 int i; 4417 for (i = 0; i < 256; i++) 4418 if (XOR (islower (i), ISLOWER (i)) 4419 || toupper (i) != TOUPPER (i)) 4420 return 2; 4421 return 0; 4422} 4423_ACEOF 4424if ac_fn_c_try_run "$LINENO"; then : 4425 4426else 4427 ac_cv_header_stdc=no 4428fi 4429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4430 conftest.$ac_objext conftest.beam conftest.$ac_ext 4431fi 4432 4433fi 4434fi 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4436$as_echo "$ac_cv_header_stdc" >&6; } 4437if test $ac_cv_header_stdc = yes; then 4438 4439$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4440 4441fi 4442 4443# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4444for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4445 inttypes.h stdint.h unistd.h 4446do : 4447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4448ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4449" 4450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4451 cat >>confdefs.h <<_ACEOF 4452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4453_ACEOF 4454 4455fi 4456 4457done 4458 4459 4460 4461 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4462if test "x$ac_cv_header_minix_config_h" = xyes; then : 4463 MINIX=yes 4464else 4465 MINIX= 4466fi 4467 4468 4469 if test "$MINIX" = yes; then 4470 4471$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4472 4473 4474$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4475 4476 4477$as_echo "#define _MINIX 1" >>confdefs.h 4478 4479 fi 4480 4481 4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4483$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4484if ${ac_cv_safe_to_define___extensions__+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489 4490# define __EXTENSIONS__ 1 4491 $ac_includes_default 4492int 4493main () 4494{ 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500if ac_fn_c_try_compile "$LINENO"; then : 4501 ac_cv_safe_to_define___extensions__=yes 4502else 4503 ac_cv_safe_to_define___extensions__=no 4504fi 4505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4508$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4509 test $ac_cv_safe_to_define___extensions__ = yes && 4510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4511 4512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4513 4514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4515 4516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4517 4518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4519 4520 4521ac_aux_dir= 4522for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4523 if test -f "$ac_dir/install-sh"; then 4524 ac_aux_dir=$ac_dir 4525 ac_install_sh="$ac_aux_dir/install-sh -c" 4526 break 4527 elif test -f "$ac_dir/install.sh"; then 4528 ac_aux_dir=$ac_dir 4529 ac_install_sh="$ac_aux_dir/install.sh -c" 4530 break 4531 elif test -f "$ac_dir/shtool"; then 4532 ac_aux_dir=$ac_dir 4533 ac_install_sh="$ac_aux_dir/shtool install -c" 4534 break 4535 fi 4536done 4537if test -z "$ac_aux_dir"; then 4538 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4539fi 4540 4541# These three variables are undocumented and unsupported, 4542# and are intended to be withdrawn in a future Autoconf release. 4543# They can cause serious problems if a builder's source tree is in a directory 4544# whose full name contains unusual characters. 4545ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4546ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4547ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4548 4549 4550# Make sure we can run config.sub. 4551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4553 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4555$as_echo_n "checking build system type... " >&6; } 4556if ${ac_cv_build+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 ac_build_alias=$build_alias 4560test "x$ac_build_alias" = x && 4561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4562test "x$ac_build_alias" = x && 4563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4566 4567fi 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4569$as_echo "$ac_cv_build" >&6; } 4570case $ac_cv_build in 4571*-*-*) ;; 4572*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4573esac 4574build=$ac_cv_build 4575ac_save_IFS=$IFS; IFS='-' 4576set x $ac_cv_build 4577shift 4578build_cpu=$1 4579build_vendor=$2 4580shift; shift 4581# Remember, the first character of IFS is used to create $*, 4582# except with old shells: 4583build_os=$* 4584IFS=$ac_save_IFS 4585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4589$as_echo_n "checking host system type... " >&6; } 4590if ${ac_cv_host+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if test "x$host_alias" = x; then 4594 ac_cv_host=$ac_cv_build 4595else 4596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4598fi 4599 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4602$as_echo "$ac_cv_host" >&6; } 4603case $ac_cv_host in 4604*-*-*) ;; 4605*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4606esac 4607host=$ac_cv_host 4608ac_save_IFS=$IFS; IFS='-' 4609set x $ac_cv_host 4610shift 4611host_cpu=$1 4612host_vendor=$2 4613shift; shift 4614# Remember, the first character of IFS is used to create $*, 4615# except with old shells: 4616host_os=$* 4617IFS=$ac_save_IFS 4618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4619 4620 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4622$as_echo_n "checking target system type... " >&6; } 4623if ${ac_cv_target+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 if test "x$target_alias" = x; then 4627 ac_cv_target=$ac_cv_host 4628else 4629 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4630 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4631fi 4632 4633fi 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4635$as_echo "$ac_cv_target" >&6; } 4636case $ac_cv_target in 4637*-*-*) ;; 4638*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4639esac 4640target=$ac_cv_target 4641ac_save_IFS=$IFS; IFS='-' 4642set x $ac_cv_target 4643shift 4644target_cpu=$1 4645target_vendor=$2 4646shift; shift 4647# Remember, the first character of IFS is used to create $*, 4648# except with old shells: 4649target_os=$* 4650IFS=$ac_save_IFS 4651case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4652 4653 4654# The aliases save the names the user supplied, while $host etc. 4655# will get canonicalized. 4656test -n "$target_alias" && 4657 test "$program_prefix$program_suffix$program_transform_name" = \ 4658 NONENONEs,x,x, && 4659 program_prefix=${target_alias}- 4660 4661# The tests for host and target for $enable_largefile require 4662# canonical names. 4663 4664 4665 4666# As the $enable_largefile decision depends on --enable-plugins we must set it 4667# even in directories otherwise not depending on the $plugins option. 4668 4669 4670 maybe_plugins=no 4671 for ac_header in dlfcn.h 4672do : 4673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 4674" 4675if test "x$ac_cv_header_dlfcn_h" = xyes; then : 4676 cat >>confdefs.h <<_ACEOF 4677#define HAVE_DLFCN_H 1 4678_ACEOF 4679 maybe_plugins=yes 4680fi 4681 4682done 4683 4684 for ac_header in windows.h 4685do : 4686 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 4687" 4688if test "x$ac_cv_header_windows_h" = xyes; then : 4689 cat >>confdefs.h <<_ACEOF 4690#define HAVE_WINDOWS_H 1 4691_ACEOF 4692 maybe_plugins=yes 4693fi 4694 4695done 4696 4697 4698 # Check whether --enable-plugins was given. 4699if test "${enable_plugins+set}" = set; then : 4700 enableval=$enable_plugins; case "${enableval}" in 4701 no) plugins=no ;; 4702 *) plugins=yes 4703 if test "$maybe_plugins" != "yes" ; then 4704 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 4705 fi ;; 4706 esac 4707else 4708 plugins=$maybe_plugins 4709 4710fi 4711 4712 if test "$plugins" = "yes"; then 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 4714$as_echo_n "checking for library containing dlsym... " >&6; } 4715if ${ac_cv_search_dlsym+:} false; then : 4716 $as_echo_n "(cached) " >&6 4717else 4718 ac_func_search_save_LIBS=$LIBS 4719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721 4722/* Override any GCC internal prototype to avoid an error. 4723 Use char because int might match the return type of a GCC 4724 builtin and then its argument prototype would still apply. */ 4725#ifdef __cplusplus 4726extern "C" 4727#endif 4728char dlsym (); 4729int 4730main () 4731{ 4732return dlsym (); 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737for ac_lib in '' dl; do 4738 if test -z "$ac_lib"; then 4739 ac_res="none required" 4740 else 4741 ac_res=-l$ac_lib 4742 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4743 fi 4744 if ac_fn_c_try_link "$LINENO"; then : 4745 ac_cv_search_dlsym=$ac_res 4746fi 4747rm -f core conftest.err conftest.$ac_objext \ 4748 conftest$ac_exeext 4749 if ${ac_cv_search_dlsym+:} false; then : 4750 break 4751fi 4752done 4753if ${ac_cv_search_dlsym+:} false; then : 4754 4755else 4756 ac_cv_search_dlsym=no 4757fi 4758rm conftest.$ac_ext 4759LIBS=$ac_func_search_save_LIBS 4760fi 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 4762$as_echo "$ac_cv_search_dlsym" >&6; } 4763ac_res=$ac_cv_search_dlsym 4764if test "$ac_res" != no; then : 4765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4766 4767fi 4768 4769 fi 4770 4771 4772case "${host}" in 4773 sparc-*-solaris*|i?86-*-solaris*) 4774 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 4775 # were mutually exclusive until Solaris 11.3. Without procfs support, 4776 # the bfd/ elf module cannot provide certain routines such as 4777 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 4778 # explicitly requested large-file support through the 4779 # --enable-largefile switch, disable large-file support in favor of 4780 # procfs support. 4781 # 4782 # Check if <sys/procfs.h> is incompatible with large-file support. 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784/* end confdefs.h. */ 4785#define _FILE_OFFSET_BITS 64 4786#define _STRUCTURED_PROC 1 4787#include <sys/procfs.h> 4788int 4789main () 4790{ 4791 4792 ; 4793 return 0; 4794} 4795_ACEOF 4796if ac_fn_c_try_compile "$LINENO"; then : 4797 acx_cv_procfs_lfs=yes 4798else 4799 acx_cv_procfs_lfs=no 4800fi 4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4802 # 4803 # Forcefully disable large-file support only if necessary, gdb is in 4804 # tree and enabled. 4805 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 4806 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 4807 : ${enable_largefile="no"} 4808 if test "$plugins" = yes; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 4810plugin support disabled; require large-file support which is incompatible with GDB." >&5 4811$as_echo "$as_me: WARNING: 4812plugin support disabled; require large-file support which is incompatible with GDB." >&2;} 4813 plugins=no 4814 fi 4815 fi 4816 # 4817 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 4818 # benefit of g++ 9+ which predefines it on Solaris. 4819 if test "$enable_largefile" = no; then 4820 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 4821 4822 fi 4823 ;; 4824esac 4825 4826# Check whether --enable-largefile was given. 4827if test "${enable_largefile+set}" = set; then : 4828 enableval=$enable_largefile; 4829fi 4830 4831if test "$enable_largefile" != no; then 4832 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4834$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4835if ${ac_cv_sys_largefile_CC+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 ac_cv_sys_largefile_CC=no 4839 if test "$GCC" != yes; then 4840 ac_save_CC=$CC 4841 while :; do 4842 # IRIX 6.2 and later do not support large files by default, 4843 # so use the C compiler's -n32 option if that helps. 4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845/* end confdefs.h. */ 4846#include <sys/types.h> 4847 /* Check that off_t can represent 2**63 - 1 correctly. 4848 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4849 since some C++ compilers masquerading as C compilers 4850 incorrectly reject 9223372036854775807. */ 4851#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4853 && LARGE_OFF_T % 2147483647 == 1) 4854 ? 1 : -1]; 4855int 4856main () 4857{ 4858 4859 ; 4860 return 0; 4861} 4862_ACEOF 4863 if ac_fn_c_try_compile "$LINENO"; then : 4864 break 4865fi 4866rm -f core conftest.err conftest.$ac_objext 4867 CC="$CC -n32" 4868 if ac_fn_c_try_compile "$LINENO"; then : 4869 ac_cv_sys_largefile_CC=' -n32'; break 4870fi 4871rm -f core conftest.err conftest.$ac_objext 4872 break 4873 done 4874 CC=$ac_save_CC 4875 rm -f conftest.$ac_ext 4876 fi 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4879$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4880 if test "$ac_cv_sys_largefile_CC" != no; then 4881 CC=$CC$ac_cv_sys_largefile_CC 4882 fi 4883 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4885$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4886if ${ac_cv_sys_file_offset_bits+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888else 4889 while :; do 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4891/* end confdefs.h. */ 4892#include <sys/types.h> 4893 /* Check that off_t can represent 2**63 - 1 correctly. 4894 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4895 since some C++ compilers masquerading as C compilers 4896 incorrectly reject 9223372036854775807. */ 4897#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4899 && LARGE_OFF_T % 2147483647 == 1) 4900 ? 1 : -1]; 4901int 4902main () 4903{ 4904 4905 ; 4906 return 0; 4907} 4908_ACEOF 4909if ac_fn_c_try_compile "$LINENO"; then : 4910 ac_cv_sys_file_offset_bits=no; break 4911fi 4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4914/* end confdefs.h. */ 4915#define _FILE_OFFSET_BITS 64 4916#include <sys/types.h> 4917 /* Check that off_t can represent 2**63 - 1 correctly. 4918 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4919 since some C++ compilers masquerading as C compilers 4920 incorrectly reject 9223372036854775807. */ 4921#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4923 && LARGE_OFF_T % 2147483647 == 1) 4924 ? 1 : -1]; 4925int 4926main () 4927{ 4928 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933if ac_fn_c_try_compile "$LINENO"; then : 4934 ac_cv_sys_file_offset_bits=64; break 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937 ac_cv_sys_file_offset_bits=unknown 4938 break 4939done 4940fi 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4942$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4943case $ac_cv_sys_file_offset_bits in #( 4944 no | unknown) ;; 4945 *) 4946cat >>confdefs.h <<_ACEOF 4947#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4948_ACEOF 4949;; 4950esac 4951rm -rf conftest* 4952 if test $ac_cv_sys_file_offset_bits = unknown; then 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4954$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4955if ${ac_cv_sys_large_files+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 while :; do 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961#include <sys/types.h> 4962 /* Check that off_t can represent 2**63 - 1 correctly. 4963 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4964 since some C++ compilers masquerading as C compilers 4965 incorrectly reject 9223372036854775807. */ 4966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4968 && LARGE_OFF_T % 2147483647 == 1) 4969 ? 1 : -1]; 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_c_try_compile "$LINENO"; then : 4979 ac_cv_sys_large_files=no; break 4980fi 4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984#define _LARGE_FILES 1 4985#include <sys/types.h> 4986 /* Check that off_t can represent 2**63 - 1 correctly. 4987 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4988 since some C++ compilers masquerading as C compilers 4989 incorrectly reject 9223372036854775807. */ 4990#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4992 && LARGE_OFF_T % 2147483647 == 1) 4993 ? 1 : -1]; 4994int 4995main () 4996{ 4997 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002if ac_fn_c_try_compile "$LINENO"; then : 5003 ac_cv_sys_large_files=1; break 5004fi 5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5006 ac_cv_sys_large_files=unknown 5007 break 5008done 5009fi 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5011$as_echo "$ac_cv_sys_large_files" >&6; } 5012case $ac_cv_sys_large_files in #( 5013 no | unknown) ;; 5014 *) 5015cat >>confdefs.h <<_ACEOF 5016#define _LARGE_FILES $ac_cv_sys_large_files 5017_ACEOF 5018;; 5019esac 5020rm -rf conftest* 5021 fi 5022 5023 5024fi 5025 5026 5027 5028 5029 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5 5031$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; } 5032if ${am_cv_prog_cc_stdc+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 am_cv_prog_cc_stdc=no 5036ac_save_CC="$CC" 5037# Don't try gcc -ansi; that turns off useful extensions and 5038# breaks some systems' header files. 5039# AIX -qlanglvl=ansi 5040# Ultrix and OSF/1 -std1 5041# HP-UX 10.20 and later -Ae 5042# HP-UX older versions -Aa -D_HPUX_SOURCE 5043# SVR4 -Xc -D__EXTENSIONS__ 5044for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5045do 5046 CC="$ac_save_CC $ac_arg" 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049#include <stdarg.h> 5050#include <stdio.h> 5051#include <sys/types.h> 5052#include <sys/stat.h> 5053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5054struct buf { int x; }; 5055FILE * (*rcsopen) (struct buf *, struct stat *, int); 5056static char *e (p, i) 5057 char **p; 5058 int i; 5059{ 5060 return p[i]; 5061} 5062static char *f (char * (*g) (char **, int), char **p, ...) 5063{ 5064 char *s; 5065 va_list v; 5066 va_start (v,p); 5067 s = g (p, va_arg (v,int)); 5068 va_end (v); 5069 return s; 5070} 5071int test (int i, double x); 5072struct s1 {int (*f) (int a);}; 5073struct s2 {int (*f) (double a);}; 5074int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5075int argc; 5076char **argv; 5077 5078int 5079main () 5080{ 5081 5082return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5083 5084 ; 5085 return 0; 5086} 5087_ACEOF 5088if ac_fn_c_try_compile "$LINENO"; then : 5089 am_cv_prog_cc_stdc="$ac_arg"; break 5090fi 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5092done 5093CC="$ac_save_CC" 5094 5095fi 5096 5097if test -z "$am_cv_prog_cc_stdc"; then 5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5099$as_echo "none needed" >&6; } 5100else 5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5 5102$as_echo "$am_cv_prog_cc_stdc" >&6; } 5103fi 5104case "x$am_cv_prog_cc_stdc" in 5105 x|xno) ;; 5106 *) CC="$CC $am_cv_prog_cc_stdc" ;; 5107esac 5108 5109# Expand $ac_aux_dir to an absolute path. 5110am_aux_dir=`cd "$ac_aux_dir" && pwd` 5111 5112if test x"${install_sh+set}" != xset; then 5113 case $am_aux_dir in 5114 *\ * | *\ *) 5115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5116 *) 5117 install_sh="\${SHELL} $am_aux_dir/install-sh" 5118 esac 5119fi 5120 5121# Installed binaries are usually stripped using 'strip' when the user 5122# run "make install-strip". However 'strip' might not be the right 5123# tool to use in cross-compilation environments, therefore Automake 5124# will honor the 'STRIP' environment variable to overrule this program. 5125if test "$cross_compiling" != no; then 5126 if test -n "$ac_tool_prefix"; then 5127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5128set dummy ${ac_tool_prefix}strip; ac_word=$2 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5130$as_echo_n "checking for $ac_word... " >&6; } 5131if ${ac_cv_prog_STRIP+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test -n "$STRIP"; then 5135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5136else 5137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138for as_dir in $PATH 5139do 5140 IFS=$as_save_IFS 5141 test -z "$as_dir" && as_dir=. 5142 for ac_exec_ext in '' $ac_executable_extensions; do 5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5144 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5146 break 2 5147 fi 5148done 5149 done 5150IFS=$as_save_IFS 5151 5152fi 5153fi 5154STRIP=$ac_cv_prog_STRIP 5155if test -n "$STRIP"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5157$as_echo "$STRIP" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160$as_echo "no" >&6; } 5161fi 5162 5163 5164fi 5165if test -z "$ac_cv_prog_STRIP"; then 5166 ac_ct_STRIP=$STRIP 5167 # Extract the first word of "strip", so it can be a program name with args. 5168set dummy strip; ac_word=$2 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5170$as_echo_n "checking for $ac_word... " >&6; } 5171if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 if test -n "$ac_ct_STRIP"; then 5175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5176else 5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5178for as_dir in $PATH 5179do 5180 IFS=$as_save_IFS 5181 test -z "$as_dir" && as_dir=. 5182 for ac_exec_ext in '' $ac_executable_extensions; do 5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5184 ac_cv_prog_ac_ct_STRIP="strip" 5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5186 break 2 5187 fi 5188done 5189 done 5190IFS=$as_save_IFS 5191 5192fi 5193fi 5194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5195if test -n "$ac_ct_STRIP"; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5197$as_echo "$ac_ct_STRIP" >&6; } 5198else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200$as_echo "no" >&6; } 5201fi 5202 5203 if test "x$ac_ct_STRIP" = x; then 5204 STRIP=":" 5205 else 5206 case $cross_compiling:$ac_tool_warned in 5207yes:) 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5210ac_tool_warned=yes ;; 5211esac 5212 STRIP=$ac_ct_STRIP 5213 fi 5214else 5215 STRIP="$ac_cv_prog_STRIP" 5216fi 5217 5218fi 5219INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5220 5221 5222ac_aux_dir= 5223for ac_dir in .. "$srcdir"/..; do 5224 if test -f "$ac_dir/install-sh"; then 5225 ac_aux_dir=$ac_dir 5226 ac_install_sh="$ac_aux_dir/install-sh -c" 5227 break 5228 elif test -f "$ac_dir/install.sh"; then 5229 ac_aux_dir=$ac_dir 5230 ac_install_sh="$ac_aux_dir/install.sh -c" 5231 break 5232 elif test -f "$ac_dir/shtool"; then 5233 ac_aux_dir=$ac_dir 5234 ac_install_sh="$ac_aux_dir/shtool install -c" 5235 break 5236 fi 5237done 5238if test -z "$ac_aux_dir"; then 5239 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 5240fi 5241 5242# These three variables are undocumented and unsupported, 5243# and are intended to be withdrawn in a future Autoconf release. 5244# They can cause serious problems if a builder's source tree is in a directory 5245# whose full name contains unusual characters. 5246ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 5247ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 5248ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 5249 5250 5251 5252test "$program_prefix" != NONE && 5253 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5254# Use a double $ so make ignores it. 5255test "$program_suffix" != NONE && 5256 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5257# Double any \ or $. 5258# By default was `s,x,x', remove it if useless. 5259ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5260program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 5261 5262 5263# We require a C++11 compiler. Check if one is available, and if 5264# necessary, set CXX_DIALECT to some -std=xxx switch. 5265 5266 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 5267 ac_ext=cpp 5268ac_cpp='$CXXCPP $CPPFLAGS' 5269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5272 CXX_DIALECT="" 5273 ac_success=no 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 5275$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 5276if ${ax_cv_cxx_compile_cxx11+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5280/* end confdefs.h. */ 5281 5282 5283// If the compiler admits that it is not ready for C++11, why torture it? 5284// Hopefully, this will speed up the test. 5285 5286#ifndef __cplusplus 5287 5288#error "This is not a C++ compiler" 5289 5290#elif __cplusplus < 201103L 5291 5292#error "This is not a C++11 compiler" 5293 5294#else 5295 5296namespace cxx11 5297{ 5298 5299 namespace test_static_assert 5300 { 5301 5302 template <typename T> 5303 struct check 5304 { 5305 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5306 }; 5307 5308 } 5309 5310 namespace test_final_override 5311 { 5312 5313 struct Base 5314 { 5315 virtual void f() {} 5316 }; 5317 5318 struct Derived : public Base 5319 { 5320 virtual void f() override {} 5321 }; 5322 5323 } 5324 5325 namespace test_double_right_angle_brackets 5326 { 5327 5328 template < typename T > 5329 struct check {}; 5330 5331 typedef check<void> single_type; 5332 typedef check<check<void>> double_type; 5333 typedef check<check<check<void>>> triple_type; 5334 typedef check<check<check<check<void>>>> quadruple_type; 5335 5336 } 5337 5338 namespace test_decltype 5339 { 5340 5341 int 5342 f() 5343 { 5344 int a = 1; 5345 decltype(a) b = 2; 5346 return a + b; 5347 } 5348 5349 } 5350 5351 namespace test_type_deduction 5352 { 5353 5354 template < typename T1, typename T2 > 5355 struct is_same 5356 { 5357 static const bool value = false; 5358 }; 5359 5360 template < typename T > 5361 struct is_same<T, T> 5362 { 5363 static const bool value = true; 5364 }; 5365 5366 template < typename T1, typename T2 > 5367 auto 5368 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5369 { 5370 return a1 + a2; 5371 } 5372 5373 int 5374 test(const int c, volatile int v) 5375 { 5376 static_assert(is_same<int, decltype(0)>::value == true, ""); 5377 static_assert(is_same<int, decltype(c)>::value == false, ""); 5378 static_assert(is_same<int, decltype(v)>::value == false, ""); 5379 auto ac = c; 5380 auto av = v; 5381 auto sumi = ac + av + 'x'; 5382 auto sumf = ac + av + 1.0; 5383 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5384 static_assert(is_same<int, decltype(av)>::value == true, ""); 5385 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5386 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5387 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5388 return (sumf > 0.0) ? sumi : add(c, v); 5389 } 5390 5391 } 5392 5393 namespace test_noexcept 5394 { 5395 5396 int f() { return 0; } 5397 int g() noexcept { return 0; } 5398 5399 static_assert(noexcept(f()) == false, ""); 5400 static_assert(noexcept(g()) == true, ""); 5401 5402 } 5403 5404 namespace test_constexpr 5405 { 5406 5407 template < typename CharT > 5408 unsigned long constexpr 5409 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5410 { 5411 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5412 } 5413 5414 template < typename CharT > 5415 unsigned long constexpr 5416 strlen_c(const CharT *const s) noexcept 5417 { 5418 return strlen_c_r(s, 0UL); 5419 } 5420 5421 static_assert(strlen_c("") == 0UL, ""); 5422 static_assert(strlen_c("1") == 1UL, ""); 5423 static_assert(strlen_c("example") == 7UL, ""); 5424 static_assert(strlen_c("another\0example") == 7UL, ""); 5425 5426 } 5427 5428 namespace test_rvalue_references 5429 { 5430 5431 template < int N > 5432 struct answer 5433 { 5434 static constexpr int value = N; 5435 }; 5436 5437 answer<1> f(int&) { return answer<1>(); } 5438 answer<2> f(const int&) { return answer<2>(); } 5439 answer<3> f(int&&) { return answer<3>(); } 5440 5441 void 5442 test() 5443 { 5444 int i = 0; 5445 const int c = 0; 5446 static_assert(decltype(f(i))::value == 1, ""); 5447 static_assert(decltype(f(c))::value == 2, ""); 5448 static_assert(decltype(f(0))::value == 3, ""); 5449 } 5450 5451 } 5452 5453 namespace test_uniform_initialization 5454 { 5455 5456 struct test 5457 { 5458 static const int zero {}; 5459 static const int one {1}; 5460 }; 5461 5462 static_assert(test::zero == 0, ""); 5463 static_assert(test::one == 1, ""); 5464 5465 } 5466 5467 namespace test_lambdas 5468 { 5469 5470 void 5471 test1() 5472 { 5473 auto lambda1 = [](){}; 5474 auto lambda2 = lambda1; 5475 lambda1(); 5476 lambda2(); 5477 } 5478 5479 int 5480 test2() 5481 { 5482 auto a = [](int i, int j){ return i + j; }(1, 2); 5483 auto b = []() -> int { return '0'; }(); 5484 auto c = [=](){ return a + b; }(); 5485 auto d = [&](){ return c; }(); 5486 auto e = [a, &b](int x) mutable { 5487 const auto identity = [](int y){ return y; }; 5488 for (auto i = 0; i < a; ++i) 5489 a += b--; 5490 return x + identity(a + b); 5491 }(0); 5492 return a + b + c + d + e; 5493 } 5494 5495 int 5496 test3() 5497 { 5498 const auto nullary = [](){ return 0; }; 5499 const auto unary = [](int x){ return x; }; 5500 using nullary_t = decltype(nullary); 5501 using unary_t = decltype(unary); 5502 const auto higher1st = [](nullary_t f){ return f(); }; 5503 const auto higher2nd = [unary](nullary_t f1){ 5504 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5505 }; 5506 return higher1st(nullary) + higher2nd(nullary)(unary); 5507 } 5508 5509 } 5510 5511 namespace test_variadic_templates 5512 { 5513 5514 template <int...> 5515 struct sum; 5516 5517 template <int N0, int... N1toN> 5518 struct sum<N0, N1toN...> 5519 { 5520 static constexpr auto value = N0 + sum<N1toN...>::value; 5521 }; 5522 5523 template <> 5524 struct sum<> 5525 { 5526 static constexpr auto value = 0; 5527 }; 5528 5529 static_assert(sum<>::value == 0, ""); 5530 static_assert(sum<1>::value == 1, ""); 5531 static_assert(sum<23>::value == 23, ""); 5532 static_assert(sum<1, 2>::value == 3, ""); 5533 static_assert(sum<5, 5, 11>::value == 21, ""); 5534 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5535 5536 } 5537 5538 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5539 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5540 // because of this. 5541 namespace test_template_alias_sfinae 5542 { 5543 5544 struct foo {}; 5545 5546 template<typename T> 5547 using member = typename T::member_type; 5548 5549 template<typename T> 5550 void func(...) {} 5551 5552 template<typename T> 5553 void func(member<T>*) {} 5554 5555 void test(); 5556 5557 void test() { func<foo>(0); } 5558 5559 } 5560 5561} // namespace cxx11 5562 5563#endif // __cplusplus >= 201103L 5564 5565 5566 5567_ACEOF 5568if ac_fn_cxx_try_compile "$LINENO"; then : 5569 ax_cv_cxx_compile_cxx11=yes 5570else 5571 ax_cv_cxx_compile_cxx11=no 5572fi 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 5576$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 5577 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 5578 ac_success=yes 5579 fi 5580 5581 if test x$ac_success = xno; then 5582 for alternative in ${ax_cxx_compile_alternatives}; do 5583 switch="-std=gnu++${alternative}" 5584 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5586$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5587if eval \${$cachevar+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 ac_save_CXX="$CXX" 5591 CXX="$CXX $switch" 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594 5595 5596// If the compiler admits that it is not ready for C++11, why torture it? 5597// Hopefully, this will speed up the test. 5598 5599#ifndef __cplusplus 5600 5601#error "This is not a C++ compiler" 5602 5603#elif __cplusplus < 201103L 5604 5605#error "This is not a C++11 compiler" 5606 5607#else 5608 5609namespace cxx11 5610{ 5611 5612 namespace test_static_assert 5613 { 5614 5615 template <typename T> 5616 struct check 5617 { 5618 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5619 }; 5620 5621 } 5622 5623 namespace test_final_override 5624 { 5625 5626 struct Base 5627 { 5628 virtual void f() {} 5629 }; 5630 5631 struct Derived : public Base 5632 { 5633 virtual void f() override {} 5634 }; 5635 5636 } 5637 5638 namespace test_double_right_angle_brackets 5639 { 5640 5641 template < typename T > 5642 struct check {}; 5643 5644 typedef check<void> single_type; 5645 typedef check<check<void>> double_type; 5646 typedef check<check<check<void>>> triple_type; 5647 typedef check<check<check<check<void>>>> quadruple_type; 5648 5649 } 5650 5651 namespace test_decltype 5652 { 5653 5654 int 5655 f() 5656 { 5657 int a = 1; 5658 decltype(a) b = 2; 5659 return a + b; 5660 } 5661 5662 } 5663 5664 namespace test_type_deduction 5665 { 5666 5667 template < typename T1, typename T2 > 5668 struct is_same 5669 { 5670 static const bool value = false; 5671 }; 5672 5673 template < typename T > 5674 struct is_same<T, T> 5675 { 5676 static const bool value = true; 5677 }; 5678 5679 template < typename T1, typename T2 > 5680 auto 5681 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5682 { 5683 return a1 + a2; 5684 } 5685 5686 int 5687 test(const int c, volatile int v) 5688 { 5689 static_assert(is_same<int, decltype(0)>::value == true, ""); 5690 static_assert(is_same<int, decltype(c)>::value == false, ""); 5691 static_assert(is_same<int, decltype(v)>::value == false, ""); 5692 auto ac = c; 5693 auto av = v; 5694 auto sumi = ac + av + 'x'; 5695 auto sumf = ac + av + 1.0; 5696 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5697 static_assert(is_same<int, decltype(av)>::value == true, ""); 5698 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5699 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5700 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5701 return (sumf > 0.0) ? sumi : add(c, v); 5702 } 5703 5704 } 5705 5706 namespace test_noexcept 5707 { 5708 5709 int f() { return 0; } 5710 int g() noexcept { return 0; } 5711 5712 static_assert(noexcept(f()) == false, ""); 5713 static_assert(noexcept(g()) == true, ""); 5714 5715 } 5716 5717 namespace test_constexpr 5718 { 5719 5720 template < typename CharT > 5721 unsigned long constexpr 5722 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5723 { 5724 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5725 } 5726 5727 template < typename CharT > 5728 unsigned long constexpr 5729 strlen_c(const CharT *const s) noexcept 5730 { 5731 return strlen_c_r(s, 0UL); 5732 } 5733 5734 static_assert(strlen_c("") == 0UL, ""); 5735 static_assert(strlen_c("1") == 1UL, ""); 5736 static_assert(strlen_c("example") == 7UL, ""); 5737 static_assert(strlen_c("another\0example") == 7UL, ""); 5738 5739 } 5740 5741 namespace test_rvalue_references 5742 { 5743 5744 template < int N > 5745 struct answer 5746 { 5747 static constexpr int value = N; 5748 }; 5749 5750 answer<1> f(int&) { return answer<1>(); } 5751 answer<2> f(const int&) { return answer<2>(); } 5752 answer<3> f(int&&) { return answer<3>(); } 5753 5754 void 5755 test() 5756 { 5757 int i = 0; 5758 const int c = 0; 5759 static_assert(decltype(f(i))::value == 1, ""); 5760 static_assert(decltype(f(c))::value == 2, ""); 5761 static_assert(decltype(f(0))::value == 3, ""); 5762 } 5763 5764 } 5765 5766 namespace test_uniform_initialization 5767 { 5768 5769 struct test 5770 { 5771 static const int zero {}; 5772 static const int one {1}; 5773 }; 5774 5775 static_assert(test::zero == 0, ""); 5776 static_assert(test::one == 1, ""); 5777 5778 } 5779 5780 namespace test_lambdas 5781 { 5782 5783 void 5784 test1() 5785 { 5786 auto lambda1 = [](){}; 5787 auto lambda2 = lambda1; 5788 lambda1(); 5789 lambda2(); 5790 } 5791 5792 int 5793 test2() 5794 { 5795 auto a = [](int i, int j){ return i + j; }(1, 2); 5796 auto b = []() -> int { return '0'; }(); 5797 auto c = [=](){ return a + b; }(); 5798 auto d = [&](){ return c; }(); 5799 auto e = [a, &b](int x) mutable { 5800 const auto identity = [](int y){ return y; }; 5801 for (auto i = 0; i < a; ++i) 5802 a += b--; 5803 return x + identity(a + b); 5804 }(0); 5805 return a + b + c + d + e; 5806 } 5807 5808 int 5809 test3() 5810 { 5811 const auto nullary = [](){ return 0; }; 5812 const auto unary = [](int x){ return x; }; 5813 using nullary_t = decltype(nullary); 5814 using unary_t = decltype(unary); 5815 const auto higher1st = [](nullary_t f){ return f(); }; 5816 const auto higher2nd = [unary](nullary_t f1){ 5817 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5818 }; 5819 return higher1st(nullary) + higher2nd(nullary)(unary); 5820 } 5821 5822 } 5823 5824 namespace test_variadic_templates 5825 { 5826 5827 template <int...> 5828 struct sum; 5829 5830 template <int N0, int... N1toN> 5831 struct sum<N0, N1toN...> 5832 { 5833 static constexpr auto value = N0 + sum<N1toN...>::value; 5834 }; 5835 5836 template <> 5837 struct sum<> 5838 { 5839 static constexpr auto value = 0; 5840 }; 5841 5842 static_assert(sum<>::value == 0, ""); 5843 static_assert(sum<1>::value == 1, ""); 5844 static_assert(sum<23>::value == 23, ""); 5845 static_assert(sum<1, 2>::value == 3, ""); 5846 static_assert(sum<5, 5, 11>::value == 21, ""); 5847 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5848 5849 } 5850 5851 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5852 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5853 // because of this. 5854 namespace test_template_alias_sfinae 5855 { 5856 5857 struct foo {}; 5858 5859 template<typename T> 5860 using member = typename T::member_type; 5861 5862 template<typename T> 5863 void func(...) {} 5864 5865 template<typename T> 5866 void func(member<T>*) {} 5867 5868 void test(); 5869 5870 void test() { func<foo>(0); } 5871 5872 } 5873 5874} // namespace cxx11 5875 5876#endif // __cplusplus >= 201103L 5877 5878 5879 5880_ACEOF 5881if ac_fn_cxx_try_compile "$LINENO"; then : 5882 eval $cachevar=yes 5883else 5884 eval $cachevar=no 5885fi 5886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5887 CXX="$ac_save_CXX" 5888fi 5889eval ac_res=\$$cachevar 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5891$as_echo "$ac_res" >&6; } 5892 if eval test x\$$cachevar = xyes; then 5893 CXX_DIALECT="$switch" 5894 ac_success=yes 5895 break 5896 fi 5897 done 5898 fi 5899 5900 if test x$ac_success = xno; then 5901 for alternative in ${ax_cxx_compile_alternatives}; do 5902 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 5903 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5905$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5906if eval \${$cachevar+:} false; then : 5907 $as_echo_n "(cached) " >&6 5908else 5909 ac_save_CXX="$CXX" 5910 CXX="$CXX $switch" 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5912/* end confdefs.h. */ 5913 5914 5915// If the compiler admits that it is not ready for C++11, why torture it? 5916// Hopefully, this will speed up the test. 5917 5918#ifndef __cplusplus 5919 5920#error "This is not a C++ compiler" 5921 5922#elif __cplusplus < 201103L 5923 5924#error "This is not a C++11 compiler" 5925 5926#else 5927 5928namespace cxx11 5929{ 5930 5931 namespace test_static_assert 5932 { 5933 5934 template <typename T> 5935 struct check 5936 { 5937 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5938 }; 5939 5940 } 5941 5942 namespace test_final_override 5943 { 5944 5945 struct Base 5946 { 5947 virtual void f() {} 5948 }; 5949 5950 struct Derived : public Base 5951 { 5952 virtual void f() override {} 5953 }; 5954 5955 } 5956 5957 namespace test_double_right_angle_brackets 5958 { 5959 5960 template < typename T > 5961 struct check {}; 5962 5963 typedef check<void> single_type; 5964 typedef check<check<void>> double_type; 5965 typedef check<check<check<void>>> triple_type; 5966 typedef check<check<check<check<void>>>> quadruple_type; 5967 5968 } 5969 5970 namespace test_decltype 5971 { 5972 5973 int 5974 f() 5975 { 5976 int a = 1; 5977 decltype(a) b = 2; 5978 return a + b; 5979 } 5980 5981 } 5982 5983 namespace test_type_deduction 5984 { 5985 5986 template < typename T1, typename T2 > 5987 struct is_same 5988 { 5989 static const bool value = false; 5990 }; 5991 5992 template < typename T > 5993 struct is_same<T, T> 5994 { 5995 static const bool value = true; 5996 }; 5997 5998 template < typename T1, typename T2 > 5999 auto 6000 add(T1 a1, T2 a2) -> decltype(a1 + a2) 6001 { 6002 return a1 + a2; 6003 } 6004 6005 int 6006 test(const int c, volatile int v) 6007 { 6008 static_assert(is_same<int, decltype(0)>::value == true, ""); 6009 static_assert(is_same<int, decltype(c)>::value == false, ""); 6010 static_assert(is_same<int, decltype(v)>::value == false, ""); 6011 auto ac = c; 6012 auto av = v; 6013 auto sumi = ac + av + 'x'; 6014 auto sumf = ac + av + 1.0; 6015 static_assert(is_same<int, decltype(ac)>::value == true, ""); 6016 static_assert(is_same<int, decltype(av)>::value == true, ""); 6017 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 6018 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 6019 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 6020 return (sumf > 0.0) ? sumi : add(c, v); 6021 } 6022 6023 } 6024 6025 namespace test_noexcept 6026 { 6027 6028 int f() { return 0; } 6029 int g() noexcept { return 0; } 6030 6031 static_assert(noexcept(f()) == false, ""); 6032 static_assert(noexcept(g()) == true, ""); 6033 6034 } 6035 6036 namespace test_constexpr 6037 { 6038 6039 template < typename CharT > 6040 unsigned long constexpr 6041 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 6042 { 6043 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 6044 } 6045 6046 template < typename CharT > 6047 unsigned long constexpr 6048 strlen_c(const CharT *const s) noexcept 6049 { 6050 return strlen_c_r(s, 0UL); 6051 } 6052 6053 static_assert(strlen_c("") == 0UL, ""); 6054 static_assert(strlen_c("1") == 1UL, ""); 6055 static_assert(strlen_c("example") == 7UL, ""); 6056 static_assert(strlen_c("another\0example") == 7UL, ""); 6057 6058 } 6059 6060 namespace test_rvalue_references 6061 { 6062 6063 template < int N > 6064 struct answer 6065 { 6066 static constexpr int value = N; 6067 }; 6068 6069 answer<1> f(int&) { return answer<1>(); } 6070 answer<2> f(const int&) { return answer<2>(); } 6071 answer<3> f(int&&) { return answer<3>(); } 6072 6073 void 6074 test() 6075 { 6076 int i = 0; 6077 const int c = 0; 6078 static_assert(decltype(f(i))::value == 1, ""); 6079 static_assert(decltype(f(c))::value == 2, ""); 6080 static_assert(decltype(f(0))::value == 3, ""); 6081 } 6082 6083 } 6084 6085 namespace test_uniform_initialization 6086 { 6087 6088 struct test 6089 { 6090 static const int zero {}; 6091 static const int one {1}; 6092 }; 6093 6094 static_assert(test::zero == 0, ""); 6095 static_assert(test::one == 1, ""); 6096 6097 } 6098 6099 namespace test_lambdas 6100 { 6101 6102 void 6103 test1() 6104 { 6105 auto lambda1 = [](){}; 6106 auto lambda2 = lambda1; 6107 lambda1(); 6108 lambda2(); 6109 } 6110 6111 int 6112 test2() 6113 { 6114 auto a = [](int i, int j){ return i + j; }(1, 2); 6115 auto b = []() -> int { return '0'; }(); 6116 auto c = [=](){ return a + b; }(); 6117 auto d = [&](){ return c; }(); 6118 auto e = [a, &b](int x) mutable { 6119 const auto identity = [](int y){ return y; }; 6120 for (auto i = 0; i < a; ++i) 6121 a += b--; 6122 return x + identity(a + b); 6123 }(0); 6124 return a + b + c + d + e; 6125 } 6126 6127 int 6128 test3() 6129 { 6130 const auto nullary = [](){ return 0; }; 6131 const auto unary = [](int x){ return x; }; 6132 using nullary_t = decltype(nullary); 6133 using unary_t = decltype(unary); 6134 const auto higher1st = [](nullary_t f){ return f(); }; 6135 const auto higher2nd = [unary](nullary_t f1){ 6136 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 6137 }; 6138 return higher1st(nullary) + higher2nd(nullary)(unary); 6139 } 6140 6141 } 6142 6143 namespace test_variadic_templates 6144 { 6145 6146 template <int...> 6147 struct sum; 6148 6149 template <int N0, int... N1toN> 6150 struct sum<N0, N1toN...> 6151 { 6152 static constexpr auto value = N0 + sum<N1toN...>::value; 6153 }; 6154 6155 template <> 6156 struct sum<> 6157 { 6158 static constexpr auto value = 0; 6159 }; 6160 6161 static_assert(sum<>::value == 0, ""); 6162 static_assert(sum<1>::value == 1, ""); 6163 static_assert(sum<23>::value == 23, ""); 6164 static_assert(sum<1, 2>::value == 3, ""); 6165 static_assert(sum<5, 5, 11>::value == 21, ""); 6166 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 6167 6168 } 6169 6170 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 6171 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 6172 // because of this. 6173 namespace test_template_alias_sfinae 6174 { 6175 6176 struct foo {}; 6177 6178 template<typename T> 6179 using member = typename T::member_type; 6180 6181 template<typename T> 6182 void func(...) {} 6183 6184 template<typename T> 6185 void func(member<T>*) {} 6186 6187 void test(); 6188 6189 void test() { func<foo>(0); } 6190 6191 } 6192 6193} // namespace cxx11 6194 6195#endif // __cplusplus >= 201103L 6196 6197 6198 6199_ACEOF 6200if ac_fn_cxx_try_compile "$LINENO"; then : 6201 eval $cachevar=yes 6202else 6203 eval $cachevar=no 6204fi 6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6206 CXX="$ac_save_CXX" 6207fi 6208eval ac_res=\$$cachevar 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6210$as_echo "$ac_res" >&6; } 6211 if eval test x\$$cachevar = xyes; then 6212 CXX_DIALECT="$switch" 6213 ac_success=yes 6214 break 6215 fi 6216 done 6217 if test x$ac_success = xyes; then 6218 break 6219 fi 6220 done 6221 fi 6222 ac_ext=c 6223ac_cpp='$CPP $CPPFLAGS' 6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6226ac_compiler_gnu=$ac_cv_c_compiler_gnu 6227 6228 if test x$ax_cxx_compile_cxx11_required = xtrue; then 6229 if test x$ac_success = xno; then 6230 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 6231 fi 6232 fi 6233 if test x$ac_success = xno; then 6234 HAVE_CXX11=0 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 6236$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 6237 else 6238 HAVE_CXX11=1 6239 6240$as_echo "#define HAVE_CXX11 1" >>confdefs.h 6241 6242 fi 6243 6244 6245 6246 6247# Dependency checking. 6248rm -rf .tst 2>/dev/null 6249mkdir .tst 2>/dev/null 6250if test -d .tst; then 6251 am__leading_dot=. 6252else 6253 am__leading_dot=_ 6254fi 6255rmdir .tst 2>/dev/null 6256 6257DEPDIR="${am__leading_dot}deps" 6258 6259ac_config_commands="$ac_config_commands depdir" 6260 6261 6262depcc="$CC" am_compiler_list= 6263 6264am_depcomp=$ac_aux_dir/depcomp 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6266$as_echo_n "checking dependency style of $depcc... " >&6; } 6267if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269else 6270 if test -f "$am_depcomp"; then 6271 # We make a subdir and do the tests there. Otherwise we can end up 6272 # making bogus files that we don't know about and never remove. For 6273 # instance it was reported that on HP-UX the gcc test will end up 6274 # making a dummy file named `D' -- because `-MD' means `put the output 6275 # in D'. 6276 mkdir conftest.dir 6277 # Copy depcomp to subdir because otherwise we won't find it if we're 6278 # using a relative directory. 6279 cp "$am_depcomp" conftest.dir 6280 cd conftest.dir 6281 # We will build objects and dependencies in a subdirectory because 6282 # it helps to detect inapplicable dependency modes. For instance 6283 # both Tru64's cc and ICC support -MD to output dependencies as a 6284 # side effect of compilation, but ICC will put the dependencies in 6285 # the current directory while Tru64 will put them in the object 6286 # directory. 6287 mkdir sub 6288 6289 am_cv_CC_dependencies_compiler_type=none 6290 if test "$am_compiler_list" = ""; then 6291 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6292 fi 6293 for depmode in $am_compiler_list; do 6294 if test $depmode = none; then break; fi 6295 6296 $as_echo "$as_me:$LINENO: trying $depmode" >&5 6297 # Setup a source with many dependencies, because some compilers 6298 # like to wrap large dependency lists on column 80 (with \), and 6299 # we should not choose a depcomp mode which is confused by this. 6300 # 6301 # We need to recreate these files for each test, as the compiler may 6302 # overwrite some of them when testing with obscure command lines. 6303 # This happens at least with the AIX C compiler. 6304 : > sub/conftest.c 6305 for i in 1 2 3 4 5 6; do 6306 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6307 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6308 # Solaris 8's {/usr,}/bin/sh. 6309 touch sub/conftst$i.h 6310 done 6311 echo "include sub/conftest.Po" > confmf 6312 6313 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6314 # mode. It turns out that the SunPro C++ compiler does not properly 6315 # handle `-M -o', and we need to detect this. 6316 depcmd="depmode=$depmode \ 6317 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6319 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c" 6320 echo "| $depcmd" | sed -e 's/ */ /g' >&5 6321 if env $depcmd > conftest.err 2>&1 && 6322 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 && 6323 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 && 6324 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then 6325 # icc doesn't choke on unknown options, it will just issue warnings 6326 # or remarks (even with -Werror). So we grep stderr for any message 6327 # that says an option was ignored or not supported. 6328 # When given -MP, icc 7.0 and 7.1 complain thusly: 6329 # icc: Command line warning: ignoring option '-M'; no argument required 6330 # The diagnosis changed in icc 8.0: 6331 # icc: Command line remark: option '-MP' not supported 6332 if (grep 'ignoring option' conftest.err || 6333 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6334 am_cv_CC_dependencies_compiler_type=$depmode 6335 $as_echo "$as_me:$LINENO: success" >&5 6336 break 6337 fi 6338 fi 6339 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5 6340 sed -e 's/^/| /' < conftest.err >&5 6341 done 6342 6343 cd .. 6344 rm -rf conftest.dir 6345else 6346 am_cv_CC_dependencies_compiler_type=none 6347fi 6348 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6351$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6352if test x${am_cv_CC_dependencies_compiler_type-none} = xnone 6353then as_fn_error $? "no usable dependency style found" "$LINENO" 5 6354else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6355 6356fi 6357 6358 6359 6360CONFIG_OBS= 6361CONFIG_DEPS= 6362CONFIG_SRCS= 6363ENABLE_CFLAGS= 6364 6365CONFIG_ALL= 6366CONFIG_CLEAN= 6367CONFIG_INSTALL= 6368CONFIG_UNINSTALL= 6369 6370# If we haven't got the data from the intl directory, 6371# assume NLS is disabled. 6372USE_NLS=no 6373LIBINTL= 6374LIBINTL_DEP= 6375INCINTL= 6376XGETTEXT= 6377GMSGFMT= 6378POSUB= 6379 6380if test -f ../intl/config.intl; then 6381 . ../intl/config.intl 6382fi 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6384$as_echo_n "checking whether NLS is requested... " >&6; } 6385if test x"$USE_NLS" != xyes; then 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6387$as_echo "no" >&6; } 6388else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6390$as_echo "yes" >&6; } 6391 6392$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6393 6394 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 6396$as_echo_n "checking for catalogs to be installed... " >&6; } 6397 # Look for .po and .gmo files in the source directory. 6398 CATALOGS= 6399 XLINGUAS= 6400 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 6401 # If there aren't any .gmo files the shell will give us the 6402 # literal string "../path/to/srcdir/po/*.gmo" which has to be 6403 # weeded out. 6404 case "$cat" in *\**) 6405 continue;; 6406 esac 6407 # The quadruple backslash is collapsed to a double backslash 6408 # by the backticks, then collapsed again by the double quotes, 6409 # leaving us with one backslash in the sed expression (right 6410 # before the dot that mustn't act as a wildcard). 6411 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 6412 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 6413 # The user is allowed to set LINGUAS to a list of languages to 6414 # install catalogs for. If it's empty that means "all of them." 6415 if test "x$LINGUAS" = x; then 6416 CATALOGS="$CATALOGS $cat" 6417 XLINGUAS="$XLINGUAS $lang" 6418 else 6419 case "$LINGUAS" in *$lang*) 6420 CATALOGS="$CATALOGS $cat" 6421 XLINGUAS="$XLINGUAS $lang" 6422 ;; 6423 esac 6424 fi 6425 done 6426 LINGUAS="$XLINGUAS" 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 6428$as_echo "$LINGUAS" >&6; } 6429 6430 6431 DATADIRNAME=share 6432 6433 INSTOBJEXT=.mo 6434 6435 GENCAT=gencat 6436 6437 CATOBJEXT=.gmo 6438 6439fi 6440 6441localedir='${datadir}/locale' 6442 6443 6444if test x"$USE_NLS" = xyes; then 6445 CONFIG_ALL="$CONFIG_ALL all-po" 6446 CONFIG_CLEAN="$CONFIG_CLEAN clean-po" 6447 CONFIG_INSTALL="$CONFIG_INSTALL install-po" 6448 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" 6449fi 6450 6451PACKAGE=gdb 6452 6453cat >>confdefs.h <<_ACEOF 6454#define PACKAGE "$PACKAGE" 6455_ACEOF 6456 6457 6458 6459# We never need to detect it in this sub-configure. 6460# But preserve it for config.status --recheck. 6461 6462 6463 6464MAKEINFO_EXTRA_FLAGS="" 6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5 6466$as_echo_n "checking whether $MAKEINFO supports @click... " >&6; } 6467if ${gdb_cv_have_makeinfo_click+:} false; then : 6468 $as_echo_n "(cached) " >&6 6469else 6470 echo '@clicksequence{a @click{} b}' >conftest.texinfo 6471 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then 6472 gdb_cv_have_makeinfo_click=yes 6473 else 6474 gdb_cv_have_makeinfo_click=no 6475 fi 6476fi 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5 6478$as_echo "$gdb_cv_have_makeinfo_click" >&6; } 6479if test x"$gdb_cv_have_makeinfo_click" = xyes; then 6480 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK" 6481fi 6482 6483 6484 6485 6486# Check whether --with-separate-debug-dir was given. 6487if test "${with_separate_debug_dir+set}" = set; then : 6488 withval=$with_separate_debug_dir; 6489 DEBUGDIR=$withval 6490else 6491 DEBUGDIR=${libdir}/debug 6492fi 6493 6494 6495 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6497 ac_define_dir=`eval echo $DEBUGDIR` 6498 ac_define_dir=`eval echo $ac_define_dir` 6499 6500cat >>confdefs.h <<_ACEOF 6501#define DEBUGDIR "$ac_define_dir" 6502_ACEOF 6503 6504 6505 6506 6507 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 6508 if test "x$prefix" = xNONE; then 6509 test_prefix=/usr/local 6510 else 6511 test_prefix=$prefix 6512 fi 6513 else 6514 test_prefix=$exec_prefix 6515 fi 6516 value=0 6517 case ${ac_define_dir} in 6518 "${test_prefix}"|"${test_prefix}/"*|\ 6519 '${exec_prefix}'|'${exec_prefix}/'*) 6520 value=1 6521 ;; 6522 esac 6523 6524cat >>confdefs.h <<_ACEOF 6525#define DEBUGDIR_RELOCATABLE $value 6526_ACEOF 6527 6528 6529 6530 6531# We can't pass paths as command line arguments. 6532# Mingw32 tries to be clever and will convert the paths for us. 6533# For example -DBINDIR="/usr/local/bin" passed on the command line may get 6534# converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin". 6535# This breaks GDB's relocatable path conversions since paths passed in 6536# config.h would not get so translated, the path prefixes no longer match. 6537 6538 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6540 ac_define_dir=`eval echo $bindir` 6541 ac_define_dir=`eval echo $ac_define_dir` 6542 6543cat >>confdefs.h <<_ACEOF 6544#define BINDIR "$ac_define_dir" 6545_ACEOF 6546 6547 6548 6549# GDB's datadir relocation 6550 6551 6552 6553# Check whether --with-gdb-datadir was given. 6554if test "${with_gdb_datadir+set}" = set; then : 6555 withval=$with_gdb_datadir; 6556 GDB_DATADIR=$withval 6557else 6558 GDB_DATADIR=${datadir}/gdb 6559fi 6560 6561 6562 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6563 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6564 ac_define_dir=`eval echo $GDB_DATADIR` 6565 ac_define_dir=`eval echo $ac_define_dir` 6566 6567cat >>confdefs.h <<_ACEOF 6568#define GDB_DATADIR "$ac_define_dir" 6569_ACEOF 6570 6571 6572 6573 6574 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 6575 if test "x$prefix" = xNONE; then 6576 test_prefix=/usr/local 6577 else 6578 test_prefix=$prefix 6579 fi 6580 else 6581 test_prefix=$exec_prefix 6582 fi 6583 value=0 6584 case ${ac_define_dir} in 6585 "${test_prefix}"|"${test_prefix}/"*|\ 6586 '${exec_prefix}'|'${exec_prefix}/'*) 6587 value=1 6588 ;; 6589 esac 6590 6591cat >>confdefs.h <<_ACEOF 6592#define GDB_DATADIR_RELOCATABLE $value 6593_ACEOF 6594 6595 6596 6597 6598 6599# Check whether --with-relocated-sources was given. 6600if test "${with_relocated_sources+set}" = set; then : 6601 withval=$with_relocated_sources; reloc_srcdir="${withval}" 6602 6603 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6605 ac_define_dir=`eval echo $reloc_srcdir` 6606 ac_define_dir=`eval echo $ac_define_dir` 6607 6608cat >>confdefs.h <<_ACEOF 6609#define RELOC_SRCDIR "$ac_define_dir" 6610_ACEOF 6611 6612 6613 6614fi 6615 6616 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5 6618$as_echo_n "checking for default auto-load directory... " >&6; } 6619 6620# Check whether --with-auto-load-dir was given. 6621if test "${with_auto_load_dir+set}" = set; then : 6622 withval=$with_auto_load_dir; 6623else 6624 with_auto_load_dir='$debugdir:$datadir/auto-load' 6625fi 6626 6627escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'` 6628 6629 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6630 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6631 ac_define_dir=`eval echo $escape_dir` 6632 ac_define_dir=`eval echo $ac_define_dir` 6633 6634cat >>confdefs.h <<_ACEOF 6635#define AUTO_LOAD_DIR "$ac_define_dir" 6636_ACEOF 6637 6638 6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5 6640$as_echo "$with_auto_load_dir" >&6; } 6641 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5 6643$as_echo_n "checking for default auto-load safe-path... " >&6; } 6644 6645# Check whether --with-auto-load-safe-path was given. 6646if test "${with_auto_load_safe_path+set}" = set; then : 6647 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then 6648 with_auto_load_safe_path="/" 6649 fi 6650else 6651 with_auto_load_safe_path="$with_auto_load_dir" 6652fi 6653 6654escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'` 6655 6656 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 6657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6658 ac_define_dir=`eval echo $escape_dir` 6659 ac_define_dir=`eval echo $ac_define_dir` 6660 6661cat >>confdefs.h <<_ACEOF 6662#define AUTO_LOAD_SAFE_PATH "$ac_define_dir" 6663_ACEOF 6664 6665 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5 6667$as_echo "$with_auto_load_safe_path" >&6; } 6668 6669 6670 6671subdirs="$subdirs testsuite" 6672 6673 6674# Check whether to support alternative target configurations 6675# Check whether --enable-targets was given. 6676if test "${enable_targets+set}" = set; then : 6677 enableval=$enable_targets; case "${enableval}" in 6678 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 6679 ;; 6680 no) enable_targets= ;; 6681 *) enable_targets=$enableval ;; 6682esac 6683fi 6684 6685 6686# Check whether to enable 64-bit support on 32-bit hosts 6687# Check whether --enable-64-bit-bfd was given. 6688if test "${enable_64_bit_bfd+set}" = set; then : 6689 enableval=$enable_64_bit_bfd; case "${enableval}" in 6690 yes) want64=true ;; 6691 no) want64=false ;; 6692 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; 6693esac 6694else 6695 want64=false 6696fi 6697 6698# Provide defaults for some variables set by the per-host and per-target 6699# configuration. 6700gdb_host_obs=posix-hdep.o 6701 6702if test "${target}" = "${host}"; then 6703 gdb_native=yes 6704else 6705 gdb_native=no 6706fi 6707 6708. $srcdir/configure.host 6709 6710# Accumulate some settings from configure.tgt over all enabled targets 6711 6712TARGET_OBS= 6713all_targets= 6714HAVE_NATIVE_GCORE_TARGET= 6715 6716for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` 6717do 6718 if test "$targ_alias" = "all"; then 6719 all_targets=true 6720 else 6721 # Canonicalize the secondary target names. 6722 result=`$ac_config_sub $targ_alias 2>/dev/null` 6723 if test -n "$result"; then 6724 targ=$result 6725 else 6726 targ=$targ_alias 6727 fi 6728 6729 . ${srcdir}/configure.tgt 6730 6731 if test -z "${gdb_target_obs}"; then : 6732 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5 6733fi 6734 6735 # Target-specific object files 6736 for i in ${gdb_target_obs}; do 6737 case " $TARGET_OBS " in 6738 *" ${i} "*) ;; 6739 *) 6740 TARGET_OBS="$TARGET_OBS ${i}" 6741 ;; 6742 esac 6743 done 6744 6745 # Check whether this target needs 64-bit CORE_ADDR 6746 if test x${want64} = xfalse; then 6747 . ${srcdir}/../bfd/config.bfd 6748 fi 6749 6750 # Check whether this target is native and supports gcore. 6751 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \ 6752 && $gdb_have_gcore; then 6753 HAVE_NATIVE_GCORE_TARGET=1 6754 fi 6755 fi 6756done 6757 6758if test x${all_targets} = xtrue; then 6759 6760 # We want all 64-bit targets if we either: 6761 # - run on a 64-bit host or 6762 # - already require 64-bit support for some other target or 6763 # - the --enable-64-bit-bfd option was supplied 6764 # Otherwise we only support all 32-bit targets. 6765 # 6766 # NOTE: This test must be in sync with the corresponding 6767 # tests in BFD! 6768 6769 if test x${want64} = xfalse; then 6770 # The cast to long int works around a bug in the HP C Compiler 6771# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6772# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6773# This bug is HP SR number 8606223364. 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6775$as_echo_n "checking size of long... " >&6; } 6776if ${ac_cv_sizeof_long+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6780 6781else 6782 if test "$ac_cv_type_long" = yes; then 6783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6785as_fn_error 77 "cannot compute sizeof (long) 6786See \`config.log' for more details" "$LINENO" 5; } 6787 else 6788 ac_cv_sizeof_long=0 6789 fi 6790fi 6791 6792fi 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6794$as_echo "$ac_cv_sizeof_long" >&6; } 6795 6796 6797 6798cat >>confdefs.h <<_ACEOF 6799#define SIZEOF_LONG $ac_cv_sizeof_long 6800_ACEOF 6801 6802 6803 if test "x${ac_cv_sizeof_long}" = "x8"; then 6804 want64=true 6805 fi 6806 fi 6807 if test x${want64} = xtrue; then 6808 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)' 6809 else 6810 TARGET_OBS='$(ALL_TARGET_OBS)' 6811 fi 6812fi 6813 6814 6815 6816 6817# For other settings, only the main target counts. 6818gdb_sim= 6819gdb_osabi= 6820targ=$target; . ${srcdir}/configure.tgt 6821 6822# Fetch the default architecture and default target vector from BFD. 6823targ=$target; . $srcdir/../bfd/config.bfd 6824 6825# We only want the first architecture, so strip off the others if 6826# there is more than one. 6827targ_archs=`echo $targ_archs | sed 's/ .*//'` 6828 6829if test "x$targ_archs" != x; then 6830 6831cat >>confdefs.h <<_ACEOF 6832#define DEFAULT_BFD_ARCH $targ_archs 6833_ACEOF 6834 6835fi 6836if test "x$targ_defvec" != x; then 6837 6838cat >>confdefs.h <<_ACEOF 6839#define DEFAULT_BFD_VEC $targ_defvec 6840_ACEOF 6841 6842fi 6843 6844# Enable MI. 6845# Check whether --enable-gdbmi was given. 6846if test "${enable_gdbmi+set}" = set; then : 6847 enableval=$enable_gdbmi; case $enableval in 6848 yes | no) 6849 ;; 6850 *) 6851 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;; 6852 esac 6853else 6854 enable_gdbmi=yes 6855fi 6856 6857if test x"$enable_gdbmi" = xyes; then 6858 if test -d "$srcdir/mi"; then 6859 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" 6860 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" 6861 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" 6862 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" 6863 fi 6864fi 6865 6866# Enable TUI. 6867# Check whether --enable-tui was given. 6868if test "${enable_tui+set}" = set; then : 6869 enableval=$enable_tui; case $enableval in 6870 yes | no | auto) 6871 ;; 6872 *) 6873 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;; 6874 esac 6875else 6876 enable_tui=auto 6877fi 6878 6879 6880# Enable gdbtk. 6881# Check whether --enable-gdbtk was given. 6882if test "${enable_gdbtk+set}" = set; then : 6883 enableval=$enable_gdbtk; case $enableval in 6884 yes | no) 6885 ;; 6886 *) 6887 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;; 6888 esac 6889else 6890 if test -d "$srcdir/gdbtk"; then 6891 enable_gdbtk=yes 6892 else 6893 enable_gdbtk=no 6894 fi 6895fi 6896 6897# We unconditionally disable gdbtk tests on selected platforms. 6898case $host_os in 6899 go32* | windows*) 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5 6901$as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} 6902 enable_gdbtk=no ;; 6903esac 6904 6905# Handle optional debuginfod support 6906 6907 6908 6909 6910 6911 6912 6913if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6914 if test -n "$ac_tool_prefix"; then 6915 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 6916set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6918$as_echo_n "checking for $ac_word... " >&6; } 6919if ${ac_cv_path_PKG_CONFIG+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 case $PKG_CONFIG in 6923 [\\/]* | ?:[\\/]*) 6924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6925 ;; 6926 *) 6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939 done 6940IFS=$as_save_IFS 6941 6942 ;; 6943esac 6944fi 6945PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6946if test -n "$PKG_CONFIG"; then 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6948$as_echo "$PKG_CONFIG" >&6; } 6949else 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6951$as_echo "no" >&6; } 6952fi 6953 6954 6955fi 6956if test -z "$ac_cv_path_PKG_CONFIG"; then 6957 ac_pt_PKG_CONFIG=$PKG_CONFIG 6958 # Extract the first word of "pkg-config", so it can be a program name with args. 6959set dummy pkg-config; ac_word=$2 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961$as_echo_n "checking for $ac_word... " >&6; } 6962if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 case $ac_pt_PKG_CONFIG in 6966 [\\/]* | ?:[\\/]*) 6967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 6968 ;; 6969 *) 6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985 ;; 6986esac 6987fi 6988ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 6989if test -n "$ac_pt_PKG_CONFIG"; then 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 6991$as_echo "$ac_pt_PKG_CONFIG" >&6; } 6992else 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6994$as_echo "no" >&6; } 6995fi 6996 6997 if test "x$ac_pt_PKG_CONFIG" = x; then 6998 PKG_CONFIG="" 6999 else 7000 case $cross_compiling:$ac_tool_warned in 7001yes:) 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7004ac_tool_warned=yes ;; 7005esac 7006 PKG_CONFIG=$ac_pt_PKG_CONFIG 7007 fi 7008else 7009 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7010fi 7011 7012fi 7013if test -n "$PKG_CONFIG"; then 7014 _pkg_min_version=0.9.0 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7016$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7017 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7019$as_echo "yes" >&6; } 7020 else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023 PKG_CONFIG="" 7024 fi 7025fi 7026 7027# Handle optional debuginfod support 7028 7029# Check whether --with-debuginfod was given. 7030if test "${with_debuginfod+set}" = set; then : 7031 withval=$with_debuginfod; 7032else 7033 with_debuginfod=auto 7034fi 7035 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5 7037$as_echo_n "checking whether to use debuginfod... " >&6; } 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5 7039$as_echo "$with_debuginfod" >&6; } 7040 7041if test "x$with_debuginfod" != xno; then 7042 7043pkg_failed=no 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5 7045$as_echo_n "checking for libdebuginfod >= 0.179... " >&6; } 7046 7047if test -n "$DEBUGINFOD_CFLAGS"; then 7048 pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS" 7049 elif test -n "$PKG_CONFIG"; then 7050 if test -n "$PKG_CONFIG" && \ 7051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5 7052 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5 7053 ac_status=$? 7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7055 test $ac_status = 0; }; then 7056 pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null` 7057 test "x$?" != "x0" && pkg_failed=yes 7058else 7059 pkg_failed=yes 7060fi 7061 else 7062 pkg_failed=untried 7063fi 7064if test -n "$DEBUGINFOD_LIBS"; then 7065 pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS" 7066 elif test -n "$PKG_CONFIG"; then 7067 if test -n "$PKG_CONFIG" && \ 7068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5 7069 ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7072 test $ac_status = 0; }; then 7073 pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null` 7074 test "x$?" != "x0" && pkg_failed=yes 7075else 7076 pkg_failed=yes 7077fi 7078 else 7079 pkg_failed=untried 7080fi 7081 7082if test $pkg_failed = no; then 7083 pkg_save_LDFLAGS="$LDFLAGS" 7084 LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS" 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087 7088int 7089main () 7090{ 7091 7092 ; 7093 return 0; 7094} 7095_ACEOF 7096if ac_fn_c_try_link "$LINENO"; then : 7097 7098else 7099 pkg_failed=yes 7100fi 7101rm -f core conftest.err conftest.$ac_objext \ 7102 conftest$ac_exeext conftest.$ac_ext 7103 LDFLAGS=$pkg_save_LDFLAGS 7104fi 7105 7106 7107 7108if test $pkg_failed = yes; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111 7112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7113 _pkg_short_errors_supported=yes 7114else 7115 _pkg_short_errors_supported=no 7116fi 7117 if test $_pkg_short_errors_supported = yes; then 7118 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1` 7119 else 7120 DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1` 7121 fi 7122 # Put the nasty error message in config.log where it belongs 7123 echo "$DEBUGINFOD_PKG_ERRORS" >&5 7124 7125 if test "x$with_debuginfod" = xyes; then 7126 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5 7127 else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5 7129$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;} 7130 fi 7131elif test $pkg_failed = untried; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7133$as_echo "no" >&6; } 7134 if test "x$with_debuginfod" = xyes; then 7135 as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5 7136 else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5 7138$as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;} 7139 fi 7140else 7141 DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS 7142 DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7144$as_echo "yes" >&6; } 7145 7146$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h 7147 7148fi 7149else 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5 7151$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;} 7152fi 7153 7154 7155# Libunwind support for ia64. 7156 7157# Check whether --with-libunwind-ia64 was given. 7158if test "${with_libunwind_ia64+set}" = set; then : 7159 withval=$with_libunwind_ia64; 7160else 7161 with_libunwind_ia64=auto 7162fi 7163 7164 7165# Backward compatibility option. 7166if test "${with_libunwind+set}" = set; then 7167 if test x"$with_libunwind_ia64" != xauto; then 7168 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5 7169 fi 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5 7171$as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;} 7172 with_libunwind_ia64="$with_libunwind" 7173fi 7174 7175case "$with_libunwind_ia64" in 7176 yes | no) 7177 ;; 7178 auto) 7179 for ac_header in libunwind-ia64.h 7180do : 7181 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default" 7182if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then : 7183 cat >>confdefs.h <<_ACEOF 7184#define HAVE_LIBUNWIND_IA64_H 1 7185_ACEOF 7186 7187fi 7188 7189done 7190 7191 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h 7192 ;; 7193 *) 7194 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5 7195 ;; 7196esac 7197 7198if test x"$with_libunwind_ia64" = xyes; then 7199 for ac_header in libunwind-ia64.h 7200do : 7201 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default" 7202if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then : 7203 cat >>confdefs.h <<_ACEOF 7204#define HAVE_LIBUNWIND_IA64_H 1 7205_ACEOF 7206 7207fi 7208 7209done 7210 7211 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then 7212 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5 7213 fi 7214 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o" 7215 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o" 7216 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c" 7217fi 7218 7219opt_curses=no 7220 7221# Check whether --with-curses was given. 7222if test "${with_curses+set}" = set; then : 7223 withval=$with_curses; opt_curses=$withval 7224fi 7225 7226 7227prefer_curses=no 7228if test "$opt_curses" = "yes"; then 7229 prefer_curses=yes 7230fi 7231 7232# Profiling support. 7233# Check whether --enable-profiling was given. 7234if test "${enable_profiling+set}" = set; then : 7235 enableval=$enable_profiling; case $enableval in 7236 yes | no) 7237 ;; 7238 *) 7239 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;; 7240 esac 7241else 7242 enable_profiling=no 7243fi 7244 7245 7246for ac_func in monstartup _mcleanup 7247do : 7248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7249ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7250if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7251 cat >>confdefs.h <<_ACEOF 7252#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7253_ACEOF 7254 7255fi 7256done 7257 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5 7259$as_echo_n "checking for _etext... " >&6; } 7260if ${ac_cv_var__etext+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265#include <stdlib.h> 7266extern char _etext; 7267 7268int 7269main () 7270{ 7271free (&_etext); 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276if ac_fn_c_try_link "$LINENO"; then : 7277 ac_cv_var__etext=yes 7278else 7279 ac_cv_var__etext=no 7280fi 7281rm -f core conftest.err conftest.$ac_objext \ 7282 conftest$ac_exeext conftest.$ac_ext 7283fi 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5 7285$as_echo "$ac_cv_var__etext" >&6; } 7286if test "$ac_cv_var__etext" = yes; then 7287 7288$as_echo "#define HAVE__ETEXT 1" >>confdefs.h 7289 7290fi 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5 7292$as_echo_n "checking for etext... " >&6; } 7293if ${ac_cv_var_etext+:} false; then : 7294 $as_echo_n "(cached) " >&6 7295else 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298#include <stdlib.h> 7299extern char etext; 7300 7301int 7302main () 7303{ 7304free (&etext); 7305 ; 7306 return 0; 7307} 7308_ACEOF 7309if ac_fn_c_try_link "$LINENO"; then : 7310 ac_cv_var_etext=yes 7311else 7312 ac_cv_var_etext=no 7313fi 7314rm -f core conftest.err conftest.$ac_objext \ 7315 conftest$ac_exeext conftest.$ac_ext 7316fi 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5 7318$as_echo "$ac_cv_var_etext" >&6; } 7319if test "$ac_cv_var_etext" = yes; then 7320 7321$as_echo "#define HAVE_ETEXT 1" >>confdefs.h 7322 7323fi 7324if test "$enable_profiling" = yes ; then 7325 if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then 7326 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5 7327 fi 7328 PROFILE_CFLAGS=-pg 7329 OLD_CFLAGS="$CFLAGS" 7330 CFLAGS="$CFLAGS $PROFILE_CFLAGS" 7331 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5 7333$as_echo_n "checking whether $CC supports -pg... " >&6; } 7334if ${ac_cv_cc_supports_pg+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339 7340int 7341main () 7342{ 7343int x; 7344 ; 7345 return 0; 7346} 7347_ACEOF 7348if ac_fn_c_try_compile "$LINENO"; then : 7349 ac_cv_cc_supports_pg=yes 7350else 7351 ac_cv_cc_supports_pg=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5 7356$as_echo "$ac_cv_cc_supports_pg" >&6; } 7357 7358 if test "$ac_cv_cc_supports_pg" = no; then 7359 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5 7360 fi 7361 7362 CFLAGS="$OLD_CFLAGS" 7363fi 7364 7365CODESIGN_CERT= 7366# Check whether --enable-codesign was given. 7367if test "${enable_codesign+set}" = set; then : 7368 enableval=$enable_codesign; CODESIGN_CERT=$enableval 7369fi 7370 7371 7372 7373 7374 7375# Check whether --with-pkgversion was given. 7376if test "${with_pkgversion+set}" = set; then : 7377 withval=$with_pkgversion; case "$withval" in 7378 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 7379 no) PKGVERSION= ;; 7380 *) PKGVERSION="($withval) " ;; 7381 esac 7382else 7383 PKGVERSION="(GDB) " 7384 7385fi 7386 7387 7388 7389 7390 7391# Check whether --with-bugurl was given. 7392if test "${with_bugurl+set}" = set; then : 7393 withval=$with_bugurl; case "$withval" in 7394 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 7395 no) BUGURL= 7396 ;; 7397 *) BUGURL="$withval" 7398 ;; 7399 esac 7400else 7401 BUGURL="https://www.gnu.org/software/gdb/bugs/" 7402 7403fi 7404 7405 case ${BUGURL} in 7406 "") 7407 REPORT_BUGS_TO= 7408 REPORT_BUGS_TEXI= 7409 ;; 7410 *) 7411 REPORT_BUGS_TO="<$BUGURL>" 7412 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 7413 ;; 7414 esac; 7415 7416 7417 7418 7419cat >>confdefs.h <<_ACEOF 7420#define PKGVERSION "$PKGVERSION" 7421_ACEOF 7422 7423 7424cat >>confdefs.h <<_ACEOF 7425#define REPORT_BUGS_TO "$REPORT_BUGS_TO" 7426_ACEOF 7427 7428 7429# --------------------- # 7430# Checks for programs. # 7431# --------------------- # 7432 7433for ac_prog in gawk mawk nawk awk 7434do 7435 # Extract the first word of "$ac_prog", so it can be a program name with args. 7436set dummy $ac_prog; ac_word=$2 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7438$as_echo_n "checking for $ac_word... " >&6; } 7439if ${ac_cv_prog_AWK+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 if test -n "$AWK"; then 7443 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7444else 7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7446for as_dir in $PATH 7447do 7448 IFS=$as_save_IFS 7449 test -z "$as_dir" && as_dir=. 7450 for ac_exec_ext in '' $ac_executable_extensions; do 7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7452 ac_cv_prog_AWK="$ac_prog" 7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7454 break 2 7455 fi 7456done 7457 done 7458IFS=$as_save_IFS 7459 7460fi 7461fi 7462AWK=$ac_cv_prog_AWK 7463if test -n "$AWK"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7465$as_echo "$AWK" >&6; } 7466else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468$as_echo "no" >&6; } 7469fi 7470 7471 7472 test -n "$AWK" && break 7473done 7474 7475# Find a good install program. We prefer a C program (faster), 7476# so one script is as good as another. But avoid the broken or 7477# incompatible versions: 7478# SysV /etc/install, /usr/sbin/install 7479# SunOS /usr/etc/install 7480# IRIX /sbin/install 7481# AIX /bin/install 7482# AmigaOS /C/install, which installs bootblocks on floppy discs 7483# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7484# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7485# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7486# OS/2's system install, which has a completely different semantic 7487# ./install, which can be erroneously created by make from ./install.sh. 7488# Reject install programs that cannot install multiple files. 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 7490$as_echo_n "checking for a BSD-compatible install... " >&6; } 7491if test -z "$INSTALL"; then 7492if ${ac_cv_path_install+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496for as_dir in $PATH 7497do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 # Account for people who put trailing slashes in PATH elements. 7501case $as_dir/ in #(( 7502 ./ | .// | /[cC]/* | \ 7503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 7505 /usr/ucb/* ) ;; 7506 *) 7507 # OSF1 and SCO ODT 3.0 have their own names for install. 7508 # Don't use installbsd from OSF since it installs stuff as root 7509 # by default. 7510 for ac_prog in ginstall scoinst install; do 7511 for ac_exec_ext in '' $ac_executable_extensions; do 7512 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 7513 if test $ac_prog = install && 7514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7515 # AIX install. It has an incompatible calling convention. 7516 : 7517 elif test $ac_prog = install && 7518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7519 # program-specific install script used by HP pwplus--don't use. 7520 : 7521 else 7522 rm -rf conftest.one conftest.two conftest.dir 7523 echo one > conftest.one 7524 echo two > conftest.two 7525 mkdir conftest.dir 7526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 7527 test -s conftest.one && test -s conftest.two && 7528 test -s conftest.dir/conftest.one && 7529 test -s conftest.dir/conftest.two 7530 then 7531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7532 break 3 7533 fi 7534 fi 7535 fi 7536 done 7537 done 7538 ;; 7539esac 7540 7541 done 7542IFS=$as_save_IFS 7543 7544rm -rf conftest.one conftest.two conftest.dir 7545 7546fi 7547 if test "${ac_cv_path_install+set}" = set; then 7548 INSTALL=$ac_cv_path_install 7549 else 7550 # As a last resort, use the slow shell script. Don't cache a 7551 # value for INSTALL within a source directory, because that will 7552 # break other packages using the cache if that directory is 7553 # removed, or if the value is a relative name. 7554 INSTALL=$ac_install_sh 7555 fi 7556fi 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 7558$as_echo "$INSTALL" >&6; } 7559 7560# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7561# It thinks the first close brace ends the variable substitution. 7562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7563 7564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7565 7566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7567 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7569$as_echo_n "checking whether ln -s works... " >&6; } 7570LN_S=$as_ln_s 7571if test "$LN_S" = "ln -s"; then 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7573$as_echo "yes" >&6; } 7574else 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7576$as_echo "no, using $LN_S" >&6; } 7577fi 7578 7579if test -n "$ac_tool_prefix"; then 7580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7581set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583$as_echo_n "checking for $ac_word... " >&6; } 7584if ${ac_cv_prog_RANLIB+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 if test -n "$RANLIB"; then 7588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607RANLIB=$ac_cv_prog_RANLIB 7608if test -n "$RANLIB"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7610$as_echo "$RANLIB" >&6; } 7611else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616 7617fi 7618if test -z "$ac_cv_prog_RANLIB"; then 7619 ac_ct_RANLIB=$RANLIB 7620 # Extract the first word of "ranlib", so it can be a program name with args. 7621set dummy ranlib; ac_word=$2 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623$as_echo_n "checking for $ac_word... " >&6; } 7624if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 if test -n "$ac_ct_RANLIB"; then 7628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7629else 7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7631for as_dir in $PATH 7632do 7633 IFS=$as_save_IFS 7634 test -z "$as_dir" && as_dir=. 7635 for ac_exec_ext in '' $ac_executable_extensions; do 7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7637 ac_cv_prog_ac_ct_RANLIB="ranlib" 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7639 break 2 7640 fi 7641done 7642 done 7643IFS=$as_save_IFS 7644 7645fi 7646fi 7647ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7648if test -n "$ac_ct_RANLIB"; then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7650$as_echo "$ac_ct_RANLIB" >&6; } 7651else 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7653$as_echo "no" >&6; } 7654fi 7655 7656 if test "x$ac_ct_RANLIB" = x; then 7657 RANLIB=":" 7658 else 7659 case $cross_compiling:$ac_tool_warned in 7660yes:) 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7663ac_tool_warned=yes ;; 7664esac 7665 RANLIB=$ac_ct_RANLIB 7666 fi 7667else 7668 RANLIB="$ac_cv_prog_RANLIB" 7669fi 7670 7671for ac_prog in 'bison -y' byacc 7672do 7673 # Extract the first word of "$ac_prog", so it can be a program name with args. 7674set dummy $ac_prog; ac_word=$2 7675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7676$as_echo_n "checking for $ac_word... " >&6; } 7677if ${ac_cv_prog_YACC+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 if test -n "$YACC"; then 7681 ac_cv_prog_YACC="$YACC" # Let the user override the test. 7682else 7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7684for as_dir in $PATH 7685do 7686 IFS=$as_save_IFS 7687 test -z "$as_dir" && as_dir=. 7688 for ac_exec_ext in '' $ac_executable_extensions; do 7689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7690 ac_cv_prog_YACC="$ac_prog" 7691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7692 break 2 7693 fi 7694done 7695 done 7696IFS=$as_save_IFS 7697 7698fi 7699fi 7700YACC=$ac_cv_prog_YACC 7701if test -n "$YACC"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 7703$as_echo "$YACC" >&6; } 7704else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706$as_echo "no" >&6; } 7707fi 7708 7709 7710 test -n "$YACC" && break 7711done 7712test -n "$YACC" || YACC="yacc" 7713 7714 7715if test -n "$ac_tool_prefix"; then 7716 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7717set dummy ${ac_tool_prefix}ar; ac_word=$2 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7719$as_echo_n "checking for $ac_word... " >&6; } 7720if ${ac_cv_prog_AR+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 if test -n "$AR"; then 7724 ac_cv_prog_AR="$AR" # Let the user override the test. 7725else 7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7727for as_dir in $PATH 7728do 7729 IFS=$as_save_IFS 7730 test -z "$as_dir" && as_dir=. 7731 for ac_exec_ext in '' $ac_executable_extensions; do 7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7733 ac_cv_prog_AR="${ac_tool_prefix}ar" 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7735 break 2 7736 fi 7737done 7738 done 7739IFS=$as_save_IFS 7740 7741fi 7742fi 7743AR=$ac_cv_prog_AR 7744if test -n "$AR"; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7746$as_echo "$AR" >&6; } 7747else 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7749$as_echo "no" >&6; } 7750fi 7751 7752 7753fi 7754if test -z "$ac_cv_prog_AR"; then 7755 ac_ct_AR=$AR 7756 # Extract the first word of "ar", so it can be a program name with args. 7757set dummy ar; ac_word=$2 7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7759$as_echo_n "checking for $ac_word... " >&6; } 7760if ${ac_cv_prog_ac_ct_AR+:} false; then : 7761 $as_echo_n "(cached) " >&6 7762else 7763 if test -n "$ac_ct_AR"; then 7764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7765else 7766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7767for as_dir in $PATH 7768do 7769 IFS=$as_save_IFS 7770 test -z "$as_dir" && as_dir=. 7771 for ac_exec_ext in '' $ac_executable_extensions; do 7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7773 ac_cv_prog_ac_ct_AR="ar" 7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7775 break 2 7776 fi 7777done 7778 done 7779IFS=$as_save_IFS 7780 7781fi 7782fi 7783ac_ct_AR=$ac_cv_prog_ac_ct_AR 7784if test -n "$ac_ct_AR"; then 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7786$as_echo "$ac_ct_AR" >&6; } 7787else 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7789$as_echo "no" >&6; } 7790fi 7791 7792 if test "x$ac_ct_AR" = x; then 7793 AR="" 7794 else 7795 case $cross_compiling:$ac_tool_warned in 7796yes:) 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7799ac_tool_warned=yes ;; 7800esac 7801 AR=$ac_ct_AR 7802 fi 7803else 7804 AR="$ac_cv_prog_AR" 7805fi 7806 7807if test -n "$ac_tool_prefix"; then 7808 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7809set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7811$as_echo_n "checking for $ac_word... " >&6; } 7812if ${ac_cv_prog_DLLTOOL+:} false; then : 7813 $as_echo_n "(cached) " >&6 7814else 7815 if test -n "$DLLTOOL"; then 7816 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7817else 7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7819for as_dir in $PATH 7820do 7821 IFS=$as_save_IFS 7822 test -z "$as_dir" && as_dir=. 7823 for ac_exec_ext in '' $ac_executable_extensions; do 7824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7825 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7827 break 2 7828 fi 7829done 7830 done 7831IFS=$as_save_IFS 7832 7833fi 7834fi 7835DLLTOOL=$ac_cv_prog_DLLTOOL 7836if test -n "$DLLTOOL"; then 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7838$as_echo "$DLLTOOL" >&6; } 7839else 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7841$as_echo "no" >&6; } 7842fi 7843 7844 7845fi 7846if test -z "$ac_cv_prog_DLLTOOL"; then 7847 ac_ct_DLLTOOL=$DLLTOOL 7848 # Extract the first word of "dlltool", so it can be a program name with args. 7849set dummy dlltool; ac_word=$2 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7851$as_echo_n "checking for $ac_word... " >&6; } 7852if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 if test -n "$ac_ct_DLLTOOL"; then 7856 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7857else 7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859for as_dir in $PATH 7860do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7865 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869done 7870 done 7871IFS=$as_save_IFS 7872 7873fi 7874fi 7875ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7876if test -n "$ac_ct_DLLTOOL"; then 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7878$as_echo "$ac_ct_DLLTOOL" >&6; } 7879else 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7881$as_echo "no" >&6; } 7882fi 7883 7884 if test "x$ac_ct_DLLTOOL" = x; then 7885 DLLTOOL="" 7886 else 7887 case $cross_compiling:$ac_tool_warned in 7888yes:) 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7891ac_tool_warned=yes ;; 7892esac 7893 DLLTOOL=$ac_ct_DLLTOOL 7894 fi 7895else 7896 DLLTOOL="$ac_cv_prog_DLLTOOL" 7897fi 7898 7899if test -n "$ac_tool_prefix"; then 7900 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 7901set dummy ${ac_tool_prefix}windres; ac_word=$2 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7903$as_echo_n "checking for $ac_word... " >&6; } 7904if ${ac_cv_prog_WINDRES+:} false; then : 7905 $as_echo_n "(cached) " >&6 7906else 7907 if test -n "$WINDRES"; then 7908 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 7909else 7910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7911for as_dir in $PATH 7912do 7913 IFS=$as_save_IFS 7914 test -z "$as_dir" && as_dir=. 7915 for ac_exec_ext in '' $ac_executable_extensions; do 7916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7917 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 7918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7919 break 2 7920 fi 7921done 7922 done 7923IFS=$as_save_IFS 7924 7925fi 7926fi 7927WINDRES=$ac_cv_prog_WINDRES 7928if test -n "$WINDRES"; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 7930$as_echo "$WINDRES" >&6; } 7931else 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7933$as_echo "no" >&6; } 7934fi 7935 7936 7937fi 7938if test -z "$ac_cv_prog_WINDRES"; then 7939 ac_ct_WINDRES=$WINDRES 7940 # Extract the first word of "windres", so it can be a program name with args. 7941set dummy windres; ac_word=$2 7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7943$as_echo_n "checking for $ac_word... " >&6; } 7944if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 7945 $as_echo_n "(cached) " >&6 7946else 7947 if test -n "$ac_ct_WINDRES"; then 7948 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 7949else 7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7951for as_dir in $PATH 7952do 7953 IFS=$as_save_IFS 7954 test -z "$as_dir" && as_dir=. 7955 for ac_exec_ext in '' $ac_executable_extensions; do 7956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7957 ac_cv_prog_ac_ct_WINDRES="windres" 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7959 break 2 7960 fi 7961done 7962 done 7963IFS=$as_save_IFS 7964 7965fi 7966fi 7967ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 7968if test -n "$ac_ct_WINDRES"; then 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 7970$as_echo "$ac_ct_WINDRES" >&6; } 7971else 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7973$as_echo "no" >&6; } 7974fi 7975 7976 if test "x$ac_ct_WINDRES" = x; then 7977 WINDRES="" 7978 else 7979 case $cross_compiling:$ac_tool_warned in 7980yes:) 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7983ac_tool_warned=yes ;; 7984esac 7985 WINDRES=$ac_ct_WINDRES 7986 fi 7987else 7988 WINDRES="$ac_cv_prog_WINDRES" 7989fi 7990 7991 7992case $host_os in 7993 gnu*) 7994 # Needed for GNU Hurd hosts. 7995 if test -n "$ac_tool_prefix"; then 7996 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. 7997set dummy ${ac_tool_prefix}mig; ac_word=$2 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7999$as_echo_n "checking for $ac_word... " >&6; } 8000if ${ac_cv_prog_MIG+:} false; then : 8001 $as_echo_n "(cached) " >&6 8002else 8003 if test -n "$MIG"; then 8004 ac_cv_prog_MIG="$MIG" # Let the user override the test. 8005else 8006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8007for as_dir in $PATH 8008do 8009 IFS=$as_save_IFS 8010 test -z "$as_dir" && as_dir=. 8011 for ac_exec_ext in '' $ac_executable_extensions; do 8012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8013 ac_cv_prog_MIG="${ac_tool_prefix}mig" 8014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8015 break 2 8016 fi 8017done 8018 done 8019IFS=$as_save_IFS 8020 8021fi 8022fi 8023MIG=$ac_cv_prog_MIG 8024if test -n "$MIG"; then 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5 8026$as_echo "$MIG" >&6; } 8027else 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8029$as_echo "no" >&6; } 8030fi 8031 8032 8033fi 8034if test -z "$ac_cv_prog_MIG"; then 8035 ac_ct_MIG=$MIG 8036 # Extract the first word of "mig", so it can be a program name with args. 8037set dummy mig; ac_word=$2 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039$as_echo_n "checking for $ac_word... " >&6; } 8040if ${ac_cv_prog_ac_ct_MIG+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 if test -n "$ac_ct_MIG"; then 8044 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. 8045else 8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8047for as_dir in $PATH 8048do 8049 IFS=$as_save_IFS 8050 test -z "$as_dir" && as_dir=. 8051 for ac_exec_ext in '' $ac_executable_extensions; do 8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8053 ac_cv_prog_ac_ct_MIG="mig" 8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8055 break 2 8056 fi 8057done 8058 done 8059IFS=$as_save_IFS 8060 8061fi 8062fi 8063ac_ct_MIG=$ac_cv_prog_ac_ct_MIG 8064if test -n "$ac_ct_MIG"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5 8066$as_echo "$ac_ct_MIG" >&6; } 8067else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069$as_echo "no" >&6; } 8070fi 8071 8072 if test "x$ac_ct_MIG" = x; then 8073 MIG="" 8074 else 8075 case $cross_compiling:$ac_tool_warned in 8076yes:) 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8079ac_tool_warned=yes ;; 8080esac 8081 MIG=$ac_ct_MIG 8082 fi 8083else 8084 MIG="$ac_cv_prog_MIG" 8085fi 8086 8087 if test x"$MIG" = x; then 8088 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5 8089 fi 8090 ;; 8091esac 8092 8093# ---------------------- # 8094# Checks for libraries. # 8095# ---------------------- # 8096 8097# We might need to link with -lm; most simulators need it. 8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 8099$as_echo_n "checking for main in -lm... " >&6; } 8100if ${ac_cv_lib_m_main+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 ac_check_lib_save_LIBS=$LIBS 8104LIBS="-lm $LIBS" 8105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107 8108 8109int 8110main () 8111{ 8112return main (); 8113 ; 8114 return 0; 8115} 8116_ACEOF 8117if ac_fn_c_try_link "$LINENO"; then : 8118 ac_cv_lib_m_main=yes 8119else 8120 ac_cv_lib_m_main=no 8121fi 8122rm -f core conftest.err conftest.$ac_objext \ 8123 conftest$ac_exeext conftest.$ac_ext 8124LIBS=$ac_check_lib_save_LIBS 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 8127$as_echo "$ac_cv_lib_m_main" >&6; } 8128if test "x$ac_cv_lib_m_main" = xyes; then : 8129 cat >>confdefs.h <<_ACEOF 8130#define HAVE_LIBM 1 8131_ACEOF 8132 8133 LIBS="-lm $LIBS" 8134 8135fi 8136 8137 8138# Some systems (e.g. Solaris) have `gethostbyname' in libnsl. 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 8140$as_echo_n "checking for library containing gethostbyname... " >&6; } 8141if ${ac_cv_search_gethostbyname+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 ac_func_search_save_LIBS=$LIBS 8145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147 8148/* Override any GCC internal prototype to avoid an error. 8149 Use char because int might match the return type of a GCC 8150 builtin and then its argument prototype would still apply. */ 8151#ifdef __cplusplus 8152extern "C" 8153#endif 8154char gethostbyname (); 8155int 8156main () 8157{ 8158return gethostbyname (); 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163for ac_lib in '' nsl; do 8164 if test -z "$ac_lib"; then 8165 ac_res="none required" 8166 else 8167 ac_res=-l$ac_lib 8168 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8169 fi 8170 if ac_fn_c_try_link "$LINENO"; then : 8171 ac_cv_search_gethostbyname=$ac_res 8172fi 8173rm -f core conftest.err conftest.$ac_objext \ 8174 conftest$ac_exeext 8175 if ${ac_cv_search_gethostbyname+:} false; then : 8176 break 8177fi 8178done 8179if ${ac_cv_search_gethostbyname+:} false; then : 8180 8181else 8182 ac_cv_search_gethostbyname=no 8183fi 8184rm conftest.$ac_ext 8185LIBS=$ac_func_search_save_LIBS 8186fi 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 8188$as_echo "$ac_cv_search_gethostbyname" >&6; } 8189ac_res=$ac_cv_search_gethostbyname 8190if test "$ac_res" != no; then : 8191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8192 8193fi 8194 8195 8196# Some systems (e.g. Solaris) have `socketpair' in libsocket. 8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5 8198$as_echo_n "checking for library containing socketpair... " >&6; } 8199if ${ac_cv_search_socketpair+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 ac_func_search_save_LIBS=$LIBS 8203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205 8206/* Override any GCC internal prototype to avoid an error. 8207 Use char because int might match the return type of a GCC 8208 builtin and then its argument prototype would still apply. */ 8209#ifdef __cplusplus 8210extern "C" 8211#endif 8212char socketpair (); 8213int 8214main () 8215{ 8216return socketpair (); 8217 ; 8218 return 0; 8219} 8220_ACEOF 8221for ac_lib in '' socket; do 8222 if test -z "$ac_lib"; then 8223 ac_res="none required" 8224 else 8225 ac_res=-l$ac_lib 8226 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8227 fi 8228 if ac_fn_c_try_link "$LINENO"; then : 8229 ac_cv_search_socketpair=$ac_res 8230fi 8231rm -f core conftest.err conftest.$ac_objext \ 8232 conftest$ac_exeext 8233 if ${ac_cv_search_socketpair+:} false; then : 8234 break 8235fi 8236done 8237if ${ac_cv_search_socketpair+:} false; then : 8238 8239else 8240 ac_cv_search_socketpair=no 8241fi 8242rm conftest.$ac_ext 8243LIBS=$ac_func_search_save_LIBS 8244fi 8245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5 8246$as_echo "$ac_cv_search_socketpair" >&6; } 8247ac_res=$ac_cv_search_socketpair 8248if test "$ac_res" != no; then : 8249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8250 8251fi 8252 8253 8254# Link in zlib if we can. This allows us to read compressed debug sections. 8255 8256 # Use the system's zlib library. 8257 zlibdir="-L\$(top_builddir)/../zlib" 8258 zlibinc="-I\$(top_srcdir)/../zlib" 8259 8260# Check whether --with-system-zlib was given. 8261if test "${with_system_zlib+set}" = set; then : 8262 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 8263 zlibdir= 8264 zlibinc= 8265 fi 8266 8267fi 8268 8269 8270 8271 8272 8273# On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c). 8274# On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd. 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5 8276$as_echo_n "checking for library containing kinfo_getvmmap... " >&6; } 8277if ${ac_cv_search_kinfo_getvmmap+:} false; then : 8278 $as_echo_n "(cached) " >&6 8279else 8280 ac_func_search_save_LIBS=$LIBS 8281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282/* end confdefs.h. */ 8283 8284/* Override any GCC internal prototype to avoid an error. 8285 Use char because int might match the return type of a GCC 8286 builtin and then its argument prototype would still apply. */ 8287#ifdef __cplusplus 8288extern "C" 8289#endif 8290char kinfo_getvmmap (); 8291int 8292main () 8293{ 8294return kinfo_getvmmap (); 8295 ; 8296 return 0; 8297} 8298_ACEOF 8299for ac_lib in '' util util-freebsd; do 8300 if test -z "$ac_lib"; then 8301 ac_res="none required" 8302 else 8303 ac_res=-l$ac_lib 8304 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8305 fi 8306 if ac_fn_c_try_link "$LINENO"; then : 8307 ac_cv_search_kinfo_getvmmap=$ac_res 8308fi 8309rm -f core conftest.err conftest.$ac_objext \ 8310 conftest$ac_exeext 8311 if ${ac_cv_search_kinfo_getvmmap+:} false; then : 8312 break 8313fi 8314done 8315if ${ac_cv_search_kinfo_getvmmap+:} false; then : 8316 8317else 8318 ac_cv_search_kinfo_getvmmap=no 8319fi 8320rm conftest.$ac_ext 8321LIBS=$ac_func_search_save_LIBS 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5 8324$as_echo "$ac_cv_search_kinfo_getvmmap" >&6; } 8325ac_res=$ac_cv_search_kinfo_getvmmap 8326if test "$ac_res" != no; then : 8327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8328 8329$as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h 8330 8331fi 8332 8333 8334 8335 if test "X$prefix" = "XNONE"; then 8336 acl_final_prefix="$ac_default_prefix" 8337 else 8338 acl_final_prefix="$prefix" 8339 fi 8340 if test "X$exec_prefix" = "XNONE"; then 8341 acl_final_exec_prefix='${prefix}' 8342 else 8343 acl_final_exec_prefix="$exec_prefix" 8344 fi 8345 acl_save_prefix="$prefix" 8346 prefix="$acl_final_prefix" 8347 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8348 prefix="$acl_save_prefix" 8349 8350 8351# Check whether --with-gnu-ld was given. 8352if test "${with_gnu_ld+set}" = set; then : 8353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8354else 8355 with_gnu_ld=no 8356fi 8357 8358# Prepare PATH_SEPARATOR. 8359# The user is always right. 8360if test "${PATH_SEPARATOR+set}" != set; then 8361 echo "#! /bin/sh" >conf$$.sh 8362 echo "exit 0" >>conf$$.sh 8363 chmod +x conf$$.sh 8364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8365 PATH_SEPARATOR=';' 8366 else 8367 PATH_SEPARATOR=: 8368 fi 8369 rm -f conf$$.sh 8370fi 8371ac_prog=ld 8372if test "$GCC" = yes; then 8373 # Check if gcc -print-prog-name=ld gives a path. 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 8375$as_echo_n "checking for ld used by GCC... " >&6; } 8376 case $host in 8377 *-*-mingw*) 8378 # gcc leaves a trailing carriage return which upsets mingw 8379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8380 *) 8381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8382 esac 8383 case $ac_prog in 8384 # Accept absolute paths. 8385 [\\/]* | [A-Za-z]:[\\/]*) 8386 re_direlt='/[^/][^/]*/\.\./' 8387 # Canonicalize the path of ld 8388 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8389 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8390 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8391 done 8392 test -z "$LD" && LD="$ac_prog" 8393 ;; 8394 "") 8395 # If it fails, then pretend we aren't using GCC. 8396 ac_prog=ld 8397 ;; 8398 *) 8399 # If it is relative, then search for the first ld in PATH. 8400 with_gnu_ld=unknown 8401 ;; 8402 esac 8403elif test "$with_gnu_ld" = yes; then 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8405$as_echo_n "checking for GNU ld... " >&6; } 8406else 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8408$as_echo_n "checking for non-GNU ld... " >&6; } 8409fi 8410if ${acl_cv_path_LD+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 if test -z "$LD"; then 8414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8415 for ac_dir in $PATH; do 8416 test -z "$ac_dir" && ac_dir=. 8417 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8418 acl_cv_path_LD="$ac_dir/$ac_prog" 8419 # Check to see if the program is GNU ld. I'd rather use --version, 8420 # but apparently some GNU ld's only accept -v. 8421 # Break only if it was the GNU/non-GNU ld that we prefer. 8422 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 8423 test "$with_gnu_ld" != no && break 8424 else 8425 test "$with_gnu_ld" != yes && break 8426 fi 8427 fi 8428 done 8429 IFS="$ac_save_ifs" 8430else 8431 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8432fi 8433fi 8434 8435LD="$acl_cv_path_LD" 8436if test -n "$LD"; then 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8438$as_echo "$LD" >&6; } 8439else 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8441$as_echo "no" >&6; } 8442fi 8443test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8445$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8446if ${acl_cv_prog_gnu_ld+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8450if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8451 acl_cv_prog_gnu_ld=yes 8452else 8453 acl_cv_prog_gnu_ld=no 8454fi 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 8457$as_echo "$acl_cv_prog_gnu_ld" >&6; } 8458with_gnu_ld=$acl_cv_prog_gnu_ld 8459 8460 8461 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 8463$as_echo_n "checking for shared library run path origin... " >&6; } 8464if ${acl_cv_rpath+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 8468 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8469 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8470 . ./conftest.sh 8471 rm -f ./conftest.sh 8472 acl_cv_rpath=done 8473 8474fi 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 8476$as_echo "$acl_cv_rpath" >&6; } 8477 wl="$acl_cv_wl" 8478 libext="$acl_cv_libext" 8479 shlibext="$acl_cv_shlibext" 8480 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8481 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8482 hardcode_direct="$acl_cv_hardcode_direct" 8483 hardcode_minus_L="$acl_cv_hardcode_minus_L" 8484 # Check whether --enable-rpath was given. 8485if test "${enable_rpath+set}" = set; then : 8486 enableval=$enable_rpath; : 8487else 8488 enable_rpath=yes 8489fi 8490 8491 8492 8493 8494 8495 8496 8497 8498 use_additional=yes 8499 8500 acl_save_prefix="$prefix" 8501 prefix="$acl_final_prefix" 8502 acl_save_exec_prefix="$exec_prefix" 8503 exec_prefix="$acl_final_exec_prefix" 8504 8505 eval additional_includedir=\"$includedir\" 8506 eval additional_libdir=\"$libdir\" 8507 8508 exec_prefix="$acl_save_exec_prefix" 8509 prefix="$acl_save_prefix" 8510 8511 8512# Check whether --with-libiconv-prefix was given. 8513if test "${with_libiconv_prefix+set}" = set; then : 8514 withval=$with_libiconv_prefix; 8515 if test "X$withval" = "Xno"; then 8516 use_additional=no 8517 else 8518 if test "X$withval" = "X"; then 8519 8520 acl_save_prefix="$prefix" 8521 prefix="$acl_final_prefix" 8522 acl_save_exec_prefix="$exec_prefix" 8523 exec_prefix="$acl_final_exec_prefix" 8524 8525 eval additional_includedir=\"$includedir\" 8526 eval additional_libdir=\"$libdir\" 8527 8528 exec_prefix="$acl_save_exec_prefix" 8529 prefix="$acl_save_prefix" 8530 8531 else 8532 additional_includedir="$withval/include" 8533 additional_libdir="$withval/lib" 8534 fi 8535 fi 8536 8537fi 8538 8539 8540# Check whether --with-libiconv-type was given. 8541if test "${with_libiconv_type+set}" = set; then : 8542 withval=$with_libiconv_type; with_libiconv_type=$withval 8543else 8544 with_libiconv_type=auto 8545fi 8546 8547 lib_type=`eval echo \$with_libiconv_type` 8548 8549 LIBICONV= 8550 LTLIBICONV= 8551 INCICONV= 8552 rpathdirs= 8553 ltrpathdirs= 8554 names_already_handled= 8555 names_next_round='iconv ' 8556 while test -n "$names_next_round"; do 8557 names_this_round="$names_next_round" 8558 names_next_round= 8559 for name in $names_this_round; do 8560 already_handled= 8561 for n in $names_already_handled; do 8562 if test "$n" = "$name"; then 8563 already_handled=yes 8564 break 8565 fi 8566 done 8567 if test -z "$already_handled"; then 8568 names_already_handled="$names_already_handled $name" 8569 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8570 eval value=\"\$HAVE_LIB$uppername\" 8571 if test -n "$value"; then 8572 if test "$value" = yes; then 8573 eval value=\"\$LIB$uppername\" 8574 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 8575 eval value=\"\$LTLIB$uppername\" 8576 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 8577 else 8578 : 8579 fi 8580 else 8581 found_dir= 8582 found_la= 8583 found_so= 8584 found_a= 8585 if test $use_additional = yes; then 8586 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 8587 found_dir="$additional_libdir" 8588 found_so="$additional_libdir/lib$name.$shlibext" 8589 if test -f "$additional_libdir/lib$name.la"; then 8590 found_la="$additional_libdir/lib$name.la" 8591 fi 8592 elif test x$lib_type != xshared; then 8593 if test -f "$additional_libdir/lib$name.$libext"; then 8594 found_dir="$additional_libdir" 8595 found_a="$additional_libdir/lib$name.$libext" 8596 if test -f "$additional_libdir/lib$name.la"; then 8597 found_la="$additional_libdir/lib$name.la" 8598 fi 8599 fi 8600 fi 8601 fi 8602 if test "X$found_dir" = "X"; then 8603 for x in $LDFLAGS $LTLIBICONV; do 8604 8605 acl_save_prefix="$prefix" 8606 prefix="$acl_final_prefix" 8607 acl_save_exec_prefix="$exec_prefix" 8608 exec_prefix="$acl_final_exec_prefix" 8609 eval x=\"$x\" 8610 exec_prefix="$acl_save_exec_prefix" 8611 prefix="$acl_save_prefix" 8612 8613 case "$x" in 8614 -L*) 8615 dir=`echo "X$x" | sed -e 's/^X-L//'` 8616 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 8617 found_dir="$dir" 8618 found_so="$dir/lib$name.$shlibext" 8619 if test -f "$dir/lib$name.la"; then 8620 found_la="$dir/lib$name.la" 8621 fi 8622 elif test x$lib_type != xshared; then 8623 if test -f "$dir/lib$name.$libext"; then 8624 found_dir="$dir" 8625 found_a="$dir/lib$name.$libext" 8626 if test -f "$dir/lib$name.la"; then 8627 found_la="$dir/lib$name.la" 8628 fi 8629 fi 8630 fi 8631 ;; 8632 esac 8633 if test "X$found_dir" != "X"; then 8634 break 8635 fi 8636 done 8637 fi 8638 if test "X$found_dir" != "X"; then 8639 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 8640 if test "X$found_so" != "X"; then 8641 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8642 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8643 else 8644 haveit= 8645 for x in $ltrpathdirs; do 8646 if test "X$x" = "X$found_dir"; then 8647 haveit=yes 8648 break 8649 fi 8650 done 8651 if test -z "$haveit"; then 8652 ltrpathdirs="$ltrpathdirs $found_dir" 8653 fi 8654 if test "$hardcode_direct" = yes; then 8655 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8656 else 8657 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8659 haveit= 8660 for x in $rpathdirs; do 8661 if test "X$x" = "X$found_dir"; then 8662 haveit=yes 8663 break 8664 fi 8665 done 8666 if test -z "$haveit"; then 8667 rpathdirs="$rpathdirs $found_dir" 8668 fi 8669 else 8670 haveit= 8671 for x in $LDFLAGS $LIBICONV; do 8672 8673 acl_save_prefix="$prefix" 8674 prefix="$acl_final_prefix" 8675 acl_save_exec_prefix="$exec_prefix" 8676 exec_prefix="$acl_final_exec_prefix" 8677 eval x=\"$x\" 8678 exec_prefix="$acl_save_exec_prefix" 8679 prefix="$acl_save_prefix" 8680 8681 if test "X$x" = "X-L$found_dir"; then 8682 haveit=yes 8683 break 8684 fi 8685 done 8686 if test -z "$haveit"; then 8687 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 8688 fi 8689 if test "$hardcode_minus_L" != no; then 8690 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8691 else 8692 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8693 fi 8694 fi 8695 fi 8696 fi 8697 else 8698 if test "X$found_a" != "X"; then 8699 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 8700 else 8701 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 8702 fi 8703 fi 8704 additional_includedir= 8705 case "$found_dir" in 8706 */lib | */lib/) 8707 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 8708 additional_includedir="$basedir/include" 8709 ;; 8710 esac 8711 if test "X$additional_includedir" != "X"; then 8712 if test "X$additional_includedir" != "X/usr/include"; then 8713 haveit= 8714 if test "X$additional_includedir" = "X/usr/local/include"; then 8715 if test -n "$GCC"; then 8716 case $host_os in 8717 linux*) haveit=yes;; 8718 esac 8719 fi 8720 fi 8721 if test -z "$haveit"; then 8722 for x in $CPPFLAGS $INCICONV; do 8723 8724 acl_save_prefix="$prefix" 8725 prefix="$acl_final_prefix" 8726 acl_save_exec_prefix="$exec_prefix" 8727 exec_prefix="$acl_final_exec_prefix" 8728 eval x=\"$x\" 8729 exec_prefix="$acl_save_exec_prefix" 8730 prefix="$acl_save_prefix" 8731 8732 if test "X$x" = "X-I$additional_includedir"; then 8733 haveit=yes 8734 break 8735 fi 8736 done 8737 if test -z "$haveit"; then 8738 if test -d "$additional_includedir"; then 8739 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8740 fi 8741 fi 8742 fi 8743 fi 8744 fi 8745 if test -n "$found_la"; then 8746 save_libdir="$libdir" 8747 case "$found_la" in 8748 */* | *\\*) . "$found_la" ;; 8749 *) . "./$found_la" ;; 8750 esac 8751 libdir="$save_libdir" 8752 for dep in $dependency_libs; do 8753 case "$dep" in 8754 -L*) 8755 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8756 if test "X$additional_libdir" != "X/usr/lib"; then 8757 haveit= 8758 if test "X$additional_libdir" = "X/usr/local/lib"; then 8759 if test -n "$GCC"; then 8760 case $host_os in 8761 linux*) haveit=yes;; 8762 esac 8763 fi 8764 fi 8765 if test -z "$haveit"; then 8766 haveit= 8767 for x in $LDFLAGS $LIBICONV; do 8768 8769 acl_save_prefix="$prefix" 8770 prefix="$acl_final_prefix" 8771 acl_save_exec_prefix="$exec_prefix" 8772 exec_prefix="$acl_final_exec_prefix" 8773 eval x=\"$x\" 8774 exec_prefix="$acl_save_exec_prefix" 8775 prefix="$acl_save_prefix" 8776 8777 if test "X$x" = "X-L$additional_libdir"; then 8778 haveit=yes 8779 break 8780 fi 8781 done 8782 if test -z "$haveit"; then 8783 if test -d "$additional_libdir"; then 8784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8785 fi 8786 fi 8787 haveit= 8788 for x in $LDFLAGS $LTLIBICONV; do 8789 8790 acl_save_prefix="$prefix" 8791 prefix="$acl_final_prefix" 8792 acl_save_exec_prefix="$exec_prefix" 8793 exec_prefix="$acl_final_exec_prefix" 8794 eval x=\"$x\" 8795 exec_prefix="$acl_save_exec_prefix" 8796 prefix="$acl_save_prefix" 8797 8798 if test "X$x" = "X-L$additional_libdir"; then 8799 haveit=yes 8800 break 8801 fi 8802 done 8803 if test -z "$haveit"; then 8804 if test -d "$additional_libdir"; then 8805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8806 fi 8807 fi 8808 fi 8809 fi 8810 ;; 8811 -R*) 8812 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8813 if test "$enable_rpath" != no; then 8814 haveit= 8815 for x in $rpathdirs; do 8816 if test "X$x" = "X$dir"; then 8817 haveit=yes 8818 break 8819 fi 8820 done 8821 if test -z "$haveit"; then 8822 rpathdirs="$rpathdirs $dir" 8823 fi 8824 haveit= 8825 for x in $ltrpathdirs; do 8826 if test "X$x" = "X$dir"; then 8827 haveit=yes 8828 break 8829 fi 8830 done 8831 if test -z "$haveit"; then 8832 ltrpathdirs="$ltrpathdirs $dir" 8833 fi 8834 fi 8835 ;; 8836 -l*) 8837 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8838 ;; 8839 *.la) 8840 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8841 ;; 8842 *) 8843 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8844 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8845 ;; 8846 esac 8847 done 8848 fi 8849 else 8850 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 8851 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8852 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8853 else 8854 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 8855 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 8856 fi 8857 fi 8858 fi 8859 fi 8860 done 8861 done 8862 if test "X$rpathdirs" != "X"; then 8863 if test -n "$hardcode_libdir_separator"; then 8864 alldirs= 8865 for found_dir in $rpathdirs; do 8866 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8867 done 8868 acl_save_libdir="$libdir" 8869 libdir="$alldirs" 8870 eval flag=\"$hardcode_libdir_flag_spec\" 8871 libdir="$acl_save_libdir" 8872 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8873 else 8874 for found_dir in $rpathdirs; do 8875 acl_save_libdir="$libdir" 8876 libdir="$found_dir" 8877 eval flag=\"$hardcode_libdir_flag_spec\" 8878 libdir="$acl_save_libdir" 8879 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8880 done 8881 fi 8882 fi 8883 if test "X$ltrpathdirs" != "X"; then 8884 for found_dir in $ltrpathdirs; do 8885 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8886 done 8887 fi 8888 8889 8890 8891 8892 8893 8894 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 8896$as_echo_n "checking for iconv... " >&6; } 8897if ${am_cv_func_iconv+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899else 8900 8901 am_cv_func_iconv="no, consider installing GNU libiconv" 8902 am_cv_lib_iconv=no 8903 am_save_CPPFLAGS="$CPPFLAGS" 8904 CPPFLAGS="$CPPFLAGS $INCICONV" 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907#include <stdlib.h> 8908#include <iconv.h> 8909int 8910main () 8911{ 8912iconv_t cd = iconv_open("",""); 8913 iconv(cd,NULL,NULL,NULL,NULL); 8914 iconv_close(cd); 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919if ac_fn_c_try_link "$LINENO"; then : 8920 am_cv_func_iconv=yes 8921fi 8922rm -f core conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924 CPPFLAGS="$am_save_CPPFLAGS" 8925 8926 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 8927 for _libs in .libs _libs; do 8928 am_save_CPPFLAGS="$CPPFLAGS" 8929 am_save_LIBS="$LIBS" 8930 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 8931 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934#include <stdlib.h> 8935#include <iconv.h> 8936int 8937main () 8938{ 8939iconv_t cd = iconv_open("",""); 8940 iconv(cd,NULL,NULL,NULL,NULL); 8941 iconv_close(cd); 8942 ; 8943 return 0; 8944} 8945_ACEOF 8946if ac_fn_c_try_link "$LINENO"; then : 8947 INCICONV="-I../libiconv/include" 8948 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 8949 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 8950 am_cv_lib_iconv=yes 8951 am_cv_func_iconv=yes 8952fi 8953rm -f core conftest.err conftest.$ac_objext \ 8954 conftest$ac_exeext conftest.$ac_ext 8955 CPPFLAGS="$am_save_CPPFLAGS" 8956 LIBS="$am_save_LIBS" 8957 if test "$am_cv_func_iconv" = "yes"; then 8958 break 8959 fi 8960 done 8961 fi 8962 8963 if test "$am_cv_func_iconv" != yes; then 8964 am_save_CPPFLAGS="$CPPFLAGS" 8965 am_save_LIBS="$LIBS" 8966 CPPFLAGS="$CPPFLAGS $INCICONV" 8967 LIBS="$LIBS $LIBICONV" 8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8969/* end confdefs.h. */ 8970#include <stdlib.h> 8971#include <iconv.h> 8972int 8973main () 8974{ 8975iconv_t cd = iconv_open("",""); 8976 iconv(cd,NULL,NULL,NULL,NULL); 8977 iconv_close(cd); 8978 ; 8979 return 0; 8980} 8981_ACEOF 8982if ac_fn_c_try_link "$LINENO"; then : 8983 am_cv_lib_iconv=yes 8984 am_cv_func_iconv=yes 8985fi 8986rm -f core conftest.err conftest.$ac_objext \ 8987 conftest$ac_exeext conftest.$ac_ext 8988 CPPFLAGS="$am_save_CPPFLAGS" 8989 LIBS="$am_save_LIBS" 8990 fi 8991 8992fi 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 8994$as_echo "$am_cv_func_iconv" >&6; } 8995 if test "$am_cv_func_iconv" = yes; then 8996 8997$as_echo "#define HAVE_ICONV 1" >>confdefs.h 8998 8999 fi 9000 if test "$am_cv_lib_iconv" = yes; then 9001 9002 for element in $INCICONV; do 9003 haveit= 9004 for x in $CPPFLAGS; do 9005 9006 acl_save_prefix="$prefix" 9007 prefix="$acl_final_prefix" 9008 acl_save_exec_prefix="$exec_prefix" 9009 exec_prefix="$acl_final_exec_prefix" 9010 eval x=\"$x\" 9011 exec_prefix="$acl_save_exec_prefix" 9012 prefix="$acl_save_prefix" 9013 9014 if test "X$x" = "X$element"; then 9015 haveit=yes 9016 break 9017 fi 9018 done 9019 if test -z "$haveit"; then 9020 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9021 fi 9022 done 9023 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 9025$as_echo_n "checking how to link with libiconv... " >&6; } 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 9027$as_echo "$LIBICONV" >&6; } 9028 else 9029 LIBICONV= 9030 LTLIBICONV= 9031 fi 9032 9033 9034 9035 if test "$am_cv_func_iconv" = yes; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 9037$as_echo_n "checking for iconv declaration... " >&6; } 9038 if ${am_cv_proto_iconv+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044 9045#include <stdlib.h> 9046#include <iconv.h> 9047extern 9048#ifdef __cplusplus 9049"C" 9050#endif 9051#if defined(__STDC__) || defined(__cplusplus) 9052size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9053#else 9054size_t iconv(); 9055#endif 9056 9057int 9058main () 9059{ 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065if ac_fn_c_try_compile "$LINENO"; then : 9066 am_cv_proto_iconv_arg1="" 9067else 9068 am_cv_proto_iconv_arg1="const" 9069fi 9070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9071 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 9072fi 9073 9074 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 9076 }$am_cv_proto_iconv" >&5 9077$as_echo "${ac_t:- 9078 }$am_cv_proto_iconv" >&6; } 9079 9080cat >>confdefs.h <<_ACEOF 9081#define ICONV_CONST $am_cv_proto_iconv_arg1 9082_ACEOF 9083 9084 fi 9085 9086 9087# GDB may fork/exec the iconv program to get the list of supported character 9088# sets. Allow the user to specify where to find it. 9089# There are several factors affecting the choice of option name: 9090# - There is already --with-libiconv-prefix but we can't use it, it specifies 9091# the build-time location of libiconv files. 9092# - The program we need to find is iconv, which comes with glibc. The user 9093# doesn't necessarily have libiconv installed. Therefore naming this 9094# --with-libiconv-foo feels wrong. 9095# - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is 9096# defined to work on directories not files (though it really doesn't know 9097# the difference). 9098# - Calling this --with-iconv-prefix is perceived to cause too much confusion 9099# with --with-libiconv-prefix. 9100# Putting these together is why the option name is --with-iconv-bin. 9101 9102 9103# Check whether --with-iconv-bin was given. 9104if test "${with_iconv_bin+set}" = set; then : 9105 withval=$with_iconv_bin; iconv_bin="${withval}" 9106 9107cat >>confdefs.h <<_ACEOF 9108#define ICONV_BIN "${iconv_bin}" 9109_ACEOF 9110 9111 9112 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 9113 if test "x$prefix" = xNONE; then 9114 test_prefix=/usr/local 9115 else 9116 test_prefix=$prefix 9117 fi 9118 else 9119 test_prefix=$exec_prefix 9120 fi 9121 value=0 9122 case ${iconv_bin} in 9123 "${test_prefix}"|"${test_prefix}/"*|\ 9124 '${exec_prefix}'|'${exec_prefix}/'*) 9125 value=1 9126 ;; 9127 esac 9128 9129cat >>confdefs.h <<_ACEOF 9130#define ICONV_BIN_RELOCATABLE $value 9131_ACEOF 9132 9133 9134 9135fi 9136 9137 9138# For the TUI, we need enhanced curses functionality. 9139if test x"$enable_tui" != xno; then 9140 prefer_curses=yes 9141fi 9142 9143curses_found=no 9144if test x"$prefer_curses" = xyes; then 9145 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied 9146 # curses library because the latter might not provide all the 9147 # functionality we need. However, this leads to problems on systems 9148 # where the linker searches /usr/local/lib, but the compiler doesn't 9149 # search /usr/local/include, if ncurses is installed in /usr/local. A 9150 # default installation of ncurses on alpha*-dec-osf* will lead to such 9151 # a situation. 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5 9153$as_echo_n "checking for library containing waddstr... " >&6; } 9154if ${ac_cv_search_waddstr+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 ac_func_search_save_LIBS=$LIBS 9158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9159/* end confdefs.h. */ 9160 9161/* Override any GCC internal prototype to avoid an error. 9162 Use char because int might match the return type of a GCC 9163 builtin and then its argument prototype would still apply. */ 9164#ifdef __cplusplus 9165extern "C" 9166#endif 9167char waddstr (); 9168int 9169main () 9170{ 9171return waddstr (); 9172 ; 9173 return 0; 9174} 9175_ACEOF 9176for ac_lib in '' ncursesw ncurses cursesX curses; do 9177 if test -z "$ac_lib"; then 9178 ac_res="none required" 9179 else 9180 ac_res=-l$ac_lib 9181 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9182 fi 9183 if ac_fn_c_try_link "$LINENO"; then : 9184 ac_cv_search_waddstr=$ac_res 9185fi 9186rm -f core conftest.err conftest.$ac_objext \ 9187 conftest$ac_exeext 9188 if ${ac_cv_search_waddstr+:} false; then : 9189 break 9190fi 9191done 9192if ${ac_cv_search_waddstr+:} false; then : 9193 9194else 9195 ac_cv_search_waddstr=no 9196fi 9197rm conftest.$ac_ext 9198LIBS=$ac_func_search_save_LIBS 9199fi 9200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5 9201$as_echo "$ac_cv_search_waddstr" >&6; } 9202ac_res=$ac_cv_search_waddstr 9203if test "$ac_res" != no; then : 9204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9205 9206fi 9207 9208 9209 if test "$ac_cv_search_waddstr" != no; then 9210 curses_found=yes 9211 fi 9212fi 9213 9214# Check whether we should enable the TUI, but only do so if we really 9215# can. 9216if test x"$enable_tui" != xno; then 9217 if test -d "$srcdir/tui"; then 9218 if test "$curses_found" != no; then 9219 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" 9220 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" 9221 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" 9222 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" 9223 else 9224 if test x"$enable_tui" = xyes; then 9225 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5 9226 else 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5 9228$as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} 9229 fi 9230 fi 9231 fi 9232fi 9233 9234# Since GDB uses Readline, we need termcap functionality. In many 9235# cases this will be provided by the curses library, but some systems 9236# have a separate termcap library, or no curses library at all. 9237 9238case $host_os in 9239 cygwin*) 9240 if test -d "$srcdir/libtermcap"; then 9241 LIBS="../libtermcap/libtermcap.a $LIBS" 9242 ac_cv_search_tgetent="../libtermcap/libtermcap.a" 9243 fi ;; 9244 go32* | *djgpp*) 9245 ac_cv_search_tgetent="none required" 9246 ;; 9247esac 9248 9249# These are the libraries checked by Readline. 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 9251$as_echo_n "checking for library containing tgetent... " >&6; } 9252if ${ac_cv_search_tgetent+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 ac_func_search_save_LIBS=$LIBS 9256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9257/* end confdefs.h. */ 9258 9259/* Override any GCC internal prototype to avoid an error. 9260 Use char because int might match the return type of a GCC 9261 builtin and then its argument prototype would still apply. */ 9262#ifdef __cplusplus 9263extern "C" 9264#endif 9265char tgetent (); 9266int 9267main () 9268{ 9269return tgetent (); 9270 ; 9271 return 0; 9272} 9273_ACEOF 9274for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do 9275 if test -z "$ac_lib"; then 9276 ac_res="none required" 9277 else 9278 ac_res=-l$ac_lib 9279 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9280 fi 9281 if ac_fn_c_try_link "$LINENO"; then : 9282 ac_cv_search_tgetent=$ac_res 9283fi 9284rm -f core conftest.err conftest.$ac_objext \ 9285 conftest$ac_exeext 9286 if ${ac_cv_search_tgetent+:} false; then : 9287 break 9288fi 9289done 9290if ${ac_cv_search_tgetent+:} false; then : 9291 9292else 9293 ac_cv_search_tgetent=no 9294fi 9295rm conftest.$ac_ext 9296LIBS=$ac_func_search_save_LIBS 9297fi 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 9299$as_echo "$ac_cv_search_tgetent" >&6; } 9300ac_res=$ac_cv_search_tgetent 9301if test "$ac_res" != no; then : 9302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9303 9304fi 9305 9306 9307if test "$ac_cv_search_tgetent" = no; then 9308 CONFIG_OBS="$CONFIG_OBS stub-termcap.o" 9309fi 9310 9311 9312# Check whether --with-system-readline was given. 9313if test "${with_system_readline+set}" = set; then : 9314 withval=$with_system_readline; 9315fi 9316 9317 9318if test "$with_system_readline" = yes; then 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5 9320$as_echo_n "checking whether system readline is new enough... " >&6; } 9321if ${gdb_cv_readline_ok+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9325/* end confdefs.h. */ 9326#include <stdio.h> 9327#include <readline/readline.h> 9328int 9329main () 9330{ 9331#if RL_VERSION_MAJOR < 7 9332# error "readline version 7 required" 9333#endif 9334 ; 9335 return 0; 9336} 9337_ACEOF 9338if ac_fn_c_try_compile "$LINENO"; then : 9339 gdb_cv_readline_ok=yes 9340else 9341 gdb_cv_readline_ok=no 9342fi 9343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9344fi 9345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5 9346$as_echo "$gdb_cv_readline_ok" >&6; } 9347 if test "$gdb_cv_readline_ok" != yes; then 9348 as_fn_error $? "system readline is not new enough" "$LINENO" 5 9349 fi 9350 9351 READLINE=-lreadline 9352 READLINE_DEPS= 9353 READLINE_CFLAGS= 9354 READLINE_TEXI_INCFLAG= 9355else 9356 READLINE='$(READLINE_DIR)/libreadline.a' 9357 READLINE_DEPS='$(READLINE)' 9358 READLINE_CFLAGS='-I$(READLINE_SRC)/..' 9359 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)' 9360fi 9361 9362 9363 9364 9365 9366# Generate jit-reader.h 9367 9368# This is typedeffed to GDB_CORE_ADDR in jit-reader.h 9369TARGET_PTR= 9370 9371# The cast to long int works around a bug in the HP C Compiler 9372# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9373# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9374# This bug is HP SR number 8606223364. 9375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 9376$as_echo_n "checking size of unsigned long long... " >&6; } 9377if ${ac_cv_sizeof_unsigned_long_long+:} false; then : 9378 $as_echo_n "(cached) " >&6 9379else 9380 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : 9381 9382else 9383 if test "$ac_cv_type_unsigned_long_long" = yes; then 9384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9386as_fn_error 77 "cannot compute sizeof (unsigned long long) 9387See \`config.log' for more details" "$LINENO" 5; } 9388 else 9389 ac_cv_sizeof_unsigned_long_long=0 9390 fi 9391fi 9392 9393fi 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 9395$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } 9396 9397 9398 9399cat >>confdefs.h <<_ACEOF 9400#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long 9401_ACEOF 9402 9403 9404# The cast to long int works around a bug in the HP C Compiler 9405# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9406# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9407# This bug is HP SR number 8606223364. 9408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 9409$as_echo_n "checking size of unsigned long... " >&6; } 9410if ${ac_cv_sizeof_unsigned_long+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 9414 9415else 9416 if test "$ac_cv_type_unsigned_long" = yes; then 9417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9419as_fn_error 77 "cannot compute sizeof (unsigned long) 9420See \`config.log' for more details" "$LINENO" 5; } 9421 else 9422 ac_cv_sizeof_unsigned_long=0 9423 fi 9424fi 9425 9426fi 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 9428$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 9429 9430 9431 9432cat >>confdefs.h <<_ACEOF 9433#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 9434_ACEOF 9435 9436 9437# The cast to long int works around a bug in the HP C Compiler 9438# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9439# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9440# This bug is HP SR number 8606223364. 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5 9442$as_echo_n "checking size of unsigned __int128... " >&6; } 9443if ${ac_cv_sizeof_unsigned___int128+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then : 9447 9448else 9449 if test "$ac_cv_type_unsigned___int128" = yes; then 9450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9452as_fn_error 77 "cannot compute sizeof (unsigned __int128) 9453See \`config.log' for more details" "$LINENO" 5; } 9454 else 9455 ac_cv_sizeof_unsigned___int128=0 9456 fi 9457fi 9458 9459fi 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5 9461$as_echo "$ac_cv_sizeof_unsigned___int128" >&6; } 9462 9463 9464 9465cat >>confdefs.h <<_ACEOF 9466#define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128 9467_ACEOF 9468 9469 9470 9471if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then 9472 TARGET_PTR="unsigned long" 9473elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then 9474 TARGET_PTR="unsigned long long" 9475elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then 9476 TARGET_PTR="unsigned __int128" 9477else 9478 TARGET_PTR="unsigned long" 9479fi 9480 9481 9482ac_config_files="$ac_config_files jit-reader.h:jit-reader.in" 9483 9484 9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9486$as_echo_n "checking for library containing dlopen... " >&6; } 9487if ${ac_cv_search_dlopen+:} false; then : 9488 $as_echo_n "(cached) " >&6 9489else 9490 ac_func_search_save_LIBS=$LIBS 9491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492/* end confdefs.h. */ 9493 9494/* Override any GCC internal prototype to avoid an error. 9495 Use char because int might match the return type of a GCC 9496 builtin and then its argument prototype would still apply. */ 9497#ifdef __cplusplus 9498extern "C" 9499#endif 9500char dlopen (); 9501int 9502main () 9503{ 9504return dlopen (); 9505 ; 9506 return 0; 9507} 9508_ACEOF 9509for ac_lib in '' dl; do 9510 if test -z "$ac_lib"; then 9511 ac_res="none required" 9512 else 9513 ac_res=-l$ac_lib 9514 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9515 fi 9516 if ac_fn_c_try_link "$LINENO"; then : 9517 ac_cv_search_dlopen=$ac_res 9518fi 9519rm -f core conftest.err conftest.$ac_objext \ 9520 conftest$ac_exeext 9521 if ${ac_cv_search_dlopen+:} false; then : 9522 break 9523fi 9524done 9525if ${ac_cv_search_dlopen+:} false; then : 9526 9527else 9528 ac_cv_search_dlopen=no 9529fi 9530rm conftest.$ac_ext 9531LIBS=$ac_func_search_save_LIBS 9532fi 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9534$as_echo "$ac_cv_search_dlopen" >&6; } 9535ac_res=$ac_cv_search_dlopen 9536if test "$ac_res" != no; then : 9537 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9538 9539fi 9540 9541 9542 9543 9544# Check whether --with-jit-reader-dir was given. 9545if test "${with_jit_reader_dir+set}" = set; then : 9546 withval=$with_jit_reader_dir; 9547 JIT_READER_DIR=$withval 9548else 9549 JIT_READER_DIR=${libdir}/gdb 9550fi 9551 9552 9553 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 9554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9555 ac_define_dir=`eval echo $JIT_READER_DIR` 9556 ac_define_dir=`eval echo $ac_define_dir` 9557 9558cat >>confdefs.h <<_ACEOF 9559#define JIT_READER_DIR "$ac_define_dir" 9560_ACEOF 9561 9562 9563 9564 9565 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 9566 if test "x$prefix" = xNONE; then 9567 test_prefix=/usr/local 9568 else 9569 test_prefix=$prefix 9570 fi 9571 else 9572 test_prefix=$exec_prefix 9573 fi 9574 value=0 9575 case ${ac_define_dir} in 9576 "${test_prefix}"|"${test_prefix}/"*|\ 9577 '${exec_prefix}'|'${exec_prefix}/'*) 9578 value=1 9579 ;; 9580 esac 9581 9582cat >>confdefs.h <<_ACEOF 9583#define JIT_READER_DIR_RELOCATABLE $value 9584_ACEOF 9585 9586 9587 9588 9589 9590# Check whether --with-expat was given. 9591if test "${with_expat+set}" = set; then : 9592 withval=$with_expat; 9593else 9594 with_expat=auto 9595fi 9596 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5 9598$as_echo_n "checking whether to use expat... " >&6; } 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5 9600$as_echo "$with_expat" >&6; } 9601 9602if test "${with_expat}" = no; then 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5 9604$as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} 9605 HAVE_LIBEXPAT=no 9606else 9607 9608 9609 9610 9611 9612 9613 9614 9615 use_additional=yes 9616 9617 acl_save_prefix="$prefix" 9618 prefix="$acl_final_prefix" 9619 acl_save_exec_prefix="$exec_prefix" 9620 exec_prefix="$acl_final_exec_prefix" 9621 9622 eval additional_includedir=\"$includedir\" 9623 eval additional_libdir=\"$libdir\" 9624 9625 exec_prefix="$acl_save_exec_prefix" 9626 prefix="$acl_save_prefix" 9627 9628 9629# Check whether --with-libexpat-prefix was given. 9630if test "${with_libexpat_prefix+set}" = set; then : 9631 withval=$with_libexpat_prefix; 9632 if test "X$withval" = "Xno"; then 9633 use_additional=no 9634 else 9635 if test "X$withval" = "X"; then 9636 9637 acl_save_prefix="$prefix" 9638 prefix="$acl_final_prefix" 9639 acl_save_exec_prefix="$exec_prefix" 9640 exec_prefix="$acl_final_exec_prefix" 9641 9642 eval additional_includedir=\"$includedir\" 9643 eval additional_libdir=\"$libdir\" 9644 9645 exec_prefix="$acl_save_exec_prefix" 9646 prefix="$acl_save_prefix" 9647 9648 else 9649 additional_includedir="$withval/include" 9650 additional_libdir="$withval/lib" 9651 fi 9652 fi 9653 9654fi 9655 9656 9657# Check whether --with-libexpat-type was given. 9658if test "${with_libexpat_type+set}" = set; then : 9659 withval=$with_libexpat_type; with_libexpat_type=$withval 9660else 9661 with_libexpat_type=auto 9662fi 9663 9664 lib_type=`eval echo \$with_libexpat_type` 9665 9666 LIBEXPAT= 9667 LTLIBEXPAT= 9668 INCEXPAT= 9669 rpathdirs= 9670 ltrpathdirs= 9671 names_already_handled= 9672 names_next_round='expat ' 9673 while test -n "$names_next_round"; do 9674 names_this_round="$names_next_round" 9675 names_next_round= 9676 for name in $names_this_round; do 9677 already_handled= 9678 for n in $names_already_handled; do 9679 if test "$n" = "$name"; then 9680 already_handled=yes 9681 break 9682 fi 9683 done 9684 if test -z "$already_handled"; then 9685 names_already_handled="$names_already_handled $name" 9686 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9687 eval value=\"\$HAVE_LIB$uppername\" 9688 if test -n "$value"; then 9689 if test "$value" = yes; then 9690 eval value=\"\$LIB$uppername\" 9691 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" 9692 eval value=\"\$LTLIB$uppername\" 9693 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" 9694 else 9695 : 9696 fi 9697 else 9698 found_dir= 9699 found_la= 9700 found_so= 9701 found_a= 9702 if test $use_additional = yes; then 9703 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 9704 found_dir="$additional_libdir" 9705 found_so="$additional_libdir/lib$name.$shlibext" 9706 if test -f "$additional_libdir/lib$name.la"; then 9707 found_la="$additional_libdir/lib$name.la" 9708 fi 9709 elif test x$lib_type != xshared; then 9710 if test -f "$additional_libdir/lib$name.$libext"; then 9711 found_dir="$additional_libdir" 9712 found_a="$additional_libdir/lib$name.$libext" 9713 if test -f "$additional_libdir/lib$name.la"; then 9714 found_la="$additional_libdir/lib$name.la" 9715 fi 9716 fi 9717 fi 9718 fi 9719 if test "X$found_dir" = "X"; then 9720 for x in $LDFLAGS $LTLIBEXPAT; do 9721 9722 acl_save_prefix="$prefix" 9723 prefix="$acl_final_prefix" 9724 acl_save_exec_prefix="$exec_prefix" 9725 exec_prefix="$acl_final_exec_prefix" 9726 eval x=\"$x\" 9727 exec_prefix="$acl_save_exec_prefix" 9728 prefix="$acl_save_prefix" 9729 9730 case "$x" in 9731 -L*) 9732 dir=`echo "X$x" | sed -e 's/^X-L//'` 9733 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 9734 found_dir="$dir" 9735 found_so="$dir/lib$name.$shlibext" 9736 if test -f "$dir/lib$name.la"; then 9737 found_la="$dir/lib$name.la" 9738 fi 9739 elif test x$lib_type != xshared; then 9740 if test -f "$dir/lib$name.$libext"; then 9741 found_dir="$dir" 9742 found_a="$dir/lib$name.$libext" 9743 if test -f "$dir/lib$name.la"; then 9744 found_la="$dir/lib$name.la" 9745 fi 9746 fi 9747 fi 9748 ;; 9749 esac 9750 if test "X$found_dir" != "X"; then 9751 break 9752 fi 9753 done 9754 fi 9755 if test "X$found_dir" != "X"; then 9756 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" 9757 if test "X$found_so" != "X"; then 9758 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9759 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" 9760 else 9761 haveit= 9762 for x in $ltrpathdirs; do 9763 if test "X$x" = "X$found_dir"; then 9764 haveit=yes 9765 break 9766 fi 9767 done 9768 if test -z "$haveit"; then 9769 ltrpathdirs="$ltrpathdirs $found_dir" 9770 fi 9771 if test "$hardcode_direct" = yes; then 9772 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" 9773 else 9774 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 9775 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" 9776 haveit= 9777 for x in $rpathdirs; do 9778 if test "X$x" = "X$found_dir"; then 9779 haveit=yes 9780 break 9781 fi 9782 done 9783 if test -z "$haveit"; then 9784 rpathdirs="$rpathdirs $found_dir" 9785 fi 9786 else 9787 haveit= 9788 for x in $LDFLAGS $LIBEXPAT; do 9789 9790 acl_save_prefix="$prefix" 9791 prefix="$acl_final_prefix" 9792 acl_save_exec_prefix="$exec_prefix" 9793 exec_prefix="$acl_final_exec_prefix" 9794 eval x=\"$x\" 9795 exec_prefix="$acl_save_exec_prefix" 9796 prefix="$acl_save_prefix" 9797 9798 if test "X$x" = "X-L$found_dir"; then 9799 haveit=yes 9800 break 9801 fi 9802 done 9803 if test -z "$haveit"; then 9804 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" 9805 fi 9806 if test "$hardcode_minus_L" != no; then 9807 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" 9808 else 9809 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" 9810 fi 9811 fi 9812 fi 9813 fi 9814 else 9815 if test "X$found_a" != "X"; then 9816 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" 9817 else 9818 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" 9819 fi 9820 fi 9821 additional_includedir= 9822 case "$found_dir" in 9823 */lib | */lib/) 9824 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9825 additional_includedir="$basedir/include" 9826 ;; 9827 esac 9828 if test "X$additional_includedir" != "X"; then 9829 if test "X$additional_includedir" != "X/usr/include"; then 9830 haveit= 9831 if test "X$additional_includedir" = "X/usr/local/include"; then 9832 if test -n "$GCC"; then 9833 case $host_os in 9834 linux*) haveit=yes;; 9835 esac 9836 fi 9837 fi 9838 if test -z "$haveit"; then 9839 for x in $CPPFLAGS $INCEXPAT; do 9840 9841 acl_save_prefix="$prefix" 9842 prefix="$acl_final_prefix" 9843 acl_save_exec_prefix="$exec_prefix" 9844 exec_prefix="$acl_final_exec_prefix" 9845 eval x=\"$x\" 9846 exec_prefix="$acl_save_exec_prefix" 9847 prefix="$acl_save_prefix" 9848 9849 if test "X$x" = "X-I$additional_includedir"; then 9850 haveit=yes 9851 break 9852 fi 9853 done 9854 if test -z "$haveit"; then 9855 if test -d "$additional_includedir"; then 9856 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" 9857 fi 9858 fi 9859 fi 9860 fi 9861 fi 9862 if test -n "$found_la"; then 9863 save_libdir="$libdir" 9864 case "$found_la" in 9865 */* | *\\*) . "$found_la" ;; 9866 *) . "./$found_la" ;; 9867 esac 9868 libdir="$save_libdir" 9869 for dep in $dependency_libs; do 9870 case "$dep" in 9871 -L*) 9872 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9873 if test "X$additional_libdir" != "X/usr/lib"; then 9874 haveit= 9875 if test "X$additional_libdir" = "X/usr/local/lib"; then 9876 if test -n "$GCC"; then 9877 case $host_os in 9878 linux*) haveit=yes;; 9879 esac 9880 fi 9881 fi 9882 if test -z "$haveit"; then 9883 haveit= 9884 for x in $LDFLAGS $LIBEXPAT; do 9885 9886 acl_save_prefix="$prefix" 9887 prefix="$acl_final_prefix" 9888 acl_save_exec_prefix="$exec_prefix" 9889 exec_prefix="$acl_final_exec_prefix" 9890 eval x=\"$x\" 9891 exec_prefix="$acl_save_exec_prefix" 9892 prefix="$acl_save_prefix" 9893 9894 if test "X$x" = "X-L$additional_libdir"; then 9895 haveit=yes 9896 break 9897 fi 9898 done 9899 if test -z "$haveit"; then 9900 if test -d "$additional_libdir"; then 9901 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" 9902 fi 9903 fi 9904 haveit= 9905 for x in $LDFLAGS $LTLIBEXPAT; do 9906 9907 acl_save_prefix="$prefix" 9908 prefix="$acl_final_prefix" 9909 acl_save_exec_prefix="$exec_prefix" 9910 exec_prefix="$acl_final_exec_prefix" 9911 eval x=\"$x\" 9912 exec_prefix="$acl_save_exec_prefix" 9913 prefix="$acl_save_prefix" 9914 9915 if test "X$x" = "X-L$additional_libdir"; then 9916 haveit=yes 9917 break 9918 fi 9919 done 9920 if test -z "$haveit"; then 9921 if test -d "$additional_libdir"; then 9922 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" 9923 fi 9924 fi 9925 fi 9926 fi 9927 ;; 9928 -R*) 9929 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9930 if test "$enable_rpath" != no; then 9931 haveit= 9932 for x in $rpathdirs; do 9933 if test "X$x" = "X$dir"; then 9934 haveit=yes 9935 break 9936 fi 9937 done 9938 if test -z "$haveit"; then 9939 rpathdirs="$rpathdirs $dir" 9940 fi 9941 haveit= 9942 for x in $ltrpathdirs; do 9943 if test "X$x" = "X$dir"; then 9944 haveit=yes 9945 break 9946 fi 9947 done 9948 if test -z "$haveit"; then 9949 ltrpathdirs="$ltrpathdirs $dir" 9950 fi 9951 fi 9952 ;; 9953 -l*) 9954 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9955 ;; 9956 *.la) 9957 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9958 ;; 9959 *) 9960 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" 9961 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" 9962 ;; 9963 esac 9964 done 9965 fi 9966 else 9967 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 9968 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" 9969 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" 9970 else 9971 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext" 9972 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext" 9973 fi 9974 fi 9975 fi 9976 fi 9977 done 9978 done 9979 if test "X$rpathdirs" != "X"; then 9980 if test -n "$hardcode_libdir_separator"; then 9981 alldirs= 9982 for found_dir in $rpathdirs; do 9983 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9984 done 9985 acl_save_libdir="$libdir" 9986 libdir="$alldirs" 9987 eval flag=\"$hardcode_libdir_flag_spec\" 9988 libdir="$acl_save_libdir" 9989 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" 9990 else 9991 for found_dir in $rpathdirs; do 9992 acl_save_libdir="$libdir" 9993 libdir="$found_dir" 9994 eval flag=\"$hardcode_libdir_flag_spec\" 9995 libdir="$acl_save_libdir" 9996 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" 9997 done 9998 fi 9999 fi 10000 if test "X$ltrpathdirs" != "X"; then 10001 for found_dir in $ltrpathdirs; do 10002 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" 10003 done 10004 fi 10005 10006 10007 ac_save_CPPFLAGS="$CPPFLAGS" 10008 10009 for element in $INCEXPAT; do 10010 haveit= 10011 for x in $CPPFLAGS; do 10012 10013 acl_save_prefix="$prefix" 10014 prefix="$acl_final_prefix" 10015 acl_save_exec_prefix="$exec_prefix" 10016 exec_prefix="$acl_final_exec_prefix" 10017 eval x=\"$x\" 10018 exec_prefix="$acl_save_exec_prefix" 10019 prefix="$acl_save_prefix" 10020 10021 if test "X$x" = "X$element"; then 10022 haveit=yes 10023 break 10024 fi 10025 done 10026 if test -z "$haveit"; then 10027 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10028 fi 10029 done 10030 10031 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5 10033$as_echo_n "checking for libexpat... " >&6; } 10034if ${ac_cv_libexpat+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 10038 ac_save_LIBS="$LIBS" 10039 LIBS="$LIBS $LIBEXPAT" 10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10041/* end confdefs.h. */ 10042#include "expat.h" 10043int 10044main () 10045{ 10046XML_Parser p = XML_ParserCreate (0); 10047 ; 10048 return 0; 10049} 10050_ACEOF 10051if ac_fn_c_try_link "$LINENO"; then : 10052 ac_cv_libexpat=yes 10053else 10054 ac_cv_libexpat=no 10055fi 10056rm -f core conftest.err conftest.$ac_objext \ 10057 conftest$ac_exeext conftest.$ac_ext 10058 LIBS="$ac_save_LIBS" 10059 10060fi 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5 10062$as_echo "$ac_cv_libexpat" >&6; } 10063 if test "$ac_cv_libexpat" = yes; then 10064 HAVE_LIBEXPAT=yes 10065 10066$as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h 10067 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5 10069$as_echo_n "checking how to link with libexpat... " >&6; } 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5 10071$as_echo "$LIBEXPAT" >&6; } 10072 else 10073 HAVE_LIBEXPAT=no 10074 CPPFLAGS="$ac_save_CPPFLAGS" 10075 LIBEXPAT= 10076 LTLIBEXPAT= 10077 fi 10078 10079 10080 10081 10082 10083 10084 if test "$HAVE_LIBEXPAT" != yes; then 10085 if test "$with_expat" = yes; then 10086 as_fn_error $? "expat is missing or unusable" "$LINENO" 5 10087 else 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5 10089$as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} 10090 fi 10091 else 10092 save_LIBS=$LIBS 10093 LIBS="$LIBS $LIBEXPAT" 10094 for ac_func in XML_StopParser 10095do : 10096 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser" 10097if test "x$ac_cv_func_XML_StopParser" = xyes; then : 10098 cat >>confdefs.h <<_ACEOF 10099#define HAVE_XML_STOPPARSER 1 10100_ACEOF 10101 10102fi 10103done 10104 10105 LIBS=$save_LIBS 10106 fi 10107fi 10108 10109 10110# Check whether --with-mpfr was given. 10111if test "${with_mpfr+set}" = set; then : 10112 withval=$with_mpfr; 10113else 10114 with_mpfr=auto 10115fi 10116 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5 10118$as_echo_n "checking whether to use MPFR... " >&6; } 10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5 10120$as_echo "$with_mpfr" >&6; } 10121 10122if test "${with_mpfr}" = no; then 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5 10124$as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;} 10125 HAVE_LIBMPFR=no 10126else 10127 10128 10129 10130 10131 10132 10133 10134 10135 use_additional=yes 10136 10137 acl_save_prefix="$prefix" 10138 prefix="$acl_final_prefix" 10139 acl_save_exec_prefix="$exec_prefix" 10140 exec_prefix="$acl_final_exec_prefix" 10141 10142 eval additional_includedir=\"$includedir\" 10143 eval additional_libdir=\"$libdir\" 10144 10145 exec_prefix="$acl_save_exec_prefix" 10146 prefix="$acl_save_prefix" 10147 10148 10149# Check whether --with-libmpfr-prefix was given. 10150if test "${with_libmpfr_prefix+set}" = set; then : 10151 withval=$with_libmpfr_prefix; 10152 if test "X$withval" = "Xno"; then 10153 use_additional=no 10154 else 10155 if test "X$withval" = "X"; then 10156 10157 acl_save_prefix="$prefix" 10158 prefix="$acl_final_prefix" 10159 acl_save_exec_prefix="$exec_prefix" 10160 exec_prefix="$acl_final_exec_prefix" 10161 10162 eval additional_includedir=\"$includedir\" 10163 eval additional_libdir=\"$libdir\" 10164 10165 exec_prefix="$acl_save_exec_prefix" 10166 prefix="$acl_save_prefix" 10167 10168 else 10169 additional_includedir="$withval/include" 10170 additional_libdir="$withval/lib" 10171 fi 10172 fi 10173 10174fi 10175 10176 10177# Check whether --with-libmpfr-type was given. 10178if test "${with_libmpfr_type+set}" = set; then : 10179 withval=$with_libmpfr_type; with_libmpfr_type=$withval 10180else 10181 with_libmpfr_type=auto 10182fi 10183 10184 lib_type=`eval echo \$with_libmpfr_type` 10185 10186 LIBMPFR= 10187 LTLIBMPFR= 10188 INCMPFR= 10189 rpathdirs= 10190 ltrpathdirs= 10191 names_already_handled= 10192 names_next_round='mpfr gmp' 10193 while test -n "$names_next_round"; do 10194 names_this_round="$names_next_round" 10195 names_next_round= 10196 for name in $names_this_round; do 10197 already_handled= 10198 for n in $names_already_handled; do 10199 if test "$n" = "$name"; then 10200 already_handled=yes 10201 break 10202 fi 10203 done 10204 if test -z "$already_handled"; then 10205 names_already_handled="$names_already_handled $name" 10206 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10207 eval value=\"\$HAVE_LIB$uppername\" 10208 if test -n "$value"; then 10209 if test "$value" = yes; then 10210 eval value=\"\$LIB$uppername\" 10211 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value" 10212 eval value=\"\$LTLIB$uppername\" 10213 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value" 10214 else 10215 : 10216 fi 10217 else 10218 found_dir= 10219 found_la= 10220 found_so= 10221 found_a= 10222 if test $use_additional = yes; then 10223 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 10224 found_dir="$additional_libdir" 10225 found_so="$additional_libdir/lib$name.$shlibext" 10226 if test -f "$additional_libdir/lib$name.la"; then 10227 found_la="$additional_libdir/lib$name.la" 10228 fi 10229 elif test x$lib_type != xshared; then 10230 if test -f "$additional_libdir/lib$name.$libext"; then 10231 found_dir="$additional_libdir" 10232 found_a="$additional_libdir/lib$name.$libext" 10233 if test -f "$additional_libdir/lib$name.la"; then 10234 found_la="$additional_libdir/lib$name.la" 10235 fi 10236 fi 10237 fi 10238 fi 10239 if test "X$found_dir" = "X"; then 10240 for x in $LDFLAGS $LTLIBMPFR; do 10241 10242 acl_save_prefix="$prefix" 10243 prefix="$acl_final_prefix" 10244 acl_save_exec_prefix="$exec_prefix" 10245 exec_prefix="$acl_final_exec_prefix" 10246 eval x=\"$x\" 10247 exec_prefix="$acl_save_exec_prefix" 10248 prefix="$acl_save_prefix" 10249 10250 case "$x" in 10251 -L*) 10252 dir=`echo "X$x" | sed -e 's/^X-L//'` 10253 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 10254 found_dir="$dir" 10255 found_so="$dir/lib$name.$shlibext" 10256 if test -f "$dir/lib$name.la"; then 10257 found_la="$dir/lib$name.la" 10258 fi 10259 elif test x$lib_type != xshared; then 10260 if test -f "$dir/lib$name.$libext"; then 10261 found_dir="$dir" 10262 found_a="$dir/lib$name.$libext" 10263 if test -f "$dir/lib$name.la"; then 10264 found_la="$dir/lib$name.la" 10265 fi 10266 fi 10267 fi 10268 ;; 10269 esac 10270 if test "X$found_dir" != "X"; then 10271 break 10272 fi 10273 done 10274 fi 10275 if test "X$found_dir" != "X"; then 10276 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name" 10277 if test "X$found_so" != "X"; then 10278 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10279 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so" 10280 else 10281 haveit= 10282 for x in $ltrpathdirs; do 10283 if test "X$x" = "X$found_dir"; then 10284 haveit=yes 10285 break 10286 fi 10287 done 10288 if test -z "$haveit"; then 10289 ltrpathdirs="$ltrpathdirs $found_dir" 10290 fi 10291 if test "$hardcode_direct" = yes; then 10292 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so" 10293 else 10294 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10295 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so" 10296 haveit= 10297 for x in $rpathdirs; do 10298 if test "X$x" = "X$found_dir"; then 10299 haveit=yes 10300 break 10301 fi 10302 done 10303 if test -z "$haveit"; then 10304 rpathdirs="$rpathdirs $found_dir" 10305 fi 10306 else 10307 haveit= 10308 for x in $LDFLAGS $LIBMPFR; do 10309 10310 acl_save_prefix="$prefix" 10311 prefix="$acl_final_prefix" 10312 acl_save_exec_prefix="$exec_prefix" 10313 exec_prefix="$acl_final_exec_prefix" 10314 eval x=\"$x\" 10315 exec_prefix="$acl_save_exec_prefix" 10316 prefix="$acl_save_prefix" 10317 10318 if test "X$x" = "X-L$found_dir"; then 10319 haveit=yes 10320 break 10321 fi 10322 done 10323 if test -z "$haveit"; then 10324 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir" 10325 fi 10326 if test "$hardcode_minus_L" != no; then 10327 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so" 10328 else 10329 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name" 10330 fi 10331 fi 10332 fi 10333 fi 10334 else 10335 if test "X$found_a" != "X"; then 10336 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a" 10337 else 10338 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name" 10339 fi 10340 fi 10341 additional_includedir= 10342 case "$found_dir" in 10343 */lib | */lib/) 10344 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10345 additional_includedir="$basedir/include" 10346 ;; 10347 esac 10348 if test "X$additional_includedir" != "X"; then 10349 if test "X$additional_includedir" != "X/usr/include"; then 10350 haveit= 10351 if test "X$additional_includedir" = "X/usr/local/include"; then 10352 if test -n "$GCC"; then 10353 case $host_os in 10354 linux*) haveit=yes;; 10355 esac 10356 fi 10357 fi 10358 if test -z "$haveit"; then 10359 for x in $CPPFLAGS $INCMPFR; do 10360 10361 acl_save_prefix="$prefix" 10362 prefix="$acl_final_prefix" 10363 acl_save_exec_prefix="$exec_prefix" 10364 exec_prefix="$acl_final_exec_prefix" 10365 eval x=\"$x\" 10366 exec_prefix="$acl_save_exec_prefix" 10367 prefix="$acl_save_prefix" 10368 10369 if test "X$x" = "X-I$additional_includedir"; then 10370 haveit=yes 10371 break 10372 fi 10373 done 10374 if test -z "$haveit"; then 10375 if test -d "$additional_includedir"; then 10376 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir" 10377 fi 10378 fi 10379 fi 10380 fi 10381 fi 10382 if test -n "$found_la"; then 10383 save_libdir="$libdir" 10384 case "$found_la" in 10385 */* | *\\*) . "$found_la" ;; 10386 *) . "./$found_la" ;; 10387 esac 10388 libdir="$save_libdir" 10389 for dep in $dependency_libs; do 10390 case "$dep" in 10391 -L*) 10392 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10393 if test "X$additional_libdir" != "X/usr/lib"; then 10394 haveit= 10395 if test "X$additional_libdir" = "X/usr/local/lib"; then 10396 if test -n "$GCC"; then 10397 case $host_os in 10398 linux*) haveit=yes;; 10399 esac 10400 fi 10401 fi 10402 if test -z "$haveit"; then 10403 haveit= 10404 for x in $LDFLAGS $LIBMPFR; do 10405 10406 acl_save_prefix="$prefix" 10407 prefix="$acl_final_prefix" 10408 acl_save_exec_prefix="$exec_prefix" 10409 exec_prefix="$acl_final_exec_prefix" 10410 eval x=\"$x\" 10411 exec_prefix="$acl_save_exec_prefix" 10412 prefix="$acl_save_prefix" 10413 10414 if test "X$x" = "X-L$additional_libdir"; then 10415 haveit=yes 10416 break 10417 fi 10418 done 10419 if test -z "$haveit"; then 10420 if test -d "$additional_libdir"; then 10421 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir" 10422 fi 10423 fi 10424 haveit= 10425 for x in $LDFLAGS $LTLIBMPFR; do 10426 10427 acl_save_prefix="$prefix" 10428 prefix="$acl_final_prefix" 10429 acl_save_exec_prefix="$exec_prefix" 10430 exec_prefix="$acl_final_exec_prefix" 10431 eval x=\"$x\" 10432 exec_prefix="$acl_save_exec_prefix" 10433 prefix="$acl_save_prefix" 10434 10435 if test "X$x" = "X-L$additional_libdir"; then 10436 haveit=yes 10437 break 10438 fi 10439 done 10440 if test -z "$haveit"; then 10441 if test -d "$additional_libdir"; then 10442 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir" 10443 fi 10444 fi 10445 fi 10446 fi 10447 ;; 10448 -R*) 10449 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10450 if test "$enable_rpath" != no; then 10451 haveit= 10452 for x in $rpathdirs; do 10453 if test "X$x" = "X$dir"; then 10454 haveit=yes 10455 break 10456 fi 10457 done 10458 if test -z "$haveit"; then 10459 rpathdirs="$rpathdirs $dir" 10460 fi 10461 haveit= 10462 for x in $ltrpathdirs; do 10463 if test "X$x" = "X$dir"; then 10464 haveit=yes 10465 break 10466 fi 10467 done 10468 if test -z "$haveit"; then 10469 ltrpathdirs="$ltrpathdirs $dir" 10470 fi 10471 fi 10472 ;; 10473 -l*) 10474 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10475 ;; 10476 *.la) 10477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10478 ;; 10479 *) 10480 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep" 10481 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep" 10482 ;; 10483 esac 10484 done 10485 fi 10486 else 10487 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 10488 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name" 10489 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name" 10490 else 10491 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext" 10492 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext" 10493 fi 10494 fi 10495 fi 10496 fi 10497 done 10498 done 10499 if test "X$rpathdirs" != "X"; then 10500 if test -n "$hardcode_libdir_separator"; then 10501 alldirs= 10502 for found_dir in $rpathdirs; do 10503 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10504 done 10505 acl_save_libdir="$libdir" 10506 libdir="$alldirs" 10507 eval flag=\"$hardcode_libdir_flag_spec\" 10508 libdir="$acl_save_libdir" 10509 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag" 10510 else 10511 for found_dir in $rpathdirs; do 10512 acl_save_libdir="$libdir" 10513 libdir="$found_dir" 10514 eval flag=\"$hardcode_libdir_flag_spec\" 10515 libdir="$acl_save_libdir" 10516 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag" 10517 done 10518 fi 10519 fi 10520 if test "X$ltrpathdirs" != "X"; then 10521 for found_dir in $ltrpathdirs; do 10522 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir" 10523 done 10524 fi 10525 10526 10527 ac_save_CPPFLAGS="$CPPFLAGS" 10528 10529 for element in $INCMPFR; do 10530 haveit= 10531 for x in $CPPFLAGS; do 10532 10533 acl_save_prefix="$prefix" 10534 prefix="$acl_final_prefix" 10535 acl_save_exec_prefix="$exec_prefix" 10536 exec_prefix="$acl_final_exec_prefix" 10537 eval x=\"$x\" 10538 exec_prefix="$acl_save_exec_prefix" 10539 prefix="$acl_save_prefix" 10540 10541 if test "X$x" = "X$element"; then 10542 haveit=yes 10543 break 10544 fi 10545 done 10546 if test -z "$haveit"; then 10547 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10548 fi 10549 done 10550 10551 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5 10553$as_echo_n "checking for libmpfr... " >&6; } 10554if ${ac_cv_libmpfr+:} false; then : 10555 $as_echo_n "(cached) " >&6 10556else 10557 10558 ac_save_LIBS="$LIBS" 10559 LIBS="$LIBS $LIBMPFR" 10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10561/* end confdefs.h. */ 10562#include <mpfr.h> 10563int 10564main () 10565{ 10566mpfr_exp_t exp; mpfr_t x; 10567 mpfr_frexp (&exp, x, x, MPFR_RNDN); 10568 ; 10569 return 0; 10570} 10571_ACEOF 10572if ac_fn_c_try_link "$LINENO"; then : 10573 ac_cv_libmpfr=yes 10574else 10575 ac_cv_libmpfr=no 10576fi 10577rm -f core conftest.err conftest.$ac_objext \ 10578 conftest$ac_exeext conftest.$ac_ext 10579 LIBS="$ac_save_LIBS" 10580 10581fi 10582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5 10583$as_echo "$ac_cv_libmpfr" >&6; } 10584 if test "$ac_cv_libmpfr" = yes; then 10585 HAVE_LIBMPFR=yes 10586 10587$as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h 10588 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5 10590$as_echo_n "checking how to link with libmpfr... " >&6; } 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5 10592$as_echo "$LIBMPFR" >&6; } 10593 else 10594 HAVE_LIBMPFR=no 10595 CPPFLAGS="$ac_save_CPPFLAGS" 10596 LIBMPFR= 10597 LTLIBMPFR= 10598 fi 10599 10600 10601 10602 10603 10604 10605 if test "$HAVE_LIBMPFR" != yes; then 10606 if test "$with_mpfr" = yes; then 10607 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5 10608 else 10609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5 10610$as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;} 10611 fi 10612 fi 10613fi 10614 10615# --------------------- # 10616# Check for libpython. # 10617# --------------------- # 10618 10619 10620 10621 10622 10623 10624# Check whether --with-python was given. 10625if test "${with_python+set}" = set; then : 10626 withval=$with_python; 10627else 10628 with_python=auto 10629fi 10630 10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5 10632$as_echo_n "checking whether to use python... " >&6; } 10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5 10634$as_echo "$with_python" >&6; } 10635 10636if test "${with_python}" = no; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5 10638$as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;} 10639 have_libpython=no 10640else 10641 case "${with_python}" in 10642 [\\/]* | ?:[\\/]*) 10643 if test -d "${with_python}"; then 10644 # Assume the python binary is ${with_python}/bin/python. 10645 python_prog="${with_python}/bin/python" 10646 python_prefix= 10647 # If python does not exit ${with_python}/bin, then try in 10648 # ${with_python}. On Windows/MinGW, this is where the Python 10649 # executable is. 10650 if test ! -x "${python_prog}"; then 10651 python_prog="${with_python}/python" 10652 python_prefix= 10653 fi 10654 if test ! -x "${python_prog}"; then 10655 # Fall back to gdb 7.0/7.1 behaviour. 10656 python_prog=missing 10657 python_prefix=${with_python} 10658 fi 10659 elif test -x "${with_python}"; then 10660 # While we can't run python compiled for $host (unless host == build), 10661 # the user could write a script that provides the needed information, 10662 # so we support that. 10663 python_prog=${with_python} 10664 python_prefix= 10665 else 10666 as_fn_error $? "invalid value for --with-python" "$LINENO" 5 10667 fi 10668 ;; 10669 */*) 10670 # Disallow --with-python=foo/bar. 10671 as_fn_error $? "invalid value for --with-python" "$LINENO" 5 10672 ;; 10673 *) 10674 # The user has either specified auto, yes, or the name of the python 10675 # program assumed to be in $PATH. 10676 python_prefix= 10677 case "${with_python}" in 10678 yes | auto) 10679 if test "${build}" = "${host}"; then 10680 # Extract the first word of "python", so it can be a program name with args. 10681set dummy python; ac_word=$2 10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10683$as_echo_n "checking for $ac_word... " >&6; } 10684if ${ac_cv_path_python_prog_path+:} false; then : 10685 $as_echo_n "(cached) " >&6 10686else 10687 case $python_prog_path in 10688 [\\/]* | ?:[\\/]*) 10689 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path. 10690 ;; 10691 *) 10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10693for as_dir in $PATH 10694do 10695 IFS=$as_save_IFS 10696 test -z "$as_dir" && as_dir=. 10697 for ac_exec_ext in '' $ac_executable_extensions; do 10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10699 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext" 10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10701 break 2 10702 fi 10703done 10704 done 10705IFS=$as_save_IFS 10706 10707 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing" 10708 ;; 10709esac 10710fi 10711python_prog_path=$ac_cv_path_python_prog_path 10712if test -n "$python_prog_path"; then 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5 10714$as_echo "$python_prog_path" >&6; } 10715else 10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10717$as_echo "no" >&6; } 10718fi 10719 10720 10721 if test "${python_prog_path}" = missing; then 10722 python_prog=missing 10723 else 10724 python_prog=${python_prog_path} 10725 fi 10726 else 10727 # Not much we can do except assume the cross-compiler will find the 10728 # right files. 10729 python_prog=missing 10730 fi 10731 ;; 10732 *) 10733 # While we can't run python compiled for $host (unless host == build), 10734 # the user could write a script that provides the needed information, 10735 # so we support that. 10736 python_prog="${with_python}" 10737 # Extract the first word of "${python_prog}", so it can be a program name with args. 10738set dummy ${python_prog}; ac_word=$2 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10740$as_echo_n "checking for $ac_word... " >&6; } 10741if ${ac_cv_path_python_prog_path+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 case $python_prog_path in 10745 [\\/]* | ?:[\\/]*) 10746 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path. 10747 ;; 10748 *) 10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10750for as_dir in $PATH 10751do 10752 IFS=$as_save_IFS 10753 test -z "$as_dir" && as_dir=. 10754 for ac_exec_ext in '' $ac_executable_extensions; do 10755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10756 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext" 10757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10758 break 2 10759 fi 10760done 10761 done 10762IFS=$as_save_IFS 10763 10764 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing" 10765 ;; 10766esac 10767fi 10768python_prog_path=$ac_cv_path_python_prog_path 10769if test -n "$python_prog_path"; then 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5 10771$as_echo "$python_prog_path" >&6; } 10772else 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10774$as_echo "no" >&6; } 10775fi 10776 10777 10778 if test "${python_prog_path}" = missing; then 10779 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5 10780 fi 10781 ;; 10782 esac 10783 esac 10784 10785 if test "${python_prog}" != missing; then 10786 # We have a python program to use, but it may be too old. 10787 # Don't flag an error for --with-python=auto (the default). 10788 have_python_config=yes 10789 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes` 10790 if test $? != 0; then 10791 have_python_config=failed 10792 if test "${with_python}" != auto; then 10793 as_fn_error $? "failure running python-config --includes" "$LINENO" 5 10794 fi 10795 fi 10796 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags` 10797 if test $? != 0; then 10798 have_python_config=failed 10799 if test "${with_python}" != auto; then 10800 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5 10801 fi 10802 fi 10803 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix` 10804 if test $? != 0; then 10805 have_python_config=failed 10806 if test "${with_python}" != auto; then 10807 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5 10808 fi 10809 fi 10810 else 10811 # We do not have a python executable we can use to determine where 10812 # to find the Python headers and libs. We cannot guess the include 10813 # path from the python_prefix either, because that include path 10814 # depends on the Python version. So, there is nothing much we can 10815 # do except assume that the compiler will be able to find those files. 10816 python_includes= 10817 python_libs= 10818 have_python_config=no 10819 fi 10820 10821 # If we have python-config, only try the configuration it provides. 10822 # Otherwise fallback on the old way of trying different versions of 10823 # python in turn. 10824 10825 have_libpython=no 10826 if test "${have_python_config}" = yes; then 10827 10828 10829 new_CPPFLAGS=${python_includes} 10830 new_LIBS=${python_libs} 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5 10832$as_echo_n "checking for python... " >&6; } 10833 save_CPPFLAGS=$CPPFLAGS 10834 save_LIBS=$LIBS 10835 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 10836 LIBS="$new_LIBS $LIBS" 10837 found_usable_python=no 10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10839/* end confdefs.h. */ 10840#include "Python.h" 10841int 10842main () 10843{ 10844Py_Initialize (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849if ac_fn_c_try_link "$LINENO"; then : 10850 have_libpython=yes 10851 found_usable_python=yes 10852 PYTHON_CPPFLAGS=$new_CPPFLAGS 10853 PYTHON_LIBS=$new_LIBS 10854fi 10855rm -f core conftest.err conftest.$ac_objext \ 10856 conftest$ac_exeext conftest.$ac_ext 10857 CPPFLAGS=$save_CPPFLAGS 10858 LIBS=$save_LIBS 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 10860$as_echo "${found_usable_python}" >&6; } 10861 10862 elif test "${have_python_config}" != failed; then 10863 if test "${have_libpython}" = no; then 10864 10865 10866 new_CPPFLAGS=${python_includes} 10867 new_LIBS="-lpython2.7 ${python_libs}" 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5 10869$as_echo_n "checking for python... " >&6; } 10870 save_CPPFLAGS=$CPPFLAGS 10871 save_LIBS=$LIBS 10872 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 10873 LIBS="$new_LIBS $LIBS" 10874 found_usable_python=no 10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10876/* end confdefs.h. */ 10877#include "Python.h" 10878int 10879main () 10880{ 10881Py_Initialize (); 10882 ; 10883 return 0; 10884} 10885_ACEOF 10886if ac_fn_c_try_link "$LINENO"; then : 10887 have_libpython=yes 10888 found_usable_python=yes 10889 PYTHON_CPPFLAGS=$new_CPPFLAGS 10890 PYTHON_LIBS=$new_LIBS 10891fi 10892rm -f core conftest.err conftest.$ac_objext \ 10893 conftest$ac_exeext conftest.$ac_ext 10894 CPPFLAGS=$save_CPPFLAGS 10895 LIBS=$save_LIBS 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 10897$as_echo "${found_usable_python}" >&6; } 10898 10899 fi 10900 if test "${have_libpython}" = no; then 10901 10902 10903 new_CPPFLAGS=${python_includes} 10904 new_LIBS="-lpython2.6 ${python_libs}" 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5 10906$as_echo_n "checking for python... " >&6; } 10907 save_CPPFLAGS=$CPPFLAGS 10908 save_LIBS=$LIBS 10909 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 10910 LIBS="$new_LIBS $LIBS" 10911 found_usable_python=no 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914#include "Python.h" 10915int 10916main () 10917{ 10918Py_Initialize (); 10919 ; 10920 return 0; 10921} 10922_ACEOF 10923if ac_fn_c_try_link "$LINENO"; then : 10924 have_libpython=yes 10925 found_usable_python=yes 10926 PYTHON_CPPFLAGS=$new_CPPFLAGS 10927 PYTHON_LIBS=$new_LIBS 10928fi 10929rm -f core conftest.err conftest.$ac_objext \ 10930 conftest$ac_exeext conftest.$ac_ext 10931 CPPFLAGS=$save_CPPFLAGS 10932 LIBS=$save_LIBS 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5 10934$as_echo "${found_usable_python}" >&6; } 10935 10936 fi 10937 fi 10938 10939 if test "${have_libpython}" = no; then 10940 case "${with_python}" in 10941 yes) 10942 as_fn_error $? "python is missing or unusable" "$LINENO" 5 10943 ;; 10944 auto) 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5 10946$as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;} 10947 ;; 10948 *) 10949 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5 10950 ;; 10951 esac 10952 else 10953 if test -n "${python_prefix}"; then 10954 10955cat >>confdefs.h <<_ACEOF 10956#define WITH_PYTHON_PATH "${python_prefix}" 10957_ACEOF 10958 10959 10960 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 10961 if test "x$prefix" = xNONE; then 10962 test_prefix=/usr/local 10963 else 10964 test_prefix=$prefix 10965 fi 10966 else 10967 test_prefix=$exec_prefix 10968 fi 10969 value=0 10970 case ${python_prefix} in 10971 "${test_prefix}"|"${test_prefix}/"*|\ 10972 '${exec_prefix}'|'${exec_prefix}/'*) 10973 value=1 10974 ;; 10975 esac 10976 10977cat >>confdefs.h <<_ACEOF 10978#define PYTHON_PATH_RELOCATABLE $value 10979_ACEOF 10980 10981 10982 fi 10983 fi 10984fi 10985 10986 10987# Check whether --with-python-libdir was given. 10988if test "${with_python_libdir+set}" = set; then : 10989 withval=$with_python_libdir; 10990else 10991 10992 # If no python libdir is specified then select one based on 10993 # python's prefix path. 10994 if test -n "${python_prefix}"; then 10995 with_python_libdir=${python_prefix}/lib 10996 fi 10997 10998fi 10999 11000 11001if test "${have_libpython}" != no; then 11002 11003$as_echo "#define HAVE_PYTHON 1" >>confdefs.h 11004 11005 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)" 11006 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)" 11007 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)" 11008 CONFIG_INSTALL="$CONFIG_INSTALL install-python" 11009 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)" 11010 11011 if test -n "${with_python_libdir}"; then 11012 11013cat >>confdefs.h <<_ACEOF 11014#define WITH_PYTHON_LIBDIR "${with_python_libdir}" 11015_ACEOF 11016 11017 11018 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 11019 if test "x$prefix" = xNONE; then 11020 test_prefix=/usr/local 11021 else 11022 test_prefix=$prefix 11023 fi 11024 else 11025 test_prefix=$exec_prefix 11026 fi 11027 value=0 11028 case ${with_python_libdir} in 11029 "${test_prefix}"|"${test_prefix}/"*|\ 11030 '${exec_prefix}'|'${exec_prefix}/'*) 11031 value=1 11032 ;; 11033 esac 11034 11035cat >>confdefs.h <<_ACEOF 11036#define PYTHON_LIBDIR_RELOCATABLE $value 11037_ACEOF 11038 11039 11040 fi 11041 11042 # Flags needed to compile Python code (taken from python-config --cflags). 11043 # We cannot call python-config directly because it will output whatever was 11044 # used when compiling the Python interpreter itself, including flags which 11045 # would make the python-related objects be compiled differently from the 11046 # rest of GDB (e.g., -O2 and -fPIC). 11047 if test "${GCC}" = yes; then 11048 tentative_python_cflags="-fno-strict-aliasing -fwrapv" 11049 # Python headers recommend -DNDEBUG, but it's unclear if that just 11050 # refers to building Python itself. In release mode, though, it 11051 # doesn't hurt for the Python code in gdb to follow. 11052 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG" 11053 fi 11054 11055 if test "x${tentative_python_cflags}" != x; then 11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5 11057$as_echo_n "checking compiler flags for python code... " >&6; } 11058 for flag in ${tentative_python_cflags}; do 11059 # Check that the compiler accepts it 11060 saved_CFLAGS="$CFLAGS" 11061 CFLAGS="$CFLAGS $flag" 11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11063/* end confdefs.h. */ 11064 11065int 11066main () 11067{ 11068 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_compile "$LINENO"; then : 11074 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag" 11075fi 11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11077 CFLAGS="$saved_CFLAGS" 11078 done 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5 11080$as_echo "${PYTHON_CFLAGS}" >&6; } 11081 fi 11082 11083 # On x64 Windows, Python's include headers, and pyconfig.h in 11084 # particular, rely on MS_WIN64 macro to detect that it's a 64bit 11085 # version of Windows. Unfortunately, MS_WIN64 is only defined if 11086 # _MSC_VER, a Microsoft-specific macro, is defined. So, when 11087 # building on x64 Windows with GCC, we define MS_WIN64 ourselves. 11088 # The issue was reported to the Python community, but still isn't 11089 # solved as of 2012-10-02 (http://bugs.python.org/issue4709). 11090 11091 case "$gdb_host" in 11092 mingw64) 11093 if test "${GCC}" = yes; then 11094 CPPFLAGS="$CPPFLAGS -DMS_WIN64" 11095 fi 11096 ;; 11097 esac 11098else 11099 # Even if Python support is not compiled in, we need to have this file 11100 # included so that the "python" command, et.al., still exists. 11101 CONFIG_OBS="$CONFIG_OBS python/python.o" 11102 CONFIG_SRCS="$CONFIG_SRCS python/python.c" 11103fi 11104 11105# Work around Python http://bugs.python.org/issue10112. See also 11106# http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has 11107# no effect. Note that the only test after this that uses Python is 11108# the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be 11109# run without -export-dynamic too. 11110PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'` 11111 11112 11113 11114 11115 if test "${have_libpython}" != no; then 11116 HAVE_PYTHON_TRUE= 11117 HAVE_PYTHON_FALSE='#' 11118else 11119 HAVE_PYTHON_TRUE='#' 11120 HAVE_PYTHON_FALSE= 11121fi 11122 11123 11124# -------------------- # 11125# Check for libguile. # 11126# -------------------- # 11127 11128 11129 11130 11131 11132 11133# Check whether --with-guile was given. 11134if test "${with_guile+set}" = set; then : 11135 withval=$with_guile; 11136else 11137 with_guile=auto 11138fi 11139 11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5 11141$as_echo_n "checking whether to use guile... " >&6; } 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5 11143$as_echo "$with_guile" >&6; } 11144 11145# Extract the first word of "pkg-config", so it can be a program name with args. 11146set dummy pkg-config; ac_word=$2 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11148$as_echo_n "checking for $ac_word... " >&6; } 11149if ${ac_cv_path_pkg_config_prog_path+:} false; then : 11150 $as_echo_n "(cached) " >&6 11151else 11152 case $pkg_config_prog_path in 11153 [\\/]* | ?:[\\/]*) 11154 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path. 11155 ;; 11156 *) 11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11158for as_dir in $PATH 11159do 11160 IFS=$as_save_IFS 11161 test -z "$as_dir" && as_dir=. 11162 for ac_exec_ext in '' $ac_executable_extensions; do 11163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11164 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext" 11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11166 break 2 11167 fi 11168done 11169 done 11170IFS=$as_save_IFS 11171 11172 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing" 11173 ;; 11174esac 11175fi 11176pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path 11177if test -n "$pkg_config_prog_path"; then 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5 11179$as_echo "$pkg_config_prog_path" >&6; } 11180else 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11182$as_echo "no" >&6; } 11183fi 11184 11185 11186 11187try_guile_versions="guile-3.0 guile-2.2 guile-2.0" 11188have_libguile=no 11189case "${with_guile}" in 11190no) 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5 11192$as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;} 11193 ;; 11194auto) 11195 if test "${pkg_config_prog_path}" = "missing"; then 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5 11197$as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;} 11198 else 11199 11200 pkg_config=${pkg_config_prog_path} 11201 guile_version_list=${try_guile_versions} 11202 flag_errors=no 11203 11204 found_usable_guile=checking 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5 11206$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; } 11207 for guile_version in ${guile_version_list}; do 11208 ${pkg_config} --exists ${guile_version} 2>/dev/null 11209 if test $? != 0; then 11210 continue 11211 fi 11212 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}` 11213 if test $? != 0; then 11214 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5 11215 fi 11216 new_LIBS=`${pkg_config} --libs ${guile_version}` 11217 if test $? != 0; then 11218 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5 11219 fi 11220 found_usable_guile=${guile_version} 11221 break 11222 done 11223 if test "${found_usable_guile}" = "checking"; then 11224 if test "${flag_errors}" = "yes"; then 11225 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5 11226 else 11227 found_usable_guile=no 11228 fi 11229 fi 11230 if test "${found_usable_guile}" != no; then 11231 save_CPPFLAGS=$CPPFLAGS 11232 save_LIBS=$LIBS 11233 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 11234 LIBS="$LIBS $new_LIBS" 11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11236/* end confdefs.h. */ 11237#include "libguile.h" 11238int 11239main () 11240{ 11241scm_init_guile (); 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_link "$LINENO"; then : 11247 have_libguile=yes 11248 GUILE_CPPFLAGS=$new_CPPFLAGS 11249 GUILE_LIBS=$new_LIBS 11250else 11251 found_usable_guile=no 11252fi 11253rm -f core conftest.err conftest.$ac_objext \ 11254 conftest$ac_exeext conftest.$ac_ext 11255 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled" 11256if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then : 11257 11258$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h 11259 11260 11261fi 11262 11263 CPPFLAGS=$save_CPPFLAGS 11264 LIBS=$save_LIBS 11265 if test "${found_usable_guile}" = no; then 11266 if test "${flag_errors}" = yes; then 11267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11269as_fn_error $? "linking guile version ${guile_version} test program failed 11270See \`config.log' for more details" "$LINENO" 5; } 11271 fi 11272 fi 11273 fi 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5 11275$as_echo "${found_usable_guile}" >&6; } 11276 11277 fi 11278 ;; 11279yes) 11280 if test "${pkg_config_prog_path}" = "missing"; then 11281 as_fn_error $? "pkg-config not found" "$LINENO" 5 11282 fi 11283 11284 pkg_config=${pkg_config_prog_path} 11285 guile_version_list=${try_guile_versions} 11286 flag_errors=yes 11287 11288 found_usable_guile=checking 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5 11290$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; } 11291 for guile_version in ${guile_version_list}; do 11292 ${pkg_config} --exists ${guile_version} 2>/dev/null 11293 if test $? != 0; then 11294 continue 11295 fi 11296 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}` 11297 if test $? != 0; then 11298 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5 11299 fi 11300 new_LIBS=`${pkg_config} --libs ${guile_version}` 11301 if test $? != 0; then 11302 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5 11303 fi 11304 found_usable_guile=${guile_version} 11305 break 11306 done 11307 if test "${found_usable_guile}" = "checking"; then 11308 if test "${flag_errors}" = "yes"; then 11309 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5 11310 else 11311 found_usable_guile=no 11312 fi 11313 fi 11314 if test "${found_usable_guile}" != no; then 11315 save_CPPFLAGS=$CPPFLAGS 11316 save_LIBS=$LIBS 11317 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 11318 LIBS="$LIBS $new_LIBS" 11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320/* end confdefs.h. */ 11321#include "libguile.h" 11322int 11323main () 11324{ 11325scm_init_guile (); 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_c_try_link "$LINENO"; then : 11331 have_libguile=yes 11332 GUILE_CPPFLAGS=$new_CPPFLAGS 11333 GUILE_LIBS=$new_LIBS 11334else 11335 found_usable_guile=no 11336fi 11337rm -f core conftest.err conftest.$ac_objext \ 11338 conftest$ac_exeext conftest.$ac_ext 11339 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled" 11340if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then : 11341 11342$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h 11343 11344 11345fi 11346 11347 CPPFLAGS=$save_CPPFLAGS 11348 LIBS=$save_LIBS 11349 if test "${found_usable_guile}" = no; then 11350 if test "${flag_errors}" = yes; then 11351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11353as_fn_error $? "linking guile version ${guile_version} test program failed 11354See \`config.log' for more details" "$LINENO" 5; } 11355 fi 11356 fi 11357 fi 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5 11359$as_echo "${found_usable_guile}" >&6; } 11360 11361 ;; 11362[\\/]* | ?:[\\/]*) 11363 if test -x "${with_guile}"; then 11364 11365 pkg_config=${with_guile} 11366 guile_version_list=${try_guile_versions} 11367 flag_errors=yes 11368 11369 found_usable_guile=checking 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5 11371$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; } 11372 for guile_version in ${guile_version_list}; do 11373 ${pkg_config} --exists ${guile_version} 2>/dev/null 11374 if test $? != 0; then 11375 continue 11376 fi 11377 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}` 11378 if test $? != 0; then 11379 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5 11380 fi 11381 new_LIBS=`${pkg_config} --libs ${guile_version}` 11382 if test $? != 0; then 11383 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5 11384 fi 11385 found_usable_guile=${guile_version} 11386 break 11387 done 11388 if test "${found_usable_guile}" = "checking"; then 11389 if test "${flag_errors}" = "yes"; then 11390 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5 11391 else 11392 found_usable_guile=no 11393 fi 11394 fi 11395 if test "${found_usable_guile}" != no; then 11396 save_CPPFLAGS=$CPPFLAGS 11397 save_LIBS=$LIBS 11398 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 11399 LIBS="$LIBS $new_LIBS" 11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11401/* end confdefs.h. */ 11402#include "libguile.h" 11403int 11404main () 11405{ 11406scm_init_guile (); 11407 ; 11408 return 0; 11409} 11410_ACEOF 11411if ac_fn_c_try_link "$LINENO"; then : 11412 have_libguile=yes 11413 GUILE_CPPFLAGS=$new_CPPFLAGS 11414 GUILE_LIBS=$new_LIBS 11415else 11416 found_usable_guile=no 11417fi 11418rm -f core conftest.err conftest.$ac_objext \ 11419 conftest$ac_exeext conftest.$ac_ext 11420 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled" 11421if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then : 11422 11423$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h 11424 11425 11426fi 11427 11428 CPPFLAGS=$save_CPPFLAGS 11429 LIBS=$save_LIBS 11430 if test "${found_usable_guile}" = no; then 11431 if test "${flag_errors}" = yes; then 11432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11434as_fn_error $? "linking guile version ${guile_version} test program failed 11435See \`config.log' for more details" "$LINENO" 5; } 11436 fi 11437 fi 11438 fi 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5 11440$as_echo "${found_usable_guile}" >&6; } 11441 11442 else 11443 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5 11444 fi 11445 ;; 11446"" | */*) 11447 # Disallow --with=guile="" and --with-guile=foo/bar. 11448 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5 11449 ;; 11450*) 11451 # A space separate list of guile versions to try, in order. 11452 if test "${pkg_config_prog_path}" = "missing"; then 11453 as_fn_error $? "pkg-config not found" "$LINENO" 5 11454 fi 11455 11456 pkg_config=${pkg_config_prog_path} 11457 guile_version_list=${with_guile} 11458 flag_errors=yes 11459 11460 found_usable_guile=checking 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5 11462$as_echo_n "checking for usable guile from ${pkg_config}... " >&6; } 11463 for guile_version in ${guile_version_list}; do 11464 ${pkg_config} --exists ${guile_version} 2>/dev/null 11465 if test $? != 0; then 11466 continue 11467 fi 11468 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}` 11469 if test $? != 0; then 11470 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5 11471 fi 11472 new_LIBS=`${pkg_config} --libs ${guile_version}` 11473 if test $? != 0; then 11474 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5 11475 fi 11476 found_usable_guile=${guile_version} 11477 break 11478 done 11479 if test "${found_usable_guile}" = "checking"; then 11480 if test "${flag_errors}" = "yes"; then 11481 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5 11482 else 11483 found_usable_guile=no 11484 fi 11485 fi 11486 if test "${found_usable_guile}" != no; then 11487 save_CPPFLAGS=$CPPFLAGS 11488 save_LIBS=$LIBS 11489 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS" 11490 LIBS="$LIBS $new_LIBS" 11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11492/* end confdefs.h. */ 11493#include "libguile.h" 11494int 11495main () 11496{ 11497scm_init_guile (); 11498 ; 11499 return 0; 11500} 11501_ACEOF 11502if ac_fn_c_try_link "$LINENO"; then : 11503 have_libguile=yes 11504 GUILE_CPPFLAGS=$new_CPPFLAGS 11505 GUILE_LIBS=$new_LIBS 11506else 11507 found_usable_guile=no 11508fi 11509rm -f core conftest.err conftest.$ac_objext \ 11510 conftest$ac_exeext conftest.$ac_ext 11511 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled" 11512if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then : 11513 11514$as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h 11515 11516 11517fi 11518 11519 CPPFLAGS=$save_CPPFLAGS 11520 LIBS=$save_LIBS 11521 if test "${found_usable_guile}" = no; then 11522 if test "${flag_errors}" = yes; then 11523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11525as_fn_error $? "linking guile version ${guile_version} test program failed 11526See \`config.log' for more details" "$LINENO" 5; } 11527 fi 11528 fi 11529 fi 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5 11531$as_echo "${found_usable_guile}" >&6; } 11532 11533 ;; 11534esac 11535 11536if test "${have_libguile}" != no; then 11537 case "${with_guile}" in 11538 [\\/]* | ?:[\\/]*) 11539 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5 11541$as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; } 11542if ${ac_cv_guild_program_name+:} false; then : 11543 $as_echo_n "(cached) " >&6 11544else 11545 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`" 11546 11547 # In Guile up to 2.0.11 included, guile-2.0.pc would not define 11548 # the 'guild' and 'bindir' variables. In that case, try to guess 11549 # what the program name is, at the risk of getting it wrong if 11550 # Guile was configured with '--program-suffix' or similar. 11551 if test "x$ac_cv_guild_program_name" = "x"; then 11552 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`" 11553 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild" 11554 fi 11555 11556fi 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5 11558$as_echo "$ac_cv_guild_program_name" >&6; } 11559 11560 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then 11561 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5 11562 fi 11563 11564 GUILD="$ac_cv_guild_program_name" 11565 11566 11567 ;; 11568 *) 11569 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5 11571$as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; } 11572if ${ac_cv_guild_program_name+:} false; then : 11573 $as_echo_n "(cached) " >&6 11574else 11575 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`" 11576 11577 # In Guile up to 2.0.11 included, guile-2.0.pc would not define 11578 # the 'guild' and 'bindir' variables. In that case, try to guess 11579 # what the program name is, at the risk of getting it wrong if 11580 # Guile was configured with '--program-suffix' or similar. 11581 if test "x$ac_cv_guild_program_name" = "x"; then 11582 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`" 11583 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild" 11584 fi 11585 11586fi 11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5 11588$as_echo "$ac_cv_guild_program_name" >&6; } 11589 11590 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then 11591 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5 11592 fi 11593 11594 GUILD="$ac_cv_guild_program_name" 11595 11596 11597 ;; 11598 esac 11599 11600 11601 if test "$cross_compiling" = no; then 11602 GUILD_TARGET_FLAG= 11603 else 11604 GUILD_TARGET_FLAG="--target=$host" 11605 fi 11606 11607 11608 11609 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5 11611$as_echo_n "checking whether guild supports this host... " >&6; } 11612if ${ac_cv_guild_ok+:} false; then : 11613 $as_echo_n "(cached) " >&6 11614else 11615 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5 11616 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then 11617 ac_cv_guild_ok=yes 11618 else 11619 ac_cv_guild_ok=no 11620 fi 11621fi 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5 11623$as_echo "$ac_cv_guild_ok" >&6; } 11624 11625 if test "$ac_cv_guild_ok" = no; then 11626 have_libguile=no 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5 11628$as_echo "$as_me: WARNING: disabling guile support" >&2;} 11629 fi 11630fi 11631 11632if test "${have_libguile}" != no; then 11633 11634$as_echo "#define HAVE_GUILE 1" >>confdefs.h 11635 11636 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)" 11637 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)" 11638 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)" 11639 CONFIG_INSTALL="$CONFIG_INSTALL install-guile" 11640 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)" 11641 11642 save_LIBS="$LIBS" 11643 save_CPPFLAGS="$CPPFLAGS" 11644 LIBS="$GUILE_LIBS" 11645 CPPFLAGS="$GUILE_CPPFLAGS" 11646 for ac_func in scm_new_smob 11647do : 11648 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob" 11649if test "x$ac_cv_func_scm_new_smob" = xyes; then : 11650 cat >>confdefs.h <<_ACEOF 11651#define HAVE_SCM_NEW_SMOB 1 11652_ACEOF 11653 11654fi 11655done 11656 11657 LIBS="$save_LIBS" 11658 CPPFLAGS="$save_CPPFLAGS" 11659else 11660 # Even if Guile support is not compiled in, we need to have these files 11661 # included. 11662 CONFIG_OBS="$CONFIG_OBS guile/guile.o" 11663 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c" 11664fi 11665 11666 11667 if test "${have_libguile}" != no; then 11668 HAVE_GUILE_TRUE= 11669 HAVE_GUILE_FALSE='#' 11670else 11671 HAVE_GUILE_TRUE='#' 11672 HAVE_GUILE_FALSE= 11673fi 11674 11675 11676# ---------------------------- # 11677# Check for source highlight. # 11678# ---------------------------- # 11679 11680SRCHIGH_LIBS= 11681SRCHIGH_CFLAGS= 11682 11683# Check whether --enable-source-highlight was given. 11684if test "${enable_source_highlight+set}" = set; then : 11685 enableval=$enable_source_highlight; case "${enableval}" in 11686 yes) enable_source_highlight=yes ;; 11687 no) enable_source_highlight=no ;; 11688 *) as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;; 11689esac 11690else 11691 enable_source_highlight=auto 11692fi 11693 11694 11695if test "${enable_source_highlight}" != "no"; then 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5 11697$as_echo_n "checking for the source-highlight library... " >&6; } 11698 if test "${pkg_config_prog_path}" = "missing"; then 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5 11700$as_echo "no - pkg-config not found" >&6; } 11701 if test "${enable_source_highlight}" = "yes"; then 11702 as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5 11703 fi 11704 else 11705 case "$LDFLAGS" in 11706 *static-libstdc*) 11707 as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5 11708 ;; 11709 esac 11710 11711 if ${pkg_config_prog_path} --exists source-highlight; then 11712 SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight` 11713 SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight` 11714 11715$as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h 11716 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11718$as_echo "yes" >&6; } 11719 else 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11721$as_echo "no" >&6; } 11722 if test "${enable_source_highlight}" = "yes"; then 11723 as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5 11724 fi 11725 fi 11726 fi 11727fi 11728 11729 11730 11731# ------------------------- # 11732# Checks for header files. # 11733# ------------------------- # 11734 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11736$as_echo_n "checking for ANSI C header files... " >&6; } 11737if ${ac_cv_header_stdc+:} false; then : 11738 $as_echo_n "(cached) " >&6 11739else 11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11741/* end confdefs.h. */ 11742#include <stdlib.h> 11743#include <stdarg.h> 11744#include <string.h> 11745#include <float.h> 11746 11747int 11748main () 11749{ 11750 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_compile "$LINENO"; then : 11756 ac_cv_header_stdc=yes 11757else 11758 ac_cv_header_stdc=no 11759fi 11760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11761 11762if test $ac_cv_header_stdc = yes; then 11763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11765/* end confdefs.h. */ 11766#include <string.h> 11767 11768_ACEOF 11769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11770 $EGREP "memchr" >/dev/null 2>&1; then : 11771 11772else 11773 ac_cv_header_stdc=no 11774fi 11775rm -f conftest* 11776 11777fi 11778 11779if test $ac_cv_header_stdc = yes; then 11780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11782/* end confdefs.h. */ 11783#include <stdlib.h> 11784 11785_ACEOF 11786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11787 $EGREP "free" >/dev/null 2>&1; then : 11788 11789else 11790 ac_cv_header_stdc=no 11791fi 11792rm -f conftest* 11793 11794fi 11795 11796if test $ac_cv_header_stdc = yes; then 11797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11798 if test "$cross_compiling" = yes; then : 11799 : 11800else 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803#include <ctype.h> 11804#include <stdlib.h> 11805#if ((' ' & 0x0FF) == 0x020) 11806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11808#else 11809# define ISLOWER(c) \ 11810 (('a' <= (c) && (c) <= 'i') \ 11811 || ('j' <= (c) && (c) <= 'r') \ 11812 || ('s' <= (c) && (c) <= 'z')) 11813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11814#endif 11815 11816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11817int 11818main () 11819{ 11820 int i; 11821 for (i = 0; i < 256; i++) 11822 if (XOR (islower (i), ISLOWER (i)) 11823 || toupper (i) != TOUPPER (i)) 11824 return 2; 11825 return 0; 11826} 11827_ACEOF 11828if ac_fn_c_try_run "$LINENO"; then : 11829 11830else 11831 ac_cv_header_stdc=no 11832fi 11833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11834 conftest.$ac_objext conftest.beam conftest.$ac_ext 11835fi 11836 11837fi 11838fi 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11840$as_echo "$ac_cv_header_stdc" >&6; } 11841if test $ac_cv_header_stdc = yes; then 11842 11843$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11844 11845fi 11846 11847# elf_hp.h is for HP/UX 64-bit shared library support. 11848for ac_header in nlist.h machine/reg.h \ 11849 thread_db.h \ 11850 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ 11851 sys/resource.h sys/ptrace.h ptrace.h \ 11852 sys/reg.h sys/debugreg.h \ 11853 termios.h elf_hp.h 11854do : 11855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11856ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11858 cat >>confdefs.h <<_ACEOF 11859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11860_ACEOF 11861 11862fi 11863 11864done 11865 11866for ac_header in sys/user.h 11867do : 11868 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H 11869# include <sys/param.h> 11870#endif 11871 11872" 11873if test "x$ac_cv_header_sys_user_h" = xyes; then : 11874 cat >>confdefs.h <<_ACEOF 11875#define HAVE_SYS_USER_H 1 11876_ACEOF 11877 11878fi 11879 11880done 11881 11882 11883for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h 11884do : 11885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11886ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11888 cat >>confdefs.h <<_ACEOF 11889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11890_ACEOF 11891 11892fi 11893 11894done 11895 11896for ac_header in term.h 11897do : 11898 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H 11899# include <curses.h> 11900#endif 11901 11902" 11903if test "x$ac_cv_header_term_h" = xyes; then : 11904 cat >>confdefs.h <<_ACEOF 11905#define HAVE_TERM_H 1 11906_ACEOF 11907 11908fi 11909 11910done 11911 11912 11913for ac_header in sys/socket.h 11914do : 11915 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 11916if test "x$ac_cv_header_sys_socket_h" = xyes; then : 11917 cat >>confdefs.h <<_ACEOF 11918#define HAVE_SYS_SOCKET_H 1 11919_ACEOF 11920 11921fi 11922 11923done 11924 11925for ac_header in ws2tcpip.h 11926do : 11927 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 11928if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : 11929 cat >>confdefs.h <<_ACEOF 11930#define HAVE_WS2TCPIP_H 1 11931_ACEOF 11932 11933fi 11934 11935done 11936 11937 11938# ------------------------- # 11939# Checks for declarations. # 11940# ------------------------- # 11941 11942 11943 # Check for presence and size of long long. 11944 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 11945if test "x$ac_cv_type_long_long" = xyes; then : 11946 11947cat >>confdefs.h <<_ACEOF 11948#define HAVE_LONG_LONG 1 11949_ACEOF 11950 11951# The cast to long int works around a bug in the HP C Compiler 11952# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11953# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11954# This bug is HP SR number 8606223364. 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 11956$as_echo_n "checking size of long long... " >&6; } 11957if ${ac_cv_sizeof_long_long+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 11961 11962else 11963 if test "$ac_cv_type_long_long" = yes; then 11964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11966as_fn_error 77 "cannot compute sizeof (long long) 11967See \`config.log' for more details" "$LINENO" 5; } 11968 else 11969 ac_cv_sizeof_long_long=0 11970 fi 11971fi 11972 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 11975$as_echo "$ac_cv_sizeof_long_long" >&6; } 11976 11977 11978 11979cat >>confdefs.h <<_ACEOF 11980#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 11981_ACEOF 11982 11983 11984fi 11985 11986 11987 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 11988ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" 11989if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 11990 ac_have_decl=1 11991else 11992 ac_have_decl=0 11993fi 11994 11995cat >>confdefs.h <<_ACEOF 11996#define HAVE_DECL_BASENAME $ac_have_decl 11997_ACEOF 11998ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 11999if test "x$ac_cv_have_decl_ffs" = xyes; then : 12000 ac_have_decl=1 12001else 12002 ac_have_decl=0 12003fi 12004 12005cat >>confdefs.h <<_ACEOF 12006#define HAVE_DECL_FFS $ac_have_decl 12007_ACEOF 12008ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 12009if test "x$ac_cv_have_decl_asprintf" = xyes; then : 12010 ac_have_decl=1 12011else 12012 ac_have_decl=0 12013fi 12014 12015cat >>confdefs.h <<_ACEOF 12016#define HAVE_DECL_ASPRINTF $ac_have_decl 12017_ACEOF 12018ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 12019if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 12020 ac_have_decl=1 12021else 12022 ac_have_decl=0 12023fi 12024 12025cat >>confdefs.h <<_ACEOF 12026#define HAVE_DECL_VASPRINTF $ac_have_decl 12027_ACEOF 12028ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 12029if test "x$ac_cv_have_decl_snprintf" = xyes; then : 12030 ac_have_decl=1 12031else 12032 ac_have_decl=0 12033fi 12034 12035cat >>confdefs.h <<_ACEOF 12036#define HAVE_DECL_SNPRINTF $ac_have_decl 12037_ACEOF 12038ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 12039if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 12040 ac_have_decl=1 12041else 12042 ac_have_decl=0 12043fi 12044 12045cat >>confdefs.h <<_ACEOF 12046#define HAVE_DECL_VSNPRINTF $ac_have_decl 12047_ACEOF 12048 12049 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" 12050if test "x$ac_cv_have_decl_strtol" = xyes; then : 12051 ac_have_decl=1 12052else 12053 ac_have_decl=0 12054fi 12055 12056cat >>confdefs.h <<_ACEOF 12057#define HAVE_DECL_STRTOL $ac_have_decl 12058_ACEOF 12059ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" 12060if test "x$ac_cv_have_decl_strtoul" = xyes; then : 12061 ac_have_decl=1 12062else 12063 ac_have_decl=0 12064fi 12065 12066cat >>confdefs.h <<_ACEOF 12067#define HAVE_DECL_STRTOUL $ac_have_decl 12068_ACEOF 12069ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 12070if test "x$ac_cv_have_decl_strtoll" = xyes; then : 12071 ac_have_decl=1 12072else 12073 ac_have_decl=0 12074fi 12075 12076cat >>confdefs.h <<_ACEOF 12077#define HAVE_DECL_STRTOLL $ac_have_decl 12078_ACEOF 12079ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 12080if test "x$ac_cv_have_decl_strtoull" = xyes; then : 12081 ac_have_decl=1 12082else 12083 ac_have_decl=0 12084fi 12085 12086cat >>confdefs.h <<_ACEOF 12087#define HAVE_DECL_STRTOULL $ac_have_decl 12088_ACEOF 12089 12090 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 12091if test "x$ac_cv_have_decl_strverscmp" = xyes; then : 12092 ac_have_decl=1 12093else 12094 ac_have_decl=0 12095fi 12096 12097cat >>confdefs.h <<_ACEOF 12098#define HAVE_DECL_STRVERSCMP $ac_have_decl 12099_ACEOF 12100 12101 12102 12103ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 12104if test "x$ac_cv_have_decl_snprintf" = xyes; then : 12105 ac_have_decl=1 12106else 12107 ac_have_decl=0 12108fi 12109 12110cat >>confdefs.h <<_ACEOF 12111#define HAVE_DECL_SNPRINTF $ac_have_decl 12112_ACEOF 12113 12114 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 12116$as_echo_n "checking for LC_MESSAGES... " >&6; } 12117if ${am_cv_val_LC_MESSAGES+:} false; then : 12118 $as_echo_n "(cached) " >&6 12119else 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122#include <locale.h> 12123int 12124main () 12125{ 12126return LC_MESSAGES 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131if ac_fn_c_try_link "$LINENO"; then : 12132 am_cv_val_LC_MESSAGES=yes 12133else 12134 am_cv_val_LC_MESSAGES=no 12135fi 12136rm -f core conftest.err conftest.$ac_objext \ 12137 conftest$ac_exeext conftest.$ac_ext 12138fi 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 12140$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 12141 if test $am_cv_val_LC_MESSAGES = yes; then 12142 12143$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 12144 12145 fi 12146 12147 12148# ------------------ # 12149# Checks for types. # 12150# ------------------ # 12151 12152ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> 12153#if HAVE_SYS_SOCKET_H 12154# include <sys/socket.h> 12155#elif HAVE_WS2TCPIP_H 12156# include <ws2tcpip.h> 12157#endif 12158 12159" 12160if test "x$ac_cv_type_socklen_t" = xyes; then : 12161 12162cat >>confdefs.h <<_ACEOF 12163#define HAVE_SOCKLEN_T 1 12164_ACEOF 12165 12166 12167fi 12168 12169 12170# ------------------------------------- # 12171# Checks for compiler characteristics. # 12172# ------------------------------------- # 12173 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12175$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12176if ${ac_cv_c_const+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181 12182int 12183main () 12184{ 12185 12186#ifndef __cplusplus 12187 /* Ultrix mips cc rejects this sort of thing. */ 12188 typedef int charset[2]; 12189 const charset cs = { 0, 0 }; 12190 /* SunOS 4.1.1 cc rejects this. */ 12191 char const *const *pcpcc; 12192 char **ppc; 12193 /* NEC SVR4.0.2 mips cc rejects this. */ 12194 struct point {int x, y;}; 12195 static struct point const zero = {0,0}; 12196 /* AIX XL C 1.02.0.0 rejects this. 12197 It does not let you subtract one const X* pointer from another in 12198 an arm of an if-expression whose if-part is not a constant 12199 expression */ 12200 const char *g = "string"; 12201 pcpcc = &g + (g ? g-g : 0); 12202 /* HPUX 7.0 cc rejects these. */ 12203 ++pcpcc; 12204 ppc = (char**) pcpcc; 12205 pcpcc = (char const *const *) ppc; 12206 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12207 char tx; 12208 char *t = &tx; 12209 char const *s = 0 ? (char *) 0 : (char const *) 0; 12210 12211 *t++ = 0; 12212 if (s) return 0; 12213 } 12214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12215 int x[] = {25, 17}; 12216 const int *foo = &x[0]; 12217 ++foo; 12218 } 12219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12220 typedef const int *iptr; 12221 iptr p = 0; 12222 ++p; 12223 } 12224 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12226 struct s { int j; const int *ap[3]; } bx; 12227 struct s *b = &bx; b->j = 5; 12228 } 12229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12230 const int foo = 10; 12231 if (!foo) return 0; 12232 } 12233 return !cs[0] && !zero.x; 12234#endif 12235 12236 ; 12237 return 0; 12238} 12239_ACEOF 12240if ac_fn_c_try_compile "$LINENO"; then : 12241 ac_cv_c_const=yes 12242else 12243 ac_cv_c_const=no 12244fi 12245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12248$as_echo "$ac_cv_c_const" >&6; } 12249if test $ac_cv_c_const = no; then 12250 12251$as_echo "#define const /**/" >>confdefs.h 12252 12253fi 12254 12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12256$as_echo_n "checking for inline... " >&6; } 12257if ${ac_cv_c_inline+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259else 12260 ac_cv_c_inline=no 12261for ac_kw in inline __inline__ __inline; do 12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12263/* end confdefs.h. */ 12264#ifndef __cplusplus 12265typedef int foo_t; 12266static $ac_kw foo_t static_foo () {return 0; } 12267$ac_kw foo_t foo () {return 0; } 12268#endif 12269 12270_ACEOF 12271if ac_fn_c_try_compile "$LINENO"; then : 12272 ac_cv_c_inline=$ac_kw 12273fi 12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12275 test "$ac_cv_c_inline" != no && break 12276done 12277 12278fi 12279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12280$as_echo "$ac_cv_c_inline" >&6; } 12281 12282case $ac_cv_c_inline in 12283 inline | yes) ;; 12284 *) 12285 case $ac_cv_c_inline in 12286 no) ac_val=;; 12287 *) ac_val=$ac_cv_c_inline;; 12288 esac 12289 cat >>confdefs.h <<_ACEOF 12290#ifndef __cplusplus 12291#define inline $ac_val 12292#endif 12293_ACEOF 12294 ;; 12295esac 12296 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12298$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12299if ${ac_cv_c_bigendian+:} false; then : 12300 $as_echo_n "(cached) " >&6 12301else 12302 ac_cv_c_bigendian=unknown 12303 # See if we're dealing with a universal compiler. 12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12305/* end confdefs.h. */ 12306#ifndef __APPLE_CC__ 12307 not a universal capable compiler 12308 #endif 12309 typedef int dummy; 12310 12311_ACEOF 12312if ac_fn_c_try_compile "$LINENO"; then : 12313 12314 # Check for potential -arch flags. It is not universal unless 12315 # there are at least two -arch flags with different values. 12316 ac_arch= 12317 ac_prev= 12318 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12319 if test -n "$ac_prev"; then 12320 case $ac_word in 12321 i?86 | x86_64 | ppc | ppc64) 12322 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12323 ac_arch=$ac_word 12324 else 12325 ac_cv_c_bigendian=universal 12326 break 12327 fi 12328 ;; 12329 esac 12330 ac_prev= 12331 elif test "x$ac_word" = "x-arch"; then 12332 ac_prev=arch 12333 fi 12334 done 12335fi 12336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12337 if test $ac_cv_c_bigendian = unknown; then 12338 # See if sys/param.h defines the BYTE_ORDER macro. 12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340/* end confdefs.h. */ 12341#include <sys/types.h> 12342 #include <sys/param.h> 12343 12344int 12345main () 12346{ 12347#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12348 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12349 && LITTLE_ENDIAN) 12350 bogus endian macros 12351 #endif 12352 12353 ; 12354 return 0; 12355} 12356_ACEOF 12357if ac_fn_c_try_compile "$LINENO"; then : 12358 # It does; now see whether it defined to BIG_ENDIAN or not. 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361#include <sys/types.h> 12362 #include <sys/param.h> 12363 12364int 12365main () 12366{ 12367#if BYTE_ORDER != BIG_ENDIAN 12368 not big endian 12369 #endif 12370 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375if ac_fn_c_try_compile "$LINENO"; then : 12376 ac_cv_c_bigendian=yes 12377else 12378 ac_cv_c_bigendian=no 12379fi 12380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12381fi 12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12383 fi 12384 if test $ac_cv_c_bigendian = unknown; then 12385 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12387/* end confdefs.h. */ 12388#include <limits.h> 12389 12390int 12391main () 12392{ 12393#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12394 bogus endian macros 12395 #endif 12396 12397 ; 12398 return 0; 12399} 12400_ACEOF 12401if ac_fn_c_try_compile "$LINENO"; then : 12402 # It does; now see whether it defined to _BIG_ENDIAN or not. 12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405#include <limits.h> 12406 12407int 12408main () 12409{ 12410#ifndef _BIG_ENDIAN 12411 not big endian 12412 #endif 12413 12414 ; 12415 return 0; 12416} 12417_ACEOF 12418if ac_fn_c_try_compile "$LINENO"; then : 12419 ac_cv_c_bigendian=yes 12420else 12421 ac_cv_c_bigendian=no 12422fi 12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12424fi 12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12426 fi 12427 if test $ac_cv_c_bigendian = unknown; then 12428 # Compile a test program. 12429 if test "$cross_compiling" = yes; then : 12430 # Try to guess by grepping values from an object file. 12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12432/* end confdefs.h. */ 12433short int ascii_mm[] = 12434 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12435 short int ascii_ii[] = 12436 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12437 int use_ascii (int i) { 12438 return ascii_mm[i] + ascii_ii[i]; 12439 } 12440 short int ebcdic_ii[] = 12441 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12442 short int ebcdic_mm[] = 12443 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12444 int use_ebcdic (int i) { 12445 return ebcdic_mm[i] + ebcdic_ii[i]; 12446 } 12447 extern int foo; 12448 12449int 12450main () 12451{ 12452return use_ascii (foo) == use_ebcdic (foo); 12453 ; 12454 return 0; 12455} 12456_ACEOF 12457if ac_fn_c_try_compile "$LINENO"; then : 12458 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12459 ac_cv_c_bigendian=yes 12460 fi 12461 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12462 if test "$ac_cv_c_bigendian" = unknown; then 12463 ac_cv_c_bigendian=no 12464 else 12465 # finding both strings is unlikely to happen, but who knows? 12466 ac_cv_c_bigendian=unknown 12467 fi 12468 fi 12469fi 12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12471else 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474$ac_includes_default 12475int 12476main () 12477{ 12478 12479 /* Are we little or big endian? From Harbison&Steele. */ 12480 union 12481 { 12482 long int l; 12483 char c[sizeof (long int)]; 12484 } u; 12485 u.l = 1; 12486 return u.c[sizeof (long int) - 1] == 1; 12487 12488 ; 12489 return 0; 12490} 12491_ACEOF 12492if ac_fn_c_try_run "$LINENO"; then : 12493 ac_cv_c_bigendian=no 12494else 12495 ac_cv_c_bigendian=yes 12496fi 12497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12498 conftest.$ac_objext conftest.beam conftest.$ac_ext 12499fi 12500 12501 fi 12502fi 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12504$as_echo "$ac_cv_c_bigendian" >&6; } 12505 case $ac_cv_c_bigendian in #( 12506 yes) 12507 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12508;; #( 12509 no) 12510 ;; #( 12511 universal) 12512 12513$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12514 12515 ;; #( 12516 *) 12517 as_fn_error $? "unknown endianness 12518 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12519 esac 12520 12521 12522# ------------------------------ # 12523# Checks for library functions. # 12524# ------------------------------ # 12525 12526for ac_func in getuid getgid \ 12527 pipe pread pread64 pwrite resize_term \ 12528 getpgid setsid \ 12529 sigaction sigsetmask socketpair \ 12530 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \ 12531 setrlimit getrlimit posix_madvise waitpid \ 12532 use_default_colors 12533do : 12534 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12535ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12536if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12537 cat >>confdefs.h <<_ACEOF 12538#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12539_ACEOF 12540 12541fi 12542done 12543 12544 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 12546$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 12547if ${am_cv_langinfo_codeset+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549else 12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12551/* end confdefs.h. */ 12552#include <langinfo.h> 12553int 12554main () 12555{ 12556char* cs = nl_langinfo(CODESET); 12557 ; 12558 return 0; 12559} 12560_ACEOF 12561if ac_fn_c_try_link "$LINENO"; then : 12562 am_cv_langinfo_codeset=yes 12563else 12564 am_cv_langinfo_codeset=no 12565fi 12566rm -f core conftest.err conftest.$ac_objext \ 12567 conftest$ac_exeext conftest.$ac_ext 12568 12569fi 12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 12571$as_echo "$am_cv_langinfo_codeset" >&6; } 12572 if test $am_cv_langinfo_codeset = yes; then 12573 12574$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 12575 12576 fi 12577 12578ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12579if test "x$ac_cv_type_size_t" = xyes; then : 12580 12581else 12582 12583cat >>confdefs.h <<_ACEOF 12584#define size_t unsigned int 12585_ACEOF 12586 12587fi 12588 12589 12590 12591 12592 for ac_header in $ac_header_list 12593do : 12594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12596" 12597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12598 cat >>confdefs.h <<_ACEOF 12599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12600_ACEOF 12601 12602fi 12603 12604done 12605 12606 12607 12608 12609 12610 12611 12612ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12613if test "x$ac_cv_type_pid_t" = xyes; then : 12614 12615else 12616 12617cat >>confdefs.h <<_ACEOF 12618#define pid_t int 12619_ACEOF 12620 12621fi 12622 12623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12624$as_echo_n "checking for a sed that does not truncate output... " >&6; } 12625if ${ac_cv_path_SED+:} false; then : 12626 $as_echo_n "(cached) " >&6 12627else 12628 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12629 for ac_i in 1 2 3 4 5 6 7; do 12630 ac_script="$ac_script$as_nl$ac_script" 12631 done 12632 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12633 { ac_script=; unset ac_script;} 12634 if test -z "$SED"; then 12635 ac_path_SED_found=false 12636 # Loop through the user's path and test for each of PROGNAME-LIST 12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12638for as_dir in $PATH 12639do 12640 IFS=$as_save_IFS 12641 test -z "$as_dir" && as_dir=. 12642 for ac_prog in sed gsed; do 12643 for ac_exec_ext in '' $ac_executable_extensions; do 12644 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12645 as_fn_executable_p "$ac_path_SED" || continue 12646# Check for GNU ac_path_SED and select it if it is found. 12647 # Check for GNU $ac_path_SED 12648case `"$ac_path_SED" --version 2>&1` in 12649*GNU*) 12650 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12651*) 12652 ac_count=0 12653 $as_echo_n 0123456789 >"conftest.in" 12654 while : 12655 do 12656 cat "conftest.in" "conftest.in" >"conftest.tmp" 12657 mv "conftest.tmp" "conftest.in" 12658 cp "conftest.in" "conftest.nl" 12659 $as_echo '' >> "conftest.nl" 12660 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12662 as_fn_arith $ac_count + 1 && ac_count=$as_val 12663 if test $ac_count -gt ${ac_path_SED_max-0}; then 12664 # Best one so far, save it but keep looking for a better one 12665 ac_cv_path_SED="$ac_path_SED" 12666 ac_path_SED_max=$ac_count 12667 fi 12668 # 10*(2^10) chars as input seems more than enough 12669 test $ac_count -gt 10 && break 12670 done 12671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12672esac 12673 12674 $ac_path_SED_found && break 3 12675 done 12676 done 12677 done 12678IFS=$as_save_IFS 12679 if test -z "$ac_cv_path_SED"; then 12680 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12681 fi 12682else 12683 ac_cv_path_SED=$SED 12684fi 12685 12686fi 12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12688$as_echo "$ac_cv_path_SED" >&6; } 12689 SED="$ac_cv_path_SED" 12690 rm -f conftest.sed 12691 12692 12693 # Set the 'development' global. 12694 . $srcdir/../bfd/development.sh 12695 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12697$as_echo_n "checking for ANSI C header files... " >&6; } 12698if ${ac_cv_header_stdc+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700else 12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12702/* end confdefs.h. */ 12703#include <stdlib.h> 12704#include <stdarg.h> 12705#include <string.h> 12706#include <float.h> 12707 12708int 12709main () 12710{ 12711 12712 ; 12713 return 0; 12714} 12715_ACEOF 12716if ac_fn_c_try_compile "$LINENO"; then : 12717 ac_cv_header_stdc=yes 12718else 12719 ac_cv_header_stdc=no 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722 12723if test $ac_cv_header_stdc = yes; then 12724 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12726/* end confdefs.h. */ 12727#include <string.h> 12728 12729_ACEOF 12730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12731 $EGREP "memchr" >/dev/null 2>&1; then : 12732 12733else 12734 ac_cv_header_stdc=no 12735fi 12736rm -f conftest* 12737 12738fi 12739 12740if test $ac_cv_header_stdc = yes; then 12741 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744#include <stdlib.h> 12745 12746_ACEOF 12747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12748 $EGREP "free" >/dev/null 2>&1; then : 12749 12750else 12751 ac_cv_header_stdc=no 12752fi 12753rm -f conftest* 12754 12755fi 12756 12757if test $ac_cv_header_stdc = yes; then 12758 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12759 if test "$cross_compiling" = yes; then : 12760 : 12761else 12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12763/* end confdefs.h. */ 12764#include <ctype.h> 12765#include <stdlib.h> 12766#if ((' ' & 0x0FF) == 0x020) 12767# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12768# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12769#else 12770# define ISLOWER(c) \ 12771 (('a' <= (c) && (c) <= 'i') \ 12772 || ('j' <= (c) && (c) <= 'r') \ 12773 || ('s' <= (c) && (c) <= 'z')) 12774# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12775#endif 12776 12777#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12778int 12779main () 12780{ 12781 int i; 12782 for (i = 0; i < 256; i++) 12783 if (XOR (islower (i), ISLOWER (i)) 12784 || toupper (i) != TOUPPER (i)) 12785 return 2; 12786 return 0; 12787} 12788_ACEOF 12789if ac_fn_c_try_run "$LINENO"; then : 12790 12791else 12792 ac_cv_header_stdc=no 12793fi 12794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12795 conftest.$ac_objext conftest.beam conftest.$ac_ext 12796fi 12797 12798fi 12799fi 12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12801$as_echo "$ac_cv_header_stdc" >&6; } 12802if test $ac_cv_header_stdc = yes; then 12803 12804$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12805 12806fi 12807 12808 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12809# for constant arguments. Useless! 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 12811$as_echo_n "checking for working alloca.h... " >&6; } 12812if ${ac_cv_working_alloca_h+:} false; then : 12813 $as_echo_n "(cached) " >&6 12814else 12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817#include <alloca.h> 12818int 12819main () 12820{ 12821char *p = (char *) alloca (2 * sizeof (int)); 12822 if (p) return 0; 12823 ; 12824 return 0; 12825} 12826_ACEOF 12827if ac_fn_c_try_link "$LINENO"; then : 12828 ac_cv_working_alloca_h=yes 12829else 12830 ac_cv_working_alloca_h=no 12831fi 12832rm -f core conftest.err conftest.$ac_objext \ 12833 conftest$ac_exeext conftest.$ac_ext 12834fi 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 12836$as_echo "$ac_cv_working_alloca_h" >&6; } 12837if test $ac_cv_working_alloca_h = yes; then 12838 12839$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 12840 12841fi 12842 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 12844$as_echo_n "checking for alloca... " >&6; } 12845if ${ac_cv_func_alloca_works+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847else 12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849/* end confdefs.h. */ 12850#ifdef __GNUC__ 12851# define alloca __builtin_alloca 12852#else 12853# ifdef _MSC_VER 12854# include <malloc.h> 12855# define alloca _alloca 12856# else 12857# ifdef HAVE_ALLOCA_H 12858# include <alloca.h> 12859# else 12860# ifdef _AIX 12861 #pragma alloca 12862# else 12863# ifndef alloca /* predefined by HP cc +Olibcalls */ 12864void *alloca (size_t); 12865# endif 12866# endif 12867# endif 12868# endif 12869#endif 12870 12871int 12872main () 12873{ 12874char *p = (char *) alloca (1); 12875 if (p) return 0; 12876 ; 12877 return 0; 12878} 12879_ACEOF 12880if ac_fn_c_try_link "$LINENO"; then : 12881 ac_cv_func_alloca_works=yes 12882else 12883 ac_cv_func_alloca_works=no 12884fi 12885rm -f core conftest.err conftest.$ac_objext \ 12886 conftest$ac_exeext conftest.$ac_ext 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 12889$as_echo "$ac_cv_func_alloca_works" >&6; } 12890 12891if test $ac_cv_func_alloca_works = yes; then 12892 12893$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 12894 12895else 12896 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 12897# that cause trouble. Some versions do not even contain alloca or 12898# contain a buggy version. If you still want to use their alloca, 12899# use ar to extract alloca.o from them instead of compiling alloca.c. 12900 12901ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 12902 12903$as_echo "#define C_ALLOCA 1" >>confdefs.h 12904 12905 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 12907$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 12908if ${ac_cv_os_cray+:} false; then : 12909 $as_echo_n "(cached) " >&6 12910else 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913#if defined CRAY && ! defined CRAY2 12914webecray 12915#else 12916wenotbecray 12917#endif 12918 12919_ACEOF 12920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12921 $EGREP "webecray" >/dev/null 2>&1; then : 12922 ac_cv_os_cray=yes 12923else 12924 ac_cv_os_cray=no 12925fi 12926rm -f conftest* 12927 12928fi 12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 12930$as_echo "$ac_cv_os_cray" >&6; } 12931if test $ac_cv_os_cray = yes; then 12932 for ac_func in _getb67 GETB67 getb67; do 12933 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12934ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12935if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12936 12937cat >>confdefs.h <<_ACEOF 12938#define CRAY_STACKSEG_END $ac_func 12939_ACEOF 12940 12941 break 12942fi 12943 12944 done 12945fi 12946 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 12948$as_echo_n "checking stack direction for C alloca... " >&6; } 12949if ${ac_cv_c_stack_direction+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 if test "$cross_compiling" = yes; then : 12953 ac_cv_c_stack_direction=0 12954else 12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12956/* end confdefs.h. */ 12957$ac_includes_default 12958int 12959find_stack_direction (int *addr, int depth) 12960{ 12961 int dir, dummy = 0; 12962 if (! addr) 12963 addr = &dummy; 12964 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 12965 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 12966 return dir + dummy; 12967} 12968 12969int 12970main (int argc, char **argv) 12971{ 12972 return find_stack_direction (0, argc + !argv + 20) < 0; 12973} 12974_ACEOF 12975if ac_fn_c_try_run "$LINENO"; then : 12976 ac_cv_c_stack_direction=1 12977else 12978 ac_cv_c_stack_direction=-1 12979fi 12980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12981 conftest.$ac_objext conftest.beam conftest.$ac_ext 12982fi 12983 12984fi 12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 12986$as_echo "$ac_cv_c_stack_direction" >&6; } 12987cat >>confdefs.h <<_ACEOF 12988#define STACK_DIRECTION $ac_cv_c_stack_direction 12989_ACEOF 12990 12991 12992fi 12993 12994 12995 WIN32APILIBS= 12996 case ${host} in 12997 *mingw32*) 12998 12999$as_echo "#define USE_WIN32API 1" >>confdefs.h 13000 13001 WIN32APILIBS="-lws2_32" 13002 ;; 13003 esac 13004 13005 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 13007$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 13008if ${am_cv_langinfo_codeset+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013#include <langinfo.h> 13014int 13015main () 13016{ 13017char* cs = nl_langinfo(CODESET); 13018 ; 13019 return 0; 13020} 13021_ACEOF 13022if ac_fn_c_try_link "$LINENO"; then : 13023 am_cv_langinfo_codeset=yes 13024else 13025 am_cv_langinfo_codeset=no 13026fi 13027rm -f core conftest.err conftest.$ac_objext \ 13028 conftest$ac_exeext conftest.$ac_ext 13029 13030fi 13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 13032$as_echo "$am_cv_langinfo_codeset" >&6; } 13033 if test $am_cv_langinfo_codeset = yes; then 13034 13035$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 13036 13037 fi 13038 13039 13040 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h dlfcn.h linux/elf.h proc_service.h poll.h sys/poll.h sys/select.h 13041do : 13042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13043ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13045 cat >>confdefs.h <<_ACEOF 13046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13047_ACEOF 13048 13049fi 13050 13051done 13052 13053 13054 13055for ac_func in getpagesize 13056do : 13057 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13058if test "x$ac_cv_func_getpagesize" = xyes; then : 13059 cat >>confdefs.h <<_ACEOF 13060#define HAVE_GETPAGESIZE 1 13061_ACEOF 13062 13063fi 13064done 13065 13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13067$as_echo_n "checking for working mmap... " >&6; } 13068if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13069 $as_echo_n "(cached) " >&6 13070else 13071 if test "$cross_compiling" = yes; then : 13072 ac_cv_func_mmap_fixed_mapped=no 13073else 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076$ac_includes_default 13077/* malloc might have been renamed as rpl_malloc. */ 13078#undef malloc 13079 13080/* Thanks to Mike Haertel and Jim Avera for this test. 13081 Here is a matrix of mmap possibilities: 13082 mmap private not fixed 13083 mmap private fixed at somewhere currently unmapped 13084 mmap private fixed at somewhere already mapped 13085 mmap shared not fixed 13086 mmap shared fixed at somewhere currently unmapped 13087 mmap shared fixed at somewhere already mapped 13088 For private mappings, we should verify that changes cannot be read() 13089 back from the file, nor mmap's back from the file at a different 13090 address. (There have been systems where private was not correctly 13091 implemented like the infamous i386 svr4.0, and systems where the 13092 VM page cache was not coherent with the file system buffer cache 13093 like early versions of FreeBSD and possibly contemporary NetBSD.) 13094 For shared mappings, we should conversely verify that changes get 13095 propagated back to all the places they're supposed to be. 13096 13097 Grep wants private fixed already mapped. 13098 The main things grep needs to know about mmap are: 13099 * does it exist and is it safe to write into the mmap'd area 13100 * how to use it (BSD variants) */ 13101 13102#include <fcntl.h> 13103#include <sys/mman.h> 13104 13105#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13106char *malloc (); 13107#endif 13108 13109/* This mess was copied from the GNU getpagesize.h. */ 13110#ifndef HAVE_GETPAGESIZE 13111# ifdef _SC_PAGESIZE 13112# define getpagesize() sysconf(_SC_PAGESIZE) 13113# else /* no _SC_PAGESIZE */ 13114# ifdef HAVE_SYS_PARAM_H 13115# include <sys/param.h> 13116# ifdef EXEC_PAGESIZE 13117# define getpagesize() EXEC_PAGESIZE 13118# else /* no EXEC_PAGESIZE */ 13119# ifdef NBPG 13120# define getpagesize() NBPG * CLSIZE 13121# ifndef CLSIZE 13122# define CLSIZE 1 13123# endif /* no CLSIZE */ 13124# else /* no NBPG */ 13125# ifdef NBPC 13126# define getpagesize() NBPC 13127# else /* no NBPC */ 13128# ifdef PAGESIZE 13129# define getpagesize() PAGESIZE 13130# endif /* PAGESIZE */ 13131# endif /* no NBPC */ 13132# endif /* no NBPG */ 13133# endif /* no EXEC_PAGESIZE */ 13134# else /* no HAVE_SYS_PARAM_H */ 13135# define getpagesize() 8192 /* punt totally */ 13136# endif /* no HAVE_SYS_PARAM_H */ 13137# endif /* no _SC_PAGESIZE */ 13138 13139#endif /* no HAVE_GETPAGESIZE */ 13140 13141int 13142main () 13143{ 13144 char *data, *data2, *data3; 13145 const char *cdata2; 13146 int i, pagesize; 13147 int fd, fd2; 13148 13149 pagesize = getpagesize (); 13150 13151 /* First, make a file with some known garbage in it. */ 13152 data = (char *) malloc (pagesize); 13153 if (!data) 13154 return 1; 13155 for (i = 0; i < pagesize; ++i) 13156 *(data + i) = rand (); 13157 umask (0); 13158 fd = creat ("conftest.mmap", 0600); 13159 if (fd < 0) 13160 return 2; 13161 if (write (fd, data, pagesize) != pagesize) 13162 return 3; 13163 close (fd); 13164 13165 /* Next, check that the tail of a page is zero-filled. File must have 13166 non-zero length, otherwise we risk SIGBUS for entire page. */ 13167 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13168 if (fd2 < 0) 13169 return 4; 13170 cdata2 = ""; 13171 if (write (fd2, cdata2, 1) != 1) 13172 return 5; 13173 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13174 if (data2 == MAP_FAILED) 13175 return 6; 13176 for (i = 0; i < pagesize; ++i) 13177 if (*(data2 + i)) 13178 return 7; 13179 close (fd2); 13180 if (munmap (data2, pagesize)) 13181 return 8; 13182 13183 /* Next, try to mmap the file at a fixed address which already has 13184 something else allocated at it. If we can, also make sure that 13185 we see the same garbage. */ 13186 fd = open ("conftest.mmap", O_RDWR); 13187 if (fd < 0) 13188 return 9; 13189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13190 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13191 return 10; 13192 for (i = 0; i < pagesize; ++i) 13193 if (*(data + i) != *(data2 + i)) 13194 return 11; 13195 13196 /* Finally, make sure that changes to the mapped area do not 13197 percolate back to the file as seen by read(). (This is a bug on 13198 some variants of i386 svr4.0.) */ 13199 for (i = 0; i < pagesize; ++i) 13200 *(data2 + i) = *(data2 + i) + 1; 13201 data3 = (char *) malloc (pagesize); 13202 if (!data3) 13203 return 12; 13204 if (read (fd, data3, pagesize) != pagesize) 13205 return 13; 13206 for (i = 0; i < pagesize; ++i) 13207 if (*(data + i) != *(data3 + i)) 13208 return 14; 13209 close (fd); 13210 return 0; 13211} 13212_ACEOF 13213if ac_fn_c_try_run "$LINENO"; then : 13214 ac_cv_func_mmap_fixed_mapped=yes 13215else 13216 ac_cv_func_mmap_fixed_mapped=no 13217fi 13218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13219 conftest.$ac_objext conftest.beam conftest.$ac_ext 13220fi 13221 13222fi 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13224$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13225if test $ac_cv_func_mmap_fixed_mapped = yes; then 13226 13227$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13228 13229fi 13230rm -f conftest.mmap conftest.txt 13231 13232 for ac_header in vfork.h 13233do : 13234 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 13235if test "x$ac_cv_header_vfork_h" = xyes; then : 13236 cat >>confdefs.h <<_ACEOF 13237#define HAVE_VFORK_H 1 13238_ACEOF 13239 13240fi 13241 13242done 13243 13244for ac_func in fork vfork 13245do : 13246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13247ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13248if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13249 cat >>confdefs.h <<_ACEOF 13250#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13251_ACEOF 13252 13253fi 13254done 13255 13256if test "x$ac_cv_func_fork" = xyes; then 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 13258$as_echo_n "checking for working fork... " >&6; } 13259if ${ac_cv_func_fork_works+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261else 13262 if test "$cross_compiling" = yes; then : 13263 ac_cv_func_fork_works=cross 13264else 13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267$ac_includes_default 13268int 13269main () 13270{ 13271 13272 /* By Ruediger Kuhlmann. */ 13273 return fork () < 0; 13274 13275 ; 13276 return 0; 13277} 13278_ACEOF 13279if ac_fn_c_try_run "$LINENO"; then : 13280 ac_cv_func_fork_works=yes 13281else 13282 ac_cv_func_fork_works=no 13283fi 13284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13285 conftest.$ac_objext conftest.beam conftest.$ac_ext 13286fi 13287 13288fi 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 13290$as_echo "$ac_cv_func_fork_works" >&6; } 13291 13292else 13293 ac_cv_func_fork_works=$ac_cv_func_fork 13294fi 13295if test "x$ac_cv_func_fork_works" = xcross; then 13296 case $host in 13297 *-*-amigaos* | *-*-msdosdjgpp*) 13298 # Override, as these systems have only a dummy fork() stub 13299 ac_cv_func_fork_works=no 13300 ;; 13301 *) 13302 ac_cv_func_fork_works=yes 13303 ;; 13304 esac 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13306$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13307fi 13308ac_cv_func_vfork_works=$ac_cv_func_vfork 13309if test "x$ac_cv_func_vfork" = xyes; then 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 13311$as_echo_n "checking for working vfork... " >&6; } 13312if ${ac_cv_func_vfork_works+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 if test "$cross_compiling" = yes; then : 13316 ac_cv_func_vfork_works=cross 13317else 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320/* Thanks to Paul Eggert for this test. */ 13321$ac_includes_default 13322#include <sys/wait.h> 13323#ifdef HAVE_VFORK_H 13324# include <vfork.h> 13325#endif 13326/* On some sparc systems, changes by the child to local and incoming 13327 argument registers are propagated back to the parent. The compiler 13328 is told about this with #include <vfork.h>, but some compilers 13329 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 13330 static variable whose address is put into a register that is 13331 clobbered by the vfork. */ 13332static void 13333#ifdef __cplusplus 13334sparc_address_test (int arg) 13335# else 13336sparc_address_test (arg) int arg; 13337#endif 13338{ 13339 static pid_t child; 13340 if (!child) { 13341 child = vfork (); 13342 if (child < 0) { 13343 perror ("vfork"); 13344 _exit(2); 13345 } 13346 if (!child) { 13347 arg = getpid(); 13348 write(-1, "", 0); 13349 _exit (arg); 13350 } 13351 } 13352} 13353 13354int 13355main () 13356{ 13357 pid_t parent = getpid (); 13358 pid_t child; 13359 13360 sparc_address_test (0); 13361 13362 child = vfork (); 13363 13364 if (child == 0) { 13365 /* Here is another test for sparc vfork register problems. This 13366 test uses lots of local variables, at least as many local 13367 variables as main has allocated so far including compiler 13368 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 13369 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 13370 reuse the register of parent for one of the local variables, 13371 since it will think that parent can't possibly be used any more 13372 in this routine. Assigning to the local variable will thus 13373 munge parent in the parent process. */ 13374 pid_t 13375 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 13376 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 13377 /* Convince the compiler that p..p7 are live; otherwise, it might 13378 use the same hardware register for all 8 local variables. */ 13379 if (p != p1 || p != p2 || p != p3 || p != p4 13380 || p != p5 || p != p6 || p != p7) 13381 _exit(1); 13382 13383 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 13384 from child file descriptors. If the child closes a descriptor 13385 before it execs or exits, this munges the parent's descriptor 13386 as well. Test for this by closing stdout in the child. */ 13387 _exit(close(fileno(stdout)) != 0); 13388 } else { 13389 int status; 13390 struct stat st; 13391 13392 while (wait(&status) != child) 13393 ; 13394 return ( 13395 /* Was there some problem with vforking? */ 13396 child < 0 13397 13398 /* Did the child fail? (This shouldn't happen.) */ 13399 || status 13400 13401 /* Did the vfork/compiler bug occur? */ 13402 || parent != getpid() 13403 13404 /* Did the file descriptor bug occur? */ 13405 || fstat(fileno(stdout), &st) != 0 13406 ); 13407 } 13408} 13409_ACEOF 13410if ac_fn_c_try_run "$LINENO"; then : 13411 ac_cv_func_vfork_works=yes 13412else 13413 ac_cv_func_vfork_works=no 13414fi 13415rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13416 conftest.$ac_objext conftest.beam conftest.$ac_ext 13417fi 13418 13419fi 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 13421$as_echo "$ac_cv_func_vfork_works" >&6; } 13422 13423fi; 13424if test "x$ac_cv_func_fork_works" = xcross; then 13425 ac_cv_func_vfork_works=$ac_cv_func_vfork 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13427$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13428fi 13429 13430if test "x$ac_cv_func_vfork_works" = xyes; then 13431 13432$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 13433 13434else 13435 13436$as_echo "#define vfork fork" >>confdefs.h 13437 13438fi 13439if test "x$ac_cv_func_fork_works" = xyes; then 13440 13441$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 13442 13443fi 13444 13445 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ 13446 ptrace64 sbrk setns sigaltstack sigprocmask \ 13447 setpgid setpgrp getrusage getauxval 13448do : 13449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13451if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13452 cat >>confdefs.h <<_ACEOF 13453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13454_ACEOF 13455 13456fi 13457done 13458 13459 13460 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> 13461" 13462if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then : 13463 ac_have_decl=1 13464else 13465 ac_have_decl=0 13466fi 13467 13468cat >>confdefs.h <<_ACEOF 13469#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl 13470_ACEOF 13471 13472 13473 if test "$cross_compiling" = yes; then : 13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13475/* end confdefs.h. */ 13476#include <sys/personality.h> 13477int 13478main () 13479{ 13480 13481 # if !HAVE_DECL_ADDR_NO_RANDOMIZE 13482 # define ADDR_NO_RANDOMIZE 0x0040000 13483 # endif 13484 /* Test the flag could be set and stays set. */ 13485 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); 13486 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) 13487 return 1 13488 ; 13489 return 0; 13490} 13491_ACEOF 13492if ac_fn_c_try_link "$LINENO"; then : 13493 have_personality=true 13494else 13495 have_personality=false 13496fi 13497rm -f core conftest.err conftest.$ac_objext \ 13498 conftest$ac_exeext conftest.$ac_ext 13499else 13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13501/* end confdefs.h. */ 13502#include <sys/personality.h> 13503int 13504main () 13505{ 13506 13507 # if !HAVE_DECL_ADDR_NO_RANDOMIZE 13508 # define ADDR_NO_RANDOMIZE 0x0040000 13509 # endif 13510 /* Test the flag could be set and stays set. */ 13511 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); 13512 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) 13513 return 1 13514 ; 13515 return 0; 13516} 13517_ACEOF 13518if ac_fn_c_try_run "$LINENO"; then : 13519 have_personality=true 13520else 13521 have_personality=false 13522fi 13523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13524 conftest.$ac_objext conftest.beam conftest.$ac_ext 13525fi 13526 13527 if $have_personality 13528 then 13529 13530$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h 13531 13532 fi 13533 13534 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 13535if test "x$ac_cv_have_decl_strstr" = xyes; then : 13536 ac_have_decl=1 13537else 13538 ac_have_decl=0 13539fi 13540 13541cat >>confdefs.h <<_ACEOF 13542#define HAVE_DECL_STRSTR $ac_have_decl 13543_ACEOF 13544 13545 13546 # ----------------------- # 13547 # Checks for structures. # 13548 # ----------------------- # 13549 13550 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 13551if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 13552 13553cat >>confdefs.h <<_ACEOF 13554#define HAVE_STRUCT_STAT_ST_BLOCKS 1 13555_ACEOF 13556 13557 13558fi 13559ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 13560if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 13561 13562cat >>confdefs.h <<_ACEOF 13563#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13564_ACEOF 13565 13566 13567fi 13568 13569 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5 13571$as_echo_n "checking for library containing kinfo_getfile... " >&6; } 13572if ${ac_cv_search_kinfo_getfile+:} false; then : 13573 $as_echo_n "(cached) " >&6 13574else 13575 ac_func_search_save_LIBS=$LIBS 13576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13577/* end confdefs.h. */ 13578 13579/* Override any GCC internal prototype to avoid an error. 13580 Use char because int might match the return type of a GCC 13581 builtin and then its argument prototype would still apply. */ 13582#ifdef __cplusplus 13583extern "C" 13584#endif 13585char kinfo_getfile (); 13586int 13587main () 13588{ 13589return kinfo_getfile (); 13590 ; 13591 return 0; 13592} 13593_ACEOF 13594for ac_lib in '' util util-freebsd; do 13595 if test -z "$ac_lib"; then 13596 ac_res="none required" 13597 else 13598 ac_res=-l$ac_lib 13599 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13600 fi 13601 if ac_fn_c_try_link "$LINENO"; then : 13602 ac_cv_search_kinfo_getfile=$ac_res 13603fi 13604rm -f core conftest.err conftest.$ac_objext \ 13605 conftest$ac_exeext 13606 if ${ac_cv_search_kinfo_getfile+:} false; then : 13607 break 13608fi 13609done 13610if ${ac_cv_search_kinfo_getfile+:} false; then : 13611 13612else 13613 ac_cv_search_kinfo_getfile=no 13614fi 13615rm conftest.$ac_ext 13616LIBS=$ac_func_search_save_LIBS 13617fi 13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5 13619$as_echo "$ac_cv_search_kinfo_getfile" >&6; } 13620ac_res=$ac_cv_search_kinfo_getfile 13621if test "$ac_res" != no; then : 13622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13623 13624$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h 13625 13626fi 13627 13628 13629 # Check for std::thread. This does not work on some platforms, like 13630 # mingw and DJGPP. 13631 ac_ext=cpp 13632ac_cpp='$CXXCPP $CPPFLAGS' 13633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13636 13637 13638 13639 13640 13641ac_ext=c 13642ac_cpp='$CPP $CPPFLAGS' 13643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13645ac_compiler_gnu=$ac_cv_c_compiler_gnu 13646 13647ax_pthread_ok=no 13648 13649# We used to check for pthread.h first, but this fails if pthread.h 13650# requires special compiler flags (e.g. on Tru64 or Sequent). 13651# It gets checked for in the link test anyway. 13652 13653# First of all, check if the user has set any of the PTHREAD_LIBS, 13654# etcetera environment variables, and if threads linking works using 13655# them: 13656if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 13657 ax_pthread_save_CC="$CC" 13658 ax_pthread_save_CFLAGS="$CFLAGS" 13659 ax_pthread_save_LIBS="$LIBS" 13660 if test "x$PTHREAD_CC" != "x"; then : 13661 CC="$PTHREAD_CC" 13662fi 13663 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13664 LIBS="$PTHREAD_LIBS $LIBS" 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 13666$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 13667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13668/* end confdefs.h. */ 13669 13670/* Override any GCC internal prototype to avoid an error. 13671 Use char because int might match the return type of a GCC 13672 builtin and then its argument prototype would still apply. */ 13673#ifdef __cplusplus 13674extern "C" 13675#endif 13676char pthread_join (); 13677int 13678main () 13679{ 13680return pthread_join (); 13681 ; 13682 return 0; 13683} 13684_ACEOF 13685if ac_fn_c_try_link "$LINENO"; then : 13686 ax_pthread_ok=yes 13687fi 13688rm -f core conftest.err conftest.$ac_objext \ 13689 conftest$ac_exeext conftest.$ac_ext 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13691$as_echo "$ax_pthread_ok" >&6; } 13692 if test "x$ax_pthread_ok" = "xno"; then 13693 PTHREAD_LIBS="" 13694 PTHREAD_CFLAGS="" 13695 fi 13696 CC="$ax_pthread_save_CC" 13697 CFLAGS="$ax_pthread_save_CFLAGS" 13698 LIBS="$ax_pthread_save_LIBS" 13699fi 13700 13701# We must check for the threads library under a number of different 13702# names; the ordering is very important because some systems 13703# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13704# libraries is broken (non-POSIX). 13705 13706# Create a list of thread flags to try. Items starting with a "-" are 13707# C compiler flags, and other items are library names, except for "none" 13708# which indicates that we try without any flags at all, and "pthread-config" 13709# which is a program returning the flags for the Pth emulation library. 13710 13711ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 13712 13713# The ordering *is* (sometimes) important. Some notes on the 13714# individual items follow: 13715 13716# pthreads: AIX (must check this before -lpthread) 13717# none: in case threads are in libc; should be tried before -Kthread and 13718# other compiler flags to prevent continual compiler warnings 13719# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13720# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 13721# (Note: HP C rejects this with "bad form for `-t' option") 13722# -pthreads: Solaris/gcc (Note: HP C also rejects) 13723# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13724# doesn't hurt to check since this sometimes defines pthreads and 13725# -D_REENTRANT too), HP C (must be checked before -lpthread, which 13726# is present but should not be used directly; and before -mthreads, 13727# because the compiler interprets this as "-mt" + "-hreads") 13728# -mthreads: Mingw32/gcc, Lynx/gcc 13729# pthread: Linux, etcetera 13730# --thread-safe: KAI C++ 13731# pthread-config: use pthread-config program (for GNU Pth library) 13732 13733case $host_os in 13734 13735 freebsd*) 13736 13737 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13738 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13739 13740 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 13741 ;; 13742 13743 hpux*) 13744 13745 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 13746 # multi-threading and also sets -lpthread." 13747 13748 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 13749 ;; 13750 13751 openedition*) 13752 13753 # IBM z/OS requires a feature-test macro to be defined in order to 13754 # enable POSIX threads at all, so give the user a hint if this is 13755 # not set. (We don't define these ourselves, as they can affect 13756 # other portions of the system API in unpredictable ways.) 13757 13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13759/* end confdefs.h. */ 13760 13761# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 13762 AX_PTHREAD_ZOS_MISSING 13763# endif 13764 13765_ACEOF 13766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13767 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 13769$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 13770fi 13771rm -f conftest* 13772 13773 ;; 13774 13775 solaris*) 13776 13777 # On Solaris (at least, for some versions), libc contains stubbed 13778 # (non-functional) versions of the pthreads routines, so link-based 13779 # tests will erroneously succeed. (N.B.: The stubs are missing 13780 # pthread_cleanup_push, or rather a function called by this macro, 13781 # so we could check for that, but who knows whether they'll stub 13782 # that too in a future libc.) So we'll check first for the 13783 # standard Solaris way of linking pthreads (-mt -lpthread). 13784 13785 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 13786 ;; 13787esac 13788 13789# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 13790 13791if test "x$GCC" = "xyes"; then : 13792 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 13793fi 13794 13795# The presence of a feature test macro requesting re-entrant function 13796# definitions is, on some systems, a strong hint that pthreads support is 13797# correctly enabled 13798 13799case $host_os in 13800 darwin* | hpux* | linux* | osf* | solaris*) 13801 ax_pthread_check_macro="_REENTRANT" 13802 ;; 13803 13804 aix*) 13805 ax_pthread_check_macro="_THREAD_SAFE" 13806 ;; 13807 13808 *) 13809 ax_pthread_check_macro="--" 13810 ;; 13811esac 13812if test "x$ax_pthread_check_macro" = "x--"; then : 13813 ax_pthread_check_cond=0 13814else 13815 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 13816fi 13817 13818# Are we compiling with Clang? 13819 13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 13821$as_echo_n "checking whether $CC is Clang... " >&6; } 13822if ${ax_cv_PTHREAD_CLANG+:} false; then : 13823 $as_echo_n "(cached) " >&6 13824else 13825 ax_cv_PTHREAD_CLANG=no 13826 # Note that Autoconf sets GCC=yes for Clang as well as GCC 13827 if test "x$GCC" = "xyes"; then 13828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13829/* end confdefs.h. */ 13830/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 13831# if defined(__clang__) && defined(__llvm__) 13832 AX_PTHREAD_CC_IS_CLANG 13833# endif 13834 13835_ACEOF 13836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13837 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 13838 ax_cv_PTHREAD_CLANG=yes 13839fi 13840rm -f conftest* 13841 13842 fi 13843 13844fi 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 13846$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 13847ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 13848 13849ax_pthread_clang_warning=no 13850 13851# Clang needs special handling, because older versions handle the -pthread 13852# option in a rather... idiosyncratic way 13853 13854if test "x$ax_pthread_clang" = "xyes"; then 13855 13856 # Clang takes -pthread; it has never supported any other flag 13857 13858 # (Note 1: This will need to be revisited if a system that Clang 13859 # supports has POSIX threads in a separate library. This tends not 13860 # to be the way of modern systems, but it's conceivable.) 13861 13862 # (Note 2: On some systems, notably Darwin, -pthread is not needed 13863 # to get POSIX threads support; the API is always present and 13864 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 13865 # -pthread does define _REENTRANT, and while the Darwin headers 13866 # ignore this macro, third-party headers might not.) 13867 13868 PTHREAD_CFLAGS="-pthread" 13869 PTHREAD_LIBS= 13870 13871 ax_pthread_ok=yes 13872 13873 # However, older versions of Clang make a point of warning the user 13874 # that, in an invocation where only linking and no compilation is 13875 # taking place, the -pthread option has no effect ("argument unused 13876 # during compilation"). They expect -pthread to be passed in only 13877 # when source code is being compiled. 13878 # 13879 # Problem is, this is at odds with the way Automake and most other 13880 # C build frameworks function, which is that the same flags used in 13881 # compilation (CFLAGS) are also used in linking. Many systems 13882 # supported by AX_PTHREAD require exactly this for POSIX threads 13883 # support, and in fact it is often not straightforward to specify a 13884 # flag that is used only in the compilation phase and not in 13885 # linking. Such a scenario is extremely rare in practice. 13886 # 13887 # Even though use of the -pthread flag in linking would only print 13888 # a warning, this can be a nuisance for well-run software projects 13889 # that build with -Werror. So if the active version of Clang has 13890 # this misfeature, we search for an option to squash it. 13891 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 13893$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 13894if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 13895 $as_echo_n "(cached) " >&6 13896else 13897 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 13898 # Create an alternate version of $ac_link that compiles and 13899 # links in two steps (.c -> .o, .o -> exe) instead of one 13900 # (.c -> exe), because the warning occurs only in the second 13901 # step 13902 ax_pthread_save_ac_link="$ac_link" 13903 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 13904 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 13905 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 13906 ax_pthread_save_CFLAGS="$CFLAGS" 13907 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 13908 if test "x$ax_pthread_try" = "xunknown"; then : 13909 break 13910fi 13911 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 13912 ac_link="$ax_pthread_save_ac_link" 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int main(void){return 0;} 13916_ACEOF 13917if ac_fn_c_try_link "$LINENO"; then : 13918 ac_link="$ax_pthread_2step_ac_link" 13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13920/* end confdefs.h. */ 13921int main(void){return 0;} 13922_ACEOF 13923if ac_fn_c_try_link "$LINENO"; then : 13924 break 13925fi 13926rm -f core conftest.err conftest.$ac_objext \ 13927 conftest$ac_exeext conftest.$ac_ext 13928 13929fi 13930rm -f core conftest.err conftest.$ac_objext \ 13931 conftest$ac_exeext conftest.$ac_ext 13932 done 13933 ac_link="$ax_pthread_save_ac_link" 13934 CFLAGS="$ax_pthread_save_CFLAGS" 13935 if test "x$ax_pthread_try" = "x"; then : 13936 ax_pthread_try=no 13937fi 13938 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 13939 13940fi 13941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 13942$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 13943 13944 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 13945 no | unknown) ;; 13946 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 13947 esac 13948 13949fi # $ax_pthread_clang = yes 13950 13951if test "x$ax_pthread_ok" = "xno"; then 13952for ax_pthread_try_flag in $ax_pthread_flags; do 13953 13954 case $ax_pthread_try_flag in 13955 none) 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13957$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13958 ;; 13959 13960 -mt,pthread) 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 13962$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 13963 PTHREAD_CFLAGS="-mt" 13964 PTHREAD_LIBS="-lpthread" 13965 ;; 13966 13967 -*) 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 13969$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 13970 PTHREAD_CFLAGS="$ax_pthread_try_flag" 13971 ;; 13972 13973 pthread-config) 13974 # Extract the first word of "pthread-config", so it can be a program name with args. 13975set dummy pthread-config; ac_word=$2 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13977$as_echo_n "checking for $ac_word... " >&6; } 13978if ${ac_cv_prog_ax_pthread_config+:} false; then : 13979 $as_echo_n "(cached) " >&6 13980else 13981 if test -n "$ax_pthread_config"; then 13982 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 13983else 13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13985for as_dir in $PATH 13986do 13987 IFS=$as_save_IFS 13988 test -z "$as_dir" && as_dir=. 13989 for ac_exec_ext in '' $ac_executable_extensions; do 13990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13991 ac_cv_prog_ax_pthread_config="yes" 13992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13993 break 2 13994 fi 13995done 13996 done 13997IFS=$as_save_IFS 13998 13999 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 14000fi 14001fi 14002ax_pthread_config=$ac_cv_prog_ax_pthread_config 14003if test -n "$ax_pthread_config"; then 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 14005$as_echo "$ax_pthread_config" >&6; } 14006else 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14008$as_echo "no" >&6; } 14009fi 14010 14011 14012 if test "x$ax_pthread_config" = "xno"; then : 14013 continue 14014fi 14015 PTHREAD_CFLAGS="`pthread-config --cflags`" 14016 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 14017 ;; 14018 14019 *) 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 14021$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 14022 PTHREAD_LIBS="-l$ax_pthread_try_flag" 14023 ;; 14024 esac 14025 14026 ax_pthread_save_CFLAGS="$CFLAGS" 14027 ax_pthread_save_LIBS="$LIBS" 14028 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14029 LIBS="$PTHREAD_LIBS $LIBS" 14030 14031 # Check for various functions. We must include pthread.h, 14032 # since some functions may be macros. (On the Sequent, we 14033 # need a special flag -Kthread to make this header compile.) 14034 # We check for pthread_join because it is in -lpthread on IRIX 14035 # while pthread_create is in libc. We check for pthread_attr_init 14036 # due to DEC craziness with -lpthreads. We check for 14037 # pthread_cleanup_push because it is one of the few pthread 14038 # functions on Solaris that doesn't have a non-functional libc stub. 14039 # We try pthread_create on general principles. 14040 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043#include <pthread.h> 14044# if $ax_pthread_check_cond 14045# error "$ax_pthread_check_macro must be defined" 14046# endif 14047 static void routine(void *a) { a = 0; } 14048 static void *start_routine(void *a) { return a; } 14049int 14050main () 14051{ 14052pthread_t th; pthread_attr_t attr; 14053 pthread_create(&th, 0, start_routine, 0); 14054 pthread_join(th, 0); 14055 pthread_attr_init(&attr); 14056 pthread_cleanup_push(routine, 0); 14057 pthread_cleanup_pop(0) /* ; */ 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_link "$LINENO"; then : 14063 ax_pthread_ok=yes 14064fi 14065rm -f core conftest.err conftest.$ac_objext \ 14066 conftest$ac_exeext conftest.$ac_ext 14067 14068 CFLAGS="$ax_pthread_save_CFLAGS" 14069 LIBS="$ax_pthread_save_LIBS" 14070 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14072$as_echo "$ax_pthread_ok" >&6; } 14073 if test "x$ax_pthread_ok" = "xyes"; then : 14074 break 14075fi 14076 14077 PTHREAD_LIBS="" 14078 PTHREAD_CFLAGS="" 14079done 14080fi 14081 14082# Various other checks: 14083if test "x$ax_pthread_ok" = "xyes"; then 14084 ax_pthread_save_CFLAGS="$CFLAGS" 14085 ax_pthread_save_LIBS="$LIBS" 14086 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14087 LIBS="$PTHREAD_LIBS $LIBS" 14088 14089 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 14091$as_echo_n "checking for joinable pthread attribute... " >&6; } 14092if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 14093 $as_echo_n "(cached) " >&6 14094else 14095 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 14096 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14098/* end confdefs.h. */ 14099#include <pthread.h> 14100int 14101main () 14102{ 14103int attr = $ax_pthread_attr; return attr /* ; */ 14104 ; 14105 return 0; 14106} 14107_ACEOF 14108if ac_fn_c_try_link "$LINENO"; then : 14109 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 14110fi 14111rm -f core conftest.err conftest.$ac_objext \ 14112 conftest$ac_exeext conftest.$ac_ext 14113 done 14114 14115fi 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 14117$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 14118 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 14119 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 14120 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 14121 14122cat >>confdefs.h <<_ACEOF 14123#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 14124_ACEOF 14125 14126 ax_pthread_joinable_attr_defined=yes 14127 14128fi 14129 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 14131$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 14132if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134else 14135 ax_cv_PTHREAD_SPECIAL_FLAGS=no 14136 case $host_os in 14137 solaris*) 14138 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 14139 ;; 14140 esac 14141 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 14144$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 14145 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 14146 test "x$ax_pthread_special_flags_added" != "xyes"; then : 14147 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 14148 ax_pthread_special_flags_added=yes 14149fi 14150 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 14152$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 14153if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 14154 $as_echo_n "(cached) " >&6 14155else 14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14157/* end confdefs.h. */ 14158#include <pthread.h> 14159int 14160main () 14161{ 14162int i = PTHREAD_PRIO_INHERIT; 14163 ; 14164 return 0; 14165} 14166_ACEOF 14167if ac_fn_c_try_link "$LINENO"; then : 14168 ax_cv_PTHREAD_PRIO_INHERIT=yes 14169else 14170 ax_cv_PTHREAD_PRIO_INHERIT=no 14171fi 14172rm -f core conftest.err conftest.$ac_objext \ 14173 conftest$ac_exeext conftest.$ac_ext 14174 14175fi 14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 14177$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 14178 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 14179 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 14180 14181$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 14182 14183 ax_pthread_prio_inherit_defined=yes 14184 14185fi 14186 14187 CFLAGS="$ax_pthread_save_CFLAGS" 14188 LIBS="$ax_pthread_save_LIBS" 14189 14190 # More AIX lossage: compile with *_r variant 14191 if test "x$GCC" != "xyes"; then 14192 case $host_os in 14193 aix*) 14194 case "x/$CC" in #( 14195 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 14196 #handle absolute path differently from PATH based program lookup 14197 case "x$CC" in #( 14198 x/*) : 14199 if as_fn_executable_p ${CC}_r; then : 14200 PTHREAD_CC="${CC}_r" 14201fi ;; #( 14202 *) : 14203 for ac_prog in ${CC}_r 14204do 14205 # Extract the first word of "$ac_prog", so it can be a program name with args. 14206set dummy $ac_prog; ac_word=$2 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14208$as_echo_n "checking for $ac_word... " >&6; } 14209if ${ac_cv_prog_PTHREAD_CC+:} false; then : 14210 $as_echo_n "(cached) " >&6 14211else 14212 if test -n "$PTHREAD_CC"; then 14213 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 14214else 14215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14216for as_dir in $PATH 14217do 14218 IFS=$as_save_IFS 14219 test -z "$as_dir" && as_dir=. 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14222 ac_cv_prog_PTHREAD_CC="$ac_prog" 14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226done 14227 done 14228IFS=$as_save_IFS 14229 14230fi 14231fi 14232PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 14233if test -n "$PTHREAD_CC"; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 14235$as_echo "$PTHREAD_CC" >&6; } 14236else 14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14238$as_echo "no" >&6; } 14239fi 14240 14241 14242 test -n "$PTHREAD_CC" && break 14243done 14244test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14245 ;; 14246esac ;; #( 14247 *) : 14248 ;; 14249esac 14250 ;; 14251 esac 14252 fi 14253fi 14254 14255test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 14256 14257 14258 14259 14260 14261# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 14262if test "x$ax_pthread_ok" = "xyes"; then 14263 threads=yes 14264 : 14265else 14266 ax_pthread_ok=no 14267 threads=no 14268fi 14269ac_ext=cpp 14270ac_cpp='$CXXCPP $CPPFLAGS' 14271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14274 14275 14276 if test "$threads" = "yes"; then 14277 save_LIBS="$LIBS" 14278 LIBS="$PTHREAD_LIBS $LIBS" 14279 save_CXXFLAGS="$CXXFLAGS" 14280 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS" 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5 14282$as_echo_n "checking for std::thread... " >&6; } 14283if ${gdb_cv_cxx_std_thread+:} false; then : 14284 $as_echo_n "(cached) " >&6 14285else 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288#include <thread> 14289 void callback() { } 14290int 14291main () 14292{ 14293std::thread t(callback); 14294 ; 14295 return 0; 14296} 14297_ACEOF 14298if ac_fn_cxx_try_compile "$LINENO"; then : 14299 gdb_cv_cxx_std_thread=yes 14300else 14301 gdb_cv_cxx_std_thread=no 14302fi 14303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14304fi 14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5 14306$as_echo "$gdb_cv_cxx_std_thread" >&6; } 14307 14308 # This check must be here, while LIBS includes any necessary 14309 # threading library. 14310 for ac_func in pthread_sigmask pthread_setname_np 14311do : 14312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14313ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 14314if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14315 cat >>confdefs.h <<_ACEOF 14316#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14317_ACEOF 14318 14319fi 14320done 14321 14322 14323 LIBS="$save_LIBS" 14324 CXXFLAGS="$save_CXXFLAGS" 14325 fi 14326 if test "$gdb_cv_cxx_std_thread" = "yes"; then 14327 14328$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h 14329 14330 fi 14331 ac_ext=c 14332ac_cpp='$CPP $CPPFLAGS' 14333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14335ac_compiler_gnu=$ac_cv_c_compiler_gnu 14336 14337 14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 14339$as_echo_n "checking for sigsetjmp... " >&6; } 14340if ${gdb_cv_func_sigsetjmp+:} false; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14344/* end confdefs.h. */ 14345 14346 #include <setjmp.h> 14347 14348int 14349main () 14350{ 14351sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 14352 ; 14353 return 0; 14354} 14355_ACEOF 14356if ac_fn_c_try_compile "$LINENO"; then : 14357 gdb_cv_func_sigsetjmp=yes 14358else 14359 gdb_cv_func_sigsetjmp=no 14360fi 14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14362fi 14363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 14364$as_echo "$gdb_cv_func_sigsetjmp" >&6; } 14365 if test "$gdb_cv_func_sigsetjmp" = "yes"; then 14366 14367$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 14368 14369 fi 14370 14371 14372# Check whether --with-intel_pt was given. 14373if test "${with_intel_pt+set}" = set; then : 14374 withval=$with_intel_pt; 14375else 14376 with_intel_pt=auto 14377fi 14378 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5 14380$as_echo_n "checking whether to use intel pt... " >&6; } 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5 14382$as_echo "$with_intel_pt" >&6; } 14383 14384 if test "${with_intel_pt}" = no; then 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5 14386$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;} 14387 HAVE_LIBIPT=no 14388 else 14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14390/* end confdefs.h. */ 14391 14392 #include <linux/perf_event.h> 14393 #ifndef PERF_ATTR_SIZE_VER5 14394 # error 14395 #endif 14396 14397_ACEOF 14398if ac_fn_c_try_cpp "$LINENO"; then : 14399 perf_event=yes 14400else 14401 perf_event=no 14402fi 14403rm -f conftest.err conftest.i conftest.$ac_ext 14404 if test "$perf_event" != yes; then 14405 if test "$with_intel_pt" = yes; then 14406 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5 14407 else 14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5 14409$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;} 14410 fi 14411 fi 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 use_additional=yes 14422 14423 acl_save_prefix="$prefix" 14424 prefix="$acl_final_prefix" 14425 acl_save_exec_prefix="$exec_prefix" 14426 exec_prefix="$acl_final_exec_prefix" 14427 14428 eval additional_includedir=\"$includedir\" 14429 eval additional_libdir=\"$libdir\" 14430 14431 exec_prefix="$acl_save_exec_prefix" 14432 prefix="$acl_save_prefix" 14433 14434 14435# Check whether --with-libipt-prefix was given. 14436if test "${with_libipt_prefix+set}" = set; then : 14437 withval=$with_libipt_prefix; 14438 if test "X$withval" = "Xno"; then 14439 use_additional=no 14440 else 14441 if test "X$withval" = "X"; then 14442 14443 acl_save_prefix="$prefix" 14444 prefix="$acl_final_prefix" 14445 acl_save_exec_prefix="$exec_prefix" 14446 exec_prefix="$acl_final_exec_prefix" 14447 14448 eval additional_includedir=\"$includedir\" 14449 eval additional_libdir=\"$libdir\" 14450 14451 exec_prefix="$acl_save_exec_prefix" 14452 prefix="$acl_save_prefix" 14453 14454 else 14455 additional_includedir="$withval/include" 14456 additional_libdir="$withval/lib" 14457 fi 14458 fi 14459 14460fi 14461 14462 14463# Check whether --with-libipt-type was given. 14464if test "${with_libipt_type+set}" = set; then : 14465 withval=$with_libipt_type; with_libipt_type=$withval 14466else 14467 with_libipt_type=auto 14468fi 14469 14470 lib_type=`eval echo \$with_libipt_type` 14471 14472 LIBIPT= 14473 LTLIBIPT= 14474 INCIPT= 14475 rpathdirs= 14476 ltrpathdirs= 14477 names_already_handled= 14478 names_next_round='ipt ' 14479 while test -n "$names_next_round"; do 14480 names_this_round="$names_next_round" 14481 names_next_round= 14482 for name in $names_this_round; do 14483 already_handled= 14484 for n in $names_already_handled; do 14485 if test "$n" = "$name"; then 14486 already_handled=yes 14487 break 14488 fi 14489 done 14490 if test -z "$already_handled"; then 14491 names_already_handled="$names_already_handled $name" 14492 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14493 eval value=\"\$HAVE_LIB$uppername\" 14494 if test -n "$value"; then 14495 if test "$value" = yes; then 14496 eval value=\"\$LIB$uppername\" 14497 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value" 14498 eval value=\"\$LTLIB$uppername\" 14499 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value" 14500 else 14501 : 14502 fi 14503 else 14504 found_dir= 14505 found_la= 14506 found_so= 14507 found_a= 14508 if test $use_additional = yes; then 14509 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 14510 found_dir="$additional_libdir" 14511 found_so="$additional_libdir/lib$name.$shlibext" 14512 if test -f "$additional_libdir/lib$name.la"; then 14513 found_la="$additional_libdir/lib$name.la" 14514 fi 14515 elif test x$lib_type != xshared; then 14516 if test -f "$additional_libdir/lib$name.$libext"; then 14517 found_dir="$additional_libdir" 14518 found_a="$additional_libdir/lib$name.$libext" 14519 if test -f "$additional_libdir/lib$name.la"; then 14520 found_la="$additional_libdir/lib$name.la" 14521 fi 14522 fi 14523 fi 14524 fi 14525 if test "X$found_dir" = "X"; then 14526 for x in $LDFLAGS $LTLIBIPT; do 14527 14528 acl_save_prefix="$prefix" 14529 prefix="$acl_final_prefix" 14530 acl_save_exec_prefix="$exec_prefix" 14531 exec_prefix="$acl_final_exec_prefix" 14532 eval x=\"$x\" 14533 exec_prefix="$acl_save_exec_prefix" 14534 prefix="$acl_save_prefix" 14535 14536 case "$x" in 14537 -L*) 14538 dir=`echo "X$x" | sed -e 's/^X-L//'` 14539 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 14540 found_dir="$dir" 14541 found_so="$dir/lib$name.$shlibext" 14542 if test -f "$dir/lib$name.la"; then 14543 found_la="$dir/lib$name.la" 14544 fi 14545 elif test x$lib_type != xshared; then 14546 if test -f "$dir/lib$name.$libext"; then 14547 found_dir="$dir" 14548 found_a="$dir/lib$name.$libext" 14549 if test -f "$dir/lib$name.la"; then 14550 found_la="$dir/lib$name.la" 14551 fi 14552 fi 14553 fi 14554 ;; 14555 esac 14556 if test "X$found_dir" != "X"; then 14557 break 14558 fi 14559 done 14560 fi 14561 if test "X$found_dir" != "X"; then 14562 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name" 14563 if test "X$found_so" != "X"; then 14564 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14565 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 14566 else 14567 haveit= 14568 for x in $ltrpathdirs; do 14569 if test "X$x" = "X$found_dir"; then 14570 haveit=yes 14571 break 14572 fi 14573 done 14574 if test -z "$haveit"; then 14575 ltrpathdirs="$ltrpathdirs $found_dir" 14576 fi 14577 if test "$hardcode_direct" = yes; then 14578 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 14579 else 14580 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14581 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 14582 haveit= 14583 for x in $rpathdirs; do 14584 if test "X$x" = "X$found_dir"; then 14585 haveit=yes 14586 break 14587 fi 14588 done 14589 if test -z "$haveit"; then 14590 rpathdirs="$rpathdirs $found_dir" 14591 fi 14592 else 14593 haveit= 14594 for x in $LDFLAGS $LIBIPT; do 14595 14596 acl_save_prefix="$prefix" 14597 prefix="$acl_final_prefix" 14598 acl_save_exec_prefix="$exec_prefix" 14599 exec_prefix="$acl_final_exec_prefix" 14600 eval x=\"$x\" 14601 exec_prefix="$acl_save_exec_prefix" 14602 prefix="$acl_save_prefix" 14603 14604 if test "X$x" = "X-L$found_dir"; then 14605 haveit=yes 14606 break 14607 fi 14608 done 14609 if test -z "$haveit"; then 14610 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir" 14611 fi 14612 if test "$hardcode_minus_L" != no; then 14613 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 14614 else 14615 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 14616 fi 14617 fi 14618 fi 14619 fi 14620 else 14621 if test "X$found_a" != "X"; then 14622 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a" 14623 else 14624 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name" 14625 fi 14626 fi 14627 additional_includedir= 14628 case "$found_dir" in 14629 */lib | */lib/) 14630 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14631 additional_includedir="$basedir/include" 14632 ;; 14633 esac 14634 if test "X$additional_includedir" != "X"; then 14635 if test "X$additional_includedir" != "X/usr/include"; then 14636 haveit= 14637 if test "X$additional_includedir" = "X/usr/local/include"; then 14638 if test -n "$GCC"; then 14639 case $host_os in 14640 linux*) haveit=yes;; 14641 esac 14642 fi 14643 fi 14644 if test -z "$haveit"; then 14645 for x in $CPPFLAGS $INCIPT; do 14646 14647 acl_save_prefix="$prefix" 14648 prefix="$acl_final_prefix" 14649 acl_save_exec_prefix="$exec_prefix" 14650 exec_prefix="$acl_final_exec_prefix" 14651 eval x=\"$x\" 14652 exec_prefix="$acl_save_exec_prefix" 14653 prefix="$acl_save_prefix" 14654 14655 if test "X$x" = "X-I$additional_includedir"; then 14656 haveit=yes 14657 break 14658 fi 14659 done 14660 if test -z "$haveit"; then 14661 if test -d "$additional_includedir"; then 14662 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir" 14663 fi 14664 fi 14665 fi 14666 fi 14667 fi 14668 if test -n "$found_la"; then 14669 save_libdir="$libdir" 14670 case "$found_la" in 14671 */* | *\\*) . "$found_la" ;; 14672 *) . "./$found_la" ;; 14673 esac 14674 libdir="$save_libdir" 14675 for dep in $dependency_libs; do 14676 case "$dep" in 14677 -L*) 14678 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14679 if test "X$additional_libdir" != "X/usr/lib"; then 14680 haveit= 14681 if test "X$additional_libdir" = "X/usr/local/lib"; then 14682 if test -n "$GCC"; then 14683 case $host_os in 14684 linux*) haveit=yes;; 14685 esac 14686 fi 14687 fi 14688 if test -z "$haveit"; then 14689 haveit= 14690 for x in $LDFLAGS $LIBIPT; do 14691 14692 acl_save_prefix="$prefix" 14693 prefix="$acl_final_prefix" 14694 acl_save_exec_prefix="$exec_prefix" 14695 exec_prefix="$acl_final_exec_prefix" 14696 eval x=\"$x\" 14697 exec_prefix="$acl_save_exec_prefix" 14698 prefix="$acl_save_prefix" 14699 14700 if test "X$x" = "X-L$additional_libdir"; then 14701 haveit=yes 14702 break 14703 fi 14704 done 14705 if test -z "$haveit"; then 14706 if test -d "$additional_libdir"; then 14707 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir" 14708 fi 14709 fi 14710 haveit= 14711 for x in $LDFLAGS $LTLIBIPT; do 14712 14713 acl_save_prefix="$prefix" 14714 prefix="$acl_final_prefix" 14715 acl_save_exec_prefix="$exec_prefix" 14716 exec_prefix="$acl_final_exec_prefix" 14717 eval x=\"$x\" 14718 exec_prefix="$acl_save_exec_prefix" 14719 prefix="$acl_save_prefix" 14720 14721 if test "X$x" = "X-L$additional_libdir"; then 14722 haveit=yes 14723 break 14724 fi 14725 done 14726 if test -z "$haveit"; then 14727 if test -d "$additional_libdir"; then 14728 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir" 14729 fi 14730 fi 14731 fi 14732 fi 14733 ;; 14734 -R*) 14735 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14736 if test "$enable_rpath" != no; then 14737 haveit= 14738 for x in $rpathdirs; do 14739 if test "X$x" = "X$dir"; then 14740 haveit=yes 14741 break 14742 fi 14743 done 14744 if test -z "$haveit"; then 14745 rpathdirs="$rpathdirs $dir" 14746 fi 14747 haveit= 14748 for x in $ltrpathdirs; do 14749 if test "X$x" = "X$dir"; then 14750 haveit=yes 14751 break 14752 fi 14753 done 14754 if test -z "$haveit"; then 14755 ltrpathdirs="$ltrpathdirs $dir" 14756 fi 14757 fi 14758 ;; 14759 -l*) 14760 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14761 ;; 14762 *.la) 14763 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14764 ;; 14765 *) 14766 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep" 14767 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep" 14768 ;; 14769 esac 14770 done 14771 fi 14772 else 14773 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 14774 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 14775 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name" 14776 else 14777 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext" 14778 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext" 14779 fi 14780 fi 14781 fi 14782 fi 14783 done 14784 done 14785 if test "X$rpathdirs" != "X"; then 14786 if test -n "$hardcode_libdir_separator"; then 14787 alldirs= 14788 for found_dir in $rpathdirs; do 14789 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14790 done 14791 acl_save_libdir="$libdir" 14792 libdir="$alldirs" 14793 eval flag=\"$hardcode_libdir_flag_spec\" 14794 libdir="$acl_save_libdir" 14795 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 14796 else 14797 for found_dir in $rpathdirs; do 14798 acl_save_libdir="$libdir" 14799 libdir="$found_dir" 14800 eval flag=\"$hardcode_libdir_flag_spec\" 14801 libdir="$acl_save_libdir" 14802 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 14803 done 14804 fi 14805 fi 14806 if test "X$ltrpathdirs" != "X"; then 14807 for found_dir in $ltrpathdirs; do 14808 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir" 14809 done 14810 fi 14811 14812 14813 ac_save_CPPFLAGS="$CPPFLAGS" 14814 14815 for element in $INCIPT; do 14816 haveit= 14817 for x in $CPPFLAGS; do 14818 14819 acl_save_prefix="$prefix" 14820 prefix="$acl_final_prefix" 14821 acl_save_exec_prefix="$exec_prefix" 14822 exec_prefix="$acl_final_exec_prefix" 14823 eval x=\"$x\" 14824 exec_prefix="$acl_save_exec_prefix" 14825 prefix="$acl_save_prefix" 14826 14827 if test "X$x" = "X$element"; then 14828 haveit=yes 14829 break 14830 fi 14831 done 14832 if test -z "$haveit"; then 14833 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14834 fi 14835 done 14836 14837 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5 14839$as_echo_n "checking for libipt... " >&6; } 14840if ${ac_cv_libipt+:} false; then : 14841 $as_echo_n "(cached) " >&6 14842else 14843 14844 ac_save_LIBS="$LIBS" 14845 LIBS="$LIBS $LIBIPT" 14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14847/* end confdefs.h. */ 14848#include "intel-pt.h" 14849int 14850main () 14851{ 14852pt_insn_alloc_decoder (0); 14853 ; 14854 return 0; 14855} 14856_ACEOF 14857if ac_fn_c_try_link "$LINENO"; then : 14858 ac_cv_libipt=yes 14859else 14860 ac_cv_libipt=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext \ 14863 conftest$ac_exeext conftest.$ac_ext 14864 LIBS="$ac_save_LIBS" 14865 14866fi 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5 14868$as_echo "$ac_cv_libipt" >&6; } 14869 if test "$ac_cv_libipt" = yes; then 14870 HAVE_LIBIPT=yes 14871 14872$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h 14873 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5 14875$as_echo_n "checking how to link with libipt... " >&6; } 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5 14877$as_echo "$LIBIPT" >&6; } 14878 else 14879 HAVE_LIBIPT=no 14880 CPPFLAGS="$ac_save_CPPFLAGS" 14881 LIBIPT= 14882 LTLIBIPT= 14883 fi 14884 14885 14886 14887 14888 14889 14890 if test "$HAVE_LIBIPT" != yes; then 14891 if test "$with_intel_pt" = yes; then 14892 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5 14893 else 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5 14895$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;} 14896 fi 14897 else 14898 save_LIBS=$LIBS 14899 LIBS="$LIBS $LIBIPT" 14900 for ac_func in pt_insn_event 14901do : 14902 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event" 14903if test "x$ac_cv_func_pt_insn_event" = xyes; then : 14904 cat >>confdefs.h <<_ACEOF 14905#define HAVE_PT_INSN_EVENT 1 14906_ACEOF 14907 14908fi 14909done 14910 14911 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h> 14912" 14913if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then : 14914 14915cat >>confdefs.h <<_ACEOF 14916#define HAVE_STRUCT_PT_INSN_ENABLED 1 14917_ACEOF 14918 14919 14920fi 14921ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h> 14922" 14923if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then : 14924 14925cat >>confdefs.h <<_ACEOF 14926#define HAVE_STRUCT_PT_INSN_RESYNCED 1 14927_ACEOF 14928 14929 14930fi 14931 14932 LIBS=$save_LIBS 14933 fi 14934 fi 14935 14936 14937$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 14938 14939 for ac_header in sys/procfs.h 14940do : 14941 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 14942if test "x$ac_cv_header_sys_procfs_h" = xyes; then : 14943 cat >>confdefs.h <<_ACEOF 14944#define HAVE_SYS_PROCFS_H 1 14945_ACEOF 14946 14947fi 14948 14949done 14950 14951 if test "$ac_cv_header_sys_procfs_h" = yes; then 14952 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5 14954$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; } 14955 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then : 14956 $as_echo_n "(cached) " >&6 14957else 14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14959/* end confdefs.h. */ 14960 14961#define _SYSCALL32 14962#include <sys/procfs.h> 14963int 14964main () 14965{ 14966gregset_t avar 14967 ; 14968 return 0; 14969} 14970_ACEOF 14971if ac_fn_c_try_compile "$LINENO"; then : 14972 bfd_cv_have_sys_procfs_type_gregset_t=yes 14973else 14974 bfd_cv_have_sys_procfs_type_gregset_t=no 14975 14976fi 14977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14978fi 14979 14980 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then 14981 14982$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h 14983 14984 fi 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 14986$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; } 14987 14988 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5 14990$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; } 14991 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then : 14992 $as_echo_n "(cached) " >&6 14993else 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996 14997#define _SYSCALL32 14998#include <sys/procfs.h> 14999int 15000main () 15001{ 15002fpregset_t avar 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_compile "$LINENO"; then : 15008 bfd_cv_have_sys_procfs_type_fpregset_t=yes 15009else 15010 bfd_cv_have_sys_procfs_type_fpregset_t=no 15011 15012fi 15013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15014fi 15015 15016 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then 15017 15018$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h 15019 15020 fi 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 15022$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; } 15023 15024 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 15026$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } 15027 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then : 15028 $as_echo_n "(cached) " >&6 15029else 15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15031/* end confdefs.h. */ 15032 15033#define _SYSCALL32 15034#include <sys/procfs.h> 15035int 15036main () 15037{ 15038prgregset_t avar 15039 ; 15040 return 0; 15041} 15042_ACEOF 15043if ac_fn_c_try_compile "$LINENO"; then : 15044 bfd_cv_have_sys_procfs_type_prgregset_t=yes 15045else 15046 bfd_cv_have_sys_procfs_type_prgregset_t=no 15047 15048fi 15049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15050fi 15051 15052 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then 15053 15054$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h 15055 15056 fi 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 15058$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } 15059 15060 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5 15062$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; } 15063 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then : 15064 $as_echo_n "(cached) " >&6 15065else 15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15067/* end confdefs.h. */ 15068 15069#define _SYSCALL32 15070#include <sys/procfs.h> 15071int 15072main () 15073{ 15074prfpregset_t avar 15075 ; 15076 return 0; 15077} 15078_ACEOF 15079if ac_fn_c_try_compile "$LINENO"; then : 15080 bfd_cv_have_sys_procfs_type_prfpregset_t=yes 15081else 15082 bfd_cv_have_sys_procfs_type_prfpregset_t=no 15083 15084fi 15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15086fi 15087 15088 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then 15089 15090$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h 15091 15092 fi 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 15094$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } 15095 15096 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5 15098$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; } 15099 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15103/* end confdefs.h. */ 15104 15105#define _SYSCALL32 15106#include <sys/procfs.h> 15107int 15108main () 15109{ 15110prgregset32_t avar 15111 ; 15112 return 0; 15113} 15114_ACEOF 15115if ac_fn_c_try_compile "$LINENO"; then : 15116 bfd_cv_have_sys_procfs_type_prgregset32_t=yes 15117else 15118 bfd_cv_have_sys_procfs_type_prgregset32_t=no 15119 15120fi 15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15122fi 15123 15124 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then 15125 15126$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h 15127 15128 fi 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 15130$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; } 15131 15132 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 15134$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } 15135 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then : 15136 $as_echo_n "(cached) " >&6 15137else 15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140 15141#define _SYSCALL32 15142#include <sys/procfs.h> 15143int 15144main () 15145{ 15146lwpid_t avar 15147 ; 15148 return 0; 15149} 15150_ACEOF 15151if ac_fn_c_try_compile "$LINENO"; then : 15152 bfd_cv_have_sys_procfs_type_lwpid_t=yes 15153else 15154 bfd_cv_have_sys_procfs_type_lwpid_t=no 15155 15156fi 15157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15158fi 15159 15160 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then 15161 15162$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h 15163 15164 fi 15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 15166$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } 15167 15168 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 15170$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } 15171 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then : 15172 $as_echo_n "(cached) " >&6 15173else 15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15175/* end confdefs.h. */ 15176 15177#define _SYSCALL32 15178#include <sys/procfs.h> 15179int 15180main () 15181{ 15182psaddr_t avar 15183 ; 15184 return 0; 15185} 15186_ACEOF 15187if ac_fn_c_try_compile "$LINENO"; then : 15188 bfd_cv_have_sys_procfs_type_psaddr_t=yes 15189else 15190 bfd_cv_have_sys_procfs_type_psaddr_t=no 15191 15192fi 15193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15194fi 15195 15196 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then 15197 15198$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h 15199 15200 fi 15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 15202$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } 15203 15204 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 15206$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } 15207 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then : 15208 $as_echo_n "(cached) " >&6 15209else 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212 15213#define _SYSCALL32 15214#include <sys/procfs.h> 15215int 15216main () 15217{ 15218elf_fpregset_t avar 15219 ; 15220 return 0; 15221} 15222_ACEOF 15223if ac_fn_c_try_compile "$LINENO"; then : 15224 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes 15225else 15226 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no 15227 15228fi 15229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15230fi 15231 15232 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then 15233 15234$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h 15235 15236 fi 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 15238$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } 15239 15240 fi 15241 15242 15243# Check the return and argument types of ptrace. 15244 15245 15246for ac_header in sys/ptrace.h ptrace.h 15247do : 15248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15249ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15250if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15251 cat >>confdefs.h <<_ACEOF 15252#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15253_ACEOF 15254 15255fi 15256 15257done 15258 15259 15260gdb_ptrace_headers=' 15261#include <sys/types.h> 15262#if HAVE_SYS_PTRACE_H 15263# include <sys/ptrace.h> 15264#endif 15265#if HAVE_UNISTD_H 15266# include <unistd.h> 15267#endif 15268' 15269 15270# Check return type. Varargs (used on GNU/Linux) conflict with the 15271# empty argument list, so check for that explicitly. 15272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5 15273$as_echo_n "checking return type of ptrace... " >&6; } 15274if ${gdb_cv_func_ptrace_ret+:} false; then : 15275 $as_echo_n "(cached) " >&6 15276else 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279$gdb_ptrace_headers 15280int 15281main () 15282{ 15283extern long ptrace (enum __ptrace_request, ...); 15284 ; 15285 return 0; 15286} 15287_ACEOF 15288if ac_fn_c_try_compile "$LINENO"; then : 15289 gdb_cv_func_ptrace_ret='long' 15290else 15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15292/* end confdefs.h. */ 15293$gdb_ptrace_headers 15294int 15295main () 15296{ 15297extern int ptrace (); 15298 ; 15299 return 0; 15300} 15301_ACEOF 15302if ac_fn_c_try_compile "$LINENO"; then : 15303 gdb_cv_func_ptrace_ret='int' 15304else 15305 gdb_cv_func_ptrace_ret='long' 15306fi 15307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15308fi 15309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15310fi 15311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5 15312$as_echo "$gdb_cv_func_ptrace_ret" >&6; } 15313 15314cat >>confdefs.h <<_ACEOF 15315#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret 15316_ACEOF 15317 15318# Check argument types. 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5 15320$as_echo_n "checking types of arguments for ptrace... " >&6; } 15321if ${gdb_cv_func_ptrace_args+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323else 15324 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326/* end confdefs.h. */ 15327$gdb_ptrace_headers 15328int 15329main () 15330{ 15331extern long ptrace (enum __ptrace_request, ...); 15332 ; 15333 return 0; 15334} 15335_ACEOF 15336if ac_fn_c_try_compile "$LINENO"; then : 15337 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long' 15338else 15339 15340for gdb_arg1 in 'int' 'long'; do 15341 for gdb_arg2 in 'pid_t' 'int' 'long'; do 15342 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do 15343 for gdb_arg4 in 'int' 'long' 'void *'; do 15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15345/* end confdefs.h. */ 15346$gdb_ptrace_headers 15347int 15348main () 15349{ 15350 15351extern $gdb_cv_func_ptrace_ret 15352 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); 15353 15354 ; 15355 return 0; 15356} 15357_ACEOF 15358if ac_fn_c_try_compile "$LINENO"; then : 15359 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; 15360 break 4; 15361fi 15362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15363 for gdb_arg5 in 'int *' 'int' 'long'; do 15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15365/* end confdefs.h. */ 15366$gdb_ptrace_headers 15367int 15368main () 15369{ 15370 15371extern $gdb_cv_func_ptrace_ret 15372 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); 15373 15374 ; 15375 return 0; 15376} 15377_ACEOF 15378if ac_fn_c_try_compile "$LINENO"; then : 15379 15380gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; 15381 break 5; 15382fi 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384 done 15385 done 15386 done 15387 done 15388done 15389# Provide a safe default value. 15390: ${gdb_cv_func_ptrace_args='int,int,long,long'} 15391 15392fi 15393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15394fi 15395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5 15396$as_echo "$gdb_cv_func_ptrace_args" >&6; } 15397ac_save_IFS=$IFS; IFS=',' 15398set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` 15399IFS=$ac_save_IFS 15400shift 15401 15402cat >>confdefs.h <<_ACEOF 15403#define PTRACE_TYPE_ARG1 $1 15404_ACEOF 15405 15406 15407cat >>confdefs.h <<_ACEOF 15408#define PTRACE_TYPE_ARG3 $3 15409_ACEOF 15410 15411 15412cat >>confdefs.h <<_ACEOF 15413#define PTRACE_TYPE_ARG4 $4 15414_ACEOF 15415 15416if test -n "$5"; then 15417 15418cat >>confdefs.h <<_ACEOF 15419#define PTRACE_TYPE_ARG5 $5 15420_ACEOF 15421 15422fi 15423 15424 15425if test "$cross_compiling" = no; then 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 15427$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 15428if ${ac_cv_func_setpgrp_void+:} false; then : 15429 $as_echo_n "(cached) " >&6 15430else 15431 if test "$cross_compiling" = yes; then : 15432 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 15433else 15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15435/* end confdefs.h. */ 15436$ac_includes_default 15437int 15438main () 15439{ 15440/* If this system has a BSD-style setpgrp which takes arguments, 15441 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 15442 exit successfully. */ 15443 return setpgrp (1,1) != -1; 15444 ; 15445 return 0; 15446} 15447_ACEOF 15448if ac_fn_c_try_run "$LINENO"; then : 15449 ac_cv_func_setpgrp_void=no 15450else 15451 ac_cv_func_setpgrp_void=yes 15452fi 15453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15454 conftest.$ac_objext conftest.beam conftest.$ac_ext 15455fi 15456 15457fi 15458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 15459$as_echo "$ac_cv_func_setpgrp_void" >&6; } 15460if test $ac_cv_func_setpgrp_void = yes; then 15461 15462$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 15463 15464fi 15465 15466else 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 15468$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 15469if ${ac_cv_func_setpgrp_void+:} false; then : 15470 $as_echo_n "(cached) " >&6 15471else 15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15473/* end confdefs.h. */ 15474 15475#include <unistd.h> 15476 15477int 15478main () 15479{ 15480 15481 if (setpgrp(1,1) == -1) 15482 exit (0); 15483 else 15484 exit (1); 15485 15486 ; 15487 return 0; 15488} 15489_ACEOF 15490if ac_fn_c_try_compile "$LINENO"; then : 15491 ac_cv_func_setpgrp_void=no 15492else 15493 ac_cv_func_setpgrp_void=yes 15494fi 15495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15496fi 15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 15498$as_echo "$ac_cv_func_setpgrp_void" >&6; } 15499if test "$ac_cv_func_setpgrp_void" = yes; then 15500 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h 15501 15502fi 15503fi 15504 15505# Assume we'll default to using the included libiberty regex. 15506gdb_use_included_regex=yes 15507 15508# However, if the system regex is GNU regex, then default to *not* 15509# using the included regex. 15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5 15511$as_echo_n "checking for GNU regex... " >&6; } 15512if ${gdb_cv_have_gnu_regex+:} false; then : 15513 $as_echo_n "(cached) " >&6 15514else 15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15516/* end confdefs.h. */ 15517#include <gnu-versions.h> 15518int 15519main () 15520{ 15521#define REGEX_INTERFACE_VERSION 1 15522#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION 15523# error "Version mismatch" 15524#endif 15525 ; 15526 return 0; 15527} 15528_ACEOF 15529if ac_fn_c_try_compile "$LINENO"; then : 15530 gdb_cv_have_gnu_regex=yes 15531else 15532 gdb_cv_have_gnu_regex=no 15533fi 15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15535fi 15536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5 15537$as_echo "$gdb_cv_have_gnu_regex" >&6; } 15538if test "$gdb_cv_have_gnu_regex" = yes; then 15539 gdb_use_included_regex=no 15540fi 15541 15542 15543# Check whether --with-included-regex was given. 15544if test "${with_included_regex+set}" = set; then : 15545 withval=$with_included_regex; gdb_with_regex=$withval 15546else 15547 gdb_with_regex=$gdb_use_included_regex 15548fi 15549 15550if test "$gdb_with_regex" = yes; then 15551 15552$as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h 15553 15554fi 15555 15556# Check if <sys/proc.h> defines `struct thread' with a td_pcb member. 15557ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h> 15558#include <sys/proc.h> 15559 15560" 15561if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then : 15562 15563cat >>confdefs.h <<_ACEOF 15564#define HAVE_STRUCT_THREAD_TD_PCB 1 15565_ACEOF 15566 15567 15568fi 15569 15570 15571# See if <sys/lwp.h> defines `struct lwp`. 15572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5 15573$as_echo_n "checking for struct lwp... " >&6; } 15574if ${gdb_cv_struct_lwp+:} false; then : 15575 $as_echo_n "(cached) " >&6 15576else 15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15578/* end confdefs.h. */ 15579#include <sys/param.h> 15580#define _KMEMUSER 15581#include <sys/lwp.h> 15582int 15583main () 15584{ 15585struct lwp l; 15586 ; 15587 return 0; 15588} 15589_ACEOF 15590if ac_fn_c_try_compile "$LINENO"; then : 15591 gdb_cv_struct_lwp=yes 15592else 15593 gdb_cv_struct_lwp=no 15594fi 15595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15596fi 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5 15598$as_echo "$gdb_cv_struct_lwp" >&6; } 15599if test "$gdb_cv_struct_lwp" = yes; then 15600 15601$as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h 15602 15603fi 15604 15605# See if <machine/reg.h> degines `struct reg'. 15606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5 15607$as_echo_n "checking for struct reg in machine/reg.h... " >&6; } 15608if ${gdb_cv_struct_reg+:} false; then : 15609 $as_echo_n "(cached) " >&6 15610else 15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15612/* end confdefs.h. */ 15613#include <sys/types.h> 15614#include <machine/reg.h> 15615int 15616main () 15617{ 15618struct reg r; 15619 ; 15620 return 0; 15621} 15622_ACEOF 15623if ac_fn_c_try_compile "$LINENO"; then : 15624 gdb_cv_struct_reg=yes 15625else 15626 gdb_cv_struct_reg=no 15627fi 15628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15629fi 15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5 15631$as_echo "$gdb_cv_struct_reg" >&6; } 15632if test "$gdb_cv_struct_reg" = yes; then 15633 15634$as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h 15635 15636fi 15637 15638# See if <machine/reg.h> supports the %fs and %gs i386 segment registers. 15639# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. 15640ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h> 15641#include <machine/reg.h> 15642" 15643if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then : 15644 15645cat >>confdefs.h <<_ACEOF 15646#define HAVE_STRUCT_REG_R_FS 1 15647_ACEOF 15648 15649 15650fi 15651ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h> 15652#include <machine/reg.h> 15653" 15654if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then : 15655 15656cat >>confdefs.h <<_ACEOF 15657#define HAVE_STRUCT_REG_R_GS 1 15658_ACEOF 15659 15660 15661fi 15662 15663 15664# See if <sys/ptrace.h> provides the PTRACE_GETREGS request. 15665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5 15666$as_echo_n "checking for PTRACE_GETREGS... " >&6; } 15667if ${gdb_cv_have_ptrace_getregs+:} false; then : 15668 $as_echo_n "(cached) " >&6 15669else 15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15671/* end confdefs.h. */ 15672#include <sys/ptrace.h> 15673int 15674main () 15675{ 15676PTRACE_GETREGS; 15677 ; 15678 return 0; 15679} 15680_ACEOF 15681if ac_fn_c_try_compile "$LINENO"; then : 15682 gdb_cv_have_ptrace_getregs=yes 15683else 15684 gdb_cv_have_ptrace_getregs=no 15685fi 15686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15687fi 15688 15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5 15690$as_echo "$gdb_cv_have_ptrace_getregs" >&6; } 15691if test "$gdb_cv_have_ptrace_getregs" = yes; then 15692 15693$as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h 15694 15695fi 15696 15697# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. 15698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5 15699$as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; } 15700if ${gdb_cv_have_ptrace_getfpxregs+:} false; then : 15701 $as_echo_n "(cached) " >&6 15702else 15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15704/* end confdefs.h. */ 15705#include <sys/ptrace.h> 15706int 15707main () 15708{ 15709PTRACE_GETFPXREGS; 15710 ; 15711 return 0; 15712} 15713_ACEOF 15714if ac_fn_c_try_compile "$LINENO"; then : 15715 gdb_cv_have_ptrace_getfpxregs=yes 15716else 15717 gdb_cv_have_ptrace_getfpxregs=no 15718fi 15719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15720fi 15721 15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5 15723$as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; } 15724if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then 15725 15726$as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h 15727 15728fi 15729 15730# See if <sys/ptrace.h> provides the PT_GETDBREGS request. 15731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5 15732$as_echo_n "checking for PT_GETDBREGS... " >&6; } 15733if ${gdb_cv_have_pt_getdbregs+:} false; then : 15734 $as_echo_n "(cached) " >&6 15735else 15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15737/* end confdefs.h. */ 15738#include <sys/types.h> 15739#include <sys/ptrace.h> 15740int 15741main () 15742{ 15743PT_GETDBREGS; 15744 ; 15745 return 0; 15746} 15747_ACEOF 15748if ac_fn_c_try_compile "$LINENO"; then : 15749 gdb_cv_have_pt_getdbregs=yes 15750else 15751 gdb_cv_have_pt_getdbregs=no 15752fi 15753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15754fi 15755 15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5 15757$as_echo "$gdb_cv_have_pt_getdbregs" >&6; } 15758if test "$gdb_cv_have_pt_getdbregs" = yes; then 15759 15760$as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h 15761 15762fi 15763 15764# See if <sys/ptrace.h> provides the PT_GETXMMREGS request. 15765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5 15766$as_echo_n "checking for PT_GETXMMREGS... " >&6; } 15767if ${gdb_cv_have_pt_getxmmregs+:} false; then : 15768 $as_echo_n "(cached) " >&6 15769else 15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771/* end confdefs.h. */ 15772#include <sys/types.h> 15773#include <sys/ptrace.h> 15774int 15775main () 15776{ 15777PT_GETXMMREGS; 15778 ; 15779 return 0; 15780} 15781_ACEOF 15782if ac_fn_c_try_compile "$LINENO"; then : 15783 gdb_cv_have_pt_getxmmregs=yes 15784else 15785 gdb_cv_have_pt_getxmmregs=no 15786fi 15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15788fi 15789 15790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5 15791$as_echo "$gdb_cv_have_pt_getxmmregs" >&6; } 15792if test "$gdb_cv_have_pt_getxmmregs" = yes; then 15793 15794$as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h 15795 15796fi 15797 15798# See if <sys/ptrace.h> supports LWP names on FreeBSD 15799# Older FreeBSD versions don't have the pl_tdname member of 15800# `struct ptrace_lwpinfo'. 15801ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h> 15802" 15803if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then : 15804 15805cat >>confdefs.h <<_ACEOF 15806#define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1 15807_ACEOF 15808 15809 15810fi 15811 15812 15813# See if <sys/ptrace.h> supports syscall fields on FreeBSD. The 15814# pl_syscall_code member of `struct ptrace_lwpinfo' was added in 15815# FreeBSD 10.3. 15816ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h> 15817" 15818if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then : 15819 15820cat >>confdefs.h <<_ACEOF 15821#define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1 15822_ACEOF 15823 15824 15825fi 15826 15827 15828# Check if the compiler supports the `long long' type. 15829 15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5 15831$as_echo_n "checking for long long support in compiler... " >&6; } 15832if ${gdb_cv_c_long_long+:} false; then : 15833 $as_echo_n "(cached) " >&6 15834else 15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15836/* end confdefs.h. */ 15837extern long long foo; 15838int 15839main () 15840{ 15841switch (foo & 2) { case 0: return 1; } 15842 ; 15843 return 0; 15844} 15845_ACEOF 15846if ac_fn_c_try_compile "$LINENO"; then : 15847 gdb_cv_c_long_long=yes 15848else 15849 gdb_cv_c_long_long=no 15850fi 15851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15852fi 15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5 15854$as_echo "$gdb_cv_c_long_long" >&6; } 15855if test "$gdb_cv_c_long_long" != yes; then 15856 # libdecnumber requires long long. 15857 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5 15858fi 15859 15860# Check if the compiler and runtime support printing long longs. 15861 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5 15863$as_echo_n "checking for long long support in printf... " >&6; } 15864if ${gdb_cv_printf_has_long_long+:} false; then : 15865 $as_echo_n "(cached) " >&6 15866else 15867 if test "$cross_compiling" = yes; then : 15868 gdb_cv_printf_has_long_long=no 15869else 15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871/* end confdefs.h. */ 15872$ac_includes_default 15873int 15874main () 15875{ 15876char buf[32]; 15877 long long l = 0; 15878 l = (l << 16) + 0x0123; 15879 l = (l << 16) + 0x4567; 15880 l = (l << 16) + 0x89ab; 15881 l = (l << 16) + 0xcdef; 15882 sprintf (buf, "0x%016llx", l); 15883 return (strcmp ("0x0123456789abcdef", buf)); 15884 ; 15885 return 0; 15886} 15887_ACEOF 15888if ac_fn_c_try_run "$LINENO"; then : 15889 gdb_cv_printf_has_long_long=yes 15890else 15891 gdb_cv_printf_has_long_long=no 15892fi 15893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15894 conftest.$ac_objext conftest.beam conftest.$ac_ext 15895fi 15896 15897fi 15898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5 15899$as_echo "$gdb_cv_printf_has_long_long" >&6; } 15900if test "$gdb_cv_printf_has_long_long" = yes; then 15901 15902$as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h 15903 15904fi 15905 15906# Check if the compiler and runtime support printing decfloats. 15907 15908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5 15909$as_echo_n "checking for decfloat support in printf... " >&6; } 15910if ${gdb_cv_printf_has_decfloat+:} false; then : 15911 $as_echo_n "(cached) " >&6 15912else 15913 if test "$cross_compiling" = yes; then : 15914 gdb_cv_printf_has_decfloat=no 15915else 15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15917/* end confdefs.h. */ 15918$ac_includes_default 15919int 15920main () 15921{ 15922char buf[64]; 15923 _Decimal32 d32 = 1.2345df; 15924 _Decimal64 d64 = 1.2345dd; 15925 _Decimal128 d128 = 1.2345dl; 15926 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); 15927 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); 15928 ; 15929 return 0; 15930} 15931_ACEOF 15932if ac_fn_c_try_run "$LINENO"; then : 15933 gdb_cv_printf_has_decfloat=yes 15934else 15935 gdb_cv_printf_has_decfloat=no 15936fi 15937rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15938 conftest.$ac_objext conftest.beam conftest.$ac_ext 15939fi 15940 15941fi 15942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5 15943$as_echo "$gdb_cv_printf_has_decfloat" >&6; } 15944if test "$gdb_cv_printf_has_decfloat" = yes; then 15945 15946$as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h 15947 15948fi 15949 15950# Check if the compiler supports the `long double' type. We can't use 15951# AC_C_LONG_DOUBLE because that one does additional checks on the 15952# constants defined in <float.h> that fail on some systems, 15953# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. 15954 15955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5 15956$as_echo_n "checking for long double support in compiler... " >&6; } 15957if ${gdb_cv_c_long_double+:} false; then : 15958 $as_echo_n "(cached) " >&6 15959else 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962long double foo; 15963_ACEOF 15964if ac_fn_c_try_compile "$LINENO"; then : 15965 gdb_cv_c_long_double=yes 15966else 15967 gdb_cv_c_long_double=no 15968fi 15969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15970fi 15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5 15972$as_echo "$gdb_cv_c_long_double" >&6; } 15973if test "$gdb_cv_c_long_double" = yes; then 15974 15975$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 15976 15977fi 15978 15979# Check if the compiler and runtime support printing long doubles. 15980 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5 15982$as_echo_n "checking for long double support in printf... " >&6; } 15983if ${gdb_cv_printf_has_long_double+:} false; then : 15984 $as_echo_n "(cached) " >&6 15985else 15986 if test "$cross_compiling" = yes; then : 15987 gdb_cv_printf_has_long_double=no 15988else 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991$ac_includes_default 15992int 15993main () 15994{ 15995char buf[16]; 15996 long double f = 3.141592653; 15997 sprintf (buf, "%Lg", f); 15998 return (strncmp ("3.14159", buf, 7)); 15999 ; 16000 return 0; 16001} 16002_ACEOF 16003if ac_fn_c_try_run "$LINENO"; then : 16004 gdb_cv_printf_has_long_double=yes 16005else 16006 gdb_cv_printf_has_long_double=no 16007fi 16008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16009 conftest.$ac_objext conftest.beam conftest.$ac_ext 16010fi 16011 16012fi 16013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5 16014$as_echo "$gdb_cv_printf_has_long_double" >&6; } 16015if test "$gdb_cv_printf_has_long_double" = yes; then 16016 16017$as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h 16018 16019fi 16020 16021# Check if the compiler and runtime support scanning long doubles. 16022 16023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5 16024$as_echo_n "checking for long double support in scanf... " >&6; } 16025if ${gdb_cv_scanf_has_long_double+:} false; then : 16026 $as_echo_n "(cached) " >&6 16027else 16028 if test "$cross_compiling" = yes; then : 16029 gdb_cv_scanf_has_long_double=no 16030else 16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032/* end confdefs.h. */ 16033#include <stdio.h> 16034int 16035main () 16036{ 16037char *buf = "3.141592653"; 16038 long double f = 0; 16039 sscanf (buf, "%Lg", &f); 16040 return !(f > 3.14159 && f < 3.14160); 16041 ; 16042 return 0; 16043} 16044_ACEOF 16045if ac_fn_c_try_run "$LINENO"; then : 16046 gdb_cv_scanf_has_long_double=yes 16047else 16048 gdb_cv_scanf_has_long_double=no 16049fi 16050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16051 conftest.$ac_objext conftest.beam conftest.$ac_ext 16052fi 16053 16054fi 16055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5 16056$as_echo "$gdb_cv_scanf_has_long_double" >&6; } 16057if test "$gdb_cv_scanf_has_long_double" = yes; then 16058 16059$as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h 16060 16061fi 16062 16063case ${host_os} in 16064aix*) 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 16066$as_echo_n "checking for -bbigtoc option... " >&6; } 16067if ${gdb_cv_bigtoc+:} false; then : 16068 $as_echo_n "(cached) " >&6 16069else 16070 16071 SAVE_LDFLAGS=$LDFLAGS 16072 16073 case $GCC in 16074 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 16075 *) gdb_cv_bigtoc=-bbigtoc ;; 16076 esac 16077 16078 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081 16082int 16083main () 16084{ 16085int i; 16086 ; 16087 return 0; 16088} 16089_ACEOF 16090if ac_fn_c_try_link "$LINENO"; then : 16091 16092else 16093 gdb_cv_bigtoc= 16094fi 16095rm -f core conftest.err conftest.$ac_objext \ 16096 conftest$ac_exeext conftest.$ac_ext 16097 LDFLAGS="${SAVE_LDFLAGS}" 16098 16099fi 16100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 16101$as_echo "$gdb_cv_bigtoc" >&6; } 16102 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" 16103 ;; 16104esac 16105 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5 16107$as_echo_n "checking for the dynamic export flag... " >&6; } 16108dynamic_list=false 16109if test "${gdb_native}" = yes; then 16110 # The dynamically loaded libthread_db needs access to symbols in the gdb 16111 # executable. Older GNU ld supports --export-dynamic but --dynamic-list 16112 # may not be supported there. 16113 old_LDFLAGS="$LDFLAGS" 16114 # Older GNU ld supports --export-dynamic but --dynamic-list it does not. 16115 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list" 16116 LDFLAGS="$LDFLAGS $RDYNAMIC" 16117 if test "${have_libpython}" = no; then 16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16119/* end confdefs.h. */ 16120 16121int 16122main () 16123{ 16124 16125 ; 16126 return 0; 16127} 16128_ACEOF 16129if ac_fn_c_try_link "$LINENO"; then : 16130 dynamic_list=true 16131fi 16132rm -f core conftest.err conftest.$ac_objext \ 16133 conftest$ac_exeext conftest.$ac_ext 16134 else 16135 # Workaround http://bugs.python.org/issue4434 where static 16136 # libpythonX.Y.a would get its symbols required for 16137 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list. 16138 # Problem does not happen for the recommended libpythonX.Y.so linkage. 16139 16140 # Note the workaround for Python 16141 # http://bugs.python.org/issue10112 earlier has removed 16142 # -export-dynamic from PYTHON_LIBS. That's exactly what we want 16143 # here too, as otherwise it'd make this -Wl,--dynamic-list test 16144 # always pass. 16145 old_CFLAGS="$CFLAGS" 16146 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 16147 old_LIBS="$LIBS" 16148 LIBS="$LIBS $PYTHON_LIBS" 16149 old_CPPFLAGS="$CPPFLAGS" 16150 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" 16151 if test "$cross_compiling" = yes; then : 16152 true 16153else 16154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16155/* end confdefs.h. */ 16156#include "Python.h" 16157int 16158main () 16159{ 16160int err; 16161 Py_Initialize (); 16162 err = PyRun_SimpleString ("import itertools\n"); 16163 Py_Finalize (); 16164 return err == 0 ? 0 : 1; 16165 ; 16166 return 0; 16167} 16168_ACEOF 16169if ac_fn_c_try_run "$LINENO"; then : 16170 dynamic_list=true 16171fi 16172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16173 conftest.$ac_objext conftest.beam conftest.$ac_ext 16174fi 16175 16176 LIBS="$old_LIBS" 16177 CFLAGS="$old_CFLAGS" 16178 CPPFLAGS="$old_CPPFLAGS" 16179 fi 16180 LDFLAGS="$old_LDFLAGS" 16181fi 16182if $dynamic_list; then 16183 found="-Wl,--dynamic-list" 16184 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list' 16185else 16186 found="-rdynamic" 16187 RDYNAMIC="-rdynamic" 16188fi 16189 16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 16191$as_echo "$found" >&6; } 16192 16193 16194if test "${build}" = "${host}" -a "${host}" = "${target}" ; then 16195 case ${host_os} in 16196 aix*) 16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5 16198$as_echo_n "checking for AiX thread debugging library... " >&6; } 16199 if ${gdb_cv_have_aix_thread_debug+:} false; then : 16200 $as_echo_n "(cached) " >&6 16201else 16202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16203/* end confdefs.h. */ 16204#include <sys/pthdebug.h> 16205int 16206main () 16207{ 16208#ifndef PTHDB_VERSION_3 16209 #error 16210 #endif 16211 ; 16212 return 0; 16213} 16214_ACEOF 16215if ac_fn_c_try_compile "$LINENO"; then : 16216 gdb_cv_have_aix_thread_debug=yes 16217else 16218 gdb_cv_have_aix_thread_debug=no 16219fi 16220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16221fi 16222 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5 16224$as_echo "$gdb_cv_have_aix_thread_debug" >&6; } 16225 if test "$gdb_cv_have_aix_thread_debug" = yes; then 16226 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" 16227 CONFIG_OBS="${CONFIG_OBS} aix-thread.o" 16228 LIBS="$LIBS -lpthdebug" 16229 16230 # Older versions of AIX do not provide the declaration for 16231 # the getthrds function (it appears that it was introduced 16232 # with AIX 6.x). 16233 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h> 16234" 16235if test "x$ac_cv_have_decl_getthrds" = xyes; then : 16236 ac_have_decl=1 16237else 16238 ac_have_decl=0 16239fi 16240 16241cat >>confdefs.h <<_ACEOF 16242#define HAVE_DECL_GETTHRDS $ac_have_decl 16243_ACEOF 16244 16245 fi 16246 ;; 16247 esac 16248 16249fi 16250 16251if test "x$ac_cv_header_thread_db_h" = "xyes"; then 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5 16253$as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; } 16254if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then : 16255 $as_echo_n "(cached) " >&6 16256else 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259#include <thread_db.h> 16260int 16261main () 16262{ 16263int i = TD_NOTALLOC; 16264 ; 16265 return 0; 16266} 16267_ACEOF 16268if ac_fn_c_try_compile "$LINENO"; then : 16269 gdb_cv_thread_db_h_has_td_notalloc=yes 16270else 16271 gdb_cv_thread_db_h_has_td_notalloc=no 16272 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16275 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 16278$as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; } 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5 16280$as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; } 16281if ${gdb_cv_thread_db_h_has_td_version+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283else 16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16285/* end confdefs.h. */ 16286#include <thread_db.h> 16287int 16288main () 16289{ 16290int i = TD_VERSION; 16291 ; 16292 return 0; 16293} 16294_ACEOF 16295if ac_fn_c_try_compile "$LINENO"; then : 16296 gdb_cv_thread_db_h_has_td_version=yes 16297else 16298 gdb_cv_thread_db_h_has_td_version=no 16299 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16302 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5 16305$as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; } 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5 16307$as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; } 16308if ${gdb_cv_thread_db_h_has_td_notls+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16312/* end confdefs.h. */ 16313#include <thread_db.h> 16314int 16315main () 16316{ 16317int i = TD_NOTLS; 16318 ; 16319 return 0; 16320} 16321_ACEOF 16322if ac_fn_c_try_compile "$LINENO"; then : 16323 gdb_cv_thread_db_h_has_td_notls=yes 16324else 16325 gdb_cv_thread_db_h_has_td_notls=no 16326 16327fi 16328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16329 16330fi 16331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5 16332$as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; } 16333fi 16334if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then 16335 16336$as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h 16337 16338fi 16339if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then 16340 16341$as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h 16342 16343fi 16344if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then 16345 16346$as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h 16347 16348fi 16349 16350case $host_os in 16351 go32* | *djgpp*) 16352 gdbinit=gdb.ini 16353 ;; 16354 *) 16355 gdbinit=.gdbinit 16356 ;; 16357esac 16358 16359cat >>confdefs.h <<_ACEOF 16360#define GDBINIT "$gdbinit" 16361_ACEOF 16362 16363 16364 16365# Support for --with-sysroot is a copy of GDB_AC_WITH_DIR, 16366# except that the argument to --with-sysroot is optional. 16367# --with-sysroot (or --with-sysroot=yes) sets the default sysroot path. 16368if test "x$with_sysroot" = xyes; then 16369 with_sysroot="${exec_prefix}/${target_alias}/sys-root" 16370fi 16371 16372# Check whether --with-sysroot was given. 16373if test "${with_sysroot+set}" = set; then : 16374 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval 16375else 16376 TARGET_SYSTEM_ROOT= 16377fi 16378 16379 16380 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 16381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16382 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT` 16383 ac_define_dir=`eval echo $ac_define_dir` 16384 16385cat >>confdefs.h <<_ACEOF 16386#define TARGET_SYSTEM_ROOT "$ac_define_dir" 16387_ACEOF 16388 16389 16390 16391 16392 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 16393 if test "x$prefix" = xNONE; then 16394 test_prefix=/usr/local 16395 else 16396 test_prefix=$prefix 16397 fi 16398 else 16399 test_prefix=$exec_prefix 16400 fi 16401 value=0 16402 case ${ac_define_dir} in 16403 "${test_prefix}"|"${test_prefix}/"*|\ 16404 '${exec_prefix}'|'${exec_prefix}/'*) 16405 value=1 16406 ;; 16407 esac 16408 16409cat >>confdefs.h <<_ACEOF 16410#define TARGET_SYSTEM_ROOT_RELOCATABLE $value 16411_ACEOF 16412 16413 16414 16415 16416 16417# Check whether --with-system-gdbinit was given. 16418if test "${with_system_gdbinit+set}" = set; then : 16419 withval=$with_system_gdbinit; 16420 SYSTEM_GDBINIT=$withval 16421else 16422 SYSTEM_GDBINIT= 16423fi 16424 16425 16426 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 16427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16428 ac_define_dir=`eval echo $SYSTEM_GDBINIT` 16429 ac_define_dir=`eval echo $ac_define_dir` 16430 16431cat >>confdefs.h <<_ACEOF 16432#define SYSTEM_GDBINIT "$ac_define_dir" 16433_ACEOF 16434 16435 16436 16437 16438 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 16439 if test "x$prefix" = xNONE; then 16440 test_prefix=/usr/local 16441 else 16442 test_prefix=$prefix 16443 fi 16444 else 16445 test_prefix=$exec_prefix 16446 fi 16447 value=0 16448 case ${ac_define_dir} in 16449 "${test_prefix}"|"${test_prefix}/"*|\ 16450 '${exec_prefix}'|'${exec_prefix}/'*) 16451 value=1 16452 ;; 16453 esac 16454 16455cat >>confdefs.h <<_ACEOF 16456#define SYSTEM_GDBINIT_RELOCATABLE $value 16457_ACEOF 16458 16459 16460 16461 16462 16463# Check whether --with-system-gdbinit-dir was given. 16464if test "${with_system_gdbinit_dir+set}" = set; then : 16465 withval=$with_system_gdbinit_dir; 16466 SYSTEM_GDBINIT_DIR=$withval 16467else 16468 SYSTEM_GDBINIT_DIR= 16469fi 16470 16471 16472 test "x$prefix" = xNONE && prefix="$ac_default_prefix" 16473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16474 ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR` 16475 ac_define_dir=`eval echo $ac_define_dir` 16476 16477cat >>confdefs.h <<_ACEOF 16478#define SYSTEM_GDBINIT_DIR "$ac_define_dir" 16479_ACEOF 16480 16481 16482 16483 16484 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then 16485 if test "x$prefix" = xNONE; then 16486 test_prefix=/usr/local 16487 else 16488 test_prefix=$prefix 16489 fi 16490 else 16491 test_prefix=$exec_prefix 16492 fi 16493 value=0 16494 case ${ac_define_dir} in 16495 "${test_prefix}"|"${test_prefix}/"*|\ 16496 '${exec_prefix}'|'${exec_prefix}/'*) 16497 value=1 16498 ;; 16499 esac 16500 16501cat >>confdefs.h <<_ACEOF 16502#define SYSTEM_GDBINIT_DIR_RELOCATABLE $value 16503_ACEOF 16504 16505 16506 16507 16508 16509# Check whether --enable-werror was given. 16510if test "${enable_werror+set}" = set; then : 16511 enableval=$enable_werror; case "${enableval}" in 16512 yes | y) ERROR_ON_WARNING="yes" ;; 16513 no | n) ERROR_ON_WARNING="no" ;; 16514 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 16515 esac 16516fi 16517 16518 16519# Enable -Werror by default when using gcc. Turn it off for releases. 16520if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then 16521 ERROR_ON_WARNING=yes 16522fi 16523 16524WERROR_CFLAGS="" 16525if test "${ERROR_ON_WARNING}" = yes ; then 16526 WERROR_CFLAGS="-Werror" 16527fi 16528 16529# The options we'll try to enable. 16530build_warnings="-Wall -Wpointer-arith \ 16531-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ 16532-Wno-switch -Wno-char-subscripts \ 16533-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ 16534-Wno-sign-compare -Wno-error=maybe-uninitialized \ 16535-Wno-mismatched-tags \ 16536-Wno-error=deprecated-register \ 16537-Wsuggest-override \ 16538-Wimplicit-fallthrough=3 \ 16539-Wduplicated-cond \ 16540-Wshadow=local \ 16541-Wdeprecated-copy \ 16542-Wdeprecated-copy-dtor \ 16543-Wredundant-move \ 16544-Wmissing-declarations \ 16545-Wmissing-prototypes \ 16546-Wstrict-null-sentinel \ 16547" 16548 16549case "${host}" in 16550 *-*-mingw32*) 16551 # Enable -Wno-format by default when using gcc on mingw since many 16552 # GCC versions complain about %I64. 16553 build_warnings="$build_warnings -Wno-format" ;; 16554 *-*-solaris*) 16555 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC 16556 # doesn't understand. 16557 build_warnings="$build_warnings -Wno-unknown-pragmas" 16558 # Solaris 11 <unistd.h> marks vfork deprecated. 16559 build_warnings="$build_warnings -Wno-deprecated-declarations" ;; 16560 *) 16561 # Note that gcc requires -Wformat for -Wformat-nonliteral to work, 16562 # but there's a special case for this below. 16563 build_warnings="$build_warnings -Wformat-nonliteral" ;; 16564esac 16565 16566# Check whether --enable-build-warnings was given. 16567if test "${enable_build_warnings+set}" = set; then : 16568 enableval=$enable_build_warnings; case "${enableval}" in 16569 yes) ;; 16570 no) build_warnings="-w";; 16571 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 16572 build_warnings="${build_warnings} ${t}";; 16573 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 16574 build_warnings="${t} ${build_warnings}";; 16575 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 16576esac 16577if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 16578 echo "Setting compiler warning flags = $build_warnings" 6>&1 16579fi 16580fi 16581# Check whether --enable-gdb-build-warnings was given. 16582if test "${enable_gdb_build_warnings+set}" = set; then : 16583 enableval=$enable_gdb_build_warnings; case "${enableval}" in 16584 yes) ;; 16585 no) build_warnings="-w";; 16586 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 16587 build_warnings="${build_warnings} ${t}";; 16588 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 16589 build_warnings="${t} ${build_warnings}";; 16590 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 16591esac 16592if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 16593 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 16594fi 16595fi 16596 16597# The set of warnings supported by a C++ compiler is not the same as 16598# of the C compiler. 16599ac_ext=cpp 16600ac_cpp='$CXXCPP $CPPFLAGS' 16601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16604 16605 16606WARN_CFLAGS="" 16607if test "x${build_warnings}" != x -a "x$GCC" = xyes 16608then 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 16610$as_echo_n "checking compiler warning flags... " >&6; } 16611 # Separate out the -Werror flag as some files just cannot be 16612 # compiled with it enabled. 16613 for w in ${build_warnings}; do 16614 # GCC does not complain about -Wno-unknown-warning. Invert 16615 # and test -Wunknown-warning instead. 16616 case $w in 16617 -Wno-*) 16618 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; 16619 -Wformat-nonliteral) 16620 # gcc requires -Wformat before -Wformat-nonliteral 16621 # will work, so stick them together. 16622 w="-Wformat $w" 16623 wtest="$w" 16624 ;; 16625 *) 16626 wtest=$w ;; 16627 esac 16628 16629 case $w in 16630 -Werr*) WERROR_CFLAGS=-Werror ;; 16631 *) 16632 # Check whether GCC accepts it. 16633 saved_CFLAGS="$CFLAGS" 16634 CFLAGS="$CFLAGS -Werror $wtest" 16635 saved_CXXFLAGS="$CXXFLAGS" 16636 CXXFLAGS="$CXXFLAGS -Werror $wtest" 16637 if test "x$w" = "x-Wunused-variable"; then 16638 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958, 16639 # fixed in GCC 4.9. This test is derived from the gdb 16640 # source code that triggered this bug in GCC. 16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16642/* end confdefs.h. */ 16643struct scoped_restore_base {}; 16644 struct scoped_restore_tmpl : public scoped_restore_base { 16645 ~scoped_restore_tmpl() {} 16646 }; 16647int 16648main () 16649{ 16650const scoped_restore_base &b = scoped_restore_tmpl(); 16651 ; 16652 return 0; 16653} 16654_ACEOF 16655if ac_fn_cxx_try_compile "$LINENO"; then : 16656 WARN_CFLAGS="${WARN_CFLAGS} $w" 16657fi 16658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16659 else 16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16661/* end confdefs.h. */ 16662 16663int 16664main () 16665{ 16666 16667 ; 16668 return 0; 16669} 16670_ACEOF 16671if ac_fn_cxx_try_compile "$LINENO"; then : 16672 WARN_CFLAGS="${WARN_CFLAGS} $w" 16673fi 16674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16675 fi 16676 CFLAGS="$saved_CFLAGS" 16677 CXXFLAGS="$saved_CXXFLAGS" 16678 esac 16679 done 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 16681$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } 16682fi 16683 16684 16685 16686ac_ext=c 16687ac_cpp='$CPP $CPPFLAGS' 16688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16690ac_compiler_gnu=$ac_cv_c_compiler_gnu 16691 16692 16693 16694# Check whether --enable-ubsan was given. 16695if test "${enable_ubsan+set}" = set; then : 16696 enableval=$enable_ubsan; 16697else 16698 enable_ubsan=no 16699fi 16700 16701if test "x$enable_ubsan" = xauto; then 16702 if $development; then 16703 enable_ubsan=yes 16704 fi 16705fi 16706ac_ext=cpp 16707ac_cpp='$CXXCPP $CPPFLAGS' 16708ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16709ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16710ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16711 16712if test "x$enable_ubsan" = xyes; then 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5 16714$as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; } 16715 saved_CXXFLAGS="$CXXFLAGS" 16716 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" 16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16718/* end confdefs.h. */ 16719 16720int 16721main () 16722{ 16723 16724 ; 16725 return 0; 16726} 16727_ACEOF 16728if ac_fn_cxx_try_link "$LINENO"; then : 16729 enable_ubsan=yes 16730else 16731 enable_ubsan=no 16732fi 16733rm -f core conftest.err conftest.$ac_objext \ 16734 conftest$ac_exeext conftest.$ac_ext 16735 CXXFLAGS="$saved_CXXFLAGS" 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5 16737$as_echo "$enable_ubsan" >&6; } 16738 if test "x$enable_ubsan" = xyes; then 16739 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined" 16740 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined" 16741 fi 16742fi 16743ac_ext=c 16744ac_cpp='$CPP $CPPFLAGS' 16745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16747ac_compiler_gnu=$ac_cv_c_compiler_gnu 16748 16749 16750 16751# In the Cygwin environment, we need some additional flags. 16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 16753$as_echo_n "checking for cygwin... " >&6; } 16754if ${gdb_cv_os_cygwin+:} false; then : 16755 $as_echo_n "(cached) " >&6 16756else 16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16758/* end confdefs.h. */ 16759 16760#if defined (__CYGWIN__) || defined (__CYGWIN32__) 16761lose 16762#endif 16763_ACEOF 16764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16765 $EGREP "^lose$" >/dev/null 2>&1; then : 16766 gdb_cv_os_cygwin=yes 16767else 16768 gdb_cv_os_cygwin=no 16769fi 16770rm -f conftest* 16771 16772fi 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5 16774$as_echo "$gdb_cv_os_cygwin" >&6; } 16775 16776 16777SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" 16778case ${host} in 16779 *go32* ) SER_HARDWIRE=ser-go32.o ;; 16780 *djgpp* ) SER_HARDWIRE=ser-go32.o ;; 16781 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; 16782 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;; 16783esac 16784 16785 16786# libreadline needs libuser32.a in a cygwin environment 16787WIN32LIBS= 16788if test x"$gdb_cv_os_cygwin" = xyes; then 16789 WIN32LIBS="-luser32" 16790 case "${target}" in 16791 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" 16792 ;; 16793 esac 16794fi 16795 16796# The ser-tcp.c module requires sockets. 16797# Note that WIN32APILIBS is set by GDB_AC_COMMON. 16798WIN32LIBS="$WIN32LIBS $WIN32APILIBS" 16799 16800# Add ELF support to GDB, but only if BFD includes ELF support. 16801 16802 OLD_CFLAGS=$CFLAGS 16803 OLD_LDFLAGS=$LDFLAGS 16804 OLD_LIBS=$LIBS 16805 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS 16806 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We 16807 # always want our bfd. 16808 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" 16809 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'` 16810 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS" 16811 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` 16812 LIBS="-lbfd -liberty -lz $intl $LIBS" 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5 16814$as_echo_n "checking for ELF support in BFD... " >&6; } 16815if ${gdb_cv_var_elf+:} false; then : 16816 $as_echo_n "(cached) " >&6 16817else 16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16819/* end confdefs.h. */ 16820#include <stdlib.h> 16821 #include "bfd.h" 16822 #include "elf-bfd.h" 16823 16824int 16825main () 16826{ 16827return bfd_get_elf_phdr_upper_bound (NULL); 16828 ; 16829 return 0; 16830} 16831_ACEOF 16832if ac_fn_c_try_link "$LINENO"; then : 16833 gdb_cv_var_elf=yes 16834else 16835 gdb_cv_var_elf=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext \ 16838 conftest$ac_exeext conftest.$ac_ext 16839fi 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5 16841$as_echo "$gdb_cv_var_elf" >&6; } 16842 CFLAGS=$OLD_CFLAGS 16843 LDFLAGS=$OLD_LDFLAGS 16844 LIBS=$OLD_LIBS 16845if test "$gdb_cv_var_elf" = yes; then 16846 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o" 16847 16848$as_echo "#define HAVE_ELF 1" >>confdefs.h 16849 16850 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>. 16851 if test "$plugins" = "yes"; then 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16853$as_echo_n "checking for library containing dlopen... " >&6; } 16854if ${ac_cv_search_dlopen+:} false; then : 16855 $as_echo_n "(cached) " >&6 16856else 16857 ac_func_search_save_LIBS=$LIBS 16858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860 16861/* Override any GCC internal prototype to avoid an error. 16862 Use char because int might match the return type of a GCC 16863 builtin and then its argument prototype would still apply. */ 16864#ifdef __cplusplus 16865extern "C" 16866#endif 16867char dlopen (); 16868int 16869main () 16870{ 16871return dlopen (); 16872 ; 16873 return 0; 16874} 16875_ACEOF 16876for ac_lib in '' dl; do 16877 if test -z "$ac_lib"; then 16878 ac_res="none required" 16879 else 16880 ac_res=-l$ac_lib 16881 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16882 fi 16883 if ac_fn_c_try_link "$LINENO"; then : 16884 ac_cv_search_dlopen=$ac_res 16885fi 16886rm -f core conftest.err conftest.$ac_objext \ 16887 conftest$ac_exeext 16888 if ${ac_cv_search_dlopen+:} false; then : 16889 break 16890fi 16891done 16892if ${ac_cv_search_dlopen+:} false; then : 16893 16894else 16895 ac_cv_search_dlopen=no 16896fi 16897rm conftest.$ac_ext 16898LIBS=$ac_func_search_save_LIBS 16899fi 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16901$as_echo "$ac_cv_search_dlopen" >&6; } 16902ac_res=$ac_cv_search_dlopen 16903if test "$ac_res" != no; then : 16904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16905 16906fi 16907 16908 fi 16909fi 16910 16911# Add macho support to GDB, but only if BFD includes it. 16912 16913 OLD_CFLAGS=$CFLAGS 16914 OLD_LDFLAGS=$LDFLAGS 16915 OLD_LIBS=$LIBS 16916 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS 16917 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We 16918 # always want our bfd. 16919 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" 16920 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'` 16921 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS" 16922 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` 16923 LIBS="-lbfd -liberty -lz $intl $LIBS" 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5 16925$as_echo_n "checking for Mach-O support in BFD... " >&6; } 16926if ${gdb_cv_var_macho+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16930/* end confdefs.h. */ 16931#include <stdlib.h> 16932 #include "bfd.h" 16933 #include "mach-o.h" 16934 16935int 16936main () 16937{ 16938return bfd_mach_o_lookup_command (NULL, 0, NULL); 16939 ; 16940 return 0; 16941} 16942_ACEOF 16943if ac_fn_c_try_link "$LINENO"; then : 16944 gdb_cv_var_macho=yes 16945else 16946 gdb_cv_var_macho=no 16947fi 16948rm -f core conftest.err conftest.$ac_objext \ 16949 conftest$ac_exeext conftest.$ac_ext 16950fi 16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5 16952$as_echo "$gdb_cv_var_macho" >&6; } 16953 CFLAGS=$OLD_CFLAGS 16954 LDFLAGS=$OLD_LDFLAGS 16955 LIBS=$OLD_LIBS 16956if test "$gdb_cv_var_macho" = yes; then 16957 CONFIG_OBS="$CONFIG_OBS machoread.o" 16958fi 16959 16960# Add any host-specific objects to GDB. 16961CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" 16962 16963# If building on ELF, look for lzma support for embedded compressed debug info. 16964if test "$gdb_cv_var_elf" = yes; then 16965 16966# Check whether --with-lzma was given. 16967if test "${with_lzma+set}" = set; then : 16968 withval=$with_lzma; 16969else 16970 with_lzma=auto 16971fi 16972 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5 16974$as_echo_n "checking whether to use lzma... " >&6; } 16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5 16976$as_echo "$with_lzma" >&6; } 16977 16978 if test "${with_lzma}" != no; then 16979 16980 16981 16982 16983 16984 16985 16986 16987 use_additional=yes 16988 16989 acl_save_prefix="$prefix" 16990 prefix="$acl_final_prefix" 16991 acl_save_exec_prefix="$exec_prefix" 16992 exec_prefix="$acl_final_exec_prefix" 16993 16994 eval additional_includedir=\"$includedir\" 16995 eval additional_libdir=\"$libdir\" 16996 16997 exec_prefix="$acl_save_exec_prefix" 16998 prefix="$acl_save_prefix" 16999 17000 17001# Check whether --with-liblzma-prefix was given. 17002if test "${with_liblzma_prefix+set}" = set; then : 17003 withval=$with_liblzma_prefix; 17004 if test "X$withval" = "Xno"; then 17005 use_additional=no 17006 else 17007 if test "X$withval" = "X"; then 17008 17009 acl_save_prefix="$prefix" 17010 prefix="$acl_final_prefix" 17011 acl_save_exec_prefix="$exec_prefix" 17012 exec_prefix="$acl_final_exec_prefix" 17013 17014 eval additional_includedir=\"$includedir\" 17015 eval additional_libdir=\"$libdir\" 17016 17017 exec_prefix="$acl_save_exec_prefix" 17018 prefix="$acl_save_prefix" 17019 17020 else 17021 additional_includedir="$withval/include" 17022 additional_libdir="$withval/lib" 17023 fi 17024 fi 17025 17026fi 17027 17028 17029# Check whether --with-liblzma-type was given. 17030if test "${with_liblzma_type+set}" = set; then : 17031 withval=$with_liblzma_type; with_liblzma_type=$withval 17032else 17033 with_liblzma_type=auto 17034fi 17035 17036 lib_type=`eval echo \$with_liblzma_type` 17037 17038 LIBLZMA= 17039 LTLIBLZMA= 17040 INCLZMA= 17041 rpathdirs= 17042 ltrpathdirs= 17043 names_already_handled= 17044 names_next_round='lzma ' 17045 while test -n "$names_next_round"; do 17046 names_this_round="$names_next_round" 17047 names_next_round= 17048 for name in $names_this_round; do 17049 already_handled= 17050 for n in $names_already_handled; do 17051 if test "$n" = "$name"; then 17052 already_handled=yes 17053 break 17054 fi 17055 done 17056 if test -z "$already_handled"; then 17057 names_already_handled="$names_already_handled $name" 17058 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 17059 eval value=\"\$HAVE_LIB$uppername\" 17060 if test -n "$value"; then 17061 if test "$value" = yes; then 17062 eval value=\"\$LIB$uppername\" 17063 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value" 17064 eval value=\"\$LTLIB$uppername\" 17065 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value" 17066 else 17067 : 17068 fi 17069 else 17070 found_dir= 17071 found_la= 17072 found_so= 17073 found_a= 17074 if test $use_additional = yes; then 17075 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 17076 found_dir="$additional_libdir" 17077 found_so="$additional_libdir/lib$name.$shlibext" 17078 if test -f "$additional_libdir/lib$name.la"; then 17079 found_la="$additional_libdir/lib$name.la" 17080 fi 17081 elif test x$lib_type != xshared; then 17082 if test -f "$additional_libdir/lib$name.$libext"; then 17083 found_dir="$additional_libdir" 17084 found_a="$additional_libdir/lib$name.$libext" 17085 if test -f "$additional_libdir/lib$name.la"; then 17086 found_la="$additional_libdir/lib$name.la" 17087 fi 17088 fi 17089 fi 17090 fi 17091 if test "X$found_dir" = "X"; then 17092 for x in $LDFLAGS $LTLIBLZMA; do 17093 17094 acl_save_prefix="$prefix" 17095 prefix="$acl_final_prefix" 17096 acl_save_exec_prefix="$exec_prefix" 17097 exec_prefix="$acl_final_exec_prefix" 17098 eval x=\"$x\" 17099 exec_prefix="$acl_save_exec_prefix" 17100 prefix="$acl_save_prefix" 17101 17102 case "$x" in 17103 -L*) 17104 dir=`echo "X$x" | sed -e 's/^X-L//'` 17105 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 17106 found_dir="$dir" 17107 found_so="$dir/lib$name.$shlibext" 17108 if test -f "$dir/lib$name.la"; then 17109 found_la="$dir/lib$name.la" 17110 fi 17111 elif test x$lib_type != xshared; then 17112 if test -f "$dir/lib$name.$libext"; then 17113 found_dir="$dir" 17114 found_a="$dir/lib$name.$libext" 17115 if test -f "$dir/lib$name.la"; then 17116 found_la="$dir/lib$name.la" 17117 fi 17118 fi 17119 fi 17120 ;; 17121 esac 17122 if test "X$found_dir" != "X"; then 17123 break 17124 fi 17125 done 17126 fi 17127 if test "X$found_dir" != "X"; then 17128 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name" 17129 if test "X$found_so" != "X"; then 17130 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 17131 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so" 17132 else 17133 haveit= 17134 for x in $ltrpathdirs; do 17135 if test "X$x" = "X$found_dir"; then 17136 haveit=yes 17137 break 17138 fi 17139 done 17140 if test -z "$haveit"; then 17141 ltrpathdirs="$ltrpathdirs $found_dir" 17142 fi 17143 if test "$hardcode_direct" = yes; then 17144 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so" 17145 else 17146 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 17147 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so" 17148 haveit= 17149 for x in $rpathdirs; do 17150 if test "X$x" = "X$found_dir"; then 17151 haveit=yes 17152 break 17153 fi 17154 done 17155 if test -z "$haveit"; then 17156 rpathdirs="$rpathdirs $found_dir" 17157 fi 17158 else 17159 haveit= 17160 for x in $LDFLAGS $LIBLZMA; do 17161 17162 acl_save_prefix="$prefix" 17163 prefix="$acl_final_prefix" 17164 acl_save_exec_prefix="$exec_prefix" 17165 exec_prefix="$acl_final_exec_prefix" 17166 eval x=\"$x\" 17167 exec_prefix="$acl_save_exec_prefix" 17168 prefix="$acl_save_prefix" 17169 17170 if test "X$x" = "X-L$found_dir"; then 17171 haveit=yes 17172 break 17173 fi 17174 done 17175 if test -z "$haveit"; then 17176 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir" 17177 fi 17178 if test "$hardcode_minus_L" != no; then 17179 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so" 17180 else 17181 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name" 17182 fi 17183 fi 17184 fi 17185 fi 17186 else 17187 if test "X$found_a" != "X"; then 17188 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a" 17189 else 17190 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name" 17191 fi 17192 fi 17193 additional_includedir= 17194 case "$found_dir" in 17195 */lib | */lib/) 17196 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 17197 additional_includedir="$basedir/include" 17198 ;; 17199 esac 17200 if test "X$additional_includedir" != "X"; then 17201 if test "X$additional_includedir" != "X/usr/include"; then 17202 haveit= 17203 if test "X$additional_includedir" = "X/usr/local/include"; then 17204 if test -n "$GCC"; then 17205 case $host_os in 17206 linux*) haveit=yes;; 17207 esac 17208 fi 17209 fi 17210 if test -z "$haveit"; then 17211 for x in $CPPFLAGS $INCLZMA; do 17212 17213 acl_save_prefix="$prefix" 17214 prefix="$acl_final_prefix" 17215 acl_save_exec_prefix="$exec_prefix" 17216 exec_prefix="$acl_final_exec_prefix" 17217 eval x=\"$x\" 17218 exec_prefix="$acl_save_exec_prefix" 17219 prefix="$acl_save_prefix" 17220 17221 if test "X$x" = "X-I$additional_includedir"; then 17222 haveit=yes 17223 break 17224 fi 17225 done 17226 if test -z "$haveit"; then 17227 if test -d "$additional_includedir"; then 17228 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir" 17229 fi 17230 fi 17231 fi 17232 fi 17233 fi 17234 if test -n "$found_la"; then 17235 save_libdir="$libdir" 17236 case "$found_la" in 17237 */* | *\\*) . "$found_la" ;; 17238 *) . "./$found_la" ;; 17239 esac 17240 libdir="$save_libdir" 17241 for dep in $dependency_libs; do 17242 case "$dep" in 17243 -L*) 17244 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 17245 if test "X$additional_libdir" != "X/usr/lib"; then 17246 haveit= 17247 if test "X$additional_libdir" = "X/usr/local/lib"; then 17248 if test -n "$GCC"; then 17249 case $host_os in 17250 linux*) haveit=yes;; 17251 esac 17252 fi 17253 fi 17254 if test -z "$haveit"; then 17255 haveit= 17256 for x in $LDFLAGS $LIBLZMA; do 17257 17258 acl_save_prefix="$prefix" 17259 prefix="$acl_final_prefix" 17260 acl_save_exec_prefix="$exec_prefix" 17261 exec_prefix="$acl_final_exec_prefix" 17262 eval x=\"$x\" 17263 exec_prefix="$acl_save_exec_prefix" 17264 prefix="$acl_save_prefix" 17265 17266 if test "X$x" = "X-L$additional_libdir"; then 17267 haveit=yes 17268 break 17269 fi 17270 done 17271 if test -z "$haveit"; then 17272 if test -d "$additional_libdir"; then 17273 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir" 17274 fi 17275 fi 17276 haveit= 17277 for x in $LDFLAGS $LTLIBLZMA; do 17278 17279 acl_save_prefix="$prefix" 17280 prefix="$acl_final_prefix" 17281 acl_save_exec_prefix="$exec_prefix" 17282 exec_prefix="$acl_final_exec_prefix" 17283 eval x=\"$x\" 17284 exec_prefix="$acl_save_exec_prefix" 17285 prefix="$acl_save_prefix" 17286 17287 if test "X$x" = "X-L$additional_libdir"; then 17288 haveit=yes 17289 break 17290 fi 17291 done 17292 if test -z "$haveit"; then 17293 if test -d "$additional_libdir"; then 17294 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir" 17295 fi 17296 fi 17297 fi 17298 fi 17299 ;; 17300 -R*) 17301 dir=`echo "X$dep" | sed -e 's/^X-R//'` 17302 if test "$enable_rpath" != no; then 17303 haveit= 17304 for x in $rpathdirs; do 17305 if test "X$x" = "X$dir"; then 17306 haveit=yes 17307 break 17308 fi 17309 done 17310 if test -z "$haveit"; then 17311 rpathdirs="$rpathdirs $dir" 17312 fi 17313 haveit= 17314 for x in $ltrpathdirs; do 17315 if test "X$x" = "X$dir"; then 17316 haveit=yes 17317 break 17318 fi 17319 done 17320 if test -z "$haveit"; then 17321 ltrpathdirs="$ltrpathdirs $dir" 17322 fi 17323 fi 17324 ;; 17325 -l*) 17326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 17327 ;; 17328 *.la) 17329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 17330 ;; 17331 *) 17332 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep" 17333 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep" 17334 ;; 17335 esac 17336 done 17337 fi 17338 else 17339 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 17340 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name" 17341 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name" 17342 else 17343 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext" 17344 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext" 17345 fi 17346 fi 17347 fi 17348 fi 17349 done 17350 done 17351 if test "X$rpathdirs" != "X"; then 17352 if test -n "$hardcode_libdir_separator"; then 17353 alldirs= 17354 for found_dir in $rpathdirs; do 17355 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 17356 done 17357 acl_save_libdir="$libdir" 17358 libdir="$alldirs" 17359 eval flag=\"$hardcode_libdir_flag_spec\" 17360 libdir="$acl_save_libdir" 17361 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag" 17362 else 17363 for found_dir in $rpathdirs; do 17364 acl_save_libdir="$libdir" 17365 libdir="$found_dir" 17366 eval flag=\"$hardcode_libdir_flag_spec\" 17367 libdir="$acl_save_libdir" 17368 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag" 17369 done 17370 fi 17371 fi 17372 if test "X$ltrpathdirs" != "X"; then 17373 for found_dir in $ltrpathdirs; do 17374 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir" 17375 done 17376 fi 17377 17378 17379 ac_save_CPPFLAGS="$CPPFLAGS" 17380 17381 for element in $INCLZMA; do 17382 haveit= 17383 for x in $CPPFLAGS; do 17384 17385 acl_save_prefix="$prefix" 17386 prefix="$acl_final_prefix" 17387 acl_save_exec_prefix="$exec_prefix" 17388 exec_prefix="$acl_final_exec_prefix" 17389 eval x=\"$x\" 17390 exec_prefix="$acl_save_exec_prefix" 17391 prefix="$acl_save_prefix" 17392 17393 if test "X$x" = "X$element"; then 17394 haveit=yes 17395 break 17396 fi 17397 done 17398 if test -z "$haveit"; then 17399 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 17400 fi 17401 done 17402 17403 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5 17405$as_echo_n "checking for liblzma... " >&6; } 17406if ${ac_cv_liblzma+:} false; then : 17407 $as_echo_n "(cached) " >&6 17408else 17409 17410 ac_save_LIBS="$LIBS" 17411 LIBS="$LIBS $LIBLZMA" 17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17413/* end confdefs.h. */ 17414#include "lzma.h" 17415int 17416main () 17417{ 17418lzma_index_iter iter; 17419 lzma_index_iter_init (&iter, 0); 17420 lzma_mf_is_supported (LZMA_MF_HC3); 17421 ; 17422 return 0; 17423} 17424_ACEOF 17425if ac_fn_c_try_link "$LINENO"; then : 17426 ac_cv_liblzma=yes 17427else 17428 ac_cv_liblzma=no 17429fi 17430rm -f core conftest.err conftest.$ac_objext \ 17431 conftest$ac_exeext conftest.$ac_ext 17432 LIBS="$ac_save_LIBS" 17433 17434fi 17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5 17436$as_echo "$ac_cv_liblzma" >&6; } 17437 if test "$ac_cv_liblzma" = yes; then 17438 HAVE_LIBLZMA=yes 17439 17440$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h 17441 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5 17443$as_echo_n "checking how to link with liblzma... " >&6; } 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5 17445$as_echo "$LIBLZMA" >&6; } 17446 else 17447 HAVE_LIBLZMA=no 17448 CPPFLAGS="$ac_save_CPPFLAGS" 17449 LIBLZMA= 17450 LTLIBLZMA= 17451 fi 17452 17453 17454 17455 17456 17457 17458 if test "$HAVE_LIBLZMA" != yes; then 17459 if test "$with_lzma" = yes; then 17460 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5 17461 fi 17462 fi 17463 fi 17464fi 17465 17466LIBGUI="../libgui/src/libgui.a" 17467GUI_CFLAGS_X="-I${srcdir}/../libgui/src" 17468 17469 17470 17471WIN32LDAPP= 17472 17473 17474 17475case "${host}" in 17476*-*-cygwin* | *-*-mingw* ) 17477 configdir="win" 17478 ;; 17479*) 17480 configdir="unix" 17481 ;; 17482esac 17483 17484GDBTKLIBS= 17485if test "${enable_gdbtk}" = "yes"; then 17486 17487 # Gdbtk must have an absolute path to srcdir in order to run 17488 # properly when not installed. 17489 here=`pwd` 17490 cd ${srcdir} 17491 GDBTK_SRC_DIR=`pwd` 17492 cd $here 17493 17494 17495 # 17496 # Ok, lets find the tcl configuration 17497 # First, look for one uninstalled. 17498 # the alternative search directory is invoked by --with-tcl 17499 # 17500 17501 if test x"${no_tcl}" = x ; then 17502 # we reset no_tcl in case something fails here 17503 no_tcl=true 17504 17505# Check whether --with-tcl was given. 17506if test "${with_tcl+set}" = set; then : 17507 withval=$with_tcl; with_tclconfig=${withval} 17508fi 17509 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 17511$as_echo_n "checking for Tcl configuration... " >&6; } 17512 if ${ac_cv_c_tclconfig+:} false; then : 17513 $as_echo_n "(cached) " >&6 17514else 17515 17516 17517 # First check to see if --with-tcl was specified. 17518 case "${host}" in 17519 *-*-cygwin*) platDir="win" ;; 17520 *) platDir="unix" ;; 17521 esac 17522 if test x"${with_tclconfig}" != x ; then 17523 if test -f "${with_tclconfig}/tclConfig.sh" ; then 17524 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` 17525 else 17526 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 17527 fi 17528 fi 17529 17530 # then check for a private Tcl installation 17531 if test x"${ac_cv_c_tclconfig}" = x ; then 17532 for i in \ 17533 ../tcl \ 17534 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 17535 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 17536 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 17537 ../../tcl \ 17538 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 17539 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 17540 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 17541 ../../../tcl \ 17542 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 17543 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 17544 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 17545 if test -f "$i/$platDir/tclConfig.sh" ; then 17546 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` 17547 break 17548 fi 17549 done 17550 fi 17551 17552 # on Darwin, check in Framework installation locations 17553 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 17554 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 17555 `ls -d /Library/Frameworks 2>/dev/null` \ 17556 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 17557 `ls -d /System/Library/Frameworks 2>/dev/null` \ 17558 ; do 17559 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 17560 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)` 17561 break 17562 fi 17563 done 17564 fi 17565 17566 # check in a few common install locations 17567 if test x"${ac_cv_c_tclconfig}" = x ; then 17568 for i in `ls -d ${libdir} 2>/dev/null` \ 17569 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 17570 `ls -d ${prefix}/lib 2>/dev/null` \ 17571 `ls -d /usr/local/lib 2>/dev/null` \ 17572 `ls -d /usr/contrib/lib 2>/dev/null` \ 17573 `ls -d /usr/lib 2>/dev/null` \ 17574 ; do 17575 if test -f "$i/tclConfig.sh" ; then 17576 ac_cv_c_tclconfig=`(cd $i; pwd)` 17577 break 17578 fi 17579 done 17580 fi 17581 17582 # check in a few other private locations 17583 if test x"${ac_cv_c_tclconfig}" = x ; then 17584 for i in \ 17585 ${srcdir}/../tcl \ 17586 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 17587 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 17588 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 17589 if test -f "$i/$platDir/tclConfig.sh" ; then 17590 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)` 17591 break 17592 fi 17593 done 17594 fi 17595 17596fi 17597 17598 17599 if test x"${ac_cv_c_tclconfig}" = x ; then 17600 TCL_BIN_DIR="# no Tcl configs found" 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5 17602$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} 17603 else 17604 no_tcl= 17605 TCL_BIN_DIR=${ac_cv_c_tclconfig} 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 17607$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 17608 fi 17609 fi 17610 17611 17612 # If $no_tk is nonempty, then we can't do Tk, and there is no 17613 # point to doing Tcl. 17614 17615 # 17616 # Ok, lets find the tk configuration 17617 # First, look for one uninstalled. 17618 # the alternative search directory is invoked by --with-tk 17619 # 17620 17621 if test x"${no_tk}" = x ; then 17622 # we reset no_tk in case something fails here 17623 no_tk=true 17624 17625# Check whether --with-tk was given. 17626if test "${with_tk+set}" = set; then : 17627 withval=$with_tk; with_tkconfig=${withval} 17628fi 17629 17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5 17631$as_echo_n "checking for Tk configuration... " >&6; } 17632 if ${ac_cv_c_tkconfig+:} false; then : 17633 $as_echo_n "(cached) " >&6 17634else 17635 17636 17637 # First check to see if --with-tkconfig was specified. 17638 if test x"${with_tkconfig}" != x ; then 17639 if test -f "${with_tkconfig}/tkConfig.sh" ; then 17640 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` 17641 else 17642 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5 17643 fi 17644 fi 17645 17646 # then check for a private Tk library 17647 case "${host}" in 17648 *-*-cygwin*) platDir="win" ;; 17649 *) platDir="unix" ;; 17650 esac 17651 if test x"${ac_cv_c_tkconfig}" = x ; then 17652 for i in \ 17653 ../tk \ 17654 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 17655 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \ 17656 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \ 17657 ../../tk \ 17658 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 17659 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \ 17660 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \ 17661 ../../../tk \ 17662 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 17663 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \ 17664 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do 17665 if test -f "$i/$platDir/tkConfig.sh" ; then 17666 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` 17667 break 17668 fi 17669 done 17670 fi 17671 17672 # on Darwin, check in Framework installation locations 17673 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then 17674 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 17675 `ls -d /Library/Frameworks 2>/dev/null` \ 17676 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 17677 `ls -d /System/Library/Frameworks 2>/dev/null` \ 17678 ; do 17679 if test -f "$i/Tk.framework/tkConfig.sh" ; then 17680 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)` 17681 break 17682 fi 17683 done 17684 fi 17685 17686 # check in a few common install locations 17687 if test x"${ac_cv_c_tkconfig}" = x ; then 17688 for i in `ls -d ${libdir} 2>/dev/null` \ 17689 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 17690 `ls -d ${prefix}/lib 2>/dev/null` \ 17691 `ls -d /usr/local/lib 2>/dev/null` \ 17692 `ls -d /usr/contrib/lib 2>/dev/null` \ 17693 `ls -d /usr/lib 2>/dev/null` \ 17694 ; do 17695 if test -f "$i/tkConfig.sh" ; then 17696 ac_cv_c_tkconfig=`(cd $i; pwd)` 17697 break 17698 fi 17699 done 17700 fi 17701 # check in a few other private locations 17702 if test x"${ac_cv_c_tkconfig}" = x ; then 17703 for i in \ 17704 ${srcdir}/../tk \ 17705 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \ 17706 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \ 17707 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do 17708 if test -f "$i/$platDir/tkConfig.sh" ; then 17709 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)` 17710 break 17711 fi 17712 done 17713 fi 17714 17715fi 17716 17717 17718 if test x"${ac_cv_c_tkconfig}" = x ; then 17719 TK_BIN_DIR="# no Tk configs found" 17720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5 17721$as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} 17722 else 17723 no_tk= 17724 TK_BIN_DIR=${ac_cv_c_tkconfig} 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5 17726$as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; } 17727 fi 17728 fi 17729 17730 17731 if test -z "${no_tcl}" -a -z "${no_tk}"; then 17732 17733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 17734$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 17735 17736 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 17738$as_echo "loading" >&6; } 17739 . ${TCL_BIN_DIR}/tclConfig.sh 17740 else 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 17742$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 17743 fi 17744 17745 # eval is required to do the TCL_DBGX substitution 17746 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 17747 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 17748 17749 # If the TCL_BIN_DIR is the build directory (not the install directory), 17750 # then set the common variable name to the value of the build variables. 17751 # For example, the variable TCL_LIB_SPEC will be set to the value 17752 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 17753 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 17754 # installed and uninstalled version of Tcl. 17755 if test -f "${TCL_BIN_DIR}/Makefile" ; then 17756 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC} 17757 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC} 17758 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH} 17759 elif test "`uname -s`" = "Darwin"; then 17760 # If Tcl was built as a framework, attempt to use the libraries 17761 # from the framework at the given location so that linking works 17762 # against Tcl.framework installed in an arbitrary location. 17763 case ${TCL_DEFS} in 17764 *TCL_FRAMEWORK*) 17765 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 17766 for i in "`cd ${TCL_BIN_DIR}; pwd`" \ 17767 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do 17768 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 17769 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}" 17770 break 17771 fi 17772 done 17773 fi 17774 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 17775 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}" 17776 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 17777 fi 17778 ;; 17779 esac 17780 fi 17781 17782 # eval is required to do the TCL_DBGX substitution 17783 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 17784 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 17785 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 17786 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 # Check for in-tree tcl 17803 here=`pwd` 17804 cd ${srcdir}/.. 17805 topdir=`pwd` 17806 cd ${here} 17807 17808 intree="no" 17809 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then 17810 intree="yes" 17811 fi 17812 17813 # Find Tcl private headers 17814 if test x"${intree}" = xno; then 17815 17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5 17817$as_echo_n "checking for Tcl private headers... " >&6; } 17818 private_dir="" 17819 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//` 17820 if test -f ${dir}/tclInt.h ; then 17821 private_dir=${dir} 17822 fi 17823 17824 if test x"${private_dir}" = x; then 17825 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5 17826 else 17827 TCL_PRIVATE_INCLUDE="-I${private_dir}" 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5 17829$as_echo "${private_dir}" >&6; } 17830 fi 17831 17832 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}" 17833 TCL_LIBRARY="${TCL_LIB_SPEC}" 17834 TCL_DEPS="" 17835 else 17836 # If building tcl in the same src tree, private headers 17837 # are not needed, but we need to be sure to use the right 17838 # headers library 17839 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic" 17840 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}" 17841 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}" 17842 fi 17843 17844 17845 17846 17847 17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5 17849$as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; } 17850 17851 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 17853$as_echo "loading" >&6; } 17854 . ${TK_BIN_DIR}/tkConfig.sh 17855 else 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5 17857$as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; } 17858 fi 17859 17860 # eval is required to do the TK_DBGX substitution 17861 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\"" 17862 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\"" 17863 17864 # If the TK_BIN_DIR is the build directory (not the install directory), 17865 # then set the common variable name to the value of the build variables. 17866 # For example, the variable TK_LIB_SPEC will be set to the value 17867 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC 17868 # instead of TK_BUILD_LIB_SPEC since it will work with both an 17869 # installed and uninstalled version of Tcl. 17870 if test -f "${TK_BIN_DIR}/Makefile" ; then 17871 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC} 17872 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC} 17873 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH} 17874 elif test "`uname -s`" = "Darwin"; then 17875 # If Tk was built as a framework, attempt to use the libraries 17876 # from the framework at the given location so that linking works 17877 # against Tk.framework installed in an arbitrary location. 17878 case ${TK_DEFS} in 17879 *TK_FRAMEWORK*) 17880 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then 17881 for i in "`cd ${TK_BIN_DIR}; pwd`" \ 17882 "`cd ${TK_BIN_DIR}/../..; pwd`"; do 17883 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then 17884 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}" 17885 break 17886 fi 17887 done 17888 fi 17889 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then 17890 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}" 17891 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}" 17892 fi 17893 ;; 17894 esac 17895 fi 17896 17897 # eval is required to do the TK_DBGX substitution 17898 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\"" 17899 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\"" 17900 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\"" 17901 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\"" 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 # Check for in-tree Tk 17917 intree="no" 17918 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then 17919 intree="yes" 17920 fi 17921 17922 # Find Tk private headers 17923 if test x"${intree}" = xno; then 17924 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5 17926$as_echo_n "checking for Tk private headers... " >&6; } 17927 private_dir="" 17928 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//` 17929 if test -f ${dir}/tkInt.h; then 17930 private_dir=${dir} 17931 fi 17932 17933 if test x"${private_dir}" = x; then 17934 as_fn_error $? "could not find Tk private headers" "$LINENO" 5 17935 else 17936 TK_PRIVATE_INCLUDE="-I${private_dir}" 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5 17938$as_echo "${private_dir}" >&6; } 17939 fi 17940 17941 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}" 17942 TK_LIBRARY=${TK_LIB_SPEC} 17943 TK_DEPS="" 17944 else 17945 TK_INCLUDE="-I${TK_SRC_DIR}/generic" 17946 TK_LIBRARY="${TK_BUILD_LIB_SPEC}" 17947 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}" 17948 fi 17949 17950 17951 17952 17953 17954 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" 17955 17956 # Include some libraries that Tcl and Tk want. 17957 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' 17958 # Yes, the ordering seems wrong here. But it isn't. 17959 # TK_LIBS is the list of libraries that need to be linked 17960 # after Tcl/Tk. Note that this isn't put into LIBS. If it 17961 # were in LIBS then any link tests after this point would 17962 # try to include things like `$(LIBGUI)', which wouldn't work. 17963 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" 17964 17965 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" 17966 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" 17967 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" 17968 CONFIG_ALL="${CONFIG_ALL} all-gdbtk" 17969 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" 17970 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" 17971 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" 17972 17973 if test x"$gdb_cv_os_cygwin" = xyes; then 17974 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" 17975 WIN32LDAPP="-Wl,--subsystem,console" 17976 CONFIG_OBS="${CONFIG_OBS} gdbres.o" 17977 fi 17978 17979 subdirs="$subdirs gdbtk" 17980 17981 fi 17982fi 17983 17984 17985 17986 17987 17988 17989 17990 17991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17992$as_echo_n "checking for X... " >&6; } 17993 17994 17995# Check whether --with-x was given. 17996if test "${with_x+set}" = set; then : 17997 withval=$with_x; 17998fi 17999 18000# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 18001if test "x$with_x" = xno; then 18002 # The user explicitly disabled X. 18003 have_x=disabled 18004else 18005 case $x_includes,$x_libraries in #( 18006 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 18007 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009else 18010 # One or both of the vars are not set, and there is no cached value. 18011ac_x_includes=no ac_x_libraries=no 18012rm -f -r conftest.dir 18013if mkdir conftest.dir; then 18014 cd conftest.dir 18015 cat >Imakefile <<'_ACEOF' 18016incroot: 18017 @echo incroot='${INCROOT}' 18018usrlibdir: 18019 @echo usrlibdir='${USRLIBDIR}' 18020libdir: 18021 @echo libdir='${LIBDIR}' 18022_ACEOF 18023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 18024 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 18025 for ac_var in incroot usrlibdir libdir; do 18026 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 18027 done 18028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 18029 for ac_extension in a so sl dylib la dll; do 18030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 18031 test -f "$ac_im_libdir/libX11.$ac_extension"; then 18032 ac_im_usrlibdir=$ac_im_libdir; break 18033 fi 18034 done 18035 # Screen out bogus values from the imake configuration. They are 18036 # bogus both because they are the default anyway, and because 18037 # using them would break gcc on systems where it needs fixed includes. 18038 case $ac_im_incroot in 18039 /usr/include) ac_x_includes= ;; 18040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 18041 esac 18042 case $ac_im_usrlibdir in 18043 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 18044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 18045 esac 18046 fi 18047 cd .. 18048 rm -f -r conftest.dir 18049fi 18050 18051# Standard set of common directories for X headers. 18052# Check X11 before X11Rn because it is often a symlink to the current release. 18053ac_x_header_dirs=' 18054/usr/X11/include 18055/usr/X11R7/include 18056/usr/X11R6/include 18057/usr/X11R5/include 18058/usr/X11R4/include 18059 18060/usr/include/X11 18061/usr/include/X11R7 18062/usr/include/X11R6 18063/usr/include/X11R5 18064/usr/include/X11R4 18065 18066/usr/local/X11/include 18067/usr/local/X11R7/include 18068/usr/local/X11R6/include 18069/usr/local/X11R5/include 18070/usr/local/X11R4/include 18071 18072/usr/local/include/X11 18073/usr/local/include/X11R7 18074/usr/local/include/X11R6 18075/usr/local/include/X11R5 18076/usr/local/include/X11R4 18077 18078/usr/X386/include 18079/usr/x386/include 18080/usr/XFree86/include/X11 18081 18082/usr/include 18083/usr/local/include 18084/usr/unsupported/include 18085/usr/athena/include 18086/usr/local/x11r5/include 18087/usr/lpp/Xamples/include 18088 18089/usr/openwin/include 18090/usr/openwin/share/include' 18091 18092if test "$ac_x_includes" = no; then 18093 # Guess where to find include files, by looking for Xlib.h. 18094 # First, try using that file with no special directory specified. 18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18096/* end confdefs.h. */ 18097#include <X11/Xlib.h> 18098_ACEOF 18099if ac_fn_c_try_cpp "$LINENO"; then : 18100 # We can compile using X headers with no special include directory. 18101ac_x_includes= 18102else 18103 for ac_dir in $ac_x_header_dirs; do 18104 if test -r "$ac_dir/X11/Xlib.h"; then 18105 ac_x_includes=$ac_dir 18106 break 18107 fi 18108done 18109fi 18110rm -f conftest.err conftest.i conftest.$ac_ext 18111fi # $ac_x_includes = no 18112 18113if test "$ac_x_libraries" = no; then 18114 # Check for the libraries. 18115 # See if we find them without any special options. 18116 # Don't add to $LIBS permanently. 18117 ac_save_LIBS=$LIBS 18118 LIBS="-lX11 $LIBS" 18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18120/* end confdefs.h. */ 18121#include <X11/Xlib.h> 18122int 18123main () 18124{ 18125XrmInitialize () 18126 ; 18127 return 0; 18128} 18129_ACEOF 18130if ac_fn_c_try_link "$LINENO"; then : 18131 LIBS=$ac_save_LIBS 18132# We can link X programs with no special library path. 18133ac_x_libraries= 18134else 18135 LIBS=$ac_save_LIBS 18136for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 18137do 18138 # Don't even attempt the hair of trying to link an X program! 18139 for ac_extension in a so sl dylib la dll; do 18140 if test -r "$ac_dir/libX11.$ac_extension"; then 18141 ac_x_libraries=$ac_dir 18142 break 2 18143 fi 18144 done 18145done 18146fi 18147rm -f core conftest.err conftest.$ac_objext \ 18148 conftest$ac_exeext conftest.$ac_ext 18149fi # $ac_x_libraries = no 18150 18151case $ac_x_includes,$ac_x_libraries in #( 18152 no,* | *,no | *\'*) 18153 # Didn't find X, or a directory has "'" in its name. 18154 ac_cv_have_x="have_x=no";; #( 18155 *) 18156 # Record where we found X for the cache. 18157 ac_cv_have_x="have_x=yes\ 18158 ac_x_includes='$ac_x_includes'\ 18159 ac_x_libraries='$ac_x_libraries'" 18160esac 18161fi 18162;; #( 18163 *) have_x=yes;; 18164 esac 18165 eval "$ac_cv_have_x" 18166fi # $with_x != no 18167 18168if test "$have_x" != yes; then 18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 18170$as_echo "$have_x" >&6; } 18171 no_x=yes 18172else 18173 # If each of the values was on the command line, it overrides each guess. 18174 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 18175 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 18176 # Update the cache value to reflect the command line values. 18177 ac_cv_have_x="have_x=yes\ 18178 ac_x_includes='$x_includes'\ 18179 ac_x_libraries='$x_libraries'" 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 18181$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 18182fi 18183 18184 18185# Unlike the sim directory, whether a simulator is linked is controlled by 18186# presence of a gdb_sim definition in the target configure.tgt entry. 18187# This code just checks for a few cases where we'd like to ignore those 18188# definitions, even when they're present in the '.mt' file. These cases 18189# are when --disable-sim is specified, or if the simulator directory is 18190# not part of the source tree. 18191# 18192# Check whether --enable-sim was given. 18193if test "${enable_sim+set}" = set; then : 18194 enableval=$enable_sim; echo "enable_sim = $enable_sim"; 18195 echo "enableval = ${enableval}"; 18196 case "${enableval}" in 18197 yes) ignore_sim=false ;; 18198 no) ignore_sim=true ;; 18199 *) ignore_sim=false ;; 18200 esac 18201else 18202 ignore_sim=false 18203fi 18204 18205 18206if test ! -d "${srcdir}/../sim"; then 18207 ignore_sim=true 18208fi 18209 18210SIM= 18211SIM_OBS= 18212if test "${ignore_sim}" = "false"; then 18213 if test x"${gdb_sim}" != x ; then 18214 SIM="${gdb_sim}" 18215 SIM_OBS="remote-sim.o" 18216 18217$as_echo "#define WITH_SIM 1" >>confdefs.h 18218 18219 18220 # Some tdep code should only be compiled in when the ppc sim is 18221 # built. PR sim/13418. 18222 case $target in 18223 powerpc*-*-*) 18224 18225$as_echo "#define WITH_PPC_SIM 1" >>confdefs.h 18226 18227 ;; 18228 esac 18229 fi 18230fi 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245# List of host floatformats. 18246 18247cat >>confdefs.h <<_ACEOF 18248#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format 18249_ACEOF 18250 18251 18252cat >>confdefs.h <<_ACEOF 18253#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format 18254_ACEOF 18255 18256 18257cat >>confdefs.h <<_ACEOF 18258#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format 18259_ACEOF 18260 18261 18262# target_subdir is used by the testsuite to find the target libraries. 18263target_subdir= 18264if test "${host}" != "${target}"; then 18265 target_subdir="${target_alias}/" 18266fi 18267 18268 18269# Import nat definitions. 18270nat_makefile_frag=/dev/null 18271if test "${gdb_native}" = "yes"; then 18272 . ${srcdir}/configure.nat 18273 nativefile=$NAT_FILE 18274fi 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286if test x"${gdb_osabi}" != x ; then 18287 18288cat >>confdefs.h <<_ACEOF 18289#define GDB_OSABI_DEFAULT $gdb_osabi 18290_ACEOF 18291 18292fi 18293 18294# Check for babeltrace and babeltrace-ctf 18295 18296# Check whether --with-babeltrace was given. 18297if test "${with_babeltrace+set}" = set; then : 18298 withval=$with_babeltrace; 18299else 18300 with_babeltrace=auto 18301fi 18302 18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5 18304$as_echo_n "checking whether to use babeltrace... " >&6; } 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5 18306$as_echo "$with_babeltrace" >&6; } 18307 18308if test "x$with_babeltrace" = "xno"; then 18309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5 18310$as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;} 18311else 18312 # Append -Werror to CFLAGS so that configure can catch the warning 18313 # "assignment from incompatible pointer type", which is related to 18314 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works 18315 # in GDB, while babeltrace 1.0.3 is broken. 18316 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be 18317 # safe to save and restore CFLAGS here. 18318 saved_CFLAGS=$CFLAGS 18319 CFLAGS="$CFLAGS -Werror" 18320 18321 18322 18323 18324 18325 18326 18327 18328 use_additional=yes 18329 18330 acl_save_prefix="$prefix" 18331 prefix="$acl_final_prefix" 18332 acl_save_exec_prefix="$exec_prefix" 18333 exec_prefix="$acl_final_exec_prefix" 18334 18335 eval additional_includedir=\"$includedir\" 18336 eval additional_libdir=\"$libdir\" 18337 18338 exec_prefix="$acl_save_exec_prefix" 18339 prefix="$acl_save_prefix" 18340 18341 18342# Check whether --with-libbabeltrace-prefix was given. 18343if test "${with_libbabeltrace_prefix+set}" = set; then : 18344 withval=$with_libbabeltrace_prefix; 18345 if test "X$withval" = "Xno"; then 18346 use_additional=no 18347 else 18348 if test "X$withval" = "X"; then 18349 18350 acl_save_prefix="$prefix" 18351 prefix="$acl_final_prefix" 18352 acl_save_exec_prefix="$exec_prefix" 18353 exec_prefix="$acl_final_exec_prefix" 18354 18355 eval additional_includedir=\"$includedir\" 18356 eval additional_libdir=\"$libdir\" 18357 18358 exec_prefix="$acl_save_exec_prefix" 18359 prefix="$acl_save_prefix" 18360 18361 else 18362 additional_includedir="$withval/include" 18363 additional_libdir="$withval/lib" 18364 fi 18365 fi 18366 18367fi 18368 18369 18370# Check whether --with-libbabeltrace-type was given. 18371if test "${with_libbabeltrace_type+set}" = set; then : 18372 withval=$with_libbabeltrace_type; with_libbabeltrace_type=$withval 18373else 18374 with_libbabeltrace_type=auto 18375fi 18376 18377 lib_type=`eval echo \$with_libbabeltrace_type` 18378 18379 LIBBABELTRACE= 18380 LTLIBBABELTRACE= 18381 INCBABELTRACE= 18382 rpathdirs= 18383 ltrpathdirs= 18384 names_already_handled= 18385 names_next_round='babeltrace babeltrace-ctf' 18386 while test -n "$names_next_round"; do 18387 names_this_round="$names_next_round" 18388 names_next_round= 18389 for name in $names_this_round; do 18390 already_handled= 18391 for n in $names_already_handled; do 18392 if test "$n" = "$name"; then 18393 already_handled=yes 18394 break 18395 fi 18396 done 18397 if test -z "$already_handled"; then 18398 names_already_handled="$names_already_handled $name" 18399 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 18400 eval value=\"\$HAVE_LIB$uppername\" 18401 if test -n "$value"; then 18402 if test "$value" = yes; then 18403 eval value=\"\$LIB$uppername\" 18404 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value" 18405 eval value=\"\$LTLIB$uppername\" 18406 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value" 18407 else 18408 : 18409 fi 18410 else 18411 found_dir= 18412 found_la= 18413 found_so= 18414 found_a= 18415 if test $use_additional = yes; then 18416 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 18417 found_dir="$additional_libdir" 18418 found_so="$additional_libdir/lib$name.$shlibext" 18419 if test -f "$additional_libdir/lib$name.la"; then 18420 found_la="$additional_libdir/lib$name.la" 18421 fi 18422 elif test x$lib_type != xshared; then 18423 if test -f "$additional_libdir/lib$name.$libext"; then 18424 found_dir="$additional_libdir" 18425 found_a="$additional_libdir/lib$name.$libext" 18426 if test -f "$additional_libdir/lib$name.la"; then 18427 found_la="$additional_libdir/lib$name.la" 18428 fi 18429 fi 18430 fi 18431 fi 18432 if test "X$found_dir" = "X"; then 18433 for x in $LDFLAGS $LTLIBBABELTRACE; do 18434 18435 acl_save_prefix="$prefix" 18436 prefix="$acl_final_prefix" 18437 acl_save_exec_prefix="$exec_prefix" 18438 exec_prefix="$acl_final_exec_prefix" 18439 eval x=\"$x\" 18440 exec_prefix="$acl_save_exec_prefix" 18441 prefix="$acl_save_prefix" 18442 18443 case "$x" in 18444 -L*) 18445 dir=`echo "X$x" | sed -e 's/^X-L//'` 18446 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 18447 found_dir="$dir" 18448 found_so="$dir/lib$name.$shlibext" 18449 if test -f "$dir/lib$name.la"; then 18450 found_la="$dir/lib$name.la" 18451 fi 18452 elif test x$lib_type != xshared; then 18453 if test -f "$dir/lib$name.$libext"; then 18454 found_dir="$dir" 18455 found_a="$dir/lib$name.$libext" 18456 if test -f "$dir/lib$name.la"; then 18457 found_la="$dir/lib$name.la" 18458 fi 18459 fi 18460 fi 18461 ;; 18462 esac 18463 if test "X$found_dir" != "X"; then 18464 break 18465 fi 18466 done 18467 fi 18468 if test "X$found_dir" != "X"; then 18469 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name" 18470 if test "X$found_so" != "X"; then 18471 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 18472 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so" 18473 else 18474 haveit= 18475 for x in $ltrpathdirs; do 18476 if test "X$x" = "X$found_dir"; then 18477 haveit=yes 18478 break 18479 fi 18480 done 18481 if test -z "$haveit"; then 18482 ltrpathdirs="$ltrpathdirs $found_dir" 18483 fi 18484 if test "$hardcode_direct" = yes; then 18485 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so" 18486 else 18487 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 18488 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so" 18489 haveit= 18490 for x in $rpathdirs; do 18491 if test "X$x" = "X$found_dir"; then 18492 haveit=yes 18493 break 18494 fi 18495 done 18496 if test -z "$haveit"; then 18497 rpathdirs="$rpathdirs $found_dir" 18498 fi 18499 else 18500 haveit= 18501 for x in $LDFLAGS $LIBBABELTRACE; do 18502 18503 acl_save_prefix="$prefix" 18504 prefix="$acl_final_prefix" 18505 acl_save_exec_prefix="$exec_prefix" 18506 exec_prefix="$acl_final_exec_prefix" 18507 eval x=\"$x\" 18508 exec_prefix="$acl_save_exec_prefix" 18509 prefix="$acl_save_prefix" 18510 18511 if test "X$x" = "X-L$found_dir"; then 18512 haveit=yes 18513 break 18514 fi 18515 done 18516 if test -z "$haveit"; then 18517 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir" 18518 fi 18519 if test "$hardcode_minus_L" != no; then 18520 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so" 18521 else 18522 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name" 18523 fi 18524 fi 18525 fi 18526 fi 18527 else 18528 if test "X$found_a" != "X"; then 18529 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a" 18530 else 18531 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name" 18532 fi 18533 fi 18534 additional_includedir= 18535 case "$found_dir" in 18536 */lib | */lib/) 18537 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 18538 additional_includedir="$basedir/include" 18539 ;; 18540 esac 18541 if test "X$additional_includedir" != "X"; then 18542 if test "X$additional_includedir" != "X/usr/include"; then 18543 haveit= 18544 if test "X$additional_includedir" = "X/usr/local/include"; then 18545 if test -n "$GCC"; then 18546 case $host_os in 18547 linux*) haveit=yes;; 18548 esac 18549 fi 18550 fi 18551 if test -z "$haveit"; then 18552 for x in $CPPFLAGS $INCBABELTRACE; do 18553 18554 acl_save_prefix="$prefix" 18555 prefix="$acl_final_prefix" 18556 acl_save_exec_prefix="$exec_prefix" 18557 exec_prefix="$acl_final_exec_prefix" 18558 eval x=\"$x\" 18559 exec_prefix="$acl_save_exec_prefix" 18560 prefix="$acl_save_prefix" 18561 18562 if test "X$x" = "X-I$additional_includedir"; then 18563 haveit=yes 18564 break 18565 fi 18566 done 18567 if test -z "$haveit"; then 18568 if test -d "$additional_includedir"; then 18569 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir" 18570 fi 18571 fi 18572 fi 18573 fi 18574 fi 18575 if test -n "$found_la"; then 18576 save_libdir="$libdir" 18577 case "$found_la" in 18578 */* | *\\*) . "$found_la" ;; 18579 *) . "./$found_la" ;; 18580 esac 18581 libdir="$save_libdir" 18582 for dep in $dependency_libs; do 18583 case "$dep" in 18584 -L*) 18585 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 18586 if test "X$additional_libdir" != "X/usr/lib"; then 18587 haveit= 18588 if test "X$additional_libdir" = "X/usr/local/lib"; then 18589 if test -n "$GCC"; then 18590 case $host_os in 18591 linux*) haveit=yes;; 18592 esac 18593 fi 18594 fi 18595 if test -z "$haveit"; then 18596 haveit= 18597 for x in $LDFLAGS $LIBBABELTRACE; do 18598 18599 acl_save_prefix="$prefix" 18600 prefix="$acl_final_prefix" 18601 acl_save_exec_prefix="$exec_prefix" 18602 exec_prefix="$acl_final_exec_prefix" 18603 eval x=\"$x\" 18604 exec_prefix="$acl_save_exec_prefix" 18605 prefix="$acl_save_prefix" 18606 18607 if test "X$x" = "X-L$additional_libdir"; then 18608 haveit=yes 18609 break 18610 fi 18611 done 18612 if test -z "$haveit"; then 18613 if test -d "$additional_libdir"; then 18614 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir" 18615 fi 18616 fi 18617 haveit= 18618 for x in $LDFLAGS $LTLIBBABELTRACE; do 18619 18620 acl_save_prefix="$prefix" 18621 prefix="$acl_final_prefix" 18622 acl_save_exec_prefix="$exec_prefix" 18623 exec_prefix="$acl_final_exec_prefix" 18624 eval x=\"$x\" 18625 exec_prefix="$acl_save_exec_prefix" 18626 prefix="$acl_save_prefix" 18627 18628 if test "X$x" = "X-L$additional_libdir"; then 18629 haveit=yes 18630 break 18631 fi 18632 done 18633 if test -z "$haveit"; then 18634 if test -d "$additional_libdir"; then 18635 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir" 18636 fi 18637 fi 18638 fi 18639 fi 18640 ;; 18641 -R*) 18642 dir=`echo "X$dep" | sed -e 's/^X-R//'` 18643 if test "$enable_rpath" != no; then 18644 haveit= 18645 for x in $rpathdirs; do 18646 if test "X$x" = "X$dir"; then 18647 haveit=yes 18648 break 18649 fi 18650 done 18651 if test -z "$haveit"; then 18652 rpathdirs="$rpathdirs $dir" 18653 fi 18654 haveit= 18655 for x in $ltrpathdirs; do 18656 if test "X$x" = "X$dir"; then 18657 haveit=yes 18658 break 18659 fi 18660 done 18661 if test -z "$haveit"; then 18662 ltrpathdirs="$ltrpathdirs $dir" 18663 fi 18664 fi 18665 ;; 18666 -l*) 18667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 18668 ;; 18669 *.la) 18670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 18671 ;; 18672 *) 18673 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep" 18674 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep" 18675 ;; 18676 esac 18677 done 18678 fi 18679 else 18680 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 18681 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name" 18682 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name" 18683 else 18684 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext" 18685 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext" 18686 fi 18687 fi 18688 fi 18689 fi 18690 done 18691 done 18692 if test "X$rpathdirs" != "X"; then 18693 if test -n "$hardcode_libdir_separator"; then 18694 alldirs= 18695 for found_dir in $rpathdirs; do 18696 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 18697 done 18698 acl_save_libdir="$libdir" 18699 libdir="$alldirs" 18700 eval flag=\"$hardcode_libdir_flag_spec\" 18701 libdir="$acl_save_libdir" 18702 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag" 18703 else 18704 for found_dir in $rpathdirs; do 18705 acl_save_libdir="$libdir" 18706 libdir="$found_dir" 18707 eval flag=\"$hardcode_libdir_flag_spec\" 18708 libdir="$acl_save_libdir" 18709 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag" 18710 done 18711 fi 18712 fi 18713 if test "X$ltrpathdirs" != "X"; then 18714 for found_dir in $ltrpathdirs; do 18715 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir" 18716 done 18717 fi 18718 18719 18720 ac_save_CPPFLAGS="$CPPFLAGS" 18721 18722 for element in $INCBABELTRACE; do 18723 haveit= 18724 for x in $CPPFLAGS; do 18725 18726 acl_save_prefix="$prefix" 18727 prefix="$acl_final_prefix" 18728 acl_save_exec_prefix="$exec_prefix" 18729 exec_prefix="$acl_final_exec_prefix" 18730 eval x=\"$x\" 18731 exec_prefix="$acl_save_exec_prefix" 18732 prefix="$acl_save_prefix" 18733 18734 if test "X$x" = "X$element"; then 18735 haveit=yes 18736 break 18737 fi 18738 done 18739 if test -z "$haveit"; then 18740 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 18741 fi 18742 done 18743 18744 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5 18746$as_echo_n "checking for libbabeltrace... " >&6; } 18747if ${ac_cv_libbabeltrace+:} false; then : 18748 $as_echo_n "(cached) " >&6 18749else 18750 18751 ac_save_LIBS="$LIBS" 18752 LIBS="$LIBS $LIBBABELTRACE" 18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18754/* end confdefs.h. */ 18755#include <babeltrace/babeltrace.h> 18756 #include <babeltrace/ctf/events.h> 18757 #include <babeltrace/ctf/iterator.h> 18758int 18759main () 18760{ 18761struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL)); 18762 struct bt_ctf_event *event = NULL; 18763 const struct bt_definition *scope; 18764 18765 pos->type = BT_SEEK_BEGIN; 18766 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos); 18767 scope = bt_ctf_get_top_level_scope (event, 18768 BT_STREAM_EVENT_HEADER); 18769 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id")); 18770 18771 ; 18772 return 0; 18773} 18774_ACEOF 18775if ac_fn_c_try_link "$LINENO"; then : 18776 ac_cv_libbabeltrace=yes 18777else 18778 ac_cv_libbabeltrace=no 18779fi 18780rm -f core conftest.err conftest.$ac_objext \ 18781 conftest$ac_exeext conftest.$ac_ext 18782 LIBS="$ac_save_LIBS" 18783 18784fi 18785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5 18786$as_echo "$ac_cv_libbabeltrace" >&6; } 18787 if test "$ac_cv_libbabeltrace" = yes; then 18788 HAVE_LIBBABELTRACE=yes 18789 18790$as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h 18791 18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5 18793$as_echo_n "checking how to link with libbabeltrace... " >&6; } 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5 18795$as_echo "$LIBBABELTRACE" >&6; } 18796 else 18797 HAVE_LIBBABELTRACE=no 18798 CPPFLAGS="$ac_save_CPPFLAGS" 18799 LIBBABELTRACE= 18800 LTLIBBABELTRACE= 18801 fi 18802 18803 18804 18805 18806 18807 18808 CFLAGS=$saved_CFLAGS 18809 18810 if test "$HAVE_LIBBABELTRACE" != yes; then 18811 if test "$with_babeltrace" = yes; then 18812 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5 18813 else 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5 18815$as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;} 18816 fi 18817 fi 18818fi 18819 18820# Check for xxhash 18821 18822# Check whether --with-xxhash was given. 18823if test "${with_xxhash+set}" = set; then : 18824 withval=$with_xxhash; 18825else 18826 with_xxhash=auto 18827fi 18828 18829 18830 # Check whether --enable-libctf was given. 18831if test "${enable_libctf+set}" = set; then : 18832 enableval=$enable_libctf; 18833 case "$enableval" in 18834 yes|no) ;; 18835 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;; 18836 esac 18837 18838else 18839 enable_libctf=yes 18840fi 18841 18842 18843if test x${enable_static} = xno; then 18844 LIBCTF="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so" 18845 CTF_DEPS="../libctf/.libs/libctf.so" 18846else 18847 LIBCTF="../libctf/.libs/libctf.a" 18848 CTF_DEPS="$LIBCTF" 18849fi 18850if test "${enable_libctf}" = yes; then 18851 18852$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h 18853 18854else 18855 LIBCTF= 18856 CTF_DEPS= 18857fi 18858 18859 18860 18861 18862# If nativefile (NAT_FILE) is not set in configure.nat, we link to an 18863# empty version. 18864 18865if test "x$with_xxhash" != "xno"; then 18866 18867 18868 18869 18870 18871 18872 18873 18874 use_additional=yes 18875 18876 acl_save_prefix="$prefix" 18877 prefix="$acl_final_prefix" 18878 acl_save_exec_prefix="$exec_prefix" 18879 exec_prefix="$acl_final_exec_prefix" 18880 18881 eval additional_includedir=\"$includedir\" 18882 eval additional_libdir=\"$libdir\" 18883 18884 exec_prefix="$acl_save_exec_prefix" 18885 prefix="$acl_save_prefix" 18886 18887 18888# Check whether --with-libxxhash-prefix was given. 18889if test "${with_libxxhash_prefix+set}" = set; then : 18890 withval=$with_libxxhash_prefix; 18891 if test "X$withval" = "Xno"; then 18892 use_additional=no 18893 else 18894 if test "X$withval" = "X"; then 18895 18896 acl_save_prefix="$prefix" 18897 prefix="$acl_final_prefix" 18898 acl_save_exec_prefix="$exec_prefix" 18899 exec_prefix="$acl_final_exec_prefix" 18900 18901 eval additional_includedir=\"$includedir\" 18902 eval additional_libdir=\"$libdir\" 18903 18904 exec_prefix="$acl_save_exec_prefix" 18905 prefix="$acl_save_prefix" 18906 18907 else 18908 additional_includedir="$withval/include" 18909 additional_libdir="$withval/lib" 18910 fi 18911 fi 18912 18913fi 18914 18915 18916# Check whether --with-libxxhash-type was given. 18917if test "${with_libxxhash_type+set}" = set; then : 18918 withval=$with_libxxhash_type; with_libxxhash_type=$withval 18919else 18920 with_libxxhash_type=auto 18921fi 18922 18923 lib_type=`eval echo \$with_libxxhash_type` 18924 18925 LIBXXHASH= 18926 LTLIBXXHASH= 18927 INCXXHASH= 18928 rpathdirs= 18929 ltrpathdirs= 18930 names_already_handled= 18931 names_next_round='xxhash ' 18932 while test -n "$names_next_round"; do 18933 names_this_round="$names_next_round" 18934 names_next_round= 18935 for name in $names_this_round; do 18936 already_handled= 18937 for n in $names_already_handled; do 18938 if test "$n" = "$name"; then 18939 already_handled=yes 18940 break 18941 fi 18942 done 18943 if test -z "$already_handled"; then 18944 names_already_handled="$names_already_handled $name" 18945 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 18946 eval value=\"\$HAVE_LIB$uppername\" 18947 if test -n "$value"; then 18948 if test "$value" = yes; then 18949 eval value=\"\$LIB$uppername\" 18950 test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value" 18951 eval value=\"\$LTLIB$uppername\" 18952 test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value" 18953 else 18954 : 18955 fi 18956 else 18957 found_dir= 18958 found_la= 18959 found_so= 18960 found_a= 18961 if test $use_additional = yes; then 18962 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 18963 found_dir="$additional_libdir" 18964 found_so="$additional_libdir/lib$name.$shlibext" 18965 if test -f "$additional_libdir/lib$name.la"; then 18966 found_la="$additional_libdir/lib$name.la" 18967 fi 18968 elif test x$lib_type != xshared; then 18969 if test -f "$additional_libdir/lib$name.$libext"; then 18970 found_dir="$additional_libdir" 18971 found_a="$additional_libdir/lib$name.$libext" 18972 if test -f "$additional_libdir/lib$name.la"; then 18973 found_la="$additional_libdir/lib$name.la" 18974 fi 18975 fi 18976 fi 18977 fi 18978 if test "X$found_dir" = "X"; then 18979 for x in $LDFLAGS $LTLIBXXHASH; do 18980 18981 acl_save_prefix="$prefix" 18982 prefix="$acl_final_prefix" 18983 acl_save_exec_prefix="$exec_prefix" 18984 exec_prefix="$acl_final_exec_prefix" 18985 eval x=\"$x\" 18986 exec_prefix="$acl_save_exec_prefix" 18987 prefix="$acl_save_prefix" 18988 18989 case "$x" in 18990 -L*) 18991 dir=`echo "X$x" | sed -e 's/^X-L//'` 18992 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 18993 found_dir="$dir" 18994 found_so="$dir/lib$name.$shlibext" 18995 if test -f "$dir/lib$name.la"; then 18996 found_la="$dir/lib$name.la" 18997 fi 18998 elif test x$lib_type != xshared; then 18999 if test -f "$dir/lib$name.$libext"; then 19000 found_dir="$dir" 19001 found_a="$dir/lib$name.$libext" 19002 if test -f "$dir/lib$name.la"; then 19003 found_la="$dir/lib$name.la" 19004 fi 19005 fi 19006 fi 19007 ;; 19008 esac 19009 if test "X$found_dir" != "X"; then 19010 break 19011 fi 19012 done 19013 fi 19014 if test "X$found_dir" != "X"; then 19015 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name" 19016 if test "X$found_so" != "X"; then 19017 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 19018 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so" 19019 else 19020 haveit= 19021 for x in $ltrpathdirs; do 19022 if test "X$x" = "X$found_dir"; then 19023 haveit=yes 19024 break 19025 fi 19026 done 19027 if test -z "$haveit"; then 19028 ltrpathdirs="$ltrpathdirs $found_dir" 19029 fi 19030 if test "$hardcode_direct" = yes; then 19031 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so" 19032 else 19033 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 19034 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so" 19035 haveit= 19036 for x in $rpathdirs; do 19037 if test "X$x" = "X$found_dir"; then 19038 haveit=yes 19039 break 19040 fi 19041 done 19042 if test -z "$haveit"; then 19043 rpathdirs="$rpathdirs $found_dir" 19044 fi 19045 else 19046 haveit= 19047 for x in $LDFLAGS $LIBXXHASH; do 19048 19049 acl_save_prefix="$prefix" 19050 prefix="$acl_final_prefix" 19051 acl_save_exec_prefix="$exec_prefix" 19052 exec_prefix="$acl_final_exec_prefix" 19053 eval x=\"$x\" 19054 exec_prefix="$acl_save_exec_prefix" 19055 prefix="$acl_save_prefix" 19056 19057 if test "X$x" = "X-L$found_dir"; then 19058 haveit=yes 19059 break 19060 fi 19061 done 19062 if test -z "$haveit"; then 19063 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir" 19064 fi 19065 if test "$hardcode_minus_L" != no; then 19066 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so" 19067 else 19068 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name" 19069 fi 19070 fi 19071 fi 19072 fi 19073 else 19074 if test "X$found_a" != "X"; then 19075 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a" 19076 else 19077 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name" 19078 fi 19079 fi 19080 additional_includedir= 19081 case "$found_dir" in 19082 */lib | */lib/) 19083 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 19084 additional_includedir="$basedir/include" 19085 ;; 19086 esac 19087 if test "X$additional_includedir" != "X"; then 19088 if test "X$additional_includedir" != "X/usr/include"; then 19089 haveit= 19090 if test "X$additional_includedir" = "X/usr/local/include"; then 19091 if test -n "$GCC"; then 19092 case $host_os in 19093 linux*) haveit=yes;; 19094 esac 19095 fi 19096 fi 19097 if test -z "$haveit"; then 19098 for x in $CPPFLAGS $INCXXHASH; do 19099 19100 acl_save_prefix="$prefix" 19101 prefix="$acl_final_prefix" 19102 acl_save_exec_prefix="$exec_prefix" 19103 exec_prefix="$acl_final_exec_prefix" 19104 eval x=\"$x\" 19105 exec_prefix="$acl_save_exec_prefix" 19106 prefix="$acl_save_prefix" 19107 19108 if test "X$x" = "X-I$additional_includedir"; then 19109 haveit=yes 19110 break 19111 fi 19112 done 19113 if test -z "$haveit"; then 19114 if test -d "$additional_includedir"; then 19115 INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir" 19116 fi 19117 fi 19118 fi 19119 fi 19120 fi 19121 if test -n "$found_la"; then 19122 save_libdir="$libdir" 19123 case "$found_la" in 19124 */* | *\\*) . "$found_la" ;; 19125 *) . "./$found_la" ;; 19126 esac 19127 libdir="$save_libdir" 19128 for dep in $dependency_libs; do 19129 case "$dep" in 19130 -L*) 19131 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19132 if test "X$additional_libdir" != "X/usr/lib"; then 19133 haveit= 19134 if test "X$additional_libdir" = "X/usr/local/lib"; then 19135 if test -n "$GCC"; then 19136 case $host_os in 19137 linux*) haveit=yes;; 19138 esac 19139 fi 19140 fi 19141 if test -z "$haveit"; then 19142 haveit= 19143 for x in $LDFLAGS $LIBXXHASH; do 19144 19145 acl_save_prefix="$prefix" 19146 prefix="$acl_final_prefix" 19147 acl_save_exec_prefix="$exec_prefix" 19148 exec_prefix="$acl_final_exec_prefix" 19149 eval x=\"$x\" 19150 exec_prefix="$acl_save_exec_prefix" 19151 prefix="$acl_save_prefix" 19152 19153 if test "X$x" = "X-L$additional_libdir"; then 19154 haveit=yes 19155 break 19156 fi 19157 done 19158 if test -z "$haveit"; then 19159 if test -d "$additional_libdir"; then 19160 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir" 19161 fi 19162 fi 19163 haveit= 19164 for x in $LDFLAGS $LTLIBXXHASH; do 19165 19166 acl_save_prefix="$prefix" 19167 prefix="$acl_final_prefix" 19168 acl_save_exec_prefix="$exec_prefix" 19169 exec_prefix="$acl_final_exec_prefix" 19170 eval x=\"$x\" 19171 exec_prefix="$acl_save_exec_prefix" 19172 prefix="$acl_save_prefix" 19173 19174 if test "X$x" = "X-L$additional_libdir"; then 19175 haveit=yes 19176 break 19177 fi 19178 done 19179 if test -z "$haveit"; then 19180 if test -d "$additional_libdir"; then 19181 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir" 19182 fi 19183 fi 19184 fi 19185 fi 19186 ;; 19187 -R*) 19188 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19189 if test "$enable_rpath" != no; then 19190 haveit= 19191 for x in $rpathdirs; do 19192 if test "X$x" = "X$dir"; then 19193 haveit=yes 19194 break 19195 fi 19196 done 19197 if test -z "$haveit"; then 19198 rpathdirs="$rpathdirs $dir" 19199 fi 19200 haveit= 19201 for x in $ltrpathdirs; do 19202 if test "X$x" = "X$dir"; then 19203 haveit=yes 19204 break 19205 fi 19206 done 19207 if test -z "$haveit"; then 19208 ltrpathdirs="$ltrpathdirs $dir" 19209 fi 19210 fi 19211 ;; 19212 -l*) 19213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19214 ;; 19215 *.la) 19216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19217 ;; 19218 *) 19219 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep" 19220 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep" 19221 ;; 19222 esac 19223 done 19224 fi 19225 else 19226 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 19227 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name" 19228 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name" 19229 else 19230 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext" 19231 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext" 19232 fi 19233 fi 19234 fi 19235 fi 19236 done 19237 done 19238 if test "X$rpathdirs" != "X"; then 19239 if test -n "$hardcode_libdir_separator"; then 19240 alldirs= 19241 for found_dir in $rpathdirs; do 19242 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 19243 done 19244 acl_save_libdir="$libdir" 19245 libdir="$alldirs" 19246 eval flag=\"$hardcode_libdir_flag_spec\" 19247 libdir="$acl_save_libdir" 19248 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag" 19249 else 19250 for found_dir in $rpathdirs; do 19251 acl_save_libdir="$libdir" 19252 libdir="$found_dir" 19253 eval flag=\"$hardcode_libdir_flag_spec\" 19254 libdir="$acl_save_libdir" 19255 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag" 19256 done 19257 fi 19258 fi 19259 if test "X$ltrpathdirs" != "X"; then 19260 for found_dir in $ltrpathdirs; do 19261 LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir" 19262 done 19263 fi 19264 19265 19266 ac_save_CPPFLAGS="$CPPFLAGS" 19267 19268 for element in $INCXXHASH; do 19269 haveit= 19270 for x in $CPPFLAGS; do 19271 19272 acl_save_prefix="$prefix" 19273 prefix="$acl_final_prefix" 19274 acl_save_exec_prefix="$exec_prefix" 19275 exec_prefix="$acl_final_exec_prefix" 19276 eval x=\"$x\" 19277 exec_prefix="$acl_save_exec_prefix" 19278 prefix="$acl_save_prefix" 19279 19280 if test "X$x" = "X$element"; then 19281 haveit=yes 19282 break 19283 fi 19284 done 19285 if test -z "$haveit"; then 19286 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19287 fi 19288 done 19289 19290 19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5 19292$as_echo_n "checking for libxxhash... " >&6; } 19293if ${ac_cv_libxxhash+:} false; then : 19294 $as_echo_n "(cached) " >&6 19295else 19296 19297 ac_save_LIBS="$LIBS" 19298 LIBS="$LIBS $LIBXXHASH" 19299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19300/* end confdefs.h. */ 19301#include <xxhash.h> 19302int 19303main () 19304{ 19305XXH32("foo", 3, 0); 19306 19307 ; 19308 return 0; 19309} 19310_ACEOF 19311if ac_fn_c_try_link "$LINENO"; then : 19312 ac_cv_libxxhash=yes 19313else 19314 ac_cv_libxxhash=no 19315fi 19316rm -f core conftest.err conftest.$ac_objext \ 19317 conftest$ac_exeext conftest.$ac_ext 19318 LIBS="$ac_save_LIBS" 19319 19320fi 19321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5 19322$as_echo "$ac_cv_libxxhash" >&6; } 19323 if test "$ac_cv_libxxhash" = yes; then 19324 HAVE_LIBXXHASH=yes 19325 19326$as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h 19327 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5 19329$as_echo_n "checking how to link with libxxhash... " >&6; } 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5 19331$as_echo "$LIBXXHASH" >&6; } 19332 else 19333 HAVE_LIBXXHASH=no 19334 CPPFLAGS="$ac_save_CPPFLAGS" 19335 LIBXXHASH= 19336 LTLIBXXHASH= 19337 fi 19338 19339 19340 19341 19342 19343 19344 if test "$HAVE_LIBXXHASH" != yes; then 19345 if test "$with_xxhash" = yes; then 19346 as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5 19347 fi 19348 fi 19349 if test "x$with_xxhash" = "xauto"; then 19350 with_xxhash="$HAVE_LIBXXHASH" 19351 fi 19352fi 19353 19354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5 19355$as_echo_n "checking whether to use xxhash... " >&6; } 19356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5 19357$as_echo "$with_xxhash" >&6; } 19358 19359NM_H= 19360rm -f nm.h 19361if test "${nativefile}" != ""; then 19362 case "${nativefile}" in 19363 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; 19364 * ) GDB_NM_FILE="${nativefile}" 19365 esac 19366 ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE" 19367 19368 19369cat >>confdefs.h <<_ACEOF 19370#define GDB_NM_FILE "${GDB_NM_FILE}" 19371_ACEOF 19372 19373 NM_H=nm.h 19374fi 19375 19376 19377 19378for ac_prog in xsltproc 19379do 19380 # Extract the first word of "$ac_prog", so it can be a program name with args. 19381set dummy $ac_prog; ac_word=$2 19382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19383$as_echo_n "checking for $ac_word... " >&6; } 19384if ${ac_cv_path_XSLTPROC+:} false; then : 19385 $as_echo_n "(cached) " >&6 19386else 19387 case $XSLTPROC in 19388 [\\/]* | ?:[\\/]*) 19389 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19390 ;; 19391 *) 19392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19393for as_dir in $PATH 19394do 19395 IFS=$as_save_IFS 19396 test -z "$as_dir" && as_dir=. 19397 for ac_exec_ext in '' $ac_executable_extensions; do 19398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19399 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19401 break 2 19402 fi 19403done 19404 done 19405IFS=$as_save_IFS 19406 19407 ;; 19408esac 19409fi 19410XSLTPROC=$ac_cv_path_XSLTPROC 19411if test -n "$XSLTPROC"; then 19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19413$as_echo "$XSLTPROC" >&6; } 19414else 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19416$as_echo "no" >&6; } 19417fi 19418 19419 19420 test -n "$XSLTPROC" && break 19421done 19422test -n "$XSLTPROC" || XSLTPROC="missing" 19423 19424if test "x$USE_MAINTAINER_MODE" = xyes; then 19425 if test "${XSLTPROC}" = missing; then 19426 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5 19427 fi 19428fi 19429 19430 19431 19432 19433 19434$as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h 19435 19436 19437 19438# Check whether we will enable the inclusion of unit tests when 19439# compiling GDB. 19440# 19441# The default value of this option changes depending whether we're on 19442# development mode (in which case it's "true") or not (in which case 19443# it's "false"). The $development variable is set by the GDB_AC_COMMON 19444# macro, which must therefore be used before GDB_AC_SELFTEST. 19445 19446if test "x$development" != xtrue && test "x$development" != xfalse; then : 19447 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5 19448fi 19449 19450# Check whether --enable-unit-tests was given. 19451if test "${enable_unit_tests+set}" = set; then : 19452 enableval=$enable_unit_tests; case "${enableval}" in 19453 yes) enable_unittests=true ;; 19454 no) enable_unittests=false ;; 19455 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;; 19456esac 19457else 19458 enable_unittests=$development 19459fi 19460 19461 19462if $enable_unittests; then 19463 19464$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h 19465 19466 19467 CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)" 19468 CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)" 19469 19470fi 19471 19472 19473 19474 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'` 19475 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"` 19476 if test "x$GDB_TRANSFORM_NAME" = x; then 19477 GDB_TRANSFORM_NAME=gdb 19478 fi 19479 19480 19481 19482 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'` 19483 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"` 19484 if test "x$GCORE_TRANSFORM_NAME" = x; then 19485 GCORE_TRANSFORM_NAME=gcore 19486 fi 19487 19488 19489ac_config_files="$ac_config_files gcore" 19490 19491ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile" 19492 19493 19494cat >confcache <<\_ACEOF 19495# This file is a shell script that caches the results of configure 19496# tests run on this system so they can be shared between configure 19497# scripts and configure runs, see configure's option --config-cache. 19498# It is not useful on other systems. If it contains results you don't 19499# want to keep, you may remove or edit it. 19500# 19501# config.status only pays attention to the cache file if you give it 19502# the --recheck option to rerun configure. 19503# 19504# `ac_cv_env_foo' variables (set or unset) will be overridden when 19505# loading this file, other *unset* `ac_cv_foo' will be assigned the 19506# following values. 19507 19508_ACEOF 19509 19510# The following way of writing the cache mishandles newlines in values, 19511# but we know of no workaround that is simple, portable, and efficient. 19512# So, we kill variables containing newlines. 19513# Ultrix sh set writes to stderr and can't be redirected directly, 19514# and sets the high bit in the cache file unless we assign to the vars. 19515( 19516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19517 eval ac_val=\$$ac_var 19518 case $ac_val in #( 19519 *${as_nl}*) 19520 case $ac_var in #( 19521 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19522$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19523 esac 19524 case $ac_var in #( 19525 _ | IFS | as_nl) ;; #( 19526 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19527 *) { eval $ac_var=; unset $ac_var;} ;; 19528 esac ;; 19529 esac 19530 done 19531 19532 (set) 2>&1 | 19533 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19534 *${as_nl}ac_space=\ *) 19535 # `set' does not quote correctly, so add quotes: double-quote 19536 # substitution turns \\\\ into \\, and sed turns \\ into \. 19537 sed -n \ 19538 "s/'/'\\\\''/g; 19539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19540 ;; #( 19541 *) 19542 # `set' quotes correctly as required by POSIX, so do not add quotes. 19543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19544 ;; 19545 esac | 19546 sort 19547) | 19548 sed ' 19549 /^ac_cv_env_/b end 19550 t clear 19551 :clear 19552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19553 t end 19554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19555 :end' >>confcache 19556if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19557 if test -w "$cache_file"; then 19558 if test "x$cache_file" != "x/dev/null"; then 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19560$as_echo "$as_me: updating cache $cache_file" >&6;} 19561 if test ! -f "$cache_file" || test -h "$cache_file"; then 19562 cat confcache >"$cache_file" 19563 else 19564 case $cache_file in #( 19565 */* | ?:*) 19566 mv -f confcache "$cache_file"$$ && 19567 mv -f "$cache_file"$$ "$cache_file" ;; #( 19568 *) 19569 mv -f confcache "$cache_file" ;; 19570 esac 19571 fi 19572 fi 19573 else 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19575$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19576 fi 19577fi 19578rm -f confcache 19579 19580test "x$prefix" = xNONE && prefix=$ac_default_prefix 19581# Let make expand exec_prefix. 19582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19583 19584DEFS=-DHAVE_CONFIG_H 19585 19586ac_libobjs= 19587ac_ltlibobjs= 19588U= 19589for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19590 # 1. Remove the extension, and $U if already installed. 19591 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19592 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19594 # will be set to the directory where LIBOBJS objects are built. 19595 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19596 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19597done 19598LIBOBJS=$ac_libobjs 19599 19600LTLIBOBJS=$ac_ltlibobjs 19601 19602 19603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19604 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19605Usually this means the macro was only invoked conditionally." "$LINENO" 5 19606fi 19607if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then 19608 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined. 19609Usually this means the macro was only invoked conditionally." "$LINENO" 5 19610fi 19611if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then 19612 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined. 19613Usually this means the macro was only invoked conditionally." "$LINENO" 5 19614fi 19615 19616 19617: "${CONFIG_STATUS=./config.status}" 19618ac_write_fail=0 19619ac_clean_files_save=$ac_clean_files 19620ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19621{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19622$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19623as_write_fail=0 19624cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19625#! $SHELL 19626# Generated by $as_me. 19627# Run this file to recreate the current configuration. 19628# Compiler output produced by configure, useful for debugging 19629# configure, is in config.log if it exists. 19630 19631debug=false 19632ac_cs_recheck=false 19633ac_cs_silent=false 19634 19635SHELL=\${CONFIG_SHELL-$SHELL} 19636export SHELL 19637_ASEOF 19638cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19639## -------------------- ## 19640## M4sh Initialization. ## 19641## -------------------- ## 19642 19643# Be more Bourne compatible 19644DUALCASE=1; export DUALCASE # for MKS sh 19645if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19646 emulate sh 19647 NULLCMD=: 19648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19649 # is contrary to our usage. Disable this feature. 19650 alias -g '${1+"$@"}'='"$@"' 19651 setopt NO_GLOB_SUBST 19652else 19653 case `(set -o) 2>/dev/null` in #( 19654 *posix*) : 19655 set -o posix ;; #( 19656 *) : 19657 ;; 19658esac 19659fi 19660 19661 19662as_nl=' 19663' 19664export as_nl 19665# Printing a long string crashes Solaris 7 /usr/bin/printf. 19666as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19667as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19669# Prefer a ksh shell builtin over an external printf program on Solaris, 19670# but without wasting forks for bash or zsh. 19671if test -z "$BASH_VERSION$ZSH_VERSION" \ 19672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19673 as_echo='print -r --' 19674 as_echo_n='print -rn --' 19675elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19676 as_echo='printf %s\n' 19677 as_echo_n='printf %s' 19678else 19679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19681 as_echo_n='/usr/ucb/echo -n' 19682 else 19683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19684 as_echo_n_body='eval 19685 arg=$1; 19686 case $arg in #( 19687 *"$as_nl"*) 19688 expr "X$arg" : "X\\(.*\\)$as_nl"; 19689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19690 esac; 19691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19692 ' 19693 export as_echo_n_body 19694 as_echo_n='sh -c $as_echo_n_body as_echo' 19695 fi 19696 export as_echo_body 19697 as_echo='sh -c $as_echo_body as_echo' 19698fi 19699 19700# The user is always right. 19701if test "${PATH_SEPARATOR+set}" != set; then 19702 PATH_SEPARATOR=: 19703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19705 PATH_SEPARATOR=';' 19706 } 19707fi 19708 19709 19710# IFS 19711# We need space, tab and new line, in precisely that order. Quoting is 19712# there to prevent editors from complaining about space-tab. 19713# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19714# splitting by setting IFS to empty value.) 19715IFS=" "" $as_nl" 19716 19717# Find who we are. Look in the path if we contain no directory separator. 19718as_myself= 19719case $0 in #(( 19720 *[\\/]* ) as_myself=$0 ;; 19721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19722for as_dir in $PATH 19723do 19724 IFS=$as_save_IFS 19725 test -z "$as_dir" && as_dir=. 19726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19727 done 19728IFS=$as_save_IFS 19729 19730 ;; 19731esac 19732# We did not find ourselves, most probably we were run as `sh COMMAND' 19733# in which case we are not to be found in the path. 19734if test "x$as_myself" = x; then 19735 as_myself=$0 19736fi 19737if test ! -f "$as_myself"; then 19738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19739 exit 1 19740fi 19741 19742# Unset variables that we do not need and which cause bugs (e.g. in 19743# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19744# suppresses any "Segmentation fault" message there. '((' could 19745# trigger a bug in pdksh 5.2.14. 19746for as_var in BASH_ENV ENV MAIL MAILPATH 19747do eval test x\${$as_var+set} = xset \ 19748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19749done 19750PS1='$ ' 19751PS2='> ' 19752PS4='+ ' 19753 19754# NLS nuisances. 19755LC_ALL=C 19756export LC_ALL 19757LANGUAGE=C 19758export LANGUAGE 19759 19760# CDPATH. 19761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19762 19763 19764# as_fn_error STATUS ERROR [LINENO LOG_FD] 19765# ---------------------------------------- 19766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19768# script with STATUS, using 1 if that was 0. 19769as_fn_error () 19770{ 19771 as_status=$1; test $as_status -eq 0 && as_status=1 19772 if test "$4"; then 19773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19775 fi 19776 $as_echo "$as_me: error: $2" >&2 19777 as_fn_exit $as_status 19778} # as_fn_error 19779 19780 19781# as_fn_set_status STATUS 19782# ----------------------- 19783# Set $? to STATUS, without forking. 19784as_fn_set_status () 19785{ 19786 return $1 19787} # as_fn_set_status 19788 19789# as_fn_exit STATUS 19790# ----------------- 19791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19792as_fn_exit () 19793{ 19794 set +e 19795 as_fn_set_status $1 19796 exit $1 19797} # as_fn_exit 19798 19799# as_fn_unset VAR 19800# --------------- 19801# Portably unset VAR. 19802as_fn_unset () 19803{ 19804 { eval $1=; unset $1;} 19805} 19806as_unset=as_fn_unset 19807# as_fn_append VAR VALUE 19808# ---------------------- 19809# Append the text in VALUE to the end of the definition contained in VAR. Take 19810# advantage of any shell optimizations that allow amortized linear growth over 19811# repeated appends, instead of the typical quadratic growth present in naive 19812# implementations. 19813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19814 eval 'as_fn_append () 19815 { 19816 eval $1+=\$2 19817 }' 19818else 19819 as_fn_append () 19820 { 19821 eval $1=\$$1\$2 19822 } 19823fi # as_fn_append 19824 19825# as_fn_arith ARG... 19826# ------------------ 19827# Perform arithmetic evaluation on the ARGs, and store the result in the 19828# global $as_val. Take advantage of shells that can avoid forks. The arguments 19829# must be portable across $(()) and expr. 19830if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19831 eval 'as_fn_arith () 19832 { 19833 as_val=$(( $* )) 19834 }' 19835else 19836 as_fn_arith () 19837 { 19838 as_val=`expr "$@" || test $? -eq 1` 19839 } 19840fi # as_fn_arith 19841 19842 19843if expr a : '\(a\)' >/dev/null 2>&1 && 19844 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19845 as_expr=expr 19846else 19847 as_expr=false 19848fi 19849 19850if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19851 as_basename=basename 19852else 19853 as_basename=false 19854fi 19855 19856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19857 as_dirname=dirname 19858else 19859 as_dirname=false 19860fi 19861 19862as_me=`$as_basename -- "$0" || 19863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19864 X"$0" : 'X\(//\)$' \| \ 19865 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19866$as_echo X/"$0" | 19867 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19868 s//\1/ 19869 q 19870 } 19871 /^X\/\(\/\/\)$/{ 19872 s//\1/ 19873 q 19874 } 19875 /^X\/\(\/\).*/{ 19876 s//\1/ 19877 q 19878 } 19879 s/.*/./; q'` 19880 19881# Avoid depending upon Character Ranges. 19882as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19884as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19885as_cr_digits='0123456789' 19886as_cr_alnum=$as_cr_Letters$as_cr_digits 19887 19888ECHO_C= ECHO_N= ECHO_T= 19889case `echo -n x` in #((((( 19890-n*) 19891 case `echo 'xy\c'` in 19892 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19893 xy) ECHO_C='\c';; 19894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19895 ECHO_T=' ';; 19896 esac;; 19897*) 19898 ECHO_N='-n';; 19899esac 19900 19901rm -f conf$$ conf$$.exe conf$$.file 19902if test -d conf$$.dir; then 19903 rm -f conf$$.dir/conf$$.file 19904else 19905 rm -f conf$$.dir 19906 mkdir conf$$.dir 2>/dev/null 19907fi 19908if (echo >conf$$.file) 2>/dev/null; then 19909 if ln -s conf$$.file conf$$ 2>/dev/null; then 19910 as_ln_s='ln -s' 19911 # ... but there are two gotchas: 19912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19914 # In both cases, we have to default to `cp -pR'. 19915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19916 as_ln_s='cp -pR' 19917 elif ln conf$$.file conf$$ 2>/dev/null; then 19918 as_ln_s=ln 19919 else 19920 as_ln_s='cp -pR' 19921 fi 19922else 19923 as_ln_s='cp -pR' 19924fi 19925rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19926rmdir conf$$.dir 2>/dev/null 19927 19928 19929# as_fn_mkdir_p 19930# ------------- 19931# Create "$as_dir" as a directory, including parents if necessary. 19932as_fn_mkdir_p () 19933{ 19934 19935 case $as_dir in #( 19936 -*) as_dir=./$as_dir;; 19937 esac 19938 test -d "$as_dir" || eval $as_mkdir_p || { 19939 as_dirs= 19940 while :; do 19941 case $as_dir in #( 19942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19943 *) as_qdir=$as_dir;; 19944 esac 19945 as_dirs="'$as_qdir' $as_dirs" 19946 as_dir=`$as_dirname -- "$as_dir" || 19947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19948 X"$as_dir" : 'X\(//\)[^/]' \| \ 19949 X"$as_dir" : 'X\(//\)$' \| \ 19950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19951$as_echo X"$as_dir" | 19952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19953 s//\1/ 19954 q 19955 } 19956 /^X\(\/\/\)[^/].*/{ 19957 s//\1/ 19958 q 19959 } 19960 /^X\(\/\/\)$/{ 19961 s//\1/ 19962 q 19963 } 19964 /^X\(\/\).*/{ 19965 s//\1/ 19966 q 19967 } 19968 s/.*/./; q'` 19969 test -d "$as_dir" && break 19970 done 19971 test -z "$as_dirs" || eval "mkdir $as_dirs" 19972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19973 19974 19975} # as_fn_mkdir_p 19976if mkdir -p . 2>/dev/null; then 19977 as_mkdir_p='mkdir -p "$as_dir"' 19978else 19979 test -d ./-p && rmdir ./-p 19980 as_mkdir_p=false 19981fi 19982 19983 19984# as_fn_executable_p FILE 19985# ----------------------- 19986# Test if FILE is an executable regular file. 19987as_fn_executable_p () 19988{ 19989 test -f "$1" && test -x "$1" 19990} # as_fn_executable_p 19991as_test_x='test -x' 19992as_executable_p=as_fn_executable_p 19993 19994# Sed expression to map a string onto a valid CPP name. 19995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19996 19997# Sed expression to map a string onto a valid variable name. 19998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19999 20000 20001exec 6>&1 20002## ----------------------------------- ## 20003## Main body of $CONFIG_STATUS script. ## 20004## ----------------------------------- ## 20005_ASEOF 20006test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20007 20008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20009# Save the log message, to keep $0 and so on meaningful, and to 20010# report actual input values of CONFIG_FILES etc. instead of their 20011# values after options handling. 20012ac_log=" 20013This file was extended by $as_me, which was 20014generated by GNU Autoconf 2.69. Invocation command line was 20015 20016 CONFIG_FILES = $CONFIG_FILES 20017 CONFIG_HEADERS = $CONFIG_HEADERS 20018 CONFIG_LINKS = $CONFIG_LINKS 20019 CONFIG_COMMANDS = $CONFIG_COMMANDS 20020 $ $0 $@ 20021 20022on `(hostname || uname -n) 2>/dev/null | sed 1q` 20023" 20024 20025_ACEOF 20026 20027case $ac_config_files in *" 20028"*) set x $ac_config_files; shift; ac_config_files=$*;; 20029esac 20030 20031case $ac_config_headers in *" 20032"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20033esac 20034 20035 20036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20037# Files that config.status was made for. 20038config_files="$ac_config_files" 20039config_headers="$ac_config_headers" 20040config_links="$ac_config_links" 20041config_commands="$ac_config_commands" 20042 20043_ACEOF 20044 20045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20046ac_cs_usage="\ 20047\`$as_me' instantiates files and other configuration actions 20048from templates according to the current configuration. Unless the files 20049and actions are specified as TAGs, all are instantiated by default. 20050 20051Usage: $0 [OPTION]... [TAG]... 20052 20053 -h, --help print this help, then exit 20054 -V, --version print version number and configuration settings, then exit 20055 --config print configuration, then exit 20056 -q, --quiet, --silent 20057 do not print progress messages 20058 -d, --debug don't remove temporary files 20059 --recheck update $as_me by reconfiguring in the same conditions 20060 --file=FILE[:TEMPLATE] 20061 instantiate the configuration file FILE 20062 --header=FILE[:TEMPLATE] 20063 instantiate the configuration header FILE 20064 20065Configuration files: 20066$config_files 20067 20068Configuration headers: 20069$config_headers 20070 20071Configuration links: 20072$config_links 20073 20074Configuration commands: 20075$config_commands 20076 20077Report bugs to the package provider." 20078 20079_ACEOF 20080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20081ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20082ac_cs_version="\\ 20083config.status 20084configured by $0, generated by GNU Autoconf 2.69, 20085 with options \\"\$ac_cs_config\\" 20086 20087Copyright (C) 2012 Free Software Foundation, Inc. 20088This config.status script is free software; the Free Software Foundation 20089gives unlimited permission to copy, distribute and modify it." 20090 20091ac_pwd='$ac_pwd' 20092srcdir='$srcdir' 20093INSTALL='$INSTALL' 20094AWK='$AWK' 20095test -n "\$AWK" || AWK=awk 20096_ACEOF 20097 20098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20099# The default lists apply if the user does not specify any file. 20100ac_need_defaults=: 20101while test $# != 0 20102do 20103 case $1 in 20104 --*=?*) 20105 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20106 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20107 ac_shift=: 20108 ;; 20109 --*=) 20110 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20111 ac_optarg= 20112 ac_shift=: 20113 ;; 20114 *) 20115 ac_option=$1 20116 ac_optarg=$2 20117 ac_shift=shift 20118 ;; 20119 esac 20120 20121 case $ac_option in 20122 # Handling of the options. 20123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20124 ac_cs_recheck=: ;; 20125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20126 $as_echo "$ac_cs_version"; exit ;; 20127 --config | --confi | --conf | --con | --co | --c ) 20128 $as_echo "$ac_cs_config"; exit ;; 20129 --debug | --debu | --deb | --de | --d | -d ) 20130 debug=: ;; 20131 --file | --fil | --fi | --f ) 20132 $ac_shift 20133 case $ac_optarg in 20134 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20135 '') as_fn_error $? "missing file argument" ;; 20136 esac 20137 as_fn_append CONFIG_FILES " '$ac_optarg'" 20138 ac_need_defaults=false;; 20139 --header | --heade | --head | --hea ) 20140 $ac_shift 20141 case $ac_optarg in 20142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20143 esac 20144 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20145 ac_need_defaults=false;; 20146 --he | --h) 20147 # Conflict between --help and --header 20148 as_fn_error $? "ambiguous option: \`$1' 20149Try \`$0 --help' for more information.";; 20150 --help | --hel | -h ) 20151 $as_echo "$ac_cs_usage"; exit ;; 20152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20153 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20154 ac_cs_silent=: ;; 20155 20156 # This is an error. 20157 -*) as_fn_error $? "unrecognized option: \`$1' 20158Try \`$0 --help' for more information." ;; 20159 20160 *) as_fn_append ac_config_targets " $1" 20161 ac_need_defaults=false ;; 20162 20163 esac 20164 shift 20165done 20166 20167ac_configure_extra_args= 20168 20169if $ac_cs_silent; then 20170 exec 6>/dev/null 20171 ac_configure_extra_args="$ac_configure_extra_args --silent" 20172fi 20173 20174_ACEOF 20175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20176if \$ac_cs_recheck; then 20177 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20178 shift 20179 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20180 CONFIG_SHELL='$SHELL' 20181 export CONFIG_SHELL 20182 exec "\$@" 20183fi 20184 20185_ACEOF 20186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20187exec 5>>config.log 20188{ 20189 echo 20190 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20191## Running $as_me. ## 20192_ASBOX 20193 $as_echo "$ac_log" 20194} >&5 20195 20196_ACEOF 20197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20198# 20199# INIT-COMMANDS 20200# 20201ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR 20202GDB_NM_FILE=$GDB_NM_FILE 20203 20204_ACEOF 20205 20206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20207 20208# Handling of arguments. 20209for ac_config_target in $ac_config_targets 20210do 20211 case $ac_config_target in 20212 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 20213 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;; 20214 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;; 20215 "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;; 20216 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;; 20217 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20218 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;; 20219 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;; 20220 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20221 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;; 20222 20223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20224 esac 20225done 20226 20227 20228# If the user did not use the arguments to specify the items to instantiate, 20229# then the envvar interface is used. Set only those that are not. 20230# We use the long form for the default assignment because of an extremely 20231# bizarre bug on SunOS 4.1.3. 20232if $ac_need_defaults; then 20233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20235 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 20236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20237fi 20238 20239# Have a temporary directory for convenience. Make it in the build tree 20240# simply because there is no reason against having it here, and in addition, 20241# creating and moving files from /tmp can sometimes cause problems. 20242# Hook for its removal unless debugging. 20243# Note that there is a small window in which the directory will not be cleaned: 20244# after its creation but before its name has been assigned to `$tmp'. 20245$debug || 20246{ 20247 tmp= ac_tmp= 20248 trap 'exit_status=$? 20249 : "${ac_tmp:=$tmp}" 20250 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20251' 0 20252 trap 'as_fn_exit 1' 1 2 13 15 20253} 20254# Create a (secure) tmp directory for tmp files. 20255 20256{ 20257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20258 test -d "$tmp" 20259} || 20260{ 20261 tmp=./conf$$-$RANDOM 20262 (umask 077 && mkdir "$tmp") 20263} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20264ac_tmp=$tmp 20265 20266# Set up the scripts for CONFIG_FILES section. 20267# No need to generate them if there are no CONFIG_FILES. 20268# This happens for instance with `./config.status config.h'. 20269if test -n "$CONFIG_FILES"; then 20270 20271if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 20272 ac_cs_awk_getline=: 20273 ac_cs_awk_pipe_init= 20274 ac_cs_awk_read_file=' 20275 while ((getline aline < (F[key])) > 0) 20276 print(aline) 20277 close(F[key])' 20278 ac_cs_awk_pipe_fini= 20279else 20280 ac_cs_awk_getline=false 20281 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 20282 ac_cs_awk_read_file=' 20283 print "|#_!!_#|" 20284 print "cat " F[key] " &&" 20285 '$ac_cs_awk_pipe_init 20286 # The final `:' finishes the AND list. 20287 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 20288fi 20289ac_cr=`echo X | tr X '\015'` 20290# On cygwin, bash can eat \r inside `` if the user requested igncr. 20291# But we know of no other shell where ac_cr would be empty at this 20292# point, so we can use a bashism as a fallback. 20293if test "x$ac_cr" = x; then 20294 eval ac_cr=\$\'\\r\' 20295fi 20296ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20297if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20298 ac_cs_awk_cr='\\r' 20299else 20300 ac_cs_awk_cr=$ac_cr 20301fi 20302 20303echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20304_ACEOF 20305 20306# Create commands to substitute file output variables. 20307{ 20308 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 20309 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 20310 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 20311 echo "_ACAWK" && 20312 echo "_ACEOF" 20313} >conf$$files.sh && 20314. ./conf$$files.sh || 20315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20316rm -f conf$$files.sh 20317 20318{ 20319 echo "cat >conf$$subs.awk <<_ACEOF" && 20320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20321 echo "_ACEOF" 20322} >conf$$subs.sh || 20323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20324ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20325ac_delim='%!_!# ' 20326for ac_last_try in false false false false false :; do 20327 . ./conf$$subs.sh || 20328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20329 20330 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20331 if test $ac_delim_n = $ac_delim_num; then 20332 break 20333 elif $ac_last_try; then 20334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20335 else 20336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20337 fi 20338done 20339rm -f conf$$subs.sh 20340 20341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20342cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20343_ACEOF 20344sed -n ' 20345h 20346s/^/S["/; s/!.*/"]=/ 20347p 20348g 20349s/^[^!]*!// 20350:repl 20351t repl 20352s/'"$ac_delim"'$// 20353t delim 20354:nl 20355h 20356s/\(.\{148\}\)..*/\1/ 20357t more1 20358s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20359p 20360n 20361b repl 20362:more1 20363s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20364p 20365g 20366s/.\{148\}// 20367t nl 20368:delim 20369h 20370s/\(.\{148\}\)..*/\1/ 20371t more2 20372s/["\\]/\\&/g; s/^/"/; s/$/"/ 20373p 20374b 20375:more2 20376s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20377p 20378g 20379s/.\{148\}// 20380t delim 20381' <conf$$subs.awk | sed ' 20382/^[^""]/{ 20383 N 20384 s/\n// 20385} 20386' >>$CONFIG_STATUS || ac_write_fail=1 20387rm -f conf$$subs.awk 20388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20389_ACAWK 20390cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20391 for (key in S) S_is_set[key] = 1 20392 FS = "" 20393 \$ac_cs_awk_pipe_init 20394} 20395{ 20396 line = $ 0 20397 nfields = split(line, field, "@") 20398 substed = 0 20399 len = length(field[1]) 20400 for (i = 2; i < nfields; i++) { 20401 key = field[i] 20402 keylen = length(key) 20403 if (S_is_set[key]) { 20404 value = S[key] 20405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20406 len += length(value) + length(field[++i]) 20407 substed = 1 20408 } else 20409 len += 1 + keylen 20410 } 20411 if (nfields == 3 && !substed) { 20412 key = field[2] 20413 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 20414 \$ac_cs_awk_read_file 20415 next 20416 } 20417 } 20418 print line 20419} 20420\$ac_cs_awk_pipe_fini 20421_ACAWK 20422_ACEOF 20423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20424if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20425 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20426else 20427 cat 20428fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20429 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20430_ACEOF 20431 20432# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20433# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20434# trailing colons and then remove the whole line if VPATH becomes empty 20435# (actually we leave an empty line to preserve line numbers). 20436if test "x$srcdir" = x.; then 20437 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20438h 20439s/// 20440s/^/:/ 20441s/[ ]*$/:/ 20442s/:\$(srcdir):/:/g 20443s/:\${srcdir}:/:/g 20444s/:@srcdir@:/:/g 20445s/^:*// 20446s/:*$// 20447x 20448s/\(=[ ]*\).*/\1/ 20449G 20450s/\n// 20451s/^[^=]*=[ ]*$// 20452}' 20453fi 20454 20455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20456fi # test -n "$CONFIG_FILES" 20457 20458# Set up the scripts for CONFIG_HEADERS section. 20459# No need to generate them if there are no CONFIG_HEADERS. 20460# This happens for instance with `./config.status Makefile'. 20461if test -n "$CONFIG_HEADERS"; then 20462cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20463BEGIN { 20464_ACEOF 20465 20466# Transform confdefs.h into an awk script `defines.awk', embedded as 20467# here-document in config.status, that substitutes the proper values into 20468# config.h.in to produce config.h. 20469 20470# Create a delimiter string that does not exist in confdefs.h, to ease 20471# handling of long lines. 20472ac_delim='%!_!# ' 20473for ac_last_try in false false :; do 20474 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20475 if test -z "$ac_tt"; then 20476 break 20477 elif $ac_last_try; then 20478 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20479 else 20480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20481 fi 20482done 20483 20484# For the awk script, D is an array of macro values keyed by name, 20485# likewise P contains macro parameters if any. Preserve backslash 20486# newline sequences. 20487 20488ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20489sed -n ' 20490s/.\{148\}/&'"$ac_delim"'/g 20491t rset 20492:rset 20493s/^[ ]*#[ ]*define[ ][ ]*/ / 20494t def 20495d 20496:def 20497s/\\$// 20498t bsnl 20499s/["\\]/\\&/g 20500s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20501D["\1"]=" \3"/p 20502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20503d 20504:bsnl 20505s/["\\]/\\&/g 20506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20507D["\1"]=" \3\\\\\\n"\\/p 20508t cont 20509s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20510t cont 20511d 20512:cont 20513n 20514s/.\{148\}/&'"$ac_delim"'/g 20515t clear 20516:clear 20517s/\\$// 20518t bsnlc 20519s/["\\]/\\&/g; s/^/"/; s/$/"/p 20520d 20521:bsnlc 20522s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20523b cont 20524' <confdefs.h | sed ' 20525s/'"$ac_delim"'/"\\\ 20526"/g' >>$CONFIG_STATUS || ac_write_fail=1 20527 20528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20529 for (key in D) D_is_set[key] = 1 20530 FS = "" 20531} 20532/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20533 line = \$ 0 20534 split(line, arg, " ") 20535 if (arg[1] == "#") { 20536 defundef = arg[2] 20537 mac1 = arg[3] 20538 } else { 20539 defundef = substr(arg[1], 2) 20540 mac1 = arg[2] 20541 } 20542 split(mac1, mac2, "(") #) 20543 macro = mac2[1] 20544 prefix = substr(line, 1, index(line, defundef) - 1) 20545 if (D_is_set[macro]) { 20546 # Preserve the white space surrounding the "#". 20547 print prefix "define", macro P[macro] D[macro] 20548 next 20549 } else { 20550 # Replace #undef with comments. This is necessary, for example, 20551 # in the case of _POSIX_SOURCE, which is predefined and required 20552 # on some systems where configure will not decide to define it. 20553 if (defundef == "undef") { 20554 print "/*", prefix defundef, macro, "*/" 20555 next 20556 } 20557 } 20558} 20559{ print } 20560_ACAWK 20561_ACEOF 20562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20563 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20564fi # test -n "$CONFIG_HEADERS" 20565 20566 20567eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 20568shift 20569for ac_tag 20570do 20571 case $ac_tag in 20572 :[FHLC]) ac_mode=$ac_tag; continue;; 20573 esac 20574 case $ac_mode$ac_tag in 20575 :[FHL]*:*);; 20576 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20577 :[FH]-) ac_tag=-:-;; 20578 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20579 esac 20580 ac_save_IFS=$IFS 20581 IFS=: 20582 set x $ac_tag 20583 IFS=$ac_save_IFS 20584 shift 20585 ac_file=$1 20586 shift 20587 20588 case $ac_mode in 20589 :L) ac_source=$1;; 20590 :[FH]) 20591 ac_file_inputs= 20592 for ac_f 20593 do 20594 case $ac_f in 20595 -) ac_f="$ac_tmp/stdin";; 20596 *) # Look for the file first in the build tree, then in the source tree 20597 # (if the path is not absolute). The absolute path cannot be DOS-style, 20598 # because $ac_f cannot contain `:'. 20599 test -f "$ac_f" || 20600 case $ac_f in 20601 [\\/$]*) false;; 20602 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20603 esac || 20604 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20605 esac 20606 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20607 as_fn_append ac_file_inputs " '$ac_f'" 20608 done 20609 20610 # Let's still pretend it is `configure' which instantiates (i.e., don't 20611 # use $as_me), people would be surprised to read: 20612 # /* config.h. Generated by config.status. */ 20613 configure_input='Generated from '` 20614 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20615 `' by configure.' 20616 if test x"$ac_file" != x-; then 20617 configure_input="$ac_file. $configure_input" 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20619$as_echo "$as_me: creating $ac_file" >&6;} 20620 fi 20621 # Neutralize special characters interpreted by sed in replacement strings. 20622 case $configure_input in #( 20623 *\&* | *\|* | *\\* ) 20624 ac_sed_conf_input=`$as_echo "$configure_input" | 20625 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20626 *) ac_sed_conf_input=$configure_input;; 20627 esac 20628 20629 case $ac_tag in 20630 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20632 esac 20633 ;; 20634 esac 20635 20636 ac_dir=`$as_dirname -- "$ac_file" || 20637$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20638 X"$ac_file" : 'X\(//\)[^/]' \| \ 20639 X"$ac_file" : 'X\(//\)$' \| \ 20640 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20641$as_echo X"$ac_file" | 20642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20643 s//\1/ 20644 q 20645 } 20646 /^X\(\/\/\)[^/].*/{ 20647 s//\1/ 20648 q 20649 } 20650 /^X\(\/\/\)$/{ 20651 s//\1/ 20652 q 20653 } 20654 /^X\(\/\).*/{ 20655 s//\1/ 20656 q 20657 } 20658 s/.*/./; q'` 20659 as_dir="$ac_dir"; as_fn_mkdir_p 20660 ac_builddir=. 20661 20662case "$ac_dir" in 20663.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20664*) 20665 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20666 # A ".." for each directory in $ac_dir_suffix. 20667 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20668 case $ac_top_builddir_sub in 20669 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20670 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20671 esac ;; 20672esac 20673ac_abs_top_builddir=$ac_pwd 20674ac_abs_builddir=$ac_pwd$ac_dir_suffix 20675# for backward compatibility: 20676ac_top_builddir=$ac_top_build_prefix 20677 20678case $srcdir in 20679 .) # We are building in place. 20680 ac_srcdir=. 20681 ac_top_srcdir=$ac_top_builddir_sub 20682 ac_abs_top_srcdir=$ac_pwd ;; 20683 [\\/]* | ?:[\\/]* ) # Absolute name. 20684 ac_srcdir=$srcdir$ac_dir_suffix; 20685 ac_top_srcdir=$srcdir 20686 ac_abs_top_srcdir=$srcdir ;; 20687 *) # Relative name. 20688 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20689 ac_top_srcdir=$ac_top_build_prefix$srcdir 20690 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20691esac 20692ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20693 20694 20695 case $ac_mode in 20696 :F) 20697 # 20698 # CONFIG_FILE 20699 # 20700 20701 case $INSTALL in 20702 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20703 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20704 esac 20705_ACEOF 20706 20707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20708# If the template does not know about datarootdir, expand it. 20709# FIXME: This hack should be removed a few years after 2.60. 20710ac_datarootdir_hack=; ac_datarootdir_seen= 20711ac_sed_dataroot=' 20712/datarootdir/ { 20713 p 20714 q 20715} 20716/@datadir@/p 20717/@docdir@/p 20718/@infodir@/p 20719/@localedir@/p 20720/@mandir@/p' 20721case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20722*datarootdir*) ac_datarootdir_seen=yes;; 20723*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20725$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20726_ACEOF 20727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20728 ac_datarootdir_hack=' 20729 s&@datadir@&$datadir&g 20730 s&@docdir@&$docdir&g 20731 s&@infodir@&$infodir&g 20732 s&@localedir@&$localedir&g 20733 s&@mandir@&$mandir&g 20734 s&\\\${datarootdir}&$datarootdir&g' ;; 20735esac 20736_ACEOF 20737 20738# Neutralize VPATH when `$srcdir' = `.'. 20739# Shell code in configure.ac might set extrasub. 20740# FIXME: do we really want to maintain this feature? 20741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20742ac_sed_extra="$ac_vpsub 20743$extrasub 20744_ACEOF 20745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20746:t 20747/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20748s|@configure_input@|$ac_sed_conf_input|;t t 20749s&@top_builddir@&$ac_top_builddir_sub&;t t 20750s&@top_build_prefix@&$ac_top_build_prefix&;t t 20751s&@srcdir@&$ac_srcdir&;t t 20752s&@abs_srcdir@&$ac_abs_srcdir&;t t 20753s&@top_srcdir@&$ac_top_srcdir&;t t 20754s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20755s&@builddir@&$ac_builddir&;t t 20756s&@abs_builddir@&$ac_abs_builddir&;t t 20757s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20758s&@INSTALL@&$ac_INSTALL&;t t 20759$ac_datarootdir_hack 20760" 20761eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 20762if $ac_cs_awk_getline; then 20763 $AWK -f "$ac_tmp/subs.awk" 20764else 20765 $AWK -f "$ac_tmp/subs.awk" | $SHELL 20766fi \ 20767 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20768 20769test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20770 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20771 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20772 "$ac_tmp/out"`; test -z "$ac_out"; } && 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20774which seems to be undefined. Please make sure it is defined" >&5 20775$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20776which seems to be undefined. Please make sure it is defined" >&2;} 20777 20778 rm -f "$ac_tmp/stdin" 20779 case $ac_file in 20780 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20781 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20782 esac \ 20783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20784 ;; 20785 :H) 20786 # 20787 # CONFIG_HEADER 20788 # 20789 if test x"$ac_file" != x-; then 20790 { 20791 $as_echo "/* $configure_input */" \ 20792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20793 } >"$ac_tmp/config.h" \ 20794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20795 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20797$as_echo "$as_me: $ac_file is unchanged" >&6;} 20798 else 20799 rm -f "$ac_file" 20800 mv "$ac_tmp/config.h" "$ac_file" \ 20801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20802 fi 20803 else 20804 $as_echo "/* $configure_input */" \ 20805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20806 || as_fn_error $? "could not create -" "$LINENO" 5 20807 fi 20808 ;; 20809 :L) 20810 # 20811 # CONFIG_LINK 20812 # 20813 20814 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 20815 : 20816 else 20817 # Prefer the file from the source tree if names are identical. 20818 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 20819 ac_source=$srcdir/$ac_source 20820 fi 20821 20822 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 20823$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 20824 20825 if test ! -r "$ac_source"; then 20826 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 20827 fi 20828 rm -f "$ac_file" 20829 20830 # Try a relative symlink, then a hard link, then a copy. 20831 case $ac_source in 20832 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 20833 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 20834 esac 20835 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 20836 ln "$ac_source" "$ac_file" 2>/dev/null || 20837 cp -p "$ac_source" "$ac_file" || 20838 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 20839 fi 20840 ;; 20841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20842$as_echo "$as_me: executing $ac_file commands" >&6;} 20843 ;; 20844 esac 20845 20846 20847 case $ac_file$ac_mode in 20848 "config.h":H) echo > stamp-h ;; 20849 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;; 20850 "nm.h":L) echo > stamp-nmh ;; 20851 "gcore":F) chmod +x gcore ;; 20852 20853 esac 20854done # for ac_tag 20855 20856 20857as_fn_exit 0 20858_ACEOF 20859ac_clean_files=$ac_clean_files_save 20860 20861test $ac_write_fail = 0 || 20862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20863 20864 20865# configure is writing to config.log, and then calls config.status. 20866# config.status does its own redirection, appending to config.log. 20867# Unfortunately, on DOS this fails, as config.log is still kept open 20868# by configure, so config.status won't be able to write to it; its 20869# output is simply discarded. So we exec the FD to /dev/null, 20870# effectively closing config.log, so it can be properly (re)opened and 20871# appended to by config.status. When coming back to configure, we 20872# need to make the FD available again. 20873if test "$no_create" != yes; then 20874 ac_cs_success=: 20875 ac_config_status_args= 20876 test "$silent" = yes && 20877 ac_config_status_args="$ac_config_status_args --quiet" 20878 exec 5>/dev/null 20879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20880 exec 5>>config.log 20881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20882 # would make configure fail if this is the last instruction. 20883 $ac_cs_success || as_fn_exit 1 20884fi 20885 20886# 20887# CONFIG_SUBDIRS section. 20888# 20889if test "$no_recursion" != yes; then 20890 20891 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 20892 # so they do not pile up. 20893 ac_sub_configure_args= 20894 ac_prev= 20895 eval "set x $ac_configure_args" 20896 shift 20897 for ac_arg 20898 do 20899 if test -n "$ac_prev"; then 20900 ac_prev= 20901 continue 20902 fi 20903 case $ac_arg in 20904 -cache-file | --cache-file | --cache-fil | --cache-fi \ 20905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 20906 ac_prev=cache_file ;; 20907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 20908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 20909 | --c=*) 20910 ;; 20911 --config-cache | -C) 20912 ;; 20913 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 20914 ac_prev=srcdir ;; 20915 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 20916 ;; 20917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 20918 ac_prev=prefix ;; 20919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 20920 ;; 20921 --disable-option-checking) 20922 ;; 20923 *) 20924 case $ac_arg in 20925 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20926 esac 20927 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 20928 esac 20929 done 20930 20931 # Always prepend --prefix to ensure using the same prefix 20932 # in subdir configurations. 20933 ac_arg="--prefix=$prefix" 20934 case $ac_arg in 20935 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 20936 esac 20937 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 20938 20939 # Pass --silent 20940 if test "$silent" = yes; then 20941 ac_sub_configure_args="--silent $ac_sub_configure_args" 20942 fi 20943 20944 # Always prepend --disable-option-checking to silence warnings, since 20945 # different subdirs can have different --enable and --with options. 20946 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 20947 20948 ac_popdir=`pwd` 20949 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 20950 20951 # Do not complain, so a configure script can configure whichever 20952 # parts of a large source tree are present. 20953 test -d "$srcdir/$ac_dir" || continue 20954 20955 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 20956 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 20957 $as_echo "$ac_msg" >&6 20958 as_dir="$ac_dir"; as_fn_mkdir_p 20959 ac_builddir=. 20960 20961case "$ac_dir" in 20962.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20963*) 20964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20965 # A ".." for each directory in $ac_dir_suffix. 20966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20967 case $ac_top_builddir_sub in 20968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20970 esac ;; 20971esac 20972ac_abs_top_builddir=$ac_pwd 20973ac_abs_builddir=$ac_pwd$ac_dir_suffix 20974# for backward compatibility: 20975ac_top_builddir=$ac_top_build_prefix 20976 20977case $srcdir in 20978 .) # We are building in place. 20979 ac_srcdir=. 20980 ac_top_srcdir=$ac_top_builddir_sub 20981 ac_abs_top_srcdir=$ac_pwd ;; 20982 [\\/]* | ?:[\\/]* ) # Absolute name. 20983 ac_srcdir=$srcdir$ac_dir_suffix; 20984 ac_top_srcdir=$srcdir 20985 ac_abs_top_srcdir=$srcdir ;; 20986 *) # Relative name. 20987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20988 ac_top_srcdir=$ac_top_build_prefix$srcdir 20989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20990esac 20991ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20992 20993 20994 cd "$ac_dir" 20995 20996 # Check for guested configure; otherwise get Cygnus style configure. 20997 if test -f "$ac_srcdir/configure.gnu"; then 20998 ac_sub_configure=$ac_srcdir/configure.gnu 20999 elif test -f "$ac_srcdir/configure"; then 21000 ac_sub_configure=$ac_srcdir/configure 21001 elif test -f "$ac_srcdir/configure.in"; then 21002 # This should be Cygnus configure. 21003 ac_sub_configure=$ac_aux_dir/configure 21004 else 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 21006$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21007 ac_sub_configure= 21008 fi 21009 21010 # The recursion is here. 21011 if test -n "$ac_sub_configure"; then 21012 # Make the cache file name correct relative to the subdirectory. 21013 case $cache_file in 21014 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21015 *) # Relative name. 21016 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 21017 esac 21018 21019 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21020$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21021 # The eval makes quoting arguments work. 21022 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 21023 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 21024 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 21025 fi 21026 21027 cd "$ac_popdir" 21028 done 21029fi 21030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21033fi 21034 21035