1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622LIB_CFLAGS 623WFLAGS 624GETCONF 625EI_THREADS 626THR_DEFS 627THR_LIBS 628MIXED_MINGW 629MIXED_VC 630LIBOBJS 631ALLOCA 632INSTALL_DIR 633INSTALL_DATA 634INSTALL_SCRIPT 635INSTALL_PROGRAM 636AR 637ARCH 638EGREP 639GREP 640LD 641RANLIB 642CPP 643OBJEXT 644EXEEXT 645ac_ct_CC 646CPPFLAGS 647LDFLAGS 648CFLAGS 649CC 650TARGET 651host_os 652host_vendor 653host_cpu 654host 655build_os 656build_vendor 657build_cpu 658build 659target_alias 660host_alias 661build_alias 662LIBS 663ECHO_T 664ECHO_N 665ECHO_C 666DEFS 667mandir 668localedir 669libdir 670psdir 671pdfdir 672dvidir 673htmldir 674infodir 675docdir 676oldincludedir 677includedir 678runstatedir 679localstatedir 680sharedstatedir 681sysconfdir 682datadir 683datarootdir 684libexecdir 685sbindir 686bindir 687program_transform_name 688prefix 689exec_prefix 690PACKAGE_URL 691PACKAGE_BUGREPORT 692PACKAGE_STRING 693PACKAGE_VERSION 694PACKAGE_TARNAME 695PACKAGE_NAME 696PATH_SEPARATOR 697SHELL' 698ac_subst_files='' 699ac_user_opts=' 700enable_option_checking 701enable_threads 702enable_mask_real_errno 703with_gmp 704enable_sanitizers 705' 706 ac_precious_vars='build_alias 707host_alias 708target_alias 709CC 710CFLAGS 711LDFLAGS 712LIBS 713CPPFLAGS 714CPP' 715 716 717# Initialize some variables set by options. 718ac_init_help= 719ac_init_version=false 720ac_unrecognized_opts= 721ac_unrecognized_sep= 722# The variables have the same names as the options, with 723# dashes changed to underlines. 724cache_file=/dev/null 725exec_prefix=NONE 726no_create= 727no_recursion= 728prefix=NONE 729program_prefix=NONE 730program_suffix=NONE 731program_transform_name=s,x,x, 732silent= 733site= 734srcdir= 735verbose= 736x_includes=NONE 737x_libraries=NONE 738 739# Installation directory options. 740# These are left unexpanded so users can "make install exec_prefix=/foo" 741# and all the variables that are supposed to be based on exec_prefix 742# by default will actually change. 743# Use braces instead of parens because sh, perl, etc. also accept them. 744# (The list follows the same order as the GNU Coding Standards.) 745bindir='${exec_prefix}/bin' 746sbindir='${exec_prefix}/sbin' 747libexecdir='${exec_prefix}/libexec' 748datarootdir='${prefix}/share' 749datadir='${datarootdir}' 750sysconfdir='${prefix}/etc' 751sharedstatedir='${prefix}/com' 752localstatedir='${prefix}/var' 753runstatedir='${localstatedir}/run' 754includedir='${prefix}/include' 755oldincludedir='/usr/include' 756docdir='${datarootdir}/doc/${PACKAGE}' 757infodir='${datarootdir}/info' 758htmldir='${docdir}' 759dvidir='${docdir}' 760pdfdir='${docdir}' 761psdir='${docdir}' 762libdir='${exec_prefix}/lib' 763localedir='${datarootdir}/locale' 764mandir='${datarootdir}/man' 765 766ac_prev= 767ac_dashdash= 768for ac_option 769do 770 # If the previous option needs an argument, assign it. 771 if test -n "$ac_prev"; then 772 eval $ac_prev=\$ac_option 773 ac_prev= 774 continue 775 fi 776 777 case $ac_option in 778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 779 *=) ac_optarg= ;; 780 *) ac_optarg=yes ;; 781 esac 782 783 # Accept the important Cygnus configure options, so we can diagnose typos. 784 785 case $ac_dashdash$ac_option in 786 --) 787 ac_dashdash=yes ;; 788 789 -bindir | --bindir | --bindi | --bind | --bin | --bi) 790 ac_prev=bindir ;; 791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 792 bindir=$ac_optarg ;; 793 794 -build | --build | --buil | --bui | --bu) 795 ac_prev=build_alias ;; 796 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 797 build_alias=$ac_optarg ;; 798 799 -cache-file | --cache-file | --cache-fil | --cache-fi \ 800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 801 ac_prev=cache_file ;; 802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 804 cache_file=$ac_optarg ;; 805 806 --config-cache | -C) 807 cache_file=config.cache ;; 808 809 -datadir | --datadir | --datadi | --datad) 810 ac_prev=datadir ;; 811 -datadir=* | --datadir=* | --datadi=* | --datad=*) 812 datadir=$ac_optarg ;; 813 814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 815 | --dataroo | --dataro | --datar) 816 ac_prev=datarootdir ;; 817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 819 datarootdir=$ac_optarg ;; 820 821 -disable-* | --disable-*) 822 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 823 # Reject names that are not valid shell variable names. 824 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 825 as_fn_error $? "invalid feature name: $ac_useropt" 826 ac_useropt_orig=$ac_useropt 827 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 828 case $ac_user_opts in 829 *" 830"enable_$ac_useropt" 831"*) ;; 832 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 833 ac_unrecognized_sep=', ';; 834 esac 835 eval enable_$ac_useropt=no ;; 836 837 -docdir | --docdir | --docdi | --doc | --do) 838 ac_prev=docdir ;; 839 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 840 docdir=$ac_optarg ;; 841 842 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 843 ac_prev=dvidir ;; 844 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 845 dvidir=$ac_optarg ;; 846 847 -enable-* | --enable-*) 848 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 849 # Reject names that are not valid shell variable names. 850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 851 as_fn_error $? "invalid feature name: $ac_useropt" 852 ac_useropt_orig=$ac_useropt 853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 854 case $ac_user_opts in 855 *" 856"enable_$ac_useropt" 857"*) ;; 858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 859 ac_unrecognized_sep=', ';; 860 esac 861 eval enable_$ac_useropt=\$ac_optarg ;; 862 863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 865 | --exec | --exe | --ex) 866 ac_prev=exec_prefix ;; 867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 869 | --exec=* | --exe=* | --ex=*) 870 exec_prefix=$ac_optarg ;; 871 872 -gas | --gas | --ga | --g) 873 # Obsolete; use --with-gas. 874 with_gas=yes ;; 875 876 -help | --help | --hel | --he | -h) 877 ac_init_help=long ;; 878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 879 ac_init_help=recursive ;; 880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 881 ac_init_help=short ;; 882 883 -host | --host | --hos | --ho) 884 ac_prev=host_alias ;; 885 -host=* | --host=* | --hos=* | --ho=*) 886 host_alias=$ac_optarg ;; 887 888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 889 ac_prev=htmldir ;; 890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 891 | --ht=*) 892 htmldir=$ac_optarg ;; 893 894 -includedir | --includedir | --includedi | --included | --include \ 895 | --includ | --inclu | --incl | --inc) 896 ac_prev=includedir ;; 897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 898 | --includ=* | --inclu=* | --incl=* | --inc=*) 899 includedir=$ac_optarg ;; 900 901 -infodir | --infodir | --infodi | --infod | --info | --inf) 902 ac_prev=infodir ;; 903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 904 infodir=$ac_optarg ;; 905 906 -libdir | --libdir | --libdi | --libd) 907 ac_prev=libdir ;; 908 -libdir=* | --libdir=* | --libdi=* | --libd=*) 909 libdir=$ac_optarg ;; 910 911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 912 | --libexe | --libex | --libe) 913 ac_prev=libexecdir ;; 914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 915 | --libexe=* | --libex=* | --libe=*) 916 libexecdir=$ac_optarg ;; 917 918 -localedir | --localedir | --localedi | --localed | --locale) 919 ac_prev=localedir ;; 920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 921 localedir=$ac_optarg ;; 922 923 -localstatedir | --localstatedir | --localstatedi | --localstated \ 924 | --localstate | --localstat | --localsta | --localst | --locals) 925 ac_prev=localstatedir ;; 926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 928 localstatedir=$ac_optarg ;; 929 930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 931 ac_prev=mandir ;; 932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 933 mandir=$ac_optarg ;; 934 935 -nfp | --nfp | --nf) 936 # Obsolete; use --without-fp. 937 with_fp=no ;; 938 939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 940 | --no-cr | --no-c | -n) 941 no_create=yes ;; 942 943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 945 no_recursion=yes ;; 946 947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 949 | --oldin | --oldi | --old | --ol | --o) 950 ac_prev=oldincludedir ;; 951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 954 oldincludedir=$ac_optarg ;; 955 956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 957 ac_prev=prefix ;; 958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 959 prefix=$ac_optarg ;; 960 961 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 962 | --program-pre | --program-pr | --program-p) 963 ac_prev=program_prefix ;; 964 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 966 program_prefix=$ac_optarg ;; 967 968 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 969 | --program-suf | --program-su | --program-s) 970 ac_prev=program_suffix ;; 971 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 973 program_suffix=$ac_optarg ;; 974 975 -program-transform-name | --program-transform-name \ 976 | --program-transform-nam | --program-transform-na \ 977 | --program-transform-n | --program-transform- \ 978 | --program-transform | --program-transfor \ 979 | --program-transfo | --program-transf \ 980 | --program-trans | --program-tran \ 981 | --progr-tra | --program-tr | --program-t) 982 ac_prev=program_transform_name ;; 983 -program-transform-name=* | --program-transform-name=* \ 984 | --program-transform-nam=* | --program-transform-na=* \ 985 | --program-transform-n=* | --program-transform-=* \ 986 | --program-transform=* | --program-transfor=* \ 987 | --program-transfo=* | --program-transf=* \ 988 | --program-trans=* | --program-tran=* \ 989 | --progr-tra=* | --program-tr=* | --program-t=*) 990 program_transform_name=$ac_optarg ;; 991 992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 993 ac_prev=pdfdir ;; 994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 995 pdfdir=$ac_optarg ;; 996 997 -psdir | --psdir | --psdi | --psd | --ps) 998 ac_prev=psdir ;; 999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1000 psdir=$ac_optarg ;; 1001 1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1003 | -silent | --silent | --silen | --sile | --sil) 1004 silent=yes ;; 1005 1006 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1007 | --runstate | --runstat | --runsta | --runst | --runs \ 1008 | --run | --ru | --r) 1009 ac_prev=runstatedir ;; 1010 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1011 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1012 | --run=* | --ru=* | --r=*) 1013 runstatedir=$ac_optarg ;; 1014 1015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1016 ac_prev=sbindir ;; 1017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1018 | --sbi=* | --sb=*) 1019 sbindir=$ac_optarg ;; 1020 1021 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1023 | --sharedst | --shareds | --shared | --share | --shar \ 1024 | --sha | --sh) 1025 ac_prev=sharedstatedir ;; 1026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1029 | --sha=* | --sh=*) 1030 sharedstatedir=$ac_optarg ;; 1031 1032 -site | --site | --sit) 1033 ac_prev=site ;; 1034 -site=* | --site=* | --sit=*) 1035 site=$ac_optarg ;; 1036 1037 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1038 ac_prev=srcdir ;; 1039 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1040 srcdir=$ac_optarg ;; 1041 1042 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1043 | --syscon | --sysco | --sysc | --sys | --sy) 1044 ac_prev=sysconfdir ;; 1045 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1046 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1047 sysconfdir=$ac_optarg ;; 1048 1049 -target | --target | --targe | --targ | --tar | --ta | --t) 1050 ac_prev=target_alias ;; 1051 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1052 target_alias=$ac_optarg ;; 1053 1054 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1055 verbose=yes ;; 1056 1057 -version | --version | --versio | --versi | --vers | -V) 1058 ac_init_version=: ;; 1059 1060 -with-* | --with-*) 1061 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1064 as_fn_error $? "invalid package name: $ac_useropt" 1065 ac_useropt_orig=$ac_useropt 1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1067 case $ac_user_opts in 1068 *" 1069"with_$ac_useropt" 1070"*) ;; 1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1072 ac_unrecognized_sep=', ';; 1073 esac 1074 eval with_$ac_useropt=\$ac_optarg ;; 1075 1076 -without-* | --without-*) 1077 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1078 # Reject names that are not valid shell variable names. 1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1080 as_fn_error $? "invalid package name: $ac_useropt" 1081 ac_useropt_orig=$ac_useropt 1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1083 case $ac_user_opts in 1084 *" 1085"with_$ac_useropt" 1086"*) ;; 1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1088 ac_unrecognized_sep=', ';; 1089 esac 1090 eval with_$ac_useropt=no ;; 1091 1092 --x) 1093 # Obsolete; use --with-x. 1094 with_x=yes ;; 1095 1096 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1097 | --x-incl | --x-inc | --x-in | --x-i) 1098 ac_prev=x_includes ;; 1099 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1100 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1101 x_includes=$ac_optarg ;; 1102 1103 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1104 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1105 ac_prev=x_libraries ;; 1106 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1107 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1108 x_libraries=$ac_optarg ;; 1109 1110 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1111Try \`$0 --help' for more information" 1112 ;; 1113 1114 *=*) 1115 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1116 # Reject names that are not valid shell variable names. 1117 case $ac_envvar in #( 1118 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1119 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1120 esac 1121 eval $ac_envvar=\$ac_optarg 1122 export $ac_envvar ;; 1123 1124 *) 1125 # FIXME: should be removed in autoconf 3.0. 1126 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1127 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1128 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1129 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1130 ;; 1131 1132 esac 1133done 1134 1135if test -n "$ac_prev"; then 1136 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1137 as_fn_error $? "missing argument to $ac_option" 1138fi 1139 1140if test -n "$ac_unrecognized_opts"; then 1141 case $enable_option_checking in 1142 no) ;; 1143 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1144 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1145 esac 1146fi 1147 1148# Check all directory arguments for consistency. 1149for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1150 datadir sysconfdir sharedstatedir localstatedir includedir \ 1151 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1152 libdir localedir mandir runstatedir 1153do 1154 eval ac_val=\$$ac_var 1155 # Remove trailing slashes. 1156 case $ac_val in 1157 */ ) 1158 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1159 eval $ac_var=\$ac_val;; 1160 esac 1161 # Be sure to have absolute directory names. 1162 case $ac_val in 1163 [\\/$]* | ?:[\\/]* ) continue;; 1164 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1165 esac 1166 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1167done 1168 1169# There might be people who depend on the old broken behavior: `$host' 1170# used to hold the argument of --host etc. 1171# FIXME: To remove some day. 1172build=$build_alias 1173host=$host_alias 1174target=$target_alias 1175 1176# FIXME: To remove some day. 1177if test "x$host_alias" != x; then 1178 if test "x$build_alias" = x; then 1179 cross_compiling=maybe 1180 elif test "x$build_alias" != "x$host_alias"; then 1181 cross_compiling=yes 1182 fi 1183fi 1184 1185ac_tool_prefix= 1186test -n "$host_alias" && ac_tool_prefix=$host_alias- 1187 1188test "$silent" = yes && exec 6>/dev/null 1189 1190 1191ac_pwd=`pwd` && test -n "$ac_pwd" && 1192ac_ls_di=`ls -di .` && 1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1194 as_fn_error $? "working directory cannot be determined" 1195test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1196 as_fn_error $? "pwd does not report name of working directory" 1197 1198 1199# Find the source files, if location was not specified. 1200if test -z "$srcdir"; then 1201 ac_srcdir_defaulted=yes 1202 # Try the directory containing this script, then the parent directory. 1203 ac_confdir=`$as_dirname -- "$as_myself" || 1204$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1205 X"$as_myself" : 'X\(//\)[^/]' \| \ 1206 X"$as_myself" : 'X\(//\)$' \| \ 1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1208$as_echo X"$as_myself" | 1209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1210 s//\1/ 1211 q 1212 } 1213 /^X\(\/\/\)[^/].*/{ 1214 s//\1/ 1215 q 1216 } 1217 /^X\(\/\/\)$/{ 1218 s//\1/ 1219 q 1220 } 1221 /^X\(\/\).*/{ 1222 s//\1/ 1223 q 1224 } 1225 s/.*/./; q'` 1226 srcdir=$ac_confdir 1227 if test ! -r "$srcdir/$ac_unique_file"; then 1228 srcdir=.. 1229 fi 1230else 1231 ac_srcdir_defaulted=no 1232fi 1233if test ! -r "$srcdir/$ac_unique_file"; then 1234 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1235 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1236fi 1237ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1238ac_abs_confdir=`( 1239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1240 pwd)` 1241# When building in place, set srcdir=. 1242if test "$ac_abs_confdir" = "$ac_pwd"; then 1243 srcdir=. 1244fi 1245# Remove unnecessary trailing slashes from srcdir. 1246# Double slashes in file names in object file debugging info 1247# mess up M-x gdb in Emacs. 1248case $srcdir in 1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1250esac 1251for ac_var in $ac_precious_vars; do 1252 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1253 eval ac_env_${ac_var}_value=\$${ac_var} 1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1255 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1256done 1257 1258# 1259# Report the --help message. 1260# 1261if test "$ac_init_help" = "long"; then 1262 # Omit some internal or obsolete options to make the list less imposing. 1263 # This message is too long to be a string in the A/UX 3.1 sh. 1264 cat <<_ACEOF 1265\`configure' configures this package to adapt to many kinds of systems. 1266 1267Usage: $0 [OPTION]... [VAR=VALUE]... 1268 1269To assign environment variables (e.g., CC, CFLAGS...), specify them as 1270VAR=VALUE. See below for descriptions of some of the useful variables. 1271 1272Defaults for the options are specified in brackets. 1273 1274Configuration: 1275 -h, --help display this help and exit 1276 --help=short display options specific to this package 1277 --help=recursive display the short help of all the included packages 1278 -V, --version display version information and exit 1279 -q, --quiet, --silent do not print \`checking ...' messages 1280 --cache-file=FILE cache test results in FILE [disabled] 1281 -C, --config-cache alias for \`--cache-file=config.cache' 1282 -n, --no-create do not create output files 1283 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1284 1285Installation directories: 1286 --prefix=PREFIX install architecture-independent files in PREFIX 1287 [$ac_default_prefix] 1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1289 [PREFIX] 1290 1291By default, \`make install' will install all the files in 1292\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1293an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1294for instance \`--prefix=\$HOME'. 1295 1296For better control, use the options below. 1297 1298Fine tuning of the installation directories: 1299 --bindir=DIR user executables [EPREFIX/bin] 1300 --sbindir=DIR system admin executables [EPREFIX/sbin] 1301 --libexecdir=DIR program executables [EPREFIX/libexec] 1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1305 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1306 --libdir=DIR object code libraries [EPREFIX/lib] 1307 --includedir=DIR C header files [PREFIX/include] 1308 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1309 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1310 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1311 --infodir=DIR info documentation [DATAROOTDIR/info] 1312 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1313 --mandir=DIR man documentation [DATAROOTDIR/man] 1314 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1315 --htmldir=DIR html documentation [DOCDIR] 1316 --dvidir=DIR dvi documentation [DOCDIR] 1317 --pdfdir=DIR pdf documentation [DOCDIR] 1318 --psdir=DIR ps documentation [DOCDIR] 1319_ACEOF 1320 1321 cat <<\_ACEOF 1322 1323System types: 1324 --build=BUILD configure for building on BUILD [guessed] 1325 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1326_ACEOF 1327fi 1328 1329if test -n "$ac_init_help"; then 1330 1331 cat <<\_ACEOF 1332 1333Optional Features: 1334 --disable-option-checking ignore unrecognized --enable/--with options 1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1337 --disable-threads use to only build single threaded libs 1338 --disable-mask-real-errno do not mask real 'errno' 1339 --enable-sanitizers[=comma-separated list of sanitizers] 1340 Default=address,undefined 1341 1342Optional Packages: 1343 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1344 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1345 --with-gmp=PATH specify location of GNU MP include and lib 1346 --with-gmp use GNU MP (will search for it) 1347 1348Some influential environment variables: 1349 CC C compiler command 1350 CFLAGS C compiler flags 1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1352 nonstandard directory <lib dir> 1353 LIBS libraries to pass to the linker, e.g. -l<library> 1354 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1355 you have headers in a nonstandard directory <include dir> 1356 CPP C preprocessor 1357 1358Use these variables to override the choices made by `configure' or to help 1359it to find libraries and programs with nonstandard names/locations. 1360 1361Report bugs to the package provider. 1362_ACEOF 1363ac_status=$? 1364fi 1365 1366if test "$ac_init_help" = "recursive"; then 1367 # If there are subdirs, report their specific --help. 1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1369 test -d "$ac_dir" || 1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1371 continue 1372 ac_builddir=. 1373 1374case "$ac_dir" in 1375.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1376*) 1377 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1378 # A ".." for each directory in $ac_dir_suffix. 1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1380 case $ac_top_builddir_sub in 1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1383 esac ;; 1384esac 1385ac_abs_top_builddir=$ac_pwd 1386ac_abs_builddir=$ac_pwd$ac_dir_suffix 1387# for backward compatibility: 1388ac_top_builddir=$ac_top_build_prefix 1389 1390case $srcdir in 1391 .) # We are building in place. 1392 ac_srcdir=. 1393 ac_top_srcdir=$ac_top_builddir_sub 1394 ac_abs_top_srcdir=$ac_pwd ;; 1395 [\\/]* | ?:[\\/]* ) # Absolute name. 1396 ac_srcdir=$srcdir$ac_dir_suffix; 1397 ac_top_srcdir=$srcdir 1398 ac_abs_top_srcdir=$srcdir ;; 1399 *) # Relative name. 1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1401 ac_top_srcdir=$ac_top_build_prefix$srcdir 1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1403esac 1404ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1405 1406 cd "$ac_dir" || { ac_status=$?; continue; } 1407 # Check for guested configure. 1408 if test -f "$ac_srcdir/configure.gnu"; then 1409 echo && 1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1411 elif test -f "$ac_srcdir/configure"; then 1412 echo && 1413 $SHELL "$ac_srcdir/configure" --help=recursive 1414 else 1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1416 fi || ac_status=$? 1417 cd "$ac_pwd" || { ac_status=$?; break; } 1418 done 1419fi 1420 1421test -n "$ac_init_help" && exit $ac_status 1422if $ac_init_version; then 1423 cat <<\_ACEOF 1424configure 1425generated by GNU Autoconf 2.69 1426 1427Copyright (C) 2012 Free Software Foundation, Inc. 1428This configure script is free software; the Free Software Foundation 1429gives unlimited permission to copy, distribute and modify it. 1430_ACEOF 1431 exit 1432fi 1433 1434## ------------------------ ## 1435## Autoconf initialization. ## 1436## ------------------------ ## 1437 1438# ac_fn_c_try_compile LINENO 1439# -------------------------- 1440# Try to compile conftest.$ac_ext, and return whether this succeeded. 1441ac_fn_c_try_compile () 1442{ 1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1444 rm -f conftest.$ac_objext 1445 if { { ac_try="$ac_compile" 1446case "(($ac_try" in 1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1448 *) ac_try_echo=$ac_try;; 1449esac 1450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1451$as_echo "$ac_try_echo"; } >&5 1452 (eval "$ac_compile") 2>conftest.err 1453 ac_status=$? 1454 if test -s conftest.err; then 1455 grep -v '^ *+' conftest.err >conftest.er1 1456 cat conftest.er1 >&5 1457 mv -f conftest.er1 conftest.err 1458 fi 1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1460 test $ac_status = 0; } && { 1461 test -z "$ac_c_werror_flag" || 1462 test ! -s conftest.err 1463 } && test -s conftest.$ac_objext; then : 1464 ac_retval=0 1465else 1466 $as_echo "$as_me: failed program was:" >&5 1467sed 's/^/| /' conftest.$ac_ext >&5 1468 1469 ac_retval=1 1470fi 1471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1472 as_fn_set_status $ac_retval 1473 1474} # ac_fn_c_try_compile 1475 1476# ac_fn_c_try_cpp LINENO 1477# ---------------------- 1478# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1479ac_fn_c_try_cpp () 1480{ 1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1482 if { { ac_try="$ac_cpp conftest.$ac_ext" 1483case "(($ac_try" in 1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1485 *) ac_try_echo=$ac_try;; 1486esac 1487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1488$as_echo "$ac_try_echo"; } >&5 1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1490 ac_status=$? 1491 if test -s conftest.err; then 1492 grep -v '^ *+' conftest.err >conftest.er1 1493 cat conftest.er1 >&5 1494 mv -f conftest.er1 conftest.err 1495 fi 1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1497 test $ac_status = 0; } > conftest.i && { 1498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1499 test ! -s conftest.err 1500 }; then : 1501 ac_retval=0 1502else 1503 $as_echo "$as_me: failed program was:" >&5 1504sed 's/^/| /' conftest.$ac_ext >&5 1505 1506 ac_retval=1 1507fi 1508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1509 as_fn_set_status $ac_retval 1510 1511} # ac_fn_c_try_cpp 1512 1513# ac_fn_c_try_run LINENO 1514# ---------------------- 1515# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1516# that executables *can* be run. 1517ac_fn_c_try_run () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 if { { ac_try="$ac_link" 1521case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524esac 1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526$as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_link") 2>&5 1528 ac_status=$? 1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1530 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1531 { { case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534esac 1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536$as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_try") 2>&5 1538 ac_status=$? 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; }; }; then : 1541 ac_retval=0 1542else 1543 $as_echo "$as_me: program exited with status $ac_status" >&5 1544 $as_echo "$as_me: failed program was:" >&5 1545sed 's/^/| /' conftest.$ac_ext >&5 1546 1547 ac_retval=$ac_status 1548fi 1549 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_c_try_run 1554 1555# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1556# -------------------------------------------- 1557# Tries to find the compile-time value of EXPR in a program that includes 1558# INCLUDES, setting VAR accordingly. Returns whether the value could be 1559# computed 1560ac_fn_c_compute_int () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if test "$cross_compiling" = yes; then 1564 # Depending upon the size, compute the lo and hi bounds. 1565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1566/* end confdefs.h. */ 1567$4 1568int 1569main () 1570{ 1571static int test_array [1 - 2 * !(($2) >= 0)]; 1572test_array [0] = 0; 1573return test_array [0]; 1574 1575 ; 1576 return 0; 1577} 1578_ACEOF 1579if ac_fn_c_try_compile "$LINENO"; then : 1580 ac_lo=0 ac_mid=0 1581 while :; do 1582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1583/* end confdefs.h. */ 1584$4 1585int 1586main () 1587{ 1588static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1589test_array [0] = 0; 1590return test_array [0]; 1591 1592 ; 1593 return 0; 1594} 1595_ACEOF 1596if ac_fn_c_try_compile "$LINENO"; then : 1597 ac_hi=$ac_mid; break 1598else 1599 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1600 if test $ac_lo -le $ac_mid; then 1601 ac_lo= ac_hi= 1602 break 1603 fi 1604 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1605fi 1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1607 done 1608else 1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1610/* end confdefs.h. */ 1611$4 1612int 1613main () 1614{ 1615static int test_array [1 - 2 * !(($2) < 0)]; 1616test_array [0] = 0; 1617return test_array [0]; 1618 1619 ; 1620 return 0; 1621} 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO"; then : 1624 ac_hi=-1 ac_mid=-1 1625 while :; do 1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1627/* end confdefs.h. */ 1628$4 1629int 1630main () 1631{ 1632static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1633test_array [0] = 0; 1634return test_array [0]; 1635 1636 ; 1637 return 0; 1638} 1639_ACEOF 1640if ac_fn_c_try_compile "$LINENO"; then : 1641 ac_lo=$ac_mid; break 1642else 1643 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1644 if test $ac_mid -le $ac_hi; then 1645 ac_lo= ac_hi= 1646 break 1647 fi 1648 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651 done 1652else 1653 ac_lo= ac_hi= 1654fi 1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1656fi 1657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1658# Binary search between lo and hi bounds. 1659while test "x$ac_lo" != "x$ac_hi"; do 1660 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1662/* end confdefs.h. */ 1663$4 1664int 1665main () 1666{ 1667static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1668test_array [0] = 0; 1669return test_array [0]; 1670 1671 ; 1672 return 0; 1673} 1674_ACEOF 1675if ac_fn_c_try_compile "$LINENO"; then : 1676 ac_hi=$ac_mid 1677else 1678 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1679fi 1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681done 1682case $ac_lo in #(( 1683?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1684'') ac_retval=1 ;; 1685esac 1686 else 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689$4 1690static long int longval () { return $2; } 1691static unsigned long int ulongval () { return $2; } 1692#include <stdio.h> 1693#include <stdlib.h> 1694int 1695main () 1696{ 1697 1698 FILE *f = fopen ("conftest.val", "w"); 1699 if (! f) 1700 return 1; 1701 if (($2) < 0) 1702 { 1703 long int i = longval (); 1704 if (i != ($2)) 1705 return 1; 1706 fprintf (f, "%ld", i); 1707 } 1708 else 1709 { 1710 unsigned long int i = ulongval (); 1711 if (i != ($2)) 1712 return 1; 1713 fprintf (f, "%lu", i); 1714 } 1715 /* Do not output a trailing newline, as this causes \r\n confusion 1716 on some platforms. */ 1717 return ferror (f) || fclose (f) != 0; 1718 1719 ; 1720 return 0; 1721} 1722_ACEOF 1723if ac_fn_c_try_run "$LINENO"; then : 1724 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1725else 1726 ac_retval=1 1727fi 1728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1729 conftest.$ac_objext conftest.beam conftest.$ac_ext 1730rm -f conftest.val 1731 1732 fi 1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1734 as_fn_set_status $ac_retval 1735 1736} # ac_fn_c_compute_int 1737 1738# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1739# ------------------------------------------------------- 1740# Tests whether HEADER exists and can be compiled using the include files in 1741# INCLUDES, setting the cache variable VAR accordingly. 1742ac_fn_c_check_header_compile () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746$as_echo_n "checking for $2... " >&6; } 1747if eval \${$3+:} false; then : 1748 $as_echo_n "(cached) " >&6 1749else 1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752$4 1753#include <$2> 1754_ACEOF 1755if ac_fn_c_try_compile "$LINENO"; then : 1756 eval "$3=yes" 1757else 1758 eval "$3=no" 1759fi 1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1761fi 1762eval ac_res=\$$3 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1764$as_echo "$ac_res" >&6; } 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_header_compile 1768 1769# ac_fn_c_try_link LINENO 1770# ----------------------- 1771# Try to link conftest.$ac_ext, and return whether this succeeded. 1772ac_fn_c_try_link () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 rm -f conftest.$ac_objext conftest$ac_exeext 1776 if { { ac_try="$ac_link" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_link") 2>conftest.err 1784 ac_status=$? 1785 if test -s conftest.err; then 1786 grep -v '^ *+' conftest.err >conftest.er1 1787 cat conftest.er1 >&5 1788 mv -f conftest.er1 conftest.err 1789 fi 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; } && { 1792 test -z "$ac_c_werror_flag" || 1793 test ! -s conftest.err 1794 } && test -s conftest$ac_exeext && { 1795 test "$cross_compiling" = yes || 1796 test -x conftest$ac_exeext 1797 }; then : 1798 ac_retval=0 1799else 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=1 1804fi 1805 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1806 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1807 # interfere with the next link command; also delete a directory that is 1808 # left behind by Apple's compiler. We do this before executing the actions. 1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 as_fn_set_status $ac_retval 1812 1813} # ac_fn_c_try_link 1814 1815# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1816# ------------------------------------------------------- 1817# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1818# the include files in INCLUDES and setting the cache variable VAR 1819# accordingly. 1820ac_fn_c_check_header_mongrel () 1821{ 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 if eval \${$3+:} false; then : 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1825$as_echo_n "checking for $2... " >&6; } 1826if eval \${$3+:} false; then : 1827 $as_echo_n "(cached) " >&6 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832else 1833 # Is the header compilable? 1834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1835$as_echo_n "checking $2 usability... " >&6; } 1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838$4 1839#include <$2> 1840_ACEOF 1841if ac_fn_c_try_compile "$LINENO"; then : 1842 ac_header_compiler=yes 1843else 1844 ac_header_compiler=no 1845fi 1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1848$as_echo "$ac_header_compiler" >&6; } 1849 1850# Is the header present? 1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1852$as_echo_n "checking $2 presence... " >&6; } 1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855#include <$2> 1856_ACEOF 1857if ac_fn_c_try_cpp "$LINENO"; then : 1858 ac_header_preproc=yes 1859else 1860 ac_header_preproc=no 1861fi 1862rm -f conftest.err conftest.i conftest.$ac_ext 1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1864$as_echo "$ac_header_preproc" >&6; } 1865 1866# So? What about this header? 1867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1868 yes:no: ) 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1870$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1873 ;; 1874 no:yes:* ) 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1876$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1878$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1880$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1882$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1885 ;; 1886esac 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1888$as_echo_n "checking for $2... " >&6; } 1889if eval \${$3+:} false; then : 1890 $as_echo_n "(cached) " >&6 1891else 1892 eval "$3=\$ac_header_compiler" 1893fi 1894eval ac_res=\$$3 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896$as_echo "$ac_res" >&6; } 1897fi 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1899 1900} # ac_fn_c_check_header_mongrel 1901 1902# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1903# ------------------------------------------- 1904# Tests whether TYPE exists after having included INCLUDES, setting cache 1905# variable VAR accordingly. 1906ac_fn_c_check_type () 1907{ 1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1910$as_echo_n "checking for $2... " >&6; } 1911if eval \${$3+:} false; then : 1912 $as_echo_n "(cached) " >&6 1913else 1914 eval "$3=no" 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921if (sizeof ($2)) 1922 return 0; 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO"; then : 1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1929/* end confdefs.h. */ 1930$4 1931int 1932main () 1933{ 1934if (sizeof (($2))) 1935 return 0; 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_c_try_compile "$LINENO"; then : 1941 1942else 1943 eval "$3=yes" 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946fi 1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1948fi 1949eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951$as_echo "$ac_res" >&6; } 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 1954} # ac_fn_c_check_type 1955 1956# ac_fn_c_check_func LINENO FUNC VAR 1957# ---------------------------------- 1958# Tests whether FUNC exists, setting the cache variable VAR accordingly 1959ac_fn_c_check_func () 1960{ 1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1963$as_echo_n "checking for $2... " >&6; } 1964if eval \${$3+:} false; then : 1965 $as_echo_n "(cached) " >&6 1966else 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968/* end confdefs.h. */ 1969/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1971#define $2 innocuous_$2 1972 1973/* System header to define __stub macros and hopefully few prototypes, 1974 which can conflict with char $2 (); below. 1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1976 <limits.h> exists even on freestanding compilers. */ 1977 1978#ifdef __STDC__ 1979# include <limits.h> 1980#else 1981# include <assert.h> 1982#endif 1983 1984#undef $2 1985 1986/* Override any GCC internal prototype to avoid an error. 1987 Use char because int might match the return type of a GCC 1988 builtin and then its argument prototype would still apply. */ 1989#ifdef __cplusplus 1990extern "C" 1991#endif 1992char $2 (); 1993/* The GNU C library defines this for functions which it implements 1994 to always fail with ENOSYS. Some functions are actually named 1995 something starting with __ and the normal name is an alias. */ 1996#if defined __stub_$2 || defined __stub___$2 1997choke me 1998#endif 1999 2000int 2001main () 2002{ 2003return $2 (); 2004 ; 2005 return 0; 2006} 2007_ACEOF 2008if ac_fn_c_try_link "$LINENO"; then : 2009 eval "$3=yes" 2010else 2011 eval "$3=no" 2012fi 2013rm -f core conftest.err conftest.$ac_objext \ 2014 conftest$ac_exeext conftest.$ac_ext 2015fi 2016eval ac_res=\$$3 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2018$as_echo "$ac_res" >&6; } 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 2021} # ac_fn_c_check_func 2022cat >config.log <<_ACEOF 2023This file contains any messages produced by compilers while 2024running configure, to aid debugging if configure makes a mistake. 2025 2026It was created by $as_me, which was 2027generated by GNU Autoconf 2.69. Invocation command line was 2028 2029 $ $0 $@ 2030 2031_ACEOF 2032exec 5>>config.log 2033{ 2034cat <<_ASUNAME 2035## --------- ## 2036## Platform. ## 2037## --------- ## 2038 2039hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2040uname -m = `(uname -m) 2>/dev/null || echo unknown` 2041uname -r = `(uname -r) 2>/dev/null || echo unknown` 2042uname -s = `(uname -s) 2>/dev/null || echo unknown` 2043uname -v = `(uname -v) 2>/dev/null || echo unknown` 2044 2045/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2046/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2047 2048/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2049/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2050/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2051/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2052/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2053/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2054/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2055 2056_ASUNAME 2057 2058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2059for as_dir in $PATH 2060do 2061 IFS=$as_save_IFS 2062 test -z "$as_dir" && as_dir=. 2063 $as_echo "PATH: $as_dir" 2064 done 2065IFS=$as_save_IFS 2066 2067} >&5 2068 2069cat >&5 <<_ACEOF 2070 2071 2072## ----------- ## 2073## Core tests. ## 2074## ----------- ## 2075 2076_ACEOF 2077 2078 2079# Keep a trace of the command line. 2080# Strip out --no-create and --no-recursion so they do not pile up. 2081# Strip out --silent because we don't want to record it for future runs. 2082# Also quote any args containing shell meta-characters. 2083# Make two passes to allow for proper duplicate-argument suppression. 2084ac_configure_args= 2085ac_configure_args0= 2086ac_configure_args1= 2087ac_must_keep_next=false 2088for ac_pass in 1 2 2089do 2090 for ac_arg 2091 do 2092 case $ac_arg in 2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2095 | -silent | --silent | --silen | --sile | --sil) 2096 continue ;; 2097 *\'*) 2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2099 esac 2100 case $ac_pass in 2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2102 2) 2103 as_fn_append ac_configure_args1 " '$ac_arg'" 2104 if test $ac_must_keep_next = true; then 2105 ac_must_keep_next=false # Got value, back to normal. 2106 else 2107 case $ac_arg in 2108 *=* | --config-cache | -C | -disable-* | --disable-* \ 2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2111 | -with-* | --with-* | -without-* | --without-* | --x) 2112 case "$ac_configure_args0 " in 2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2114 esac 2115 ;; 2116 -* ) ac_must_keep_next=true ;; 2117 esac 2118 fi 2119 as_fn_append ac_configure_args " '$ac_arg'" 2120 ;; 2121 esac 2122 done 2123done 2124{ ac_configure_args0=; unset ac_configure_args0;} 2125{ ac_configure_args1=; unset ac_configure_args1;} 2126 2127# When interrupted or exit'd, cleanup temporary files, and complete 2128# config.log. We remove comments because anyway the quotes in there 2129# would cause problems or look ugly. 2130# WARNING: Use '\'' to represent an apostrophe within the trap. 2131# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2132trap 'exit_status=$? 2133 # Save into config.log some information that might help in debugging. 2134 { 2135 echo 2136 2137 $as_echo "## ---------------- ## 2138## Cache variables. ## 2139## ---------------- ##" 2140 echo 2141 # The following way of writing the cache mishandles newlines in values, 2142( 2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2144 eval ac_val=\$$ac_var 2145 case $ac_val in #( 2146 *${as_nl}*) 2147 case $ac_var in #( 2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2149$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2150 esac 2151 case $ac_var in #( 2152 _ | IFS | as_nl) ;; #( 2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2154 *) { eval $ac_var=; unset $ac_var;} ;; 2155 esac ;; 2156 esac 2157 done 2158 (set) 2>&1 | 2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2160 *${as_nl}ac_space=\ *) 2161 sed -n \ 2162 "s/'\''/'\''\\\\'\'''\''/g; 2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2164 ;; #( 2165 *) 2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2167 ;; 2168 esac | 2169 sort 2170) 2171 echo 2172 2173 $as_echo "## ----------------- ## 2174## Output variables. ## 2175## ----------------- ##" 2176 echo 2177 for ac_var in $ac_subst_vars 2178 do 2179 eval ac_val=\$$ac_var 2180 case $ac_val in 2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2182 esac 2183 $as_echo "$ac_var='\''$ac_val'\''" 2184 done | sort 2185 echo 2186 2187 if test -n "$ac_subst_files"; then 2188 $as_echo "## ------------------- ## 2189## File substitutions. ## 2190## ------------------- ##" 2191 echo 2192 for ac_var in $ac_subst_files 2193 do 2194 eval ac_val=\$$ac_var 2195 case $ac_val in 2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2197 esac 2198 $as_echo "$ac_var='\''$ac_val'\''" 2199 done | sort 2200 echo 2201 fi 2202 2203 if test -s confdefs.h; then 2204 $as_echo "## ----------- ## 2205## confdefs.h. ## 2206## ----------- ##" 2207 echo 2208 cat confdefs.h 2209 echo 2210 fi 2211 test "$ac_signal" != 0 && 2212 $as_echo "$as_me: caught signal $ac_signal" 2213 $as_echo "$as_me: exit $exit_status" 2214 } >&5 2215 rm -f core *.core core.conftest.* && 2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2217 exit $exit_status 2218' 0 2219for ac_signal in 1 2 13 15; do 2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2221done 2222ac_signal=0 2223 2224# confdefs.h avoids OS command line length limits that DEFS can exceed. 2225rm -f -r conftest* confdefs.h 2226 2227$as_echo "/* confdefs.h */" > confdefs.h 2228 2229# Predefined preprocessor variables. 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_NAME "$PACKAGE_NAME" 2233_ACEOF 2234 2235cat >>confdefs.h <<_ACEOF 2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2237_ACEOF 2238 2239cat >>confdefs.h <<_ACEOF 2240#define PACKAGE_VERSION "$PACKAGE_VERSION" 2241_ACEOF 2242 2243cat >>confdefs.h <<_ACEOF 2244#define PACKAGE_STRING "$PACKAGE_STRING" 2245_ACEOF 2246 2247cat >>confdefs.h <<_ACEOF 2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2249_ACEOF 2250 2251cat >>confdefs.h <<_ACEOF 2252#define PACKAGE_URL "$PACKAGE_URL" 2253_ACEOF 2254 2255 2256# Let the site file select an alternate cache file if it wants to. 2257# Prefer an explicitly selected file to automatically selected ones. 2258ac_site_file1=NONE 2259ac_site_file2=NONE 2260if test -n "$CONFIG_SITE"; then 2261 # We do not want a PATH search for config.site. 2262 case $CONFIG_SITE in #(( 2263 -*) ac_site_file1=./$CONFIG_SITE;; 2264 */*) ac_site_file1=$CONFIG_SITE;; 2265 *) ac_site_file1=./$CONFIG_SITE;; 2266 esac 2267elif test "x$prefix" != xNONE; then 2268 ac_site_file1=$prefix/share/config.site 2269 ac_site_file2=$prefix/etc/config.site 2270else 2271 ac_site_file1=$ac_default_prefix/share/config.site 2272 ac_site_file2=$ac_default_prefix/etc/config.site 2273fi 2274for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2275do 2276 test "x$ac_site_file" = xNONE && continue 2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2279$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2280 sed 's/^/| /' "$ac_site_file" >&5 2281 . "$ac_site_file" \ 2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2284as_fn_error $? "failed to load site script $ac_site_file 2285See \`config.log' for more details" "$LINENO" 5; } 2286 fi 2287done 2288 2289if test -r "$cache_file"; then 2290 # Some versions of bash will fail to source /dev/null (special files 2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2294$as_echo "$as_me: loading cache $cache_file" >&6;} 2295 case $cache_file in 2296 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2297 *) . "./$cache_file";; 2298 esac 2299 fi 2300else 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2302$as_echo "$as_me: creating cache $cache_file" >&6;} 2303 >$cache_file 2304fi 2305 2306# Check that the precious variables saved in the cache have kept the same 2307# value. 2308ac_cache_corrupted=false 2309for ac_var in $ac_precious_vars; do 2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2311 eval ac_new_set=\$ac_env_${ac_var}_set 2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2313 eval ac_new_val=\$ac_env_${ac_var}_value 2314 case $ac_old_set,$ac_new_set in 2315 set,) 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2317$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2318 ac_cache_corrupted=: ;; 2319 ,set) 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2321$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2322 ac_cache_corrupted=: ;; 2323 ,);; 2324 *) 2325 if test "x$ac_old_val" != "x$ac_new_val"; then 2326 # differences in whitespace do not lead to failure. 2327 ac_old_val_w=`echo x $ac_old_val` 2328 ac_new_val_w=`echo x $ac_new_val` 2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2331$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2332 ac_cache_corrupted=: 2333 else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2335$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2336 eval $ac_var=\$ac_old_val 2337 fi 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2339$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2341$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2342 fi;; 2343 esac 2344 # Pass precious variables to config.status. 2345 if test "$ac_new_set" = set; then 2346 case $ac_new_val in 2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2348 *) ac_arg=$ac_var=$ac_new_val ;; 2349 esac 2350 case " $ac_configure_args " in 2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2353 esac 2354 fi 2355done 2356if $ac_cache_corrupted; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2360$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2362fi 2363## -------------------- ## 2364## Main body of script. ## 2365## -------------------- ## 2366 2367ac_ext=c 2368ac_cpp='$CPP $CPPFLAGS' 2369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2371ac_compiler_gnu=$ac_cv_c_compiler_gnu 2372 2373 2374 2375#### Make srcdir absolute, if it isn't already. It's important to 2376#### avoid running the path through pwd unnecessary, since pwd can 2377#### give you automounter prefixes, which can go away. 2378case "${srcdir}" in 2379 /* ) ;; 2380 . ) 2381 ## We may be able to use the $PWD environment variable to make this 2382 ## absolute. But sometimes PWD is inaccurate. 2383 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). 2384 CDPATH= 2385 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; 2386 then 2387 srcdir="$PWD" 2388 else 2389 srcdir="`(cd ${srcdir}; pwd)`" 2390 fi 2391 ;; 2392 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; 2393esac 2394 2395ac_aux_dir= 2396for ac_dir in $srcdir/src/auxdir "$srcdir"/$srcdir/src/auxdir; do 2397 if test -f "$ac_dir/install-sh"; then 2398 ac_aux_dir=$ac_dir 2399 ac_install_sh="$ac_aux_dir/install-sh -c" 2400 break 2401 elif test -f "$ac_dir/install.sh"; then 2402 ac_aux_dir=$ac_dir 2403 ac_install_sh="$ac_aux_dir/install.sh -c" 2404 break 2405 elif test -f "$ac_dir/shtool"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/shtool install -c" 2408 break 2409 fi 2410done 2411if test -z "$ac_aux_dir"; then 2412 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/src/auxdir \"$srcdir\"/$srcdir/src/auxdir" "$LINENO" 5 2413fi 2414 2415# These three variables are undocumented and unsupported, 2416# and are intended to be withdrawn in a future Autoconf release. 2417# They can cause serious problems if a builder's source tree is in a directory 2418# whose full name contains unusual characters. 2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2422 2423 2424 2425if test "X$host" != "Xfree_source" -a "X$host" != "Xwin32"; then 2426 # Make sure we can run config.sub. 2427$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2428 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2429 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2431$as_echo_n "checking build system type... " >&6; } 2432if ${ac_cv_build+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434else 2435 ac_build_alias=$build_alias 2436test "x$ac_build_alias" = x && 2437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2438test "x$ac_build_alias" = x && 2439 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2440ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2442 2443fi 2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2445$as_echo "$ac_cv_build" >&6; } 2446case $ac_cv_build in 2447*-*-*) ;; 2448*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2449esac 2450build=$ac_cv_build 2451ac_save_IFS=$IFS; IFS='-' 2452set x $ac_cv_build 2453shift 2454build_cpu=$1 2455build_vendor=$2 2456shift; shift 2457# Remember, the first character of IFS is used to create $*, 2458# except with old shells: 2459build_os=$* 2460IFS=$ac_save_IFS 2461case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2462 2463 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2465$as_echo_n "checking host system type... " >&6; } 2466if ${ac_cv_host+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test "x$host_alias" = x; then 2470 ac_cv_host=$ac_cv_build 2471else 2472 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2474fi 2475 2476fi 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2478$as_echo "$ac_cv_host" >&6; } 2479case $ac_cv_host in 2480*-*-*) ;; 2481*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2482esac 2483host=$ac_cv_host 2484ac_save_IFS=$IFS; IFS='-' 2485set x $ac_cv_host 2486shift 2487host_cpu=$1 2488host_vendor=$2 2489shift; shift 2490# Remember, the first character of IFS is used to create $*, 2491# except with old shells: 2492host_os=$* 2493IFS=$ac_save_IFS 2494case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2495 2496 2497else 2498 host_os=win32 2499fi 2500 2501TARGET=$host 2502 2503 2504ac_config_headers="$ac_config_headers src/$host/config.h:config.h.in" 2505 2506 2507 2508# Use --disable-threads to force building single threaded libs even 2509# if pthreads exists (for test purposes). 2510# Check whether --enable-threads was given. 2511if test "${enable_threads+set}" = set; then : 2512 enableval=$enable_threads; case "$enableval" in 2513 no) threads_disabled=yes ;; 2514 *) threads_disabled=no ;; 2515 esac 2516else 2517 threads_disabled=maybe 2518fi 2519 2520 2521# Check whether --enable-mask-real-errno was given. 2522if test "${enable_mask_real_errno+set}" = set; then : 2523 enableval=$enable_mask_real_errno; case "$enableval" in 2524 no) mask_real_errno=no ;; 2525 *) mask_real_errno=yes ;; 2526 esac 2527else 2528 mask_real_errno=yes 2529fi 2530 2531 2532 2533 2534ac_ext=c 2535ac_cpp='$CPP $CPPFLAGS' 2536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2538ac_compiler_gnu=$ac_cv_c_compiler_gnu 2539if test -n "$ac_tool_prefix"; then 2540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2541set dummy ${ac_tool_prefix}gcc; ac_word=$2 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2543$as_echo_n "checking for $ac_word... " >&6; } 2544if ${ac_cv_prog_CC+:} false; then : 2545 $as_echo_n "(cached) " >&6 2546else 2547 if test -n "$CC"; then 2548 ac_cv_prog_CC="$CC" # Let the user override the test. 2549else 2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551for as_dir in $PATH 2552do 2553 IFS=$as_save_IFS 2554 test -z "$as_dir" && as_dir=. 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2557 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2559 break 2 2560 fi 2561done 2562 done 2563IFS=$as_save_IFS 2564 2565fi 2566fi 2567CC=$ac_cv_prog_CC 2568if test -n "$CC"; then 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2570$as_echo "$CC" >&6; } 2571else 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2573$as_echo "no" >&6; } 2574fi 2575 2576 2577fi 2578if test -z "$ac_cv_prog_CC"; then 2579 ac_ct_CC=$CC 2580 # Extract the first word of "gcc", so it can be a program name with args. 2581set dummy gcc; ac_word=$2 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2583$as_echo_n "checking for $ac_word... " >&6; } 2584if ${ac_cv_prog_ac_ct_CC+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 if test -n "$ac_ct_CC"; then 2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2597 ac_cv_prog_ac_ct_CC="gcc" 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602 done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607ac_ct_CC=$ac_cv_prog_ac_ct_CC 2608if test -n "$ac_ct_CC"; then 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2610$as_echo "$ac_ct_CC" >&6; } 2611else 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2613$as_echo "no" >&6; } 2614fi 2615 2616 if test "x$ac_ct_CC" = x; then 2617 CC="" 2618 else 2619 case $cross_compiling:$ac_tool_warned in 2620yes:) 2621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2623ac_tool_warned=yes ;; 2624esac 2625 CC=$ac_ct_CC 2626 fi 2627else 2628 CC="$ac_cv_prog_CC" 2629fi 2630 2631if test -z "$CC"; then 2632 if test -n "$ac_tool_prefix"; then 2633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2634set dummy ${ac_tool_prefix}cc; ac_word=$2 2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2636$as_echo_n "checking for $ac_word... " >&6; } 2637if ${ac_cv_prog_CC+:} false; then : 2638 $as_echo_n "(cached) " >&6 2639else 2640 if test -n "$CC"; then 2641 ac_cv_prog_CC="$CC" # Let the user override the test. 2642else 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2650 ac_cv_prog_CC="${ac_tool_prefix}cc" 2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2652 break 2 2653 fi 2654done 2655 done 2656IFS=$as_save_IFS 2657 2658fi 2659fi 2660CC=$ac_cv_prog_CC 2661if test -n "$CC"; then 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2663$as_echo "$CC" >&6; } 2664else 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2666$as_echo "no" >&6; } 2667fi 2668 2669 2670 fi 2671fi 2672if test -z "$CC"; then 2673 # Extract the first word of "cc", so it can be a program name with args. 2674set dummy cc; ac_word=$2 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2676$as_echo_n "checking for $ac_word... " >&6; } 2677if ${ac_cv_prog_CC+:} false; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 if test -n "$CC"; then 2681 ac_cv_prog_CC="$CC" # Let the user override the test. 2682else 2683 ac_prog_rejected=no 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2692 ac_prog_rejected=yes 2693 continue 2694 fi 2695 ac_cv_prog_CC="cc" 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700 done 2701IFS=$as_save_IFS 2702 2703if test $ac_prog_rejected = yes; then 2704 # We found a bogon in the path, so make sure we never use it. 2705 set dummy $ac_cv_prog_CC 2706 shift 2707 if test $# != 0; then 2708 # We chose a different compiler from the bogus one. 2709 # However, it has the same basename, so the bogon will be chosen 2710 # first if we set CC to just the basename; use the full file name. 2711 shift 2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2713 fi 2714fi 2715fi 2716fi 2717CC=$ac_cv_prog_CC 2718if test -n "$CC"; then 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2720$as_echo "$CC" >&6; } 2721else 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2723$as_echo "no" >&6; } 2724fi 2725 2726 2727fi 2728if test -z "$CC"; then 2729 if test -n "$ac_tool_prefix"; then 2730 for ac_prog in cl.exe 2731 do 2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2733set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2735$as_echo_n "checking for $ac_word... " >&6; } 2736if ${ac_cv_prog_CC+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 if test -n "$CC"; then 2740 ac_cv_prog_CC="$CC" # Let the user override the test. 2741else 2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2743for as_dir in $PATH 2744do 2745 IFS=$as_save_IFS 2746 test -z "$as_dir" && as_dir=. 2747 for ac_exec_ext in '' $ac_executable_extensions; do 2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2751 break 2 2752 fi 2753done 2754 done 2755IFS=$as_save_IFS 2756 2757fi 2758fi 2759CC=$ac_cv_prog_CC 2760if test -n "$CC"; then 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2762$as_echo "$CC" >&6; } 2763else 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2765$as_echo "no" >&6; } 2766fi 2767 2768 2769 test -n "$CC" && break 2770 done 2771fi 2772if test -z "$CC"; then 2773 ac_ct_CC=$CC 2774 for ac_prog in cl.exe 2775do 2776 # Extract the first word of "$ac_prog", so it can be a program name with args. 2777set dummy $ac_prog; ac_word=$2 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2779$as_echo_n "checking for $ac_word... " >&6; } 2780if ${ac_cv_prog_ac_ct_CC+:} false; then : 2781 $as_echo_n "(cached) " >&6 2782else 2783 if test -n "$ac_ct_CC"; then 2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2785else 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 test -z "$as_dir" && as_dir=. 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2793 ac_cv_prog_ac_ct_CC="$ac_prog" 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801fi 2802fi 2803ac_ct_CC=$ac_cv_prog_ac_ct_CC 2804if test -n "$ac_ct_CC"; then 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2806$as_echo "$ac_ct_CC" >&6; } 2807else 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2809$as_echo "no" >&6; } 2810fi 2811 2812 2813 test -n "$ac_ct_CC" && break 2814done 2815 2816 if test "x$ac_ct_CC" = x; then 2817 CC="" 2818 else 2819 case $cross_compiling:$ac_tool_warned in 2820yes:) 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2823ac_tool_warned=yes ;; 2824esac 2825 CC=$ac_ct_CC 2826 fi 2827fi 2828 2829fi 2830 2831 2832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2834as_fn_error $? "no acceptable C compiler found in \$PATH 2835See \`config.log' for more details" "$LINENO" 5; } 2836 2837# Provide some information about the compiler. 2838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2839set X $ac_compile 2840ac_compiler=$2 2841for ac_option in --version -v -V -qversion; do 2842 { { ac_try="$ac_compiler $ac_option >&5" 2843case "(($ac_try" in 2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2845 *) ac_try_echo=$ac_try;; 2846esac 2847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2848$as_echo "$ac_try_echo"; } >&5 2849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2850 ac_status=$? 2851 if test -s conftest.err; then 2852 sed '10a\ 2853... rest of stderr output deleted ... 2854 10q' conftest.err >conftest.er1 2855 cat conftest.er1 >&5 2856 fi 2857 rm -f conftest.er1 conftest.err 2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2859 test $ac_status = 0; } 2860done 2861 2862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2863/* end confdefs.h. */ 2864 2865int 2866main () 2867{ 2868 2869 ; 2870 return 0; 2871} 2872_ACEOF 2873ac_clean_files_save=$ac_clean_files 2874ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2875# Try to create an executable without -o first, disregard a.out. 2876# It will help us diagnose broken compilers, and finding out an intuition 2877# of exeext. 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2879$as_echo_n "checking whether the C compiler works... " >&6; } 2880ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2881 2882# The possible output files: 2883ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2884 2885ac_rmfiles= 2886for ac_file in $ac_files 2887do 2888 case $ac_file in 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2890 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2891 esac 2892done 2893rm -f $ac_rmfiles 2894 2895if { { ac_try="$ac_link_default" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2901$as_echo "$ac_try_echo"; } >&5 2902 (eval "$ac_link_default") 2>&5 2903 ac_status=$? 2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2905 test $ac_status = 0; }; then : 2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2908# in a Makefile. We should not override ac_cv_exeext if it was cached, 2909# so that the user can short-circuit this test for compilers unknown to 2910# Autoconf. 2911for ac_file in $ac_files '' 2912do 2913 test -f "$ac_file" || continue 2914 case $ac_file in 2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2916 ;; 2917 [ab].out ) 2918 # We found the default executable, but exeext='' is most 2919 # certainly right. 2920 break;; 2921 *.* ) 2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2923 then :; else 2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2925 fi 2926 # We set ac_cv_exeext here because the later test for it is not 2927 # safe: cross compilers may not add the suffix if given an `-o' 2928 # argument, so we may need to know it at that point already. 2929 # Even if this section looks crufty: it has the advantage of 2930 # actually working. 2931 break;; 2932 * ) 2933 break;; 2934 esac 2935done 2936test "$ac_cv_exeext" = no && ac_cv_exeext= 2937 2938else 2939 ac_file='' 2940fi 2941if test -z "$ac_file"; then : 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943$as_echo "no" >&6; } 2944$as_echo "$as_me: failed program was:" >&5 2945sed 's/^/| /' conftest.$ac_ext >&5 2946 2947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2949as_fn_error 77 "C compiler cannot create executables 2950See \`config.log' for more details" "$LINENO" 5; } 2951else 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2953$as_echo "yes" >&6; } 2954fi 2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2956$as_echo_n "checking for C compiler default output file name... " >&6; } 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2958$as_echo "$ac_file" >&6; } 2959ac_exeext=$ac_cv_exeext 2960 2961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2962ac_clean_files=$ac_clean_files_save 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2964$as_echo_n "checking for suffix of executables... " >&6; } 2965if { { ac_try="$ac_link" 2966case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2971$as_echo "$ac_try_echo"; } >&5 2972 (eval "$ac_link") 2>&5 2973 ac_status=$? 2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2975 test $ac_status = 0; }; then : 2976 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2978# work properly (i.e., refer to `conftest.exe'), while it won't with 2979# `rm'. 2980for ac_file in conftest.exe conftest conftest.*; do 2981 test -f "$ac_file" || continue 2982 case $ac_file in 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2985 break;; 2986 * ) break;; 2987 esac 2988done 2989else 2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2992as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2993See \`config.log' for more details" "$LINENO" 5; } 2994fi 2995rm -f conftest conftest$ac_cv_exeext 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2997$as_echo "$ac_cv_exeext" >&6; } 2998 2999rm -f conftest.$ac_ext 3000EXEEXT=$ac_cv_exeext 3001ac_exeext=$EXEEXT 3002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3003/* end confdefs.h. */ 3004#include <stdio.h> 3005int 3006main () 3007{ 3008FILE *f = fopen ("conftest.out", "w"); 3009 return ferror (f) || fclose (f) != 0; 3010 3011 ; 3012 return 0; 3013} 3014_ACEOF 3015ac_clean_files="$ac_clean_files conftest.out" 3016# Check that the compiler produces executables we can run. If not, either 3017# the compiler is broken, or we cross compile. 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3019$as_echo_n "checking whether we are cross compiling... " >&6; } 3020if test "$cross_compiling" != yes; then 3021 { { ac_try="$ac_link" 3022case "(($ac_try" in 3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3024 *) ac_try_echo=$ac_try;; 3025esac 3026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3027$as_echo "$ac_try_echo"; } >&5 3028 (eval "$ac_link") 2>&5 3029 ac_status=$? 3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3031 test $ac_status = 0; } 3032 if { ac_try='./conftest$ac_cv_exeext' 3033 { { case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3038$as_echo "$ac_try_echo"; } >&5 3039 (eval "$ac_try") 2>&5 3040 ac_status=$? 3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3042 test $ac_status = 0; }; }; then 3043 cross_compiling=no 3044 else 3045 if test "$cross_compiling" = maybe; then 3046 cross_compiling=yes 3047 else 3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3050as_fn_error $? "cannot run C compiled programs. 3051If you meant to cross compile, use \`--host'. 3052See \`config.log' for more details" "$LINENO" 5; } 3053 fi 3054 fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3057$as_echo "$cross_compiling" >&6; } 3058 3059rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3060ac_clean_files=$ac_clean_files_save 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3062$as_echo_n "checking for suffix of object files... " >&6; } 3063if ${ac_cv_objext+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3067/* end confdefs.h. */ 3068 3069int 3070main () 3071{ 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077rm -f conftest.o conftest.obj 3078if { { ac_try="$ac_compile" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3084$as_echo "$ac_try_echo"; } >&5 3085 (eval "$ac_compile") 2>&5 3086 ac_status=$? 3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3088 test $ac_status = 0; }; then : 3089 for ac_file in conftest.o conftest.obj conftest.*; do 3090 test -f "$ac_file" || continue; 3091 case $ac_file in 3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3094 break;; 3095 esac 3096done 3097else 3098 $as_echo "$as_me: failed program was:" >&5 3099sed 's/^/| /' conftest.$ac_ext >&5 3100 3101{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3103as_fn_error $? "cannot compute suffix of object files: cannot compile 3104See \`config.log' for more details" "$LINENO" 5; } 3105fi 3106rm -f conftest.$ac_cv_objext conftest.$ac_ext 3107fi 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3109$as_echo "$ac_cv_objext" >&6; } 3110OBJEXT=$ac_cv_objext 3111ac_objext=$OBJEXT 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3114if ${ac_cv_c_compiler_gnu+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3118/* end confdefs.h. */ 3119 3120int 3121main () 3122{ 3123#ifndef __GNUC__ 3124 choke me 3125#endif 3126 3127 ; 3128 return 0; 3129} 3130_ACEOF 3131if ac_fn_c_try_compile "$LINENO"; then : 3132 ac_compiler_gnu=yes 3133else 3134 ac_compiler_gnu=no 3135fi 3136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3137ac_cv_c_compiler_gnu=$ac_compiler_gnu 3138 3139fi 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3141$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3142if test $ac_compiler_gnu = yes; then 3143 GCC=yes 3144else 3145 GCC= 3146fi 3147ac_test_CFLAGS=${CFLAGS+set} 3148ac_save_CFLAGS=$CFLAGS 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3150$as_echo_n "checking whether $CC accepts -g... " >&6; } 3151if ${ac_cv_prog_cc_g+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 ac_save_c_werror_flag=$ac_c_werror_flag 3155 ac_c_werror_flag=yes 3156 ac_cv_prog_cc_g=no 3157 CFLAGS="-g" 3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3159/* end confdefs.h. */ 3160 3161int 3162main () 3163{ 3164 3165 ; 3166 return 0; 3167} 3168_ACEOF 3169if ac_fn_c_try_compile "$LINENO"; then : 3170 ac_cv_prog_cc_g=yes 3171else 3172 CFLAGS="" 3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174/* end confdefs.h. */ 3175 3176int 3177main () 3178{ 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184if ac_fn_c_try_compile "$LINENO"; then : 3185 3186else 3187 ac_c_werror_flag=$ac_save_c_werror_flag 3188 CFLAGS="-g" 3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200if ac_fn_c_try_compile "$LINENO"; then : 3201 ac_cv_prog_cc_g=yes 3202fi 3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3204fi 3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3206fi 3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3208 ac_c_werror_flag=$ac_save_c_werror_flag 3209fi 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3211$as_echo "$ac_cv_prog_cc_g" >&6; } 3212if test "$ac_test_CFLAGS" = set; then 3213 CFLAGS=$ac_save_CFLAGS 3214elif test $ac_cv_prog_cc_g = yes; then 3215 if test "$GCC" = yes; then 3216 CFLAGS="-g -O2" 3217 else 3218 CFLAGS="-g" 3219 fi 3220else 3221 if test "$GCC" = yes; then 3222 CFLAGS="-O2" 3223 else 3224 CFLAGS= 3225 fi 3226fi 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3229if ${ac_cv_prog_cc_c89+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 ac_cv_prog_cc_c89=no 3233ac_save_CC=$CC 3234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3235/* end confdefs.h. */ 3236#include <stdarg.h> 3237#include <stdio.h> 3238struct stat; 3239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3240struct buf { int x; }; 3241FILE * (*rcsopen) (struct buf *, struct stat *, int); 3242static char *e (p, i) 3243 char **p; 3244 int i; 3245{ 3246 return p[i]; 3247} 3248static char *f (char * (*g) (char **, int), char **p, ...) 3249{ 3250 char *s; 3251 va_list v; 3252 va_start (v,p); 3253 s = g (p, va_arg (v,int)); 3254 va_end (v); 3255 return s; 3256} 3257 3258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3259 function prototypes and stuff, but not '\xHH' hex character constants. 3260 These don't provoke an error unfortunately, instead are silently treated 3261 as 'x'. The following induces an error, until -std is added to get 3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3263 array size at least. It's necessary to write '\x00'==0 to get something 3264 that's true only with -std. */ 3265int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3266 3267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3268 inside strings and character constants. */ 3269#define FOO(x) 'x' 3270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3271 3272int test (int i, double x); 3273struct s1 {int (*f) (int a);}; 3274struct s2 {int (*f) (double a);}; 3275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3276int argc; 3277char **argv; 3278int 3279main () 3280{ 3281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3282 ; 3283 return 0; 3284} 3285_ACEOF 3286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3288do 3289 CC="$ac_save_CC $ac_arg" 3290 if ac_fn_c_try_compile "$LINENO"; then : 3291 ac_cv_prog_cc_c89=$ac_arg 3292fi 3293rm -f core conftest.err conftest.$ac_objext 3294 test "x$ac_cv_prog_cc_c89" != "xno" && break 3295done 3296rm -f conftest.$ac_ext 3297CC=$ac_save_CC 3298 3299fi 3300# AC_CACHE_VAL 3301case "x$ac_cv_prog_cc_c89" in 3302 x) 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3304$as_echo "none needed" >&6; } ;; 3305 xno) 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3307$as_echo "unsupported" >&6; } ;; 3308 *) 3309 CC="$CC $ac_cv_prog_cc_c89" 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3312esac 3313if test "x$ac_cv_prog_cc_c89" != xno; then : 3314 3315fi 3316 3317ac_ext=c 3318ac_cpp='$CPP $CPPFLAGS' 3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3321ac_compiler_gnu=$ac_cv_c_compiler_gnu 3322 3323ac_ext=c 3324ac_cpp='$CPP $CPPFLAGS' 3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3327ac_compiler_gnu=$ac_cv_c_compiler_gnu 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3329$as_echo_n "checking how to run the C preprocessor... " >&6; } 3330# On Suns, sometimes $CPP names a directory. 3331if test -n "$CPP" && test -d "$CPP"; then 3332 CPP= 3333fi 3334if test -z "$CPP"; then 3335 if ${ac_cv_prog_CPP+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 # Double quotes because CPP needs to be expanded 3339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3340 do 3341 ac_preproc_ok=false 3342for ac_c_preproc_warn_flag in '' yes 3343do 3344 # Use a header file that comes with gcc, so configuring glibc 3345 # with a fresh cross-compiler works. 3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3347 # <limits.h> exists even on freestanding compilers. 3348 # On the NeXT, cc -E runs the code through the compiler's parser, 3349 # not just through cpp. "Syntax error" is here to catch this case. 3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351/* end confdefs.h. */ 3352#ifdef __STDC__ 3353# include <limits.h> 3354#else 3355# include <assert.h> 3356#endif 3357 Syntax error 3358_ACEOF 3359if ac_fn_c_try_cpp "$LINENO"; then : 3360 3361else 3362 # Broken: fails on valid input. 3363continue 3364fi 3365rm -f conftest.err conftest.i conftest.$ac_ext 3366 3367 # OK, works on sane cases. Now check whether nonexistent headers 3368 # can be detected and how. 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370/* end confdefs.h. */ 3371#include <ac_nonexistent.h> 3372_ACEOF 3373if ac_fn_c_try_cpp "$LINENO"; then : 3374 # Broken: success on invalid input. 3375continue 3376else 3377 # Passes both tests. 3378ac_preproc_ok=: 3379break 3380fi 3381rm -f conftest.err conftest.i conftest.$ac_ext 3382 3383done 3384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3385rm -f conftest.i conftest.err conftest.$ac_ext 3386if $ac_preproc_ok; then : 3387 break 3388fi 3389 3390 done 3391 ac_cv_prog_CPP=$CPP 3392 3393fi 3394 CPP=$ac_cv_prog_CPP 3395else 3396 ac_cv_prog_CPP=$CPP 3397fi 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3399$as_echo "$CPP" >&6; } 3400ac_preproc_ok=false 3401for ac_c_preproc_warn_flag in '' yes 3402do 3403 # Use a header file that comes with gcc, so configuring glibc 3404 # with a fresh cross-compiler works. 3405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3406 # <limits.h> exists even on freestanding compilers. 3407 # On the NeXT, cc -E runs the code through the compiler's parser, 3408 # not just through cpp. "Syntax error" is here to catch this case. 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411#ifdef __STDC__ 3412# include <limits.h> 3413#else 3414# include <assert.h> 3415#endif 3416 Syntax error 3417_ACEOF 3418if ac_fn_c_try_cpp "$LINENO"; then : 3419 3420else 3421 # Broken: fails on valid input. 3422continue 3423fi 3424rm -f conftest.err conftest.i conftest.$ac_ext 3425 3426 # OK, works on sane cases. Now check whether nonexistent headers 3427 # can be detected and how. 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <ac_nonexistent.h> 3431_ACEOF 3432if ac_fn_c_try_cpp "$LINENO"; then : 3433 # Broken: success on invalid input. 3434continue 3435else 3436 # Passes both tests. 3437ac_preproc_ok=: 3438break 3439fi 3440rm -f conftest.err conftest.i conftest.$ac_ext 3441 3442done 3443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3444rm -f conftest.i conftest.err conftest.$ac_ext 3445if $ac_preproc_ok; then : 3446 3447else 3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3450as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3451See \`config.log' for more details" "$LINENO" 5; } 3452fi 3453 3454ac_ext=c 3455ac_cpp='$CPP $CPPFLAGS' 3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3458ac_compiler_gnu=$ac_cv_c_compiler_gnu 3459 3460if test -n "$ac_tool_prefix"; then 3461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3462set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464$as_echo_n "checking for $ac_word... " >&6; } 3465if ${ac_cv_prog_RANLIB+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test -n "$RANLIB"; then 3469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3470else 3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472for as_dir in $PATH 3473do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482done 3483 done 3484IFS=$as_save_IFS 3485 3486fi 3487fi 3488RANLIB=$ac_cv_prog_RANLIB 3489if test -n "$RANLIB"; then 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3491$as_echo "$RANLIB" >&6; } 3492else 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494$as_echo "no" >&6; } 3495fi 3496 3497 3498fi 3499if test -z "$ac_cv_prog_RANLIB"; then 3500 ac_ct_RANLIB=$RANLIB 3501 # Extract the first word of "ranlib", so it can be a program name with args. 3502set dummy ranlib; ac_word=$2 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3504$as_echo_n "checking for $ac_word... " >&6; } 3505if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507else 3508 if test -n "$ac_ct_RANLIB"; then 3509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3510else 3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512for as_dir in $PATH 3513do 3514 IFS=$as_save_IFS 3515 test -z "$as_dir" && as_dir=. 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3518 ac_cv_prog_ac_ct_RANLIB="ranlib" 3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3520 break 2 3521 fi 3522done 3523 done 3524IFS=$as_save_IFS 3525 3526fi 3527fi 3528ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3529if test -n "$ac_ct_RANLIB"; then 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3531$as_echo "$ac_ct_RANLIB" >&6; } 3532else 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534$as_echo "no" >&6; } 3535fi 3536 3537 if test "x$ac_ct_RANLIB" = x; then 3538 RANLIB=":" 3539 else 3540 case $cross_compiling:$ac_tool_warned in 3541yes:) 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3544ac_tool_warned=yes ;; 3545esac 3546 RANLIB=$ac_ct_RANLIB 3547 fi 3548else 3549 RANLIB="$ac_cv_prog_RANLIB" 3550fi 3551 3552for ac_prog in ld.sh 3553do 3554 # Extract the first word of "$ac_prog", so it can be a program name with args. 3555set dummy $ac_prog; ac_word=$2 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557$as_echo_n "checking for $ac_word... " >&6; } 3558if ${ac_cv_prog_LD+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 if test -n "$LD"; then 3562 ac_cv_prog_LD="$LD" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_LD="$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576 done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581LD=$ac_cv_prog_LD 3582if test -n "$LD"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3584$as_echo "$LD" >&6; } 3585else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588fi 3589 3590 3591 test -n "$LD" && break 3592done 3593 3594if test -n "$ac_tool_prefix"; then 3595 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. 3596set dummy ${ac_tool_prefix}ld; ac_word=$2 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3598$as_echo_n "checking for $ac_word... " >&6; } 3599if ${ac_cv_prog_LD+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 if test -n "$LD"; then 3603 ac_cv_prog_LD="$LD" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_LD="${ac_tool_prefix}ld" 3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622LD=$ac_cv_prog_LD 3623if test -n "$LD"; then 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3625$as_echo "$LD" >&6; } 3626else 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629fi 3630 3631 3632fi 3633if test -z "$ac_cv_prog_LD"; then 3634 ac_ct_LD=$LD 3635 # Extract the first word of "ld", so it can be a program name with args. 3636set dummy ld; ac_word=$2 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3638$as_echo_n "checking for $ac_word... " >&6; } 3639if ${ac_cv_prog_ac_ct_LD+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 if test -n "$ac_ct_LD"; then 3643 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. 3644else 3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH 3647do 3648 IFS=$as_save_IFS 3649 test -z "$as_dir" && as_dir=. 3650 for ac_exec_ext in '' $ac_executable_extensions; do 3651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3652 ac_cv_prog_ac_ct_LD="ld" 3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3654 break 2 3655 fi 3656done 3657 done 3658IFS=$as_save_IFS 3659 3660fi 3661fi 3662ac_ct_LD=$ac_cv_prog_ac_ct_LD 3663if test -n "$ac_ct_LD"; then 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 3665$as_echo "$ac_ct_LD" >&6; } 3666else 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3668$as_echo "no" >&6; } 3669fi 3670 3671 if test "x$ac_ct_LD" = x; then 3672 LD="'$(CC)'" 3673 else 3674 case $cross_compiling:$ac_tool_warned in 3675yes:) 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3678ac_tool_warned=yes ;; 3679esac 3680 LD=$ac_ct_LD 3681 fi 3682else 3683 LD="$ac_cv_prog_LD" 3684fi 3685 3686 3687 3688 3689 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3691$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3692if ${ac_cv_path_GREP+:} false; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 if test -z "$GREP"; then 3696 ac_path_GREP_found=false 3697 # Loop through the user's path and test for each of PROGNAME-LIST 3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3700do 3701 IFS=$as_save_IFS 3702 test -z "$as_dir" && as_dir=. 3703 for ac_prog in grep ggrep; do 3704 for ac_exec_ext in '' $ac_executable_extensions; do 3705 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3706 as_fn_executable_p "$ac_path_GREP" || continue 3707# Check for GNU ac_path_GREP and select it if it is found. 3708 # Check for GNU $ac_path_GREP 3709case `"$ac_path_GREP" --version 2>&1` in 3710*GNU*) 3711 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3712*) 3713 ac_count=0 3714 $as_echo_n 0123456789 >"conftest.in" 3715 while : 3716 do 3717 cat "conftest.in" "conftest.in" >"conftest.tmp" 3718 mv "conftest.tmp" "conftest.in" 3719 cp "conftest.in" "conftest.nl" 3720 $as_echo 'GREP' >> "conftest.nl" 3721 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3723 as_fn_arith $ac_count + 1 && ac_count=$as_val 3724 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3725 # Best one so far, save it but keep looking for a better one 3726 ac_cv_path_GREP="$ac_path_GREP" 3727 ac_path_GREP_max=$ac_count 3728 fi 3729 # 10*(2^10) chars as input seems more than enough 3730 test $ac_count -gt 10 && break 3731 done 3732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3733esac 3734 3735 $ac_path_GREP_found && break 3 3736 done 3737 done 3738 done 3739IFS=$as_save_IFS 3740 if test -z "$ac_cv_path_GREP"; then 3741 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3742 fi 3743else 3744 ac_cv_path_GREP=$GREP 3745fi 3746 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3749$as_echo "$ac_cv_path_GREP" >&6; } 3750 GREP="$ac_cv_path_GREP" 3751 3752 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3754$as_echo_n "checking for egrep... " >&6; } 3755if ${ac_cv_path_EGREP+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3759 then ac_cv_path_EGREP="$GREP -E" 3760 else 3761 if test -z "$EGREP"; then 3762 ac_path_EGREP_found=false 3763 # Loop through the user's path and test for each of PROGNAME-LIST 3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3766do 3767 IFS=$as_save_IFS 3768 test -z "$as_dir" && as_dir=. 3769 for ac_prog in egrep; do 3770 for ac_exec_ext in '' $ac_executable_extensions; do 3771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3772 as_fn_executable_p "$ac_path_EGREP" || continue 3773# Check for GNU ac_path_EGREP and select it if it is found. 3774 # Check for GNU $ac_path_EGREP 3775case `"$ac_path_EGREP" --version 2>&1` in 3776*GNU*) 3777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3778*) 3779 ac_count=0 3780 $as_echo_n 0123456789 >"conftest.in" 3781 while : 3782 do 3783 cat "conftest.in" "conftest.in" >"conftest.tmp" 3784 mv "conftest.tmp" "conftest.in" 3785 cp "conftest.in" "conftest.nl" 3786 $as_echo 'EGREP' >> "conftest.nl" 3787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3789 as_fn_arith $ac_count + 1 && ac_count=$as_val 3790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3791 # Best one so far, save it but keep looking for a better one 3792 ac_cv_path_EGREP="$ac_path_EGREP" 3793 ac_path_EGREP_max=$ac_count 3794 fi 3795 # 10*(2^10) chars as input seems more than enough 3796 test $ac_count -gt 10 && break 3797 done 3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3799esac 3800 3801 $ac_path_EGREP_found && break 3 3802 done 3803 done 3804 done 3805IFS=$as_save_IFS 3806 if test -z "$ac_cv_path_EGREP"; then 3807 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3808 fi 3809else 3810 ac_cv_path_EGREP=$EGREP 3811fi 3812 3813 fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3816$as_echo "$ac_cv_path_EGREP" >&6; } 3817 EGREP="$ac_cv_path_EGREP" 3818 3819 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3821$as_echo_n "checking for ANSI C header files... " >&6; } 3822if ${ac_cv_header_stdc+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827#include <stdlib.h> 3828#include <stdarg.h> 3829#include <string.h> 3830#include <float.h> 3831 3832int 3833main () 3834{ 3835 3836 ; 3837 return 0; 3838} 3839_ACEOF 3840if ac_fn_c_try_compile "$LINENO"; then : 3841 ac_cv_header_stdc=yes 3842else 3843 ac_cv_header_stdc=no 3844fi 3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3846 3847if test $ac_cv_header_stdc = yes; then 3848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851#include <string.h> 3852 3853_ACEOF 3854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3855 $EGREP "memchr" >/dev/null 2>&1; then : 3856 3857else 3858 ac_cv_header_stdc=no 3859fi 3860rm -f conftest* 3861 3862fi 3863 3864if test $ac_cv_header_stdc = yes; then 3865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868#include <stdlib.h> 3869 3870_ACEOF 3871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3872 $EGREP "free" >/dev/null 2>&1; then : 3873 3874else 3875 ac_cv_header_stdc=no 3876fi 3877rm -f conftest* 3878 3879fi 3880 3881if test $ac_cv_header_stdc = yes; then 3882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3883 if test "$cross_compiling" = yes; then : 3884 : 3885else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888#include <ctype.h> 3889#include <stdlib.h> 3890#if ((' ' & 0x0FF) == 0x020) 3891# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3892# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3893#else 3894# define ISLOWER(c) \ 3895 (('a' <= (c) && (c) <= 'i') \ 3896 || ('j' <= (c) && (c) <= 'r') \ 3897 || ('s' <= (c) && (c) <= 'z')) 3898# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3899#endif 3900 3901#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3902int 3903main () 3904{ 3905 int i; 3906 for (i = 0; i < 256; i++) 3907 if (XOR (islower (i), ISLOWER (i)) 3908 || toupper (i) != TOUPPER (i)) 3909 return 2; 3910 return 0; 3911} 3912_ACEOF 3913if ac_fn_c_try_run "$LINENO"; then : 3914 3915else 3916 ac_cv_header_stdc=no 3917fi 3918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3919 conftest.$ac_objext conftest.beam conftest.$ac_ext 3920fi 3921 3922fi 3923fi 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3925$as_echo "$ac_cv_header_stdc" >&6; } 3926if test $ac_cv_header_stdc = yes; then 3927 3928$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3929 3930fi 3931 3932# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3933for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3934 inttypes.h stdint.h unistd.h 3935do : 3936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3937ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3938" 3939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3940 cat >>confdefs.h <<_ACEOF 3941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3942_ACEOF 3943 3944fi 3945 3946done 3947 3948 3949# The cast to long int works around a bug in the HP C Compiler 3950# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3951# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3952# This bug is HP SR number 8606223364. 3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 3954$as_echo_n "checking size of short... " >&6; } 3955if ${ac_cv_sizeof_short+:} false; then : 3956 $as_echo_n "(cached) " >&6 3957else 3958 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 3959 3960else 3961 if test "$ac_cv_type_short" = yes; then 3962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3964as_fn_error 77 "cannot compute sizeof (short) 3965See \`config.log' for more details" "$LINENO" 5; } 3966 else 3967 ac_cv_sizeof_short=0 3968 fi 3969fi 3970 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 3973$as_echo "$ac_cv_sizeof_short" >&6; } 3974 3975 3976 3977cat >>confdefs.h <<_ACEOF 3978#define SIZEOF_SHORT $ac_cv_sizeof_short 3979_ACEOF 3980 3981 3982# The cast to long int works around a bug in the HP C Compiler 3983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 3984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 3985# This bug is HP SR number 8606223364. 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 3987$as_echo_n "checking size of int... " >&6; } 3988if ${ac_cv_sizeof_int+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 3992 3993else 3994 if test "$ac_cv_type_int" = yes; then 3995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3997as_fn_error 77 "cannot compute sizeof (int) 3998See \`config.log' for more details" "$LINENO" 5; } 3999 else 4000 ac_cv_sizeof_int=0 4001 fi 4002fi 4003 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4006$as_echo "$ac_cv_sizeof_int" >&6; } 4007 4008 4009 4010cat >>confdefs.h <<_ACEOF 4011#define SIZEOF_INT $ac_cv_sizeof_int 4012_ACEOF 4013 4014 4015# The cast to long int works around a bug in the HP C Compiler 4016# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4017# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4018# This bug is HP SR number 8606223364. 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4020$as_echo_n "checking size of long... " >&6; } 4021if ${ac_cv_sizeof_long+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4025 4026else 4027 if test "$ac_cv_type_long" = yes; then 4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4030as_fn_error 77 "cannot compute sizeof (long) 4031See \`config.log' for more details" "$LINENO" 5; } 4032 else 4033 ac_cv_sizeof_long=0 4034 fi 4035fi 4036 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4039$as_echo "$ac_cv_sizeof_long" >&6; } 4040 4041 4042 4043cat >>confdefs.h <<_ACEOF 4044#define SIZEOF_LONG $ac_cv_sizeof_long 4045_ACEOF 4046 4047 4048# The cast to long int works around a bug in the HP C Compiler 4049# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4050# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4051# This bug is HP SR number 8606223364. 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4053$as_echo_n "checking size of void *... " >&6; } 4054if ${ac_cv_sizeof_void_p+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4058 4059else 4060 if test "$ac_cv_type_void_p" = yes; then 4061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4063as_fn_error 77 "cannot compute sizeof (void *) 4064See \`config.log' for more details" "$LINENO" 5; } 4065 else 4066 ac_cv_sizeof_void_p=0 4067 fi 4068fi 4069 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4072$as_echo "$ac_cv_sizeof_void_p" >&6; } 4073 4074 4075 4076cat >>confdefs.h <<_ACEOF 4077#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4078_ACEOF 4079 4080 4081# The cast to long int works around a bug in the HP C Compiler 4082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4083# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4084# This bug is HP SR number 8606223364. 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 4086$as_echo_n "checking size of long long... " >&6; } 4087if ${ac_cv_sizeof_long_long+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 4091 4092else 4093 if test "$ac_cv_type_long_long" = yes; then 4094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4095$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4096as_fn_error 77 "cannot compute sizeof (long long) 4097See \`config.log' for more details" "$LINENO" 5; } 4098 else 4099 ac_cv_sizeof_long_long=0 4100 fi 4101fi 4102 4103fi 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 4105$as_echo "$ac_cv_sizeof_long_long" >&6; } 4106 4107 4108 4109cat >>confdefs.h <<_ACEOF 4110#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 4111_ACEOF 4112 4113 4114 4115if test $mask_real_errno = yes; then 4116 4117$as_echo "#define EI_HIDE_REAL_ERRNO 1" >>confdefs.h 4118 4119fi 4120 4121if test $ac_cv_sizeof_long = 8; then 4122 CFLAGS="$CFLAGS -DEI_64BIT" 4123fi 4124 4125 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target hardware architecture" >&5 4127$as_echo_n "checking target hardware architecture... " >&6; } 4128 if test "x$host_alias" != "x" -a "x$host_cpu" != "x"; then 4129 chk_arch_=$host_cpu 4130 else 4131 chk_arch_=`uname -m` 4132 fi 4133 4134 case $chk_arch_ in 4135 sun4u) ARCH=ultrasparc;; 4136 sparc64) ARCH=sparc64;; 4137 sun4v) ARCH=ultrasparc;; 4138 i86pc) ARCH=x86;; 4139 i386) ARCH=x86;; 4140 i486) ARCH=x86;; 4141 i586) ARCH=x86;; 4142 i686) ARCH=x86;; 4143 x86_64) ARCH=amd64;; 4144 amd64) ARCH=amd64;; 4145 macppc) ARCH=ppc;; 4146 powerpc) ARCH=ppc;; 4147 ppc) ARCH=ppc;; 4148 ppc64) ARCH=ppc64;; 4149 ppc64le) ARCH=ppc64le;; 4150 powerpc64) ARCH=ppc64;; 4151 powerpc64le) ARCH=ppc64le;; 4152 "Power Macintosh") ARCH=ppc;; 4153 arm64) ARCH=arm64;; 4154 armv5b) ARCH=arm;; 4155 armv5teb) ARCH=arm;; 4156 armv5tel) ARCH=arm;; 4157 armv5tejl) ARCH=arm;; 4158 armv6l) ARCH=arm;; 4159 armv6hl) ARCH=arm;; 4160 armv7l) ARCH=arm;; 4161 armv7hl) ARCH=arm;; 4162 armv8*) ARCH=arm;; 4163 aarch64) ARCH=arm64;; 4164 aarch*) ARCH=arm;; 4165 tile) ARCH=tile;; 4166 e2k) ARCH=e2k;; 4167 *) ARCH=noarch;; 4168 esac 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH" >&5 4170$as_echo "$ARCH" >&6; } 4171 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compilation mode forces ARCH adjustment" >&5 4173$as_echo_n "checking whether compilation mode forces ARCH adjustment... " >&6; } 4174 case "$ARCH-$ac_cv_sizeof_void_p" in 4175 x86-8) 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=x86 to ARCH=amd64" >&5 4177$as_echo "yes: adjusting ARCH=x86 to ARCH=amd64" >&6; } 4178 ARCH=amd64 4179 ;; 4180 amd64-4) 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=amd64 to ARCH=x86" >&5 4182$as_echo "yes: adjusting ARCH=amd64 to ARCH=x86" >&6; } 4183 ARCH=x86 4184 ;; 4185 ultrasparc-8) 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=ultrasparc to ARCH=sparc64" >&5 4187$as_echo "yes: adjusting ARCH=ultrasparc to ARCH=sparc64" >&6; } 4188 ARCH=sparc64 4189 ;; 4190 sparc64-4) 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=sparc64 to ARCH=ultrasparc" >&5 4192$as_echo "yes: adjusting ARCH=sparc64 to ARCH=ultrasparc" >&6; } 4193 ARCH=ultrasparc 4194 ;; 4195 ppc64-4) 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=ppc64 to ARCH=ppc" >&5 4197$as_echo "yes: adjusting ARCH=ppc64 to ARCH=ppc" >&6; } 4198 ARCH=ppc 4199 ;; 4200 ppc-8) 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=ppc to ARCH=ppc64" >&5 4202$as_echo "yes: adjusting ARCH=ppc to ARCH=ppc64" >&6; } 4203 ARCH=ppc64 4204 ;; 4205 arm-8) 4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: adjusting ARCH=arm to ARCH=arm64" >&5 4207$as_echo "yes: adjusting ARCH=arm to ARCH=arm64" >&6; } 4208 ARCH=arm64 4209 ;; 4210 *) 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: ARCH is $ARCH" >&5 4212$as_echo "no: ARCH is $ARCH" >&6; } 4213 ;; 4214 esac 4215 4216 4217 4218 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unaligned word access" >&5 4220$as_echo_n "checking for unaligned word access... " >&6; } 4221case "$ARCH" in 4222 x86|amd64) 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: x86 or amd64" >&5 4224$as_echo "yes: x86 or amd64" >&6; } 4225 4226$as_echo "#define HAVE_UNALIGNED_WORD_ACCESS 1" >>confdefs.h 4227 4228 ;; 4229 *) 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4231$as_echo "no" >&6; } 4232 ;; 4233esac 4234 4235if test -n "$ac_tool_prefix"; then 4236 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4237set dummy ${ac_tool_prefix}ar; ac_word=$2 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4239$as_echo_n "checking for $ac_word... " >&6; } 4240if ${ac_cv_prog_AR+:} false; then : 4241 $as_echo_n "(cached) " >&6 4242else 4243 if test -n "$AR"; then 4244 ac_cv_prog_AR="$AR" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_AR="${ac_tool_prefix}ar" 4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258 done 4259IFS=$as_save_IFS 4260 4261fi 4262fi 4263AR=$ac_cv_prog_AR 4264if test -n "$AR"; then 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4266$as_echo "$AR" >&6; } 4267else 4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269$as_echo "no" >&6; } 4270fi 4271 4272 4273fi 4274if test -z "$ac_cv_prog_AR"; then 4275 ac_ct_AR=$AR 4276 # Extract the first word of "ar", so it can be a program name with args. 4277set dummy ar; ac_word=$2 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4279$as_echo_n "checking for $ac_word... " >&6; } 4280if ${ac_cv_prog_ac_ct_AR+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 if test -n "$ac_ct_AR"; then 4284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4285else 4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4287for as_dir in $PATH 4288do 4289 IFS=$as_save_IFS 4290 test -z "$as_dir" && as_dir=. 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4293 ac_cv_prog_ac_ct_AR="ar" 4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 break 2 4296 fi 4297done 4298 done 4299IFS=$as_save_IFS 4300 4301fi 4302fi 4303ac_ct_AR=$ac_cv_prog_ac_ct_AR 4304if test -n "$ac_ct_AR"; then 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4306$as_echo "$ac_ct_AR" >&6; } 4307else 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4309$as_echo "no" >&6; } 4310fi 4311 4312 if test "x$ac_ct_AR" = x; then 4313 AR="false" 4314 else 4315 case $cross_compiling:$ac_tool_warned in 4316yes:) 4317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4319ac_tool_warned=yes ;; 4320esac 4321 AR=$ac_ct_AR 4322 fi 4323else 4324 AR="$ac_cv_prog_AR" 4325fi 4326 4327if test "$AR" = false; then 4328 as_fn_error $? "No 'ar' command found in PATH" "$LINENO" 5 4329fi 4330 4331case $host in 4332 *-*-solaris*|free_source) 4333 if test -x /usr/ucb/install; then 4334 INSTALL="/usr/ucb/install -c" 4335 fi 4336 ;; 4337 *) 4338 ;; 4339esac 4340 4341# Find a good install program. We prefer a C program (faster), 4342# so one script is as good as another. But avoid the broken or 4343# incompatible versions: 4344# SysV /etc/install, /usr/sbin/install 4345# SunOS /usr/etc/install 4346# IRIX /sbin/install 4347# AIX /bin/install 4348# AmigaOS /C/install, which installs bootblocks on floppy discs 4349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4350# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4352# OS/2's system install, which has a completely different semantic 4353# ./install, which can be erroneously created by make from ./install.sh. 4354# Reject install programs that cannot install multiple files. 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4356$as_echo_n "checking for a BSD-compatible install... " >&6; } 4357if test -z "$INSTALL"; then 4358if ${ac_cv_path_install+:} false; then : 4359 $as_echo_n "(cached) " >&6 4360else 4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH 4363do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 # Account for people who put trailing slashes in PATH elements. 4367case $as_dir/ in #(( 4368 ./ | .// | /[cC]/* | \ 4369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4370 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4371 /usr/ucb/* ) ;; 4372 *) 4373 # OSF1 and SCO ODT 3.0 have their own names for install. 4374 # Don't use installbsd from OSF since it installs stuff as root 4375 # by default. 4376 for ac_prog in ginstall scoinst install; do 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4379 if test $ac_prog = install && 4380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4381 # AIX install. It has an incompatible calling convention. 4382 : 4383 elif test $ac_prog = install && 4384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4385 # program-specific install script used by HP pwplus--don't use. 4386 : 4387 else 4388 rm -rf conftest.one conftest.two conftest.dir 4389 echo one > conftest.one 4390 echo two > conftest.two 4391 mkdir conftest.dir 4392 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4393 test -s conftest.one && test -s conftest.two && 4394 test -s conftest.dir/conftest.one && 4395 test -s conftest.dir/conftest.two 4396 then 4397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4398 break 3 4399 fi 4400 fi 4401 fi 4402 done 4403 done 4404 ;; 4405esac 4406 4407 done 4408IFS=$as_save_IFS 4409 4410rm -rf conftest.one conftest.two conftest.dir 4411 4412fi 4413 if test "${ac_cv_path_install+set}" = set; then 4414 INSTALL=$ac_cv_path_install 4415 else 4416 # As a last resort, use the slow shell script. Don't cache a 4417 # value for INSTALL within a source directory, because that will 4418 # break other packages using the cache if that directory is 4419 # removed, or if the value is a relative name. 4420 INSTALL=$ac_install_sh 4421 fi 4422fi 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4424$as_echo "$INSTALL" >&6; } 4425 4426# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4427# It thinks the first close brace ends the variable substitution. 4428test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4429 4430test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4431 4432test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4433 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a directory including parents" >&5 4435$as_echo_n "checking how to create a directory including parents... " >&6; } 4436if ${ac_cv_prog_mkdir_p+:} false; then : 4437 $as_echo_n "(cached) " >&6 4438else 4439 4440temp_name_base=config.$$ 4441temp_name=$temp_name_base/x/y/z 4442$INSTALL -d $temp_name >/dev/null 2>&1 4443ac_cv_prog_mkdir_p=none 4444if test -d $temp_name; then 4445 ac_cv_prog_mkdir_p="$INSTALL -d" 4446else 4447 mkdir -p $temp_name >/dev/null 2>&1 4448 if test -d $temp_name; then 4449 ac_cv_prog_mkdir_p="mkdir -p" 4450 fi 4451fi 4452rm -fr $temp_name_base 4453 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_mkdir_p" >&5 4456$as_echo "$ac_cv_prog_mkdir_p" >&6; } 4457 4458case "${ac_cv_prog_mkdir_p}" in 4459 none) as_fn_error $? "don't know how create directories with parents" "$LINENO" 5 ;; 4460 *) INSTALL_DIR="$ac_cv_prog_mkdir_p" ;; 4461esac 4462 4463 4464 4465case $host_os in 4466 darwin*) 4467 INSTALL_DATA="$INSTALL_DATA -p";; 4468 *) 4469 ;; 4470esac 4471 4472# Checks for libraries. 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 4474$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 4475if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 ac_check_lib_save_LIBS=$LIBS 4479LIBS="-lnsl $LIBS" 4480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482 4483/* Override any GCC internal prototype to avoid an error. 4484 Use char because int might match the return type of a GCC 4485 builtin and then its argument prototype would still apply. */ 4486#ifdef __cplusplus 4487extern "C" 4488#endif 4489char gethostbyname (); 4490int 4491main () 4492{ 4493return gethostbyname (); 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498if ac_fn_c_try_link "$LINENO"; then : 4499 ac_cv_lib_nsl_gethostbyname=yes 4500else 4501 ac_cv_lib_nsl_gethostbyname=no 4502fi 4503rm -f core conftest.err conftest.$ac_objext \ 4504 conftest$ac_exeext conftest.$ac_ext 4505LIBS=$ac_check_lib_save_LIBS 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 4508$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 4509if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 4510 cat >>confdefs.h <<_ACEOF 4511#define HAVE_LIBNSL 1 4512_ACEOF 4513 4514 LIBS="-lnsl $LIBS" 4515 4516fi 4517 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpeername in -lsocket" >&5 4519$as_echo_n "checking for getpeername in -lsocket... " >&6; } 4520if ${ac_cv_lib_socket_getpeername+:} false; then : 4521 $as_echo_n "(cached) " >&6 4522else 4523 ac_check_lib_save_LIBS=$LIBS 4524LIBS="-lsocket $LIBS" 4525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527 4528/* Override any GCC internal prototype to avoid an error. 4529 Use char because int might match the return type of a GCC 4530 builtin and then its argument prototype would still apply. */ 4531#ifdef __cplusplus 4532extern "C" 4533#endif 4534char getpeername (); 4535int 4536main () 4537{ 4538return getpeername (); 4539 ; 4540 return 0; 4541} 4542_ACEOF 4543if ac_fn_c_try_link "$LINENO"; then : 4544 ac_cv_lib_socket_getpeername=yes 4545else 4546 ac_cv_lib_socket_getpeername=no 4547fi 4548rm -f core conftest.err conftest.$ac_objext \ 4549 conftest$ac_exeext conftest.$ac_ext 4550LIBS=$ac_check_lib_save_LIBS 4551fi 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getpeername" >&5 4553$as_echo "$ac_cv_lib_socket_getpeername" >&6; } 4554if test "x$ac_cv_lib_socket_getpeername" = xyes; then : 4555 cat >>confdefs.h <<_ACEOF 4556#define HAVE_LIBSOCKET 1 4557_ACEOF 4558 4559 LIBS="-lsocket $LIBS" 4560 4561fi 4562 4563 4564# Checks for header files. 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4566$as_echo_n "checking for ANSI C header files... " >&6; } 4567if ${ac_cv_header_stdc+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571/* end confdefs.h. */ 4572#include <stdlib.h> 4573#include <stdarg.h> 4574#include <string.h> 4575#include <float.h> 4576 4577int 4578main () 4579{ 4580 4581 ; 4582 return 0; 4583} 4584_ACEOF 4585if ac_fn_c_try_compile "$LINENO"; then : 4586 ac_cv_header_stdc=yes 4587else 4588 ac_cv_header_stdc=no 4589fi 4590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4591 4592if test $ac_cv_header_stdc = yes; then 4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596#include <string.h> 4597 4598_ACEOF 4599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4600 $EGREP "memchr" >/dev/null 2>&1; then : 4601 4602else 4603 ac_cv_header_stdc=no 4604fi 4605rm -f conftest* 4606 4607fi 4608 4609if test $ac_cv_header_stdc = yes; then 4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613#include <stdlib.h> 4614 4615_ACEOF 4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4617 $EGREP "free" >/dev/null 2>&1; then : 4618 4619else 4620 ac_cv_header_stdc=no 4621fi 4622rm -f conftest* 4623 4624fi 4625 4626if test $ac_cv_header_stdc = yes; then 4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4628 if test "$cross_compiling" = yes; then : 4629 : 4630else 4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4632/* end confdefs.h. */ 4633#include <ctype.h> 4634#include <stdlib.h> 4635#if ((' ' & 0x0FF) == 0x020) 4636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4638#else 4639# define ISLOWER(c) \ 4640 (('a' <= (c) && (c) <= 'i') \ 4641 || ('j' <= (c) && (c) <= 'r') \ 4642 || ('s' <= (c) && (c) <= 'z')) 4643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4644#endif 4645 4646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4647int 4648main () 4649{ 4650 int i; 4651 for (i = 0; i < 256; i++) 4652 if (XOR (islower (i), ISLOWER (i)) 4653 || toupper (i) != TOUPPER (i)) 4654 return 2; 4655 return 0; 4656} 4657_ACEOF 4658if ac_fn_c_try_run "$LINENO"; then : 4659 4660else 4661 ac_cv_header_stdc=no 4662fi 4663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4664 conftest.$ac_objext conftest.beam conftest.$ac_ext 4665fi 4666 4667fi 4668fi 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4670$as_echo "$ac_cv_header_stdc" >&6; } 4671if test $ac_cv_header_stdc = yes; then 4672 4673$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4674 4675fi 4676 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4678$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4679if ${ac_cv_header_sys_wait_h+:} false; then : 4680 $as_echo_n "(cached) " >&6 4681else 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684#include <sys/types.h> 4685#include <sys/wait.h> 4686#ifndef WEXITSTATUS 4687# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4688#endif 4689#ifndef WIFEXITED 4690# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4691#endif 4692 4693int 4694main () 4695{ 4696 int s; 4697 wait (&s); 4698 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703if ac_fn_c_try_compile "$LINENO"; then : 4704 ac_cv_header_sys_wait_h=yes 4705else 4706 ac_cv_header_sys_wait_h=no 4707fi 4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4711$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4712if test $ac_cv_header_sys_wait_h = yes; then 4713 4714$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4715 4716fi 4717 4718for ac_header in arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stddef.h stdlib.h string.h sys/param.h sys/socket.h sys/select.h sys/time.h unistd.h sys/types.h sys/uio.h 4719do : 4720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4721ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4722if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4723 cat >>confdefs.h <<_ACEOF 4724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4725_ACEOF 4726 4727fi 4728 4729done 4730 4731 4732# Checks for typedefs, structures, and compiler characteristics. 4733# fixme AC_C_CONST & AC_C_VOLATILE needed for Windows? 4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 4735$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 4736if ${ac_cv_type_uid_t+:} false; then : 4737 $as_echo_n "(cached) " >&6 4738else 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741#include <sys/types.h> 4742 4743_ACEOF 4744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4745 $EGREP "uid_t" >/dev/null 2>&1; then : 4746 ac_cv_type_uid_t=yes 4747else 4748 ac_cv_type_uid_t=no 4749fi 4750rm -f conftest* 4751 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 4754$as_echo "$ac_cv_type_uid_t" >&6; } 4755if test $ac_cv_type_uid_t = no; then 4756 4757$as_echo "#define uid_t int" >>confdefs.h 4758 4759 4760$as_echo "#define gid_t int" >>confdefs.h 4761 4762fi 4763 4764ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 4765if test "x$ac_cv_type_pid_t" = xyes; then : 4766 4767else 4768 4769cat >>confdefs.h <<_ACEOF 4770#define pid_t int 4771_ACEOF 4772 4773fi 4774 4775ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4776if test "x$ac_cv_type_size_t" = xyes; then : 4777 4778else 4779 4780cat >>confdefs.h <<_ACEOF 4781#define size_t unsigned int 4782_ACEOF 4783 4784fi 4785 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 4787$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 4788if ${ac_cv_header_time+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790else 4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4792/* end confdefs.h. */ 4793#include <sys/types.h> 4794#include <sys/time.h> 4795#include <time.h> 4796 4797int 4798main () 4799{ 4800if ((struct tm *) 0) 4801return 0; 4802 ; 4803 return 0; 4804} 4805_ACEOF 4806if ac_fn_c_try_compile "$LINENO"; then : 4807 ac_cv_header_time=yes 4808else 4809 ac_cv_header_time=no 4810fi 4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4812fi 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 4814$as_echo "$ac_cv_header_time" >&6; } 4815if test $ac_cv_header_time = yes; then 4816 4817$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 4818 4819fi 4820 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t usability" >&5 4822$as_echo_n "checking for socklen_t usability... " >&6; } 4823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4824/* end confdefs.h. */ 4825#include <sys/types.h> 4826#include <sys/socket.h> 4827int 4828main () 4829{ 4830socklen_t mylen; 4831 ; 4832 return 0; 4833} 4834_ACEOF 4835if ac_fn_c_try_compile "$LINENO"; then : 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4837$as_echo "yes" >&6; } 4838 4839$as_echo "#define HAVE_SOCKLEN_T /**/" >>confdefs.h 4840 4841else 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4843$as_echo "no" >&6; } 4844fi 4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4846 4847# Checks for library functions. 4848# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4849# for constant arguments. Useless! 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 4851$as_echo_n "checking for working alloca.h... " >&6; } 4852if ${ac_cv_working_alloca_h+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857#include <alloca.h> 4858int 4859main () 4860{ 4861char *p = (char *) alloca (2 * sizeof (int)); 4862 if (p) return 0; 4863 ; 4864 return 0; 4865} 4866_ACEOF 4867if ac_fn_c_try_link "$LINENO"; then : 4868 ac_cv_working_alloca_h=yes 4869else 4870 ac_cv_working_alloca_h=no 4871fi 4872rm -f core conftest.err conftest.$ac_objext \ 4873 conftest$ac_exeext conftest.$ac_ext 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 4876$as_echo "$ac_cv_working_alloca_h" >&6; } 4877if test $ac_cv_working_alloca_h = yes; then 4878 4879$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 4880 4881fi 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 4884$as_echo_n "checking for alloca... " >&6; } 4885if ${ac_cv_func_alloca_works+:} false; then : 4886 $as_echo_n "(cached) " >&6 4887else 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890#ifdef __GNUC__ 4891# define alloca __builtin_alloca 4892#else 4893# ifdef _MSC_VER 4894# include <malloc.h> 4895# define alloca _alloca 4896# else 4897# ifdef HAVE_ALLOCA_H 4898# include <alloca.h> 4899# else 4900# ifdef _AIX 4901 #pragma alloca 4902# else 4903# ifndef alloca /* predefined by HP cc +Olibcalls */ 4904void *alloca (size_t); 4905# endif 4906# endif 4907# endif 4908# endif 4909#endif 4910 4911int 4912main () 4913{ 4914char *p = (char *) alloca (1); 4915 if (p) return 0; 4916 ; 4917 return 0; 4918} 4919_ACEOF 4920if ac_fn_c_try_link "$LINENO"; then : 4921 ac_cv_func_alloca_works=yes 4922else 4923 ac_cv_func_alloca_works=no 4924fi 4925rm -f core conftest.err conftest.$ac_objext \ 4926 conftest$ac_exeext conftest.$ac_ext 4927fi 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 4929$as_echo "$ac_cv_func_alloca_works" >&6; } 4930 4931if test $ac_cv_func_alloca_works = yes; then 4932 4933$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 4934 4935else 4936 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4937# that cause trouble. Some versions do not even contain alloca or 4938# contain a buggy version. If you still want to use their alloca, 4939# use ar to extract alloca.o from them instead of compiling alloca.c. 4940 4941ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4942 4943$as_echo "#define C_ALLOCA 1" >>confdefs.h 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 4947$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 4948if ${ac_cv_os_cray+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4952/* end confdefs.h. */ 4953#if defined CRAY && ! defined CRAY2 4954webecray 4955#else 4956wenotbecray 4957#endif 4958 4959_ACEOF 4960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4961 $EGREP "webecray" >/dev/null 2>&1; then : 4962 ac_cv_os_cray=yes 4963else 4964 ac_cv_os_cray=no 4965fi 4966rm -f conftest* 4967 4968fi 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 4970$as_echo "$ac_cv_os_cray" >&6; } 4971if test $ac_cv_os_cray = yes; then 4972 for ac_func in _getb67 GETB67 getb67; do 4973 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4974ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4975if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4976 4977cat >>confdefs.h <<_ACEOF 4978#define CRAY_STACKSEG_END $ac_func 4979_ACEOF 4980 4981 break 4982fi 4983 4984 done 4985fi 4986 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 4988$as_echo_n "checking stack direction for C alloca... " >&6; } 4989if ${ac_cv_c_stack_direction+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test "$cross_compiling" = yes; then : 4993 ac_cv_c_stack_direction=0 4994else 4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996/* end confdefs.h. */ 4997$ac_includes_default 4998int 4999find_stack_direction (int *addr, int depth) 5000{ 5001 int dir, dummy = 0; 5002 if (! addr) 5003 addr = &dummy; 5004 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 5005 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 5006 return dir + dummy; 5007} 5008 5009int 5010main (int argc, char **argv) 5011{ 5012 return find_stack_direction (0, argc + !argv + 20) < 0; 5013} 5014_ACEOF 5015if ac_fn_c_try_run "$LINENO"; then : 5016 ac_cv_c_stack_direction=1 5017else 5018 ac_cv_c_stack_direction=-1 5019fi 5020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5021 conftest.$ac_objext conftest.beam conftest.$ac_ext 5022fi 5023 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 5026$as_echo "$ac_cv_c_stack_direction" >&6; } 5027cat >>confdefs.h <<_ACEOF 5028#define STACK_DIRECTION $ac_cv_c_stack_direction 5029_ACEOF 5030 5031 5032fi 5033 5034# FIXME check that this isn't set in normal cases 5035if test $ac_cv_c_compiler_gnu = yes; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 5037$as_echo_n "checking whether $CC needs -traditional... " >&6; } 5038if ${ac_cv_prog_gcc_traditional+:} false; then : 5039 $as_echo_n "(cached) " >&6 5040else 5041 ac_pattern="Autoconf.*'x'" 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044#include <sgtty.h> 5045Autoconf TIOCGETP 5046_ACEOF 5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5048 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5049 ac_cv_prog_gcc_traditional=yes 5050else 5051 ac_cv_prog_gcc_traditional=no 5052fi 5053rm -f conftest* 5054 5055 5056 if test $ac_cv_prog_gcc_traditional = no; then 5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5058/* end confdefs.h. */ 5059#include <termio.h> 5060Autoconf TCGETA 5061_ACEOF 5062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5063 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 5064 ac_cv_prog_gcc_traditional=yes 5065fi 5066rm -f conftest* 5067 5068 fi 5069fi 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 5071$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 5072 if test $ac_cv_prog_gcc_traditional = yes; then 5073 CC="$CC -traditional" 5074 fi 5075fi 5076 5077# Check if malloc(0) is ok 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 5079$as_echo_n "checking for working memcmp... " >&6; } 5080if ${ac_cv_func_memcmp_working+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 if test "$cross_compiling" = yes; then : 5084 ac_cv_func_memcmp_working=no 5085else 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088$ac_includes_default 5089int 5090main () 5091{ 5092 5093 /* Some versions of memcmp are not 8-bit clean. */ 5094 char c0 = '\100', c1 = '\200', c2 = '\201'; 5095 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 5096 return 1; 5097 5098 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 5099 or more and with at least one buffer not starting on a 4-byte boundary. 5100 William Lewis provided this test program. */ 5101 { 5102 char foo[21]; 5103 char bar[21]; 5104 int i; 5105 for (i = 0; i < 4; i++) 5106 { 5107 char *a = foo + i; 5108 char *b = bar + i; 5109 strcpy (a, "--------01111111"); 5110 strcpy (b, "--------10000000"); 5111 if (memcmp (a, b, 16) >= 0) 5112 return 1; 5113 } 5114 return 0; 5115 } 5116 5117 ; 5118 return 0; 5119} 5120_ACEOF 5121if ac_fn_c_try_run "$LINENO"; then : 5122 ac_cv_func_memcmp_working=yes 5123else 5124 ac_cv_func_memcmp_working=no 5125fi 5126rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5127 conftest.$ac_objext conftest.beam conftest.$ac_ext 5128fi 5129 5130fi 5131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 5132$as_echo "$ac_cv_func_memcmp_working" >&6; } 5133test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 5134 *" memcmp.$ac_objext "* ) ;; 5135 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 5136 ;; 5137esac 5138 5139 5140for ac_func in dup2 gethostbyaddr gethostbyname \ 5141 gethostbyaddr_r \ 5142 gethostbyname_r gethostname writev \ 5143 gethrtime gettimeofday inet_ntoa memchr memmove memset select \ 5144 socket strchr strerror strrchr strstr uname sysconf 5145do : 5146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5148if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5149 cat >>confdefs.h <<_ACEOF 5150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5151_ACEOF 5152 5153fi 5154done 5155 5156ac_fn_c_check_func "$LINENO" "res_gethostbyname" "ac_cv_func_res_gethostbyname" 5157if test "x$ac_cv_func_res_gethostbyname" = xyes; then : 5158 5159else 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_gethostbyname in -lresolv" >&5 5161$as_echo_n "checking for res_gethostbyname in -lresolv... " >&6; } 5162if ${ac_cv_lib_resolv_res_gethostbyname+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 ac_check_lib_save_LIBS=$LIBS 5166LIBS="-lresolv $LIBS" 5167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169 5170/* Override any GCC internal prototype to avoid an error. 5171 Use char because int might match the return type of a GCC 5172 builtin and then its argument prototype would still apply. */ 5173#ifdef __cplusplus 5174extern "C" 5175#endif 5176char res_gethostbyname (); 5177int 5178main () 5179{ 5180return res_gethostbyname (); 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185if ac_fn_c_try_link "$LINENO"; then : 5186 ac_cv_lib_resolv_res_gethostbyname=yes 5187else 5188 ac_cv_lib_resolv_res_gethostbyname=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext \ 5191 conftest$ac_exeext conftest.$ac_ext 5192LIBS=$ac_check_lib_save_LIBS 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_gethostbyname" >&5 5195$as_echo "$ac_cv_lib_resolv_res_gethostbyname" >&6; } 5196if test "x$ac_cv_lib_resolv_res_gethostbyname" = xyes; then : 5197 cat >>confdefs.h <<_ACEOF 5198#define HAVE_LIBRESOLV 1 5199_ACEOF 5200 5201 LIBS="-lresolv $LIBS" 5202 5203fi 5204 5205 5206fi 5207 5208ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 5209if test "x$ac_cv_func_clock_gettime" = xyes; then : 5210 5211else 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 5213$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 5214if ${ac_cv_lib_rt_clock_gettime+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 ac_check_lib_save_LIBS=$LIBS 5218LIBS="-lrt $LIBS" 5219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221 5222/* Override any GCC internal prototype to avoid an error. 5223 Use char because int might match the return type of a GCC 5224 builtin and then its argument prototype would still apply. */ 5225#ifdef __cplusplus 5226extern "C" 5227#endif 5228char clock_gettime (); 5229int 5230main () 5231{ 5232return clock_gettime (); 5233 ; 5234 return 0; 5235} 5236_ACEOF 5237if ac_fn_c_try_link "$LINENO"; then : 5238 ac_cv_lib_rt_clock_gettime=yes 5239else 5240 ac_cv_lib_rt_clock_gettime=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244LIBS=$ac_check_lib_save_LIBS 5245fi 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 5247$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 5248if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 5249 cat >>confdefs.h <<_ACEOF 5250#define HAVE_LIBRT 1 5251_ACEOF 5252 5253 LIBS="-lrt $LIBS" 5254 5255fi 5256 5257 5258fi 5259 5260 5261# --------------------------------------------------------------------------- 5262# We don't link against libgmp except for "make check" 5263# but linking will also tell us that it is >= 4.1 5264# --------------------------------------------------------------------------- 5265 5266 5267# Check whether --with-gmp was given. 5268if test "${with_gmp+set}" = set; then : 5269 withval=$with_gmp; 5270fi 5271 5272 5273# We don't just want any GNU MP version, we want 4.1 or later 5274# that contain the import/export functions we need. 5275 5276if test "x$with_gmp" = "xyes" ;then 5277 for dir in /usr /usr/pkg /usr/local /usr/local/gmp /usr/lib/gmp /usr/gmp; do 5278 as_ac_Header=`$as_echo "ac_cv_header_$dir/include/gmp.h" | $as_tr_sh` 5279ac_fn_c_check_header_mongrel "$LINENO" "$dir/include/gmp.h" "$as_ac_Header" "$ac_includes_default" 5280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5281 ac_cv_gmp=yes 5282else 5283 ac_cv_gmp=no 5284fi 5285 5286 5287 if test $ac_cv_gmp = yes ; then 5288 CFLAGS="$CFLAGS -I$dir/include -L$dir/lib" 5289 5290$as_echo "#define HAVE_GMP_H /**/" >>confdefs.h 5291 5292 break 5293 fi 5294 done 5295 if test $ac_cv_gmp = no ; then 5296 as_fn_error $? "No GNU MP installation found" "$LINENO" 5 5297 fi 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_export in -lgmp" >&5 5299$as_echo_n "checking for __gmpz_export in -lgmp... " >&6; } 5300if ${ac_cv_lib_gmp___gmpz_export+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 ac_check_lib_save_LIBS=$LIBS 5304LIBS="-lgmp $LIBS" 5305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307 5308/* Override any GCC internal prototype to avoid an error. 5309 Use char because int might match the return type of a GCC 5310 builtin and then its argument prototype would still apply. */ 5311#ifdef __cplusplus 5312extern "C" 5313#endif 5314char __gmpz_export (); 5315int 5316main () 5317{ 5318return __gmpz_export (); 5319 ; 5320 return 0; 5321} 5322_ACEOF 5323if ac_fn_c_try_link "$LINENO"; then : 5324 ac_cv_lib_gmp___gmpz_export=yes 5325else 5326 ac_cv_lib_gmp___gmpz_export=no 5327fi 5328rm -f core conftest.err conftest.$ac_objext \ 5329 conftest$ac_exeext conftest.$ac_ext 5330LIBS=$ac_check_lib_save_LIBS 5331fi 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_export" >&5 5333$as_echo "$ac_cv_lib_gmp___gmpz_export" >&6; } 5334if test "x$ac_cv_lib_gmp___gmpz_export" = xyes; then : 5335 cat >>confdefs.h <<_ACEOF 5336#define HAVE_LIBGMP 1 5337_ACEOF 5338 5339 LIBS="-lgmp $LIBS" 5340 5341fi 5342 5343 # FIXME return ERROR if no lib 5344elif test "x$with_gmp" != "xno" -a -n "$with_gmp" ;then 5345 # Option given with PATH to package 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP" >&5 5347$as_echo_n "checking for GNU MP... " >&6; } 5348 if test ! -d "$with_gmp" ; then 5349 as_fn_error $? "Invalid path to option --with-gmp=PATH" "$LINENO" 5 5350 fi 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5352$as_echo "yes" >&6; } 5353 CFLAGS="$CFLAGS -I$with_gmp/include -L$with_gmp/lib" 5354 5355$as_echo "#define HAVE_GMP_H /**/" >>confdefs.h 5356 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_export in -lgmp" >&5 5358$as_echo_n "checking for __gmpz_export in -lgmp... " >&6; } 5359if ${ac_cv_lib_gmp___gmpz_export+:} false; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 ac_check_lib_save_LIBS=$LIBS 5363LIBS="-lgmp $LIBS" 5364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366 5367/* Override any GCC internal prototype to avoid an error. 5368 Use char because int might match the return type of a GCC 5369 builtin and then its argument prototype would still apply. */ 5370#ifdef __cplusplus 5371extern "C" 5372#endif 5373char __gmpz_export (); 5374int 5375main () 5376{ 5377return __gmpz_export (); 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382if ac_fn_c_try_link "$LINENO"; then : 5383 ac_cv_lib_gmp___gmpz_export=yes 5384else 5385 ac_cv_lib_gmp___gmpz_export=no 5386fi 5387rm -f core conftest.err conftest.$ac_objext \ 5388 conftest$ac_exeext conftest.$ac_ext 5389LIBS=$ac_check_lib_save_LIBS 5390fi 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_export" >&5 5392$as_echo "$ac_cv_lib_gmp___gmpz_export" >&6; } 5393if test "x$ac_cv_lib_gmp___gmpz_export" = xyes; then : 5394 cat >>confdefs.h <<_ACEOF 5395#define HAVE_LIBGMP 1 5396_ACEOF 5397 5398 LIBS="-lgmp $LIBS" 5399 5400fi 5401 5402 # FIXME return ERROR if no lib 5403fi 5404 5405 5406 5407if test "X$windows_environment_" != "Xchecked"; then 5408windows_environment_=checked 5409MIXED_CYGWIN=no 5410MIXED_MSYS=no 5411MIXED_VSL=no 5412 5413MIXED_VC=no 5414MIXED_MINGW=no 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed mingw-gcc and native VC++ environment" >&5 5417$as_echo_n "checking for mixed mingw-gcc and native VC++ environment... " >&6; } 5418if test "X$host" = "Xwin32" -a "x$GCC" != "xyes"; then 5419 if test -x /usr/bin/msys-?.0.dll; then 5420 CFLAGS="$CFLAGS -O2" 5421 MIXED_MSYS=yes 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MSYS and VC" >&5 5423$as_echo "MSYS and VC" >&6; } 5424 MIXED_VC=yes 5425 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 5426 elif test -x /usr/bin/cygpath; then 5427 CFLAGS="$CFLAGS -O2" 5428 MIXED_CYGWIN=yes 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cygwin and VC" >&5 5430$as_echo "Cygwin and VC" >&6; } 5431 MIXED_VC=yes 5432 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 5433 elif test -x /bin/wslpath; then 5434 CFLAGS="$CFLAGS -O2" 5435 MIXED_WSL=yes 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: WSL and VC" >&5 5437$as_echo "WSL and VC" >&6; } 5438 MIXED_VC=yes 5439 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_VC" 5440 else 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 5442$as_echo "undeterminable" >&6; } 5443 as_fn_error cannot handle this! "Seems to be mixed windows but not within any known env" "$LINENO" 5 5444 fi 5445else 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447$as_echo "no" >&6; } 5448fi 5449 5450 5451 5452if test "x$MIXED_MSYS" != "xyes"; then 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed cygwin and native MinGW environment" >&5 5454$as_echo_n "checking for mixed cygwin and native MinGW environment... " >&6; } 5455 if test "X$host" = "Xwin32" -a "x$GCC" = x"yes"; then 5456 if test -x /usr/bin/cygpath; then 5457 CFLAGS="$CFLAGS -O2" 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5459$as_echo "yes" >&6; } 5460 MIXED_MINGW=yes 5461 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW" 5462 else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 5464$as_echo "undeterminable" >&6; } 5465 as_fn_error cannot handle this! "Seems to be mixed windows but not with cygwin" "$LINENO" 5 5466 fi 5467 else 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469$as_echo "no" >&6; } 5470 fi 5471else 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mixed MSYS and native MinGW environment" >&5 5473$as_echo_n "checking for mixed MSYS and native MinGW environment... " >&6; } 5474 if test "x$GCC" = x"yes"; then 5475 if test -x /usr/bin/msys-=.0.dll; then 5476 CFLAGS="$CFLAGS -O2" 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5478$as_echo "yes" >&6; } 5479 MIXED_MINGW=yes 5480 CPPFLAGS="$CPPFLAGS -DERTS_MIXED_MINGW" 5481 else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: undeterminable" >&5 5483$as_echo "undeterminable" >&6; } 5484 as_fn_error cannot handle this! "Seems to be mixed windows but not with msys" "$LINENO" 5 5485 fi 5486 else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5488$as_echo "no" >&6; } 5489 fi 5490fi 5491 5492 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix cygwin with any native compiler" >&5 5494$as_echo_n "checking if we mix cygwin with any native compiler... " >&6; } 5495if test "X$MIXED_CYGWIN" = "Xyes"; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5497$as_echo "yes" >&6; } 5498else 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5500$as_echo "no" >&6; } 5501fi 5502 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix msys with another native compiler" >&5 5504$as_echo_n "checking if we mix msys with another native compiler... " >&6; } 5505if test "X$MIXED_MSYS" = "Xyes" ; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5507$as_echo "yes" >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5510$as_echo "no" >&6; } 5511fi 5512 5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we mix WSL with another native compiler" >&5 5514$as_echo_n "checking if we mix WSL with another native compiler... " >&6; } 5515if test "X$MIXED_WSL" = "Xyes" ; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5517$as_echo "yes" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523fi 5524 5525 5526 5527THR_LIBS= 5528THR_DEFS= 5529 5530 5531 5532 5533case "$threads_disabled" in 5534 no|maybe) 5535 5536 5537NEED_NPTL_PTHREAD_H=no 5538 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native win32 threads" >&5 5540$as_echo_n "checking for native win32 threads... " >&6; } 5541if test "X$host_os" = "Xwin32"; then 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5543$as_echo "yes" >&6; } 5544 THR_DEFS="-DWIN32_THREADS" 5545 THR_LIBS= 5546 THR_LIB_NAME=win32_threads 5547 THR_LIB_TYPE=win32_threads 5548else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5550$as_echo "no" >&6; } 5551 THR_DEFS= 5552 THR_LIBS= 5553 THR_LIB_NAME= 5554 THR_LIB_TYPE=posix_unknown 5555 5556 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 5558$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 5559if ${ac_cv_lib_pthread_pthread_create+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 ac_check_lib_save_LIBS=$LIBS 5563LIBS="-lpthread $LIBS" 5564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5565/* end confdefs.h. */ 5566 5567/* Override any GCC internal prototype to avoid an error. 5568 Use char because int might match the return type of a GCC 5569 builtin and then its argument prototype would still apply. */ 5570#ifdef __cplusplus 5571extern "C" 5572#endif 5573char pthread_create (); 5574int 5575main () 5576{ 5577return pthread_create (); 5578 ; 5579 return 0; 5580} 5581_ACEOF 5582if ac_fn_c_try_link "$LINENO"; then : 5583 ac_cv_lib_pthread_pthread_create=yes 5584else 5585 ac_cv_lib_pthread_pthread_create=no 5586fi 5587rm -f core conftest.err conftest.$ac_objext \ 5588 conftest$ac_exeext conftest.$ac_ext 5589LIBS=$ac_check_lib_save_LIBS 5590fi 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 5592$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 5593if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 5594 THR_LIBS="-lpthread" 5595fi 5596 5597 5598 if test "x$THR_LIBS" = "x"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 5600$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 5601if ${ac_cv_lib_c_r_pthread_create+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 ac_check_lib_save_LIBS=$LIBS 5605LIBS="-lc_r $LIBS" 5606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608 5609/* Override any GCC internal prototype to avoid an error. 5610 Use char because int might match the return type of a GCC 5611 builtin and then its argument prototype would still apply. */ 5612#ifdef __cplusplus 5613extern "C" 5614#endif 5615char pthread_create (); 5616int 5617main () 5618{ 5619return pthread_create (); 5620 ; 5621 return 0; 5622} 5623_ACEOF 5624if ac_fn_c_try_link "$LINENO"; then : 5625 ac_cv_lib_c_r_pthread_create=yes 5626else 5627 ac_cv_lib_c_r_pthread_create=no 5628fi 5629rm -f core conftest.err conftest.$ac_objext \ 5630 conftest$ac_exeext conftest.$ac_ext 5631LIBS=$ac_check_lib_save_LIBS 5632fi 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 5634$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 5635if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 5636 THR_LIBS="-lc_r" 5637fi 5638 5639 fi 5640 5641 if test "x$THR_LIBS" = "x"; then 5642 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 5643if test "x$ac_cv_func_pthread_create" = xyes; then : 5644 THR_LIBS="none_needed" 5645fi 5646 5647 fi 5648 5649 if test "x$THR_LIBS" = "x"; then 5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the '-pthread' switch can be used" >&5 5651$as_echo_n "checking if the '-pthread' switch can be used... " >&6; } 5652 saved_cflags=$CFLAGS 5653 CFLAGS="$CFLAGS -pthread" 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656#include <pthread.h> 5657int 5658main () 5659{ 5660pthread_create((void*)0,(void*)0,(void*)0,(void*)0); 5661 ; 5662 return 0; 5663} 5664_ACEOF 5665if ac_fn_c_try_link "$LINENO"; then : 5666 THR_DEFS="-pthread" 5667 THR_LIBS="-pthread" 5668fi 5669rm -f core conftest.err conftest.$ac_objext \ 5670 conftest$ac_exeext conftest.$ac_ext 5671 CFLAGS=$saved_cflags 5672 if test "x$THR_LIBS" != "x"; then 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5674$as_echo "yes" >&6; } 5675 else 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5677$as_echo "no" >&6; } 5678 fi 5679 fi 5680 5681 if test "x$THR_LIBS" != "x"; then 5682 THR_DEFS="$THR_DEFS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS" 5683 THR_LIB_NAME=pthread 5684 if test "x$THR_LIBS" = "xnone_needed"; then 5685 THR_LIBS= 5686 fi 5687 case $host_os in 5688 solaris*) 5689 THR_DEFS="$THR_DEFS -D_POSIX_PTHREAD_SEMANTICS" ;; 5690 linux*) 5691 THR_DEFS="$THR_DEFS -D_POSIX_THREAD_SAFE_FUNCTIONS" 5692 5693 5694if test "$cross_compiling" != "yes"; then 5695 # Extract the first word of "getconf", so it can be a program name with args. 5696set dummy getconf; ac_word=$2 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5698$as_echo_n "checking for $ac_word... " >&6; } 5699if ${ac_cv_prog_GETCONF+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701else 5702 if test -n "$GETCONF"; then 5703 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. 5704else 5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5706for as_dir in $PATH 5707do 5708 IFS=$as_save_IFS 5709 test -z "$as_dir" && as_dir=. 5710 for ac_exec_ext in '' $ac_executable_extensions; do 5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5712 ac_cv_prog_GETCONF="getconf" 5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5714 break 2 5715 fi 5716done 5717 done 5718IFS=$as_save_IFS 5719 5720 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false" 5721fi 5722fi 5723GETCONF=$ac_cv_prog_GETCONF 5724if test -n "$GETCONF"; then 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5726$as_echo "$GETCONF" >&6; } 5727else 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5729$as_echo "no" >&6; } 5730fi 5731 5732 5733else 5734 host_getconf="$host_alias-getconf" 5735 # Extract the first word of "$host_getconf", so it can be a program name with args. 5736set dummy $host_getconf; ac_word=$2 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5738$as_echo_n "checking for $ac_word... " >&6; } 5739if ${ac_cv_prog_GETCONF+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 if test -n "$GETCONF"; then 5743 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. 5744else 5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5746for as_dir in $PATH 5747do 5748 IFS=$as_save_IFS 5749 test -z "$as_dir" && as_dir=. 5750 for ac_exec_ext in '' $ac_executable_extensions; do 5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5752 ac_cv_prog_GETCONF="$host_getconf" 5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5754 break 2 5755 fi 5756done 5757 done 5758IFS=$as_save_IFS 5759 5760 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="false" 5761fi 5762fi 5763GETCONF=$ac_cv_prog_GETCONF 5764if test -n "$GETCONF"; then 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5766$as_echo "$GETCONF" >&6; } 5767else 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5769$as_echo "no" >&6; } 5770fi 5771 5772 5773 if test "$GETCONF" = "false" && test "$erl_xcomp_sysroot" != ""; then 5774 GETCONF= 5775 prfx="$erl_xcomp_sysroot" 5776 if test -n "$ac_tool_prefix"; then 5777 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. 5778set dummy ${ac_tool_prefix}getconf; ac_word=$2 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5780$as_echo_n "checking for $ac_word... " >&6; } 5781if ${ac_cv_path_GETCONF+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 case $GETCONF in 5785 [\\/]* | ?:[\\/]*) 5786 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path. 5787 ;; 5788 *) 5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5790as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin"" 5791for as_dir in $as_dummy 5792do 5793 IFS=$as_save_IFS 5794 test -z "$as_dir" && as_dir=. 5795 for ac_exec_ext in '' $ac_executable_extensions; do 5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5797 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext" 5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5799 break 2 5800 fi 5801done 5802 done 5803IFS=$as_save_IFS 5804 5805 ;; 5806esac 5807fi 5808GETCONF=$ac_cv_path_GETCONF 5809if test -n "$GETCONF"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5 5811$as_echo "$GETCONF" >&6; } 5812else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814$as_echo "no" >&6; } 5815fi 5816 5817 5818fi 5819if test -z "$ac_cv_path_GETCONF"; then 5820 ac_pt_GETCONF=$GETCONF 5821 # Extract the first word of "getconf", so it can be a program name with args. 5822set dummy getconf; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_path_ac_pt_GETCONF+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 case $ac_pt_GETCONF in 5829 [\\/]* | ?:[\\/]*) 5830 ac_cv_path_ac_pt_GETCONF="$ac_pt_GETCONF" # Let the user override the test with a path. 5831 ;; 5832 *) 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834as_dummy=""$prfx/usr/bin:$prfx/bin:$prfx/usr/local/bin"" 5835for as_dir in $as_dummy 5836do 5837 IFS=$as_save_IFS 5838 test -z "$as_dir" && as_dir=. 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5841 ac_cv_path_ac_pt_GETCONF="$as_dir/$ac_word$ac_exec_ext" 5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5843 break 2 5844 fi 5845done 5846 done 5847IFS=$as_save_IFS 5848 5849 ;; 5850esac 5851fi 5852ac_pt_GETCONF=$ac_cv_path_ac_pt_GETCONF 5853if test -n "$ac_pt_GETCONF"; then 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GETCONF" >&5 5855$as_echo "$ac_pt_GETCONF" >&6; } 5856else 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5858$as_echo "no" >&6; } 5859fi 5860 5861 if test "x$ac_pt_GETCONF" = x; then 5862 GETCONF="false" 5863 else 5864 case $cross_compiling:$ac_tool_warned in 5865yes:) 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5868ac_tool_warned=yes ;; 5869esac 5870 GETCONF=$ac_pt_GETCONF 5871 fi 5872else 5873 GETCONF="$ac_cv_path_GETCONF" 5874fi 5875 5876 fi 5877fi 5878 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Native POSIX Thread Library" >&5 5880$as_echo_n "checking for Native POSIX Thread Library... " >&6; } 5881 libpthr_vsn=`$GETCONF GNU_LIBPTHREAD_VERSION 2>/dev/null` 5882 if test $? -eq 0; then 5883 case "$libpthr_vsn" in 5884 *nptl*|*NPTL*) nptl=yes;; 5885 *) nptl=no;; 5886 esac 5887 elif test "$cross_compiling" = "yes"; then 5888 case "$erl_xcomp_linux_nptl" in 5889 "") nptl=cross;; 5890 yes|no) nptl=$erl_xcomp_linux_nptl;; 5891 *) as_fn_error $? "Bad erl_xcomp_linux_nptl value: $erl_xcomp_linux_nptl" "$LINENO" 5;; 5892 esac 5893 else 5894 nptl=no 5895 fi 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nptl" >&5 5897$as_echo "$nptl" >&6; } 5898 if test $nptl = cross; then 5899 nptl=yes 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5 5901$as_echo "$as_me: WARNING: result yes guessed because of cross compilation" >&2;} 5902 fi 5903 if test $nptl = yes; then 5904 THR_LIB_TYPE=posix_nptl 5905 need_nptl_incldir=no 5906 ac_fn_c_check_header_mongrel "$LINENO" "nptl/pthread.h" "ac_cv_header_nptl_pthread_h" "$ac_includes_default" 5907if test "x$ac_cv_header_nptl_pthread_h" = xyes; then : 5908 need_nptl_incldir=yes 5909 NEED_NPTL_PTHREAD_H=yes 5910fi 5911 5912 5913 if test $need_nptl_incldir = yes; then 5914 # Ahh... 5915 nptl_path="$C_INCLUDE_PATH:$CPATH" 5916 if test X$cross_compiling != Xyes; then 5917 nptl_path="$nptl_path:/usr/local/include:/usr/include" 5918 else 5919 IROOT="$erl_xcomp_isysroot" 5920 test "$IROOT" != "" || IROOT="$erl_xcomp_sysroot" 5921 test "$IROOT" != "" || as_fn_error $? "Don't know where to search for includes! Please set erl_xcomp_isysroot" "$LINENO" 5 5922 nptl_path="$nptl_path:$IROOT/usr/local/include:$IROOT/usr/include" 5923 fi 5924 nptl_ws_path= 5925 save_ifs="$IFS"; IFS=":" 5926 for dir in $nptl_path; do 5927 if test "x$dir" != "x"; then 5928 nptl_ws_path="$nptl_ws_path $dir" 5929 fi 5930 done 5931 IFS=$save_ifs 5932 nptl_incldir= 5933 for dir in $nptl_ws_path; do 5934 as_ac_Header=`$as_echo "ac_cv_header_$dir/nptl/pthread.h" | $as_tr_sh` 5935ac_fn_c_check_header_mongrel "$LINENO" "$dir/nptl/pthread.h" "$as_ac_Header" "$ac_includes_default" 5936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5937 nptl_incldir=$dir/nptl 5938fi 5939 5940 5941 if test "x$nptl_incldir" != "x"; then 5942 THR_DEFS="$THR_DEFS -isystem $nptl_incldir" 5943 break 5944 fi 5945 done 5946 if test "x$nptl_incldir" = "x"; then 5947 as_fn_error $? "Failed to locate nptl system include directory" "$LINENO" 5 5948 fi 5949 fi 5950 fi 5951 ;; 5952 *) ;; 5953 esac 5954 5955 saved_cppflags=$CPPFLAGS 5956 CPPFLAGS="$CPPFLAGS $THR_DEFS" 5957 5958 5959 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 5960if test "x$ac_cv_header_pthread_h" = xyes; then : 5961 5962$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 5963 5964fi 5965 5966 5967 5968 ac_fn_c_check_header_mongrel "$LINENO" "pthread/mit/pthread.h" "ac_cv_header_pthread_mit_pthread_h" "$ac_includes_default" 5969if test "x$ac_cv_header_pthread_mit_pthread_h" = xyes; then : 5970 \ 5971 5972$as_echo "#define HAVE_MIT_PTHREAD_H 1" >>confdefs.h 5973 5974fi 5975 5976 5977 5978 CPPFLAGS=$saved_cppflags 5979 5980 fi 5981fi 5982 5983 5984 5985 # The cast to long int works around a bug in the HP C Compiler 5986# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5987# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5988# This bug is HP SR number 8606223364. 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 5990$as_echo_n "checking size of short... " >&6; } 5991if ${ac_cv_sizeof_short+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 5995 5996else 5997 if test "$ac_cv_type_short" = yes; then 5998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6000as_fn_error 77 "cannot compute sizeof (short) 6001See \`config.log' for more details" "$LINENO" 5; } 6002 else 6003 ac_cv_sizeof_short=0 6004 fi 6005fi 6006 6007fi 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 6009$as_echo "$ac_cv_sizeof_short" >&6; } 6010 6011 6012 6013cat >>confdefs.h <<_ACEOF 6014#define SIZEOF_SHORT $ac_cv_sizeof_short 6015_ACEOF 6016 6017 6018 # The cast to long int works around a bug in the HP C Compiler 6019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6021# This bug is HP SR number 8606223364. 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6023$as_echo_n "checking size of int... " >&6; } 6024if ${ac_cv_sizeof_int+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6028 6029else 6030 if test "$ac_cv_type_int" = yes; then 6031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6033as_fn_error 77 "cannot compute sizeof (int) 6034See \`config.log' for more details" "$LINENO" 5; } 6035 else 6036 ac_cv_sizeof_int=0 6037 fi 6038fi 6039 6040fi 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6042$as_echo "$ac_cv_sizeof_int" >&6; } 6043 6044 6045 6046cat >>confdefs.h <<_ACEOF 6047#define SIZEOF_INT $ac_cv_sizeof_int 6048_ACEOF 6049 6050 6051 # The cast to long int works around a bug in the HP C Compiler 6052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6054# This bug is HP SR number 8606223364. 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6056$as_echo_n "checking size of long... " >&6; } 6057if ${ac_cv_sizeof_long+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6061 6062else 6063 if test "$ac_cv_type_long" = yes; then 6064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6066as_fn_error 77 "cannot compute sizeof (long) 6067See \`config.log' for more details" "$LINENO" 5; } 6068 else 6069 ac_cv_sizeof_long=0 6070 fi 6071fi 6072 6073fi 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6075$as_echo "$ac_cv_sizeof_long" >&6; } 6076 6077 6078 6079cat >>confdefs.h <<_ACEOF 6080#define SIZEOF_LONG $ac_cv_sizeof_long 6081_ACEOF 6082 6083 6084 # The cast to long int works around a bug in the HP C Compiler 6085# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6086# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6087# This bug is HP SR number 8606223364. 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6089$as_echo_n "checking size of long long... " >&6; } 6090if ${ac_cv_sizeof_long_long+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6094 6095else 6096 if test "$ac_cv_type_long_long" = yes; then 6097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6099as_fn_error 77 "cannot compute sizeof (long long) 6100See \`config.log' for more details" "$LINENO" 5; } 6101 else 6102 ac_cv_sizeof_long_long=0 6103 fi 6104fi 6105 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6108$as_echo "$ac_cv_sizeof_long_long" >&6; } 6109 6110 6111 6112cat >>confdefs.h <<_ACEOF 6113#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6114_ACEOF 6115 6116 6117 # The cast to long int works around a bug in the HP C Compiler 6118# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6119# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6120# This bug is HP SR number 8606223364. 6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int128_t" >&5 6122$as_echo_n "checking size of __int128_t... " >&6; } 6123if ${ac_cv_sizeof___int128_t+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128_t))" "ac_cv_sizeof___int128_t" "$ac_includes_default"; then : 6127 6128else 6129 if test "$ac_cv_type___int128_t" = yes; then 6130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6132as_fn_error 77 "cannot compute sizeof (__int128_t) 6133See \`config.log' for more details" "$LINENO" 5; } 6134 else 6135 ac_cv_sizeof___int128_t=0 6136 fi 6137fi 6138 6139fi 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128_t" >&5 6141$as_echo "$ac_cv_sizeof___int128_t" >&6; } 6142 6143 6144 6145cat >>confdefs.h <<_ACEOF 6146#define SIZEOF___INT128_T $ac_cv_sizeof___int128_t 6147_ACEOF 6148 6149 6150 6151 if test "$ac_cv_sizeof_short" = "4"; then 6152 gcc_atomic_type32="short" 6153 elif test "$ac_cv_sizeof_int" = "4"; then 6154 gcc_atomic_type32="int" 6155 elif test "$ac_cv_sizeof_long" = "4"; then 6156 gcc_atomic_type32="long" 6157 else 6158 as_fn_error $? "No 32-bit type found" "$LINENO" 5 6159 fi 6160 6161 if test "$ac_cv_sizeof_int" = "8"; then 6162 gcc_atomic_type64="int" 6163 elif test "$ac_cv_sizeof_long" = "8"; then 6164 gcc_atomic_type64="long" 6165 elif test "$ac_cv_sizeof_long_long" = "8"; then 6166 gcc_atomic_type64="long long" 6167 else 6168 as_fn_error $? "No 64-bit type found" "$LINENO" 5 6169 fi 6170 6171 if test "$ac_cv_sizeof___int128_t" = "16"; then 6172 gcc_atomic_type128="__int128_t" 6173 else 6174 gcc_atomic_type128="#error " 6175 fi 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working __sync_synchronize()" >&5 6177$as_echo_n "checking for a working __sync_synchronize()... " >&6; } 6178if ${ethr_cv___sync_synchronize+:} false; then : 6179 $as_echo_n "(cached) " >&6 6180else 6181 6182 ethr_cv___sync_synchronize=no 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185 6186int 6187main () 6188{ 6189 __sync_synchronize(); 6190 ; 6191 return 0; 6192} 6193_ACEOF 6194if ac_fn_c_try_link "$LINENO"; then : 6195 ethr_cv___sync_synchronize=yes 6196fi 6197rm -f core conftest.err conftest.$ac_objext \ 6198 conftest$ac_exeext conftest.$ac_ext 6199 if test $ethr_cv___sync_synchronize = yes; then 6200 # 6201 # Old gcc versions on at least x86 have a buggy 6202 # __sync_synchronize() which does not emit a 6203 # memory barrier. We try to detect this by 6204 # compiling to assembly with and without 6205 # __sync_synchronize() and compare the results. 6206 # 6207 6208 ethr_test_filename="chk_if___sync_synchronize_noop_config1test.$$" 6209 cat > "${ethr_test_filename}.c" <<EOF 6210int 6211my_test(void) 6212{ 6213 __sync_synchronize(); 6214 return 0; 6215} 6216EOF 6217 $CC -O3 $ETHR_DEFS -c "${ethr_test_filename}.c" -o "${ethr_test_filename}1.o" 6218 cat > "${ethr_test_filename}.c" <<EOF 6219int 6220my_test(void) 6221{ 6222 ; 6223 return 0; 6224} 6225EOF 6226 $CC -O3 $ETHR_DEFS -c "${ethr_test_filename}.c" -o "${ethr_test_filename}2.o" 6227 if diff "${ethr_test_filename}1.o" "${ethr_test_filename}2.o" >/dev/null 2>&1; then 6228 ethr___sync_synchronize_noop=yes 6229 else 6230 ethr___sync_synchronize_noop=no 6231 fi 6232 rm -f "${ethr_test_filename}.c" "${ethr_test_filename}1.o" "${ethr_test_filename}2.o" 6233 6234 if test $ethr___sync_synchronize_noop = yes; then 6235 # Got a buggy implementation of 6236 # __sync_synchronize... 6237 ethr_cv___sync_synchronize="no; buggy implementation" 6238 fi 6239 fi 6240 6241fi 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv___sync_synchronize" >&5 6243$as_echo "$ethr_cv___sync_synchronize" >&6; } 6244 6245 if test "$ethr_cv___sync_synchronize" = "yes"; then 6246 have_sync_synchronize_value="~0" 6247 else 6248 have_sync_synchronize_value="0" 6249 fi 6250 6251cat >>confdefs.h <<_ACEOF 6252#define ETHR_HAVE___sync_synchronize $have_sync_synchronize_value 6253_ACEOF 6254 6255 6256 6257 # __sync_add_and_fetch - atomic_op 6258 6259 for atomic_bit_size in 32 64 128; do 6260 case $atomic_bit_size in 6261 32) gcc_atomic_type="$gcc_atomic_type32";; 6262 64) gcc_atomic_type="$gcc_atomic_type64";; 6263 128) gcc_atomic_type="$gcc_atomic_type128";; 6264 esac 6265 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6266 case __sync_add_and_fetch in 6267 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6268 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_add_and_fetch(&var, ($gcc_atomic_type) 0);" 6269 ;; 6270 __sync_val_compare_and_swap) 6271 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6272 ;; 6273 __atomic_store_n) 6274 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6275 ;; 6276 __atomic_load_n) 6277 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_add_and_fetch(&var, __ATOMIC_RELAXED); res = __sync_add_and_fetch(&var, __ATOMIC_ACQUIRE);" 6278 ;; 6279 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6280 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __sync_add_and_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6281 ;; 6282 __atomic_compare_exchange_n) 6283 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __sync_add_and_fetch(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __sync_add_and_fetch(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6284 ;; 6285 *) 6286 as_fn_error $? "Internal error: missing implementation for __sync_add_and_fetch" "$LINENO" 5 6287 ;; 6288 esac 6289 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 6290 done 6291 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __sync_add_and_fetch()" >&5 6293$as_echo_n "checking for 32-bit __sync_add_and_fetch()... " >&6; } 6294if ${ethr_cv_32bit___sync_add_and_fetch+:} false; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 6298 ethr_cv_32bit___sync_add_and_fetch=no 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301 6302int 6303main () 6304{ 6305$atomic32_call 6306 ; 6307 return 0; 6308} 6309_ACEOF 6310if ac_fn_c_try_link "$LINENO"; then : 6311 ethr_cv_32bit___sync_add_and_fetch=yes 6312fi 6313rm -f core conftest.err conftest.$ac_objext \ 6314 conftest$ac_exeext conftest.$ac_ext 6315 6316fi 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___sync_add_and_fetch" >&5 6318$as_echo "$ethr_cv_32bit___sync_add_and_fetch" >&6; } 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync_add_and_fetch()" >&5 6320$as_echo_n "checking for 64-bit __sync_add_and_fetch()... " >&6; } 6321if ${ethr_cv_64bit___sync_add_and_fetch+:} false; then : 6322 $as_echo_n "(cached) " >&6 6323else 6324 6325 ethr_cv_64bit___sync_add_and_fetch=no 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328 6329int 6330main () 6331{ 6332$atomic64_call 6333 ; 6334 return 0; 6335} 6336_ACEOF 6337if ac_fn_c_try_link "$LINENO"; then : 6338 ethr_cv_64bit___sync_add_and_fetch=yes 6339fi 6340rm -f core conftest.err conftest.$ac_objext \ 6341 conftest$ac_exeext conftest.$ac_ext 6342 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___sync_add_and_fetch" >&5 6345$as_echo "$ethr_cv_64bit___sync_add_and_fetch" >&6; } 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __sync_add_and_fetch()" >&5 6347$as_echo_n "checking for 128-bit __sync_add_and_fetch()... " >&6; } 6348if ${ethr_cv_128bit___sync_add_and_fetch+:} false; then : 6349 $as_echo_n "(cached) " >&6 6350else 6351 6352 ethr_cv_128bit___sync_add_and_fetch=no 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355 6356int 6357main () 6358{ 6359$atomic128_call 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_link "$LINENO"; then : 6365 ethr_cv_128bit___sync_add_and_fetch=yes 6366fi 6367rm -f core conftest.err conftest.$ac_objext \ 6368 conftest$ac_exeext conftest.$ac_ext 6369 6370fi 6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___sync_add_and_fetch" >&5 6372$as_echo "$ethr_cv_128bit___sync_add_and_fetch" >&6; } 6373 6374 case $ethr_cv_128bit___sync_add_and_fetch-$ethr_cv_64bit___sync_add_and_fetch-$ethr_cv_32bit___sync_add_and_fetch in 6375 no-no-no) 6376 have_atomic_ops=0;; 6377 no-no-yes) 6378 have_atomic_ops=4;; 6379 no-yes-no) 6380 have_atomic_ops=8;; 6381 no-yes-yes) 6382 have_atomic_ops=12;; 6383 yes-no-no) 6384 have_atomic_ops=16;; 6385 yes-no-yes) 6386 have_atomic_ops=20;; 6387 yes-yes-no) 6388 have_atomic_ops=24;; 6389 yes-yes-yes) 6390 have_atomic_ops=28;; 6391 esac 6392 6393cat >>confdefs.h <<_ACEOF 6394#define ETHR_HAVE___sync_add_and_fetch $have_atomic_ops 6395_ACEOF 6396 6397 6398 6399 # __sync_fetch_and_and - atomic_op 6400 6401 for atomic_bit_size in 32 64 128; do 6402 case $atomic_bit_size in 6403 32) gcc_atomic_type="$gcc_atomic_type32";; 6404 64) gcc_atomic_type="$gcc_atomic_type64";; 6405 128) gcc_atomic_type="$gcc_atomic_type128";; 6406 esac 6407 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6408 case __sync_fetch_and_and in 6409 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6410 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_and(&var, ($gcc_atomic_type) 0);" 6411 ;; 6412 __sync_val_compare_and_swap) 6413 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6414 ;; 6415 __atomic_store_n) 6416 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6417 ;; 6418 __atomic_load_n) 6419 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_and(&var, __ATOMIC_RELAXED); res = __sync_fetch_and_and(&var, __ATOMIC_ACQUIRE);" 6420 ;; 6421 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6422 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __sync_fetch_and_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6423 ;; 6424 __atomic_compare_exchange_n) 6425 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __sync_fetch_and_and(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __sync_fetch_and_and(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6426 ;; 6427 *) 6428 as_fn_error $? "Internal error: missing implementation for __sync_fetch_and_and" "$LINENO" 5 6429 ;; 6430 esac 6431 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 6432 done 6433 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __sync_fetch_and_and()" >&5 6435$as_echo_n "checking for 32-bit __sync_fetch_and_and()... " >&6; } 6436if ${ethr_cv_32bit___sync_fetch_and_and+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 6440 ethr_cv_32bit___sync_fetch_and_and=no 6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442/* end confdefs.h. */ 6443 6444int 6445main () 6446{ 6447$atomic32_call 6448 ; 6449 return 0; 6450} 6451_ACEOF 6452if ac_fn_c_try_link "$LINENO"; then : 6453 ethr_cv_32bit___sync_fetch_and_and=yes 6454fi 6455rm -f core conftest.err conftest.$ac_objext \ 6456 conftest$ac_exeext conftest.$ac_ext 6457 6458fi 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___sync_fetch_and_and" >&5 6460$as_echo "$ethr_cv_32bit___sync_fetch_and_and" >&6; } 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync_fetch_and_and()" >&5 6462$as_echo_n "checking for 64-bit __sync_fetch_and_and()... " >&6; } 6463if ${ethr_cv_64bit___sync_fetch_and_and+:} false; then : 6464 $as_echo_n "(cached) " >&6 6465else 6466 6467 ethr_cv_64bit___sync_fetch_and_and=no 6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469/* end confdefs.h. */ 6470 6471int 6472main () 6473{ 6474$atomic64_call 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479if ac_fn_c_try_link "$LINENO"; then : 6480 ethr_cv_64bit___sync_fetch_and_and=yes 6481fi 6482rm -f core conftest.err conftest.$ac_objext \ 6483 conftest$ac_exeext conftest.$ac_ext 6484 6485fi 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___sync_fetch_and_and" >&5 6487$as_echo "$ethr_cv_64bit___sync_fetch_and_and" >&6; } 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __sync_fetch_and_and()" >&5 6489$as_echo_n "checking for 128-bit __sync_fetch_and_and()... " >&6; } 6490if ${ethr_cv_128bit___sync_fetch_and_and+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 6494 ethr_cv_128bit___sync_fetch_and_and=no 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496/* end confdefs.h. */ 6497 6498int 6499main () 6500{ 6501$atomic128_call 6502 ; 6503 return 0; 6504} 6505_ACEOF 6506if ac_fn_c_try_link "$LINENO"; then : 6507 ethr_cv_128bit___sync_fetch_and_and=yes 6508fi 6509rm -f core conftest.err conftest.$ac_objext \ 6510 conftest$ac_exeext conftest.$ac_ext 6511 6512fi 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___sync_fetch_and_and" >&5 6514$as_echo "$ethr_cv_128bit___sync_fetch_and_and" >&6; } 6515 6516 case $ethr_cv_128bit___sync_fetch_and_and-$ethr_cv_64bit___sync_fetch_and_and-$ethr_cv_32bit___sync_fetch_and_and in 6517 no-no-no) 6518 have_atomic_ops=0;; 6519 no-no-yes) 6520 have_atomic_ops=4;; 6521 no-yes-no) 6522 have_atomic_ops=8;; 6523 no-yes-yes) 6524 have_atomic_ops=12;; 6525 yes-no-no) 6526 have_atomic_ops=16;; 6527 yes-no-yes) 6528 have_atomic_ops=20;; 6529 yes-yes-no) 6530 have_atomic_ops=24;; 6531 yes-yes-yes) 6532 have_atomic_ops=28;; 6533 esac 6534 6535cat >>confdefs.h <<_ACEOF 6536#define ETHR_HAVE___sync_fetch_and_and $have_atomic_ops 6537_ACEOF 6538 6539 6540 6541 # __sync_fetch_and_or - atomic_op 6542 6543 for atomic_bit_size in 32 64 128; do 6544 case $atomic_bit_size in 6545 32) gcc_atomic_type="$gcc_atomic_type32";; 6546 64) gcc_atomic_type="$gcc_atomic_type64";; 6547 128) gcc_atomic_type="$gcc_atomic_type128";; 6548 esac 6549 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6550 case __sync_fetch_and_or in 6551 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6552 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_or(&var, ($gcc_atomic_type) 0);" 6553 ;; 6554 __sync_val_compare_and_swap) 6555 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6556 ;; 6557 __atomic_store_n) 6558 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6559 ;; 6560 __atomic_load_n) 6561 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_or(&var, __ATOMIC_RELAXED); res = __sync_fetch_and_or(&var, __ATOMIC_ACQUIRE);" 6562 ;; 6563 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6564 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __sync_fetch_and_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6565 ;; 6566 __atomic_compare_exchange_n) 6567 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __sync_fetch_and_or(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __sync_fetch_and_or(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6568 ;; 6569 *) 6570 as_fn_error $? "Internal error: missing implementation for __sync_fetch_and_or" "$LINENO" 5 6571 ;; 6572 esac 6573 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 6574 done 6575 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __sync_fetch_and_or()" >&5 6577$as_echo_n "checking for 32-bit __sync_fetch_and_or()... " >&6; } 6578if ${ethr_cv_32bit___sync_fetch_and_or+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 6582 ethr_cv_32bit___sync_fetch_and_or=no 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585 6586int 6587main () 6588{ 6589$atomic32_call 6590 ; 6591 return 0; 6592} 6593_ACEOF 6594if ac_fn_c_try_link "$LINENO"; then : 6595 ethr_cv_32bit___sync_fetch_and_or=yes 6596fi 6597rm -f core conftest.err conftest.$ac_objext \ 6598 conftest$ac_exeext conftest.$ac_ext 6599 6600fi 6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___sync_fetch_and_or" >&5 6602$as_echo "$ethr_cv_32bit___sync_fetch_and_or" >&6; } 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync_fetch_and_or()" >&5 6604$as_echo_n "checking for 64-bit __sync_fetch_and_or()... " >&6; } 6605if ${ethr_cv_64bit___sync_fetch_and_or+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 6609 ethr_cv_64bit___sync_fetch_and_or=no 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612 6613int 6614main () 6615{ 6616$atomic64_call 6617 ; 6618 return 0; 6619} 6620_ACEOF 6621if ac_fn_c_try_link "$LINENO"; then : 6622 ethr_cv_64bit___sync_fetch_and_or=yes 6623fi 6624rm -f core conftest.err conftest.$ac_objext \ 6625 conftest$ac_exeext conftest.$ac_ext 6626 6627fi 6628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___sync_fetch_and_or" >&5 6629$as_echo "$ethr_cv_64bit___sync_fetch_and_or" >&6; } 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __sync_fetch_and_or()" >&5 6631$as_echo_n "checking for 128-bit __sync_fetch_and_or()... " >&6; } 6632if ${ethr_cv_128bit___sync_fetch_and_or+:} false; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 6636 ethr_cv_128bit___sync_fetch_and_or=no 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639 6640int 6641main () 6642{ 6643$atomic128_call 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648if ac_fn_c_try_link "$LINENO"; then : 6649 ethr_cv_128bit___sync_fetch_and_or=yes 6650fi 6651rm -f core conftest.err conftest.$ac_objext \ 6652 conftest$ac_exeext conftest.$ac_ext 6653 6654fi 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___sync_fetch_and_or" >&5 6656$as_echo "$ethr_cv_128bit___sync_fetch_and_or" >&6; } 6657 6658 case $ethr_cv_128bit___sync_fetch_and_or-$ethr_cv_64bit___sync_fetch_and_or-$ethr_cv_32bit___sync_fetch_and_or in 6659 no-no-no) 6660 have_atomic_ops=0;; 6661 no-no-yes) 6662 have_atomic_ops=4;; 6663 no-yes-no) 6664 have_atomic_ops=8;; 6665 no-yes-yes) 6666 have_atomic_ops=12;; 6667 yes-no-no) 6668 have_atomic_ops=16;; 6669 yes-no-yes) 6670 have_atomic_ops=20;; 6671 yes-yes-no) 6672 have_atomic_ops=24;; 6673 yes-yes-yes) 6674 have_atomic_ops=28;; 6675 esac 6676 6677cat >>confdefs.h <<_ACEOF 6678#define ETHR_HAVE___sync_fetch_and_or $have_atomic_ops 6679_ACEOF 6680 6681 6682 6683 # __sync_val_compare_and_swap - atomic_op 6684 6685 for atomic_bit_size in 32 64 128; do 6686 case $atomic_bit_size in 6687 32) gcc_atomic_type="$gcc_atomic_type32";; 6688 64) gcc_atomic_type="$gcc_atomic_type64";; 6689 128) gcc_atomic_type="$gcc_atomic_type128";; 6690 esac 6691 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6692 case __sync_val_compare_and_swap in 6693 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6694 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0);" 6695 ;; 6696 __sync_val_compare_and_swap) 6697 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6698 ;; 6699 __atomic_store_n) 6700 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6701 ;; 6702 __atomic_load_n) 6703 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_val_compare_and_swap(&var, __ATOMIC_RELAXED); res = __sync_val_compare_and_swap(&var, __ATOMIC_ACQUIRE);" 6704 ;; 6705 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6706 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __sync_val_compare_and_swap(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6707 ;; 6708 __atomic_compare_exchange_n) 6709 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __sync_val_compare_and_swap(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __sync_val_compare_and_swap(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6710 ;; 6711 *) 6712 as_fn_error $? "Internal error: missing implementation for __sync_val_compare_and_swap" "$LINENO" 5 6713 ;; 6714 esac 6715 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 6716 done 6717 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __sync_val_compare_and_swap()" >&5 6719$as_echo_n "checking for 32-bit __sync_val_compare_and_swap()... " >&6; } 6720if ${ethr_cv_32bit___sync_val_compare_and_swap+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 6724 ethr_cv_32bit___sync_val_compare_and_swap=no 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727 6728int 6729main () 6730{ 6731$atomic32_call 6732 ; 6733 return 0; 6734} 6735_ACEOF 6736if ac_fn_c_try_link "$LINENO"; then : 6737 ethr_cv_32bit___sync_val_compare_and_swap=yes 6738fi 6739rm -f core conftest.err conftest.$ac_objext \ 6740 conftest$ac_exeext conftest.$ac_ext 6741 6742fi 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___sync_val_compare_and_swap" >&5 6744$as_echo "$ethr_cv_32bit___sync_val_compare_and_swap" >&6; } 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync_val_compare_and_swap()" >&5 6746$as_echo_n "checking for 64-bit __sync_val_compare_and_swap()... " >&6; } 6747if ${ethr_cv_64bit___sync_val_compare_and_swap+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 6751 ethr_cv_64bit___sync_val_compare_and_swap=no 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753/* end confdefs.h. */ 6754 6755int 6756main () 6757{ 6758$atomic64_call 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763if ac_fn_c_try_link "$LINENO"; then : 6764 ethr_cv_64bit___sync_val_compare_and_swap=yes 6765fi 6766rm -f core conftest.err conftest.$ac_objext \ 6767 conftest$ac_exeext conftest.$ac_ext 6768 6769fi 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___sync_val_compare_and_swap" >&5 6771$as_echo "$ethr_cv_64bit___sync_val_compare_and_swap" >&6; } 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __sync_val_compare_and_swap()" >&5 6773$as_echo_n "checking for 128-bit __sync_val_compare_and_swap()... " >&6; } 6774if ${ethr_cv_128bit___sync_val_compare_and_swap+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 6778 ethr_cv_128bit___sync_val_compare_and_swap=no 6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6780/* end confdefs.h. */ 6781 6782int 6783main () 6784{ 6785$atomic128_call 6786 ; 6787 return 0; 6788} 6789_ACEOF 6790if ac_fn_c_try_link "$LINENO"; then : 6791 ethr_cv_128bit___sync_val_compare_and_swap=yes 6792fi 6793rm -f core conftest.err conftest.$ac_objext \ 6794 conftest$ac_exeext conftest.$ac_ext 6795 6796fi 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___sync_val_compare_and_swap" >&5 6798$as_echo "$ethr_cv_128bit___sync_val_compare_and_swap" >&6; } 6799 6800 case $ethr_cv_128bit___sync_val_compare_and_swap-$ethr_cv_64bit___sync_val_compare_and_swap-$ethr_cv_32bit___sync_val_compare_and_swap in 6801 no-no-no) 6802 have_atomic_ops=0;; 6803 no-no-yes) 6804 have_atomic_ops=4;; 6805 no-yes-no) 6806 have_atomic_ops=8;; 6807 no-yes-yes) 6808 have_atomic_ops=12;; 6809 yes-no-no) 6810 have_atomic_ops=16;; 6811 yes-no-yes) 6812 have_atomic_ops=20;; 6813 yes-yes-no) 6814 have_atomic_ops=24;; 6815 yes-yes-yes) 6816 have_atomic_ops=28;; 6817 esac 6818 6819cat >>confdefs.h <<_ACEOF 6820#define ETHR_HAVE___sync_val_compare_and_swap $have_atomic_ops 6821_ACEOF 6822 6823 6824 6825 6826 # __atomic_store_n - atomic_op 6827 6828 for atomic_bit_size in 32 64 128; do 6829 case $atomic_bit_size in 6830 32) gcc_atomic_type="$gcc_atomic_type32";; 6831 64) gcc_atomic_type="$gcc_atomic_type64";; 6832 128) gcc_atomic_type="$gcc_atomic_type128";; 6833 esac 6834 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6835 case __atomic_store_n in 6836 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6837 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_store_n(&var, ($gcc_atomic_type) 0);" 6838 ;; 6839 __sync_val_compare_and_swap) 6840 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_store_n(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6841 ;; 6842 __atomic_store_n) 6843 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_store_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_store_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6844 ;; 6845 __atomic_load_n) 6846 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_store_n(&var, __ATOMIC_RELAXED); res = __atomic_store_n(&var, __ATOMIC_ACQUIRE);" 6847 ;; 6848 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6849 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_store_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_store_n(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_store_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6850 ;; 6851 __atomic_compare_exchange_n) 6852 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_store_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_store_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6853 ;; 6854 *) 6855 as_fn_error $? "Internal error: missing implementation for __atomic_store_n" "$LINENO" 5 6856 ;; 6857 esac 6858 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 6859 done 6860 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_store_n()" >&5 6862$as_echo_n "checking for 32-bit __atomic_store_n()... " >&6; } 6863if ${ethr_cv_32bit___atomic_store_n+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 6867 ethr_cv_32bit___atomic_store_n=no 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869/* end confdefs.h. */ 6870 6871int 6872main () 6873{ 6874$atomic32_call 6875 ; 6876 return 0; 6877} 6878_ACEOF 6879if ac_fn_c_try_link "$LINENO"; then : 6880 ethr_cv_32bit___atomic_store_n=yes 6881fi 6882rm -f core conftest.err conftest.$ac_objext \ 6883 conftest$ac_exeext conftest.$ac_ext 6884 6885fi 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_store_n" >&5 6887$as_echo "$ethr_cv_32bit___atomic_store_n" >&6; } 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_store_n()" >&5 6889$as_echo_n "checking for 64-bit __atomic_store_n()... " >&6; } 6890if ${ethr_cv_64bit___atomic_store_n+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 6894 ethr_cv_64bit___atomic_store_n=no 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897 6898int 6899main () 6900{ 6901$atomic64_call 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906if ac_fn_c_try_link "$LINENO"; then : 6907 ethr_cv_64bit___atomic_store_n=yes 6908fi 6909rm -f core conftest.err conftest.$ac_objext \ 6910 conftest$ac_exeext conftest.$ac_ext 6911 6912fi 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_store_n" >&5 6914$as_echo "$ethr_cv_64bit___atomic_store_n" >&6; } 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_store_n()" >&5 6916$as_echo_n "checking for 128-bit __atomic_store_n()... " >&6; } 6917if ${ethr_cv_128bit___atomic_store_n+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 6921 ethr_cv_128bit___atomic_store_n=no 6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923/* end confdefs.h. */ 6924 6925int 6926main () 6927{ 6928$atomic128_call 6929 ; 6930 return 0; 6931} 6932_ACEOF 6933if ac_fn_c_try_link "$LINENO"; then : 6934 ethr_cv_128bit___atomic_store_n=yes 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_store_n" >&5 6941$as_echo "$ethr_cv_128bit___atomic_store_n" >&6; } 6942 6943 case $ethr_cv_128bit___atomic_store_n-$ethr_cv_64bit___atomic_store_n-$ethr_cv_32bit___atomic_store_n in 6944 no-no-no) 6945 have_atomic_ops=0;; 6946 no-no-yes) 6947 have_atomic_ops=4;; 6948 no-yes-no) 6949 have_atomic_ops=8;; 6950 no-yes-yes) 6951 have_atomic_ops=12;; 6952 yes-no-no) 6953 have_atomic_ops=16;; 6954 yes-no-yes) 6955 have_atomic_ops=20;; 6956 yes-yes-no) 6957 have_atomic_ops=24;; 6958 yes-yes-yes) 6959 have_atomic_ops=28;; 6960 esac 6961 6962cat >>confdefs.h <<_ACEOF 6963#define ETHR_HAVE___atomic_store_n $have_atomic_ops 6964_ACEOF 6965 6966 6967 6968 # __atomic_load_n - atomic_op 6969 6970 for atomic_bit_size in 32 64 128; do 6971 case $atomic_bit_size in 6972 32) gcc_atomic_type="$gcc_atomic_type32";; 6973 64) gcc_atomic_type="$gcc_atomic_type64";; 6974 128) gcc_atomic_type="$gcc_atomic_type128";; 6975 esac 6976 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 6977 case __atomic_load_n in 6978 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 6979 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_load_n(&var, ($gcc_atomic_type) 0);" 6980 ;; 6981 __sync_val_compare_and_swap) 6982 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_load_n(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 6983 ;; 6984 __atomic_store_n) 6985 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_load_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_load_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6986 ;; 6987 __atomic_load_n) 6988 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_load_n(&var, __ATOMIC_RELAXED); res = __atomic_load_n(&var, __ATOMIC_ACQUIRE);" 6989 ;; 6990 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 6991 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_load_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_load_n(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_load_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 6992 ;; 6993 __atomic_compare_exchange_n) 6994 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_load_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_load_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 6995 ;; 6996 *) 6997 as_fn_error $? "Internal error: missing implementation for __atomic_load_n" "$LINENO" 5 6998 ;; 6999 esac 7000 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 7001 done 7002 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_load_n()" >&5 7004$as_echo_n "checking for 32-bit __atomic_load_n()... " >&6; } 7005if ${ethr_cv_32bit___atomic_load_n+:} false; then : 7006 $as_echo_n "(cached) " >&6 7007else 7008 7009 ethr_cv_32bit___atomic_load_n=no 7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011/* end confdefs.h. */ 7012 7013int 7014main () 7015{ 7016$atomic32_call 7017 ; 7018 return 0; 7019} 7020_ACEOF 7021if ac_fn_c_try_link "$LINENO"; then : 7022 ethr_cv_32bit___atomic_load_n=yes 7023fi 7024rm -f core conftest.err conftest.$ac_objext \ 7025 conftest$ac_exeext conftest.$ac_ext 7026 7027fi 7028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_load_n" >&5 7029$as_echo "$ethr_cv_32bit___atomic_load_n" >&6; } 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_load_n()" >&5 7031$as_echo_n "checking for 64-bit __atomic_load_n()... " >&6; } 7032if ${ethr_cv_64bit___atomic_load_n+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 7036 ethr_cv_64bit___atomic_load_n=no 7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7038/* end confdefs.h. */ 7039 7040int 7041main () 7042{ 7043$atomic64_call 7044 ; 7045 return 0; 7046} 7047_ACEOF 7048if ac_fn_c_try_link "$LINENO"; then : 7049 ethr_cv_64bit___atomic_load_n=yes 7050fi 7051rm -f core conftest.err conftest.$ac_objext \ 7052 conftest$ac_exeext conftest.$ac_ext 7053 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_load_n" >&5 7056$as_echo "$ethr_cv_64bit___atomic_load_n" >&6; } 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_load_n()" >&5 7058$as_echo_n "checking for 128-bit __atomic_load_n()... " >&6; } 7059if ${ethr_cv_128bit___atomic_load_n+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 7063 ethr_cv_128bit___atomic_load_n=no 7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7065/* end confdefs.h. */ 7066 7067int 7068main () 7069{ 7070$atomic128_call 7071 ; 7072 return 0; 7073} 7074_ACEOF 7075if ac_fn_c_try_link "$LINENO"; then : 7076 ethr_cv_128bit___atomic_load_n=yes 7077fi 7078rm -f core conftest.err conftest.$ac_objext \ 7079 conftest$ac_exeext conftest.$ac_ext 7080 7081fi 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_load_n" >&5 7083$as_echo "$ethr_cv_128bit___atomic_load_n" >&6; } 7084 7085 case $ethr_cv_128bit___atomic_load_n-$ethr_cv_64bit___atomic_load_n-$ethr_cv_32bit___atomic_load_n in 7086 no-no-no) 7087 have_atomic_ops=0;; 7088 no-no-yes) 7089 have_atomic_ops=4;; 7090 no-yes-no) 7091 have_atomic_ops=8;; 7092 no-yes-yes) 7093 have_atomic_ops=12;; 7094 yes-no-no) 7095 have_atomic_ops=16;; 7096 yes-no-yes) 7097 have_atomic_ops=20;; 7098 yes-yes-no) 7099 have_atomic_ops=24;; 7100 yes-yes-yes) 7101 have_atomic_ops=28;; 7102 esac 7103 7104cat >>confdefs.h <<_ACEOF 7105#define ETHR_HAVE___atomic_load_n $have_atomic_ops 7106_ACEOF 7107 7108 7109 7110 # __atomic_add_fetch - atomic_op 7111 7112 for atomic_bit_size in 32 64 128; do 7113 case $atomic_bit_size in 7114 32) gcc_atomic_type="$gcc_atomic_type32";; 7115 64) gcc_atomic_type="$gcc_atomic_type64";; 7116 128) gcc_atomic_type="$gcc_atomic_type128";; 7117 esac 7118 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 7119 case __atomic_add_fetch in 7120 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 7121 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_add_fetch(&var, ($gcc_atomic_type) 0);" 7122 ;; 7123 __sync_val_compare_and_swap) 7124 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_add_fetch(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 7125 ;; 7126 __atomic_store_n) 7127 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_add_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_add_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7128 ;; 7129 __atomic_load_n) 7130 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_add_fetch(&var, __ATOMIC_RELAXED); res = __atomic_add_fetch(&var, __ATOMIC_ACQUIRE);" 7131 ;; 7132 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 7133 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_add_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_add_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_add_fetch(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7134 ;; 7135 __atomic_compare_exchange_n) 7136 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_add_fetch(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_add_fetch(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 7137 ;; 7138 *) 7139 as_fn_error $? "Internal error: missing implementation for __atomic_add_fetch" "$LINENO" 5 7140 ;; 7141 esac 7142 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 7143 done 7144 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_add_fetch()" >&5 7146$as_echo_n "checking for 32-bit __atomic_add_fetch()... " >&6; } 7147if ${ethr_cv_32bit___atomic_add_fetch+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 7151 ethr_cv_32bit___atomic_add_fetch=no 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154 7155int 7156main () 7157{ 7158$atomic32_call 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_link "$LINENO"; then : 7164 ethr_cv_32bit___atomic_add_fetch=yes 7165fi 7166rm -f core conftest.err conftest.$ac_objext \ 7167 conftest$ac_exeext conftest.$ac_ext 7168 7169fi 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_add_fetch" >&5 7171$as_echo "$ethr_cv_32bit___atomic_add_fetch" >&6; } 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_add_fetch()" >&5 7173$as_echo_n "checking for 64-bit __atomic_add_fetch()... " >&6; } 7174if ${ethr_cv_64bit___atomic_add_fetch+:} false; then : 7175 $as_echo_n "(cached) " >&6 7176else 7177 7178 ethr_cv_64bit___atomic_add_fetch=no 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181 7182int 7183main () 7184{ 7185$atomic64_call 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190if ac_fn_c_try_link "$LINENO"; then : 7191 ethr_cv_64bit___atomic_add_fetch=yes 7192fi 7193rm -f core conftest.err conftest.$ac_objext \ 7194 conftest$ac_exeext conftest.$ac_ext 7195 7196fi 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_add_fetch" >&5 7198$as_echo "$ethr_cv_64bit___atomic_add_fetch" >&6; } 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_add_fetch()" >&5 7200$as_echo_n "checking for 128-bit __atomic_add_fetch()... " >&6; } 7201if ${ethr_cv_128bit___atomic_add_fetch+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 7205 ethr_cv_128bit___atomic_add_fetch=no 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207/* end confdefs.h. */ 7208 7209int 7210main () 7211{ 7212$atomic128_call 7213 ; 7214 return 0; 7215} 7216_ACEOF 7217if ac_fn_c_try_link "$LINENO"; then : 7218 ethr_cv_128bit___atomic_add_fetch=yes 7219fi 7220rm -f core conftest.err conftest.$ac_objext \ 7221 conftest$ac_exeext conftest.$ac_ext 7222 7223fi 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_add_fetch" >&5 7225$as_echo "$ethr_cv_128bit___atomic_add_fetch" >&6; } 7226 7227 case $ethr_cv_128bit___atomic_add_fetch-$ethr_cv_64bit___atomic_add_fetch-$ethr_cv_32bit___atomic_add_fetch in 7228 no-no-no) 7229 have_atomic_ops=0;; 7230 no-no-yes) 7231 have_atomic_ops=4;; 7232 no-yes-no) 7233 have_atomic_ops=8;; 7234 no-yes-yes) 7235 have_atomic_ops=12;; 7236 yes-no-no) 7237 have_atomic_ops=16;; 7238 yes-no-yes) 7239 have_atomic_ops=20;; 7240 yes-yes-no) 7241 have_atomic_ops=24;; 7242 yes-yes-yes) 7243 have_atomic_ops=28;; 7244 esac 7245 7246cat >>confdefs.h <<_ACEOF 7247#define ETHR_HAVE___atomic_add_fetch $have_atomic_ops 7248_ACEOF 7249 7250 7251 7252 # __atomic_fetch_and - atomic_op 7253 7254 for atomic_bit_size in 32 64 128; do 7255 case $atomic_bit_size in 7256 32) gcc_atomic_type="$gcc_atomic_type32";; 7257 64) gcc_atomic_type="$gcc_atomic_type64";; 7258 128) gcc_atomic_type="$gcc_atomic_type128";; 7259 esac 7260 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 7261 case __atomic_fetch_and in 7262 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 7263 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_and(&var, ($gcc_atomic_type) 0);" 7264 ;; 7265 __sync_val_compare_and_swap) 7266 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_and(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 7267 ;; 7268 __atomic_store_n) 7269 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_fetch_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_fetch_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7270 ;; 7271 __atomic_load_n) 7272 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_and(&var, __ATOMIC_RELAXED); res = __atomic_fetch_and(&var, __ATOMIC_ACQUIRE);" 7273 ;; 7274 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 7275 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_fetch_and(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_fetch_and(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7276 ;; 7277 __atomic_compare_exchange_n) 7278 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_fetch_and(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_fetch_and(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 7279 ;; 7280 *) 7281 as_fn_error $? "Internal error: missing implementation for __atomic_fetch_and" "$LINENO" 5 7282 ;; 7283 esac 7284 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 7285 done 7286 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_fetch_and()" >&5 7288$as_echo_n "checking for 32-bit __atomic_fetch_and()... " >&6; } 7289if ${ethr_cv_32bit___atomic_fetch_and+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 7293 ethr_cv_32bit___atomic_fetch_and=no 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295/* end confdefs.h. */ 7296 7297int 7298main () 7299{ 7300$atomic32_call 7301 ; 7302 return 0; 7303} 7304_ACEOF 7305if ac_fn_c_try_link "$LINENO"; then : 7306 ethr_cv_32bit___atomic_fetch_and=yes 7307fi 7308rm -f core conftest.err conftest.$ac_objext \ 7309 conftest$ac_exeext conftest.$ac_ext 7310 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_fetch_and" >&5 7313$as_echo "$ethr_cv_32bit___atomic_fetch_and" >&6; } 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_fetch_and()" >&5 7315$as_echo_n "checking for 64-bit __atomic_fetch_and()... " >&6; } 7316if ${ethr_cv_64bit___atomic_fetch_and+:} false; then : 7317 $as_echo_n "(cached) " >&6 7318else 7319 7320 ethr_cv_64bit___atomic_fetch_and=no 7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323 7324int 7325main () 7326{ 7327$atomic64_call 7328 ; 7329 return 0; 7330} 7331_ACEOF 7332if ac_fn_c_try_link "$LINENO"; then : 7333 ethr_cv_64bit___atomic_fetch_and=yes 7334fi 7335rm -f core conftest.err conftest.$ac_objext \ 7336 conftest$ac_exeext conftest.$ac_ext 7337 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_fetch_and" >&5 7340$as_echo "$ethr_cv_64bit___atomic_fetch_and" >&6; } 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_fetch_and()" >&5 7342$as_echo_n "checking for 128-bit __atomic_fetch_and()... " >&6; } 7343if ${ethr_cv_128bit___atomic_fetch_and+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 7347 ethr_cv_128bit___atomic_fetch_and=no 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349/* end confdefs.h. */ 7350 7351int 7352main () 7353{ 7354$atomic128_call 7355 ; 7356 return 0; 7357} 7358_ACEOF 7359if ac_fn_c_try_link "$LINENO"; then : 7360 ethr_cv_128bit___atomic_fetch_and=yes 7361fi 7362rm -f core conftest.err conftest.$ac_objext \ 7363 conftest$ac_exeext conftest.$ac_ext 7364 7365fi 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_fetch_and" >&5 7367$as_echo "$ethr_cv_128bit___atomic_fetch_and" >&6; } 7368 7369 case $ethr_cv_128bit___atomic_fetch_and-$ethr_cv_64bit___atomic_fetch_and-$ethr_cv_32bit___atomic_fetch_and in 7370 no-no-no) 7371 have_atomic_ops=0;; 7372 no-no-yes) 7373 have_atomic_ops=4;; 7374 no-yes-no) 7375 have_atomic_ops=8;; 7376 no-yes-yes) 7377 have_atomic_ops=12;; 7378 yes-no-no) 7379 have_atomic_ops=16;; 7380 yes-no-yes) 7381 have_atomic_ops=20;; 7382 yes-yes-no) 7383 have_atomic_ops=24;; 7384 yes-yes-yes) 7385 have_atomic_ops=28;; 7386 esac 7387 7388cat >>confdefs.h <<_ACEOF 7389#define ETHR_HAVE___atomic_fetch_and $have_atomic_ops 7390_ACEOF 7391 7392 7393 7394 # __atomic_fetch_or - atomic_op 7395 7396 for atomic_bit_size in 32 64 128; do 7397 case $atomic_bit_size in 7398 32) gcc_atomic_type="$gcc_atomic_type32";; 7399 64) gcc_atomic_type="$gcc_atomic_type64";; 7400 128) gcc_atomic_type="$gcc_atomic_type128";; 7401 esac 7402 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 7403 case __atomic_fetch_or in 7404 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 7405 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_or(&var, ($gcc_atomic_type) 0);" 7406 ;; 7407 __sync_val_compare_and_swap) 7408 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_or(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 7409 ;; 7410 __atomic_store_n) 7411 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_fetch_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_fetch_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7412 ;; 7413 __atomic_load_n) 7414 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_or(&var, __ATOMIC_RELAXED); res = __atomic_fetch_or(&var, __ATOMIC_ACQUIRE);" 7415 ;; 7416 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 7417 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_fetch_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_fetch_or(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_fetch_or(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7418 ;; 7419 __atomic_compare_exchange_n) 7420 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_fetch_or(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_fetch_or(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 7421 ;; 7422 *) 7423 as_fn_error $? "Internal error: missing implementation for __atomic_fetch_or" "$LINENO" 5 7424 ;; 7425 esac 7426 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 7427 done 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_fetch_or()" >&5 7430$as_echo_n "checking for 32-bit __atomic_fetch_or()... " >&6; } 7431if ${ethr_cv_32bit___atomic_fetch_or+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 7435 ethr_cv_32bit___atomic_fetch_or=no 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437/* end confdefs.h. */ 7438 7439int 7440main () 7441{ 7442$atomic32_call 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447if ac_fn_c_try_link "$LINENO"; then : 7448 ethr_cv_32bit___atomic_fetch_or=yes 7449fi 7450rm -f core conftest.err conftest.$ac_objext \ 7451 conftest$ac_exeext conftest.$ac_ext 7452 7453fi 7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_fetch_or" >&5 7455$as_echo "$ethr_cv_32bit___atomic_fetch_or" >&6; } 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_fetch_or()" >&5 7457$as_echo_n "checking for 64-bit __atomic_fetch_or()... " >&6; } 7458if ${ethr_cv_64bit___atomic_fetch_or+:} false; then : 7459 $as_echo_n "(cached) " >&6 7460else 7461 7462 ethr_cv_64bit___atomic_fetch_or=no 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465 7466int 7467main () 7468{ 7469$atomic64_call 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474if ac_fn_c_try_link "$LINENO"; then : 7475 ethr_cv_64bit___atomic_fetch_or=yes 7476fi 7477rm -f core conftest.err conftest.$ac_objext \ 7478 conftest$ac_exeext conftest.$ac_ext 7479 7480fi 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_fetch_or" >&5 7482$as_echo "$ethr_cv_64bit___atomic_fetch_or" >&6; } 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_fetch_or()" >&5 7484$as_echo_n "checking for 128-bit __atomic_fetch_or()... " >&6; } 7485if ${ethr_cv_128bit___atomic_fetch_or+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 7489 ethr_cv_128bit___atomic_fetch_or=no 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492 7493int 7494main () 7495{ 7496$atomic128_call 7497 ; 7498 return 0; 7499} 7500_ACEOF 7501if ac_fn_c_try_link "$LINENO"; then : 7502 ethr_cv_128bit___atomic_fetch_or=yes 7503fi 7504rm -f core conftest.err conftest.$ac_objext \ 7505 conftest$ac_exeext conftest.$ac_ext 7506 7507fi 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_fetch_or" >&5 7509$as_echo "$ethr_cv_128bit___atomic_fetch_or" >&6; } 7510 7511 case $ethr_cv_128bit___atomic_fetch_or-$ethr_cv_64bit___atomic_fetch_or-$ethr_cv_32bit___atomic_fetch_or in 7512 no-no-no) 7513 have_atomic_ops=0;; 7514 no-no-yes) 7515 have_atomic_ops=4;; 7516 no-yes-no) 7517 have_atomic_ops=8;; 7518 no-yes-yes) 7519 have_atomic_ops=12;; 7520 yes-no-no) 7521 have_atomic_ops=16;; 7522 yes-no-yes) 7523 have_atomic_ops=20;; 7524 yes-yes-no) 7525 have_atomic_ops=24;; 7526 yes-yes-yes) 7527 have_atomic_ops=28;; 7528 esac 7529 7530cat >>confdefs.h <<_ACEOF 7531#define ETHR_HAVE___atomic_fetch_or $have_atomic_ops 7532_ACEOF 7533 7534 7535 7536 # __atomic_compare_exchange_n - atomic_op 7537 7538 for atomic_bit_size in 32 64 128; do 7539 case $atomic_bit_size in 7540 32) gcc_atomic_type="$gcc_atomic_type32";; 7541 64) gcc_atomic_type="$gcc_atomic_type64";; 7542 128) gcc_atomic_type="$gcc_atomic_type128";; 7543 esac 7544 gcc_atomic_lockfree="int x[(2*__atomic_always_lock_free(sizeof($gcc_atomic_type), 0))-1]" 7545 case __atomic_compare_exchange_n in 7546 __sync_add_and_fetch | __sync_fetch_and_and | __sync_fetch_and_or) 7547 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0);" 7548 ;; 7549 __sync_val_compare_and_swap) 7550 atomic_call="volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, ($gcc_atomic_type) 0);" 7551 ;; 7552 __atomic_store_n) 7553 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7554 ;; 7555 __atomic_load_n) 7556 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_compare_exchange_n(&var, __ATOMIC_RELAXED); res = __atomic_compare_exchange_n(&var, __ATOMIC_ACQUIRE);" 7557 ;; 7558 __atomic_add_fetch| __atomic_fetch_and | __atomic_fetch_or) 7559 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type res = __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELAXED); res = __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, __ATOMIC_ACQUIRE); res = __atomic_compare_exchange_n(&var, ($gcc_atomic_type) 0, __ATOMIC_RELEASE);" 7560 ;; 7561 __atomic_compare_exchange_n) 7562 atomic_call="$gcc_atomic_lockfree; volatile $gcc_atomic_type var; $gcc_atomic_type val; int res = __atomic_compare_exchange_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED); res = __atomic_compare_exchange_n(&var, &val, ($gcc_atomic_type) 0, 0, __ATOMIC_ACQUIRE, __ATOMIC_ACQUIRE);" 7563 ;; 7564 *) 7565 as_fn_error $? "Internal error: missing implementation for __atomic_compare_exchange_n" "$LINENO" 5 7566 ;; 7567 esac 7568 eval atomic${atomic_bit_size}_call=\"$atomic_call\" 7569 done 7570 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit __atomic_compare_exchange_n()" >&5 7572$as_echo_n "checking for 32-bit __atomic_compare_exchange_n()... " >&6; } 7573if ${ethr_cv_32bit___atomic_compare_exchange_n+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 7577 ethr_cv_32bit___atomic_compare_exchange_n=no 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579/* end confdefs.h. */ 7580 7581int 7582main () 7583{ 7584$atomic32_call 7585 ; 7586 return 0; 7587} 7588_ACEOF 7589if ac_fn_c_try_link "$LINENO"; then : 7590 ethr_cv_32bit___atomic_compare_exchange_n=yes 7591fi 7592rm -f core conftest.err conftest.$ac_objext \ 7593 conftest$ac_exeext conftest.$ac_ext 7594 7595fi 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_32bit___atomic_compare_exchange_n" >&5 7597$as_echo "$ethr_cv_32bit___atomic_compare_exchange_n" >&6; } 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __atomic_compare_exchange_n()" >&5 7599$as_echo_n "checking for 64-bit __atomic_compare_exchange_n()... " >&6; } 7600if ${ethr_cv_64bit___atomic_compare_exchange_n+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 7604 ethr_cv_64bit___atomic_compare_exchange_n=no 7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7606/* end confdefs.h. */ 7607 7608int 7609main () 7610{ 7611$atomic64_call 7612 ; 7613 return 0; 7614} 7615_ACEOF 7616if ac_fn_c_try_link "$LINENO"; then : 7617 ethr_cv_64bit___atomic_compare_exchange_n=yes 7618fi 7619rm -f core conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_64bit___atomic_compare_exchange_n" >&5 7624$as_echo "$ethr_cv_64bit___atomic_compare_exchange_n" >&6; } 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 128-bit __atomic_compare_exchange_n()" >&5 7626$as_echo_n "checking for 128-bit __atomic_compare_exchange_n()... " >&6; } 7627if ${ethr_cv_128bit___atomic_compare_exchange_n+:} false; then : 7628 $as_echo_n "(cached) " >&6 7629else 7630 7631 ethr_cv_128bit___atomic_compare_exchange_n=no 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634 7635int 7636main () 7637{ 7638$atomic128_call 7639 ; 7640 return 0; 7641} 7642_ACEOF 7643if ac_fn_c_try_link "$LINENO"; then : 7644 ethr_cv_128bit___atomic_compare_exchange_n=yes 7645fi 7646rm -f core conftest.err conftest.$ac_objext \ 7647 conftest$ac_exeext conftest.$ac_ext 7648 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_128bit___atomic_compare_exchange_n" >&5 7651$as_echo "$ethr_cv_128bit___atomic_compare_exchange_n" >&6; } 7652 7653 case $ethr_cv_128bit___atomic_compare_exchange_n-$ethr_cv_64bit___atomic_compare_exchange_n-$ethr_cv_32bit___atomic_compare_exchange_n in 7654 no-no-no) 7655 have_atomic_ops=0;; 7656 no-no-yes) 7657 have_atomic_ops=4;; 7658 no-yes-no) 7659 have_atomic_ops=8;; 7660 no-yes-yes) 7661 have_atomic_ops=12;; 7662 yes-no-no) 7663 have_atomic_ops=16;; 7664 yes-no-yes) 7665 have_atomic_ops=20;; 7666 yes-yes-no) 7667 have_atomic_ops=24;; 7668 yes-yes-yes) 7669 have_atomic_ops=28;; 7670 esac 7671 7672cat >>confdefs.h <<_ACEOF 7673#define ETHR_HAVE___atomic_compare_exchange_n $have_atomic_ops 7674_ACEOF 7675 7676 7677 7678 ethr_have_gcc_native_atomics=no 7679 ethr_arm_dbm_sy_instr_val=0 7680 ethr_arm_dbm_st_instr_val=0 7681 ethr_arm_dbm_ld_instr_val=0 7682 case "$GCC-$host_cpu" in 7683 yes-arm*|yes-aarch*) 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM 'dmb sy' instruction" >&5 7685$as_echo_n "checking for ARM 'dmb sy' instruction... " >&6; } 7686if ${ethr_cv_arm_dbm_sy_instr+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 7690 ethr_cv_arm_dbm_sy_instr=no 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692/* end confdefs.h. */ 7693 7694int 7695main () 7696{ 7697 7698 __asm__ __volatile__("dmb sy" : : : "memory"); 7699 7700 ; 7701 return 0; 7702} 7703_ACEOF 7704if ac_fn_c_try_link "$LINENO"; then : 7705 ethr_cv_arm_dbm_sy_instr=yes 7706fi 7707rm -f core conftest.err conftest.$ac_objext \ 7708 conftest$ac_exeext conftest.$ac_ext 7709 7710fi 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_arm_dbm_sy_instr" >&5 7712$as_echo "$ethr_cv_arm_dbm_sy_instr" >&6; } 7713 if test $ethr_cv_arm_dbm_sy_instr = yes; then 7714 ethr_arm_dbm_sy_instr_val=1 7715 test $ethr_cv_64bit___atomic_compare_exchange_n = yes && 7716 ethr_have_gcc_native_atomics=yes 7717 fi 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM 'dmb st' instruction" >&5 7719$as_echo_n "checking for ARM 'dmb st' instruction... " >&6; } 7720if ${ethr_cv_arm_dbm_st_instr+:} false; then : 7721 $as_echo_n "(cached) " >&6 7722else 7723 7724 ethr_cv_arm_dbm_st_instr=no 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726/* end confdefs.h. */ 7727 7728int 7729main () 7730{ 7731 7732 __asm__ __volatile__("dmb st" : : : "memory"); 7733 7734 ; 7735 return 0; 7736} 7737_ACEOF 7738if ac_fn_c_try_link "$LINENO"; then : 7739 ethr_cv_arm_dbm_st_instr=yes 7740fi 7741rm -f core conftest.err conftest.$ac_objext \ 7742 conftest$ac_exeext conftest.$ac_ext 7743 7744fi 7745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_arm_dbm_st_instr" >&5 7746$as_echo "$ethr_cv_arm_dbm_st_instr" >&6; } 7747 if test $ethr_cv_arm_dbm_st_instr = yes; then 7748 ethr_arm_dbm_st_instr_val=1 7749 fi 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM 'dmb ld' instruction" >&5 7751$as_echo_n "checking for ARM 'dmb ld' instruction... " >&6; } 7752if ${ethr_cv_arm_dbm_ld_instr+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 7756 ethr_cv_arm_dbm_ld_instr=no 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759 7760int 7761main () 7762{ 7763 7764 __asm__ __volatile__("dmb ld" : : : "memory"); 7765 7766 ; 7767 return 0; 7768} 7769_ACEOF 7770if ac_fn_c_try_link "$LINENO"; then : 7771 ethr_cv_arm_dbm_ld_instr=yes 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext conftest.$ac_ext 7775 7776fi 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ethr_cv_arm_dbm_ld_instr" >&5 7778$as_echo "$ethr_cv_arm_dbm_ld_instr" >&6; } 7779 if test $ethr_cv_arm_dbm_ld_instr = yes; then 7780 ethr_arm_dbm_ld_instr_val=1 7781 fi;; 7782 *) 7783 ;; 7784 esac 7785 7786cat >>confdefs.h <<_ACEOF 7787#define ETHR_HAVE_GCC_ASM_ARM_DMB_INSTRUCTION $ethr_arm_dbm_sy_instr_val 7788_ACEOF 7789 7790 7791cat >>confdefs.h <<_ACEOF 7792#define ETHR_HAVE_GCC_ASM_ARM_DMB_ST_INSTRUCTION $ethr_arm_dbm_st_instr_val 7793_ACEOF 7794 7795 7796cat >>confdefs.h <<_ACEOF 7797#define ETHR_HAVE_GCC_ASM_ARM_DMB_LD_INSTRUCTION $ethr_arm_dbm_ld_instr_val 7798_ACEOF 7799 7800 test $ethr_cv_32bit___sync_val_compare_and_swap = yes && 7801 ethr_have_gcc_native_atomics=yes 7802 test $ethr_cv_64bit___sync_val_compare_and_swap = yes && 7803 ethr_have_gcc_native_atomics=yes 7804 if test "$ethr_cv___sync_synchronize" = "yes"; then 7805 test $ethr_cv_64bit___atomic_compare_exchange_n = yes && 7806 ethr_have_gcc_native_atomics=yes 7807 test $ethr_cv_32bit___atomic_compare_exchange_n = yes && 7808 ethr_have_gcc_native_atomics=yes 7809 fi 7810 ethr_have_gcc_atomic_builtins=0 7811 if test $ethr_have_gcc_native_atomics = yes; then 7812 ethr_native_atomic_implementation=gcc_sync 7813 test $ethr_cv_32bit___atomic_compare_exchange_n = yes && ethr_have_gcc_atomic_builtins=1 7814 test $ethr_cv_64bit___atomic_compare_exchange_n = yes && ethr_have_gcc_atomic_builtins=1 7815 test $ethr_have_gcc_atomic_builtins = 1 && ethr_native_atomic_implementation=gcc_atomic_sync 7816 fi 7817 7818cat >>confdefs.h <<_ACEOF 7819#define ETHR_HAVE_GCC___ATOMIC_BUILTINS $ethr_have_gcc_atomic_builtins 7820_ACEOF 7821 7822 test $ethr_have_gcc_native_atomics = yes && ethr_have_native_atomics=yes 7823 7824 7825 case "$THR_LIB_NAME" in 7826 "") 7827 EI_THREADS="false" 7828 # Fail if --enable-threads given and no threads found 7829 if test "x$threads_disabled" = "xno"; then 7830 as_fn_error $? "No threads support found" "$LINENO" 5 7831 fi 7832 ;; 7833 win32_threads) 7834 EI_THREADS="true" 7835 THR_DEFS="$THR_DEFS -D_REENTRANT -D_WIN32_WINNT=0x0600 -DWINVER=0x0600" 7836 ;; 7837 pthread) 7838 EI_THREADS="true" 7839 ;; 7840 *) 7841 EI_THREADS="true" 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unexpected thread library: $THR_LIB_NAME" >&5 7843$as_echo "$as_me: WARNING: Unexpected thread library: $THR_LIB_NAME" >&2;} 7844 ;; 7845 esac 7846 ;; 7847 yes) 7848 # Threads disabled 7849 EI_THREADS="false" 7850 ;; 7851esac 7852 7853# --------------------------------------------------------------------------- 7854# Warning flags to the C compiler 7855# --------------------------------------------------------------------------- 7856 7857 7858if test "x$GCC" = xyes; then 7859 # Treat certain GCC warnings as errors 7860 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -Werror=return-type to WERRORFLAGS (via CFLAGS)" >&5 7862$as_echo_n "checking if we can add -Werror=return-type to WERRORFLAGS (via CFLAGS)... " >&6; } 7863 saved_CFLAGS=$CFLAGS; 7864 CFLAGS="-Werror=return-type $WERRORFLAGS"; 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867 7868int 7869main () 7870{ 7871return 0; 7872 ; 7873 return 0; 7874} 7875_ACEOF 7876if ac_fn_c_try_compile "$LINENO"; then : 7877 can_enable_flag=true 7878else 7879 can_enable_flag=false 7880fi 7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7882 CFLAGS=$saved_CFLAGS; 7883 if test "X$can_enable_flag" = "Xtrue"; then 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7885$as_echo "yes" >&6; } 7886 WERRORFLAGS="-Werror=return-type $WERRORFLAGS" 7887 else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890 fi 7891 7892 WFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline" 7893 # check which GCC version 7894 GCC_VERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'` 7895 # GCC 3.3 and later supports C99 strict aliasing 7896 # until all source is compliant with strict aliasing we disable it 7897 case "$GCC_VERSION" in 7898 1*) ;; 7899 2*) ;; 7900 3.0*) ;; 7901 3.1*) ;; 7902 3.2*) ;; 7903 *) 7904 WFLAGS="$WFLAGS -fno-strict-aliasing";; 7905 esac 7906 CFLAGS="$WERRORFLAGS $CFLAGS" 7907 7908 # Use -fno-common for gcc, that is link error if multiple definitions of 7909 # global variables are encountered. This is ISO C compliant. 7910 # Until version 10, gcc has had -fcommon as default, which allows and merges 7911 # such dubious duplicates. 7912 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can add -fno-common to CFLAGS (via CFLAGS)" >&5 7914$as_echo_n "checking if we can add -fno-common to CFLAGS (via CFLAGS)... " >&6; } 7915 saved_CFLAGS=$CFLAGS; 7916 CFLAGS="-fno-common $CFLAGS"; 7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918/* end confdefs.h. */ 7919 7920int 7921main () 7922{ 7923return 0; 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928if ac_fn_c_try_compile "$LINENO"; then : 7929 can_enable_flag=true 7930else 7931 can_enable_flag=false 7932fi 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7934 CFLAGS=$saved_CFLAGS; 7935 if test "X$can_enable_flag" = "Xtrue"; then 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7937$as_echo "yes" >&6; } 7938 CFLAGS="-fno-common $CFLAGS" 7939 else 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7941$as_echo "no" >&6; } 7942 fi 7943 7944else 7945 WFLAGS="" 7946 WERRORFLAGS="" 7947fi 7948 7949# --------------------------------------------------------------------------- 7950# FIXME We want to use libtool but until then.... 7951# --------------------------------------------------------------------------- 7952 7953 7954 7955if test "X$host" = "Xwin32"; then 7956 LIB_CFLAGS="$CFLAGS" 7957else 7958 if test "x$GCC" = xyes; then 7959 # Remove all PIE stuff 7960 CFLAGS=`echo $CFLAGS | sed 's/-f\(no-\)\?PIE//g'` 7961 LDFLAGS=`echo $LDFLAGS | sed 's/-\(no-\)\?pie//g'` 7962 7963 LIB_CFLAGS="$CFLAGS -fPIC" 7964 else 7965 LIB_CFLAGS="$CFLAGS" 7966 fi 7967fi 7968 7969 7970 7971# Check whether --enable-sanitizers was given. 7972if test "${enable_sanitizers+set}" = set; then : 7973 enableval=$enable_sanitizers; 7974case "$enableval" in 7975 no) sanitizers= ;; 7976 yes) sanitizers="-fsanitize=address,undefined" ;; 7977 *) sanitizers="-fsanitize=$enableval" ;; 7978esac 7979CFLAGS="$CFLAGS $sanitizers" 7980LDFLAGS="$LDFLAGS $sanitizers" 7981 7982fi 7983 7984 7985# --------------------------------------------------------------------------- 7986# XXX 7987# --------------------------------------------------------------------------- 7988 7989 7990ac_config_files="$ac_config_files src/$host/Makefile:src/Makefile.in src/$host/eidefs.mk:src/eidefs.mk.in" 7991 7992cat >confcache <<\_ACEOF 7993# This file is a shell script that caches the results of configure 7994# tests run on this system so they can be shared between configure 7995# scripts and configure runs, see configure's option --config-cache. 7996# It is not useful on other systems. If it contains results you don't 7997# want to keep, you may remove or edit it. 7998# 7999# config.status only pays attention to the cache file if you give it 8000# the --recheck option to rerun configure. 8001# 8002# `ac_cv_env_foo' variables (set or unset) will be overridden when 8003# loading this file, other *unset* `ac_cv_foo' will be assigned the 8004# following values. 8005 8006_ACEOF 8007 8008# The following way of writing the cache mishandles newlines in values, 8009# but we know of no workaround that is simple, portable, and efficient. 8010# So, we kill variables containing newlines. 8011# Ultrix sh set writes to stderr and can't be redirected directly, 8012# and sets the high bit in the cache file unless we assign to the vars. 8013( 8014 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8015 eval ac_val=\$$ac_var 8016 case $ac_val in #( 8017 *${as_nl}*) 8018 case $ac_var in #( 8019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8021 esac 8022 case $ac_var in #( 8023 _ | IFS | as_nl) ;; #( 8024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8025 *) { eval $ac_var=; unset $ac_var;} ;; 8026 esac ;; 8027 esac 8028 done 8029 8030 (set) 2>&1 | 8031 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8032 *${as_nl}ac_space=\ *) 8033 # `set' does not quote correctly, so add quotes: double-quote 8034 # substitution turns \\\\ into \\, and sed turns \\ into \. 8035 sed -n \ 8036 "s/'/'\\\\''/g; 8037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8038 ;; #( 8039 *) 8040 # `set' quotes correctly as required by POSIX, so do not add quotes. 8041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8042 ;; 8043 esac | 8044 sort 8045) | 8046 sed ' 8047 /^ac_cv_env_/b end 8048 t clear 8049 :clear 8050 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8051 t end 8052 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8053 :end' >>confcache 8054if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8055 if test -w "$cache_file"; then 8056 if test "x$cache_file" != "x/dev/null"; then 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8058$as_echo "$as_me: updating cache $cache_file" >&6;} 8059 if test ! -f "$cache_file" || test -h "$cache_file"; then 8060 cat confcache >"$cache_file" 8061 else 8062 case $cache_file in #( 8063 */* | ?:*) 8064 mv -f confcache "$cache_file"$$ && 8065 mv -f "$cache_file"$$ "$cache_file" ;; #( 8066 *) 8067 mv -f confcache "$cache_file" ;; 8068 esac 8069 fi 8070 fi 8071 else 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8073$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8074 fi 8075fi 8076rm -f confcache 8077 8078test "x$prefix" = xNONE && prefix=$ac_default_prefix 8079# Let make expand exec_prefix. 8080test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8081 8082DEFS=-DHAVE_CONFIG_H 8083 8084ac_libobjs= 8085ac_ltlibobjs= 8086U= 8087for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8088 # 1. Remove the extension, and $U if already installed. 8089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8090 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8092 # will be set to the directory where LIBOBJS objects are built. 8093 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8094 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8095done 8096LIBOBJS=$ac_libobjs 8097 8098LTLIBOBJS=$ac_ltlibobjs 8099 8100 8101 8102: "${CONFIG_STATUS=./config.status}" 8103ac_write_fail=0 8104ac_clean_files_save=$ac_clean_files 8105ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8107$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8108as_write_fail=0 8109cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8110#! $SHELL 8111# Generated by $as_me. 8112# Run this file to recreate the current configuration. 8113# Compiler output produced by configure, useful for debugging 8114# configure, is in config.log if it exists. 8115 8116debug=false 8117ac_cs_recheck=false 8118ac_cs_silent=false 8119 8120SHELL=\${CONFIG_SHELL-$SHELL} 8121export SHELL 8122_ASEOF 8123cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8124## -------------------- ## 8125## M4sh Initialization. ## 8126## -------------------- ## 8127 8128# Be more Bourne compatible 8129DUALCASE=1; export DUALCASE # for MKS sh 8130if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8131 emulate sh 8132 NULLCMD=: 8133 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8134 # is contrary to our usage. Disable this feature. 8135 alias -g '${1+"$@"}'='"$@"' 8136 setopt NO_GLOB_SUBST 8137else 8138 case `(set -o) 2>/dev/null` in #( 8139 *posix*) : 8140 set -o posix ;; #( 8141 *) : 8142 ;; 8143esac 8144fi 8145 8146 8147as_nl=' 8148' 8149export as_nl 8150# Printing a long string crashes Solaris 7 /usr/bin/printf. 8151as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8153as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8154# Prefer a ksh shell builtin over an external printf program on Solaris, 8155# but without wasting forks for bash or zsh. 8156if test -z "$BASH_VERSION$ZSH_VERSION" \ 8157 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8158 as_echo='print -r --' 8159 as_echo_n='print -rn --' 8160elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8161 as_echo='printf %s\n' 8162 as_echo_n='printf %s' 8163else 8164 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8165 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8166 as_echo_n='/usr/ucb/echo -n' 8167 else 8168 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8169 as_echo_n_body='eval 8170 arg=$1; 8171 case $arg in #( 8172 *"$as_nl"*) 8173 expr "X$arg" : "X\\(.*\\)$as_nl"; 8174 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8175 esac; 8176 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8177 ' 8178 export as_echo_n_body 8179 as_echo_n='sh -c $as_echo_n_body as_echo' 8180 fi 8181 export as_echo_body 8182 as_echo='sh -c $as_echo_body as_echo' 8183fi 8184 8185# The user is always right. 8186if test "${PATH_SEPARATOR+set}" != set; then 8187 PATH_SEPARATOR=: 8188 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8189 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8190 PATH_SEPARATOR=';' 8191 } 8192fi 8193 8194 8195# IFS 8196# We need space, tab and new line, in precisely that order. Quoting is 8197# there to prevent editors from complaining about space-tab. 8198# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8199# splitting by setting IFS to empty value.) 8200IFS=" "" $as_nl" 8201 8202# Find who we are. Look in the path if we contain no directory separator. 8203as_myself= 8204case $0 in #(( 8205 *[\\/]* ) as_myself=$0 ;; 8206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8207for as_dir in $PATH 8208do 8209 IFS=$as_save_IFS 8210 test -z "$as_dir" && as_dir=. 8211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8212 done 8213IFS=$as_save_IFS 8214 8215 ;; 8216esac 8217# We did not find ourselves, most probably we were run as `sh COMMAND' 8218# in which case we are not to be found in the path. 8219if test "x$as_myself" = x; then 8220 as_myself=$0 8221fi 8222if test ! -f "$as_myself"; then 8223 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8224 exit 1 8225fi 8226 8227# Unset variables that we do not need and which cause bugs (e.g. in 8228# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8229# suppresses any "Segmentation fault" message there. '((' could 8230# trigger a bug in pdksh 5.2.14. 8231for as_var in BASH_ENV ENV MAIL MAILPATH 8232do eval test x\${$as_var+set} = xset \ 8233 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8234done 8235PS1='$ ' 8236PS2='> ' 8237PS4='+ ' 8238 8239# NLS nuisances. 8240LC_ALL=C 8241export LC_ALL 8242LANGUAGE=C 8243export LANGUAGE 8244 8245# CDPATH. 8246(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8247 8248 8249# as_fn_error STATUS ERROR [LINENO LOG_FD] 8250# ---------------------------------------- 8251# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8252# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8253# script with STATUS, using 1 if that was 0. 8254as_fn_error () 8255{ 8256 as_status=$1; test $as_status -eq 0 && as_status=1 8257 if test "$4"; then 8258 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8259 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8260 fi 8261 $as_echo "$as_me: error: $2" >&2 8262 as_fn_exit $as_status 8263} # as_fn_error 8264 8265 8266# as_fn_set_status STATUS 8267# ----------------------- 8268# Set $? to STATUS, without forking. 8269as_fn_set_status () 8270{ 8271 return $1 8272} # as_fn_set_status 8273 8274# as_fn_exit STATUS 8275# ----------------- 8276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8277as_fn_exit () 8278{ 8279 set +e 8280 as_fn_set_status $1 8281 exit $1 8282} # as_fn_exit 8283 8284# as_fn_unset VAR 8285# --------------- 8286# Portably unset VAR. 8287as_fn_unset () 8288{ 8289 { eval $1=; unset $1;} 8290} 8291as_unset=as_fn_unset 8292# as_fn_append VAR VALUE 8293# ---------------------- 8294# Append the text in VALUE to the end of the definition contained in VAR. Take 8295# advantage of any shell optimizations that allow amortized linear growth over 8296# repeated appends, instead of the typical quadratic growth present in naive 8297# implementations. 8298if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8299 eval 'as_fn_append () 8300 { 8301 eval $1+=\$2 8302 }' 8303else 8304 as_fn_append () 8305 { 8306 eval $1=\$$1\$2 8307 } 8308fi # as_fn_append 8309 8310# as_fn_arith ARG... 8311# ------------------ 8312# Perform arithmetic evaluation on the ARGs, and store the result in the 8313# global $as_val. Take advantage of shells that can avoid forks. The arguments 8314# must be portable across $(()) and expr. 8315if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8316 eval 'as_fn_arith () 8317 { 8318 as_val=$(( $* )) 8319 }' 8320else 8321 as_fn_arith () 8322 { 8323 as_val=`expr "$@" || test $? -eq 1` 8324 } 8325fi # as_fn_arith 8326 8327 8328if expr a : '\(a\)' >/dev/null 2>&1 && 8329 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8330 as_expr=expr 8331else 8332 as_expr=false 8333fi 8334 8335if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8336 as_basename=basename 8337else 8338 as_basename=false 8339fi 8340 8341if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8342 as_dirname=dirname 8343else 8344 as_dirname=false 8345fi 8346 8347as_me=`$as_basename -- "$0" || 8348$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8349 X"$0" : 'X\(//\)$' \| \ 8350 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8351$as_echo X/"$0" | 8352 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8353 s//\1/ 8354 q 8355 } 8356 /^X\/\(\/\/\)$/{ 8357 s//\1/ 8358 q 8359 } 8360 /^X\/\(\/\).*/{ 8361 s//\1/ 8362 q 8363 } 8364 s/.*/./; q'` 8365 8366# Avoid depending upon Character Ranges. 8367as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8368as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8369as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8370as_cr_digits='0123456789' 8371as_cr_alnum=$as_cr_Letters$as_cr_digits 8372 8373ECHO_C= ECHO_N= ECHO_T= 8374case `echo -n x` in #((((( 8375-n*) 8376 case `echo 'xy\c'` in 8377 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8378 xy) ECHO_C='\c';; 8379 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8380 ECHO_T=' ';; 8381 esac;; 8382*) 8383 ECHO_N='-n';; 8384esac 8385 8386rm -f conf$$ conf$$.exe conf$$.file 8387if test -d conf$$.dir; then 8388 rm -f conf$$.dir/conf$$.file 8389else 8390 rm -f conf$$.dir 8391 mkdir conf$$.dir 2>/dev/null 8392fi 8393if (echo >conf$$.file) 2>/dev/null; then 8394 if ln -s conf$$.file conf$$ 2>/dev/null; then 8395 as_ln_s='ln -s' 8396 # ... but there are two gotchas: 8397 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8398 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8399 # In both cases, we have to default to `cp -pR'. 8400 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8401 as_ln_s='cp -pR' 8402 elif ln conf$$.file conf$$ 2>/dev/null; then 8403 as_ln_s=ln 8404 else 8405 as_ln_s='cp -pR' 8406 fi 8407else 8408 as_ln_s='cp -pR' 8409fi 8410rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8411rmdir conf$$.dir 2>/dev/null 8412 8413 8414# as_fn_mkdir_p 8415# ------------- 8416# Create "$as_dir" as a directory, including parents if necessary. 8417as_fn_mkdir_p () 8418{ 8419 8420 case $as_dir in #( 8421 -*) as_dir=./$as_dir;; 8422 esac 8423 test -d "$as_dir" || eval $as_mkdir_p || { 8424 as_dirs= 8425 while :; do 8426 case $as_dir in #( 8427 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8428 *) as_qdir=$as_dir;; 8429 esac 8430 as_dirs="'$as_qdir' $as_dirs" 8431 as_dir=`$as_dirname -- "$as_dir" || 8432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8433 X"$as_dir" : 'X\(//\)[^/]' \| \ 8434 X"$as_dir" : 'X\(//\)$' \| \ 8435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8436$as_echo X"$as_dir" | 8437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8438 s//\1/ 8439 q 8440 } 8441 /^X\(\/\/\)[^/].*/{ 8442 s//\1/ 8443 q 8444 } 8445 /^X\(\/\/\)$/{ 8446 s//\1/ 8447 q 8448 } 8449 /^X\(\/\).*/{ 8450 s//\1/ 8451 q 8452 } 8453 s/.*/./; q'` 8454 test -d "$as_dir" && break 8455 done 8456 test -z "$as_dirs" || eval "mkdir $as_dirs" 8457 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8458 8459 8460} # as_fn_mkdir_p 8461if mkdir -p . 2>/dev/null; then 8462 as_mkdir_p='mkdir -p "$as_dir"' 8463else 8464 test -d ./-p && rmdir ./-p 8465 as_mkdir_p=false 8466fi 8467 8468 8469# as_fn_executable_p FILE 8470# ----------------------- 8471# Test if FILE is an executable regular file. 8472as_fn_executable_p () 8473{ 8474 test -f "$1" && test -x "$1" 8475} # as_fn_executable_p 8476as_test_x='test -x' 8477as_executable_p=as_fn_executable_p 8478 8479# Sed expression to map a string onto a valid CPP name. 8480as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8481 8482# Sed expression to map a string onto a valid variable name. 8483as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8484 8485 8486exec 6>&1 8487## ----------------------------------- ## 8488## Main body of $CONFIG_STATUS script. ## 8489## ----------------------------------- ## 8490_ASEOF 8491test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8492 8493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8494# Save the log message, to keep $0 and so on meaningful, and to 8495# report actual input values of CONFIG_FILES etc. instead of their 8496# values after options handling. 8497ac_log=" 8498This file was extended by $as_me, which was 8499generated by GNU Autoconf 2.69. Invocation command line was 8500 8501 CONFIG_FILES = $CONFIG_FILES 8502 CONFIG_HEADERS = $CONFIG_HEADERS 8503 CONFIG_LINKS = $CONFIG_LINKS 8504 CONFIG_COMMANDS = $CONFIG_COMMANDS 8505 $ $0 $@ 8506 8507on `(hostname || uname -n) 2>/dev/null | sed 1q` 8508" 8509 8510_ACEOF 8511 8512case $ac_config_files in *" 8513"*) set x $ac_config_files; shift; ac_config_files=$*;; 8514esac 8515 8516case $ac_config_headers in *" 8517"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8518esac 8519 8520 8521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8522# Files that config.status was made for. 8523config_files="$ac_config_files" 8524config_headers="$ac_config_headers" 8525 8526_ACEOF 8527 8528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8529ac_cs_usage="\ 8530\`$as_me' instantiates files and other configuration actions 8531from templates according to the current configuration. Unless the files 8532and actions are specified as TAGs, all are instantiated by default. 8533 8534Usage: $0 [OPTION]... [TAG]... 8535 8536 -h, --help print this help, then exit 8537 -V, --version print version number and configuration settings, then exit 8538 --config print configuration, then exit 8539 -q, --quiet, --silent 8540 do not print progress messages 8541 -d, --debug don't remove temporary files 8542 --recheck update $as_me by reconfiguring in the same conditions 8543 --file=FILE[:TEMPLATE] 8544 instantiate the configuration file FILE 8545 --header=FILE[:TEMPLATE] 8546 instantiate the configuration header FILE 8547 8548Configuration files: 8549$config_files 8550 8551Configuration headers: 8552$config_headers 8553 8554Report bugs to the package provider." 8555 8556_ACEOF 8557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8558ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8559ac_cs_version="\\ 8560config.status 8561configured by $0, generated by GNU Autoconf 2.69, 8562 with options \\"\$ac_cs_config\\" 8563 8564Copyright (C) 2012 Free Software Foundation, Inc. 8565This config.status script is free software; the Free Software Foundation 8566gives unlimited permission to copy, distribute and modify it." 8567 8568ac_pwd='$ac_pwd' 8569srcdir='$srcdir' 8570INSTALL='$INSTALL' 8571test -n "\$AWK" || AWK=awk 8572_ACEOF 8573 8574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8575# The default lists apply if the user does not specify any file. 8576ac_need_defaults=: 8577while test $# != 0 8578do 8579 case $1 in 8580 --*=?*) 8581 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8583 ac_shift=: 8584 ;; 8585 --*=) 8586 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8587 ac_optarg= 8588 ac_shift=: 8589 ;; 8590 *) 8591 ac_option=$1 8592 ac_optarg=$2 8593 ac_shift=shift 8594 ;; 8595 esac 8596 8597 case $ac_option in 8598 # Handling of the options. 8599 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8600 ac_cs_recheck=: ;; 8601 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8602 $as_echo "$ac_cs_version"; exit ;; 8603 --config | --confi | --conf | --con | --co | --c ) 8604 $as_echo "$ac_cs_config"; exit ;; 8605 --debug | --debu | --deb | --de | --d | -d ) 8606 debug=: ;; 8607 --file | --fil | --fi | --f ) 8608 $ac_shift 8609 case $ac_optarg in 8610 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8611 '') as_fn_error $? "missing file argument" ;; 8612 esac 8613 as_fn_append CONFIG_FILES " '$ac_optarg'" 8614 ac_need_defaults=false;; 8615 --header | --heade | --head | --hea ) 8616 $ac_shift 8617 case $ac_optarg in 8618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8619 esac 8620 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8621 ac_need_defaults=false;; 8622 --he | --h) 8623 # Conflict between --help and --header 8624 as_fn_error $? "ambiguous option: \`$1' 8625Try \`$0 --help' for more information.";; 8626 --help | --hel | -h ) 8627 $as_echo "$ac_cs_usage"; exit ;; 8628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8629 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8630 ac_cs_silent=: ;; 8631 8632 # This is an error. 8633 -*) as_fn_error $? "unrecognized option: \`$1' 8634Try \`$0 --help' for more information." ;; 8635 8636 *) as_fn_append ac_config_targets " $1" 8637 ac_need_defaults=false ;; 8638 8639 esac 8640 shift 8641done 8642 8643ac_configure_extra_args= 8644 8645if $ac_cs_silent; then 8646 exec 6>/dev/null 8647 ac_configure_extra_args="$ac_configure_extra_args --silent" 8648fi 8649 8650_ACEOF 8651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8652if \$ac_cs_recheck; then 8653 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8654 shift 8655 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8656 CONFIG_SHELL='$SHELL' 8657 export CONFIG_SHELL 8658 exec "\$@" 8659fi 8660 8661_ACEOF 8662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8663exec 5>>config.log 8664{ 8665 echo 8666 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8667## Running $as_me. ## 8668_ASBOX 8669 $as_echo "$ac_log" 8670} >&5 8671 8672_ACEOF 8673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8674_ACEOF 8675 8676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8677 8678# Handling of arguments. 8679for ac_config_target in $ac_config_targets 8680do 8681 case $ac_config_target in 8682 "src/$host/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/$host/config.h:config.h.in" ;; 8683 "src/$host/Makefile") CONFIG_FILES="$CONFIG_FILES src/$host/Makefile:src/Makefile.in" ;; 8684 "src/$host/eidefs.mk") CONFIG_FILES="$CONFIG_FILES src/$host/eidefs.mk:src/eidefs.mk.in" ;; 8685 8686 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8687 esac 8688done 8689 8690 8691# If the user did not use the arguments to specify the items to instantiate, 8692# then the envvar interface is used. Set only those that are not. 8693# We use the long form for the default assignment because of an extremely 8694# bizarre bug on SunOS 4.1.3. 8695if $ac_need_defaults; then 8696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8698fi 8699 8700# Have a temporary directory for convenience. Make it in the build tree 8701# simply because there is no reason against having it here, and in addition, 8702# creating and moving files from /tmp can sometimes cause problems. 8703# Hook for its removal unless debugging. 8704# Note that there is a small window in which the directory will not be cleaned: 8705# after its creation but before its name has been assigned to `$tmp'. 8706$debug || 8707{ 8708 tmp= ac_tmp= 8709 trap 'exit_status=$? 8710 : "${ac_tmp:=$tmp}" 8711 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8712' 0 8713 trap 'as_fn_exit 1' 1 2 13 15 8714} 8715# Create a (secure) tmp directory for tmp files. 8716 8717{ 8718 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8719 test -d "$tmp" 8720} || 8721{ 8722 tmp=./conf$$-$RANDOM 8723 (umask 077 && mkdir "$tmp") 8724} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8725ac_tmp=$tmp 8726 8727# Set up the scripts for CONFIG_FILES section. 8728# No need to generate them if there are no CONFIG_FILES. 8729# This happens for instance with `./config.status config.h'. 8730if test -n "$CONFIG_FILES"; then 8731 8732 8733ac_cr=`echo X | tr X '\015'` 8734# On cygwin, bash can eat \r inside `` if the user requested igncr. 8735# But we know of no other shell where ac_cr would be empty at this 8736# point, so we can use a bashism as a fallback. 8737if test "x$ac_cr" = x; then 8738 eval ac_cr=\$\'\\r\' 8739fi 8740ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 8741if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 8742 ac_cs_awk_cr='\\r' 8743else 8744 ac_cs_awk_cr=$ac_cr 8745fi 8746 8747echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 8748_ACEOF 8749 8750 8751{ 8752 echo "cat >conf$$subs.awk <<_ACEOF" && 8753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 8754 echo "_ACEOF" 8755} >conf$$subs.sh || 8756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8757ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 8758ac_delim='%!_!# ' 8759for ac_last_try in false false false false false :; do 8760 . ./conf$$subs.sh || 8761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8762 8763 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 8764 if test $ac_delim_n = $ac_delim_num; then 8765 break 8766 elif $ac_last_try; then 8767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 8768 else 8769 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8770 fi 8771done 8772rm -f conf$$subs.sh 8773 8774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8775cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 8776_ACEOF 8777sed -n ' 8778h 8779s/^/S["/; s/!.*/"]=/ 8780p 8781g 8782s/^[^!]*!// 8783:repl 8784t repl 8785s/'"$ac_delim"'$// 8786t delim 8787:nl 8788h 8789s/\(.\{148\}\)..*/\1/ 8790t more1 8791s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 8792p 8793n 8794b repl 8795:more1 8796s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8797p 8798g 8799s/.\{148\}// 8800t nl 8801:delim 8802h 8803s/\(.\{148\}\)..*/\1/ 8804t more2 8805s/["\\]/\\&/g; s/^/"/; s/$/"/ 8806p 8807b 8808:more2 8809s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 8810p 8811g 8812s/.\{148\}// 8813t delim 8814' <conf$$subs.awk | sed ' 8815/^[^""]/{ 8816 N 8817 s/\n// 8818} 8819' >>$CONFIG_STATUS || ac_write_fail=1 8820rm -f conf$$subs.awk 8821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8822_ACAWK 8823cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 8824 for (key in S) S_is_set[key] = 1 8825 FS = "" 8826 8827} 8828{ 8829 line = $ 0 8830 nfields = split(line, field, "@") 8831 substed = 0 8832 len = length(field[1]) 8833 for (i = 2; i < nfields; i++) { 8834 key = field[i] 8835 keylen = length(key) 8836 if (S_is_set[key]) { 8837 value = S[key] 8838 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 8839 len += length(value) + length(field[++i]) 8840 substed = 1 8841 } else 8842 len += 1 + keylen 8843 } 8844 8845 print line 8846} 8847 8848_ACAWK 8849_ACEOF 8850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8851if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 8852 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 8853else 8854 cat 8855fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 8856 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 8857_ACEOF 8858 8859# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 8860# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 8861# trailing colons and then remove the whole line if VPATH becomes empty 8862# (actually we leave an empty line to preserve line numbers). 8863if test "x$srcdir" = x.; then 8864 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 8865h 8866s/// 8867s/^/:/ 8868s/[ ]*$/:/ 8869s/:\$(srcdir):/:/g 8870s/:\${srcdir}:/:/g 8871s/:@srcdir@:/:/g 8872s/^:*// 8873s/:*$// 8874x 8875s/\(=[ ]*\).*/\1/ 8876G 8877s/\n// 8878s/^[^=]*=[ ]*$// 8879}' 8880fi 8881 8882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8883fi # test -n "$CONFIG_FILES" 8884 8885# Set up the scripts for CONFIG_HEADERS section. 8886# No need to generate them if there are no CONFIG_HEADERS. 8887# This happens for instance with `./config.status Makefile'. 8888if test -n "$CONFIG_HEADERS"; then 8889cat >"$ac_tmp/defines.awk" <<\_ACAWK || 8890BEGIN { 8891_ACEOF 8892 8893# Transform confdefs.h into an awk script `defines.awk', embedded as 8894# here-document in config.status, that substitutes the proper values into 8895# config.h.in to produce config.h. 8896 8897# Create a delimiter string that does not exist in confdefs.h, to ease 8898# handling of long lines. 8899ac_delim='%!_!# ' 8900for ac_last_try in false false :; do 8901 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 8902 if test -z "$ac_tt"; then 8903 break 8904 elif $ac_last_try; then 8905 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 8906 else 8907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8908 fi 8909done 8910 8911# For the awk script, D is an array of macro values keyed by name, 8912# likewise P contains macro parameters if any. Preserve backslash 8913# newline sequences. 8914 8915ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 8916sed -n ' 8917s/.\{148\}/&'"$ac_delim"'/g 8918t rset 8919:rset 8920s/^[ ]*#[ ]*define[ ][ ]*/ / 8921t def 8922d 8923:def 8924s/\\$// 8925t bsnl 8926s/["\\]/\\&/g 8927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8928D["\1"]=" \3"/p 8929s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 8930d 8931:bsnl 8932s/["\\]/\\&/g 8933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 8934D["\1"]=" \3\\\\\\n"\\/p 8935t cont 8936s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 8937t cont 8938d 8939:cont 8940n 8941s/.\{148\}/&'"$ac_delim"'/g 8942t clear 8943:clear 8944s/\\$// 8945t bsnlc 8946s/["\\]/\\&/g; s/^/"/; s/$/"/p 8947d 8948:bsnlc 8949s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 8950b cont 8951' <confdefs.h | sed ' 8952s/'"$ac_delim"'/"\\\ 8953"/g' >>$CONFIG_STATUS || ac_write_fail=1 8954 8955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8956 for (key in D) D_is_set[key] = 1 8957 FS = "" 8958} 8959/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 8960 line = \$ 0 8961 split(line, arg, " ") 8962 if (arg[1] == "#") { 8963 defundef = arg[2] 8964 mac1 = arg[3] 8965 } else { 8966 defundef = substr(arg[1], 2) 8967 mac1 = arg[2] 8968 } 8969 split(mac1, mac2, "(") #) 8970 macro = mac2[1] 8971 prefix = substr(line, 1, index(line, defundef) - 1) 8972 if (D_is_set[macro]) { 8973 # Preserve the white space surrounding the "#". 8974 print prefix "define", macro P[macro] D[macro] 8975 next 8976 } else { 8977 # Replace #undef with comments. This is necessary, for example, 8978 # in the case of _POSIX_SOURCE, which is predefined and required 8979 # on some systems where configure will not decide to define it. 8980 if (defundef == "undef") { 8981 print "/*", prefix defundef, macro, "*/" 8982 next 8983 } 8984 } 8985} 8986{ print } 8987_ACAWK 8988_ACEOF 8989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8990 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 8991fi # test -n "$CONFIG_HEADERS" 8992 8993 8994eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 8995shift 8996for ac_tag 8997do 8998 case $ac_tag in 8999 :[FHLC]) ac_mode=$ac_tag; continue;; 9000 esac 9001 case $ac_mode$ac_tag in 9002 :[FHL]*:*);; 9003 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9004 :[FH]-) ac_tag=-:-;; 9005 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9006 esac 9007 ac_save_IFS=$IFS 9008 IFS=: 9009 set x $ac_tag 9010 IFS=$ac_save_IFS 9011 shift 9012 ac_file=$1 9013 shift 9014 9015 case $ac_mode in 9016 :L) ac_source=$1;; 9017 :[FH]) 9018 ac_file_inputs= 9019 for ac_f 9020 do 9021 case $ac_f in 9022 -) ac_f="$ac_tmp/stdin";; 9023 *) # Look for the file first in the build tree, then in the source tree 9024 # (if the path is not absolute). The absolute path cannot be DOS-style, 9025 # because $ac_f cannot contain `:'. 9026 test -f "$ac_f" || 9027 case $ac_f in 9028 [\\/$]*) false;; 9029 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9030 esac || 9031 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9032 esac 9033 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9034 as_fn_append ac_file_inputs " '$ac_f'" 9035 done 9036 9037 # Let's still pretend it is `configure' which instantiates (i.e., don't 9038 # use $as_me), people would be surprised to read: 9039 # /* config.h. Generated by config.status. */ 9040 configure_input='Generated from '` 9041 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9042 `' by configure.' 9043 if test x"$ac_file" != x-; then 9044 configure_input="$ac_file. $configure_input" 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9046$as_echo "$as_me: creating $ac_file" >&6;} 9047 fi 9048 # Neutralize special characters interpreted by sed in replacement strings. 9049 case $configure_input in #( 9050 *\&* | *\|* | *\\* ) 9051 ac_sed_conf_input=`$as_echo "$configure_input" | 9052 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9053 *) ac_sed_conf_input=$configure_input;; 9054 esac 9055 9056 case $ac_tag in 9057 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9059 esac 9060 ;; 9061 esac 9062 9063 ac_dir=`$as_dirname -- "$ac_file" || 9064$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9065 X"$ac_file" : 'X\(//\)[^/]' \| \ 9066 X"$ac_file" : 'X\(//\)$' \| \ 9067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9068$as_echo X"$ac_file" | 9069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9070 s//\1/ 9071 q 9072 } 9073 /^X\(\/\/\)[^/].*/{ 9074 s//\1/ 9075 q 9076 } 9077 /^X\(\/\/\)$/{ 9078 s//\1/ 9079 q 9080 } 9081 /^X\(\/\).*/{ 9082 s//\1/ 9083 q 9084 } 9085 s/.*/./; q'` 9086 as_dir="$ac_dir"; as_fn_mkdir_p 9087 ac_builddir=. 9088 9089case "$ac_dir" in 9090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9091*) 9092 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9093 # A ".." for each directory in $ac_dir_suffix. 9094 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9095 case $ac_top_builddir_sub in 9096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9098 esac ;; 9099esac 9100ac_abs_top_builddir=$ac_pwd 9101ac_abs_builddir=$ac_pwd$ac_dir_suffix 9102# for backward compatibility: 9103ac_top_builddir=$ac_top_build_prefix 9104 9105case $srcdir in 9106 .) # We are building in place. 9107 ac_srcdir=. 9108 ac_top_srcdir=$ac_top_builddir_sub 9109 ac_abs_top_srcdir=$ac_pwd ;; 9110 [\\/]* | ?:[\\/]* ) # Absolute name. 9111 ac_srcdir=$srcdir$ac_dir_suffix; 9112 ac_top_srcdir=$srcdir 9113 ac_abs_top_srcdir=$srcdir ;; 9114 *) # Relative name. 9115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9116 ac_top_srcdir=$ac_top_build_prefix$srcdir 9117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9118esac 9119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9120 9121 9122 case $ac_mode in 9123 :F) 9124 # 9125 # CONFIG_FILE 9126 # 9127 9128 case $INSTALL in 9129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9131 esac 9132_ACEOF 9133 9134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9135# If the template does not know about datarootdir, expand it. 9136# FIXME: This hack should be removed a few years after 2.60. 9137ac_datarootdir_hack=; ac_datarootdir_seen= 9138ac_sed_dataroot=' 9139/datarootdir/ { 9140 p 9141 q 9142} 9143/@datadir@/p 9144/@docdir@/p 9145/@infodir@/p 9146/@localedir@/p 9147/@mandir@/p' 9148case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9149*datarootdir*) ac_datarootdir_seen=yes;; 9150*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9152$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9153_ACEOF 9154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9155 ac_datarootdir_hack=' 9156 s&@datadir@&$datadir&g 9157 s&@docdir@&$docdir&g 9158 s&@infodir@&$infodir&g 9159 s&@localedir@&$localedir&g 9160 s&@mandir@&$mandir&g 9161 s&\\\${datarootdir}&$datarootdir&g' ;; 9162esac 9163_ACEOF 9164 9165# Neutralize VPATH when `$srcdir' = `.'. 9166# Shell code in configure.ac might set extrasub. 9167# FIXME: do we really want to maintain this feature? 9168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9169ac_sed_extra="$ac_vpsub 9170$extrasub 9171_ACEOF 9172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9173:t 9174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9175s|@configure_input@|$ac_sed_conf_input|;t t 9176s&@top_builddir@&$ac_top_builddir_sub&;t t 9177s&@top_build_prefix@&$ac_top_build_prefix&;t t 9178s&@srcdir@&$ac_srcdir&;t t 9179s&@abs_srcdir@&$ac_abs_srcdir&;t t 9180s&@top_srcdir@&$ac_top_srcdir&;t t 9181s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9182s&@builddir@&$ac_builddir&;t t 9183s&@abs_builddir@&$ac_abs_builddir&;t t 9184s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9185s&@INSTALL@&$ac_INSTALL&;t t 9186$ac_datarootdir_hack 9187" 9188eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9189 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9190 9191test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9194 "$ac_tmp/out"`; test -z "$ac_out"; } && 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9196which seems to be undefined. Please make sure it is defined" >&5 9197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9198which seems to be undefined. Please make sure it is defined" >&2;} 9199 9200 rm -f "$ac_tmp/stdin" 9201 case $ac_file in 9202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9204 esac \ 9205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9206 ;; 9207 :H) 9208 # 9209 # CONFIG_HEADER 9210 # 9211 if test x"$ac_file" != x-; then 9212 { 9213 $as_echo "/* $configure_input */" \ 9214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9215 } >"$ac_tmp/config.h" \ 9216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9219$as_echo "$as_me: $ac_file is unchanged" >&6;} 9220 else 9221 rm -f "$ac_file" 9222 mv "$ac_tmp/config.h" "$ac_file" \ 9223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9224 fi 9225 else 9226 $as_echo "/* $configure_input */" \ 9227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9228 || as_fn_error $? "could not create -" "$LINENO" 5 9229 fi 9230 ;; 9231 9232 9233 esac 9234 9235done # for ac_tag 9236 9237 9238as_fn_exit 0 9239_ACEOF 9240ac_clean_files=$ac_clean_files_save 9241 9242test $ac_write_fail = 0 || 9243 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9244 9245 9246# configure is writing to config.log, and then calls config.status. 9247# config.status does its own redirection, appending to config.log. 9248# Unfortunately, on DOS this fails, as config.log is still kept open 9249# by configure, so config.status won't be able to write to it; its 9250# output is simply discarded. So we exec the FD to /dev/null, 9251# effectively closing config.log, so it can be properly (re)opened and 9252# appended to by config.status. When coming back to configure, we 9253# need to make the FD available again. 9254if test "$no_create" != yes; then 9255 ac_cs_success=: 9256 ac_config_status_args= 9257 test "$silent" = yes && 9258 ac_config_status_args="$ac_config_status_args --quiet" 9259 exec 5>/dev/null 9260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9261 exec 5>>config.log 9262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9263 # would make configure fail if this is the last instruction. 9264 $ac_cs_success || as_fn_exit 1 9265fi 9266if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9268$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9269fi 9270 9271