1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gdbsupport 1.0. 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='gdbsupport' 579PACKAGE_TARNAME='gdbsupport' 580PACKAGE_VERSION='1.0' 581PACKAGE_STRING='gdbsupport 1.0' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="common-defs.h" 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 622ac_header_list= 623ac_subst_vars='am__EXEEXT_FALSE 624am__EXEEXT_TRUE 625LTLIBOBJS 626LIBOBJS 627WERROR_CFLAGS 628WARN_CFLAGS 629SELFTEST_FALSE 630SELFTEST_TRUE 631LTLIBIPT 632LIBIPT 633HAVE_LIBIPT 634PTHREAD_CFLAGS 635PTHREAD_LIBS 636PTHREAD_CC 637ax_pthread_config 638SED 639ALLOCA 640CATOBJEXT 641GENCAT 642INSTOBJEXT 643DATADIRNAME 644CATALOGS 645POSUB 646GMSGFMT 647XGETTEXT 648INCINTL 649LIBINTL_DEP 650LIBINTL 651USE_NLS 652CXX_DIALECT 653HAVE_CXX11 654LARGEFILE_CPPFLAGS 655EGREP 656GREP 657CPP 658RANLIB 659am__fastdepCXX_FALSE 660am__fastdepCXX_TRUE 661CXXDEPMODE 662ac_ct_CXX 663CXXFLAGS 664CXX 665am__fastdepCC_FALSE 666am__fastdepCC_TRUE 667CCDEPMODE 668am__nodep 669AMDEPBACKSLASH 670AMDEP_FALSE 671AMDEP_TRUE 672am__quote 673am__include 674DEPDIR 675OBJEXT 676EXEEXT 677ac_ct_CC 678CPPFLAGS 679LDFLAGS 680CFLAGS 681CC 682AM_BACKSLASH 683AM_DEFAULT_VERBOSITY 684AM_DEFAULT_V 685AM_V 686am__untar 687am__tar 688AMTAR 689am__leading_dot 690SET_MAKE 691AWK 692mkdir_p 693MKDIR_P 694INSTALL_STRIP_PROGRAM 695STRIP 696install_sh 697MAKEINFO 698AUTOHEADER 699AUTOMAKE 700AUTOCONF 701ACLOCAL 702VERSION 703PACKAGE 704CYGPATH_W 705am__isrc 706INSTALL_DATA 707INSTALL_SCRIPT 708INSTALL_PROGRAM 709MAINT 710MAINTAINER_MODE_FALSE 711MAINTAINER_MODE_TRUE 712target_os 713target_vendor 714target_cpu 715target 716host_os 717host_vendor 718host_cpu 719host 720build_os 721build_vendor 722build_cpu 723build 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743localstatedir 744sharedstatedir 745sysconfdir 746datadir 747datarootdir 748libexecdir 749sbindir 750bindir 751program_transform_name 752prefix 753exec_prefix 754PACKAGE_URL 755PACKAGE_BUGREPORT 756PACKAGE_STRING 757PACKAGE_VERSION 758PACKAGE_TARNAME 759PACKAGE_NAME 760PATH_SEPARATOR 761SHELL' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_maintainer_mode 766enable_silent_rules 767enable_dependency_tracking 768enable_plugins 769enable_largefile 770with_intel_pt 771with_gnu_ld 772enable_rpath 773with_libipt_prefix 774with_libipt_type 775enable_unit_tests 776enable_werror 777enable_build_warnings 778enable_gdb_build_warnings 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788CXX 789CXXFLAGS 790CCC 791CPP' 792 793 794# Initialize some variables set by options. 795ac_init_help= 796ac_init_version=false 797ac_unrecognized_opts= 798ac_unrecognized_sep= 799# The variables have the same names as the options, with 800# dashes changed to underlines. 801cache_file=/dev/null 802exec_prefix=NONE 803no_create= 804no_recursion= 805prefix=NONE 806program_prefix=NONE 807program_suffix=NONE 808program_transform_name=s,x,x, 809silent= 810site= 811srcdir= 812verbose= 813x_includes=NONE 814x_libraries=NONE 815 816# Installation directory options. 817# These are left unexpanded so users can "make install exec_prefix=/foo" 818# and all the variables that are supposed to be based on exec_prefix 819# by default will actually change. 820# Use braces instead of parens because sh, perl, etc. also accept them. 821# (The list follows the same order as the GNU Coding Standards.) 822bindir='${exec_prefix}/bin' 823sbindir='${exec_prefix}/sbin' 824libexecdir='${exec_prefix}/libexec' 825datarootdir='${prefix}/share' 826datadir='${datarootdir}' 827sysconfdir='${prefix}/etc' 828sharedstatedir='${prefix}/com' 829localstatedir='${prefix}/var' 830includedir='${prefix}/include' 831oldincludedir='/usr/include' 832docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 833infodir='${datarootdir}/info' 834htmldir='${docdir}' 835dvidir='${docdir}' 836pdfdir='${docdir}' 837psdir='${docdir}' 838libdir='${exec_prefix}/lib' 839localedir='${datarootdir}/locale' 840mandir='${datarootdir}/man' 841 842ac_prev= 843ac_dashdash= 844for ac_option 845do 846 # If the previous option needs an argument, assign it. 847 if test -n "$ac_prev"; then 848 eval $ac_prev=\$ac_option 849 ac_prev= 850 continue 851 fi 852 853 case $ac_option in 854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 855 *=) ac_optarg= ;; 856 *) ac_optarg=yes ;; 857 esac 858 859 # Accept the important Cygnus configure options, so we can diagnose typos. 860 861 case $ac_dashdash$ac_option in 862 --) 863 ac_dashdash=yes ;; 864 865 -bindir | --bindir | --bindi | --bind | --bin | --bi) 866 ac_prev=bindir ;; 867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 868 bindir=$ac_optarg ;; 869 870 -build | --build | --buil | --bui | --bu) 871 ac_prev=build_alias ;; 872 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 873 build_alias=$ac_optarg ;; 874 875 -cache-file | --cache-file | --cache-fil | --cache-fi \ 876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 877 ac_prev=cache_file ;; 878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 880 cache_file=$ac_optarg ;; 881 882 --config-cache | -C) 883 cache_file=config.cache ;; 884 885 -datadir | --datadir | --datadi | --datad) 886 ac_prev=datadir ;; 887 -datadir=* | --datadir=* | --datadi=* | --datad=*) 888 datadir=$ac_optarg ;; 889 890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 891 | --dataroo | --dataro | --datar) 892 ac_prev=datarootdir ;; 893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 895 datarootdir=$ac_optarg ;; 896 897 -disable-* | --disable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error $? "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=\$ac_optarg ;; 938 939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 941 | --exec | --exe | --ex) 942 ac_prev=exec_prefix ;; 943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 945 | --exec=* | --exe=* | --ex=*) 946 exec_prefix=$ac_optarg ;; 947 948 -gas | --gas | --ga | --g) 949 # Obsolete; use --with-gas. 950 with_gas=yes ;; 951 952 -help | --help | --hel | --he | -h) 953 ac_init_help=long ;; 954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 955 ac_init_help=recursive ;; 956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 957 ac_init_help=short ;; 958 959 -host | --host | --hos | --ho) 960 ac_prev=host_alias ;; 961 -host=* | --host=* | --hos=* | --ho=*) 962 host_alias=$ac_optarg ;; 963 964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 965 ac_prev=htmldir ;; 966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 967 | --ht=*) 968 htmldir=$ac_optarg ;; 969 970 -includedir | --includedir | --includedi | --included | --include \ 971 | --includ | --inclu | --incl | --inc) 972 ac_prev=includedir ;; 973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 974 | --includ=* | --inclu=* | --incl=* | --inc=*) 975 includedir=$ac_optarg ;; 976 977 -infodir | --infodir | --infodi | --infod | --info | --inf) 978 ac_prev=infodir ;; 979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 980 infodir=$ac_optarg ;; 981 982 -libdir | --libdir | --libdi | --libd) 983 ac_prev=libdir ;; 984 -libdir=* | --libdir=* | --libdi=* | --libd=*) 985 libdir=$ac_optarg ;; 986 987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 988 | --libexe | --libex | --libe) 989 ac_prev=libexecdir ;; 990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 991 | --libexe=* | --libex=* | --libe=*) 992 libexecdir=$ac_optarg ;; 993 994 -localedir | --localedir | --localedi | --localed | --locale) 995 ac_prev=localedir ;; 996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 997 localedir=$ac_optarg ;; 998 999 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1000 | --localstate | --localstat | --localsta | --localst | --locals) 1001 ac_prev=localstatedir ;; 1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1004 localstatedir=$ac_optarg ;; 1005 1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1007 ac_prev=mandir ;; 1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1009 mandir=$ac_optarg ;; 1010 1011 -nfp | --nfp | --nf) 1012 # Obsolete; use --without-fp. 1013 with_fp=no ;; 1014 1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1016 | --no-cr | --no-c | -n) 1017 no_create=yes ;; 1018 1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1021 no_recursion=yes ;; 1022 1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1025 | --oldin | --oldi | --old | --ol | --o) 1026 ac_prev=oldincludedir ;; 1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1030 oldincludedir=$ac_optarg ;; 1031 1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1033 ac_prev=prefix ;; 1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1035 prefix=$ac_optarg ;; 1036 1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1038 | --program-pre | --program-pr | --program-p) 1039 ac_prev=program_prefix ;; 1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1042 program_prefix=$ac_optarg ;; 1043 1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1045 | --program-suf | --program-su | --program-s) 1046 ac_prev=program_suffix ;; 1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1049 program_suffix=$ac_optarg ;; 1050 1051 -program-transform-name | --program-transform-name \ 1052 | --program-transform-nam | --program-transform-na \ 1053 | --program-transform-n | --program-transform- \ 1054 | --program-transform | --program-transfor \ 1055 | --program-transfo | --program-transf \ 1056 | --program-trans | --program-tran \ 1057 | --progr-tra | --program-tr | --program-t) 1058 ac_prev=program_transform_name ;; 1059 -program-transform-name=* | --program-transform-name=* \ 1060 | --program-transform-nam=* | --program-transform-na=* \ 1061 | --program-transform-n=* | --program-transform-=* \ 1062 | --program-transform=* | --program-transfor=* \ 1063 | --program-transfo=* | --program-transf=* \ 1064 | --program-trans=* | --program-tran=* \ 1065 | --progr-tra=* | --program-tr=* | --program-t=*) 1066 program_transform_name=$ac_optarg ;; 1067 1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1069 ac_prev=pdfdir ;; 1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1071 pdfdir=$ac_optarg ;; 1072 1073 -psdir | --psdir | --psdi | --psd | --ps) 1074 ac_prev=psdir ;; 1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1076 psdir=$ac_optarg ;; 1077 1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1079 | -silent | --silent | --silen | --sile | --sil) 1080 silent=yes ;; 1081 1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1083 ac_prev=sbindir ;; 1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1085 | --sbi=* | --sb=*) 1086 sbindir=$ac_optarg ;; 1087 1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1090 | --sharedst | --shareds | --shared | --share | --shar \ 1091 | --sha | --sh) 1092 ac_prev=sharedstatedir ;; 1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1096 | --sha=* | --sh=*) 1097 sharedstatedir=$ac_optarg ;; 1098 1099 -site | --site | --sit) 1100 ac_prev=site ;; 1101 -site=* | --site=* | --sit=*) 1102 site=$ac_optarg ;; 1103 1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1105 ac_prev=srcdir ;; 1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1107 srcdir=$ac_optarg ;; 1108 1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1110 | --syscon | --sysco | --sysc | --sys | --sy) 1111 ac_prev=sysconfdir ;; 1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1114 sysconfdir=$ac_optarg ;; 1115 1116 -target | --target | --targe | --targ | --tar | --ta | --t) 1117 ac_prev=target_alias ;; 1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1119 target_alias=$ac_optarg ;; 1120 1121 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1122 verbose=yes ;; 1123 1124 -version | --version | --versio | --versi | --vers | -V) 1125 ac_init_version=: ;; 1126 1127 -with-* | --with-*) 1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1129 # Reject names that are not valid shell variable names. 1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1131 as_fn_error $? "invalid package name: $ac_useropt" 1132 ac_useropt_orig=$ac_useropt 1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1134 case $ac_user_opts in 1135 *" 1136"with_$ac_useropt" 1137"*) ;; 1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1139 ac_unrecognized_sep=', ';; 1140 esac 1141 eval with_$ac_useropt=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=no ;; 1158 1159 --x) 1160 # Obsolete; use --with-x. 1161 with_x=yes ;; 1162 1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1164 | --x-incl | --x-inc | --x-in | --x-i) 1165 ac_prev=x_includes ;; 1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1168 x_includes=$ac_optarg ;; 1169 1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1172 ac_prev=x_libraries ;; 1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1175 x_libraries=$ac_optarg ;; 1176 1177 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1178Try \`$0 --help' for more information" 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 case $ac_envvar in #( 1185 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1187 esac 1188 eval $ac_envvar=\$ac_optarg 1189 export $ac_envvar ;; 1190 1191 *) 1192 # FIXME: should be removed in autoconf 3.0. 1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1197 ;; 1198 1199 esac 1200done 1201 1202if test -n "$ac_prev"; then 1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1204 as_fn_error $? "missing argument to $ac_option" 1205fi 1206 1207if test -n "$ac_unrecognized_opts"; then 1208 case $enable_option_checking in 1209 no) ;; 1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1212 esac 1213fi 1214 1215# Check all directory arguments for consistency. 1216for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1217 datadir sysconfdir sharedstatedir localstatedir includedir \ 1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1219 libdir localedir mandir 1220do 1221 eval ac_val=\$$ac_var 1222 # Remove trailing slashes. 1223 case $ac_val in 1224 */ ) 1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1226 eval $ac_var=\$ac_val;; 1227 esac 1228 # Be sure to have absolute directory names. 1229 case $ac_val in 1230 [\\/$]* | ?:[\\/]* ) continue;; 1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1232 esac 1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1234done 1235 1236# There might be people who depend on the old broken behavior: `$host' 1237# used to hold the argument of --host etc. 1238# FIXME: To remove some day. 1239build=$build_alias 1240host=$host_alias 1241target=$target_alias 1242 1243# FIXME: To remove some day. 1244if test "x$host_alias" != x; then 1245 if test "x$build_alias" = x; then 1246 cross_compiling=maybe 1247 elif test "x$build_alias" != "x$host_alias"; then 1248 cross_compiling=yes 1249 fi 1250fi 1251 1252ac_tool_prefix= 1253test -n "$host_alias" && ac_tool_prefix=$host_alias- 1254 1255test "$silent" = yes && exec 6>/dev/null 1256 1257 1258ac_pwd=`pwd` && test -n "$ac_pwd" && 1259ac_ls_di=`ls -di .` && 1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1261 as_fn_error $? "working directory cannot be determined" 1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1263 as_fn_error $? "pwd does not report name of working directory" 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$as_myself" || 1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$as_myself" : 'X\(//\)[^/]' \| \ 1273 X"$as_myself" : 'X\(//\)$' \| \ 1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1275$as_echo X"$as_myself" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1303fi 1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1305ac_abs_confdir=`( 1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1307 pwd)` 1308# When building in place, set srcdir=. 1309if test "$ac_abs_confdir" = "$ac_pwd"; then 1310 srcdir=. 1311fi 1312# Remove unnecessary trailing slashes from srcdir. 1313# Double slashes in file names in object file debugging info 1314# mess up M-x gdb in Emacs. 1315case $srcdir in 1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1317esac 1318for ac_var in $ac_precious_vars; do 1319 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_env_${ac_var}_value=\$${ac_var} 1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1323done 1324 1325# 1326# Report the --help message. 1327# 1328if test "$ac_init_help" = "long"; then 1329 # Omit some internal or obsolete options to make the list less imposing. 1330 # This message is too long to be a string in the A/UX 3.1 sh. 1331 cat <<_ACEOF 1332\`configure' configures gdbsupport 1.0 to adapt to many kinds of systems. 1333 1334Usage: $0 [OPTION]... [VAR=VALUE]... 1335 1336To assign environment variables (e.g., CC, CFLAGS...), specify them as 1337VAR=VALUE. See below for descriptions of some of the useful variables. 1338 1339Defaults for the options are specified in brackets. 1340 1341Configuration: 1342 -h, --help display this help and exit 1343 --help=short display options specific to this package 1344 --help=recursive display the short help of all the included packages 1345 -V, --version display version information and exit 1346 -q, --quiet, --silent do not print \`checking ...' messages 1347 --cache-file=FILE cache test results in FILE [disabled] 1348 -C, --config-cache alias for \`--cache-file=config.cache' 1349 -n, --no-create do not create output files 1350 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1351 1352Installation directories: 1353 --prefix=PREFIX install architecture-independent files in PREFIX 1354 [$ac_default_prefix] 1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1356 [PREFIX] 1357 1358By default, \`make install' will install all the files in 1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1360an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1361for instance \`--prefix=\$HOME'. 1362 1363For better control, use the options below. 1364 1365Fine tuning of the installation directories: 1366 --bindir=DIR user executables [EPREFIX/bin] 1367 --sbindir=DIR system admin executables [EPREFIX/sbin] 1368 --libexecdir=DIR program executables [EPREFIX/libexec] 1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1372 --libdir=DIR object code libraries [EPREFIX/lib] 1373 --includedir=DIR C header files [PREFIX/include] 1374 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1377 --infodir=DIR info documentation [DATAROOTDIR/info] 1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1379 --mandir=DIR man documentation [DATAROOTDIR/man] 1380 --docdir=DIR documentation root [DATAROOTDIR/doc/gdbsupport] 1381 --htmldir=DIR html documentation [DOCDIR] 1382 --dvidir=DIR dvi documentation [DOCDIR] 1383 --pdfdir=DIR pdf documentation [DOCDIR] 1384 --psdir=DIR ps documentation [DOCDIR] 1385_ACEOF 1386 1387 cat <<\_ACEOF 1388 1389Program names: 1390 --program-prefix=PREFIX prepend PREFIX to installed program names 1391 --program-suffix=SUFFIX append SUFFIX to installed program names 1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397 --target=TARGET configure for building compilers for TARGET [HOST] 1398_ACEOF 1399fi 1400 1401if test -n "$ac_init_help"; then 1402 case $ac_init_help in 1403 short | recursive ) echo "Configuration of gdbsupport 1.0:";; 1404 esac 1405 cat <<\_ACEOF 1406 1407Optional Features: 1408 --disable-option-checking ignore unrecognized --enable/--with options 1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1411 --enable-maintainer-mode 1412 enable make rules and dependencies not useful (and 1413 sometimes confusing) to the casual installer 1414 --enable-silent-rules less verbose build output (undo: "make V=1") 1415 --disable-silent-rules verbose build output (undo: "make V=0") 1416 --enable-dependency-tracking 1417 do not reject slow dependency extractors 1418 --disable-dependency-tracking 1419 speeds up one-time build 1420 --enable-plugins Enable support for plugins 1421 --disable-largefile omit support for large files 1422 --disable-rpath do not hardcode runtime library paths 1423 --enable-unit-tests Enable the inclusion of unit tests when compiling 1424 GDB 1425 --enable-werror treat compile warnings as errors 1426 --enable-build-warnings enable build-time compiler warnings if gcc is used 1427 --enable-gdb-build-warnings 1428 enable GDB specific build-time compiler warnings if 1429 gcc is used 1430 1431Optional Packages: 1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1434 --with-intel-pt include Intel Processor Trace support (auto/yes/no) 1435 --with-gnu-ld assume the C compiler uses GNU ld default=no 1436 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib 1437 --without-libipt-prefix don't search for libipt in includedir and libdir 1438 --with-libipt-type=TYPE type of library to search for (auto/static/shared) 1439 1440Some influential environment variables: 1441 CC C compiler command 1442 CFLAGS C compiler flags 1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1444 nonstandard directory <lib dir> 1445 LIBS libraries to pass to the linker, e.g. -l<library> 1446 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 CXX C++ compiler command 1449 CXXFLAGS C++ compiler flags 1450 CPP C preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to the package provider. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for guested configure. 1502 if test -f "$ac_srcdir/configure.gnu"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1505 elif test -f "$ac_srcdir/configure"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure" --help=recursive 1508 else 1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1510 fi || ac_status=$? 1511 cd "$ac_pwd" || { ac_status=$?; break; } 1512 done 1513fi 1514 1515test -n "$ac_init_help" && exit $ac_status 1516if $ac_init_version; then 1517 cat <<\_ACEOF 1518gdbsupport configure 1.0 1519generated by GNU Autoconf 2.69 1520 1521Copyright (C) 2012 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527 1528## ------------------------ ## 1529## Autoconf initialization. ## 1530## ------------------------ ## 1531 1532# ac_fn_c_try_compile LINENO 1533# -------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_c_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_c_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568} # ac_fn_c_try_compile 1569 1570# ac_fn_cxx_try_compile LINENO 1571# ---------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_cxx_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_cxx_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_cxx_try_compile 1607 1608# ac_fn_c_try_cpp LINENO 1609# ---------------------- 1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_cpp () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if { { ac_try="$ac_cpp conftest.$ac_ext" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } > conftest.i && { 1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_cpp 1644 1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1648# the include files in INCLUDES and setting the cache variable VAR 1649# accordingly. 1650ac_fn_c_check_header_mongrel () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if eval \${$3+:} false; then : 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if eval \${$3+:} false; then : 1657 $as_echo_n "(cached) " >&6 1658fi 1659eval ac_res=\$$3 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1661$as_echo "$ac_res" >&6; } 1662else 1663 # Is the header compilable? 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1665$as_echo_n "checking $2 usability... " >&6; } 1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 ac_header_compiler=yes 1673else 1674 ac_header_compiler=no 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1678$as_echo "$ac_header_compiler" >&6; } 1679 1680# Is the header present? 1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1682$as_echo_n "checking $2 presence... " >&6; } 1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685#include <$2> 1686_ACEOF 1687if ac_fn_c_try_cpp "$LINENO"; then : 1688 ac_header_preproc=yes 1689else 1690 ac_header_preproc=no 1691fi 1692rm -f conftest.err conftest.i conftest.$ac_ext 1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1694$as_echo "$ac_header_preproc" >&6; } 1695 1696# So? What about this header? 1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1698 yes:no: ) 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1703 ;; 1704 no:yes:* ) 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1715 ;; 1716esac 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1718$as_echo_n "checking for $2... " >&6; } 1719if eval \${$3+:} false; then : 1720 $as_echo_n "(cached) " >&6 1721else 1722 eval "$3=\$ac_header_compiler" 1723fi 1724eval ac_res=\$$3 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1726$as_echo "$ac_res" >&6; } 1727fi 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_header_mongrel 1731 1732# ac_fn_c_try_run LINENO 1733# ---------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1735# that executables *can* be run. 1736ac_fn_c_try_run () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1750 { { case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_try") 2>&5 1757 ac_status=$? 1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1759 test $ac_status = 0; }; }; then : 1760 ac_retval=0 1761else 1762 $as_echo "$as_me: program exited with status $ac_status" >&5 1763 $as_echo "$as_me: failed program was:" >&5 1764sed 's/^/| /' conftest.$ac_ext >&5 1765 1766 ac_retval=$ac_status 1767fi 1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 as_fn_set_status $ac_retval 1771 1772} # ac_fn_c_try_run 1773 1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1775# ------------------------------------------------------- 1776# Tests whether HEADER exists and can be compiled using the include files in 1777# INCLUDES, setting the cache variable VAR accordingly. 1778ac_fn_c_check_header_compile () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1782$as_echo_n "checking for $2... " >&6; } 1783if eval \${$3+:} false; then : 1784 $as_echo_n "(cached) " >&6 1785else 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788$4 1789#include <$2> 1790_ACEOF 1791if ac_fn_c_try_compile "$LINENO"; then : 1792 eval "$3=yes" 1793else 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 1803} # ac_fn_c_check_header_compile 1804 1805# ac_fn_c_try_link LINENO 1806# ----------------------- 1807# Try to link conftest.$ac_ext, and return whether this succeeded. 1808ac_fn_c_try_link () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 rm -f conftest.$ac_objext conftest$ac_exeext 1812 if { { ac_try="$ac_link" 1813case "(($ac_try" in 1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1815 *) ac_try_echo=$ac_try;; 1816esac 1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1818$as_echo "$ac_try_echo"; } >&5 1819 (eval "$ac_link") 2>conftest.err 1820 ac_status=$? 1821 if test -s conftest.err; then 1822 grep -v '^ *+' conftest.err >conftest.er1 1823 cat conftest.er1 >&5 1824 mv -f conftest.er1 conftest.err 1825 fi 1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1827 test $ac_status = 0; } && { 1828 test -z "$ac_c_werror_flag" || 1829 test ! -s conftest.err 1830 } && test -s conftest$ac_exeext && { 1831 test "$cross_compiling" = yes || 1832 test -x conftest$ac_exeext 1833 }; then : 1834 ac_retval=0 1835else 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=1 1840fi 1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1843 # interfere with the next link command; also delete a directory that is 1844 # left behind by Apple's compiler. We do this before executing the actions. 1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_c_try_link 1850 1851# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1852# ------------------------------------------- 1853# Tests whether TYPE exists after having included INCLUDES, setting cache 1854# variable VAR accordingly. 1855ac_fn_c_check_type () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if eval \${$3+:} false; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 eval "$3=no" 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866$4 1867int 1868main () 1869{ 1870if (sizeof ($2)) 1871 return 0; 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_compile "$LINENO"; then : 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879$4 1880int 1881main () 1882{ 1883if (sizeof (($2))) 1884 return 0; 1885 ; 1886 return 0; 1887} 1888_ACEOF 1889if ac_fn_c_try_compile "$LINENO"; then : 1890 1891else 1892 eval "$3=yes" 1893fi 1894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1895fi 1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1897fi 1898eval ac_res=\$$3 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 1903} # ac_fn_c_check_type 1904 1905# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1906# -------------------------------------------- 1907# Tries to find the compile-time value of EXPR in a program that includes 1908# INCLUDES, setting VAR accordingly. Returns whether the value could be 1909# computed 1910ac_fn_c_compute_int () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 if test "$cross_compiling" = yes; then 1914 # Depending upon the size, compute the lo and hi bounds. 1915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921static int test_array [1 - 2 * !(($2) >= 0)]; 1922test_array [0] = 0; 1923return test_array [0]; 1924 1925 ; 1926 return 0; 1927} 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 ac_lo=0 ac_mid=0 1931 while :; do 1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1933/* end confdefs.h. */ 1934$4 1935int 1936main () 1937{ 1938static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1939test_array [0] = 0; 1940return test_array [0]; 1941 1942 ; 1943 return 0; 1944} 1945_ACEOF 1946if ac_fn_c_try_compile "$LINENO"; then : 1947 ac_hi=$ac_mid; break 1948else 1949 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1950 if test $ac_lo -le $ac_mid; then 1951 ac_lo= ac_hi= 1952 break 1953 fi 1954 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1955fi 1956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1957 done 1958else 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962int 1963main () 1964{ 1965static int test_array [1 - 2 * !(($2) < 0)]; 1966test_array [0] = 0; 1967return test_array [0]; 1968 1969 ; 1970 return 0; 1971} 1972_ACEOF 1973if ac_fn_c_try_compile "$LINENO"; then : 1974 ac_hi=-1 ac_mid=-1 1975 while :; do 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978$4 1979int 1980main () 1981{ 1982static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1983test_array [0] = 0; 1984return test_array [0]; 1985 1986 ; 1987 return 0; 1988} 1989_ACEOF 1990if ac_fn_c_try_compile "$LINENO"; then : 1991 ac_lo=$ac_mid; break 1992else 1993 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1994 if test $ac_mid -le $ac_hi; then 1995 ac_lo= ac_hi= 1996 break 1997 fi 1998 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001 done 2002else 2003 ac_lo= ac_hi= 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2008# Binary search between lo and hi bounds. 2009while test "x$ac_lo" != "x$ac_hi"; do 2010 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014int 2015main () 2016{ 2017static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2018test_array [0] = 0; 2019return test_array [0]; 2020 2021 ; 2022 return 0; 2023} 2024_ACEOF 2025if ac_fn_c_try_compile "$LINENO"; then : 2026 ac_hi=$ac_mid 2027else 2028 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2029fi 2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2031done 2032case $ac_lo in #(( 2033?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2034'') ac_retval=1 ;; 2035esac 2036 else 2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2038/* end confdefs.h. */ 2039$4 2040static long int longval () { return $2; } 2041static unsigned long int ulongval () { return $2; } 2042#include <stdio.h> 2043#include <stdlib.h> 2044int 2045main () 2046{ 2047 2048 FILE *f = fopen ("conftest.val", "w"); 2049 if (! f) 2050 return 1; 2051 if (($2) < 0) 2052 { 2053 long int i = longval (); 2054 if (i != ($2)) 2055 return 1; 2056 fprintf (f, "%ld", i); 2057 } 2058 else 2059 { 2060 unsigned long int i = ulongval (); 2061 if (i != ($2)) 2062 return 1; 2063 fprintf (f, "%lu", i); 2064 } 2065 /* Do not output a trailing newline, as this causes \r\n confusion 2066 on some platforms. */ 2067 return ferror (f) || fclose (f) != 0; 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_run "$LINENO"; then : 2074 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2075else 2076 ac_retval=1 2077fi 2078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2079 conftest.$ac_objext conftest.beam conftest.$ac_ext 2080rm -f conftest.val 2081 2082 fi 2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2084 as_fn_set_status $ac_retval 2085 2086} # ac_fn_c_compute_int 2087 2088# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2089# --------------------------------------------- 2090# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2091# accordingly. 2092ac_fn_c_check_decl () 2093{ 2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2095 as_decl_name=`echo $2|sed 's/ *(.*//'` 2096 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2098$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2099if eval \${$3+:} false; then : 2100 $as_echo_n "(cached) " >&6 2101else 2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103/* end confdefs.h. */ 2104$4 2105int 2106main () 2107{ 2108#ifndef $as_decl_name 2109#ifdef __cplusplus 2110 (void) $as_decl_use; 2111#else 2112 (void) $as_decl_name; 2113#endif 2114#endif 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 eval "$3=yes" 2122else 2123 eval "$3=no" 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126fi 2127eval ac_res=\$$3 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2129$as_echo "$ac_res" >&6; } 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2131 2132} # ac_fn_c_check_decl 2133 2134# ac_fn_c_check_func LINENO FUNC VAR 2135# ---------------------------------- 2136# Tests whether FUNC exists, setting the cache variable VAR accordingly 2137ac_fn_c_check_func () 2138{ 2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2141$as_echo_n "checking for $2... " >&6; } 2142if eval \${$3+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2149#define $2 innocuous_$2 2150 2151/* System header to define __stub macros and hopefully few prototypes, 2152 which can conflict with char $2 (); below. 2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2154 <limits.h> exists even on freestanding compilers. */ 2155 2156#ifdef __STDC__ 2157# include <limits.h> 2158#else 2159# include <assert.h> 2160#endif 2161 2162#undef $2 2163 2164/* Override any GCC internal prototype to avoid an error. 2165 Use char because int might match the return type of a GCC 2166 builtin and then its argument prototype would still apply. */ 2167#ifdef __cplusplus 2168extern "C" 2169#endif 2170char $2 (); 2171/* The GNU C library defines this for functions which it implements 2172 to always fail with ENOSYS. Some functions are actually named 2173 something starting with __ and the normal name is an alias. */ 2174#if defined __stub_$2 || defined __stub___$2 2175choke me 2176#endif 2177 2178int 2179main () 2180{ 2181return $2 (); 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186if ac_fn_c_try_link "$LINENO"; then : 2187 eval "$3=yes" 2188else 2189 eval "$3=no" 2190fi 2191rm -f core conftest.err conftest.$ac_objext \ 2192 conftest$ac_exeext conftest.$ac_ext 2193fi 2194eval ac_res=\$$3 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2196$as_echo "$ac_res" >&6; } 2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2198 2199} # ac_fn_c_check_func 2200 2201# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2202# ---------------------------------------------------- 2203# Tries to find if the field MEMBER exists in type AGGR, after including 2204# INCLUDES, setting cache variable VAR accordingly. 2205ac_fn_c_check_member () 2206{ 2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2209$as_echo_n "checking for $2.$3... " >&6; } 2210if eval \${$4+:} false; then : 2211 $as_echo_n "(cached) " >&6 2212else 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$5 2216int 2217main () 2218{ 2219static $2 ac_aggr; 2220if (ac_aggr.$3) 2221return 0; 2222 ; 2223 return 0; 2224} 2225_ACEOF 2226if ac_fn_c_try_compile "$LINENO"; then : 2227 eval "$4=yes" 2228else 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230/* end confdefs.h. */ 2231$5 2232int 2233main () 2234{ 2235static $2 ac_aggr; 2236if (sizeof ac_aggr.$3) 2237return 0; 2238 ; 2239 return 0; 2240} 2241_ACEOF 2242if ac_fn_c_try_compile "$LINENO"; then : 2243 eval "$4=yes" 2244else 2245 eval "$4=no" 2246fi 2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2248fi 2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2250fi 2251eval ac_res=\$$4 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2253$as_echo "$ac_res" >&6; } 2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2255 2256} # ac_fn_c_check_member 2257 2258# ac_fn_cxx_try_link LINENO 2259# ------------------------- 2260# Try to link conftest.$ac_ext, and return whether this succeeded. 2261ac_fn_cxx_try_link () 2262{ 2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2264 rm -f conftest.$ac_objext conftest$ac_exeext 2265 if { { ac_try="$ac_link" 2266case "(($ac_try" in 2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2268 *) ac_try_echo=$ac_try;; 2269esac 2270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2271$as_echo "$ac_try_echo"; } >&5 2272 (eval "$ac_link") 2>conftest.err 2273 ac_status=$? 2274 if test -s conftest.err; then 2275 grep -v '^ *+' conftest.err >conftest.er1 2276 cat conftest.er1 >&5 2277 mv -f conftest.er1 conftest.err 2278 fi 2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2280 test $ac_status = 0; } && { 2281 test -z "$ac_cxx_werror_flag" || 2282 test ! -s conftest.err 2283 } && test -s conftest$ac_exeext && { 2284 test "$cross_compiling" = yes || 2285 test -x conftest$ac_exeext 2286 }; then : 2287 ac_retval=0 2288else 2289 $as_echo "$as_me: failed program was:" >&5 2290sed 's/^/| /' conftest.$ac_ext >&5 2291 2292 ac_retval=1 2293fi 2294 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2295 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2296 # interfere with the next link command; also delete a directory that is 2297 # left behind by Apple's compiler. We do this before executing the actions. 2298 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2299 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2300 as_fn_set_status $ac_retval 2301 2302} # ac_fn_cxx_try_link 2303 2304# ac_fn_cxx_check_func LINENO FUNC VAR 2305# ------------------------------------ 2306# Tests whether FUNC exists, setting the cache variable VAR accordingly 2307ac_fn_cxx_check_func () 2308{ 2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2311$as_echo_n "checking for $2... " >&6; } 2312if eval \${$3+:} false; then : 2313 $as_echo_n "(cached) " >&6 2314else 2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2316/* end confdefs.h. */ 2317/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2318 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2319#define $2 innocuous_$2 2320 2321/* System header to define __stub macros and hopefully few prototypes, 2322 which can conflict with char $2 (); below. 2323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2324 <limits.h> exists even on freestanding compilers. */ 2325 2326#ifdef __STDC__ 2327# include <limits.h> 2328#else 2329# include <assert.h> 2330#endif 2331 2332#undef $2 2333 2334/* Override any GCC internal prototype to avoid an error. 2335 Use char because int might match the return type of a GCC 2336 builtin and then its argument prototype would still apply. */ 2337#ifdef __cplusplus 2338extern "C" 2339#endif 2340char $2 (); 2341/* The GNU C library defines this for functions which it implements 2342 to always fail with ENOSYS. Some functions are actually named 2343 something starting with __ and the normal name is an alias. */ 2344#if defined __stub_$2 || defined __stub___$2 2345choke me 2346#endif 2347 2348int 2349main () 2350{ 2351return $2 (); 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_cxx_try_link "$LINENO"; then : 2357 eval "$3=yes" 2358else 2359 eval "$3=no" 2360fi 2361rm -f core conftest.err conftest.$ac_objext \ 2362 conftest$ac_exeext conftest.$ac_ext 2363fi 2364eval ac_res=\$$3 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2366$as_echo "$ac_res" >&6; } 2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2368 2369} # ac_fn_cxx_check_func 2370cat >config.log <<_ACEOF 2371This file contains any messages produced by compilers while 2372running configure, to aid debugging if configure makes a mistake. 2373 2374It was created by gdbsupport $as_me 1.0, which was 2375generated by GNU Autoconf 2.69. Invocation command line was 2376 2377 $ $0 $@ 2378 2379_ACEOF 2380exec 5>>config.log 2381{ 2382cat <<_ASUNAME 2383## --------- ## 2384## Platform. ## 2385## --------- ## 2386 2387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2388uname -m = `(uname -m) 2>/dev/null || echo unknown` 2389uname -r = `(uname -r) 2>/dev/null || echo unknown` 2390uname -s = `(uname -s) 2>/dev/null || echo unknown` 2391uname -v = `(uname -v) 2>/dev/null || echo unknown` 2392 2393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2394/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2395 2396/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2397/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2399/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2400/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2401/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2402/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2403 2404_ASUNAME 2405 2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2407for as_dir in $PATH 2408do 2409 IFS=$as_save_IFS 2410 test -z "$as_dir" && as_dir=. 2411 $as_echo "PATH: $as_dir" 2412 done 2413IFS=$as_save_IFS 2414 2415} >&5 2416 2417cat >&5 <<_ACEOF 2418 2419 2420## ----------- ## 2421## Core tests. ## 2422## ----------- ## 2423 2424_ACEOF 2425 2426 2427# Keep a trace of the command line. 2428# Strip out --no-create and --no-recursion so they do not pile up. 2429# Strip out --silent because we don't want to record it for future runs. 2430# Also quote any args containing shell meta-characters. 2431# Make two passes to allow for proper duplicate-argument suppression. 2432ac_configure_args= 2433ac_configure_args0= 2434ac_configure_args1= 2435ac_must_keep_next=false 2436for ac_pass in 1 2 2437do 2438 for ac_arg 2439 do 2440 case $ac_arg in 2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2443 | -silent | --silent | --silen | --sile | --sil) 2444 continue ;; 2445 *\'*) 2446 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2447 esac 2448 case $ac_pass in 2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2450 2) 2451 as_fn_append ac_configure_args1 " '$ac_arg'" 2452 if test $ac_must_keep_next = true; then 2453 ac_must_keep_next=false # Got value, back to normal. 2454 else 2455 case $ac_arg in 2456 *=* | --config-cache | -C | -disable-* | --disable-* \ 2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2459 | -with-* | --with-* | -without-* | --without-* | --x) 2460 case "$ac_configure_args0 " in 2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2462 esac 2463 ;; 2464 -* ) ac_must_keep_next=true ;; 2465 esac 2466 fi 2467 as_fn_append ac_configure_args " '$ac_arg'" 2468 ;; 2469 esac 2470 done 2471done 2472{ ac_configure_args0=; unset ac_configure_args0;} 2473{ ac_configure_args1=; unset ac_configure_args1;} 2474 2475# When interrupted or exit'd, cleanup temporary files, and complete 2476# config.log. We remove comments because anyway the quotes in there 2477# would cause problems or look ugly. 2478# WARNING: Use '\'' to represent an apostrophe within the trap. 2479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2480trap 'exit_status=$? 2481 # Save into config.log some information that might help in debugging. 2482 { 2483 echo 2484 2485 $as_echo "## ---------------- ## 2486## Cache variables. ## 2487## ---------------- ##" 2488 echo 2489 # The following way of writing the cache mishandles newlines in values, 2490( 2491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2492 eval ac_val=\$$ac_var 2493 case $ac_val in #( 2494 *${as_nl}*) 2495 case $ac_var in #( 2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2498 esac 2499 case $ac_var in #( 2500 _ | IFS | as_nl) ;; #( 2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2502 *) { eval $ac_var=; unset $ac_var;} ;; 2503 esac ;; 2504 esac 2505 done 2506 (set) 2>&1 | 2507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2508 *${as_nl}ac_space=\ *) 2509 sed -n \ 2510 "s/'\''/'\''\\\\'\'''\''/g; 2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2512 ;; #( 2513 *) 2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2515 ;; 2516 esac | 2517 sort 2518) 2519 echo 2520 2521 $as_echo "## ----------------- ## 2522## Output variables. ## 2523## ----------------- ##" 2524 echo 2525 for ac_var in $ac_subst_vars 2526 do 2527 eval ac_val=\$$ac_var 2528 case $ac_val in 2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2530 esac 2531 $as_echo "$ac_var='\''$ac_val'\''" 2532 done | sort 2533 echo 2534 2535 if test -n "$ac_subst_files"; then 2536 $as_echo "## ------------------- ## 2537## File substitutions. ## 2538## ------------------- ##" 2539 echo 2540 for ac_var in $ac_subst_files 2541 do 2542 eval ac_val=\$$ac_var 2543 case $ac_val in 2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2545 esac 2546 $as_echo "$ac_var='\''$ac_val'\''" 2547 done | sort 2548 echo 2549 fi 2550 2551 if test -s confdefs.h; then 2552 $as_echo "## ----------- ## 2553## confdefs.h. ## 2554## ----------- ##" 2555 echo 2556 cat confdefs.h 2557 echo 2558 fi 2559 test "$ac_signal" != 0 && 2560 $as_echo "$as_me: caught signal $ac_signal" 2561 $as_echo "$as_me: exit $exit_status" 2562 } >&5 2563 rm -f core *.core core.conftest.* && 2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2565 exit $exit_status 2566' 0 2567for ac_signal in 1 2 13 15; do 2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2569done 2570ac_signal=0 2571 2572# confdefs.h avoids OS command line length limits that DEFS can exceed. 2573rm -f -r conftest* confdefs.h 2574 2575$as_echo "/* confdefs.h */" > confdefs.h 2576 2577# Predefined preprocessor variables. 2578 2579cat >>confdefs.h <<_ACEOF 2580#define PACKAGE_NAME "$PACKAGE_NAME" 2581_ACEOF 2582 2583cat >>confdefs.h <<_ACEOF 2584#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2585_ACEOF 2586 2587cat >>confdefs.h <<_ACEOF 2588#define PACKAGE_VERSION "$PACKAGE_VERSION" 2589_ACEOF 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_STRING "$PACKAGE_STRING" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_URL "$PACKAGE_URL" 2601_ACEOF 2602 2603 2604# Let the site file select an alternate cache file if it wants to. 2605# Prefer an explicitly selected file to automatically selected ones. 2606ac_site_file1=NONE 2607ac_site_file2=NONE 2608if test -n "$CONFIG_SITE"; then 2609 # We do not want a PATH search for config.site. 2610 case $CONFIG_SITE in #(( 2611 -*) ac_site_file1=./$CONFIG_SITE;; 2612 */*) ac_site_file1=$CONFIG_SITE;; 2613 *) ac_site_file1=./$CONFIG_SITE;; 2614 esac 2615elif test "x$prefix" != xNONE; then 2616 ac_site_file1=$prefix/share/config.site 2617 ac_site_file2=$prefix/etc/config.site 2618else 2619 ac_site_file1=$ac_default_prefix/share/config.site 2620 ac_site_file2=$ac_default_prefix/etc/config.site 2621fi 2622for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2623do 2624 test "x$ac_site_file" = xNONE && continue 2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2627$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2628 sed 's/^/| /' "$ac_site_file" >&5 2629 . "$ac_site_file" \ 2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2632as_fn_error $? "failed to load site script $ac_site_file 2633See \`config.log' for more details" "$LINENO" 5; } 2634 fi 2635done 2636 2637if test -r "$cache_file"; then 2638 # Some versions of bash will fail to source /dev/null (special files 2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2642$as_echo "$as_me: loading cache $cache_file" >&6;} 2643 case $cache_file in 2644 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2645 *) . "./$cache_file";; 2646 esac 2647 fi 2648else 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2650$as_echo "$as_me: creating cache $cache_file" >&6;} 2651 >$cache_file 2652fi 2653 2654as_fn_append ac_header_list " stdlib.h" 2655as_fn_append ac_header_list " unistd.h" 2656as_fn_append ac_header_list " sys/param.h" 2657# Check that the precious variables saved in the cache have kept the same 2658# value. 2659ac_cache_corrupted=false 2660for ac_var in $ac_precious_vars; do 2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2662 eval ac_new_set=\$ac_env_${ac_var}_set 2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2664 eval ac_new_val=\$ac_env_${ac_var}_value 2665 case $ac_old_set,$ac_new_set in 2666 set,) 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2668$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2669 ac_cache_corrupted=: ;; 2670 ,set) 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2672$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2673 ac_cache_corrupted=: ;; 2674 ,);; 2675 *) 2676 if test "x$ac_old_val" != "x$ac_new_val"; then 2677 # differences in whitespace do not lead to failure. 2678 ac_old_val_w=`echo x $ac_old_val` 2679 ac_new_val_w=`echo x $ac_new_val` 2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2682$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2683 ac_cache_corrupted=: 2684 else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2686$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2687 eval $ac_var=\$ac_old_val 2688 fi 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2690$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2692$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2693 fi;; 2694 esac 2695 # Pass precious variables to config.status. 2696 if test "$ac_new_set" = set; then 2697 case $ac_new_val in 2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2699 *) ac_arg=$ac_var=$ac_new_val ;; 2700 esac 2701 case " $ac_configure_args " in 2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2704 esac 2705 fi 2706done 2707if $ac_cache_corrupted; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2711$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2713fi 2714## -------------------- ## 2715## Main body of script. ## 2716## -------------------- ## 2717 2718ac_ext=c 2719ac_cpp='$CPP $CPPFLAGS' 2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2722ac_compiler_gnu=$ac_cv_c_compiler_gnu 2723 2724 2725 2726 2727 2728 2729ac_config_headers="$ac_config_headers config.h:config.in" 2730 2731ac_aux_dir= 2732for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2733 if test -f "$ac_dir/install-sh"; then 2734 ac_aux_dir=$ac_dir 2735 ac_install_sh="$ac_aux_dir/install-sh -c" 2736 break 2737 elif test -f "$ac_dir/install.sh"; then 2738 ac_aux_dir=$ac_dir 2739 ac_install_sh="$ac_aux_dir/install.sh -c" 2740 break 2741 elif test -f "$ac_dir/shtool"; then 2742 ac_aux_dir=$ac_dir 2743 ac_install_sh="$ac_aux_dir/shtool install -c" 2744 break 2745 fi 2746done 2747if test -z "$ac_aux_dir"; then 2748 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2749fi 2750 2751# These three variables are undocumented and unsupported, 2752# and are intended to be withdrawn in a future Autoconf release. 2753# They can cause serious problems if a builder's source tree is in a directory 2754# whose full name contains unusual characters. 2755ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2756ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2757ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2758 2759 2760# Make sure we can run config.sub. 2761$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2762 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2765$as_echo_n "checking build system type... " >&6; } 2766if ${ac_cv_build+:} false; then : 2767 $as_echo_n "(cached) " >&6 2768else 2769 ac_build_alias=$build_alias 2770test "x$ac_build_alias" = x && 2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2772test "x$ac_build_alias" = x && 2773 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2774ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2776 2777fi 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2779$as_echo "$ac_cv_build" >&6; } 2780case $ac_cv_build in 2781*-*-*) ;; 2782*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2783esac 2784build=$ac_cv_build 2785ac_save_IFS=$IFS; IFS='-' 2786set x $ac_cv_build 2787shift 2788build_cpu=$1 2789build_vendor=$2 2790shift; shift 2791# Remember, the first character of IFS is used to create $*, 2792# except with old shells: 2793build_os=$* 2794IFS=$ac_save_IFS 2795case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2796 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2799$as_echo_n "checking host system type... " >&6; } 2800if ${ac_cv_host+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if test "x$host_alias" = x; then 2804 ac_cv_host=$ac_cv_build 2805else 2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2808fi 2809 2810fi 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2812$as_echo "$ac_cv_host" >&6; } 2813case $ac_cv_host in 2814*-*-*) ;; 2815*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2816esac 2817host=$ac_cv_host 2818ac_save_IFS=$IFS; IFS='-' 2819set x $ac_cv_host 2820shift 2821host_cpu=$1 2822host_vendor=$2 2823shift; shift 2824# Remember, the first character of IFS is used to create $*, 2825# except with old shells: 2826host_os=$* 2827IFS=$ac_save_IFS 2828case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2829 2830 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2832$as_echo_n "checking target system type... " >&6; } 2833if ${ac_cv_target+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test "x$target_alias" = x; then 2837 ac_cv_target=$ac_cv_host 2838else 2839 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2841fi 2842 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2845$as_echo "$ac_cv_target" >&6; } 2846case $ac_cv_target in 2847*-*-*) ;; 2848*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2849esac 2850target=$ac_cv_target 2851ac_save_IFS=$IFS; IFS='-' 2852set x $ac_cv_target 2853shift 2854target_cpu=$1 2855target_vendor=$2 2856shift; shift 2857# Remember, the first character of IFS is used to create $*, 2858# except with old shells: 2859target_os=$* 2860IFS=$ac_save_IFS 2861case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2862 2863 2864# The aliases save the names the user supplied, while $host etc. 2865# will get canonicalized. 2866test -n "$target_alias" && 2867 test "$program_prefix$program_suffix$program_transform_name" = \ 2868 NONENONEs,x,x, && 2869 program_prefix=${target_alias}- 2870 2871 2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2873$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2874 # Check whether --enable-maintainer-mode was given. 2875if test "${enable_maintainer_mode+set}" = set; then : 2876 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2877else 2878 USE_MAINTAINER_MODE=no 2879fi 2880 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2882$as_echo "$USE_MAINTAINER_MODE" >&6; } 2883 if test $USE_MAINTAINER_MODE = yes; then 2884 MAINTAINER_MODE_TRUE= 2885 MAINTAINER_MODE_FALSE='#' 2886else 2887 MAINTAINER_MODE_TRUE='#' 2888 MAINTAINER_MODE_FALSE= 2889fi 2890 2891 MAINT=$MAINTAINER_MODE_TRUE 2892 2893 2894ac_aux_dir= 2895for ac_dir in .. "$srcdir"/..; do 2896 if test -f "$ac_dir/install-sh"; then 2897 ac_aux_dir=$ac_dir 2898 ac_install_sh="$ac_aux_dir/install-sh -c" 2899 break 2900 elif test -f "$ac_dir/install.sh"; then 2901 ac_aux_dir=$ac_dir 2902 ac_install_sh="$ac_aux_dir/install.sh -c" 2903 break 2904 elif test -f "$ac_dir/shtool"; then 2905 ac_aux_dir=$ac_dir 2906 ac_install_sh="$ac_aux_dir/shtool install -c" 2907 break 2908 fi 2909done 2910if test -z "$ac_aux_dir"; then 2911 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5 2912fi 2913 2914# These three variables are undocumented and unsupported, 2915# and are intended to be withdrawn in a future Autoconf release. 2916# They can cause serious problems if a builder's source tree is in a directory 2917# whose full name contains unusual characters. 2918ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2919ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2920ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2921 2922 2923am__api_version='1.15' 2924 2925# Find a good install program. We prefer a C program (faster), 2926# so one script is as good as another. But avoid the broken or 2927# incompatible versions: 2928# SysV /etc/install, /usr/sbin/install 2929# SunOS /usr/etc/install 2930# IRIX /sbin/install 2931# AIX /bin/install 2932# AmigaOS /C/install, which installs bootblocks on floppy discs 2933# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2934# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2935# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2936# OS/2's system install, which has a completely different semantic 2937# ./install, which can be erroneously created by make from ./install.sh. 2938# Reject install programs that cannot install multiple files. 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2940$as_echo_n "checking for a BSD-compatible install... " >&6; } 2941if test -z "$INSTALL"; then 2942if ${ac_cv_path_install+:} false; then : 2943 $as_echo_n "(cached) " >&6 2944else 2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 # Account for people who put trailing slashes in PATH elements. 2951case $as_dir/ in #(( 2952 ./ | .// | /[cC]/* | \ 2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2955 /usr/ucb/* ) ;; 2956 *) 2957 # OSF1 and SCO ODT 3.0 have their own names for install. 2958 # Don't use installbsd from OSF since it installs stuff as root 2959 # by default. 2960 for ac_prog in ginstall scoinst install; do 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2963 if test $ac_prog = install && 2964 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2965 # AIX install. It has an incompatible calling convention. 2966 : 2967 elif test $ac_prog = install && 2968 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2969 # program-specific install script used by HP pwplus--don't use. 2970 : 2971 else 2972 rm -rf conftest.one conftest.two conftest.dir 2973 echo one > conftest.one 2974 echo two > conftest.two 2975 mkdir conftest.dir 2976 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2977 test -s conftest.one && test -s conftest.two && 2978 test -s conftest.dir/conftest.one && 2979 test -s conftest.dir/conftest.two 2980 then 2981 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2982 break 3 2983 fi 2984 fi 2985 fi 2986 done 2987 done 2988 ;; 2989esac 2990 2991 done 2992IFS=$as_save_IFS 2993 2994rm -rf conftest.one conftest.two conftest.dir 2995 2996fi 2997 if test "${ac_cv_path_install+set}" = set; then 2998 INSTALL=$ac_cv_path_install 2999 else 3000 # As a last resort, use the slow shell script. Don't cache a 3001 # value for INSTALL within a source directory, because that will 3002 # break other packages using the cache if that directory is 3003 # removed, or if the value is a relative name. 3004 INSTALL=$ac_install_sh 3005 fi 3006fi 3007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3008$as_echo "$INSTALL" >&6; } 3009 3010# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3011# It thinks the first close brace ends the variable substitution. 3012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3013 3014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3015 3016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3017 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3019$as_echo_n "checking whether build environment is sane... " >&6; } 3020# Reject unsafe characters in $srcdir or the absolute working directory 3021# name. Accept space and tab only in the latter. 3022am_lf=' 3023' 3024case `pwd` in 3025 *[\\\"\#\$\&\'\`$am_lf]*) 3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3027esac 3028case $srcdir in 3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3031esac 3032 3033# Do 'set' in a subshell so we don't clobber the current shell's 3034# arguments. Must try -L first in case configure is actually a 3035# symlink; some systems play weird games with the mod time of symlinks 3036# (eg FreeBSD returns the mod time of the symlink's containing 3037# directory). 3038if ( 3039 am_has_slept=no 3040 for am_try in 1 2; do 3041 echo "timestamp, slept: $am_has_slept" > conftest.file 3042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3043 if test "$*" = "X"; then 3044 # -L didn't work. 3045 set X `ls -t "$srcdir/configure" conftest.file` 3046 fi 3047 if test "$*" != "X $srcdir/configure conftest.file" \ 3048 && test "$*" != "X conftest.file $srcdir/configure"; then 3049 3050 # If neither matched, then we have a broken ls. This can happen 3051 # if, for instance, CONFIG_SHELL is bash and it inherits a 3052 # broken ls alias from the environment. This has actually 3053 # happened. Such a system could not be considered "sane". 3054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3055 alias in your environment" "$LINENO" 5 3056 fi 3057 if test "$2" = conftest.file || test $am_try -eq 2; then 3058 break 3059 fi 3060 # Just in case. 3061 sleep 1 3062 am_has_slept=yes 3063 done 3064 test "$2" = conftest.file 3065 ) 3066then 3067 # Ok. 3068 : 3069else 3070 as_fn_error $? "newly created file is older than distributed files! 3071Check your system clock" "$LINENO" 5 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3074$as_echo "yes" >&6; } 3075# If we didn't sleep, we still need to ensure time stamps of config.status and 3076# generated files are strictly newer. 3077am_sleep_pid= 3078if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3079 ( sleep 1 ) & 3080 am_sleep_pid=$! 3081fi 3082 3083rm -f conftest.file 3084 3085test "$program_prefix" != NONE && 3086 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3087# Use a double $ so make ignores it. 3088test "$program_suffix" != NONE && 3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3090# Double any \ or $. 3091# By default was `s,x,x', remove it if useless. 3092ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3093program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3094 3095# Expand $ac_aux_dir to an absolute path. 3096am_aux_dir=`cd "$ac_aux_dir" && pwd` 3097 3098if test x"${MISSING+set}" != xset; then 3099 case $am_aux_dir in 3100 *\ * | *\ *) 3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3102 *) 3103 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3104 esac 3105fi 3106# Use eval to expand $SHELL 3107if eval "$MISSING --is-lightweight"; then 3108 am_missing_run="$MISSING " 3109else 3110 am_missing_run= 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3112$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3113fi 3114 3115if test x"${install_sh+set}" != xset; then 3116 case $am_aux_dir in 3117 *\ * | *\ *) 3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3119 *) 3120 install_sh="\${SHELL} $am_aux_dir/install-sh" 3121 esac 3122fi 3123 3124# Installed binaries are usually stripped using 'strip' when the user 3125# run "make install-strip". However 'strip' might not be the right 3126# tool to use in cross-compilation environments, therefore Automake 3127# will honor the 'STRIP' environment variable to overrule this program. 3128if test "$cross_compiling" != no; then 3129 if test -n "$ac_tool_prefix"; then 3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3131set dummy ${ac_tool_prefix}strip; ac_word=$2 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3133$as_echo_n "checking for $ac_word... " >&6; } 3134if ${ac_cv_prog_STRIP+:} false; then : 3135 $as_echo_n "(cached) " >&6 3136else 3137 if test -n "$STRIP"; then 3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3139else 3140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3141for as_dir in $PATH 3142do 3143 IFS=$as_save_IFS 3144 test -z "$as_dir" && as_dir=. 3145 for ac_exec_ext in '' $ac_executable_extensions; do 3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3149 break 2 3150 fi 3151done 3152 done 3153IFS=$as_save_IFS 3154 3155fi 3156fi 3157STRIP=$ac_cv_prog_STRIP 3158if test -n "$STRIP"; then 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3160$as_echo "$STRIP" >&6; } 3161else 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3163$as_echo "no" >&6; } 3164fi 3165 3166 3167fi 3168if test -z "$ac_cv_prog_STRIP"; then 3169 ac_ct_STRIP=$STRIP 3170 # Extract the first word of "strip", so it can be a program name with args. 3171set dummy strip; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$ac_ct_STRIP"; then 3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3187 ac_cv_prog_ac_ct_STRIP="strip" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3198if test -n "$ac_ct_STRIP"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3200$as_echo "$ac_ct_STRIP" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 if test "x$ac_ct_STRIP" = x; then 3207 STRIP=":" 3208 else 3209 case $cross_compiling:$ac_tool_warned in 3210yes:) 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3213ac_tool_warned=yes ;; 3214esac 3215 STRIP=$ac_ct_STRIP 3216 fi 3217else 3218 STRIP="$ac_cv_prog_STRIP" 3219fi 3220 3221fi 3222INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3223 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3225$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3226if test -z "$MKDIR_P"; then 3227 if ${ac_cv_path_mkdir+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3231for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3232do 3233 IFS=$as_save_IFS 3234 test -z "$as_dir" && as_dir=. 3235 for ac_prog in mkdir gmkdir; do 3236 for ac_exec_ext in '' $ac_executable_extensions; do 3237 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3239 'mkdir (GNU coreutils) '* | \ 3240 'mkdir (coreutils) '* | \ 3241 'mkdir (fileutils) '4.1*) 3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3243 break 3;; 3244 esac 3245 done 3246 done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251 3252 test -d ./--version && rmdir ./--version 3253 if test "${ac_cv_path_mkdir+set}" = set; then 3254 MKDIR_P="$ac_cv_path_mkdir -p" 3255 else 3256 # As a last resort, use the slow shell script. Don't cache a 3257 # value for MKDIR_P within a source directory, because that will 3258 # break other packages using the cache if that directory is 3259 # removed, or if the value is a relative name. 3260 MKDIR_P="$ac_install_sh -d" 3261 fi 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3264$as_echo "$MKDIR_P" >&6; } 3265 3266for ac_prog in gawk mawk nawk awk 3267do 3268 # Extract the first word of "$ac_prog", so it can be a program name with args. 3269set dummy $ac_prog; ac_word=$2 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271$as_echo_n "checking for $ac_word... " >&6; } 3272if ${ac_cv_prog_AWK+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -n "$AWK"; then 3276 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3277else 3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3285 ac_cv_prog_AWK="$ac_prog" 3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3287 break 2 3288 fi 3289done 3290 done 3291IFS=$as_save_IFS 3292 3293fi 3294fi 3295AWK=$ac_cv_prog_AWK 3296if test -n "$AWK"; then 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3298$as_echo "$AWK" >&6; } 3299else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302fi 3303 3304 3305 test -n "$AWK" && break 3306done 3307 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3309$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3310set x ${MAKE-make} 3311ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3312if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 cat >conftest.make <<\_ACEOF 3316SHELL = /bin/sh 3317all: 3318 @echo '@@@%%%=$(MAKE)=@@@%%%' 3319_ACEOF 3320# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3321case `${MAKE-make} -f conftest.make 2>/dev/null` in 3322 *@@@%%%=?*=@@@%%%*) 3323 eval ac_cv_prog_make_${ac_make}_set=yes;; 3324 *) 3325 eval ac_cv_prog_make_${ac_make}_set=no;; 3326esac 3327rm -f conftest.make 3328fi 3329if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3331$as_echo "yes" >&6; } 3332 SET_MAKE= 3333else 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3335$as_echo "no" >&6; } 3336 SET_MAKE="MAKE=${MAKE-make}" 3337fi 3338 3339rm -rf .tst 2>/dev/null 3340mkdir .tst 2>/dev/null 3341if test -d .tst; then 3342 am__leading_dot=. 3343else 3344 am__leading_dot=_ 3345fi 3346rmdir .tst 2>/dev/null 3347 3348# Check whether --enable-silent-rules was given. 3349if test "${enable_silent_rules+set}" = set; then : 3350 enableval=$enable_silent_rules; 3351fi 3352 3353case $enable_silent_rules in # ((( 3354 yes) AM_DEFAULT_VERBOSITY=0;; 3355 no) AM_DEFAULT_VERBOSITY=1;; 3356 *) AM_DEFAULT_VERBOSITY=1;; 3357esac 3358am_make=${MAKE-make} 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3360$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3361if ${am_cv_make_support_nested_variables+:} false; then : 3362 $as_echo_n "(cached) " >&6 3363else 3364 if $as_echo 'TRUE=$(BAR$(V)) 3365BAR0=false 3366BAR1=true 3367V=1 3368am__doit: 3369 @$(TRUE) 3370.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3371 am_cv_make_support_nested_variables=yes 3372else 3373 am_cv_make_support_nested_variables=no 3374fi 3375fi 3376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3377$as_echo "$am_cv_make_support_nested_variables" >&6; } 3378if test $am_cv_make_support_nested_variables = yes; then 3379 AM_V='$(V)' 3380 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3381else 3382 AM_V=$AM_DEFAULT_VERBOSITY 3383 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3384fi 3385AM_BACKSLASH='\' 3386 3387if test "`cd $srcdir && pwd`" != "`pwd`"; then 3388 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3389 # is not polluted with repeated "-I." 3390 am__isrc=' -I$(srcdir)' 3391 # test to see if srcdir already configured 3392 if test -f $srcdir/config.status; then 3393 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3394 fi 3395fi 3396 3397# test whether we have cygpath 3398if test -z "$CYGPATH_W"; then 3399 if (cygpath --version) >/dev/null 2>/dev/null; then 3400 CYGPATH_W='cygpath -w' 3401 else 3402 CYGPATH_W=echo 3403 fi 3404fi 3405 3406 3407# Define the identity of the package. 3408 PACKAGE='gdbsupport' 3409 VERSION='1.0' 3410 3411 3412cat >>confdefs.h <<_ACEOF 3413#define PACKAGE "$PACKAGE" 3414_ACEOF 3415 3416 3417cat >>confdefs.h <<_ACEOF 3418#define VERSION "$VERSION" 3419_ACEOF 3420 3421# Some tools Automake needs. 3422 3423ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3424 3425 3426AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3427 3428 3429AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3430 3431 3432AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3433 3434 3435MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3436 3437# For better backward compatibility. To be removed once Automake 1.9.x 3438# dies out for good. For more background, see: 3439# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3440# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3441mkdir_p='$(MKDIR_P)' 3442 3443# We need awk for the "check" target (and possibly the TAP driver). The 3444# system "awk" is bad on some platforms. 3445# Always define AMTAR for backward compatibility. Yes, it's still used 3446# in the wild :-( We should find a proper way to deprecate it ... 3447AMTAR='$${TAR-tar}' 3448 3449 3450# We'll loop over all known methods to create a tar archive until one works. 3451_am_tools='gnutar pax cpio none' 3452 3453am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3454 3455 3456 3457 3458 3459 3460# POSIX will say in a future version that running "rm -f" with no argument 3461# is OK; and we want to be able to make that assumption in our Makefile 3462# recipes. So use an aggressive probe to check that the usage we want is 3463# actually supported "in the wild" to an acceptable degree. 3464# See automake bug#10828. 3465# To make any issue more visible, cause the running configure to be aborted 3466# by default if the 'rm' program in use doesn't match our expectations; the 3467# user can still override this though. 3468if rm -f && rm -fr && rm -rf; then : OK; else 3469 cat >&2 <<'END' 3470Oops! 3471 3472Your 'rm' program seems unable to run without file operands specified 3473on the command line, even when the '-f' option is present. This is contrary 3474to the behaviour of most rm programs out there, and not conforming with 3475the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3476 3477Please tell bug-automake@gnu.org about your system, including the value 3478of your $PATH and any error possibly output before this message. This 3479can help us improve future automake versions. 3480 3481END 3482 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3483 echo 'Configuration will proceed anyway, since you have set the' >&2 3484 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3485 echo >&2 3486 else 3487 cat >&2 <<'END' 3488Aborting the configuration process, to ensure you take notice of the issue. 3489 3490You can download and install GNU coreutils to get an 'rm' implementation 3491that behaves properly: <http://www.gnu.org/software/coreutils/>. 3492 3493If you want to complete the configuration process using your problematic 3494'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3495to "yes", and re-run configure. 3496 3497END 3498 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3499 fi 3500fi 3501 3502# Check whether --enable-silent-rules was given. 3503if test "${enable_silent_rules+set}" = set; then : 3504 enableval=$enable_silent_rules; 3505fi 3506 3507case $enable_silent_rules in # ((( 3508 yes) AM_DEFAULT_VERBOSITY=0;; 3509 no) AM_DEFAULT_VERBOSITY=1;; 3510 *) AM_DEFAULT_VERBOSITY=0;; 3511esac 3512am_make=${MAKE-make} 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3514$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3515if ${am_cv_make_support_nested_variables+:} false; then : 3516 $as_echo_n "(cached) " >&6 3517else 3518 if $as_echo 'TRUE=$(BAR$(V)) 3519BAR0=false 3520BAR1=true 3521V=1 3522am__doit: 3523 @$(TRUE) 3524.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3525 am_cv_make_support_nested_variables=yes 3526else 3527 am_cv_make_support_nested_variables=no 3528fi 3529fi 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3531$as_echo "$am_cv_make_support_nested_variables" >&6; } 3532if test $am_cv_make_support_nested_variables = yes; then 3533 AM_V='$(V)' 3534 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3535else 3536 AM_V=$AM_DEFAULT_VERBOSITY 3537 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3538fi 3539AM_BACKSLASH='\' 3540 3541 3542ac_ext=c 3543ac_cpp='$CPP $CPPFLAGS' 3544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3546ac_compiler_gnu=$ac_cv_c_compiler_gnu 3547if test -n "$ac_tool_prefix"; then 3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3549set dummy ${ac_tool_prefix}gcc; ac_word=$2 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551$as_echo_n "checking for $ac_word... " >&6; } 3552if ${ac_cv_prog_CC+:} false; then : 3553 $as_echo_n "(cached) " >&6 3554else 3555 if test -n "$CC"; then 3556 ac_cv_prog_CC="$CC" # Let the user override the test. 3557else 3558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559for as_dir in $PATH 3560do 3561 IFS=$as_save_IFS 3562 test -z "$as_dir" && as_dir=. 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569done 3570 done 3571IFS=$as_save_IFS 3572 3573fi 3574fi 3575CC=$ac_cv_prog_CC 3576if test -n "$CC"; then 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3578$as_echo "$CC" >&6; } 3579else 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581$as_echo "no" >&6; } 3582fi 3583 3584 3585fi 3586if test -z "$ac_cv_prog_CC"; then 3587 ac_ct_CC=$CC 3588 # Extract the first word of "gcc", so it can be a program name with args. 3589set dummy gcc; ac_word=$2 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3591$as_echo_n "checking for $ac_word... " >&6; } 3592if ${ac_cv_prog_ac_ct_CC+:} false; then : 3593 $as_echo_n "(cached) " >&6 3594else 3595 if test -n "$ac_ct_CC"; then 3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3597else 3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3599for as_dir in $PATH 3600do 3601 IFS=$as_save_IFS 3602 test -z "$as_dir" && as_dir=. 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3605 ac_cv_prog_ac_ct_CC="gcc" 3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609done 3610 done 3611IFS=$as_save_IFS 3612 3613fi 3614fi 3615ac_ct_CC=$ac_cv_prog_ac_ct_CC 3616if test -n "$ac_ct_CC"; then 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3618$as_echo "$ac_ct_CC" >&6; } 3619else 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621$as_echo "no" >&6; } 3622fi 3623 3624 if test "x$ac_ct_CC" = x; then 3625 CC="" 3626 else 3627 case $cross_compiling:$ac_tool_warned in 3628yes:) 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3631ac_tool_warned=yes ;; 3632esac 3633 CC=$ac_ct_CC 3634 fi 3635else 3636 CC="$ac_cv_prog_CC" 3637fi 3638 3639if test -z "$CC"; then 3640 if test -n "$ac_tool_prefix"; then 3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3642set dummy ${ac_tool_prefix}cc; ac_word=$2 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3644$as_echo_n "checking for $ac_word... " >&6; } 3645if ${ac_cv_prog_CC+:} false; then : 3646 $as_echo_n "(cached) " >&6 3647else 3648 if test -n "$CC"; then 3649 ac_cv_prog_CC="$CC" # Let the user override the test. 3650else 3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 for ac_exec_ext in '' $ac_executable_extensions; do 3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3658 ac_cv_prog_CC="${ac_tool_prefix}cc" 3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3660 break 2 3661 fi 3662done 3663 done 3664IFS=$as_save_IFS 3665 3666fi 3667fi 3668CC=$ac_cv_prog_CC 3669if test -n "$CC"; then 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3671$as_echo "$CC" >&6; } 3672else 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3674$as_echo "no" >&6; } 3675fi 3676 3677 3678 fi 3679fi 3680if test -z "$CC"; then 3681 # Extract the first word of "cc", so it can be a program name with args. 3682set dummy cc; ac_word=$2 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3684$as_echo_n "checking for $ac_word... " >&6; } 3685if ${ac_cv_prog_CC+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 if test -n "$CC"; then 3689 ac_cv_prog_CC="$CC" # Let the user override the test. 3690else 3691 ac_prog_rejected=no 3692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693for as_dir in $PATH 3694do 3695 IFS=$as_save_IFS 3696 test -z "$as_dir" && as_dir=. 3697 for ac_exec_ext in '' $ac_executable_extensions; do 3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3700 ac_prog_rejected=yes 3701 continue 3702 fi 3703 ac_cv_prog_CC="cc" 3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707done 3708 done 3709IFS=$as_save_IFS 3710 3711if test $ac_prog_rejected = yes; then 3712 # We found a bogon in the path, so make sure we never use it. 3713 set dummy $ac_cv_prog_CC 3714 shift 3715 if test $# != 0; then 3716 # We chose a different compiler from the bogus one. 3717 # However, it has the same basename, so the bogon will be chosen 3718 # first if we set CC to just the basename; use the full file name. 3719 shift 3720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3721 fi 3722fi 3723fi 3724fi 3725CC=$ac_cv_prog_CC 3726if test -n "$CC"; then 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3728$as_echo "$CC" >&6; } 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731$as_echo "no" >&6; } 3732fi 3733 3734 3735fi 3736if test -z "$CC"; then 3737 if test -n "$ac_tool_prefix"; then 3738 for ac_prog in cl.exe 3739 do 3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3741set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3743$as_echo_n "checking for $ac_word... " >&6; } 3744if ${ac_cv_prog_CC+:} false; then : 3745 $as_echo_n "(cached) " >&6 3746else 3747 if test -n "$CC"; then 3748 ac_cv_prog_CC="$CC" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 test -z "$as_dir" && as_dir=. 3755 for ac_exec_ext in '' $ac_executable_extensions; do 3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3759 break 2 3760 fi 3761done 3762 done 3763IFS=$as_save_IFS 3764 3765fi 3766fi 3767CC=$ac_cv_prog_CC 3768if test -n "$CC"; then 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3770$as_echo "$CC" >&6; } 3771else 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773$as_echo "no" >&6; } 3774fi 3775 3776 3777 test -n "$CC" && break 3778 done 3779fi 3780if test -z "$CC"; then 3781 ac_ct_CC=$CC 3782 for ac_prog in cl.exe 3783do 3784 # Extract the first word of "$ac_prog", so it can be a program name with args. 3785set dummy $ac_prog; ac_word=$2 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3787$as_echo_n "checking for $ac_word... " >&6; } 3788if ${ac_cv_prog_ac_ct_CC+:} false; then : 3789 $as_echo_n "(cached) " >&6 3790else 3791 if test -n "$ac_ct_CC"; then 3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3793else 3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795for as_dir in $PATH 3796do 3797 IFS=$as_save_IFS 3798 test -z "$as_dir" && as_dir=. 3799 for ac_exec_ext in '' $ac_executable_extensions; do 3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3801 ac_cv_prog_ac_ct_CC="$ac_prog" 3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3803 break 2 3804 fi 3805done 3806 done 3807IFS=$as_save_IFS 3808 3809fi 3810fi 3811ac_ct_CC=$ac_cv_prog_ac_ct_CC 3812if test -n "$ac_ct_CC"; then 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3814$as_echo "$ac_ct_CC" >&6; } 3815else 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3817$as_echo "no" >&6; } 3818fi 3819 3820 3821 test -n "$ac_ct_CC" && break 3822done 3823 3824 if test "x$ac_ct_CC" = x; then 3825 CC="" 3826 else 3827 case $cross_compiling:$ac_tool_warned in 3828yes:) 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3831ac_tool_warned=yes ;; 3832esac 3833 CC=$ac_ct_CC 3834 fi 3835fi 3836 3837fi 3838 3839 3840test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3842as_fn_error $? "no acceptable C compiler found in \$PATH 3843See \`config.log' for more details" "$LINENO" 5; } 3844 3845# Provide some information about the compiler. 3846$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3847set X $ac_compile 3848ac_compiler=$2 3849for ac_option in --version -v -V -qversion; do 3850 { { ac_try="$ac_compiler $ac_option >&5" 3851case "(($ac_try" in 3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3853 *) ac_try_echo=$ac_try;; 3854esac 3855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3856$as_echo "$ac_try_echo"; } >&5 3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3858 ac_status=$? 3859 if test -s conftest.err; then 3860 sed '10a\ 3861... rest of stderr output deleted ... 3862 10q' conftest.err >conftest.er1 3863 cat conftest.er1 >&5 3864 fi 3865 rm -f conftest.er1 conftest.err 3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3867 test $ac_status = 0; } 3868done 3869 3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881ac_clean_files_save=$ac_clean_files 3882ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3883# Try to create an executable without -o first, disregard a.out. 3884# It will help us diagnose broken compilers, and finding out an intuition 3885# of exeext. 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3887$as_echo_n "checking whether the C compiler works... " >&6; } 3888ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3889 3890# The possible output files: 3891ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3892 3893ac_rmfiles= 3894for ac_file in $ac_files 3895do 3896 case $ac_file in 3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3899 esac 3900done 3901rm -f $ac_rmfiles 3902 3903if { { ac_try="$ac_link_default" 3904case "(($ac_try" in 3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3906 *) ac_try_echo=$ac_try;; 3907esac 3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3909$as_echo "$ac_try_echo"; } >&5 3910 (eval "$ac_link_default") 2>&5 3911 ac_status=$? 3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; }; then : 3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3915# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3916# in a Makefile. We should not override ac_cv_exeext if it was cached, 3917# so that the user can short-circuit this test for compilers unknown to 3918# Autoconf. 3919for ac_file in $ac_files '' 3920do 3921 test -f "$ac_file" || continue 3922 case $ac_file in 3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3924 ;; 3925 [ab].out ) 3926 # We found the default executable, but exeext='' is most 3927 # certainly right. 3928 break;; 3929 *.* ) 3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3931 then :; else 3932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3933 fi 3934 # We set ac_cv_exeext here because the later test for it is not 3935 # safe: cross compilers may not add the suffix if given an `-o' 3936 # argument, so we may need to know it at that point already. 3937 # Even if this section looks crufty: it has the advantage of 3938 # actually working. 3939 break;; 3940 * ) 3941 break;; 3942 esac 3943done 3944test "$ac_cv_exeext" = no && ac_cv_exeext= 3945 3946else 3947 ac_file='' 3948fi 3949if test -z "$ac_file"; then : 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3951$as_echo "no" >&6; } 3952$as_echo "$as_me: failed program was:" >&5 3953sed 's/^/| /' conftest.$ac_ext >&5 3954 3955{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3957as_fn_error 77 "C compiler cannot create executables 3958See \`config.log' for more details" "$LINENO" 5; } 3959else 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3961$as_echo "yes" >&6; } 3962fi 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3964$as_echo_n "checking for C compiler default output file name... " >&6; } 3965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3966$as_echo "$ac_file" >&6; } 3967ac_exeext=$ac_cv_exeext 3968 3969rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3970ac_clean_files=$ac_clean_files_save 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3972$as_echo_n "checking for suffix of executables... " >&6; } 3973if { { ac_try="$ac_link" 3974case "(($ac_try" in 3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3976 *) ac_try_echo=$ac_try;; 3977esac 3978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3979$as_echo "$ac_try_echo"; } >&5 3980 (eval "$ac_link") 2>&5 3981 ac_status=$? 3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3983 test $ac_status = 0; }; then : 3984 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3985# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3986# work properly (i.e., refer to `conftest.exe'), while it won't with 3987# `rm'. 3988for ac_file in conftest.exe conftest conftest.*; do 3989 test -f "$ac_file" || continue 3990 case $ac_file in 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3993 break;; 3994 * ) break;; 3995 esac 3996done 3997else 3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4000as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4001See \`config.log' for more details" "$LINENO" 5; } 4002fi 4003rm -f conftest conftest$ac_cv_exeext 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4005$as_echo "$ac_cv_exeext" >&6; } 4006 4007rm -f conftest.$ac_ext 4008EXEEXT=$ac_cv_exeext 4009ac_exeext=$EXEEXT 4010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012#include <stdio.h> 4013int 4014main () 4015{ 4016FILE *f = fopen ("conftest.out", "w"); 4017 return ferror (f) || fclose (f) != 0; 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023ac_clean_files="$ac_clean_files conftest.out" 4024# Check that the compiler produces executables we can run. If not, either 4025# the compiler is broken, or we cross compile. 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4027$as_echo_n "checking whether we are cross compiling... " >&6; } 4028if test "$cross_compiling" != yes; then 4029 { { ac_try="$ac_link" 4030case "(($ac_try" in 4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4032 *) ac_try_echo=$ac_try;; 4033esac 4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4035$as_echo "$ac_try_echo"; } >&5 4036 (eval "$ac_link") 2>&5 4037 ac_status=$? 4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4039 test $ac_status = 0; } 4040 if { ac_try='./conftest$ac_cv_exeext' 4041 { { case "(($ac_try" in 4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4043 *) ac_try_echo=$ac_try;; 4044esac 4045eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4046$as_echo "$ac_try_echo"; } >&5 4047 (eval "$ac_try") 2>&5 4048 ac_status=$? 4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4050 test $ac_status = 0; }; }; then 4051 cross_compiling=no 4052 else 4053 if test "$cross_compiling" = maybe; then 4054 cross_compiling=yes 4055 else 4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4058as_fn_error $? "cannot run C compiled programs. 4059If you meant to cross compile, use \`--host'. 4060See \`config.log' for more details" "$LINENO" 5; } 4061 fi 4062 fi 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4065$as_echo "$cross_compiling" >&6; } 4066 4067rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4068ac_clean_files=$ac_clean_files_save 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4070$as_echo_n "checking for suffix of object files... " >&6; } 4071if ${ac_cv_objext+:} false; then : 4072 $as_echo_n "(cached) " >&6 4073else 4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076 4077int 4078main () 4079{ 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085rm -f conftest.o conftest.obj 4086if { { ac_try="$ac_compile" 4087case "(($ac_try" in 4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4089 *) ac_try_echo=$ac_try;; 4090esac 4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4092$as_echo "$ac_try_echo"; } >&5 4093 (eval "$ac_compile") 2>&5 4094 ac_status=$? 4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4096 test $ac_status = 0; }; then : 4097 for ac_file in conftest.o conftest.obj conftest.*; do 4098 test -f "$ac_file" || continue; 4099 case $ac_file in 4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4102 break;; 4103 esac 4104done 4105else 4106 $as_echo "$as_me: failed program was:" >&5 4107sed 's/^/| /' conftest.$ac_ext >&5 4108 4109{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4111as_fn_error $? "cannot compute suffix of object files: cannot compile 4112See \`config.log' for more details" "$LINENO" 5; } 4113fi 4114rm -f conftest.$ac_cv_objext conftest.$ac_ext 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4117$as_echo "$ac_cv_objext" >&6; } 4118OBJEXT=$ac_cv_objext 4119ac_objext=$OBJEXT 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4121$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4122if ${ac_cv_c_compiler_gnu+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127 4128int 4129main () 4130{ 4131#ifndef __GNUC__ 4132 choke me 4133#endif 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 ac_compiler_gnu=yes 4141else 4142 ac_compiler_gnu=no 4143fi 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4145ac_cv_c_compiler_gnu=$ac_compiler_gnu 4146 4147fi 4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4149$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4150if test $ac_compiler_gnu = yes; then 4151 GCC=yes 4152else 4153 GCC= 4154fi 4155ac_test_CFLAGS=${CFLAGS+set} 4156ac_save_CFLAGS=$CFLAGS 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4158$as_echo_n "checking whether $CC accepts -g... " >&6; } 4159if ${ac_cv_prog_cc_g+:} false; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 ac_save_c_werror_flag=$ac_c_werror_flag 4163 ac_c_werror_flag=yes 4164 ac_cv_prog_cc_g=no 4165 CFLAGS="-g" 4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4167/* end confdefs.h. */ 4168 4169int 4170main () 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_c_try_compile "$LINENO"; then : 4178 ac_cv_prog_cc_g=yes 4179else 4180 CFLAGS="" 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183 4184int 4185main () 4186{ 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192if ac_fn_c_try_compile "$LINENO"; then : 4193 4194else 4195 ac_c_werror_flag=$ac_save_c_werror_flag 4196 CFLAGS="-g" 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199 4200int 4201main () 4202{ 4203 4204 ; 4205 return 0; 4206} 4207_ACEOF 4208if ac_fn_c_try_compile "$LINENO"; then : 4209 ac_cv_prog_cc_g=yes 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4212fi 4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4214fi 4215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4216 ac_c_werror_flag=$ac_save_c_werror_flag 4217fi 4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4219$as_echo "$ac_cv_prog_cc_g" >&6; } 4220if test "$ac_test_CFLAGS" = set; then 4221 CFLAGS=$ac_save_CFLAGS 4222elif test $ac_cv_prog_cc_g = yes; then 4223 if test "$GCC" = yes; then 4224 CFLAGS="-g -O2" 4225 else 4226 CFLAGS="-g" 4227 fi 4228else 4229 if test "$GCC" = yes; then 4230 CFLAGS="-O2" 4231 else 4232 CFLAGS= 4233 fi 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4236$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4237if ${ac_cv_prog_cc_c89+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 ac_cv_prog_cc_c89=no 4241ac_save_CC=$CC 4242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244#include <stdarg.h> 4245#include <stdio.h> 4246struct stat; 4247/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4248struct buf { int x; }; 4249FILE * (*rcsopen) (struct buf *, struct stat *, int); 4250static char *e (p, i) 4251 char **p; 4252 int i; 4253{ 4254 return p[i]; 4255} 4256static char *f (char * (*g) (char **, int), char **p, ...) 4257{ 4258 char *s; 4259 va_list v; 4260 va_start (v,p); 4261 s = g (p, va_arg (v,int)); 4262 va_end (v); 4263 return s; 4264} 4265 4266/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4267 function prototypes and stuff, but not '\xHH' hex character constants. 4268 These don't provoke an error unfortunately, instead are silently treated 4269 as 'x'. The following induces an error, until -std is added to get 4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4271 array size at least. It's necessary to write '\x00'==0 to get something 4272 that's true only with -std. */ 4273int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4274 4275/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4276 inside strings and character constants. */ 4277#define FOO(x) 'x' 4278int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4279 4280int test (int i, double x); 4281struct s1 {int (*f) (int a);}; 4282struct s2 {int (*f) (double a);}; 4283int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4284int argc; 4285char **argv; 4286int 4287main () 4288{ 4289return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4290 ; 4291 return 0; 4292} 4293_ACEOF 4294for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4296do 4297 CC="$ac_save_CC $ac_arg" 4298 if ac_fn_c_try_compile "$LINENO"; then : 4299 ac_cv_prog_cc_c89=$ac_arg 4300fi 4301rm -f core conftest.err conftest.$ac_objext 4302 test "x$ac_cv_prog_cc_c89" != "xno" && break 4303done 4304rm -f conftest.$ac_ext 4305CC=$ac_save_CC 4306 4307fi 4308# AC_CACHE_VAL 4309case "x$ac_cv_prog_cc_c89" in 4310 x) 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4312$as_echo "none needed" >&6; } ;; 4313 xno) 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4315$as_echo "unsupported" >&6; } ;; 4316 *) 4317 CC="$CC $ac_cv_prog_cc_c89" 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4319$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4320esac 4321if test "x$ac_cv_prog_cc_c89" != xno; then : 4322 4323fi 4324 4325ac_ext=c 4326ac_cpp='$CPP $CPPFLAGS' 4327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329ac_compiler_gnu=$ac_cv_c_compiler_gnu 4330 4331ac_ext=c 4332ac_cpp='$CPP $CPPFLAGS' 4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4335ac_compiler_gnu=$ac_cv_c_compiler_gnu 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4337$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4338if ${am_cv_prog_cc_c_o+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343 4344int 4345main () 4346{ 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352 # Make sure it works both with $CC and with simple cc. 4353 # Following AC_PROG_CC_C_O, we do the test twice because some 4354 # compilers refuse to overwrite an existing .o file with -o, 4355 # though they will create one. 4356 am_cv_prog_cc_c_o=yes 4357 for am_i in 1 2; do 4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4360 ac_status=$? 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } \ 4363 && test -f conftest2.$ac_objext; then 4364 : OK 4365 else 4366 am_cv_prog_cc_c_o=no 4367 break 4368 fi 4369 done 4370 rm -f core conftest* 4371 unset am_i 4372fi 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4374$as_echo "$am_cv_prog_cc_c_o" >&6; } 4375if test "$am_cv_prog_cc_c_o" != yes; then 4376 # Losing compiler, so override with the script. 4377 # FIXME: It is wrong to rewrite CC. 4378 # But if we don't then we get into trouble of one sort or another. 4379 # A longer-term fix would be to have automake use am__CC in this case, 4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4381 CC="$am_aux_dir/compile $CC" 4382fi 4383ac_ext=c 4384ac_cpp='$CPP $CPPFLAGS' 4385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4387ac_compiler_gnu=$ac_cv_c_compiler_gnu 4388 4389DEPDIR="${am__leading_dot}deps" 4390 4391ac_config_commands="$ac_config_commands depfiles" 4392 4393 4394am_make=${MAKE-make} 4395cat > confinc << 'END' 4396am__doit: 4397 @echo this is the am__doit target 4398.PHONY: am__doit 4399END 4400# If we don't find an include directive, just comment out the code. 4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4402$as_echo_n "checking for style of include used by $am_make... " >&6; } 4403am__include="#" 4404am__quote= 4405_am_result=none 4406# First try GNU make style include. 4407echo "include confinc" > confmf 4408# Ignore all kinds of additional output from 'make'. 4409case `$am_make -s -f confmf 2> /dev/null` in #( 4410*the\ am__doit\ target*) 4411 am__include=include 4412 am__quote= 4413 _am_result=GNU 4414 ;; 4415esac 4416# Now try BSD make style include. 4417if test "$am__include" = "#"; then 4418 echo '.include "confinc"' > confmf 4419 case `$am_make -s -f confmf 2> /dev/null` in #( 4420 *the\ am__doit\ target*) 4421 am__include=.include 4422 am__quote="\"" 4423 _am_result=BSD 4424 ;; 4425 esac 4426fi 4427 4428 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4430$as_echo "$_am_result" >&6; } 4431rm -f confinc confmf 4432 4433# Check whether --enable-dependency-tracking was given. 4434if test "${enable_dependency_tracking+set}" = set; then : 4435 enableval=$enable_dependency_tracking; 4436fi 4437 4438if test "x$enable_dependency_tracking" != xno; then 4439 am_depcomp="$ac_aux_dir/depcomp" 4440 AMDEPBACKSLASH='\' 4441 am__nodep='_no' 4442fi 4443 if test "x$enable_dependency_tracking" != xno; then 4444 AMDEP_TRUE= 4445 AMDEP_FALSE='#' 4446else 4447 AMDEP_TRUE='#' 4448 AMDEP_FALSE= 4449fi 4450 4451 4452 4453depcc="$CC" am_compiler_list= 4454 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4456$as_echo_n "checking dependency style of $depcc... " >&6; } 4457if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4458 $as_echo_n "(cached) " >&6 4459else 4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4461 # We make a subdir and do the tests there. Otherwise we can end up 4462 # making bogus files that we don't know about and never remove. For 4463 # instance it was reported that on HP-UX the gcc test will end up 4464 # making a dummy file named 'D' -- because '-MD' means "put the output 4465 # in D". 4466 rm -rf conftest.dir 4467 mkdir conftest.dir 4468 # Copy depcomp to subdir because otherwise we won't find it if we're 4469 # using a relative directory. 4470 cp "$am_depcomp" conftest.dir 4471 cd conftest.dir 4472 # We will build objects and dependencies in a subdirectory because 4473 # it helps to detect inapplicable dependency modes. For instance 4474 # both Tru64's cc and ICC support -MD to output dependencies as a 4475 # side effect of compilation, but ICC will put the dependencies in 4476 # the current directory while Tru64 will put them in the object 4477 # directory. 4478 mkdir sub 4479 4480 am_cv_CC_dependencies_compiler_type=none 4481 if test "$am_compiler_list" = ""; then 4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4483 fi 4484 am__universal=false 4485 case " $depcc " in #( 4486 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4487 esac 4488 4489 for depmode in $am_compiler_list; do 4490 # Setup a source with many dependencies, because some compilers 4491 # like to wrap large dependency lists on column 80 (with \), and 4492 # we should not choose a depcomp mode which is confused by this. 4493 # 4494 # We need to recreate these files for each test, as the compiler may 4495 # overwrite some of them when testing with obscure command lines. 4496 # This happens at least with the AIX C compiler. 4497 : > sub/conftest.c 4498 for i in 1 2 3 4 5 6; do 4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4501 # Solaris 10 /bin/sh. 4502 echo '/* dummy */' > sub/conftst$i.h 4503 done 4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4505 4506 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4507 # mode. It turns out that the SunPro C++ compiler does not properly 4508 # handle '-M -o', and we need to detect this. Also, some Intel 4509 # versions had trouble with output in subdirs. 4510 am__obj=sub/conftest.${OBJEXT-o} 4511 am__minus_obj="-o $am__obj" 4512 case $depmode in 4513 gcc) 4514 # This depmode causes a compiler race in universal mode. 4515 test "$am__universal" = false || continue 4516 ;; 4517 nosideeffect) 4518 # After this tag, mechanisms are not by side-effect, so they'll 4519 # only be used when explicitly requested. 4520 if test "x$enable_dependency_tracking" = xyes; then 4521 continue 4522 else 4523 break 4524 fi 4525 ;; 4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4527 # This compiler won't grok '-c -o', but also, the minuso test has 4528 # not run yet. These depmodes are late enough in the game, and 4529 # so weak that their functioning should not be impacted. 4530 am__obj=conftest.${OBJEXT-o} 4531 am__minus_obj= 4532 ;; 4533 none) break ;; 4534 esac 4535 if depmode=$depmode \ 4536 source=sub/conftest.c object=$am__obj \ 4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4539 >/dev/null 2>conftest.err && 4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4544 # icc doesn't choke on unknown options, it will just issue warnings 4545 # or remarks (even with -Werror). So we grep stderr for any message 4546 # that says an option was ignored or not supported. 4547 # When given -MP, icc 7.0 and 7.1 complain thusly: 4548 # icc: Command line warning: ignoring option '-M'; no argument required 4549 # The diagnosis changed in icc 8.0: 4550 # icc: Command line remark: option '-MP' not supported 4551 if (grep 'ignoring option' conftest.err || 4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4553 am_cv_CC_dependencies_compiler_type=$depmode 4554 break 4555 fi 4556 fi 4557 done 4558 4559 cd .. 4560 rm -rf conftest.dir 4561else 4562 am_cv_CC_dependencies_compiler_type=none 4563fi 4564 4565fi 4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4567$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4568CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4569 4570 if 4571 test "x$enable_dependency_tracking" != xno \ 4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4573 am__fastdepCC_TRUE= 4574 am__fastdepCC_FALSE='#' 4575else 4576 am__fastdepCC_TRUE='#' 4577 am__fastdepCC_FALSE= 4578fi 4579 4580 4581ac_ext=cpp 4582ac_cpp='$CXXCPP $CPPFLAGS' 4583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4586if test -z "$CXX"; then 4587 if test -n "$CCC"; then 4588 CXX=$CCC 4589 else 4590 if test -n "$ac_tool_prefix"; then 4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4592 do 4593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4596$as_echo_n "checking for $ac_word... " >&6; } 4597if ${ac_cv_prog_CXX+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599else 4600 if test -n "$CXX"; then 4601 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4610 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615 done 4616IFS=$as_save_IFS 4617 4618fi 4619fi 4620CXX=$ac_cv_prog_CXX 4621if test -n "$CXX"; then 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4623$as_echo "$CXX" >&6; } 4624else 4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4626$as_echo "no" >&6; } 4627fi 4628 4629 4630 test -n "$CXX" && break 4631 done 4632fi 4633if test -z "$CXX"; then 4634 ac_ct_CXX=$CXX 4635 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4636do 4637 # Extract the first word of "$ac_prog", so it can be a program name with args. 4638set dummy $ac_prog; ac_word=$2 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4640$as_echo_n "checking for $ac_word... " >&6; } 4641if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 if test -n "$ac_ct_CXX"; then 4645 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4646else 4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH 4649do 4650 IFS=$as_save_IFS 4651 test -z "$as_dir" && as_dir=. 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4654 ac_cv_prog_ac_ct_CXX="$ac_prog" 4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4656 break 2 4657 fi 4658done 4659 done 4660IFS=$as_save_IFS 4661 4662fi 4663fi 4664ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4665if test -n "$ac_ct_CXX"; then 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4667$as_echo "$ac_ct_CXX" >&6; } 4668else 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4670$as_echo "no" >&6; } 4671fi 4672 4673 4674 test -n "$ac_ct_CXX" && break 4675done 4676 4677 if test "x$ac_ct_CXX" = x; then 4678 CXX="g++" 4679 else 4680 case $cross_compiling:$ac_tool_warned in 4681yes:) 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4684ac_tool_warned=yes ;; 4685esac 4686 CXX=$ac_ct_CXX 4687 fi 4688fi 4689 4690 fi 4691fi 4692# Provide some information about the compiler. 4693$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4694set X $ac_compile 4695ac_compiler=$2 4696for ac_option in --version -v -V -qversion; do 4697 { { ac_try="$ac_compiler $ac_option >&5" 4698case "(($ac_try" in 4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4700 *) ac_try_echo=$ac_try;; 4701esac 4702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4703$as_echo "$ac_try_echo"; } >&5 4704 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4705 ac_status=$? 4706 if test -s conftest.err; then 4707 sed '10a\ 4708... rest of stderr output deleted ... 4709 10q' conftest.err >conftest.er1 4710 cat conftest.er1 >&5 4711 fi 4712 rm -f conftest.er1 conftest.err 4713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4714 test $ac_status = 0; } 4715done 4716 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4718$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4719if ${ac_cv_cxx_compiler_gnu+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724 4725int 4726main () 4727{ 4728#ifndef __GNUC__ 4729 choke me 4730#endif 4731 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736if ac_fn_cxx_try_compile "$LINENO"; then : 4737 ac_compiler_gnu=yes 4738else 4739 ac_compiler_gnu=no 4740fi 4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4742ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4743 4744fi 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4746$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4747if test $ac_compiler_gnu = yes; then 4748 GXX=yes 4749else 4750 GXX= 4751fi 4752ac_test_CXXFLAGS=${CXXFLAGS+set} 4753ac_save_CXXFLAGS=$CXXFLAGS 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4755$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4756if ${ac_cv_prog_cxx_g+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4760 ac_cxx_werror_flag=yes 4761 ac_cv_prog_cxx_g=no 4762 CXXFLAGS="-g" 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765 4766int 4767main () 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774if ac_fn_cxx_try_compile "$LINENO"; then : 4775 ac_cv_prog_cxx_g=yes 4776else 4777 CXXFLAGS="" 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780 4781int 4782main () 4783{ 4784 4785 ; 4786 return 0; 4787} 4788_ACEOF 4789if ac_fn_cxx_try_compile "$LINENO"; then : 4790 4791else 4792 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4793 CXXFLAGS="-g" 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4795/* end confdefs.h. */ 4796 4797int 4798main () 4799{ 4800 4801 ; 4802 return 0; 4803} 4804_ACEOF 4805if ac_fn_cxx_try_compile "$LINENO"; then : 4806 ac_cv_prog_cxx_g=yes 4807fi 4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4809fi 4810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811fi 4812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4813 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4814fi 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4816$as_echo "$ac_cv_prog_cxx_g" >&6; } 4817if test "$ac_test_CXXFLAGS" = set; then 4818 CXXFLAGS=$ac_save_CXXFLAGS 4819elif test $ac_cv_prog_cxx_g = yes; then 4820 if test "$GXX" = yes; then 4821 CXXFLAGS="-g -O2" 4822 else 4823 CXXFLAGS="-g" 4824 fi 4825else 4826 if test "$GXX" = yes; then 4827 CXXFLAGS="-O2" 4828 else 4829 CXXFLAGS= 4830 fi 4831fi 4832ac_ext=c 4833ac_cpp='$CPP $CPPFLAGS' 4834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4836ac_compiler_gnu=$ac_cv_c_compiler_gnu 4837 4838depcc="$CXX" am_compiler_list= 4839 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4841$as_echo_n "checking dependency style of $depcc... " >&6; } 4842if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4846 # We make a subdir and do the tests there. Otherwise we can end up 4847 # making bogus files that we don't know about and never remove. For 4848 # instance it was reported that on HP-UX the gcc test will end up 4849 # making a dummy file named 'D' -- because '-MD' means "put the output 4850 # in D". 4851 rm -rf conftest.dir 4852 mkdir conftest.dir 4853 # Copy depcomp to subdir because otherwise we won't find it if we're 4854 # using a relative directory. 4855 cp "$am_depcomp" conftest.dir 4856 cd conftest.dir 4857 # We will build objects and dependencies in a subdirectory because 4858 # it helps to detect inapplicable dependency modes. For instance 4859 # both Tru64's cc and ICC support -MD to output dependencies as a 4860 # side effect of compilation, but ICC will put the dependencies in 4861 # the current directory while Tru64 will put them in the object 4862 # directory. 4863 mkdir sub 4864 4865 am_cv_CXX_dependencies_compiler_type=none 4866 if test "$am_compiler_list" = ""; then 4867 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4868 fi 4869 am__universal=false 4870 case " $depcc " in #( 4871 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4872 esac 4873 4874 for depmode in $am_compiler_list; do 4875 # Setup a source with many dependencies, because some compilers 4876 # like to wrap large dependency lists on column 80 (with \), and 4877 # we should not choose a depcomp mode which is confused by this. 4878 # 4879 # We need to recreate these files for each test, as the compiler may 4880 # overwrite some of them when testing with obscure command lines. 4881 # This happens at least with the AIX C compiler. 4882 : > sub/conftest.c 4883 for i in 1 2 3 4 5 6; do 4884 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4885 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4886 # Solaris 10 /bin/sh. 4887 echo '/* dummy */' > sub/conftst$i.h 4888 done 4889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4890 4891 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4892 # mode. It turns out that the SunPro C++ compiler does not properly 4893 # handle '-M -o', and we need to detect this. Also, some Intel 4894 # versions had trouble with output in subdirs. 4895 am__obj=sub/conftest.${OBJEXT-o} 4896 am__minus_obj="-o $am__obj" 4897 case $depmode in 4898 gcc) 4899 # This depmode causes a compiler race in universal mode. 4900 test "$am__universal" = false || continue 4901 ;; 4902 nosideeffect) 4903 # After this tag, mechanisms are not by side-effect, so they'll 4904 # only be used when explicitly requested. 4905 if test "x$enable_dependency_tracking" = xyes; then 4906 continue 4907 else 4908 break 4909 fi 4910 ;; 4911 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4912 # This compiler won't grok '-c -o', but also, the minuso test has 4913 # not run yet. These depmodes are late enough in the game, and 4914 # so weak that their functioning should not be impacted. 4915 am__obj=conftest.${OBJEXT-o} 4916 am__minus_obj= 4917 ;; 4918 none) break ;; 4919 esac 4920 if depmode=$depmode \ 4921 source=sub/conftest.c object=$am__obj \ 4922 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4923 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4924 >/dev/null 2>conftest.err && 4925 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4926 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4927 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4928 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4929 # icc doesn't choke on unknown options, it will just issue warnings 4930 # or remarks (even with -Werror). So we grep stderr for any message 4931 # that says an option was ignored or not supported. 4932 # When given -MP, icc 7.0 and 7.1 complain thusly: 4933 # icc: Command line warning: ignoring option '-M'; no argument required 4934 # The diagnosis changed in icc 8.0: 4935 # icc: Command line remark: option '-MP' not supported 4936 if (grep 'ignoring option' conftest.err || 4937 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4938 am_cv_CXX_dependencies_compiler_type=$depmode 4939 break 4940 fi 4941 fi 4942 done 4943 4944 cd .. 4945 rm -rf conftest.dir 4946else 4947 am_cv_CXX_dependencies_compiler_type=none 4948fi 4949 4950fi 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4952$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4953CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4954 4955 if 4956 test "x$enable_dependency_tracking" != xno \ 4957 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4958 am__fastdepCXX_TRUE= 4959 am__fastdepCXX_FALSE='#' 4960else 4961 am__fastdepCXX_TRUE='#' 4962 am__fastdepCXX_FALSE= 4963fi 4964 4965 4966if test -n "$ac_tool_prefix"; then 4967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4968set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4970$as_echo_n "checking for $ac_word... " >&6; } 4971if ${ac_cv_prog_RANLIB+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 if test -n "$RANLIB"; then 4975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4976else 4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4978for as_dir in $PATH 4979do 4980 IFS=$as_save_IFS 4981 test -z "$as_dir" && as_dir=. 4982 for ac_exec_ext in '' $ac_executable_extensions; do 4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4986 break 2 4987 fi 4988done 4989 done 4990IFS=$as_save_IFS 4991 4992fi 4993fi 4994RANLIB=$ac_cv_prog_RANLIB 4995if test -n "$RANLIB"; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4997$as_echo "$RANLIB" >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5000$as_echo "no" >&6; } 5001fi 5002 5003 5004fi 5005if test -z "$ac_cv_prog_RANLIB"; then 5006 ac_ct_RANLIB=$RANLIB 5007 # Extract the first word of "ranlib", so it can be a program name with args. 5008set dummy ranlib; ac_word=$2 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5010$as_echo_n "checking for $ac_word... " >&6; } 5011if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5012 $as_echo_n "(cached) " >&6 5013else 5014 if test -n "$ac_ct_RANLIB"; then 5015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5016else 5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH 5019do 5020 IFS=$as_save_IFS 5021 test -z "$as_dir" && as_dir=. 5022 for ac_exec_ext in '' $ac_executable_extensions; do 5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5024 ac_cv_prog_ac_ct_RANLIB="ranlib" 5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5026 break 2 5027 fi 5028done 5029 done 5030IFS=$as_save_IFS 5031 5032fi 5033fi 5034ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5035if test -n "$ac_ct_RANLIB"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5037$as_echo "$ac_ct_RANLIB" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042 5043 if test "x$ac_ct_RANLIB" = x; then 5044 RANLIB=":" 5045 else 5046 case $cross_compiling:$ac_tool_warned in 5047yes:) 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5050ac_tool_warned=yes ;; 5051esac 5052 RANLIB=$ac_ct_RANLIB 5053 fi 5054else 5055 RANLIB="$ac_cv_prog_RANLIB" 5056fi 5057 5058 5059 5060ac_ext=c 5061ac_cpp='$CPP $CPPFLAGS' 5062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5064ac_compiler_gnu=$ac_cv_c_compiler_gnu 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5066$as_echo_n "checking how to run the C preprocessor... " >&6; } 5067# On Suns, sometimes $CPP names a directory. 5068if test -n "$CPP" && test -d "$CPP"; then 5069 CPP= 5070fi 5071if test -z "$CPP"; then 5072 if ${ac_cv_prog_CPP+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 # Double quotes because CPP needs to be expanded 5076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5077 do 5078 ac_preproc_ok=false 5079for ac_c_preproc_warn_flag in '' yes 5080do 5081 # Use a header file that comes with gcc, so configuring glibc 5082 # with a fresh cross-compiler works. 5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5084 # <limits.h> exists even on freestanding compilers. 5085 # On the NeXT, cc -E runs the code through the compiler's parser, 5086 # not just through cpp. "Syntax error" is here to catch this case. 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5088/* end confdefs.h. */ 5089#ifdef __STDC__ 5090# include <limits.h> 5091#else 5092# include <assert.h> 5093#endif 5094 Syntax error 5095_ACEOF 5096if ac_fn_c_try_cpp "$LINENO"; then : 5097 5098else 5099 # Broken: fails on valid input. 5100continue 5101fi 5102rm -f conftest.err conftest.i conftest.$ac_ext 5103 5104 # OK, works on sane cases. Now check whether nonexistent headers 5105 # can be detected and how. 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108#include <ac_nonexistent.h> 5109_ACEOF 5110if ac_fn_c_try_cpp "$LINENO"; then : 5111 # Broken: success on invalid input. 5112continue 5113else 5114 # Passes both tests. 5115ac_preproc_ok=: 5116break 5117fi 5118rm -f conftest.err conftest.i conftest.$ac_ext 5119 5120done 5121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5122rm -f conftest.i conftest.err conftest.$ac_ext 5123if $ac_preproc_ok; then : 5124 break 5125fi 5126 5127 done 5128 ac_cv_prog_CPP=$CPP 5129 5130fi 5131 CPP=$ac_cv_prog_CPP 5132else 5133 ac_cv_prog_CPP=$CPP 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5136$as_echo "$CPP" >&6; } 5137ac_preproc_ok=false 5138for ac_c_preproc_warn_flag in '' yes 5139do 5140 # Use a header file that comes with gcc, so configuring glibc 5141 # with a fresh cross-compiler works. 5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5143 # <limits.h> exists even on freestanding compilers. 5144 # On the NeXT, cc -E runs the code through the compiler's parser, 5145 # not just through cpp. "Syntax error" is here to catch this case. 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147/* end confdefs.h. */ 5148#ifdef __STDC__ 5149# include <limits.h> 5150#else 5151# include <assert.h> 5152#endif 5153 Syntax error 5154_ACEOF 5155if ac_fn_c_try_cpp "$LINENO"; then : 5156 5157else 5158 # Broken: fails on valid input. 5159continue 5160fi 5161rm -f conftest.err conftest.i conftest.$ac_ext 5162 5163 # OK, works on sane cases. Now check whether nonexistent headers 5164 # can be detected and how. 5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166/* end confdefs.h. */ 5167#include <ac_nonexistent.h> 5168_ACEOF 5169if ac_fn_c_try_cpp "$LINENO"; then : 5170 # Broken: success on invalid input. 5171continue 5172else 5173 # Passes both tests. 5174ac_preproc_ok=: 5175break 5176fi 5177rm -f conftest.err conftest.i conftest.$ac_ext 5178 5179done 5180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5181rm -f conftest.i conftest.err conftest.$ac_ext 5182if $ac_preproc_ok; then : 5183 5184else 5185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5187as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5188See \`config.log' for more details" "$LINENO" 5; } 5189fi 5190 5191ac_ext=c 5192ac_cpp='$CPP $CPPFLAGS' 5193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5195ac_compiler_gnu=$ac_cv_c_compiler_gnu 5196 5197 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5199$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5200if ${ac_cv_path_GREP+:} false; then : 5201 $as_echo_n "(cached) " >&6 5202else 5203 if test -z "$GREP"; then 5204 ac_path_GREP_found=false 5205 # Loop through the user's path and test for each of PROGNAME-LIST 5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5207for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5208do 5209 IFS=$as_save_IFS 5210 test -z "$as_dir" && as_dir=. 5211 for ac_prog in grep ggrep; do 5212 for ac_exec_ext in '' $ac_executable_extensions; do 5213 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5214 as_fn_executable_p "$ac_path_GREP" || continue 5215# Check for GNU ac_path_GREP and select it if it is found. 5216 # Check for GNU $ac_path_GREP 5217case `"$ac_path_GREP" --version 2>&1` in 5218*GNU*) 5219 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5220*) 5221 ac_count=0 5222 $as_echo_n 0123456789 >"conftest.in" 5223 while : 5224 do 5225 cat "conftest.in" "conftest.in" >"conftest.tmp" 5226 mv "conftest.tmp" "conftest.in" 5227 cp "conftest.in" "conftest.nl" 5228 $as_echo 'GREP' >> "conftest.nl" 5229 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5231 as_fn_arith $ac_count + 1 && ac_count=$as_val 5232 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5233 # Best one so far, save it but keep looking for a better one 5234 ac_cv_path_GREP="$ac_path_GREP" 5235 ac_path_GREP_max=$ac_count 5236 fi 5237 # 10*(2^10) chars as input seems more than enough 5238 test $ac_count -gt 10 && break 5239 done 5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5241esac 5242 5243 $ac_path_GREP_found && break 3 5244 done 5245 done 5246 done 5247IFS=$as_save_IFS 5248 if test -z "$ac_cv_path_GREP"; then 5249 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5250 fi 5251else 5252 ac_cv_path_GREP=$GREP 5253fi 5254 5255fi 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5257$as_echo "$ac_cv_path_GREP" >&6; } 5258 GREP="$ac_cv_path_GREP" 5259 5260 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5262$as_echo_n "checking for egrep... " >&6; } 5263if ${ac_cv_path_EGREP+:} false; then : 5264 $as_echo_n "(cached) " >&6 5265else 5266 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5267 then ac_cv_path_EGREP="$GREP -E" 5268 else 5269 if test -z "$EGREP"; then 5270 ac_path_EGREP_found=false 5271 # Loop through the user's path and test for each of PROGNAME-LIST 5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5273for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5274do 5275 IFS=$as_save_IFS 5276 test -z "$as_dir" && as_dir=. 5277 for ac_prog in egrep; do 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5280 as_fn_executable_p "$ac_path_EGREP" || continue 5281# Check for GNU ac_path_EGREP and select it if it is found. 5282 # Check for GNU $ac_path_EGREP 5283case `"$ac_path_EGREP" --version 2>&1` in 5284*GNU*) 5285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5286*) 5287 ac_count=0 5288 $as_echo_n 0123456789 >"conftest.in" 5289 while : 5290 do 5291 cat "conftest.in" "conftest.in" >"conftest.tmp" 5292 mv "conftest.tmp" "conftest.in" 5293 cp "conftest.in" "conftest.nl" 5294 $as_echo 'EGREP' >> "conftest.nl" 5295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5297 as_fn_arith $ac_count + 1 && ac_count=$as_val 5298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5299 # Best one so far, save it but keep looking for a better one 5300 ac_cv_path_EGREP="$ac_path_EGREP" 5301 ac_path_EGREP_max=$ac_count 5302 fi 5303 # 10*(2^10) chars as input seems more than enough 5304 test $ac_count -gt 10 && break 5305 done 5306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5307esac 5308 5309 $ac_path_EGREP_found && break 3 5310 done 5311 done 5312 done 5313IFS=$as_save_IFS 5314 if test -z "$ac_cv_path_EGREP"; then 5315 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5316 fi 5317else 5318 ac_cv_path_EGREP=$EGREP 5319fi 5320 5321 fi 5322fi 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5324$as_echo "$ac_cv_path_EGREP" >&6; } 5325 EGREP="$ac_cv_path_EGREP" 5326 5327 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5329$as_echo_n "checking for ANSI C header files... " >&6; } 5330if ${ac_cv_header_stdc+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5334/* end confdefs.h. */ 5335#include <stdlib.h> 5336#include <stdarg.h> 5337#include <string.h> 5338#include <float.h> 5339 5340int 5341main () 5342{ 5343 5344 ; 5345 return 0; 5346} 5347_ACEOF 5348if ac_fn_c_try_compile "$LINENO"; then : 5349 ac_cv_header_stdc=yes 5350else 5351 ac_cv_header_stdc=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5354 5355if test $ac_cv_header_stdc = yes; then 5356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359#include <string.h> 5360 5361_ACEOF 5362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5363 $EGREP "memchr" >/dev/null 2>&1; then : 5364 5365else 5366 ac_cv_header_stdc=no 5367fi 5368rm -f conftest* 5369 5370fi 5371 5372if test $ac_cv_header_stdc = yes; then 5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376#include <stdlib.h> 5377 5378_ACEOF 5379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5380 $EGREP "free" >/dev/null 2>&1; then : 5381 5382else 5383 ac_cv_header_stdc=no 5384fi 5385rm -f conftest* 5386 5387fi 5388 5389if test $ac_cv_header_stdc = yes; then 5390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5391 if test "$cross_compiling" = yes; then : 5392 : 5393else 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396#include <ctype.h> 5397#include <stdlib.h> 5398#if ((' ' & 0x0FF) == 0x020) 5399# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5400# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5401#else 5402# define ISLOWER(c) \ 5403 (('a' <= (c) && (c) <= 'i') \ 5404 || ('j' <= (c) && (c) <= 'r') \ 5405 || ('s' <= (c) && (c) <= 'z')) 5406# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5407#endif 5408 5409#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5410int 5411main () 5412{ 5413 int i; 5414 for (i = 0; i < 256; i++) 5415 if (XOR (islower (i), ISLOWER (i)) 5416 || toupper (i) != TOUPPER (i)) 5417 return 2; 5418 return 0; 5419} 5420_ACEOF 5421if ac_fn_c_try_run "$LINENO"; then : 5422 5423else 5424 ac_cv_header_stdc=no 5425fi 5426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5427 conftest.$ac_objext conftest.beam conftest.$ac_ext 5428fi 5429 5430fi 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5433$as_echo "$ac_cv_header_stdc" >&6; } 5434if test $ac_cv_header_stdc = yes; then 5435 5436$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5437 5438fi 5439 5440# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5441for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5442 inttypes.h stdint.h unistd.h 5443do : 5444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5445ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5446" 5447if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5448 cat >>confdefs.h <<_ACEOF 5449#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5450_ACEOF 5451 5452fi 5453 5454done 5455 5456 5457 5458 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5459if test "x$ac_cv_header_minix_config_h" = xyes; then : 5460 MINIX=yes 5461else 5462 MINIX= 5463fi 5464 5465 5466 if test "$MINIX" = yes; then 5467 5468$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5469 5470 5471$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5472 5473 5474$as_echo "#define _MINIX 1" >>confdefs.h 5475 5476 fi 5477 5478 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5480$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5481if ${ac_cv_safe_to_define___extensions__+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5485/* end confdefs.h. */ 5486 5487# define __EXTENSIONS__ 1 5488 $ac_includes_default 5489int 5490main () 5491{ 5492 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_compile "$LINENO"; then : 5498 ac_cv_safe_to_define___extensions__=yes 5499else 5500 ac_cv_safe_to_define___extensions__=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503fi 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5505$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5506 test $ac_cv_safe_to_define___extensions__ = yes && 5507 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5508 5509 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5510 5511 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5512 5513 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5514 5515 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5516 5517 5518 5519# The tests for host and target for $enable_largefile require 5520# canonical names. 5521 5522 5523 5524# As the $enable_largefile decision depends on --enable-plugins we must set it 5525# even in directories otherwise not depending on the $plugins option. 5526 5527 5528 maybe_plugins=no 5529 for ac_header in dlfcn.h 5530do : 5531 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 5532" 5533if test "x$ac_cv_header_dlfcn_h" = xyes; then : 5534 cat >>confdefs.h <<_ACEOF 5535#define HAVE_DLFCN_H 1 5536_ACEOF 5537 maybe_plugins=yes 5538fi 5539 5540done 5541 5542 for ac_header in windows.h 5543do : 5544 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 5545" 5546if test "x$ac_cv_header_windows_h" = xyes; then : 5547 cat >>confdefs.h <<_ACEOF 5548#define HAVE_WINDOWS_H 1 5549_ACEOF 5550 maybe_plugins=yes 5551fi 5552 5553done 5554 5555 5556 # Check whether --enable-plugins was given. 5557if test "${enable_plugins+set}" = set; then : 5558 enableval=$enable_plugins; case "${enableval}" in 5559 no) plugins=no ;; 5560 *) plugins=yes 5561 if test "$maybe_plugins" != "yes" ; then 5562 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 5563 fi ;; 5564 esac 5565else 5566 plugins=$maybe_plugins 5567 5568fi 5569 5570 if test "$plugins" = "yes"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 5572$as_echo_n "checking for library containing dlsym... " >&6; } 5573if ${ac_cv_search_dlsym+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 ac_func_search_save_LIBS=$LIBS 5577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5578/* end confdefs.h. */ 5579 5580/* Override any GCC internal prototype to avoid an error. 5581 Use char because int might match the return type of a GCC 5582 builtin and then its argument prototype would still apply. */ 5583#ifdef __cplusplus 5584extern "C" 5585#endif 5586char dlsym (); 5587int 5588main () 5589{ 5590return dlsym (); 5591 ; 5592 return 0; 5593} 5594_ACEOF 5595for ac_lib in '' dl; do 5596 if test -z "$ac_lib"; then 5597 ac_res="none required" 5598 else 5599 ac_res=-l$ac_lib 5600 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5601 fi 5602 if ac_fn_c_try_link "$LINENO"; then : 5603 ac_cv_search_dlsym=$ac_res 5604fi 5605rm -f core conftest.err conftest.$ac_objext \ 5606 conftest$ac_exeext 5607 if ${ac_cv_search_dlsym+:} false; then : 5608 break 5609fi 5610done 5611if ${ac_cv_search_dlsym+:} false; then : 5612 5613else 5614 ac_cv_search_dlsym=no 5615fi 5616rm conftest.$ac_ext 5617LIBS=$ac_func_search_save_LIBS 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 5620$as_echo "$ac_cv_search_dlsym" >&6; } 5621ac_res=$ac_cv_search_dlsym 5622if test "$ac_res" != no; then : 5623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5624 5625fi 5626 5627 fi 5628 5629 5630case "${host}" in 5631 sparc-*-solaris*|i?86-*-solaris*) 5632 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 5633 # were mutually exclusive until Solaris 11.3. Without procfs support, 5634 # the bfd/ elf module cannot provide certain routines such as 5635 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 5636 # explicitly requested large-file support through the 5637 # --enable-largefile switch, disable large-file support in favor of 5638 # procfs support. 5639 # 5640 # Check if <sys/procfs.h> is incompatible with large-file support. 5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5642/* end confdefs.h. */ 5643#define _FILE_OFFSET_BITS 64 5644#define _STRUCTURED_PROC 1 5645#include <sys/procfs.h> 5646int 5647main () 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654if ac_fn_c_try_compile "$LINENO"; then : 5655 acx_cv_procfs_lfs=yes 5656else 5657 acx_cv_procfs_lfs=no 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660 # 5661 # Forcefully disable large-file support only if necessary, gdb is in 5662 # tree and enabled. 5663 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 5664 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 5665 : ${enable_largefile="no"} 5666 if test "$plugins" = yes; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5668plugin support disabled; require large-file support which is incompatible with GDB." >&5 5669$as_echo "$as_me: WARNING: 5670plugin support disabled; require large-file support which is incompatible with GDB." >&2;} 5671 plugins=no 5672 fi 5673 fi 5674 # 5675 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 5676 # benefit of g++ 9+ which predefines it on Solaris. 5677 if test "$enable_largefile" = no; then 5678 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 5679 5680 fi 5681 ;; 5682esac 5683 5684# Check whether --enable-largefile was given. 5685if test "${enable_largefile+set}" = set; then : 5686 enableval=$enable_largefile; 5687fi 5688 5689if test "$enable_largefile" != no; then 5690 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5692$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5693if ${ac_cv_sys_largefile_CC+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 ac_cv_sys_largefile_CC=no 5697 if test "$GCC" != yes; then 5698 ac_save_CC=$CC 5699 while :; do 5700 # IRIX 6.2 and later do not support large files by default, 5701 # so use the C compiler's -n32 option if that helps. 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704#include <sys/types.h> 5705 /* Check that off_t can represent 2**63 - 1 correctly. 5706 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5707 since some C++ compilers masquerading as C compilers 5708 incorrectly reject 9223372036854775807. */ 5709#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5711 && LARGE_OFF_T % 2147483647 == 1) 5712 ? 1 : -1]; 5713int 5714main () 5715{ 5716 5717 ; 5718 return 0; 5719} 5720_ACEOF 5721 if ac_fn_c_try_compile "$LINENO"; then : 5722 break 5723fi 5724rm -f core conftest.err conftest.$ac_objext 5725 CC="$CC -n32" 5726 if ac_fn_c_try_compile "$LINENO"; then : 5727 ac_cv_sys_largefile_CC=' -n32'; break 5728fi 5729rm -f core conftest.err conftest.$ac_objext 5730 break 5731 done 5732 CC=$ac_save_CC 5733 rm -f conftest.$ac_ext 5734 fi 5735fi 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5737$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5738 if test "$ac_cv_sys_largefile_CC" != no; then 5739 CC=$CC$ac_cv_sys_largefile_CC 5740 fi 5741 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5743$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5744if ${ac_cv_sys_file_offset_bits+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 while :; do 5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749/* end confdefs.h. */ 5750#include <sys/types.h> 5751 /* Check that off_t can represent 2**63 - 1 correctly. 5752 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5753 since some C++ compilers masquerading as C compilers 5754 incorrectly reject 9223372036854775807. */ 5755#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5757 && LARGE_OFF_T % 2147483647 == 1) 5758 ? 1 : -1]; 5759int 5760main () 5761{ 5762 5763 ; 5764 return 0; 5765} 5766_ACEOF 5767if ac_fn_c_try_compile "$LINENO"; then : 5768 ac_cv_sys_file_offset_bits=no; break 5769fi 5770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773#define _FILE_OFFSET_BITS 64 5774#include <sys/types.h> 5775 /* Check that off_t can represent 2**63 - 1 correctly. 5776 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5777 since some C++ compilers masquerading as C compilers 5778 incorrectly reject 9223372036854775807. */ 5779#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5781 && LARGE_OFF_T % 2147483647 == 1) 5782 ? 1 : -1]; 5783int 5784main () 5785{ 5786 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791if ac_fn_c_try_compile "$LINENO"; then : 5792 ac_cv_sys_file_offset_bits=64; break 5793fi 5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5795 ac_cv_sys_file_offset_bits=unknown 5796 break 5797done 5798fi 5799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5800$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5801case $ac_cv_sys_file_offset_bits in #( 5802 no | unknown) ;; 5803 *) 5804cat >>confdefs.h <<_ACEOF 5805#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5806_ACEOF 5807;; 5808esac 5809rm -rf conftest* 5810 if test $ac_cv_sys_file_offset_bits = unknown; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5812$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5813if ${ac_cv_sys_large_files+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 while :; do 5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819#include <sys/types.h> 5820 /* Check that off_t can represent 2**63 - 1 correctly. 5821 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5822 since some C++ compilers masquerading as C compilers 5823 incorrectly reject 9223372036854775807. */ 5824#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5826 && LARGE_OFF_T % 2147483647 == 1) 5827 ? 1 : -1]; 5828int 5829main () 5830{ 5831 5832 ; 5833 return 0; 5834} 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO"; then : 5837 ac_cv_sys_large_files=no; break 5838fi 5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842#define _LARGE_FILES 1 5843#include <sys/types.h> 5844 /* Check that off_t can represent 2**63 - 1 correctly. 5845 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5846 since some C++ compilers masquerading as C compilers 5847 incorrectly reject 9223372036854775807. */ 5848#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5849 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5850 && LARGE_OFF_T % 2147483647 == 1) 5851 ? 1 : -1]; 5852int 5853main () 5854{ 5855 5856 ; 5857 return 0; 5858} 5859_ACEOF 5860if ac_fn_c_try_compile "$LINENO"; then : 5861 ac_cv_sys_large_files=1; break 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5864 ac_cv_sys_large_files=unknown 5865 break 5866done 5867fi 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5869$as_echo "$ac_cv_sys_large_files" >&6; } 5870case $ac_cv_sys_large_files in #( 5871 no | unknown) ;; 5872 *) 5873cat >>confdefs.h <<_ACEOF 5874#define _LARGE_FILES $ac_cv_sys_large_files 5875_ACEOF 5876;; 5877esac 5878rm -rf conftest* 5879 fi 5880 5881 5882fi 5883 5884 5885ac_ext=c 5886ac_cpp='$CPP $CPPFLAGS' 5887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5889ac_compiler_gnu=$ac_cv_c_compiler_gnu 5890if test -n "$ac_tool_prefix"; then 5891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5892set dummy ${ac_tool_prefix}gcc; ac_word=$2 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5894$as_echo_n "checking for $ac_word... " >&6; } 5895if ${ac_cv_prog_CC+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 if test -n "$CC"; then 5899 ac_cv_prog_CC="$CC" # Let the user override the test. 5900else 5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5902for as_dir in $PATH 5903do 5904 IFS=$as_save_IFS 5905 test -z "$as_dir" && as_dir=. 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5908 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5910 break 2 5911 fi 5912done 5913 done 5914IFS=$as_save_IFS 5915 5916fi 5917fi 5918CC=$ac_cv_prog_CC 5919if test -n "$CC"; then 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5921$as_echo "$CC" >&6; } 5922else 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924$as_echo "no" >&6; } 5925fi 5926 5927 5928fi 5929if test -z "$ac_cv_prog_CC"; then 5930 ac_ct_CC=$CC 5931 # Extract the first word of "gcc", so it can be a program name with args. 5932set dummy gcc; ac_word=$2 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if ${ac_cv_prog_ac_ct_CC+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$ac_ct_CC"; then 5939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_ac_ct_CC="gcc" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958ac_ct_CC=$ac_cv_prog_ac_ct_CC 5959if test -n "$ac_ct_CC"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5961$as_echo "$ac_ct_CC" >&6; } 5962else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 if test "x$ac_ct_CC" = x; then 5968 CC="" 5969 else 5970 case $cross_compiling:$ac_tool_warned in 5971yes:) 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5974ac_tool_warned=yes ;; 5975esac 5976 CC=$ac_ct_CC 5977 fi 5978else 5979 CC="$ac_cv_prog_CC" 5980fi 5981 5982if test -z "$CC"; then 5983 if test -n "$ac_tool_prefix"; then 5984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5985set dummy ${ac_tool_prefix}cc; ac_word=$2 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5987$as_echo_n "checking for $ac_word... " >&6; } 5988if ${ac_cv_prog_CC+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 if test -n "$CC"; then 5992 ac_cv_prog_CC="$CC" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_CC="${ac_tool_prefix}cc" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006 done 6007IFS=$as_save_IFS 6008 6009fi 6010fi 6011CC=$ac_cv_prog_CC 6012if test -n "$CC"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6014$as_echo "$CC" >&6; } 6015else 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6017$as_echo "no" >&6; } 6018fi 6019 6020 6021 fi 6022fi 6023if test -z "$CC"; then 6024 # Extract the first word of "cc", so it can be a program name with args. 6025set dummy cc; ac_word=$2 6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6027$as_echo_n "checking for $ac_word... " >&6; } 6028if ${ac_cv_prog_CC+:} false; then : 6029 $as_echo_n "(cached) " >&6 6030else 6031 if test -n "$CC"; then 6032 ac_cv_prog_CC="$CC" # Let the user override the test. 6033else 6034 ac_prog_rejected=no 6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036for as_dir in $PATH 6037do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6043 ac_prog_rejected=yes 6044 continue 6045 fi 6046 ac_cv_prog_CC="cc" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054if test $ac_prog_rejected = yes; then 6055 # We found a bogon in the path, so make sure we never use it. 6056 set dummy $ac_cv_prog_CC 6057 shift 6058 if test $# != 0; then 6059 # We chose a different compiler from the bogus one. 6060 # However, it has the same basename, so the bogon will be chosen 6061 # first if we set CC to just the basename; use the full file name. 6062 shift 6063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6064 fi 6065fi 6066fi 6067fi 6068CC=$ac_cv_prog_CC 6069if test -n "$CC"; then 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6071$as_echo "$CC" >&6; } 6072else 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6074$as_echo "no" >&6; } 6075fi 6076 6077 6078fi 6079if test -z "$CC"; then 6080 if test -n "$ac_tool_prefix"; then 6081 for ac_prog in cl.exe 6082 do 6083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6084set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086$as_echo_n "checking for $ac_word... " >&6; } 6087if ${ac_cv_prog_CC+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 if test -n "$CC"; then 6091 ac_cv_prog_CC="$CC" # Let the user override the test. 6092else 6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6094for as_dir in $PATH 6095do 6096 IFS=$as_save_IFS 6097 test -z "$as_dir" && as_dir=. 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104done 6105 done 6106IFS=$as_save_IFS 6107 6108fi 6109fi 6110CC=$ac_cv_prog_CC 6111if test -n "$CC"; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6113$as_echo "$CC" >&6; } 6114else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6116$as_echo "no" >&6; } 6117fi 6118 6119 6120 test -n "$CC" && break 6121 done 6122fi 6123if test -z "$CC"; then 6124 ac_ct_CC=$CC 6125 for ac_prog in cl.exe 6126do 6127 # Extract the first word of "$ac_prog", so it can be a program name with args. 6128set dummy $ac_prog; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_prog_ac_ct_CC+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 if test -n "$ac_ct_CC"; then 6135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_ac_ct_CC="$ac_prog" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154ac_ct_CC=$ac_cv_prog_ac_ct_CC 6155if test -n "$ac_ct_CC"; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6157$as_echo "$ac_ct_CC" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161fi 6162 6163 6164 test -n "$ac_ct_CC" && break 6165done 6166 6167 if test "x$ac_ct_CC" = x; then 6168 CC="" 6169 else 6170 case $cross_compiling:$ac_tool_warned in 6171yes:) 6172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6174ac_tool_warned=yes ;; 6175esac 6176 CC=$ac_ct_CC 6177 fi 6178fi 6179 6180fi 6181 6182 6183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6185as_fn_error $? "no acceptable C compiler found in \$PATH 6186See \`config.log' for more details" "$LINENO" 5; } 6187 6188# Provide some information about the compiler. 6189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6190set X $ac_compile 6191ac_compiler=$2 6192for ac_option in --version -v -V -qversion; do 6193 { { ac_try="$ac_compiler $ac_option >&5" 6194case "(($ac_try" in 6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6196 *) ac_try_echo=$ac_try;; 6197esac 6198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6199$as_echo "$ac_try_echo"; } >&5 6200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6201 ac_status=$? 6202 if test -s conftest.err; then 6203 sed '10a\ 6204... rest of stderr output deleted ... 6205 10q' conftest.err >conftest.er1 6206 cat conftest.er1 >&5 6207 fi 6208 rm -f conftest.er1 conftest.err 6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6210 test $ac_status = 0; } 6211done 6212 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6215if ${ac_cv_c_compiler_gnu+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220 6221int 6222main () 6223{ 6224#ifndef __GNUC__ 6225 choke me 6226#endif 6227 6228 ; 6229 return 0; 6230} 6231_ACEOF 6232if ac_fn_c_try_compile "$LINENO"; then : 6233 ac_compiler_gnu=yes 6234else 6235 ac_compiler_gnu=no 6236fi 6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238ac_cv_c_compiler_gnu=$ac_compiler_gnu 6239 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6242$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6243if test $ac_compiler_gnu = yes; then 6244 GCC=yes 6245else 6246 GCC= 6247fi 6248ac_test_CFLAGS=${CFLAGS+set} 6249ac_save_CFLAGS=$CFLAGS 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6251$as_echo_n "checking whether $CC accepts -g... " >&6; } 6252if ${ac_cv_prog_cc_g+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 ac_save_c_werror_flag=$ac_c_werror_flag 6256 ac_c_werror_flag=yes 6257 ac_cv_prog_cc_g=no 6258 CFLAGS="-g" 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261 6262int 6263main () 6264{ 6265 6266 ; 6267 return 0; 6268} 6269_ACEOF 6270if ac_fn_c_try_compile "$LINENO"; then : 6271 ac_cv_prog_cc_g=yes 6272else 6273 CFLAGS="" 6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275/* end confdefs.h. */ 6276 6277int 6278main () 6279{ 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285if ac_fn_c_try_compile "$LINENO"; then : 6286 6287else 6288 ac_c_werror_flag=$ac_save_c_werror_flag 6289 CFLAGS="-g" 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292 6293int 6294main () 6295{ 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO"; then : 6302 ac_cv_prog_cc_g=yes 6303fi 6304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6305fi 6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6307fi 6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6309 ac_c_werror_flag=$ac_save_c_werror_flag 6310fi 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6312$as_echo "$ac_cv_prog_cc_g" >&6; } 6313if test "$ac_test_CFLAGS" = set; then 6314 CFLAGS=$ac_save_CFLAGS 6315elif test $ac_cv_prog_cc_g = yes; then 6316 if test "$GCC" = yes; then 6317 CFLAGS="-g -O2" 6318 else 6319 CFLAGS="-g" 6320 fi 6321else 6322 if test "$GCC" = yes; then 6323 CFLAGS="-O2" 6324 else 6325 CFLAGS= 6326 fi 6327fi 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6329$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6330if ${ac_cv_prog_cc_c89+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 ac_cv_prog_cc_c89=no 6334ac_save_CC=$CC 6335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337#include <stdarg.h> 6338#include <stdio.h> 6339struct stat; 6340/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6341struct buf { int x; }; 6342FILE * (*rcsopen) (struct buf *, struct stat *, int); 6343static char *e (p, i) 6344 char **p; 6345 int i; 6346{ 6347 return p[i]; 6348} 6349static char *f (char * (*g) (char **, int), char **p, ...) 6350{ 6351 char *s; 6352 va_list v; 6353 va_start (v,p); 6354 s = g (p, va_arg (v,int)); 6355 va_end (v); 6356 return s; 6357} 6358 6359/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6360 function prototypes and stuff, but not '\xHH' hex character constants. 6361 These don't provoke an error unfortunately, instead are silently treated 6362 as 'x'. The following induces an error, until -std is added to get 6363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6364 array size at least. It's necessary to write '\x00'==0 to get something 6365 that's true only with -std. */ 6366int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6367 6368/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6369 inside strings and character constants. */ 6370#define FOO(x) 'x' 6371int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6372 6373int test (int i, double x); 6374struct s1 {int (*f) (int a);}; 6375struct s2 {int (*f) (double a);}; 6376int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6377int argc; 6378char **argv; 6379int 6380main () 6381{ 6382return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6383 ; 6384 return 0; 6385} 6386_ACEOF 6387for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6389do 6390 CC="$ac_save_CC $ac_arg" 6391 if ac_fn_c_try_compile "$LINENO"; then : 6392 ac_cv_prog_cc_c89=$ac_arg 6393fi 6394rm -f core conftest.err conftest.$ac_objext 6395 test "x$ac_cv_prog_cc_c89" != "xno" && break 6396done 6397rm -f conftest.$ac_ext 6398CC=$ac_save_CC 6399 6400fi 6401# AC_CACHE_VAL 6402case "x$ac_cv_prog_cc_c89" in 6403 x) 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6405$as_echo "none needed" >&6; } ;; 6406 xno) 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6408$as_echo "unsupported" >&6; } ;; 6409 *) 6410 CC="$CC $ac_cv_prog_cc_c89" 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6412$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6413esac 6414if test "x$ac_cv_prog_cc_c89" != xno; then : 6415 6416fi 6417 6418ac_ext=c 6419ac_cpp='$CPP $CPPFLAGS' 6420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6422ac_compiler_gnu=$ac_cv_c_compiler_gnu 6423 6424ac_ext=c 6425ac_cpp='$CPP $CPPFLAGS' 6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6428ac_compiler_gnu=$ac_cv_c_compiler_gnu 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6430$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6431if ${am_cv_prog_cc_c_o+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436 6437int 6438main () 6439{ 6440 6441 ; 6442 return 0; 6443} 6444_ACEOF 6445 # Make sure it works both with $CC and with simple cc. 6446 # Following AC_PROG_CC_C_O, we do the test twice because some 6447 # compilers refuse to overwrite an existing .o file with -o, 6448 # though they will create one. 6449 am_cv_prog_cc_c_o=yes 6450 for am_i in 1 2; do 6451 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6452 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6453 ac_status=$? 6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6455 (exit $ac_status); } \ 6456 && test -f conftest2.$ac_objext; then 6457 : OK 6458 else 6459 am_cv_prog_cc_c_o=no 6460 break 6461 fi 6462 done 6463 rm -f core conftest* 6464 unset am_i 6465fi 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6467$as_echo "$am_cv_prog_cc_c_o" >&6; } 6468if test "$am_cv_prog_cc_c_o" != yes; then 6469 # Losing compiler, so override with the script. 6470 # FIXME: It is wrong to rewrite CC. 6471 # But if we don't then we get into trouble of one sort or another. 6472 # A longer-term fix would be to have automake use am__CC in this case, 6473 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6474 CC="$am_aux_dir/compile $CC" 6475fi 6476ac_ext=c 6477ac_cpp='$CPP $CPPFLAGS' 6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6480ac_compiler_gnu=$ac_cv_c_compiler_gnu 6481 6482 6483depcc="$CC" am_compiler_list= 6484 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6486$as_echo_n "checking dependency style of $depcc... " >&6; } 6487if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6488 $as_echo_n "(cached) " >&6 6489else 6490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6491 # We make a subdir and do the tests there. Otherwise we can end up 6492 # making bogus files that we don't know about and never remove. For 6493 # instance it was reported that on HP-UX the gcc test will end up 6494 # making a dummy file named 'D' -- because '-MD' means "put the output 6495 # in D". 6496 rm -rf conftest.dir 6497 mkdir conftest.dir 6498 # Copy depcomp to subdir because otherwise we won't find it if we're 6499 # using a relative directory. 6500 cp "$am_depcomp" conftest.dir 6501 cd conftest.dir 6502 # We will build objects and dependencies in a subdirectory because 6503 # it helps to detect inapplicable dependency modes. For instance 6504 # both Tru64's cc and ICC support -MD to output dependencies as a 6505 # side effect of compilation, but ICC will put the dependencies in 6506 # the current directory while Tru64 will put them in the object 6507 # directory. 6508 mkdir sub 6509 6510 am_cv_CC_dependencies_compiler_type=none 6511 if test "$am_compiler_list" = ""; then 6512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6513 fi 6514 am__universal=false 6515 case " $depcc " in #( 6516 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6517 esac 6518 6519 for depmode in $am_compiler_list; do 6520 # Setup a source with many dependencies, because some compilers 6521 # like to wrap large dependency lists on column 80 (with \), and 6522 # we should not choose a depcomp mode which is confused by this. 6523 # 6524 # We need to recreate these files for each test, as the compiler may 6525 # overwrite some of them when testing with obscure command lines. 6526 # This happens at least with the AIX C compiler. 6527 : > sub/conftest.c 6528 for i in 1 2 3 4 5 6; do 6529 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6530 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6531 # Solaris 10 /bin/sh. 6532 echo '/* dummy */' > sub/conftst$i.h 6533 done 6534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6535 6536 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6537 # mode. It turns out that the SunPro C++ compiler does not properly 6538 # handle '-M -o', and we need to detect this. Also, some Intel 6539 # versions had trouble with output in subdirs. 6540 am__obj=sub/conftest.${OBJEXT-o} 6541 am__minus_obj="-o $am__obj" 6542 case $depmode in 6543 gcc) 6544 # This depmode causes a compiler race in universal mode. 6545 test "$am__universal" = false || continue 6546 ;; 6547 nosideeffect) 6548 # After this tag, mechanisms are not by side-effect, so they'll 6549 # only be used when explicitly requested. 6550 if test "x$enable_dependency_tracking" = xyes; then 6551 continue 6552 else 6553 break 6554 fi 6555 ;; 6556 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6557 # This compiler won't grok '-c -o', but also, the minuso test has 6558 # not run yet. These depmodes are late enough in the game, and 6559 # so weak that their functioning should not be impacted. 6560 am__obj=conftest.${OBJEXT-o} 6561 am__minus_obj= 6562 ;; 6563 none) break ;; 6564 esac 6565 if depmode=$depmode \ 6566 source=sub/conftest.c object=$am__obj \ 6567 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6568 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6569 >/dev/null 2>conftest.err && 6570 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6571 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6572 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6573 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6574 # icc doesn't choke on unknown options, it will just issue warnings 6575 # or remarks (even with -Werror). So we grep stderr for any message 6576 # that says an option was ignored or not supported. 6577 # When given -MP, icc 7.0 and 7.1 complain thusly: 6578 # icc: Command line warning: ignoring option '-M'; no argument required 6579 # The diagnosis changed in icc 8.0: 6580 # icc: Command line remark: option '-MP' not supported 6581 if (grep 'ignoring option' conftest.err || 6582 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6583 am_cv_CC_dependencies_compiler_type=$depmode 6584 break 6585 fi 6586 fi 6587 done 6588 6589 cd .. 6590 rm -rf conftest.dir 6591else 6592 am_cv_CC_dependencies_compiler_type=none 6593fi 6594 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6597$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6598CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6599 6600 if 6601 test "x$enable_dependency_tracking" != xno \ 6602 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6603 am__fastdepCC_TRUE= 6604 am__fastdepCC_FALSE='#' 6605else 6606 am__fastdepCC_TRUE='#' 6607 am__fastdepCC_FALSE= 6608fi 6609 6610 6611am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 6612 6613 6614# We require a C++11 compiler. Check if one is available, and if 6615# necessary, set CXX_DIALECT to some -std=xxx switch. 6616 6617 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 6618 ac_ext=cpp 6619ac_cpp='$CXXCPP $CPPFLAGS' 6620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6623 CXX_DIALECT="" 6624 ac_success=no 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 6626$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 6627if ${ax_cv_cxx_compile_cxx11+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6631/* end confdefs.h. */ 6632 6633 6634// If the compiler admits that it is not ready for C++11, why torture it? 6635// Hopefully, this will speed up the test. 6636 6637#ifndef __cplusplus 6638 6639#error "This is not a C++ compiler" 6640 6641#elif __cplusplus < 201103L 6642 6643#error "This is not a C++11 compiler" 6644 6645#else 6646 6647namespace cxx11 6648{ 6649 6650 namespace test_static_assert 6651 { 6652 6653 template <typename T> 6654 struct check 6655 { 6656 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 6657 }; 6658 6659 } 6660 6661 namespace test_final_override 6662 { 6663 6664 struct Base 6665 { 6666 virtual void f() {} 6667 }; 6668 6669 struct Derived : public Base 6670 { 6671 virtual void f() override {} 6672 }; 6673 6674 } 6675 6676 namespace test_double_right_angle_brackets 6677 { 6678 6679 template < typename T > 6680 struct check {}; 6681 6682 typedef check<void> single_type; 6683 typedef check<check<void>> double_type; 6684 typedef check<check<check<void>>> triple_type; 6685 typedef check<check<check<check<void>>>> quadruple_type; 6686 6687 } 6688 6689 namespace test_decltype 6690 { 6691 6692 int 6693 f() 6694 { 6695 int a = 1; 6696 decltype(a) b = 2; 6697 return a + b; 6698 } 6699 6700 } 6701 6702 namespace test_type_deduction 6703 { 6704 6705 template < typename T1, typename T2 > 6706 struct is_same 6707 { 6708 static const bool value = false; 6709 }; 6710 6711 template < typename T > 6712 struct is_same<T, T> 6713 { 6714 static const bool value = true; 6715 }; 6716 6717 template < typename T1, typename T2 > 6718 auto 6719 add(T1 a1, T2 a2) -> decltype(a1 + a2) 6720 { 6721 return a1 + a2; 6722 } 6723 6724 int 6725 test(const int c, volatile int v) 6726 { 6727 static_assert(is_same<int, decltype(0)>::value == true, ""); 6728 static_assert(is_same<int, decltype(c)>::value == false, ""); 6729 static_assert(is_same<int, decltype(v)>::value == false, ""); 6730 auto ac = c; 6731 auto av = v; 6732 auto sumi = ac + av + 'x'; 6733 auto sumf = ac + av + 1.0; 6734 static_assert(is_same<int, decltype(ac)>::value == true, ""); 6735 static_assert(is_same<int, decltype(av)>::value == true, ""); 6736 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 6737 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 6738 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 6739 return (sumf > 0.0) ? sumi : add(c, v); 6740 } 6741 6742 } 6743 6744 namespace test_noexcept 6745 { 6746 6747 int f() { return 0; } 6748 int g() noexcept { return 0; } 6749 6750 static_assert(noexcept(f()) == false, ""); 6751 static_assert(noexcept(g()) == true, ""); 6752 6753 } 6754 6755 namespace test_constexpr 6756 { 6757 6758 template < typename CharT > 6759 unsigned long constexpr 6760 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 6761 { 6762 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 6763 } 6764 6765 template < typename CharT > 6766 unsigned long constexpr 6767 strlen_c(const CharT *const s) noexcept 6768 { 6769 return strlen_c_r(s, 0UL); 6770 } 6771 6772 static_assert(strlen_c("") == 0UL, ""); 6773 static_assert(strlen_c("1") == 1UL, ""); 6774 static_assert(strlen_c("example") == 7UL, ""); 6775 static_assert(strlen_c("another\0example") == 7UL, ""); 6776 6777 } 6778 6779 namespace test_rvalue_references 6780 { 6781 6782 template < int N > 6783 struct answer 6784 { 6785 static constexpr int value = N; 6786 }; 6787 6788 answer<1> f(int&) { return answer<1>(); } 6789 answer<2> f(const int&) { return answer<2>(); } 6790 answer<3> f(int&&) { return answer<3>(); } 6791 6792 void 6793 test() 6794 { 6795 int i = 0; 6796 const int c = 0; 6797 static_assert(decltype(f(i))::value == 1, ""); 6798 static_assert(decltype(f(c))::value == 2, ""); 6799 static_assert(decltype(f(0))::value == 3, ""); 6800 } 6801 6802 } 6803 6804 namespace test_uniform_initialization 6805 { 6806 6807 struct test 6808 { 6809 static const int zero {}; 6810 static const int one {1}; 6811 }; 6812 6813 static_assert(test::zero == 0, ""); 6814 static_assert(test::one == 1, ""); 6815 6816 } 6817 6818 namespace test_lambdas 6819 { 6820 6821 void 6822 test1() 6823 { 6824 auto lambda1 = [](){}; 6825 auto lambda2 = lambda1; 6826 lambda1(); 6827 lambda2(); 6828 } 6829 6830 int 6831 test2() 6832 { 6833 auto a = [](int i, int j){ return i + j; }(1, 2); 6834 auto b = []() -> int { return '0'; }(); 6835 auto c = [=](){ return a + b; }(); 6836 auto d = [&](){ return c; }(); 6837 auto e = [a, &b](int x) mutable { 6838 const auto identity = [](int y){ return y; }; 6839 for (auto i = 0; i < a; ++i) 6840 a += b--; 6841 return x + identity(a + b); 6842 }(0); 6843 return a + b + c + d + e; 6844 } 6845 6846 int 6847 test3() 6848 { 6849 const auto nullary = [](){ return 0; }; 6850 const auto unary = [](int x){ return x; }; 6851 using nullary_t = decltype(nullary); 6852 using unary_t = decltype(unary); 6853 const auto higher1st = [](nullary_t f){ return f(); }; 6854 const auto higher2nd = [unary](nullary_t f1){ 6855 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 6856 }; 6857 return higher1st(nullary) + higher2nd(nullary)(unary); 6858 } 6859 6860 } 6861 6862 namespace test_variadic_templates 6863 { 6864 6865 template <int...> 6866 struct sum; 6867 6868 template <int N0, int... N1toN> 6869 struct sum<N0, N1toN...> 6870 { 6871 static constexpr auto value = N0 + sum<N1toN...>::value; 6872 }; 6873 6874 template <> 6875 struct sum<> 6876 { 6877 static constexpr auto value = 0; 6878 }; 6879 6880 static_assert(sum<>::value == 0, ""); 6881 static_assert(sum<1>::value == 1, ""); 6882 static_assert(sum<23>::value == 23, ""); 6883 static_assert(sum<1, 2>::value == 3, ""); 6884 static_assert(sum<5, 5, 11>::value == 21, ""); 6885 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 6886 6887 } 6888 6889 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 6890 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 6891 // because of this. 6892 namespace test_template_alias_sfinae 6893 { 6894 6895 struct foo {}; 6896 6897 template<typename T> 6898 using member = typename T::member_type; 6899 6900 template<typename T> 6901 void func(...) {} 6902 6903 template<typename T> 6904 void func(member<T>*) {} 6905 6906 void test(); 6907 6908 void test() { func<foo>(0); } 6909 6910 } 6911 6912} // namespace cxx11 6913 6914#endif // __cplusplus >= 201103L 6915 6916 6917 6918_ACEOF 6919if ac_fn_cxx_try_compile "$LINENO"; then : 6920 ax_cv_cxx_compile_cxx11=yes 6921else 6922 ax_cv_cxx_compile_cxx11=no 6923fi 6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6925fi 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 6927$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 6928 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 6929 ac_success=yes 6930 fi 6931 6932 if test x$ac_success = xno; then 6933 for alternative in ${ax_cxx_compile_alternatives}; do 6934 switch="-std=gnu++${alternative}" 6935 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 6937$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 6938if eval \${$cachevar+:} false; then : 6939 $as_echo_n "(cached) " >&6 6940else 6941 ac_save_CXX="$CXX" 6942 CXX="$CXX $switch" 6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944/* end confdefs.h. */ 6945 6946 6947// If the compiler admits that it is not ready for C++11, why torture it? 6948// Hopefully, this will speed up the test. 6949 6950#ifndef __cplusplus 6951 6952#error "This is not a C++ compiler" 6953 6954#elif __cplusplus < 201103L 6955 6956#error "This is not a C++11 compiler" 6957 6958#else 6959 6960namespace cxx11 6961{ 6962 6963 namespace test_static_assert 6964 { 6965 6966 template <typename T> 6967 struct check 6968 { 6969 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 6970 }; 6971 6972 } 6973 6974 namespace test_final_override 6975 { 6976 6977 struct Base 6978 { 6979 virtual void f() {} 6980 }; 6981 6982 struct Derived : public Base 6983 { 6984 virtual void f() override {} 6985 }; 6986 6987 } 6988 6989 namespace test_double_right_angle_brackets 6990 { 6991 6992 template < typename T > 6993 struct check {}; 6994 6995 typedef check<void> single_type; 6996 typedef check<check<void>> double_type; 6997 typedef check<check<check<void>>> triple_type; 6998 typedef check<check<check<check<void>>>> quadruple_type; 6999 7000 } 7001 7002 namespace test_decltype 7003 { 7004 7005 int 7006 f() 7007 { 7008 int a = 1; 7009 decltype(a) b = 2; 7010 return a + b; 7011 } 7012 7013 } 7014 7015 namespace test_type_deduction 7016 { 7017 7018 template < typename T1, typename T2 > 7019 struct is_same 7020 { 7021 static const bool value = false; 7022 }; 7023 7024 template < typename T > 7025 struct is_same<T, T> 7026 { 7027 static const bool value = true; 7028 }; 7029 7030 template < typename T1, typename T2 > 7031 auto 7032 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7033 { 7034 return a1 + a2; 7035 } 7036 7037 int 7038 test(const int c, volatile int v) 7039 { 7040 static_assert(is_same<int, decltype(0)>::value == true, ""); 7041 static_assert(is_same<int, decltype(c)>::value == false, ""); 7042 static_assert(is_same<int, decltype(v)>::value == false, ""); 7043 auto ac = c; 7044 auto av = v; 7045 auto sumi = ac + av + 'x'; 7046 auto sumf = ac + av + 1.0; 7047 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7048 static_assert(is_same<int, decltype(av)>::value == true, ""); 7049 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7050 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7051 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7052 return (sumf > 0.0) ? sumi : add(c, v); 7053 } 7054 7055 } 7056 7057 namespace test_noexcept 7058 { 7059 7060 int f() { return 0; } 7061 int g() noexcept { return 0; } 7062 7063 static_assert(noexcept(f()) == false, ""); 7064 static_assert(noexcept(g()) == true, ""); 7065 7066 } 7067 7068 namespace test_constexpr 7069 { 7070 7071 template < typename CharT > 7072 unsigned long constexpr 7073 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7074 { 7075 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7076 } 7077 7078 template < typename CharT > 7079 unsigned long constexpr 7080 strlen_c(const CharT *const s) noexcept 7081 { 7082 return strlen_c_r(s, 0UL); 7083 } 7084 7085 static_assert(strlen_c("") == 0UL, ""); 7086 static_assert(strlen_c("1") == 1UL, ""); 7087 static_assert(strlen_c("example") == 7UL, ""); 7088 static_assert(strlen_c("another\0example") == 7UL, ""); 7089 7090 } 7091 7092 namespace test_rvalue_references 7093 { 7094 7095 template < int N > 7096 struct answer 7097 { 7098 static constexpr int value = N; 7099 }; 7100 7101 answer<1> f(int&) { return answer<1>(); } 7102 answer<2> f(const int&) { return answer<2>(); } 7103 answer<3> f(int&&) { return answer<3>(); } 7104 7105 void 7106 test() 7107 { 7108 int i = 0; 7109 const int c = 0; 7110 static_assert(decltype(f(i))::value == 1, ""); 7111 static_assert(decltype(f(c))::value == 2, ""); 7112 static_assert(decltype(f(0))::value == 3, ""); 7113 } 7114 7115 } 7116 7117 namespace test_uniform_initialization 7118 { 7119 7120 struct test 7121 { 7122 static const int zero {}; 7123 static const int one {1}; 7124 }; 7125 7126 static_assert(test::zero == 0, ""); 7127 static_assert(test::one == 1, ""); 7128 7129 } 7130 7131 namespace test_lambdas 7132 { 7133 7134 void 7135 test1() 7136 { 7137 auto lambda1 = [](){}; 7138 auto lambda2 = lambda1; 7139 lambda1(); 7140 lambda2(); 7141 } 7142 7143 int 7144 test2() 7145 { 7146 auto a = [](int i, int j){ return i + j; }(1, 2); 7147 auto b = []() -> int { return '0'; }(); 7148 auto c = [=](){ return a + b; }(); 7149 auto d = [&](){ return c; }(); 7150 auto e = [a, &b](int x) mutable { 7151 const auto identity = [](int y){ return y; }; 7152 for (auto i = 0; i < a; ++i) 7153 a += b--; 7154 return x + identity(a + b); 7155 }(0); 7156 return a + b + c + d + e; 7157 } 7158 7159 int 7160 test3() 7161 { 7162 const auto nullary = [](){ return 0; }; 7163 const auto unary = [](int x){ return x; }; 7164 using nullary_t = decltype(nullary); 7165 using unary_t = decltype(unary); 7166 const auto higher1st = [](nullary_t f){ return f(); }; 7167 const auto higher2nd = [unary](nullary_t f1){ 7168 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 7169 }; 7170 return higher1st(nullary) + higher2nd(nullary)(unary); 7171 } 7172 7173 } 7174 7175 namespace test_variadic_templates 7176 { 7177 7178 template <int...> 7179 struct sum; 7180 7181 template <int N0, int... N1toN> 7182 struct sum<N0, N1toN...> 7183 { 7184 static constexpr auto value = N0 + sum<N1toN...>::value; 7185 }; 7186 7187 template <> 7188 struct sum<> 7189 { 7190 static constexpr auto value = 0; 7191 }; 7192 7193 static_assert(sum<>::value == 0, ""); 7194 static_assert(sum<1>::value == 1, ""); 7195 static_assert(sum<23>::value == 23, ""); 7196 static_assert(sum<1, 2>::value == 3, ""); 7197 static_assert(sum<5, 5, 11>::value == 21, ""); 7198 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 7199 7200 } 7201 7202 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 7203 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 7204 // because of this. 7205 namespace test_template_alias_sfinae 7206 { 7207 7208 struct foo {}; 7209 7210 template<typename T> 7211 using member = typename T::member_type; 7212 7213 template<typename T> 7214 void func(...) {} 7215 7216 template<typename T> 7217 void func(member<T>*) {} 7218 7219 void test(); 7220 7221 void test() { func<foo>(0); } 7222 7223 } 7224 7225} // namespace cxx11 7226 7227#endif // __cplusplus >= 201103L 7228 7229 7230 7231_ACEOF 7232if ac_fn_cxx_try_compile "$LINENO"; then : 7233 eval $cachevar=yes 7234else 7235 eval $cachevar=no 7236fi 7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7238 CXX="$ac_save_CXX" 7239fi 7240eval ac_res=\$$cachevar 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7242$as_echo "$ac_res" >&6; } 7243 if eval test x\$$cachevar = xyes; then 7244 CXX_DIALECT="$switch" 7245 ac_success=yes 7246 break 7247 fi 7248 done 7249 fi 7250 7251 if test x$ac_success = xno; then 7252 for alternative in ${ax_cxx_compile_alternatives}; do 7253 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 7254 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 7256$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 7257if eval \${$cachevar+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 ac_save_CXX="$CXX" 7261 CXX="$CXX $switch" 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7263/* end confdefs.h. */ 7264 7265 7266// If the compiler admits that it is not ready for C++11, why torture it? 7267// Hopefully, this will speed up the test. 7268 7269#ifndef __cplusplus 7270 7271#error "This is not a C++ compiler" 7272 7273#elif __cplusplus < 201103L 7274 7275#error "This is not a C++11 compiler" 7276 7277#else 7278 7279namespace cxx11 7280{ 7281 7282 namespace test_static_assert 7283 { 7284 7285 template <typename T> 7286 struct check 7287 { 7288 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 7289 }; 7290 7291 } 7292 7293 namespace test_final_override 7294 { 7295 7296 struct Base 7297 { 7298 virtual void f() {} 7299 }; 7300 7301 struct Derived : public Base 7302 { 7303 virtual void f() override {} 7304 }; 7305 7306 } 7307 7308 namespace test_double_right_angle_brackets 7309 { 7310 7311 template < typename T > 7312 struct check {}; 7313 7314 typedef check<void> single_type; 7315 typedef check<check<void>> double_type; 7316 typedef check<check<check<void>>> triple_type; 7317 typedef check<check<check<check<void>>>> quadruple_type; 7318 7319 } 7320 7321 namespace test_decltype 7322 { 7323 7324 int 7325 f() 7326 { 7327 int a = 1; 7328 decltype(a) b = 2; 7329 return a + b; 7330 } 7331 7332 } 7333 7334 namespace test_type_deduction 7335 { 7336 7337 template < typename T1, typename T2 > 7338 struct is_same 7339 { 7340 static const bool value = false; 7341 }; 7342 7343 template < typename T > 7344 struct is_same<T, T> 7345 { 7346 static const bool value = true; 7347 }; 7348 7349 template < typename T1, typename T2 > 7350 auto 7351 add(T1 a1, T2 a2) -> decltype(a1 + a2) 7352 { 7353 return a1 + a2; 7354 } 7355 7356 int 7357 test(const int c, volatile int v) 7358 { 7359 static_assert(is_same<int, decltype(0)>::value == true, ""); 7360 static_assert(is_same<int, decltype(c)>::value == false, ""); 7361 static_assert(is_same<int, decltype(v)>::value == false, ""); 7362 auto ac = c; 7363 auto av = v; 7364 auto sumi = ac + av + 'x'; 7365 auto sumf = ac + av + 1.0; 7366 static_assert(is_same<int, decltype(ac)>::value == true, ""); 7367 static_assert(is_same<int, decltype(av)>::value == true, ""); 7368 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 7369 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 7370 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 7371 return (sumf > 0.0) ? sumi : add(c, v); 7372 } 7373 7374 } 7375 7376 namespace test_noexcept 7377 { 7378 7379 int f() { return 0; } 7380 int g() noexcept { return 0; } 7381 7382 static_assert(noexcept(f()) == false, ""); 7383 static_assert(noexcept(g()) == true, ""); 7384 7385 } 7386 7387 namespace test_constexpr 7388 { 7389 7390 template < typename CharT > 7391 unsigned long constexpr 7392 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 7393 { 7394 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 7395 } 7396 7397 template < typename CharT > 7398 unsigned long constexpr 7399 strlen_c(const CharT *const s) noexcept 7400 { 7401 return strlen_c_r(s, 0UL); 7402 } 7403 7404 static_assert(strlen_c("") == 0UL, ""); 7405 static_assert(strlen_c("1") == 1UL, ""); 7406 static_assert(strlen_c("example") == 7UL, ""); 7407 static_assert(strlen_c("another\0example") == 7UL, ""); 7408 7409 } 7410 7411 namespace test_rvalue_references 7412 { 7413 7414 template < int N > 7415 struct answer 7416 { 7417 static constexpr int value = N; 7418 }; 7419 7420 answer<1> f(int&) { return answer<1>(); } 7421 answer<2> f(const int&) { return answer<2>(); } 7422 answer<3> f(int&&) { return answer<3>(); } 7423 7424 void 7425 test() 7426 { 7427 int i = 0; 7428 const int c = 0; 7429 static_assert(decltype(f(i))::value == 1, ""); 7430 static_assert(decltype(f(c))::value == 2, ""); 7431 static_assert(decltype(f(0))::value == 3, ""); 7432 } 7433 7434 } 7435 7436 namespace test_uniform_initialization 7437 { 7438 7439 struct test 7440 { 7441 static const int zero {}; 7442 static const int one {1}; 7443 }; 7444 7445 static_assert(test::zero == 0, ""); 7446 static_assert(test::one == 1, ""); 7447 7448 } 7449 7450 namespace test_lambdas 7451 { 7452 7453 void 7454 test1() 7455 { 7456 auto lambda1 = [](){}; 7457 auto lambda2 = lambda1; 7458 lambda1(); 7459 lambda2(); 7460 } 7461 7462 int 7463 test2() 7464 { 7465 auto a = [](int i, int j){ return i + j; }(1, 2); 7466 auto b = []() -> int { return '0'; }(); 7467 auto c = [=](){ return a + b; }(); 7468 auto d = [&](){ return c; }(); 7469 auto e = [a, &b](int x) mutable { 7470 const auto identity = [](int y){ return y; }; 7471 for (auto i = 0; i < a; ++i) 7472 a += b--; 7473 return x + identity(a + b); 7474 }(0); 7475 return a + b + c + d + e; 7476 } 7477 7478 int 7479 test3() 7480 { 7481 const auto nullary = [](){ return 0; }; 7482 const auto unary = [](int x){ return x; }; 7483 using nullary_t = decltype(nullary); 7484 using unary_t = decltype(unary); 7485 const auto higher1st = [](nullary_t f){ return f(); }; 7486 const auto higher2nd = [unary](nullary_t f1){ 7487 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 7488 }; 7489 return higher1st(nullary) + higher2nd(nullary)(unary); 7490 } 7491 7492 } 7493 7494 namespace test_variadic_templates 7495 { 7496 7497 template <int...> 7498 struct sum; 7499 7500 template <int N0, int... N1toN> 7501 struct sum<N0, N1toN...> 7502 { 7503 static constexpr auto value = N0 + sum<N1toN...>::value; 7504 }; 7505 7506 template <> 7507 struct sum<> 7508 { 7509 static constexpr auto value = 0; 7510 }; 7511 7512 static_assert(sum<>::value == 0, ""); 7513 static_assert(sum<1>::value == 1, ""); 7514 static_assert(sum<23>::value == 23, ""); 7515 static_assert(sum<1, 2>::value == 3, ""); 7516 static_assert(sum<5, 5, 11>::value == 21, ""); 7517 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 7518 7519 } 7520 7521 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 7522 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 7523 // because of this. 7524 namespace test_template_alias_sfinae 7525 { 7526 7527 struct foo {}; 7528 7529 template<typename T> 7530 using member = typename T::member_type; 7531 7532 template<typename T> 7533 void func(...) {} 7534 7535 template<typename T> 7536 void func(member<T>*) {} 7537 7538 void test(); 7539 7540 void test() { func<foo>(0); } 7541 7542 } 7543 7544} // namespace cxx11 7545 7546#endif // __cplusplus >= 201103L 7547 7548 7549 7550_ACEOF 7551if ac_fn_cxx_try_compile "$LINENO"; then : 7552 eval $cachevar=yes 7553else 7554 eval $cachevar=no 7555fi 7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7557 CXX="$ac_save_CXX" 7558fi 7559eval ac_res=\$$cachevar 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7561$as_echo "$ac_res" >&6; } 7562 if eval test x\$$cachevar = xyes; then 7563 CXX_DIALECT="$switch" 7564 ac_success=yes 7565 break 7566 fi 7567 done 7568 if test x$ac_success = xyes; then 7569 break 7570 fi 7571 done 7572 fi 7573 ac_ext=c 7574ac_cpp='$CPP $CPPFLAGS' 7575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7577ac_compiler_gnu=$ac_cv_c_compiler_gnu 7578 7579 if test x$ax_cxx_compile_cxx11_required = xtrue; then 7580 if test x$ac_success = xno; then 7581 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 7582 fi 7583 fi 7584 if test x$ac_success = xno; then 7585 HAVE_CXX11=0 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 7587$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 7588 else 7589 HAVE_CXX11=1 7590 7591$as_echo "#define HAVE_CXX11 1" >>confdefs.h 7592 7593 fi 7594 7595 7596 7597 7598# If we haven't got the data from the intl directory, 7599# assume NLS is disabled. 7600USE_NLS=no 7601LIBINTL= 7602LIBINTL_DEP= 7603INCINTL= 7604XGETTEXT= 7605GMSGFMT= 7606POSUB= 7607 7608if test -f ../intl/config.intl; then 7609 . ../intl/config.intl 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7612$as_echo_n "checking whether NLS is requested... " >&6; } 7613if test x"$USE_NLS" != xyes; then 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7615$as_echo "no" >&6; } 7616else 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7618$as_echo "yes" >&6; } 7619 7620$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7621 7622 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 7624$as_echo_n "checking for catalogs to be installed... " >&6; } 7625 # Look for .po and .gmo files in the source directory. 7626 CATALOGS= 7627 XLINGUAS= 7628 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 7629 # If there aren't any .gmo files the shell will give us the 7630 # literal string "../path/to/srcdir/po/*.gmo" which has to be 7631 # weeded out. 7632 case "$cat" in *\**) 7633 continue;; 7634 esac 7635 # The quadruple backslash is collapsed to a double backslash 7636 # by the backticks, then collapsed again by the double quotes, 7637 # leaving us with one backslash in the sed expression (right 7638 # before the dot that mustn't act as a wildcard). 7639 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 7640 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 7641 # The user is allowed to set LINGUAS to a list of languages to 7642 # install catalogs for. If it's empty that means "all of them." 7643 if test "x$LINGUAS" = x; then 7644 CATALOGS="$CATALOGS $cat" 7645 XLINGUAS="$XLINGUAS $lang" 7646 else 7647 case "$LINGUAS" in *$lang*) 7648 CATALOGS="$CATALOGS $cat" 7649 XLINGUAS="$XLINGUAS $lang" 7650 ;; 7651 esac 7652 fi 7653 done 7654 LINGUAS="$XLINGUAS" 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 7656$as_echo "$LINGUAS" >&6; } 7657 7658 7659 DATADIRNAME=share 7660 7661 INSTOBJEXT=.mo 7662 7663 GENCAT=gencat 7664 7665 CATOBJEXT=.gmo 7666 7667fi 7668 7669 7670 # Check for presence and size of long long. 7671 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 7672if test "x$ac_cv_type_long_long" = xyes; then : 7673 7674cat >>confdefs.h <<_ACEOF 7675#define HAVE_LONG_LONG 1 7676_ACEOF 7677 7678# The cast to long int works around a bug in the HP C Compiler 7679# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7680# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7681# This bug is HP SR number 8606223364. 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7683$as_echo_n "checking size of long long... " >&6; } 7684if ${ac_cv_sizeof_long_long+:} false; then : 7685 $as_echo_n "(cached) " >&6 7686else 7687 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 7688 7689else 7690 if test "$ac_cv_type_long_long" = yes; then 7691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7693as_fn_error 77 "cannot compute sizeof (long long) 7694See \`config.log' for more details" "$LINENO" 5; } 7695 else 7696 ac_cv_sizeof_long_long=0 7697 fi 7698fi 7699 7700fi 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7702$as_echo "$ac_cv_sizeof_long_long" >&6; } 7703 7704 7705 7706cat >>confdefs.h <<_ACEOF 7707#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7708_ACEOF 7709 7710 7711fi 7712 7713 7714 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh` 7715ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default" 7716if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : 7717 ac_have_decl=1 7718else 7719 ac_have_decl=0 7720fi 7721 7722cat >>confdefs.h <<_ACEOF 7723#define HAVE_DECL_BASENAME $ac_have_decl 7724_ACEOF 7725ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 7726if test "x$ac_cv_have_decl_ffs" = xyes; then : 7727 ac_have_decl=1 7728else 7729 ac_have_decl=0 7730fi 7731 7732cat >>confdefs.h <<_ACEOF 7733#define HAVE_DECL_FFS $ac_have_decl 7734_ACEOF 7735ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 7736if test "x$ac_cv_have_decl_asprintf" = xyes; then : 7737 ac_have_decl=1 7738else 7739 ac_have_decl=0 7740fi 7741 7742cat >>confdefs.h <<_ACEOF 7743#define HAVE_DECL_ASPRINTF $ac_have_decl 7744_ACEOF 7745ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 7746if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 7747 ac_have_decl=1 7748else 7749 ac_have_decl=0 7750fi 7751 7752cat >>confdefs.h <<_ACEOF 7753#define HAVE_DECL_VASPRINTF $ac_have_decl 7754_ACEOF 7755ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 7756if test "x$ac_cv_have_decl_snprintf" = xyes; then : 7757 ac_have_decl=1 7758else 7759 ac_have_decl=0 7760fi 7761 7762cat >>confdefs.h <<_ACEOF 7763#define HAVE_DECL_SNPRINTF $ac_have_decl 7764_ACEOF 7765ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 7766if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 7767 ac_have_decl=1 7768else 7769 ac_have_decl=0 7770fi 7771 7772cat >>confdefs.h <<_ACEOF 7773#define HAVE_DECL_VSNPRINTF $ac_have_decl 7774_ACEOF 7775 7776 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default" 7777if test "x$ac_cv_have_decl_strtol" = xyes; then : 7778 ac_have_decl=1 7779else 7780 ac_have_decl=0 7781fi 7782 7783cat >>confdefs.h <<_ACEOF 7784#define HAVE_DECL_STRTOL $ac_have_decl 7785_ACEOF 7786ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default" 7787if test "x$ac_cv_have_decl_strtoul" = xyes; then : 7788 ac_have_decl=1 7789else 7790 ac_have_decl=0 7791fi 7792 7793cat >>confdefs.h <<_ACEOF 7794#define HAVE_DECL_STRTOUL $ac_have_decl 7795_ACEOF 7796ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 7797if test "x$ac_cv_have_decl_strtoll" = xyes; then : 7798 ac_have_decl=1 7799else 7800 ac_have_decl=0 7801fi 7802 7803cat >>confdefs.h <<_ACEOF 7804#define HAVE_DECL_STRTOLL $ac_have_decl 7805_ACEOF 7806ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 7807if test "x$ac_cv_have_decl_strtoull" = xyes; then : 7808 ac_have_decl=1 7809else 7810 ac_have_decl=0 7811fi 7812 7813cat >>confdefs.h <<_ACEOF 7814#define HAVE_DECL_STRTOULL $ac_have_decl 7815_ACEOF 7816 7817 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 7818if test "x$ac_cv_have_decl_strverscmp" = xyes; then : 7819 ac_have_decl=1 7820else 7821 ac_have_decl=0 7822fi 7823 7824cat >>confdefs.h <<_ACEOF 7825#define HAVE_DECL_STRVERSCMP $ac_have_decl 7826_ACEOF 7827 7828 7829ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7830if test "x$ac_cv_type_size_t" = xyes; then : 7831 7832else 7833 7834cat >>confdefs.h <<_ACEOF 7835#define size_t unsigned int 7836_ACEOF 7837 7838fi 7839 7840 7841 7842 7843 for ac_header in $ac_header_list 7844do : 7845 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7846ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7847" 7848if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7849 cat >>confdefs.h <<_ACEOF 7850#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7851_ACEOF 7852 7853fi 7854 7855done 7856 7857 7858 7859 7860 7861 7862 7863ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7864if test "x$ac_cv_type_pid_t" = xyes; then : 7865 7866else 7867 7868cat >>confdefs.h <<_ACEOF 7869#define pid_t int 7870_ACEOF 7871 7872fi 7873 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7875$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7876if ${ac_cv_path_SED+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7880 for ac_i in 1 2 3 4 5 6 7; do 7881 ac_script="$ac_script$as_nl$ac_script" 7882 done 7883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7884 { ac_script=; unset ac_script;} 7885 if test -z "$SED"; then 7886 ac_path_SED_found=false 7887 # Loop through the user's path and test for each of PROGNAME-LIST 7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889for as_dir in $PATH 7890do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_prog in sed gsed; do 7894 for ac_exec_ext in '' $ac_executable_extensions; do 7895 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7896 as_fn_executable_p "$ac_path_SED" || continue 7897# Check for GNU ac_path_SED and select it if it is found. 7898 # Check for GNU $ac_path_SED 7899case `"$ac_path_SED" --version 2>&1` in 7900*GNU*) 7901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7902*) 7903 ac_count=0 7904 $as_echo_n 0123456789 >"conftest.in" 7905 while : 7906 do 7907 cat "conftest.in" "conftest.in" >"conftest.tmp" 7908 mv "conftest.tmp" "conftest.in" 7909 cp "conftest.in" "conftest.nl" 7910 $as_echo '' >> "conftest.nl" 7911 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7913 as_fn_arith $ac_count + 1 && ac_count=$as_val 7914 if test $ac_count -gt ${ac_path_SED_max-0}; then 7915 # Best one so far, save it but keep looking for a better one 7916 ac_cv_path_SED="$ac_path_SED" 7917 ac_path_SED_max=$ac_count 7918 fi 7919 # 10*(2^10) chars as input seems more than enough 7920 test $ac_count -gt 10 && break 7921 done 7922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7923esac 7924 7925 $ac_path_SED_found && break 3 7926 done 7927 done 7928 done 7929IFS=$as_save_IFS 7930 if test -z "$ac_cv_path_SED"; then 7931 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7932 fi 7933else 7934 ac_cv_path_SED=$SED 7935fi 7936 7937fi 7938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7939$as_echo "$ac_cv_path_SED" >&6; } 7940 SED="$ac_cv_path_SED" 7941 rm -f conftest.sed 7942 7943 7944 if test "X$prefix" = "XNONE"; then 7945 acl_final_prefix="$ac_default_prefix" 7946 else 7947 acl_final_prefix="$prefix" 7948 fi 7949 if test "X$exec_prefix" = "XNONE"; then 7950 acl_final_exec_prefix='${prefix}' 7951 else 7952 acl_final_exec_prefix="$exec_prefix" 7953 fi 7954 acl_save_prefix="$prefix" 7955 prefix="$acl_final_prefix" 7956 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7957 prefix="$acl_save_prefix" 7958 7959 7960# Check whether --with-gnu-ld was given. 7961if test "${with_gnu_ld+set}" = set; then : 7962 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7963else 7964 with_gnu_ld=no 7965fi 7966 7967# Prepare PATH_SEPARATOR. 7968# The user is always right. 7969if test "${PATH_SEPARATOR+set}" != set; then 7970 echo "#! /bin/sh" >conf$$.sh 7971 echo "exit 0" >>conf$$.sh 7972 chmod +x conf$$.sh 7973 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7974 PATH_SEPARATOR=';' 7975 else 7976 PATH_SEPARATOR=: 7977 fi 7978 rm -f conf$$.sh 7979fi 7980ac_prog=ld 7981if test "$GCC" = yes; then 7982 # Check if gcc -print-prog-name=ld gives a path. 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 7984$as_echo_n "checking for ld used by GCC... " >&6; } 7985 case $host in 7986 *-*-mingw*) 7987 # gcc leaves a trailing carriage return which upsets mingw 7988 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7989 *) 7990 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7991 esac 7992 case $ac_prog in 7993 # Accept absolute paths. 7994 [\\/]* | [A-Za-z]:[\\/]*) 7995 re_direlt='/[^/][^/]*/\.\./' 7996 # Canonicalize the path of ld 7997 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7998 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7999 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8000 done 8001 test -z "$LD" && LD="$ac_prog" 8002 ;; 8003 "") 8004 # If it fails, then pretend we aren't using GCC. 8005 ac_prog=ld 8006 ;; 8007 *) 8008 # If it is relative, then search for the first ld in PATH. 8009 with_gnu_ld=unknown 8010 ;; 8011 esac 8012elif test "$with_gnu_ld" = yes; then 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8014$as_echo_n "checking for GNU ld... " >&6; } 8015else 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8017$as_echo_n "checking for non-GNU ld... " >&6; } 8018fi 8019if ${acl_cv_path_LD+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021else 8022 if test -z "$LD"; then 8023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8024 for ac_dir in $PATH; do 8025 test -z "$ac_dir" && ac_dir=. 8026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8027 acl_cv_path_LD="$ac_dir/$ac_prog" 8028 # Check to see if the program is GNU ld. I'd rather use --version, 8029 # but apparently some GNU ld's only accept -v. 8030 # Break only if it was the GNU/non-GNU ld that we prefer. 8031 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 8032 test "$with_gnu_ld" != no && break 8033 else 8034 test "$with_gnu_ld" != yes && break 8035 fi 8036 fi 8037 done 8038 IFS="$ac_save_ifs" 8039else 8040 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8041fi 8042fi 8043 8044LD="$acl_cv_path_LD" 8045if test -n "$LD"; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8047$as_echo "$LD" >&6; } 8048else 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050$as_echo "no" >&6; } 8051fi 8052test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8054$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8055if ${acl_cv_prog_gnu_ld+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8059if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8060 acl_cv_prog_gnu_ld=yes 8061else 8062 acl_cv_prog_gnu_ld=no 8063fi 8064fi 8065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 8066$as_echo "$acl_cv_prog_gnu_ld" >&6; } 8067with_gnu_ld=$acl_cv_prog_gnu_ld 8068 8069 8070 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 8072$as_echo_n "checking for shared library run path origin... " >&6; } 8073if ${acl_cv_rpath+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 8077 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8078 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8079 . ./conftest.sh 8080 rm -f ./conftest.sh 8081 acl_cv_rpath=done 8082 8083fi 8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 8085$as_echo "$acl_cv_rpath" >&6; } 8086 wl="$acl_cv_wl" 8087 libext="$acl_cv_libext" 8088 shlibext="$acl_cv_shlibext" 8089 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8090 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8091 hardcode_direct="$acl_cv_hardcode_direct" 8092 hardcode_minus_L="$acl_cv_hardcode_minus_L" 8093 # Check whether --enable-rpath was given. 8094if test "${enable_rpath+set}" = set; then : 8095 enableval=$enable_rpath; : 8096else 8097 enable_rpath=yes 8098fi 8099 8100 8101 8102 # Set the 'development' global. 8103 . $srcdir/../bfd/development.sh 8104 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8106$as_echo_n "checking for ANSI C header files... " >&6; } 8107if ${ac_cv_header_stdc+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8111/* end confdefs.h. */ 8112#include <stdlib.h> 8113#include <stdarg.h> 8114#include <string.h> 8115#include <float.h> 8116 8117int 8118main () 8119{ 8120 8121 ; 8122 return 0; 8123} 8124_ACEOF 8125if ac_fn_c_try_compile "$LINENO"; then : 8126 ac_cv_header_stdc=yes 8127else 8128 ac_cv_header_stdc=no 8129fi 8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8131 8132if test $ac_cv_header_stdc = yes; then 8133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136#include <string.h> 8137 8138_ACEOF 8139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8140 $EGREP "memchr" >/dev/null 2>&1; then : 8141 8142else 8143 ac_cv_header_stdc=no 8144fi 8145rm -f conftest* 8146 8147fi 8148 8149if test $ac_cv_header_stdc = yes; then 8150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8152/* end confdefs.h. */ 8153#include <stdlib.h> 8154 8155_ACEOF 8156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8157 $EGREP "free" >/dev/null 2>&1; then : 8158 8159else 8160 ac_cv_header_stdc=no 8161fi 8162rm -f conftest* 8163 8164fi 8165 8166if test $ac_cv_header_stdc = yes; then 8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8168 if test "$cross_compiling" = yes; then : 8169 : 8170else 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173#include <ctype.h> 8174#include <stdlib.h> 8175#if ((' ' & 0x0FF) == 0x020) 8176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8178#else 8179# define ISLOWER(c) \ 8180 (('a' <= (c) && (c) <= 'i') \ 8181 || ('j' <= (c) && (c) <= 'r') \ 8182 || ('s' <= (c) && (c) <= 'z')) 8183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8184#endif 8185 8186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8187int 8188main () 8189{ 8190 int i; 8191 for (i = 0; i < 256; i++) 8192 if (XOR (islower (i), ISLOWER (i)) 8193 || toupper (i) != TOUPPER (i)) 8194 return 2; 8195 return 0; 8196} 8197_ACEOF 8198if ac_fn_c_try_run "$LINENO"; then : 8199 8200else 8201 ac_cv_header_stdc=no 8202fi 8203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8204 conftest.$ac_objext conftest.beam conftest.$ac_ext 8205fi 8206 8207fi 8208fi 8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8210$as_echo "$ac_cv_header_stdc" >&6; } 8211if test $ac_cv_header_stdc = yes; then 8212 8213$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8214 8215fi 8216 8217 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8218# for constant arguments. Useless! 8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8220$as_echo_n "checking for working alloca.h... " >&6; } 8221if ${ac_cv_working_alloca_h+:} false; then : 8222 $as_echo_n "(cached) " >&6 8223else 8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8225/* end confdefs.h. */ 8226#include <alloca.h> 8227int 8228main () 8229{ 8230char *p = (char *) alloca (2 * sizeof (int)); 8231 if (p) return 0; 8232 ; 8233 return 0; 8234} 8235_ACEOF 8236if ac_fn_c_try_link "$LINENO"; then : 8237 ac_cv_working_alloca_h=yes 8238else 8239 ac_cv_working_alloca_h=no 8240fi 8241rm -f core conftest.err conftest.$ac_objext \ 8242 conftest$ac_exeext conftest.$ac_ext 8243fi 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8245$as_echo "$ac_cv_working_alloca_h" >&6; } 8246if test $ac_cv_working_alloca_h = yes; then 8247 8248$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8249 8250fi 8251 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8253$as_echo_n "checking for alloca... " >&6; } 8254if ${ac_cv_func_alloca_works+:} false; then : 8255 $as_echo_n "(cached) " >&6 8256else 8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259#ifdef __GNUC__ 8260# define alloca __builtin_alloca 8261#else 8262# ifdef _MSC_VER 8263# include <malloc.h> 8264# define alloca _alloca 8265# else 8266# ifdef HAVE_ALLOCA_H 8267# include <alloca.h> 8268# else 8269# ifdef _AIX 8270 #pragma alloca 8271# else 8272# ifndef alloca /* predefined by HP cc +Olibcalls */ 8273void *alloca (size_t); 8274# endif 8275# endif 8276# endif 8277# endif 8278#endif 8279 8280int 8281main () 8282{ 8283char *p = (char *) alloca (1); 8284 if (p) return 0; 8285 ; 8286 return 0; 8287} 8288_ACEOF 8289if ac_fn_c_try_link "$LINENO"; then : 8290 ac_cv_func_alloca_works=yes 8291else 8292 ac_cv_func_alloca_works=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext \ 8295 conftest$ac_exeext conftest.$ac_ext 8296fi 8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8298$as_echo "$ac_cv_func_alloca_works" >&6; } 8299 8300if test $ac_cv_func_alloca_works = yes; then 8301 8302$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8303 8304else 8305 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8306# that cause trouble. Some versions do not even contain alloca or 8307# contain a buggy version. If you still want to use their alloca, 8308# use ar to extract alloca.o from them instead of compiling alloca.c. 8309 8310ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8311 8312$as_echo "#define C_ALLOCA 1" >>confdefs.h 8313 8314 8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8316$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8317if ${ac_cv_os_cray+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322#if defined CRAY && ! defined CRAY2 8323webecray 8324#else 8325wenotbecray 8326#endif 8327 8328_ACEOF 8329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8330 $EGREP "webecray" >/dev/null 2>&1; then : 8331 ac_cv_os_cray=yes 8332else 8333 ac_cv_os_cray=no 8334fi 8335rm -f conftest* 8336 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8339$as_echo "$ac_cv_os_cray" >&6; } 8340if test $ac_cv_os_cray = yes; then 8341 for ac_func in _getb67 GETB67 getb67; do 8342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8343ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8344if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8345 8346cat >>confdefs.h <<_ACEOF 8347#define CRAY_STACKSEG_END $ac_func 8348_ACEOF 8349 8350 break 8351fi 8352 8353 done 8354fi 8355 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8357$as_echo_n "checking stack direction for C alloca... " >&6; } 8358if ${ac_cv_c_stack_direction+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 if test "$cross_compiling" = yes; then : 8362 ac_cv_c_stack_direction=0 8363else 8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365/* end confdefs.h. */ 8366$ac_includes_default 8367int 8368find_stack_direction (int *addr, int depth) 8369{ 8370 int dir, dummy = 0; 8371 if (! addr) 8372 addr = &dummy; 8373 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8374 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8375 return dir + dummy; 8376} 8377 8378int 8379main (int argc, char **argv) 8380{ 8381 return find_stack_direction (0, argc + !argv + 20) < 0; 8382} 8383_ACEOF 8384if ac_fn_c_try_run "$LINENO"; then : 8385 ac_cv_c_stack_direction=1 8386else 8387 ac_cv_c_stack_direction=-1 8388fi 8389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8390 conftest.$ac_objext conftest.beam conftest.$ac_ext 8391fi 8392 8393fi 8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8395$as_echo "$ac_cv_c_stack_direction" >&6; } 8396cat >>confdefs.h <<_ACEOF 8397#define STACK_DIRECTION $ac_cv_c_stack_direction 8398_ACEOF 8399 8400 8401fi 8402 8403 8404 WIN32APILIBS= 8405 case ${host} in 8406 *mingw32*) 8407 8408$as_echo "#define USE_WIN32API 1" >>confdefs.h 8409 8410 WIN32APILIBS="-lws2_32" 8411 ;; 8412 esac 8413 8414 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 8416$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 8417if ${am_cv_langinfo_codeset+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422#include <langinfo.h> 8423int 8424main () 8425{ 8426char* cs = nl_langinfo(CODESET); 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO"; then : 8432 am_cv_langinfo_codeset=yes 8433else 8434 am_cv_langinfo_codeset=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext \ 8437 conftest$ac_exeext conftest.$ac_ext 8438 8439fi 8440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 8441$as_echo "$am_cv_langinfo_codeset" >&6; } 8442 if test $am_cv_langinfo_codeset = yes; then 8443 8444$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 8445 8446 fi 8447 8448 8449 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 8450do : 8451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8452ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8454 cat >>confdefs.h <<_ACEOF 8455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8456_ACEOF 8457 8458fi 8459 8460done 8461 8462 8463 8464for ac_func in getpagesize 8465do : 8466 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 8467if test "x$ac_cv_func_getpagesize" = xyes; then : 8468 cat >>confdefs.h <<_ACEOF 8469#define HAVE_GETPAGESIZE 1 8470_ACEOF 8471 8472fi 8473done 8474 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 8476$as_echo_n "checking for working mmap... " >&6; } 8477if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 8478 $as_echo_n "(cached) " >&6 8479else 8480 if test "$cross_compiling" = yes; then : 8481 ac_cv_func_mmap_fixed_mapped=no 8482else 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485$ac_includes_default 8486/* malloc might have been renamed as rpl_malloc. */ 8487#undef malloc 8488 8489/* Thanks to Mike Haertel and Jim Avera for this test. 8490 Here is a matrix of mmap possibilities: 8491 mmap private not fixed 8492 mmap private fixed at somewhere currently unmapped 8493 mmap private fixed at somewhere already mapped 8494 mmap shared not fixed 8495 mmap shared fixed at somewhere currently unmapped 8496 mmap shared fixed at somewhere already mapped 8497 For private mappings, we should verify that changes cannot be read() 8498 back from the file, nor mmap's back from the file at a different 8499 address. (There have been systems where private was not correctly 8500 implemented like the infamous i386 svr4.0, and systems where the 8501 VM page cache was not coherent with the file system buffer cache 8502 like early versions of FreeBSD and possibly contemporary NetBSD.) 8503 For shared mappings, we should conversely verify that changes get 8504 propagated back to all the places they're supposed to be. 8505 8506 Grep wants private fixed already mapped. 8507 The main things grep needs to know about mmap are: 8508 * does it exist and is it safe to write into the mmap'd area 8509 * how to use it (BSD variants) */ 8510 8511#include <fcntl.h> 8512#include <sys/mman.h> 8513 8514#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 8515char *malloc (); 8516#endif 8517 8518/* This mess was copied from the GNU getpagesize.h. */ 8519#ifndef HAVE_GETPAGESIZE 8520# ifdef _SC_PAGESIZE 8521# define getpagesize() sysconf(_SC_PAGESIZE) 8522# else /* no _SC_PAGESIZE */ 8523# ifdef HAVE_SYS_PARAM_H 8524# include <sys/param.h> 8525# ifdef EXEC_PAGESIZE 8526# define getpagesize() EXEC_PAGESIZE 8527# else /* no EXEC_PAGESIZE */ 8528# ifdef NBPG 8529# define getpagesize() NBPG * CLSIZE 8530# ifndef CLSIZE 8531# define CLSIZE 1 8532# endif /* no CLSIZE */ 8533# else /* no NBPG */ 8534# ifdef NBPC 8535# define getpagesize() NBPC 8536# else /* no NBPC */ 8537# ifdef PAGESIZE 8538# define getpagesize() PAGESIZE 8539# endif /* PAGESIZE */ 8540# endif /* no NBPC */ 8541# endif /* no NBPG */ 8542# endif /* no EXEC_PAGESIZE */ 8543# else /* no HAVE_SYS_PARAM_H */ 8544# define getpagesize() 8192 /* punt totally */ 8545# endif /* no HAVE_SYS_PARAM_H */ 8546# endif /* no _SC_PAGESIZE */ 8547 8548#endif /* no HAVE_GETPAGESIZE */ 8549 8550int 8551main () 8552{ 8553 char *data, *data2, *data3; 8554 const char *cdata2; 8555 int i, pagesize; 8556 int fd, fd2; 8557 8558 pagesize = getpagesize (); 8559 8560 /* First, make a file with some known garbage in it. */ 8561 data = (char *) malloc (pagesize); 8562 if (!data) 8563 return 1; 8564 for (i = 0; i < pagesize; ++i) 8565 *(data + i) = rand (); 8566 umask (0); 8567 fd = creat ("conftest.mmap", 0600); 8568 if (fd < 0) 8569 return 2; 8570 if (write (fd, data, pagesize) != pagesize) 8571 return 3; 8572 close (fd); 8573 8574 /* Next, check that the tail of a page is zero-filled. File must have 8575 non-zero length, otherwise we risk SIGBUS for entire page. */ 8576 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 8577 if (fd2 < 0) 8578 return 4; 8579 cdata2 = ""; 8580 if (write (fd2, cdata2, 1) != 1) 8581 return 5; 8582 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 8583 if (data2 == MAP_FAILED) 8584 return 6; 8585 for (i = 0; i < pagesize; ++i) 8586 if (*(data2 + i)) 8587 return 7; 8588 close (fd2); 8589 if (munmap (data2, pagesize)) 8590 return 8; 8591 8592 /* Next, try to mmap the file at a fixed address which already has 8593 something else allocated at it. If we can, also make sure that 8594 we see the same garbage. */ 8595 fd = open ("conftest.mmap", O_RDWR); 8596 if (fd < 0) 8597 return 9; 8598 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 8599 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 8600 return 10; 8601 for (i = 0; i < pagesize; ++i) 8602 if (*(data + i) != *(data2 + i)) 8603 return 11; 8604 8605 /* Finally, make sure that changes to the mapped area do not 8606 percolate back to the file as seen by read(). (This is a bug on 8607 some variants of i386 svr4.0.) */ 8608 for (i = 0; i < pagesize; ++i) 8609 *(data2 + i) = *(data2 + i) + 1; 8610 data3 = (char *) malloc (pagesize); 8611 if (!data3) 8612 return 12; 8613 if (read (fd, data3, pagesize) != pagesize) 8614 return 13; 8615 for (i = 0; i < pagesize; ++i) 8616 if (*(data + i) != *(data3 + i)) 8617 return 14; 8618 close (fd); 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_run "$LINENO"; then : 8623 ac_cv_func_mmap_fixed_mapped=yes 8624else 8625 ac_cv_func_mmap_fixed_mapped=no 8626fi 8627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8628 conftest.$ac_objext conftest.beam conftest.$ac_ext 8629fi 8630 8631fi 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 8633$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 8634if test $ac_cv_func_mmap_fixed_mapped = yes; then 8635 8636$as_echo "#define HAVE_MMAP 1" >>confdefs.h 8637 8638fi 8639rm -f conftest.mmap conftest.txt 8640 8641 for ac_header in vfork.h 8642do : 8643 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8644if test "x$ac_cv_header_vfork_h" = xyes; then : 8645 cat >>confdefs.h <<_ACEOF 8646#define HAVE_VFORK_H 1 8647_ACEOF 8648 8649fi 8650 8651done 8652 8653for ac_func in fork vfork 8654do : 8655 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8656ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8657if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8658 cat >>confdefs.h <<_ACEOF 8659#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8660_ACEOF 8661 8662fi 8663done 8664 8665if test "x$ac_cv_func_fork" = xyes; then 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8667$as_echo_n "checking for working fork... " >&6; } 8668if ${ac_cv_func_fork_works+:} false; then : 8669 $as_echo_n "(cached) " >&6 8670else 8671 if test "$cross_compiling" = yes; then : 8672 ac_cv_func_fork_works=cross 8673else 8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8675/* end confdefs.h. */ 8676$ac_includes_default 8677int 8678main () 8679{ 8680 8681 /* By Ruediger Kuhlmann. */ 8682 return fork () < 0; 8683 8684 ; 8685 return 0; 8686} 8687_ACEOF 8688if ac_fn_c_try_run "$LINENO"; then : 8689 ac_cv_func_fork_works=yes 8690else 8691 ac_cv_func_fork_works=no 8692fi 8693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8694 conftest.$ac_objext conftest.beam conftest.$ac_ext 8695fi 8696 8697fi 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8699$as_echo "$ac_cv_func_fork_works" >&6; } 8700 8701else 8702 ac_cv_func_fork_works=$ac_cv_func_fork 8703fi 8704if test "x$ac_cv_func_fork_works" = xcross; then 8705 case $host in 8706 *-*-amigaos* | *-*-msdosdjgpp*) 8707 # Override, as these systems have only a dummy fork() stub 8708 ac_cv_func_fork_works=no 8709 ;; 8710 *) 8711 ac_cv_func_fork_works=yes 8712 ;; 8713 esac 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8715$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8716fi 8717ac_cv_func_vfork_works=$ac_cv_func_vfork 8718if test "x$ac_cv_func_vfork" = xyes; then 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8720$as_echo_n "checking for working vfork... " >&6; } 8721if ${ac_cv_func_vfork_works+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 if test "$cross_compiling" = yes; then : 8725 ac_cv_func_vfork_works=cross 8726else 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728/* end confdefs.h. */ 8729/* Thanks to Paul Eggert for this test. */ 8730$ac_includes_default 8731#include <sys/wait.h> 8732#ifdef HAVE_VFORK_H 8733# include <vfork.h> 8734#endif 8735/* On some sparc systems, changes by the child to local and incoming 8736 argument registers are propagated back to the parent. The compiler 8737 is told about this with #include <vfork.h>, but some compilers 8738 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8739 static variable whose address is put into a register that is 8740 clobbered by the vfork. */ 8741static void 8742#ifdef __cplusplus 8743sparc_address_test (int arg) 8744# else 8745sparc_address_test (arg) int arg; 8746#endif 8747{ 8748 static pid_t child; 8749 if (!child) { 8750 child = vfork (); 8751 if (child < 0) { 8752 perror ("vfork"); 8753 _exit(2); 8754 } 8755 if (!child) { 8756 arg = getpid(); 8757 write(-1, "", 0); 8758 _exit (arg); 8759 } 8760 } 8761} 8762 8763int 8764main () 8765{ 8766 pid_t parent = getpid (); 8767 pid_t child; 8768 8769 sparc_address_test (0); 8770 8771 child = vfork (); 8772 8773 if (child == 0) { 8774 /* Here is another test for sparc vfork register problems. This 8775 test uses lots of local variables, at least as many local 8776 variables as main has allocated so far including compiler 8777 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8778 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8779 reuse the register of parent for one of the local variables, 8780 since it will think that parent can't possibly be used any more 8781 in this routine. Assigning to the local variable will thus 8782 munge parent in the parent process. */ 8783 pid_t 8784 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8785 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8786 /* Convince the compiler that p..p7 are live; otherwise, it might 8787 use the same hardware register for all 8 local variables. */ 8788 if (p != p1 || p != p2 || p != p3 || p != p4 8789 || p != p5 || p != p6 || p != p7) 8790 _exit(1); 8791 8792 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8793 from child file descriptors. If the child closes a descriptor 8794 before it execs or exits, this munges the parent's descriptor 8795 as well. Test for this by closing stdout in the child. */ 8796 _exit(close(fileno(stdout)) != 0); 8797 } else { 8798 int status; 8799 struct stat st; 8800 8801 while (wait(&status) != child) 8802 ; 8803 return ( 8804 /* Was there some problem with vforking? */ 8805 child < 0 8806 8807 /* Did the child fail? (This shouldn't happen.) */ 8808 || status 8809 8810 /* Did the vfork/compiler bug occur? */ 8811 || parent != getpid() 8812 8813 /* Did the file descriptor bug occur? */ 8814 || fstat(fileno(stdout), &st) != 0 8815 ); 8816 } 8817} 8818_ACEOF 8819if ac_fn_c_try_run "$LINENO"; then : 8820 ac_cv_func_vfork_works=yes 8821else 8822 ac_cv_func_vfork_works=no 8823fi 8824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8825 conftest.$ac_objext conftest.beam conftest.$ac_ext 8826fi 8827 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8830$as_echo "$ac_cv_func_vfork_works" >&6; } 8831 8832fi; 8833if test "x$ac_cv_func_fork_works" = xcross; then 8834 ac_cv_func_vfork_works=$ac_cv_func_vfork 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8836$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8837fi 8838 8839if test "x$ac_cv_func_vfork_works" = xyes; then 8840 8841$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8842 8843else 8844 8845$as_echo "#define vfork fork" >>confdefs.h 8846 8847fi 8848if test "x$ac_cv_func_fork_works" = xyes; then 8849 8850$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8851 8852fi 8853 8854 for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \ 8855 ptrace64 sbrk setns sigaltstack sigprocmask \ 8856 setpgid setpgrp getrusage getauxval 8857do : 8858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8860if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8861 cat >>confdefs.h <<_ACEOF 8862#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8863_ACEOF 8864 8865fi 8866done 8867 8868 8869 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h> 8870" 8871if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then : 8872 ac_have_decl=1 8873else 8874 ac_have_decl=0 8875fi 8876 8877cat >>confdefs.h <<_ACEOF 8878#define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl 8879_ACEOF 8880 8881 8882 if test "$cross_compiling" = yes; then : 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885#include <sys/personality.h> 8886int 8887main () 8888{ 8889 8890 # if !HAVE_DECL_ADDR_NO_RANDOMIZE 8891 # define ADDR_NO_RANDOMIZE 0x0040000 8892 # endif 8893 /* Test the flag could be set and stays set. */ 8894 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); 8895 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) 8896 return 1 8897 ; 8898 return 0; 8899} 8900_ACEOF 8901if ac_fn_c_try_link "$LINENO"; then : 8902 have_personality=true 8903else 8904 have_personality=false 8905fi 8906rm -f core conftest.err conftest.$ac_objext \ 8907 conftest$ac_exeext conftest.$ac_ext 8908else 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910/* end confdefs.h. */ 8911#include <sys/personality.h> 8912int 8913main () 8914{ 8915 8916 # if !HAVE_DECL_ADDR_NO_RANDOMIZE 8917 # define ADDR_NO_RANDOMIZE 0x0040000 8918 # endif 8919 /* Test the flag could be set and stays set. */ 8920 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE); 8921 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE)) 8922 return 1 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927if ac_fn_c_try_run "$LINENO"; then : 8928 have_personality=true 8929else 8930 have_personality=false 8931fi 8932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8933 conftest.$ac_objext conftest.beam conftest.$ac_ext 8934fi 8935 8936 if $have_personality 8937 then 8938 8939$as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h 8940 8941 fi 8942 8943 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 8944if test "x$ac_cv_have_decl_strstr" = xyes; then : 8945 ac_have_decl=1 8946else 8947 ac_have_decl=0 8948fi 8949 8950cat >>confdefs.h <<_ACEOF 8951#define HAVE_DECL_STRSTR $ac_have_decl 8952_ACEOF 8953 8954 8955 # ----------------------- # 8956 # Checks for structures. # 8957 # ----------------------- # 8958 8959 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 8960if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 8961 8962cat >>confdefs.h <<_ACEOF 8963#define HAVE_STRUCT_STAT_ST_BLOCKS 1 8964_ACEOF 8965 8966 8967fi 8968ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 8969if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 8970 8971cat >>confdefs.h <<_ACEOF 8972#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 8973_ACEOF 8974 8975 8976fi 8977 8978 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5 8980$as_echo_n "checking for library containing kinfo_getfile... " >&6; } 8981if ${ac_cv_search_kinfo_getfile+:} false; then : 8982 $as_echo_n "(cached) " >&6 8983else 8984 ac_func_search_save_LIBS=$LIBS 8985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986/* end confdefs.h. */ 8987 8988/* Override any GCC internal prototype to avoid an error. 8989 Use char because int might match the return type of a GCC 8990 builtin and then its argument prototype would still apply. */ 8991#ifdef __cplusplus 8992extern "C" 8993#endif 8994char kinfo_getfile (); 8995int 8996main () 8997{ 8998return kinfo_getfile (); 8999 ; 9000 return 0; 9001} 9002_ACEOF 9003for ac_lib in '' util util-freebsd; do 9004 if test -z "$ac_lib"; then 9005 ac_res="none required" 9006 else 9007 ac_res=-l$ac_lib 9008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9009 fi 9010 if ac_fn_c_try_link "$LINENO"; then : 9011 ac_cv_search_kinfo_getfile=$ac_res 9012fi 9013rm -f core conftest.err conftest.$ac_objext \ 9014 conftest$ac_exeext 9015 if ${ac_cv_search_kinfo_getfile+:} false; then : 9016 break 9017fi 9018done 9019if ${ac_cv_search_kinfo_getfile+:} false; then : 9020 9021else 9022 ac_cv_search_kinfo_getfile=no 9023fi 9024rm conftest.$ac_ext 9025LIBS=$ac_func_search_save_LIBS 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5 9028$as_echo "$ac_cv_search_kinfo_getfile" >&6; } 9029ac_res=$ac_cv_search_kinfo_getfile 9030if test "$ac_res" != no; then : 9031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9032 9033$as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h 9034 9035fi 9036 9037 9038 # Check for std::thread. This does not work on some platforms, like 9039 # mingw and DJGPP. 9040 ac_ext=cpp 9041ac_cpp='$CXXCPP $CPPFLAGS' 9042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9045 9046 9047 9048 9049 9050ac_ext=c 9051ac_cpp='$CPP $CPPFLAGS' 9052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9054ac_compiler_gnu=$ac_cv_c_compiler_gnu 9055 9056ax_pthread_ok=no 9057 9058# We used to check for pthread.h first, but this fails if pthread.h 9059# requires special compiler flags (e.g. on Tru64 or Sequent). 9060# It gets checked for in the link test anyway. 9061 9062# First of all, check if the user has set any of the PTHREAD_LIBS, 9063# etcetera environment variables, and if threads linking works using 9064# them: 9065if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 9066 ax_pthread_save_CC="$CC" 9067 ax_pthread_save_CFLAGS="$CFLAGS" 9068 ax_pthread_save_LIBS="$LIBS" 9069 if test "x$PTHREAD_CC" != "x"; then : 9070 CC="$PTHREAD_CC" 9071fi 9072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9073 LIBS="$PTHREAD_LIBS $LIBS" 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 9075$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078 9079/* Override any GCC internal prototype to avoid an error. 9080 Use char because int might match the return type of a GCC 9081 builtin and then its argument prototype would still apply. */ 9082#ifdef __cplusplus 9083extern "C" 9084#endif 9085char pthread_join (); 9086int 9087main () 9088{ 9089return pthread_join (); 9090 ; 9091 return 0; 9092} 9093_ACEOF 9094if ac_fn_c_try_link "$LINENO"; then : 9095 ax_pthread_ok=yes 9096fi 9097rm -f core conftest.err conftest.$ac_objext \ 9098 conftest$ac_exeext conftest.$ac_ext 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9100$as_echo "$ax_pthread_ok" >&6; } 9101 if test "x$ax_pthread_ok" = "xno"; then 9102 PTHREAD_LIBS="" 9103 PTHREAD_CFLAGS="" 9104 fi 9105 CC="$ax_pthread_save_CC" 9106 CFLAGS="$ax_pthread_save_CFLAGS" 9107 LIBS="$ax_pthread_save_LIBS" 9108fi 9109 9110# We must check for the threads library under a number of different 9111# names; the ordering is very important because some systems 9112# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 9113# libraries is broken (non-POSIX). 9114 9115# Create a list of thread flags to try. Items starting with a "-" are 9116# C compiler flags, and other items are library names, except for "none" 9117# which indicates that we try without any flags at all, and "pthread-config" 9118# which is a program returning the flags for the Pth emulation library. 9119 9120ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 9121 9122# The ordering *is* (sometimes) important. Some notes on the 9123# individual items follow: 9124 9125# pthreads: AIX (must check this before -lpthread) 9126# none: in case threads are in libc; should be tried before -Kthread and 9127# other compiler flags to prevent continual compiler warnings 9128# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 9129# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 9130# (Note: HP C rejects this with "bad form for `-t' option") 9131# -pthreads: Solaris/gcc (Note: HP C also rejects) 9132# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 9133# doesn't hurt to check since this sometimes defines pthreads and 9134# -D_REENTRANT too), HP C (must be checked before -lpthread, which 9135# is present but should not be used directly; and before -mthreads, 9136# because the compiler interprets this as "-mt" + "-hreads") 9137# -mthreads: Mingw32/gcc, Lynx/gcc 9138# pthread: Linux, etcetera 9139# --thread-safe: KAI C++ 9140# pthread-config: use pthread-config program (for GNU Pth library) 9141 9142case $host_os in 9143 9144 freebsd*) 9145 9146 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 9147 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 9148 9149 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 9150 ;; 9151 9152 hpux*) 9153 9154 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 9155 # multi-threading and also sets -lpthread." 9156 9157 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 9158 ;; 9159 9160 openedition*) 9161 9162 # IBM z/OS requires a feature-test macro to be defined in order to 9163 # enable POSIX threads at all, so give the user a hint if this is 9164 # not set. (We don't define these ourselves, as they can affect 9165 # other portions of the system API in unpredictable ways.) 9166 9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169 9170# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 9171 AX_PTHREAD_ZOS_MISSING 9172# endif 9173 9174_ACEOF 9175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9176 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 9178$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 9179fi 9180rm -f conftest* 9181 9182 ;; 9183 9184 solaris*) 9185 9186 # On Solaris (at least, for some versions), libc contains stubbed 9187 # (non-functional) versions of the pthreads routines, so link-based 9188 # tests will erroneously succeed. (N.B.: The stubs are missing 9189 # pthread_cleanup_push, or rather a function called by this macro, 9190 # so we could check for that, but who knows whether they'll stub 9191 # that too in a future libc.) So we'll check first for the 9192 # standard Solaris way of linking pthreads (-mt -lpthread). 9193 9194 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 9195 ;; 9196esac 9197 9198# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 9199 9200if test "x$GCC" = "xyes"; then : 9201 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 9202fi 9203 9204# The presence of a feature test macro requesting re-entrant function 9205# definitions is, on some systems, a strong hint that pthreads support is 9206# correctly enabled 9207 9208case $host_os in 9209 darwin* | hpux* | linux* | osf* | solaris*) 9210 ax_pthread_check_macro="_REENTRANT" 9211 ;; 9212 9213 aix*) 9214 ax_pthread_check_macro="_THREAD_SAFE" 9215 ;; 9216 9217 *) 9218 ax_pthread_check_macro="--" 9219 ;; 9220esac 9221if test "x$ax_pthread_check_macro" = "x--"; then : 9222 ax_pthread_check_cond=0 9223else 9224 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 9225fi 9226 9227# Are we compiling with Clang? 9228 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 9230$as_echo_n "checking whether $CC is Clang... " >&6; } 9231if ${ax_cv_PTHREAD_CLANG+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233else 9234 ax_cv_PTHREAD_CLANG=no 9235 # Note that Autoconf sets GCC=yes for Clang as well as GCC 9236 if test "x$GCC" = "xyes"; then 9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9238/* end confdefs.h. */ 9239/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 9240# if defined(__clang__) && defined(__llvm__) 9241 AX_PTHREAD_CC_IS_CLANG 9242# endif 9243 9244_ACEOF 9245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9246 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 9247 ax_cv_PTHREAD_CLANG=yes 9248fi 9249rm -f conftest* 9250 9251 fi 9252 9253fi 9254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 9255$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 9256ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 9257 9258ax_pthread_clang_warning=no 9259 9260# Clang needs special handling, because older versions handle the -pthread 9261# option in a rather... idiosyncratic way 9262 9263if test "x$ax_pthread_clang" = "xyes"; then 9264 9265 # Clang takes -pthread; it has never supported any other flag 9266 9267 # (Note 1: This will need to be revisited if a system that Clang 9268 # supports has POSIX threads in a separate library. This tends not 9269 # to be the way of modern systems, but it's conceivable.) 9270 9271 # (Note 2: On some systems, notably Darwin, -pthread is not needed 9272 # to get POSIX threads support; the API is always present and 9273 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 9274 # -pthread does define _REENTRANT, and while the Darwin headers 9275 # ignore this macro, third-party headers might not.) 9276 9277 PTHREAD_CFLAGS="-pthread" 9278 PTHREAD_LIBS= 9279 9280 ax_pthread_ok=yes 9281 9282 # However, older versions of Clang make a point of warning the user 9283 # that, in an invocation where only linking and no compilation is 9284 # taking place, the -pthread option has no effect ("argument unused 9285 # during compilation"). They expect -pthread to be passed in only 9286 # when source code is being compiled. 9287 # 9288 # Problem is, this is at odds with the way Automake and most other 9289 # C build frameworks function, which is that the same flags used in 9290 # compilation (CFLAGS) are also used in linking. Many systems 9291 # supported by AX_PTHREAD require exactly this for POSIX threads 9292 # support, and in fact it is often not straightforward to specify a 9293 # flag that is used only in the compilation phase and not in 9294 # linking. Such a scenario is extremely rare in practice. 9295 # 9296 # Even though use of the -pthread flag in linking would only print 9297 # a warning, this can be a nuisance for well-run software projects 9298 # that build with -Werror. So if the active version of Clang has 9299 # this misfeature, we search for an option to squash it. 9300 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 9302$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 9303if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 9304 $as_echo_n "(cached) " >&6 9305else 9306 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 9307 # Create an alternate version of $ac_link that compiles and 9308 # links in two steps (.c -> .o, .o -> exe) instead of one 9309 # (.c -> exe), because the warning occurs only in the second 9310 # step 9311 ax_pthread_save_ac_link="$ac_link" 9312 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 9313 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 9314 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 9315 ax_pthread_save_CFLAGS="$CFLAGS" 9316 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 9317 if test "x$ax_pthread_try" = "xunknown"; then : 9318 break 9319fi 9320 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 9321 ac_link="$ax_pthread_save_ac_link" 9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9323/* end confdefs.h. */ 9324int main(void){return 0;} 9325_ACEOF 9326if ac_fn_c_try_link "$LINENO"; then : 9327 ac_link="$ax_pthread_2step_ac_link" 9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329/* end confdefs.h. */ 9330int main(void){return 0;} 9331_ACEOF 9332if ac_fn_c_try_link "$LINENO"; then : 9333 break 9334fi 9335rm -f core conftest.err conftest.$ac_objext \ 9336 conftest$ac_exeext conftest.$ac_ext 9337 9338fi 9339rm -f core conftest.err conftest.$ac_objext \ 9340 conftest$ac_exeext conftest.$ac_ext 9341 done 9342 ac_link="$ax_pthread_save_ac_link" 9343 CFLAGS="$ax_pthread_save_CFLAGS" 9344 if test "x$ax_pthread_try" = "x"; then : 9345 ax_pthread_try=no 9346fi 9347 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 9348 9349fi 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 9351$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 9352 9353 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 9354 no | unknown) ;; 9355 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 9356 esac 9357 9358fi # $ax_pthread_clang = yes 9359 9360if test "x$ax_pthread_ok" = "xno"; then 9361for ax_pthread_try_flag in $ax_pthread_flags; do 9362 9363 case $ax_pthread_try_flag in 9364 none) 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9366$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9367 ;; 9368 9369 -mt,pthread) 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 9371$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 9372 PTHREAD_CFLAGS="-mt" 9373 PTHREAD_LIBS="-lpthread" 9374 ;; 9375 9376 -*) 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 9378$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 9379 PTHREAD_CFLAGS="$ax_pthread_try_flag" 9380 ;; 9381 9382 pthread-config) 9383 # Extract the first word of "pthread-config", so it can be a program name with args. 9384set dummy pthread-config; ac_word=$2 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9386$as_echo_n "checking for $ac_word... " >&6; } 9387if ${ac_cv_prog_ax_pthread_config+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 if test -n "$ax_pthread_config"; then 9391 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9392else 9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9394for as_dir in $PATH 9395do 9396 IFS=$as_save_IFS 9397 test -z "$as_dir" && as_dir=. 9398 for ac_exec_ext in '' $ac_executable_extensions; do 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9400 ac_cv_prog_ax_pthread_config="yes" 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9402 break 2 9403 fi 9404done 9405 done 9406IFS=$as_save_IFS 9407 9408 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9409fi 9410fi 9411ax_pthread_config=$ac_cv_prog_ax_pthread_config 9412if test -n "$ax_pthread_config"; then 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9414$as_echo "$ax_pthread_config" >&6; } 9415else 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9417$as_echo "no" >&6; } 9418fi 9419 9420 9421 if test "x$ax_pthread_config" = "xno"; then : 9422 continue 9423fi 9424 PTHREAD_CFLAGS="`pthread-config --cflags`" 9425 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9426 ;; 9427 9428 *) 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 9430$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 9431 PTHREAD_LIBS="-l$ax_pthread_try_flag" 9432 ;; 9433 esac 9434 9435 ax_pthread_save_CFLAGS="$CFLAGS" 9436 ax_pthread_save_LIBS="$LIBS" 9437 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9438 LIBS="$PTHREAD_LIBS $LIBS" 9439 9440 # Check for various functions. We must include pthread.h, 9441 # since some functions may be macros. (On the Sequent, we 9442 # need a special flag -Kthread to make this header compile.) 9443 # We check for pthread_join because it is in -lpthread on IRIX 9444 # while pthread_create is in libc. We check for pthread_attr_init 9445 # due to DEC craziness with -lpthreads. We check for 9446 # pthread_cleanup_push because it is one of the few pthread 9447 # functions on Solaris that doesn't have a non-functional libc stub. 9448 # We try pthread_create on general principles. 9449 9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9451/* end confdefs.h. */ 9452#include <pthread.h> 9453# if $ax_pthread_check_cond 9454# error "$ax_pthread_check_macro must be defined" 9455# endif 9456 static void routine(void *a) { a = 0; } 9457 static void *start_routine(void *a) { return a; } 9458int 9459main () 9460{ 9461pthread_t th; pthread_attr_t attr; 9462 pthread_create(&th, 0, start_routine, 0); 9463 pthread_join(th, 0); 9464 pthread_attr_init(&attr); 9465 pthread_cleanup_push(routine, 0); 9466 pthread_cleanup_pop(0) /* ; */ 9467 ; 9468 return 0; 9469} 9470_ACEOF 9471if ac_fn_c_try_link "$LINENO"; then : 9472 ax_pthread_ok=yes 9473fi 9474rm -f core conftest.err conftest.$ac_objext \ 9475 conftest$ac_exeext conftest.$ac_ext 9476 9477 CFLAGS="$ax_pthread_save_CFLAGS" 9478 LIBS="$ax_pthread_save_LIBS" 9479 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9481$as_echo "$ax_pthread_ok" >&6; } 9482 if test "x$ax_pthread_ok" = "xyes"; then : 9483 break 9484fi 9485 9486 PTHREAD_LIBS="" 9487 PTHREAD_CFLAGS="" 9488done 9489fi 9490 9491# Various other checks: 9492if test "x$ax_pthread_ok" = "xyes"; then 9493 ax_pthread_save_CFLAGS="$CFLAGS" 9494 ax_pthread_save_LIBS="$LIBS" 9495 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9496 LIBS="$PTHREAD_LIBS $LIBS" 9497 9498 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9500$as_echo_n "checking for joinable pthread attribute... " >&6; } 9501if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 9505 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508#include <pthread.h> 9509int 9510main () 9511{ 9512int attr = $ax_pthread_attr; return attr /* ; */ 9513 ; 9514 return 0; 9515} 9516_ACEOF 9517if ac_fn_c_try_link "$LINENO"; then : 9518 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 9519fi 9520rm -f core conftest.err conftest.$ac_objext \ 9521 conftest$ac_exeext conftest.$ac_ext 9522 done 9523 9524fi 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 9526$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 9527 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 9528 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 9529 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 9530 9531cat >>confdefs.h <<_ACEOF 9532#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 9533_ACEOF 9534 9535 ax_pthread_joinable_attr_defined=yes 9536 9537fi 9538 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 9540$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 9541if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 ax_cv_PTHREAD_SPECIAL_FLAGS=no 9545 case $host_os in 9546 solaris*) 9547 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 9548 ;; 9549 esac 9550 9551fi 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 9553$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 9554 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 9555 test "x$ax_pthread_special_flags_added" != "xyes"; then : 9556 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 9557 ax_pthread_special_flags_added=yes 9558fi 9559 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9561$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9562if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567#include <pthread.h> 9568int 9569main () 9570{ 9571int i = PTHREAD_PRIO_INHERIT; 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO"; then : 9577 ax_cv_PTHREAD_PRIO_INHERIT=yes 9578else 9579 ax_cv_PTHREAD_PRIO_INHERIT=no 9580fi 9581rm -f core conftest.err conftest.$ac_objext \ 9582 conftest$ac_exeext conftest.$ac_ext 9583 9584fi 9585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9586$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9587 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 9588 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 9589 9590$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9591 9592 ax_pthread_prio_inherit_defined=yes 9593 9594fi 9595 9596 CFLAGS="$ax_pthread_save_CFLAGS" 9597 LIBS="$ax_pthread_save_LIBS" 9598 9599 # More AIX lossage: compile with *_r variant 9600 if test "x$GCC" != "xyes"; then 9601 case $host_os in 9602 aix*) 9603 case "x/$CC" in #( 9604 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 9605 #handle absolute path differently from PATH based program lookup 9606 case "x$CC" in #( 9607 x/*) : 9608 if as_fn_executable_p ${CC}_r; then : 9609 PTHREAD_CC="${CC}_r" 9610fi ;; #( 9611 *) : 9612 for ac_prog in ${CC}_r 9613do 9614 # Extract the first word of "$ac_prog", so it can be a program name with args. 9615set dummy $ac_prog; ac_word=$2 9616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9617$as_echo_n "checking for $ac_word... " >&6; } 9618if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 if test -n "$PTHREAD_CC"; then 9622 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9623else 9624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9625for as_dir in $PATH 9626do 9627 IFS=$as_save_IFS 9628 test -z "$as_dir" && as_dir=. 9629 for ac_exec_ext in '' $ac_executable_extensions; do 9630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9631 ac_cv_prog_PTHREAD_CC="$ac_prog" 9632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9633 break 2 9634 fi 9635done 9636 done 9637IFS=$as_save_IFS 9638 9639fi 9640fi 9641PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9642if test -n "$PTHREAD_CC"; then 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9644$as_echo "$PTHREAD_CC" >&6; } 9645else 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9647$as_echo "no" >&6; } 9648fi 9649 9650 9651 test -n "$PTHREAD_CC" && break 9652done 9653test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 9654 ;; 9655esac ;; #( 9656 *) : 9657 ;; 9658esac 9659 ;; 9660 esac 9661 fi 9662fi 9663 9664test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 9665 9666 9667 9668 9669 9670# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9671if test "x$ax_pthread_ok" = "xyes"; then 9672 threads=yes 9673 : 9674else 9675 ax_pthread_ok=no 9676 threads=no 9677fi 9678ac_ext=cpp 9679ac_cpp='$CXXCPP $CPPFLAGS' 9680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9683 9684 9685 if test "$threads" = "yes"; then 9686 save_LIBS="$LIBS" 9687 LIBS="$PTHREAD_LIBS $LIBS" 9688 save_CXXFLAGS="$CXXFLAGS" 9689 CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS" 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5 9691$as_echo_n "checking for std::thread... " >&6; } 9692if ${gdb_cv_cxx_std_thread+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697#include <thread> 9698 void callback() { } 9699int 9700main () 9701{ 9702std::thread t(callback); 9703 ; 9704 return 0; 9705} 9706_ACEOF 9707if ac_fn_cxx_try_compile "$LINENO"; then : 9708 gdb_cv_cxx_std_thread=yes 9709else 9710 gdb_cv_cxx_std_thread=no 9711fi 9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9713fi 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5 9715$as_echo "$gdb_cv_cxx_std_thread" >&6; } 9716 9717 # This check must be here, while LIBS includes any necessary 9718 # threading library. 9719 for ac_func in pthread_sigmask pthread_setname_np 9720do : 9721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9722ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 9723if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9724 cat >>confdefs.h <<_ACEOF 9725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9726_ACEOF 9727 9728fi 9729done 9730 9731 9732 LIBS="$save_LIBS" 9733 CXXFLAGS="$save_CXXFLAGS" 9734 fi 9735 if test "$gdb_cv_cxx_std_thread" = "yes"; then 9736 9737$as_echo "#define CXX_STD_THREAD 1" >>confdefs.h 9738 9739 fi 9740 ac_ext=c 9741ac_cpp='$CPP $CPPFLAGS' 9742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9744ac_compiler_gnu=$ac_cv_c_compiler_gnu 9745 9746 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 9748$as_echo_n "checking for sigsetjmp... " >&6; } 9749if ${gdb_cv_func_sigsetjmp+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754 9755 #include <setjmp.h> 9756 9757int 9758main () 9759{ 9760sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 9761 ; 9762 return 0; 9763} 9764_ACEOF 9765if ac_fn_c_try_compile "$LINENO"; then : 9766 gdb_cv_func_sigsetjmp=yes 9767else 9768 gdb_cv_func_sigsetjmp=no 9769fi 9770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9771fi 9772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 9773$as_echo "$gdb_cv_func_sigsetjmp" >&6; } 9774 if test "$gdb_cv_func_sigsetjmp" = "yes"; then 9775 9776$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 9777 9778 fi 9779 9780 9781# Check whether --with-intel_pt was given. 9782if test "${with_intel_pt+set}" = set; then : 9783 withval=$with_intel_pt; 9784else 9785 with_intel_pt=auto 9786fi 9787 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5 9789$as_echo_n "checking whether to use intel pt... " >&6; } 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5 9791$as_echo "$with_intel_pt" >&6; } 9792 9793 if test "${with_intel_pt}" = no; then 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5 9795$as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;} 9796 HAVE_LIBIPT=no 9797 else 9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9799/* end confdefs.h. */ 9800 9801 #include <linux/perf_event.h> 9802 #ifndef PERF_ATTR_SIZE_VER5 9803 # error 9804 #endif 9805 9806_ACEOF 9807if ac_fn_c_try_cpp "$LINENO"; then : 9808 perf_event=yes 9809else 9810 perf_event=no 9811fi 9812rm -f conftest.err conftest.i conftest.$ac_ext 9813 if test "$perf_event" != yes; then 9814 if test "$with_intel_pt" = yes; then 9815 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5 9816 else 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5 9818$as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;} 9819 fi 9820 fi 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 use_additional=yes 9831 9832 acl_save_prefix="$prefix" 9833 prefix="$acl_final_prefix" 9834 acl_save_exec_prefix="$exec_prefix" 9835 exec_prefix="$acl_final_exec_prefix" 9836 9837 eval additional_includedir=\"$includedir\" 9838 eval additional_libdir=\"$libdir\" 9839 9840 exec_prefix="$acl_save_exec_prefix" 9841 prefix="$acl_save_prefix" 9842 9843 9844# Check whether --with-libipt-prefix was given. 9845if test "${with_libipt_prefix+set}" = set; then : 9846 withval=$with_libipt_prefix; 9847 if test "X$withval" = "Xno"; then 9848 use_additional=no 9849 else 9850 if test "X$withval" = "X"; then 9851 9852 acl_save_prefix="$prefix" 9853 prefix="$acl_final_prefix" 9854 acl_save_exec_prefix="$exec_prefix" 9855 exec_prefix="$acl_final_exec_prefix" 9856 9857 eval additional_includedir=\"$includedir\" 9858 eval additional_libdir=\"$libdir\" 9859 9860 exec_prefix="$acl_save_exec_prefix" 9861 prefix="$acl_save_prefix" 9862 9863 else 9864 additional_includedir="$withval/include" 9865 additional_libdir="$withval/lib" 9866 fi 9867 fi 9868 9869fi 9870 9871 9872# Check whether --with-libipt-type was given. 9873if test "${with_libipt_type+set}" = set; then : 9874 withval=$with_libipt_type; with_libipt_type=$withval 9875else 9876 with_libipt_type=auto 9877fi 9878 9879 lib_type=`eval echo \$with_libipt_type` 9880 9881 LIBIPT= 9882 LTLIBIPT= 9883 INCIPT= 9884 rpathdirs= 9885 ltrpathdirs= 9886 names_already_handled= 9887 names_next_round='ipt ' 9888 while test -n "$names_next_round"; do 9889 names_this_round="$names_next_round" 9890 names_next_round= 9891 for name in $names_this_round; do 9892 already_handled= 9893 for n in $names_already_handled; do 9894 if test "$n" = "$name"; then 9895 already_handled=yes 9896 break 9897 fi 9898 done 9899 if test -z "$already_handled"; then 9900 names_already_handled="$names_already_handled $name" 9901 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9902 eval value=\"\$HAVE_LIB$uppername\" 9903 if test -n "$value"; then 9904 if test "$value" = yes; then 9905 eval value=\"\$LIB$uppername\" 9906 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value" 9907 eval value=\"\$LTLIB$uppername\" 9908 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value" 9909 else 9910 : 9911 fi 9912 else 9913 found_dir= 9914 found_la= 9915 found_so= 9916 found_a= 9917 if test $use_additional = yes; then 9918 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 9919 found_dir="$additional_libdir" 9920 found_so="$additional_libdir/lib$name.$shlibext" 9921 if test -f "$additional_libdir/lib$name.la"; then 9922 found_la="$additional_libdir/lib$name.la" 9923 fi 9924 elif test x$lib_type != xshared; then 9925 if test -f "$additional_libdir/lib$name.$libext"; then 9926 found_dir="$additional_libdir" 9927 found_a="$additional_libdir/lib$name.$libext" 9928 if test -f "$additional_libdir/lib$name.la"; then 9929 found_la="$additional_libdir/lib$name.la" 9930 fi 9931 fi 9932 fi 9933 fi 9934 if test "X$found_dir" = "X"; then 9935 for x in $LDFLAGS $LTLIBIPT; do 9936 9937 acl_save_prefix="$prefix" 9938 prefix="$acl_final_prefix" 9939 acl_save_exec_prefix="$exec_prefix" 9940 exec_prefix="$acl_final_exec_prefix" 9941 eval x=\"$x\" 9942 exec_prefix="$acl_save_exec_prefix" 9943 prefix="$acl_save_prefix" 9944 9945 case "$x" in 9946 -L*) 9947 dir=`echo "X$x" | sed -e 's/^X-L//'` 9948 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 9949 found_dir="$dir" 9950 found_so="$dir/lib$name.$shlibext" 9951 if test -f "$dir/lib$name.la"; then 9952 found_la="$dir/lib$name.la" 9953 fi 9954 elif test x$lib_type != xshared; then 9955 if test -f "$dir/lib$name.$libext"; then 9956 found_dir="$dir" 9957 found_a="$dir/lib$name.$libext" 9958 if test -f "$dir/lib$name.la"; then 9959 found_la="$dir/lib$name.la" 9960 fi 9961 fi 9962 fi 9963 ;; 9964 esac 9965 if test "X$found_dir" != "X"; then 9966 break 9967 fi 9968 done 9969 fi 9970 if test "X$found_dir" != "X"; then 9971 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name" 9972 if test "X$found_so" != "X"; then 9973 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9974 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 9975 else 9976 haveit= 9977 for x in $ltrpathdirs; do 9978 if test "X$x" = "X$found_dir"; then 9979 haveit=yes 9980 break 9981 fi 9982 done 9983 if test -z "$haveit"; then 9984 ltrpathdirs="$ltrpathdirs $found_dir" 9985 fi 9986 if test "$hardcode_direct" = yes; then 9987 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 9988 else 9989 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 9990 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 9991 haveit= 9992 for x in $rpathdirs; do 9993 if test "X$x" = "X$found_dir"; then 9994 haveit=yes 9995 break 9996 fi 9997 done 9998 if test -z "$haveit"; then 9999 rpathdirs="$rpathdirs $found_dir" 10000 fi 10001 else 10002 haveit= 10003 for x in $LDFLAGS $LIBIPT; do 10004 10005 acl_save_prefix="$prefix" 10006 prefix="$acl_final_prefix" 10007 acl_save_exec_prefix="$exec_prefix" 10008 exec_prefix="$acl_final_exec_prefix" 10009 eval x=\"$x\" 10010 exec_prefix="$acl_save_exec_prefix" 10011 prefix="$acl_save_prefix" 10012 10013 if test "X$x" = "X-L$found_dir"; then 10014 haveit=yes 10015 break 10016 fi 10017 done 10018 if test -z "$haveit"; then 10019 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir" 10020 fi 10021 if test "$hardcode_minus_L" != no; then 10022 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so" 10023 else 10024 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 10025 fi 10026 fi 10027 fi 10028 fi 10029 else 10030 if test "X$found_a" != "X"; then 10031 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a" 10032 else 10033 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name" 10034 fi 10035 fi 10036 additional_includedir= 10037 case "$found_dir" in 10038 */lib | */lib/) 10039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10040 additional_includedir="$basedir/include" 10041 ;; 10042 esac 10043 if test "X$additional_includedir" != "X"; then 10044 if test "X$additional_includedir" != "X/usr/include"; then 10045 haveit= 10046 if test "X$additional_includedir" = "X/usr/local/include"; then 10047 if test -n "$GCC"; then 10048 case $host_os in 10049 linux*) haveit=yes;; 10050 esac 10051 fi 10052 fi 10053 if test -z "$haveit"; then 10054 for x in $CPPFLAGS $INCIPT; do 10055 10056 acl_save_prefix="$prefix" 10057 prefix="$acl_final_prefix" 10058 acl_save_exec_prefix="$exec_prefix" 10059 exec_prefix="$acl_final_exec_prefix" 10060 eval x=\"$x\" 10061 exec_prefix="$acl_save_exec_prefix" 10062 prefix="$acl_save_prefix" 10063 10064 if test "X$x" = "X-I$additional_includedir"; then 10065 haveit=yes 10066 break 10067 fi 10068 done 10069 if test -z "$haveit"; then 10070 if test -d "$additional_includedir"; then 10071 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir" 10072 fi 10073 fi 10074 fi 10075 fi 10076 fi 10077 if test -n "$found_la"; then 10078 save_libdir="$libdir" 10079 case "$found_la" in 10080 */* | *\\*) . "$found_la" ;; 10081 *) . "./$found_la" ;; 10082 esac 10083 libdir="$save_libdir" 10084 for dep in $dependency_libs; do 10085 case "$dep" in 10086 -L*) 10087 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10088 if test "X$additional_libdir" != "X/usr/lib"; then 10089 haveit= 10090 if test "X$additional_libdir" = "X/usr/local/lib"; then 10091 if test -n "$GCC"; then 10092 case $host_os in 10093 linux*) haveit=yes;; 10094 esac 10095 fi 10096 fi 10097 if test -z "$haveit"; then 10098 haveit= 10099 for x in $LDFLAGS $LIBIPT; do 10100 10101 acl_save_prefix="$prefix" 10102 prefix="$acl_final_prefix" 10103 acl_save_exec_prefix="$exec_prefix" 10104 exec_prefix="$acl_final_exec_prefix" 10105 eval x=\"$x\" 10106 exec_prefix="$acl_save_exec_prefix" 10107 prefix="$acl_save_prefix" 10108 10109 if test "X$x" = "X-L$additional_libdir"; then 10110 haveit=yes 10111 break 10112 fi 10113 done 10114 if test -z "$haveit"; then 10115 if test -d "$additional_libdir"; then 10116 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir" 10117 fi 10118 fi 10119 haveit= 10120 for x in $LDFLAGS $LTLIBIPT; do 10121 10122 acl_save_prefix="$prefix" 10123 prefix="$acl_final_prefix" 10124 acl_save_exec_prefix="$exec_prefix" 10125 exec_prefix="$acl_final_exec_prefix" 10126 eval x=\"$x\" 10127 exec_prefix="$acl_save_exec_prefix" 10128 prefix="$acl_save_prefix" 10129 10130 if test "X$x" = "X-L$additional_libdir"; then 10131 haveit=yes 10132 break 10133 fi 10134 done 10135 if test -z "$haveit"; then 10136 if test -d "$additional_libdir"; then 10137 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir" 10138 fi 10139 fi 10140 fi 10141 fi 10142 ;; 10143 -R*) 10144 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10145 if test "$enable_rpath" != no; then 10146 haveit= 10147 for x in $rpathdirs; do 10148 if test "X$x" = "X$dir"; then 10149 haveit=yes 10150 break 10151 fi 10152 done 10153 if test -z "$haveit"; then 10154 rpathdirs="$rpathdirs $dir" 10155 fi 10156 haveit= 10157 for x in $ltrpathdirs; do 10158 if test "X$x" = "X$dir"; then 10159 haveit=yes 10160 break 10161 fi 10162 done 10163 if test -z "$haveit"; then 10164 ltrpathdirs="$ltrpathdirs $dir" 10165 fi 10166 fi 10167 ;; 10168 -l*) 10169 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10170 ;; 10171 *.la) 10172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10173 ;; 10174 *) 10175 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep" 10176 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep" 10177 ;; 10178 esac 10179 done 10180 fi 10181 else 10182 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 10183 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name" 10184 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name" 10185 else 10186 LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext" 10187 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext" 10188 fi 10189 fi 10190 fi 10191 fi 10192 done 10193 done 10194 if test "X$rpathdirs" != "X"; then 10195 if test -n "$hardcode_libdir_separator"; then 10196 alldirs= 10197 for found_dir in $rpathdirs; do 10198 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10199 done 10200 acl_save_libdir="$libdir" 10201 libdir="$alldirs" 10202 eval flag=\"$hardcode_libdir_flag_spec\" 10203 libdir="$acl_save_libdir" 10204 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 10205 else 10206 for found_dir in $rpathdirs; do 10207 acl_save_libdir="$libdir" 10208 libdir="$found_dir" 10209 eval flag=\"$hardcode_libdir_flag_spec\" 10210 libdir="$acl_save_libdir" 10211 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag" 10212 done 10213 fi 10214 fi 10215 if test "X$ltrpathdirs" != "X"; then 10216 for found_dir in $ltrpathdirs; do 10217 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir" 10218 done 10219 fi 10220 10221 10222 ac_save_CPPFLAGS="$CPPFLAGS" 10223 10224 for element in $INCIPT; do 10225 haveit= 10226 for x in $CPPFLAGS; do 10227 10228 acl_save_prefix="$prefix" 10229 prefix="$acl_final_prefix" 10230 acl_save_exec_prefix="$exec_prefix" 10231 exec_prefix="$acl_final_exec_prefix" 10232 eval x=\"$x\" 10233 exec_prefix="$acl_save_exec_prefix" 10234 prefix="$acl_save_prefix" 10235 10236 if test "X$x" = "X$element"; then 10237 haveit=yes 10238 break 10239 fi 10240 done 10241 if test -z "$haveit"; then 10242 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10243 fi 10244 done 10245 10246 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5 10248$as_echo_n "checking for libipt... " >&6; } 10249if ${ac_cv_libipt+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251else 10252 10253 ac_save_LIBS="$LIBS" 10254 LIBS="$LIBS $LIBIPT" 10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10256/* end confdefs.h. */ 10257#include "intel-pt.h" 10258int 10259main () 10260{ 10261pt_insn_alloc_decoder (0); 10262 ; 10263 return 0; 10264} 10265_ACEOF 10266if ac_fn_c_try_link "$LINENO"; then : 10267 ac_cv_libipt=yes 10268else 10269 ac_cv_libipt=no 10270fi 10271rm -f core conftest.err conftest.$ac_objext \ 10272 conftest$ac_exeext conftest.$ac_ext 10273 LIBS="$ac_save_LIBS" 10274 10275fi 10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5 10277$as_echo "$ac_cv_libipt" >&6; } 10278 if test "$ac_cv_libipt" = yes; then 10279 HAVE_LIBIPT=yes 10280 10281$as_echo "#define HAVE_LIBIPT 1" >>confdefs.h 10282 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5 10284$as_echo_n "checking how to link with libipt... " >&6; } 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5 10286$as_echo "$LIBIPT" >&6; } 10287 else 10288 HAVE_LIBIPT=no 10289 CPPFLAGS="$ac_save_CPPFLAGS" 10290 LIBIPT= 10291 LTLIBIPT= 10292 fi 10293 10294 10295 10296 10297 10298 10299 if test "$HAVE_LIBIPT" != yes; then 10300 if test "$with_intel_pt" = yes; then 10301 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5 10302 else 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5 10304$as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;} 10305 fi 10306 else 10307 save_LIBS=$LIBS 10308 LIBS="$LIBS $LIBIPT" 10309 for ac_func in pt_insn_event 10310do : 10311 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event" 10312if test "x$ac_cv_func_pt_insn_event" = xyes; then : 10313 cat >>confdefs.h <<_ACEOF 10314#define HAVE_PT_INSN_EVENT 1 10315_ACEOF 10316 10317fi 10318done 10319 10320 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h> 10321" 10322if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then : 10323 10324cat >>confdefs.h <<_ACEOF 10325#define HAVE_STRUCT_PT_INSN_ENABLED 1 10326_ACEOF 10327 10328 10329fi 10330ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h> 10331" 10332if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then : 10333 10334cat >>confdefs.h <<_ACEOF 10335#define HAVE_STRUCT_PT_INSN_RESYNCED 1 10336_ACEOF 10337 10338 10339fi 10340 10341 LIBS=$save_LIBS 10342 fi 10343 fi 10344 10345 10346$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 10347 10348 for ac_header in sys/procfs.h 10349do : 10350 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 10351if test "x$ac_cv_header_sys_procfs_h" = xyes; then : 10352 cat >>confdefs.h <<_ACEOF 10353#define HAVE_SYS_PROCFS_H 1 10354_ACEOF 10355 10356fi 10357 10358done 10359 10360 if test "$ac_cv_header_sys_procfs_h" = yes; then 10361 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5 10363$as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; } 10364 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then : 10365 $as_echo_n "(cached) " >&6 10366else 10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10368/* end confdefs.h. */ 10369 10370#define _SYSCALL32 10371#include <sys/procfs.h> 10372int 10373main () 10374{ 10375gregset_t avar 10376 ; 10377 return 0; 10378} 10379_ACEOF 10380if ac_fn_c_try_compile "$LINENO"; then : 10381 bfd_cv_have_sys_procfs_type_gregset_t=yes 10382else 10383 bfd_cv_have_sys_procfs_type_gregset_t=no 10384 10385fi 10386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10387fi 10388 10389 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then 10390 10391$as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h 10392 10393 fi 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 10395$as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; } 10396 10397 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5 10399$as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; } 10400 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then : 10401 $as_echo_n "(cached) " >&6 10402else 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405 10406#define _SYSCALL32 10407#include <sys/procfs.h> 10408int 10409main () 10410{ 10411fpregset_t avar 10412 ; 10413 return 0; 10414} 10415_ACEOF 10416if ac_fn_c_try_compile "$LINENO"; then : 10417 bfd_cv_have_sys_procfs_type_fpregset_t=yes 10418else 10419 bfd_cv_have_sys_procfs_type_fpregset_t=no 10420 10421fi 10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10423fi 10424 10425 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then 10426 10427$as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h 10428 10429 fi 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 10431$as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; } 10432 10433 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5 10435$as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; } 10436 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441 10442#define _SYSCALL32 10443#include <sys/procfs.h> 10444int 10445main () 10446{ 10447prgregset_t avar 10448 ; 10449 return 0; 10450} 10451_ACEOF 10452if ac_fn_c_try_compile "$LINENO"; then : 10453 bfd_cv_have_sys_procfs_type_prgregset_t=yes 10454else 10455 bfd_cv_have_sys_procfs_type_prgregset_t=no 10456 10457fi 10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10459fi 10460 10461 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then 10462 10463$as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h 10464 10465 fi 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 10467$as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } 10468 10469 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5 10471$as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; } 10472 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10476/* end confdefs.h. */ 10477 10478#define _SYSCALL32 10479#include <sys/procfs.h> 10480int 10481main () 10482{ 10483prfpregset_t avar 10484 ; 10485 return 0; 10486} 10487_ACEOF 10488if ac_fn_c_try_compile "$LINENO"; then : 10489 bfd_cv_have_sys_procfs_type_prfpregset_t=yes 10490else 10491 bfd_cv_have_sys_procfs_type_prfpregset_t=no 10492 10493fi 10494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10495fi 10496 10497 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then 10498 10499$as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h 10500 10501 fi 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 10503$as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } 10504 10505 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5 10507$as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; } 10508 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then : 10509 $as_echo_n "(cached) " >&6 10510else 10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10512/* end confdefs.h. */ 10513 10514#define _SYSCALL32 10515#include <sys/procfs.h> 10516int 10517main () 10518{ 10519prgregset32_t avar 10520 ; 10521 return 0; 10522} 10523_ACEOF 10524if ac_fn_c_try_compile "$LINENO"; then : 10525 bfd_cv_have_sys_procfs_type_prgregset32_t=yes 10526else 10527 bfd_cv_have_sys_procfs_type_prgregset32_t=no 10528 10529fi 10530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10531fi 10532 10533 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then 10534 10535$as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h 10536 10537 fi 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 10539$as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; } 10540 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5 10543$as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; } 10544 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then : 10545 $as_echo_n "(cached) " >&6 10546else 10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548/* end confdefs.h. */ 10549 10550#define _SYSCALL32 10551#include <sys/procfs.h> 10552int 10553main () 10554{ 10555lwpid_t avar 10556 ; 10557 return 0; 10558} 10559_ACEOF 10560if ac_fn_c_try_compile "$LINENO"; then : 10561 bfd_cv_have_sys_procfs_type_lwpid_t=yes 10562else 10563 bfd_cv_have_sys_procfs_type_lwpid_t=no 10564 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10567fi 10568 10569 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then 10570 10571$as_echo "#define HAVE_LWPID_T 1" >>confdefs.h 10572 10573 fi 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 10575$as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } 10576 10577 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5 10579$as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; } 10580 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585 10586#define _SYSCALL32 10587#include <sys/procfs.h> 10588int 10589main () 10590{ 10591psaddr_t avar 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_compile "$LINENO"; then : 10597 bfd_cv_have_sys_procfs_type_psaddr_t=yes 10598else 10599 bfd_cv_have_sys_procfs_type_psaddr_t=no 10600 10601fi 10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10603fi 10604 10605 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then 10606 10607$as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h 10608 10609 fi 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 10611$as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } 10612 10613 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5 10615$as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; } 10616 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then : 10617 $as_echo_n "(cached) " >&6 10618else 10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10620/* end confdefs.h. */ 10621 10622#define _SYSCALL32 10623#include <sys/procfs.h> 10624int 10625main () 10626{ 10627elf_fpregset_t avar 10628 ; 10629 return 0; 10630} 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO"; then : 10633 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes 10634else 10635 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no 10636 10637fi 10638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10639fi 10640 10641 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then 10642 10643$as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h 10644 10645 fi 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5 10647$as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; } 10648 10649 fi 10650 10651 10652# Check whether we will enable the inclusion of unit tests when 10653# compiling GDB. 10654# 10655# The default value of this option changes depending whether we're on 10656# development mode (in which case it's "true") or not (in which case 10657# it's "false"). The $development variable is set by the GDB_AC_COMMON 10658# macro, which must therefore be used before GDB_AC_SELFTEST. 10659 10660if test "x$development" != xtrue && test "x$development" != xfalse; then : 10661 as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5 10662fi 10663 10664# Check whether --enable-unit-tests was given. 10665if test "${enable_unit_tests+set}" = set; then : 10666 enableval=$enable_unit_tests; case "${enableval}" in 10667 yes) enable_unittests=true ;; 10668 no) enable_unittests=false ;; 10669 *) as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;; 10670esac 10671else 10672 enable_unittests=$development 10673fi 10674 10675 10676if $enable_unittests; then 10677 10678$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h 10679 10680 10681fi 10682 10683 if $enable_unittests; then 10684 SELFTEST_TRUE= 10685 SELFTEST_FALSE='#' 10686else 10687 SELFTEST_TRUE='#' 10688 SELFTEST_FALSE= 10689fi 10690 10691 10692# Check the return and argument types of ptrace. 10693 10694 10695for ac_header in sys/ptrace.h ptrace.h 10696do : 10697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10698ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10700 cat >>confdefs.h <<_ACEOF 10701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10702_ACEOF 10703 10704fi 10705 10706done 10707 10708 10709gdb_ptrace_headers=' 10710#include <sys/types.h> 10711#if HAVE_SYS_PTRACE_H 10712# include <sys/ptrace.h> 10713#endif 10714#if HAVE_UNISTD_H 10715# include <unistd.h> 10716#endif 10717' 10718 10719# Check return type. Varargs (used on GNU/Linux) conflict with the 10720# empty argument list, so check for that explicitly. 10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5 10722$as_echo_n "checking return type of ptrace... " >&6; } 10723if ${gdb_cv_func_ptrace_ret+:} false; then : 10724 $as_echo_n "(cached) " >&6 10725else 10726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727/* end confdefs.h. */ 10728$gdb_ptrace_headers 10729int 10730main () 10731{ 10732extern long ptrace (enum __ptrace_request, ...); 10733 ; 10734 return 0; 10735} 10736_ACEOF 10737if ac_fn_c_try_compile "$LINENO"; then : 10738 gdb_cv_func_ptrace_ret='long' 10739else 10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10741/* end confdefs.h. */ 10742$gdb_ptrace_headers 10743int 10744main () 10745{ 10746extern int ptrace (); 10747 ; 10748 return 0; 10749} 10750_ACEOF 10751if ac_fn_c_try_compile "$LINENO"; then : 10752 gdb_cv_func_ptrace_ret='int' 10753else 10754 gdb_cv_func_ptrace_ret='long' 10755fi 10756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10757fi 10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10759fi 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5 10761$as_echo "$gdb_cv_func_ptrace_ret" >&6; } 10762 10763cat >>confdefs.h <<_ACEOF 10764#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret 10765_ACEOF 10766 10767# Check argument types. 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5 10769$as_echo_n "checking types of arguments for ptrace... " >&6; } 10770if ${gdb_cv_func_ptrace_args+:} false; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775/* end confdefs.h. */ 10776$gdb_ptrace_headers 10777int 10778main () 10779{ 10780extern long ptrace (enum __ptrace_request, ...); 10781 ; 10782 return 0; 10783} 10784_ACEOF 10785if ac_fn_c_try_compile "$LINENO"; then : 10786 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long' 10787else 10788 10789for gdb_arg1 in 'int' 'long'; do 10790 for gdb_arg2 in 'pid_t' 'int' 'long'; do 10791 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do 10792 for gdb_arg4 in 'int' 'long' 'void *'; do 10793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794/* end confdefs.h. */ 10795$gdb_ptrace_headers 10796int 10797main () 10798{ 10799 10800extern $gdb_cv_func_ptrace_ret 10801 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); 10802 10803 ; 10804 return 0; 10805} 10806_ACEOF 10807if ac_fn_c_try_compile "$LINENO"; then : 10808 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; 10809 break 4; 10810fi 10811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10812 for gdb_arg5 in 'int *' 'int' 'long'; do 10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814/* end confdefs.h. */ 10815$gdb_ptrace_headers 10816int 10817main () 10818{ 10819 10820extern $gdb_cv_func_ptrace_ret 10821 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); 10822 10823 ; 10824 return 0; 10825} 10826_ACEOF 10827if ac_fn_c_try_compile "$LINENO"; then : 10828 10829gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; 10830 break 5; 10831fi 10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10833 done 10834 done 10835 done 10836 done 10837done 10838# Provide a safe default value. 10839: ${gdb_cv_func_ptrace_args='int,int,long,long'} 10840 10841fi 10842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10843fi 10844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5 10845$as_echo "$gdb_cv_func_ptrace_args" >&6; } 10846ac_save_IFS=$IFS; IFS=',' 10847set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` 10848IFS=$ac_save_IFS 10849shift 10850 10851cat >>confdefs.h <<_ACEOF 10852#define PTRACE_TYPE_ARG1 $1 10853_ACEOF 10854 10855 10856cat >>confdefs.h <<_ACEOF 10857#define PTRACE_TYPE_ARG3 $3 10858_ACEOF 10859 10860 10861cat >>confdefs.h <<_ACEOF 10862#define PTRACE_TYPE_ARG4 $4 10863_ACEOF 10864 10865if test -n "$5"; then 10866 10867cat >>confdefs.h <<_ACEOF 10868#define PTRACE_TYPE_ARG5 $5 10869_ACEOF 10870 10871fi 10872 10873 10874# Detect support warning flags. 10875 10876# Check whether --enable-werror was given. 10877if test "${enable_werror+set}" = set; then : 10878 enableval=$enable_werror; case "${enableval}" in 10879 yes | y) ERROR_ON_WARNING="yes" ;; 10880 no | n) ERROR_ON_WARNING="no" ;; 10881 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 10882 esac 10883fi 10884 10885 10886# Enable -Werror by default when using gcc. Turn it off for releases. 10887if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then 10888 ERROR_ON_WARNING=yes 10889fi 10890 10891WERROR_CFLAGS="" 10892if test "${ERROR_ON_WARNING}" = yes ; then 10893 WERROR_CFLAGS="-Werror" 10894fi 10895 10896# The options we'll try to enable. 10897build_warnings="-Wall -Wpointer-arith \ 10898-Wno-unused -Wunused-value -Wunused-variable -Wunused-function \ 10899-Wno-switch -Wno-char-subscripts \ 10900-Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \ 10901-Wno-sign-compare -Wno-error=maybe-uninitialized \ 10902-Wno-mismatched-tags \ 10903-Wno-error=deprecated-register \ 10904-Wsuggest-override \ 10905-Wimplicit-fallthrough=3 \ 10906-Wduplicated-cond \ 10907-Wshadow=local \ 10908-Wdeprecated-copy \ 10909-Wdeprecated-copy-dtor \ 10910-Wredundant-move \ 10911-Wmissing-declarations \ 10912-Wmissing-prototypes \ 10913-Wstrict-null-sentinel \ 10914" 10915 10916case "${host}" in 10917 *-*-mingw32*) 10918 # Enable -Wno-format by default when using gcc on mingw since many 10919 # GCC versions complain about %I64. 10920 build_warnings="$build_warnings -Wno-format" ;; 10921 *-*-solaris*) 10922 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC 10923 # doesn't understand. 10924 build_warnings="$build_warnings -Wno-unknown-pragmas" 10925 # Solaris 11 <unistd.h> marks vfork deprecated. 10926 build_warnings="$build_warnings -Wno-deprecated-declarations" ;; 10927 *) 10928 # Note that gcc requires -Wformat for -Wformat-nonliteral to work, 10929 # but there's a special case for this below. 10930 build_warnings="$build_warnings -Wformat-nonliteral" ;; 10931esac 10932 10933# Check whether --enable-build-warnings was given. 10934if test "${enable_build_warnings+set}" = set; then : 10935 enableval=$enable_build_warnings; case "${enableval}" in 10936 yes) ;; 10937 no) build_warnings="-w";; 10938 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 10939 build_warnings="${build_warnings} ${t}";; 10940 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 10941 build_warnings="${t} ${build_warnings}";; 10942 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 10943esac 10944if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 10945 echo "Setting compiler warning flags = $build_warnings" 6>&1 10946fi 10947fi 10948# Check whether --enable-gdb-build-warnings was given. 10949if test "${enable_gdb_build_warnings+set}" = set; then : 10950 enableval=$enable_gdb_build_warnings; case "${enableval}" in 10951 yes) ;; 10952 no) build_warnings="-w";; 10953 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 10954 build_warnings="${build_warnings} ${t}";; 10955 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 10956 build_warnings="${t} ${build_warnings}";; 10957 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 10958esac 10959if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 10960 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 10961fi 10962fi 10963 10964# The set of warnings supported by a C++ compiler is not the same as 10965# of the C compiler. 10966ac_ext=cpp 10967ac_cpp='$CXXCPP $CPPFLAGS' 10968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10971 10972 10973WARN_CFLAGS="" 10974if test "x${build_warnings}" != x -a "x$GCC" = xyes 10975then 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5 10977$as_echo_n "checking compiler warning flags... " >&6; } 10978 # Separate out the -Werror flag as some files just cannot be 10979 # compiled with it enabled. 10980 for w in ${build_warnings}; do 10981 # GCC does not complain about -Wno-unknown-warning. Invert 10982 # and test -Wunknown-warning instead. 10983 case $w in 10984 -Wno-*) 10985 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;; 10986 -Wformat-nonliteral) 10987 # gcc requires -Wformat before -Wformat-nonliteral 10988 # will work, so stick them together. 10989 w="-Wformat $w" 10990 wtest="$w" 10991 ;; 10992 *) 10993 wtest=$w ;; 10994 esac 10995 10996 case $w in 10997 -Werr*) WERROR_CFLAGS=-Werror ;; 10998 *) 10999 # Check whether GCC accepts it. 11000 saved_CFLAGS="$CFLAGS" 11001 CFLAGS="$CFLAGS -Werror $wtest" 11002 saved_CXXFLAGS="$CXXFLAGS" 11003 CXXFLAGS="$CXXFLAGS -Werror $wtest" 11004 if test "x$w" = "x-Wunused-variable"; then 11005 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958, 11006 # fixed in GCC 4.9. This test is derived from the gdb 11007 # source code that triggered this bug in GCC. 11008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11009/* end confdefs.h. */ 11010struct scoped_restore_base {}; 11011 struct scoped_restore_tmpl : public scoped_restore_base { 11012 ~scoped_restore_tmpl() {} 11013 }; 11014int 11015main () 11016{ 11017const scoped_restore_base &b = scoped_restore_tmpl(); 11018 ; 11019 return 0; 11020} 11021_ACEOF 11022if ac_fn_cxx_try_compile "$LINENO"; then : 11023 WARN_CFLAGS="${WARN_CFLAGS} $w" 11024fi 11025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11026 else 11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11028/* end confdefs.h. */ 11029 11030int 11031main () 11032{ 11033 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038if ac_fn_cxx_try_compile "$LINENO"; then : 11039 WARN_CFLAGS="${WARN_CFLAGS} $w" 11040fi 11041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11042 fi 11043 CFLAGS="$saved_CFLAGS" 11044 CXXFLAGS="$saved_CXXFLAGS" 11045 esac 11046 done 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 11048$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; } 11049fi 11050 11051 11052 11053ac_ext=c 11054ac_cpp='$CPP $CPPFLAGS' 11055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11057ac_compiler_gnu=$ac_cv_c_compiler_gnu 11058 11059 11060 11061TARGET_WORD_SIZE=`sed -n 's,#define BFD_ARCH_SIZE \(.*\)$,\1,p' ../bfd/bfd-in3.h` 11062 11063cat >>confdefs.h <<_ACEOF 11064#define TARGET_WORD_SIZE $TARGET_WORD_SIZE 11065_ACEOF 11066 11067 11068case ${host} in 11069 *mingw32*) 11070 11071$as_echo "#define USE_WIN32API 1" >>confdefs.h 11072 11073 ;; 11074esac 11075 11076ac_config_files="$ac_config_files Makefile" 11077 11078cat >confcache <<\_ACEOF 11079# This file is a shell script that caches the results of configure 11080# tests run on this system so they can be shared between configure 11081# scripts and configure runs, see configure's option --config-cache. 11082# It is not useful on other systems. If it contains results you don't 11083# want to keep, you may remove or edit it. 11084# 11085# config.status only pays attention to the cache file if you give it 11086# the --recheck option to rerun configure. 11087# 11088# `ac_cv_env_foo' variables (set or unset) will be overridden when 11089# loading this file, other *unset* `ac_cv_foo' will be assigned the 11090# following values. 11091 11092_ACEOF 11093 11094# The following way of writing the cache mishandles newlines in values, 11095# but we know of no workaround that is simple, portable, and efficient. 11096# So, we kill variables containing newlines. 11097# Ultrix sh set writes to stderr and can't be redirected directly, 11098# and sets the high bit in the cache file unless we assign to the vars. 11099( 11100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11101 eval ac_val=\$$ac_var 11102 case $ac_val in #( 11103 *${as_nl}*) 11104 case $ac_var in #( 11105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11107 esac 11108 case $ac_var in #( 11109 _ | IFS | as_nl) ;; #( 11110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11111 *) { eval $ac_var=; unset $ac_var;} ;; 11112 esac ;; 11113 esac 11114 done 11115 11116 (set) 2>&1 | 11117 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11118 *${as_nl}ac_space=\ *) 11119 # `set' does not quote correctly, so add quotes: double-quote 11120 # substitution turns \\\\ into \\, and sed turns \\ into \. 11121 sed -n \ 11122 "s/'/'\\\\''/g; 11123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11124 ;; #( 11125 *) 11126 # `set' quotes correctly as required by POSIX, so do not add quotes. 11127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11128 ;; 11129 esac | 11130 sort 11131) | 11132 sed ' 11133 /^ac_cv_env_/b end 11134 t clear 11135 :clear 11136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11137 t end 11138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11139 :end' >>confcache 11140if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11141 if test -w "$cache_file"; then 11142 if test "x$cache_file" != "x/dev/null"; then 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11144$as_echo "$as_me: updating cache $cache_file" >&6;} 11145 if test ! -f "$cache_file" || test -h "$cache_file"; then 11146 cat confcache >"$cache_file" 11147 else 11148 case $cache_file in #( 11149 */* | ?:*) 11150 mv -f confcache "$cache_file"$$ && 11151 mv -f "$cache_file"$$ "$cache_file" ;; #( 11152 *) 11153 mv -f confcache "$cache_file" ;; 11154 esac 11155 fi 11156 fi 11157 else 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11160 fi 11161fi 11162rm -f confcache 11163 11164test "x$prefix" = xNONE && prefix=$ac_default_prefix 11165# Let make expand exec_prefix. 11166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11167 11168DEFS=-DHAVE_CONFIG_H 11169 11170ac_libobjs= 11171ac_ltlibobjs= 11172for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11173 # 1. Remove the extension, and $U if already installed. 11174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11177 # will be set to the directory where LIBOBJS objects are built. 11178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11180done 11181LIBOBJS=$ac_libobjs 11182 11183LTLIBOBJS=$ac_ltlibobjs 11184 11185 11186if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11187 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 11188Usually this means the macro was only invoked conditionally." "$LINENO" 5 11189fi 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11191$as_echo_n "checking that generated files are newer than configure... " >&6; } 11192 if test -n "$am_sleep_pid"; then 11193 # Hide warnings about reused PIDs. 11194 wait $am_sleep_pid 2>/dev/null 11195 fi 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11197$as_echo "done" >&6; } 11198 if test -n "$EXEEXT"; then 11199 am__EXEEXT_TRUE= 11200 am__EXEEXT_FALSE='#' 11201else 11202 am__EXEEXT_TRUE='#' 11203 am__EXEEXT_FALSE= 11204fi 11205 11206if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11207 as_fn_error $? "conditional \"AMDEP\" was never defined. 11208Usually this means the macro was only invoked conditionally." "$LINENO" 5 11209fi 11210if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11211 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11212Usually this means the macro was only invoked conditionally." "$LINENO" 5 11213fi 11214if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 11215 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 11216Usually this means the macro was only invoked conditionally." "$LINENO" 5 11217fi 11218if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11219 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11220Usually this means the macro was only invoked conditionally." "$LINENO" 5 11221fi 11222if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then 11223 as_fn_error $? "conditional \"SELFTEST\" was never defined. 11224Usually this means the macro was only invoked conditionally." "$LINENO" 5 11225fi 11226 11227: "${CONFIG_STATUS=./config.status}" 11228ac_write_fail=0 11229ac_clean_files_save=$ac_clean_files 11230ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11231{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11232$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11233as_write_fail=0 11234cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11235#! $SHELL 11236# Generated by $as_me. 11237# Run this file to recreate the current configuration. 11238# Compiler output produced by configure, useful for debugging 11239# configure, is in config.log if it exists. 11240 11241debug=false 11242ac_cs_recheck=false 11243ac_cs_silent=false 11244 11245SHELL=\${CONFIG_SHELL-$SHELL} 11246export SHELL 11247_ASEOF 11248cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11249## -------------------- ## 11250## M4sh Initialization. ## 11251## -------------------- ## 11252 11253# Be more Bourne compatible 11254DUALCASE=1; export DUALCASE # for MKS sh 11255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11256 emulate sh 11257 NULLCMD=: 11258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11259 # is contrary to our usage. Disable this feature. 11260 alias -g '${1+"$@"}'='"$@"' 11261 setopt NO_GLOB_SUBST 11262else 11263 case `(set -o) 2>/dev/null` in #( 11264 *posix*) : 11265 set -o posix ;; #( 11266 *) : 11267 ;; 11268esac 11269fi 11270 11271 11272as_nl=' 11273' 11274export as_nl 11275# Printing a long string crashes Solaris 7 /usr/bin/printf. 11276as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11279# Prefer a ksh shell builtin over an external printf program on Solaris, 11280# but without wasting forks for bash or zsh. 11281if test -z "$BASH_VERSION$ZSH_VERSION" \ 11282 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11283 as_echo='print -r --' 11284 as_echo_n='print -rn --' 11285elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11286 as_echo='printf %s\n' 11287 as_echo_n='printf %s' 11288else 11289 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11290 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11291 as_echo_n='/usr/ucb/echo -n' 11292 else 11293 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11294 as_echo_n_body='eval 11295 arg=$1; 11296 case $arg in #( 11297 *"$as_nl"*) 11298 expr "X$arg" : "X\\(.*\\)$as_nl"; 11299 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11300 esac; 11301 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11302 ' 11303 export as_echo_n_body 11304 as_echo_n='sh -c $as_echo_n_body as_echo' 11305 fi 11306 export as_echo_body 11307 as_echo='sh -c $as_echo_body as_echo' 11308fi 11309 11310# The user is always right. 11311if test "${PATH_SEPARATOR+set}" != set; then 11312 PATH_SEPARATOR=: 11313 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11314 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11315 PATH_SEPARATOR=';' 11316 } 11317fi 11318 11319 11320# IFS 11321# We need space, tab and new line, in precisely that order. Quoting is 11322# there to prevent editors from complaining about space-tab. 11323# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11324# splitting by setting IFS to empty value.) 11325IFS=" "" $as_nl" 11326 11327# Find who we are. Look in the path if we contain no directory separator. 11328as_myself= 11329case $0 in #(( 11330 *[\\/]* ) as_myself=$0 ;; 11331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11332for as_dir in $PATH 11333do 11334 IFS=$as_save_IFS 11335 test -z "$as_dir" && as_dir=. 11336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11337 done 11338IFS=$as_save_IFS 11339 11340 ;; 11341esac 11342# We did not find ourselves, most probably we were run as `sh COMMAND' 11343# in which case we are not to be found in the path. 11344if test "x$as_myself" = x; then 11345 as_myself=$0 11346fi 11347if test ! -f "$as_myself"; then 11348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11349 exit 1 11350fi 11351 11352# Unset variables that we do not need and which cause bugs (e.g. in 11353# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11354# suppresses any "Segmentation fault" message there. '((' could 11355# trigger a bug in pdksh 5.2.14. 11356for as_var in BASH_ENV ENV MAIL MAILPATH 11357do eval test x\${$as_var+set} = xset \ 11358 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11359done 11360PS1='$ ' 11361PS2='> ' 11362PS4='+ ' 11363 11364# NLS nuisances. 11365LC_ALL=C 11366export LC_ALL 11367LANGUAGE=C 11368export LANGUAGE 11369 11370# CDPATH. 11371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11372 11373 11374# as_fn_error STATUS ERROR [LINENO LOG_FD] 11375# ---------------------------------------- 11376# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11377# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11378# script with STATUS, using 1 if that was 0. 11379as_fn_error () 11380{ 11381 as_status=$1; test $as_status -eq 0 && as_status=1 11382 if test "$4"; then 11383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11385 fi 11386 $as_echo "$as_me: error: $2" >&2 11387 as_fn_exit $as_status 11388} # as_fn_error 11389 11390 11391# as_fn_set_status STATUS 11392# ----------------------- 11393# Set $? to STATUS, without forking. 11394as_fn_set_status () 11395{ 11396 return $1 11397} # as_fn_set_status 11398 11399# as_fn_exit STATUS 11400# ----------------- 11401# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11402as_fn_exit () 11403{ 11404 set +e 11405 as_fn_set_status $1 11406 exit $1 11407} # as_fn_exit 11408 11409# as_fn_unset VAR 11410# --------------- 11411# Portably unset VAR. 11412as_fn_unset () 11413{ 11414 { eval $1=; unset $1;} 11415} 11416as_unset=as_fn_unset 11417# as_fn_append VAR VALUE 11418# ---------------------- 11419# Append the text in VALUE to the end of the definition contained in VAR. Take 11420# advantage of any shell optimizations that allow amortized linear growth over 11421# repeated appends, instead of the typical quadratic growth present in naive 11422# implementations. 11423if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11424 eval 'as_fn_append () 11425 { 11426 eval $1+=\$2 11427 }' 11428else 11429 as_fn_append () 11430 { 11431 eval $1=\$$1\$2 11432 } 11433fi # as_fn_append 11434 11435# as_fn_arith ARG... 11436# ------------------ 11437# Perform arithmetic evaluation on the ARGs, and store the result in the 11438# global $as_val. Take advantage of shells that can avoid forks. The arguments 11439# must be portable across $(()) and expr. 11440if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11441 eval 'as_fn_arith () 11442 { 11443 as_val=$(( $* )) 11444 }' 11445else 11446 as_fn_arith () 11447 { 11448 as_val=`expr "$@" || test $? -eq 1` 11449 } 11450fi # as_fn_arith 11451 11452 11453if expr a : '\(a\)' >/dev/null 2>&1 && 11454 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11455 as_expr=expr 11456else 11457 as_expr=false 11458fi 11459 11460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11461 as_basename=basename 11462else 11463 as_basename=false 11464fi 11465 11466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11467 as_dirname=dirname 11468else 11469 as_dirname=false 11470fi 11471 11472as_me=`$as_basename -- "$0" || 11473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11474 X"$0" : 'X\(//\)$' \| \ 11475 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11476$as_echo X/"$0" | 11477 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11478 s//\1/ 11479 q 11480 } 11481 /^X\/\(\/\/\)$/{ 11482 s//\1/ 11483 q 11484 } 11485 /^X\/\(\/\).*/{ 11486 s//\1/ 11487 q 11488 } 11489 s/.*/./; q'` 11490 11491# Avoid depending upon Character Ranges. 11492as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11494as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11495as_cr_digits='0123456789' 11496as_cr_alnum=$as_cr_Letters$as_cr_digits 11497 11498ECHO_C= ECHO_N= ECHO_T= 11499case `echo -n x` in #((((( 11500-n*) 11501 case `echo 'xy\c'` in 11502 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11503 xy) ECHO_C='\c';; 11504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11505 ECHO_T=' ';; 11506 esac;; 11507*) 11508 ECHO_N='-n';; 11509esac 11510 11511rm -f conf$$ conf$$.exe conf$$.file 11512if test -d conf$$.dir; then 11513 rm -f conf$$.dir/conf$$.file 11514else 11515 rm -f conf$$.dir 11516 mkdir conf$$.dir 2>/dev/null 11517fi 11518if (echo >conf$$.file) 2>/dev/null; then 11519 if ln -s conf$$.file conf$$ 2>/dev/null; then 11520 as_ln_s='ln -s' 11521 # ... but there are two gotchas: 11522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11524 # In both cases, we have to default to `cp -pR'. 11525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11526 as_ln_s='cp -pR' 11527 elif ln conf$$.file conf$$ 2>/dev/null; then 11528 as_ln_s=ln 11529 else 11530 as_ln_s='cp -pR' 11531 fi 11532else 11533 as_ln_s='cp -pR' 11534fi 11535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11536rmdir conf$$.dir 2>/dev/null 11537 11538 11539# as_fn_mkdir_p 11540# ------------- 11541# Create "$as_dir" as a directory, including parents if necessary. 11542as_fn_mkdir_p () 11543{ 11544 11545 case $as_dir in #( 11546 -*) as_dir=./$as_dir;; 11547 esac 11548 test -d "$as_dir" || eval $as_mkdir_p || { 11549 as_dirs= 11550 while :; do 11551 case $as_dir in #( 11552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11553 *) as_qdir=$as_dir;; 11554 esac 11555 as_dirs="'$as_qdir' $as_dirs" 11556 as_dir=`$as_dirname -- "$as_dir" || 11557$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11558 X"$as_dir" : 'X\(//\)[^/]' \| \ 11559 X"$as_dir" : 'X\(//\)$' \| \ 11560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11561$as_echo X"$as_dir" | 11562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11563 s//\1/ 11564 q 11565 } 11566 /^X\(\/\/\)[^/].*/{ 11567 s//\1/ 11568 q 11569 } 11570 /^X\(\/\/\)$/{ 11571 s//\1/ 11572 q 11573 } 11574 /^X\(\/\).*/{ 11575 s//\1/ 11576 q 11577 } 11578 s/.*/./; q'` 11579 test -d "$as_dir" && break 11580 done 11581 test -z "$as_dirs" || eval "mkdir $as_dirs" 11582 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11583 11584 11585} # as_fn_mkdir_p 11586if mkdir -p . 2>/dev/null; then 11587 as_mkdir_p='mkdir -p "$as_dir"' 11588else 11589 test -d ./-p && rmdir ./-p 11590 as_mkdir_p=false 11591fi 11592 11593 11594# as_fn_executable_p FILE 11595# ----------------------- 11596# Test if FILE is an executable regular file. 11597as_fn_executable_p () 11598{ 11599 test -f "$1" && test -x "$1" 11600} # as_fn_executable_p 11601as_test_x='test -x' 11602as_executable_p=as_fn_executable_p 11603 11604# Sed expression to map a string onto a valid CPP name. 11605as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11606 11607# Sed expression to map a string onto a valid variable name. 11608as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11609 11610 11611exec 6>&1 11612## ----------------------------------- ## 11613## Main body of $CONFIG_STATUS script. ## 11614## ----------------------------------- ## 11615_ASEOF 11616test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11617 11618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11619# Save the log message, to keep $0 and so on meaningful, and to 11620# report actual input values of CONFIG_FILES etc. instead of their 11621# values after options handling. 11622ac_log=" 11623This file was extended by gdbsupport $as_me 1.0, which was 11624generated by GNU Autoconf 2.69. Invocation command line was 11625 11626 CONFIG_FILES = $CONFIG_FILES 11627 CONFIG_HEADERS = $CONFIG_HEADERS 11628 CONFIG_LINKS = $CONFIG_LINKS 11629 CONFIG_COMMANDS = $CONFIG_COMMANDS 11630 $ $0 $@ 11631 11632on `(hostname || uname -n) 2>/dev/null | sed 1q` 11633" 11634 11635_ACEOF 11636 11637case $ac_config_files in *" 11638"*) set x $ac_config_files; shift; ac_config_files=$*;; 11639esac 11640 11641case $ac_config_headers in *" 11642"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11643esac 11644 11645 11646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11647# Files that config.status was made for. 11648config_files="$ac_config_files" 11649config_headers="$ac_config_headers" 11650config_commands="$ac_config_commands" 11651 11652_ACEOF 11653 11654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11655ac_cs_usage="\ 11656\`$as_me' instantiates files and other configuration actions 11657from templates according to the current configuration. Unless the files 11658and actions are specified as TAGs, all are instantiated by default. 11659 11660Usage: $0 [OPTION]... [TAG]... 11661 11662 -h, --help print this help, then exit 11663 -V, --version print version number and configuration settings, then exit 11664 --config print configuration, then exit 11665 -q, --quiet, --silent 11666 do not print progress messages 11667 -d, --debug don't remove temporary files 11668 --recheck update $as_me by reconfiguring in the same conditions 11669 --file=FILE[:TEMPLATE] 11670 instantiate the configuration file FILE 11671 --header=FILE[:TEMPLATE] 11672 instantiate the configuration header FILE 11673 11674Configuration files: 11675$config_files 11676 11677Configuration headers: 11678$config_headers 11679 11680Configuration commands: 11681$config_commands 11682 11683Report bugs to the package provider." 11684 11685_ACEOF 11686cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11687ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11688ac_cs_version="\\ 11689gdbsupport config.status 1.0 11690configured by $0, generated by GNU Autoconf 2.69, 11691 with options \\"\$ac_cs_config\\" 11692 11693Copyright (C) 2012 Free Software Foundation, Inc. 11694This config.status script is free software; the Free Software Foundation 11695gives unlimited permission to copy, distribute and modify it." 11696 11697ac_pwd='$ac_pwd' 11698srcdir='$srcdir' 11699INSTALL='$INSTALL' 11700MKDIR_P='$MKDIR_P' 11701AWK='$AWK' 11702test -n "\$AWK" || AWK=awk 11703_ACEOF 11704 11705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11706# The default lists apply if the user does not specify any file. 11707ac_need_defaults=: 11708while test $# != 0 11709do 11710 case $1 in 11711 --*=?*) 11712 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11714 ac_shift=: 11715 ;; 11716 --*=) 11717 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11718 ac_optarg= 11719 ac_shift=: 11720 ;; 11721 *) 11722 ac_option=$1 11723 ac_optarg=$2 11724 ac_shift=shift 11725 ;; 11726 esac 11727 11728 case $ac_option in 11729 # Handling of the options. 11730 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11731 ac_cs_recheck=: ;; 11732 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11733 $as_echo "$ac_cs_version"; exit ;; 11734 --config | --confi | --conf | --con | --co | --c ) 11735 $as_echo "$ac_cs_config"; exit ;; 11736 --debug | --debu | --deb | --de | --d | -d ) 11737 debug=: ;; 11738 --file | --fil | --fi | --f ) 11739 $ac_shift 11740 case $ac_optarg in 11741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11742 '') as_fn_error $? "missing file argument" ;; 11743 esac 11744 as_fn_append CONFIG_FILES " '$ac_optarg'" 11745 ac_need_defaults=false;; 11746 --header | --heade | --head | --hea ) 11747 $ac_shift 11748 case $ac_optarg in 11749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11750 esac 11751 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11752 ac_need_defaults=false;; 11753 --he | --h) 11754 # Conflict between --help and --header 11755 as_fn_error $? "ambiguous option: \`$1' 11756Try \`$0 --help' for more information.";; 11757 --help | --hel | -h ) 11758 $as_echo "$ac_cs_usage"; exit ;; 11759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11760 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11761 ac_cs_silent=: ;; 11762 11763 # This is an error. 11764 -*) as_fn_error $? "unrecognized option: \`$1' 11765Try \`$0 --help' for more information." ;; 11766 11767 *) as_fn_append ac_config_targets " $1" 11768 ac_need_defaults=false ;; 11769 11770 esac 11771 shift 11772done 11773 11774ac_configure_extra_args= 11775 11776if $ac_cs_silent; then 11777 exec 6>/dev/null 11778 ac_configure_extra_args="$ac_configure_extra_args --silent" 11779fi 11780 11781_ACEOF 11782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11783if \$ac_cs_recheck; then 11784 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11785 shift 11786 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11787 CONFIG_SHELL='$SHELL' 11788 export CONFIG_SHELL 11789 exec "\$@" 11790fi 11791 11792_ACEOF 11793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11794exec 5>>config.log 11795{ 11796 echo 11797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11798## Running $as_me. ## 11799_ASBOX 11800 $as_echo "$ac_log" 11801} >&5 11802 11803_ACEOF 11804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11805# 11806# INIT-COMMANDS 11807# 11808AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11809 11810_ACEOF 11811 11812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11813 11814# Handling of arguments. 11815for ac_config_target in $ac_config_targets 11816do 11817 case $ac_config_target in 11818 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 11819 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11820 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11821 11822 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11823 esac 11824done 11825 11826 11827# If the user did not use the arguments to specify the items to instantiate, 11828# then the envvar interface is used. Set only those that are not. 11829# We use the long form for the default assignment because of an extremely 11830# bizarre bug on SunOS 4.1.3. 11831if $ac_need_defaults; then 11832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11834 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11835fi 11836 11837# Have a temporary directory for convenience. Make it in the build tree 11838# simply because there is no reason against having it here, and in addition, 11839# creating and moving files from /tmp can sometimes cause problems. 11840# Hook for its removal unless debugging. 11841# Note that there is a small window in which the directory will not be cleaned: 11842# after its creation but before its name has been assigned to `$tmp'. 11843$debug || 11844{ 11845 tmp= ac_tmp= 11846 trap 'exit_status=$? 11847 : "${ac_tmp:=$tmp}" 11848 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11849' 0 11850 trap 'as_fn_exit 1' 1 2 13 15 11851} 11852# Create a (secure) tmp directory for tmp files. 11853 11854{ 11855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11856 test -d "$tmp" 11857} || 11858{ 11859 tmp=./conf$$-$RANDOM 11860 (umask 077 && mkdir "$tmp") 11861} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11862ac_tmp=$tmp 11863 11864# Set up the scripts for CONFIG_FILES section. 11865# No need to generate them if there are no CONFIG_FILES. 11866# This happens for instance with `./config.status config.h'. 11867if test -n "$CONFIG_FILES"; then 11868 11869 11870ac_cr=`echo X | tr X '\015'` 11871# On cygwin, bash can eat \r inside `` if the user requested igncr. 11872# But we know of no other shell where ac_cr would be empty at this 11873# point, so we can use a bashism as a fallback. 11874if test "x$ac_cr" = x; then 11875 eval ac_cr=\$\'\\r\' 11876fi 11877ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11878if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11879 ac_cs_awk_cr='\\r' 11880else 11881 ac_cs_awk_cr=$ac_cr 11882fi 11883 11884echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11885_ACEOF 11886 11887 11888{ 11889 echo "cat >conf$$subs.awk <<_ACEOF" && 11890 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11891 echo "_ACEOF" 11892} >conf$$subs.sh || 11893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11894ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11895ac_delim='%!_!# ' 11896for ac_last_try in false false false false false :; do 11897 . ./conf$$subs.sh || 11898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11899 11900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11901 if test $ac_delim_n = $ac_delim_num; then 11902 break 11903 elif $ac_last_try; then 11904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11905 else 11906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11907 fi 11908done 11909rm -f conf$$subs.sh 11910 11911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11912cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11913_ACEOF 11914sed -n ' 11915h 11916s/^/S["/; s/!.*/"]=/ 11917p 11918g 11919s/^[^!]*!// 11920:repl 11921t repl 11922s/'"$ac_delim"'$// 11923t delim 11924:nl 11925h 11926s/\(.\{148\}\)..*/\1/ 11927t more1 11928s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11929p 11930n 11931b repl 11932:more1 11933s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11934p 11935g 11936s/.\{148\}// 11937t nl 11938:delim 11939h 11940s/\(.\{148\}\)..*/\1/ 11941t more2 11942s/["\\]/\\&/g; s/^/"/; s/$/"/ 11943p 11944b 11945:more2 11946s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11947p 11948g 11949s/.\{148\}// 11950t delim 11951' <conf$$subs.awk | sed ' 11952/^[^""]/{ 11953 N 11954 s/\n// 11955} 11956' >>$CONFIG_STATUS || ac_write_fail=1 11957rm -f conf$$subs.awk 11958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11959_ACAWK 11960cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11961 for (key in S) S_is_set[key] = 1 11962 FS = "" 11963 11964} 11965{ 11966 line = $ 0 11967 nfields = split(line, field, "@") 11968 substed = 0 11969 len = length(field[1]) 11970 for (i = 2; i < nfields; i++) { 11971 key = field[i] 11972 keylen = length(key) 11973 if (S_is_set[key]) { 11974 value = S[key] 11975 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11976 len += length(value) + length(field[++i]) 11977 substed = 1 11978 } else 11979 len += 1 + keylen 11980 } 11981 11982 print line 11983} 11984 11985_ACAWK 11986_ACEOF 11987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11988if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11989 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11990else 11991 cat 11992fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11993 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11994_ACEOF 11995 11996# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11997# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11998# trailing colons and then remove the whole line if VPATH becomes empty 11999# (actually we leave an empty line to preserve line numbers). 12000if test "x$srcdir" = x.; then 12001 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12002h 12003s/// 12004s/^/:/ 12005s/[ ]*$/:/ 12006s/:\$(srcdir):/:/g 12007s/:\${srcdir}:/:/g 12008s/:@srcdir@:/:/g 12009s/^:*// 12010s/:*$// 12011x 12012s/\(=[ ]*\).*/\1/ 12013G 12014s/\n// 12015s/^[^=]*=[ ]*$// 12016}' 12017fi 12018 12019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12020fi # test -n "$CONFIG_FILES" 12021 12022# Set up the scripts for CONFIG_HEADERS section. 12023# No need to generate them if there are no CONFIG_HEADERS. 12024# This happens for instance with `./config.status Makefile'. 12025if test -n "$CONFIG_HEADERS"; then 12026cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12027BEGIN { 12028_ACEOF 12029 12030# Transform confdefs.h into an awk script `defines.awk', embedded as 12031# here-document in config.status, that substitutes the proper values into 12032# config.h.in to produce config.h. 12033 12034# Create a delimiter string that does not exist in confdefs.h, to ease 12035# handling of long lines. 12036ac_delim='%!_!# ' 12037for ac_last_try in false false :; do 12038 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12039 if test -z "$ac_tt"; then 12040 break 12041 elif $ac_last_try; then 12042 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12043 else 12044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12045 fi 12046done 12047 12048# For the awk script, D is an array of macro values keyed by name, 12049# likewise P contains macro parameters if any. Preserve backslash 12050# newline sequences. 12051 12052ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12053sed -n ' 12054s/.\{148\}/&'"$ac_delim"'/g 12055t rset 12056:rset 12057s/^[ ]*#[ ]*define[ ][ ]*/ / 12058t def 12059d 12060:def 12061s/\\$// 12062t bsnl 12063s/["\\]/\\&/g 12064s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12065D["\1"]=" \3"/p 12066s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12067d 12068:bsnl 12069s/["\\]/\\&/g 12070s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12071D["\1"]=" \3\\\\\\n"\\/p 12072t cont 12073s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12074t cont 12075d 12076:cont 12077n 12078s/.\{148\}/&'"$ac_delim"'/g 12079t clear 12080:clear 12081s/\\$// 12082t bsnlc 12083s/["\\]/\\&/g; s/^/"/; s/$/"/p 12084d 12085:bsnlc 12086s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12087b cont 12088' <confdefs.h | sed ' 12089s/'"$ac_delim"'/"\\\ 12090"/g' >>$CONFIG_STATUS || ac_write_fail=1 12091 12092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12093 for (key in D) D_is_set[key] = 1 12094 FS = "" 12095} 12096/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12097 line = \$ 0 12098 split(line, arg, " ") 12099 if (arg[1] == "#") { 12100 defundef = arg[2] 12101 mac1 = arg[3] 12102 } else { 12103 defundef = substr(arg[1], 2) 12104 mac1 = arg[2] 12105 } 12106 split(mac1, mac2, "(") #) 12107 macro = mac2[1] 12108 prefix = substr(line, 1, index(line, defundef) - 1) 12109 if (D_is_set[macro]) { 12110 # Preserve the white space surrounding the "#". 12111 print prefix "define", macro P[macro] D[macro] 12112 next 12113 } else { 12114 # Replace #undef with comments. This is necessary, for example, 12115 # in the case of _POSIX_SOURCE, which is predefined and required 12116 # on some systems where configure will not decide to define it. 12117 if (defundef == "undef") { 12118 print "/*", prefix defundef, macro, "*/" 12119 next 12120 } 12121 } 12122} 12123{ print } 12124_ACAWK 12125_ACEOF 12126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12127 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12128fi # test -n "$CONFIG_HEADERS" 12129 12130 12131eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12132shift 12133for ac_tag 12134do 12135 case $ac_tag in 12136 :[FHLC]) ac_mode=$ac_tag; continue;; 12137 esac 12138 case $ac_mode$ac_tag in 12139 :[FHL]*:*);; 12140 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12141 :[FH]-) ac_tag=-:-;; 12142 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12143 esac 12144 ac_save_IFS=$IFS 12145 IFS=: 12146 set x $ac_tag 12147 IFS=$ac_save_IFS 12148 shift 12149 ac_file=$1 12150 shift 12151 12152 case $ac_mode in 12153 :L) ac_source=$1;; 12154 :[FH]) 12155 ac_file_inputs= 12156 for ac_f 12157 do 12158 case $ac_f in 12159 -) ac_f="$ac_tmp/stdin";; 12160 *) # Look for the file first in the build tree, then in the source tree 12161 # (if the path is not absolute). The absolute path cannot be DOS-style, 12162 # because $ac_f cannot contain `:'. 12163 test -f "$ac_f" || 12164 case $ac_f in 12165 [\\/$]*) false;; 12166 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12167 esac || 12168 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12169 esac 12170 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12171 as_fn_append ac_file_inputs " '$ac_f'" 12172 done 12173 12174 # Let's still pretend it is `configure' which instantiates (i.e., don't 12175 # use $as_me), people would be surprised to read: 12176 # /* config.h. Generated by config.status. */ 12177 configure_input='Generated from '` 12178 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12179 `' by configure.' 12180 if test x"$ac_file" != x-; then 12181 configure_input="$ac_file. $configure_input" 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12183$as_echo "$as_me: creating $ac_file" >&6;} 12184 fi 12185 # Neutralize special characters interpreted by sed in replacement strings. 12186 case $configure_input in #( 12187 *\&* | *\|* | *\\* ) 12188 ac_sed_conf_input=`$as_echo "$configure_input" | 12189 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12190 *) ac_sed_conf_input=$configure_input;; 12191 esac 12192 12193 case $ac_tag in 12194 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12196 esac 12197 ;; 12198 esac 12199 12200 ac_dir=`$as_dirname -- "$ac_file" || 12201$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12202 X"$ac_file" : 'X\(//\)[^/]' \| \ 12203 X"$ac_file" : 'X\(//\)$' \| \ 12204 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12205$as_echo X"$ac_file" | 12206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12207 s//\1/ 12208 q 12209 } 12210 /^X\(\/\/\)[^/].*/{ 12211 s//\1/ 12212 q 12213 } 12214 /^X\(\/\/\)$/{ 12215 s//\1/ 12216 q 12217 } 12218 /^X\(\/\).*/{ 12219 s//\1/ 12220 q 12221 } 12222 s/.*/./; q'` 12223 as_dir="$ac_dir"; as_fn_mkdir_p 12224 ac_builddir=. 12225 12226case "$ac_dir" in 12227.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12228*) 12229 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12230 # A ".." for each directory in $ac_dir_suffix. 12231 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12232 case $ac_top_builddir_sub in 12233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12235 esac ;; 12236esac 12237ac_abs_top_builddir=$ac_pwd 12238ac_abs_builddir=$ac_pwd$ac_dir_suffix 12239# for backward compatibility: 12240ac_top_builddir=$ac_top_build_prefix 12241 12242case $srcdir in 12243 .) # We are building in place. 12244 ac_srcdir=. 12245 ac_top_srcdir=$ac_top_builddir_sub 12246 ac_abs_top_srcdir=$ac_pwd ;; 12247 [\\/]* | ?:[\\/]* ) # Absolute name. 12248 ac_srcdir=$srcdir$ac_dir_suffix; 12249 ac_top_srcdir=$srcdir 12250 ac_abs_top_srcdir=$srcdir ;; 12251 *) # Relative name. 12252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12253 ac_top_srcdir=$ac_top_build_prefix$srcdir 12254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12255esac 12256ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12257 12258 12259 case $ac_mode in 12260 :F) 12261 # 12262 # CONFIG_FILE 12263 # 12264 12265 case $INSTALL in 12266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12267 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12268 esac 12269 ac_MKDIR_P=$MKDIR_P 12270 case $MKDIR_P in 12271 [\\/$]* | ?:[\\/]* ) ;; 12272 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12273 esac 12274_ACEOF 12275 12276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12277# If the template does not know about datarootdir, expand it. 12278# FIXME: This hack should be removed a few years after 2.60. 12279ac_datarootdir_hack=; ac_datarootdir_seen= 12280ac_sed_dataroot=' 12281/datarootdir/ { 12282 p 12283 q 12284} 12285/@datadir@/p 12286/@docdir@/p 12287/@infodir@/p 12288/@localedir@/p 12289/@mandir@/p' 12290case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12291*datarootdir*) ac_datarootdir_seen=yes;; 12292*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12294$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12295_ACEOF 12296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12297 ac_datarootdir_hack=' 12298 s&@datadir@&$datadir&g 12299 s&@docdir@&$docdir&g 12300 s&@infodir@&$infodir&g 12301 s&@localedir@&$localedir&g 12302 s&@mandir@&$mandir&g 12303 s&\\\${datarootdir}&$datarootdir&g' ;; 12304esac 12305_ACEOF 12306 12307# Neutralize VPATH when `$srcdir' = `.'. 12308# Shell code in configure.ac might set extrasub. 12309# FIXME: do we really want to maintain this feature? 12310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12311ac_sed_extra="$ac_vpsub 12312$extrasub 12313_ACEOF 12314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12315:t 12316/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12317s|@configure_input@|$ac_sed_conf_input|;t t 12318s&@top_builddir@&$ac_top_builddir_sub&;t t 12319s&@top_build_prefix@&$ac_top_build_prefix&;t t 12320s&@srcdir@&$ac_srcdir&;t t 12321s&@abs_srcdir@&$ac_abs_srcdir&;t t 12322s&@top_srcdir@&$ac_top_srcdir&;t t 12323s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12324s&@builddir@&$ac_builddir&;t t 12325s&@abs_builddir@&$ac_abs_builddir&;t t 12326s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12327s&@INSTALL@&$ac_INSTALL&;t t 12328s&@MKDIR_P@&$ac_MKDIR_P&;t t 12329$ac_datarootdir_hack 12330" 12331eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12332 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12333 12334test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12335 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12336 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12337 "$ac_tmp/out"`; test -z "$ac_out"; } && 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12339which seems to be undefined. Please make sure it is defined" >&5 12340$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12341which seems to be undefined. Please make sure it is defined" >&2;} 12342 12343 rm -f "$ac_tmp/stdin" 12344 case $ac_file in 12345 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12346 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12347 esac \ 12348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12349 ;; 12350 :H) 12351 # 12352 # CONFIG_HEADER 12353 # 12354 if test x"$ac_file" != x-; then 12355 { 12356 $as_echo "/* $configure_input */" \ 12357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12358 } >"$ac_tmp/config.h" \ 12359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12360 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12362$as_echo "$as_me: $ac_file is unchanged" >&6;} 12363 else 12364 rm -f "$ac_file" 12365 mv "$ac_tmp/config.h" "$ac_file" \ 12366 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12367 fi 12368 else 12369 $as_echo "/* $configure_input */" \ 12370 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12371 || as_fn_error $? "could not create -" "$LINENO" 5 12372 fi 12373# Compute "$ac_file"'s index in $config_headers. 12374_am_arg="$ac_file" 12375_am_stamp_count=1 12376for _am_header in $config_headers :; do 12377 case $_am_header in 12378 $_am_arg | $_am_arg:* ) 12379 break ;; 12380 * ) 12381 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12382 esac 12383done 12384echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12385$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12386 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12387 X"$_am_arg" : 'X\(//\)$' \| \ 12388 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12389$as_echo X"$_am_arg" | 12390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12391 s//\1/ 12392 q 12393 } 12394 /^X\(\/\/\)[^/].*/{ 12395 s//\1/ 12396 q 12397 } 12398 /^X\(\/\/\)$/{ 12399 s//\1/ 12400 q 12401 } 12402 /^X\(\/\).*/{ 12403 s//\1/ 12404 q 12405 } 12406 s/.*/./; q'`/stamp-h$_am_stamp_count 12407 ;; 12408 12409 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12410$as_echo "$as_me: executing $ac_file commands" >&6;} 12411 ;; 12412 esac 12413 12414 12415 case $ac_file$ac_mode in 12416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12417 # Older Autoconf quotes --file arguments for eval, but not when files 12418 # are listed without --file. Let's play safe and only enable the eval 12419 # if we detect the quoting. 12420 case $CONFIG_FILES in 12421 *\'*) eval set x "$CONFIG_FILES" ;; 12422 *) set x $CONFIG_FILES ;; 12423 esac 12424 shift 12425 for mf 12426 do 12427 # Strip MF so we end up with the name of the file. 12428 mf=`echo "$mf" | sed -e 's/:.*$//'` 12429 # Check whether this is an Automake generated Makefile or not. 12430 # We used to match only the files named 'Makefile.in', but 12431 # some people rename them; so instead we look at the file content. 12432 # Grep'ing the first line is not enough: some people post-process 12433 # each Makefile.in and add a new line on top of each file to say so. 12434 # Grep'ing the whole file is not good either: AIX grep has a line 12435 # limit of 2048, but all sed's we know have understand at least 4000. 12436 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12437 dirpart=`$as_dirname -- "$mf" || 12438$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12439 X"$mf" : 'X\(//\)[^/]' \| \ 12440 X"$mf" : 'X\(//\)$' \| \ 12441 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12442$as_echo X"$mf" | 12443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12444 s//\1/ 12445 q 12446 } 12447 /^X\(\/\/\)[^/].*/{ 12448 s//\1/ 12449 q 12450 } 12451 /^X\(\/\/\)$/{ 12452 s//\1/ 12453 q 12454 } 12455 /^X\(\/\).*/{ 12456 s//\1/ 12457 q 12458 } 12459 s/.*/./; q'` 12460 else 12461 continue 12462 fi 12463 # Extract the definition of DEPDIR, am__include, and am__quote 12464 # from the Makefile without running 'make'. 12465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12466 test -z "$DEPDIR" && continue 12467 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12468 test -z "$am__include" && continue 12469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12470 # Find all dependency output files, they are included files with 12471 # $(DEPDIR) in their names. We invoke sed twice because it is the 12472 # simplest approach to changing $(DEPDIR) to its actual value in the 12473 # expansion. 12474 for file in `sed -n " 12475 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12476 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12477 # Make sure the directory exists. 12478 test -f "$dirpart/$file" && continue 12479 fdir=`$as_dirname -- "$file" || 12480$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12481 X"$file" : 'X\(//\)[^/]' \| \ 12482 X"$file" : 'X\(//\)$' \| \ 12483 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12484$as_echo X"$file" | 12485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12486 s//\1/ 12487 q 12488 } 12489 /^X\(\/\/\)[^/].*/{ 12490 s//\1/ 12491 q 12492 } 12493 /^X\(\/\/\)$/{ 12494 s//\1/ 12495 q 12496 } 12497 /^X\(\/\).*/{ 12498 s//\1/ 12499 q 12500 } 12501 s/.*/./; q'` 12502 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12503 # echo "creating $dirpart/$file" 12504 echo '# dummy' > "$dirpart/$file" 12505 done 12506 done 12507} 12508 ;; 12509 12510 esac 12511done # for ac_tag 12512 12513 12514as_fn_exit 0 12515_ACEOF 12516ac_clean_files=$ac_clean_files_save 12517 12518test $ac_write_fail = 0 || 12519 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12520 12521 12522# configure is writing to config.log, and then calls config.status. 12523# config.status does its own redirection, appending to config.log. 12524# Unfortunately, on DOS this fails, as config.log is still kept open 12525# by configure, so config.status won't be able to write to it; its 12526# output is simply discarded. So we exec the FD to /dev/null, 12527# effectively closing config.log, so it can be properly (re)opened and 12528# appended to by config.status. When coming back to configure, we 12529# need to make the FD available again. 12530if test "$no_create" != yes; then 12531 ac_cs_success=: 12532 ac_config_status_args= 12533 test "$silent" = yes && 12534 ac_config_status_args="$ac_config_status_args --quiet" 12535 exec 5>/dev/null 12536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12537 exec 5>>config.log 12538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12539 # would make configure fail if this is the last instruction. 12540 $ac_cs_success || as_fn_exit 1 12541fi 12542if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12544$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12545fi 12546 12547