1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gold 0.1. 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='gold' 579PACKAGE_TARNAME='gold' 580PACKAGE_VERSION='0.1' 581PACKAGE_STRING='gold 0.1' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="gold.cc" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='am__EXEEXT_FALSE 623am__EXEEXT_TRUE 624LTLIBOBJS 625MAINT 626MAINTAINER_MODE_FALSE 627MAINTAINER_MODE_TRUE 628DLOPEN_LIBS 629CXXCPP 630HAVE_NO_USE_LINKER_PLUGIN_FALSE 631HAVE_NO_USE_LINKER_PLUGIN_TRUE 632HAVE_PUBNAMES_FALSE 633HAVE_PUBNAMES_TRUE 634THREADS_FALSE 635THREADS_TRUE 636PTHREAD_CFLAGS 637PTHREAD_LIBS 638PTHREAD_CC 639ax_pthread_config 640SED 641zlibinc 642zlibdir 643LIBOBJS 644LFS_CFLAGS 645GOLD_LDADD 646GOLD_LDFLAGS 647WARN_CXXFLAGS 648WARN_WRITE_STRINGS 649NO_WERROR 650WARN_CFLAGS_FOR_BUILD 651WARN_CFLAGS 652IFUNC_STATIC_FALSE 653IFUNC_STATIC_TRUE 654IFUNC_FALSE 655IFUNC_TRUE 656RANDOM_SEED_CFLAGS 657TLS_DESCRIPTORS_FALSE 658TLS_DESCRIPTORS_TRUE 659TLS_GNU2_DIALECT_FALSE 660TLS_GNU2_DIALECT_TRUE 661OMP_SUPPORT_FALSE 662OMP_SUPPORT_TRUE 663STATIC_TLS_FALSE 664STATIC_TLS_TRUE 665TLS_FALSE 666TLS_TRUE 667MERGE_CONSTANTS_FLAG 668MCMODEL_MEDIUM_FALSE 669MCMODEL_MEDIUM_TRUE 670FN_PTRS_IN_SO_WITHOUT_PIC_FALSE 671FN_PTRS_IN_SO_WITHOUT_PIC_TRUE 672HAVE_STATIC_FALSE 673HAVE_STATIC_TRUE 674NATIVE_OR_CROSS_LINKER_FALSE 675NATIVE_OR_CROSS_LINKER_TRUE 676GCC_FALSE 677GCC_TRUE 678NATIVE_LINKER_FALSE 679NATIVE_LINKER_TRUE 680MSGMERGE 681MSGFMT 682MKINSTALLDIRS 683CATOBJEXT 684GENCAT 685INSTOBJEXT 686DATADIRNAME 687CATALOGS 688POSUB 689GMSGFMT 690XGETTEXT 691INCINTL 692LIBINTL_DEP 693LIBINTL 694USE_NLS 695LN_S 696RANLIB 697YFLAGS 698YACC 699am__fastdepCXX_FALSE 700am__fastdepCXX_TRUE 701CXXDEPMODE 702ac_ct_CXX 703CXXFLAGS 704CXX 705NM 706TARGETOBJS 707DEFAULT_TARGET 708DEFAULT_TARGET_MIPS_FALSE 709DEFAULT_TARGET_MIPS_TRUE 710DEFAULT_TARGET_TILEGX_FALSE 711DEFAULT_TARGET_TILEGX_TRUE 712DEFAULT_TARGET_X86_64_OR_X32_FALSE 713DEFAULT_TARGET_X86_64_OR_X32_TRUE 714DEFAULT_TARGET_X32_FALSE 715DEFAULT_TARGET_X32_TRUE 716DEFAULT_TARGET_X86_64_FALSE 717DEFAULT_TARGET_X86_64_TRUE 718DEFAULT_TARGET_S390_FALSE 719DEFAULT_TARGET_S390_TRUE 720DEFAULT_TARGET_SPARC_FALSE 721DEFAULT_TARGET_SPARC_TRUE 722DEFAULT_TARGET_POWERPC_FALSE 723DEFAULT_TARGET_POWERPC_TRUE 724DEFAULT_TARGET_I386_FALSE 725DEFAULT_TARGET_I386_TRUE 726DEFAULT_TARGET_ARM_FALSE 727DEFAULT_TARGET_ARM_TRUE 728DEFAULT_TARGET_AARCH64_FALSE 729DEFAULT_TARGET_AARCH64_TRUE 730PLUGINS_FALSE 731PLUGINS_TRUE 732installed_linker 733install_as_default 734EGREP 735GREP 736CPP 737am__fastdepCC_FALSE 738am__fastdepCC_TRUE 739CCDEPMODE 740am__nodep 741AMDEPBACKSLASH 742AMDEP_FALSE 743AMDEP_TRUE 744am__quote 745am__include 746DEPDIR 747OBJEXT 748EXEEXT 749ac_ct_CC 750CPPFLAGS 751LDFLAGS 752CFLAGS 753CC 754AM_BACKSLASH 755AM_DEFAULT_VERBOSITY 756AM_DEFAULT_V 757AM_V 758am__untar 759am__tar 760AMTAR 761am__leading_dot 762SET_MAKE 763AWK 764mkdir_p 765MKDIR_P 766INSTALL_STRIP_PROGRAM 767STRIP 768install_sh 769MAKEINFO 770AUTOHEADER 771AUTOMAKE 772AUTOCONF 773ACLOCAL 774VERSION 775PACKAGE 776CYGPATH_W 777am__isrc 778INSTALL_DATA 779INSTALL_SCRIPT 780INSTALL_PROGRAM 781target_os 782target_vendor 783target_cpu 784target 785host_os 786host_vendor 787host_cpu 788host 789build_os 790build_vendor 791build_cpu 792build 793target_alias 794host_alias 795build_alias 796LIBS 797ECHO_T 798ECHO_N 799ECHO_C 800DEFS 801mandir 802localedir 803libdir 804psdir 805pdfdir 806dvidir 807htmldir 808infodir 809docdir 810oldincludedir 811includedir 812localstatedir 813sharedstatedir 814sysconfdir 815datadir 816datarootdir 817libexecdir 818sbindir 819bindir 820program_transform_name 821prefix 822exec_prefix 823PACKAGE_URL 824PACKAGE_BUGREPORT 825PACKAGE_STRING 826PACKAGE_VERSION 827PACKAGE_TARNAME 828PACKAGE_NAME 829PATH_SEPARATOR 830SHELL' 831ac_subst_files='' 832ac_user_opts=' 833enable_option_checking 834enable_silent_rules 835enable_dependency_tracking 836with_sysroot 837enable_gold 838enable_plugins 839enable_relro 840enable_targets 841enable_default_hash_style 842with_lib_path 843enable_nls 844enable_werror 845enable_build_warnings 846with_gold_ldflags 847with_gold_ldadd 848with_system_zlib 849enable_threads 850enable_maintainer_mode 851' 852 ac_precious_vars='build_alias 853host_alias 854target_alias 855CC 856CFLAGS 857LDFLAGS 858LIBS 859CPPFLAGS 860CPP 861CXX 862CXXFLAGS 863CCC 864YACC 865YFLAGS 866CXXCPP' 867 868 869# Initialize some variables set by options. 870ac_init_help= 871ac_init_version=false 872ac_unrecognized_opts= 873ac_unrecognized_sep= 874# The variables have the same names as the options, with 875# dashes changed to underlines. 876cache_file=/dev/null 877exec_prefix=NONE 878no_create= 879no_recursion= 880prefix=NONE 881program_prefix=NONE 882program_suffix=NONE 883program_transform_name=s,x,x, 884silent= 885site= 886srcdir= 887verbose= 888x_includes=NONE 889x_libraries=NONE 890 891# Installation directory options. 892# These are left unexpanded so users can "make install exec_prefix=/foo" 893# and all the variables that are supposed to be based on exec_prefix 894# by default will actually change. 895# Use braces instead of parens because sh, perl, etc. also accept them. 896# (The list follows the same order as the GNU Coding Standards.) 897bindir='${exec_prefix}/bin' 898sbindir='${exec_prefix}/sbin' 899libexecdir='${exec_prefix}/libexec' 900datarootdir='${prefix}/share' 901datadir='${datarootdir}' 902sysconfdir='${prefix}/etc' 903sharedstatedir='${prefix}/com' 904localstatedir='${prefix}/var' 905includedir='${prefix}/include' 906oldincludedir='/usr/include' 907docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 908infodir='${datarootdir}/info' 909htmldir='${docdir}' 910dvidir='${docdir}' 911pdfdir='${docdir}' 912psdir='${docdir}' 913libdir='${exec_prefix}/lib' 914localedir='${datarootdir}/locale' 915mandir='${datarootdir}/man' 916 917ac_prev= 918ac_dashdash= 919for ac_option 920do 921 # If the previous option needs an argument, assign it. 922 if test -n "$ac_prev"; then 923 eval $ac_prev=\$ac_option 924 ac_prev= 925 continue 926 fi 927 928 case $ac_option in 929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 930 *=) ac_optarg= ;; 931 *) ac_optarg=yes ;; 932 esac 933 934 # Accept the important Cygnus configure options, so we can diagnose typos. 935 936 case $ac_dashdash$ac_option in 937 --) 938 ac_dashdash=yes ;; 939 940 -bindir | --bindir | --bindi | --bind | --bin | --bi) 941 ac_prev=bindir ;; 942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 943 bindir=$ac_optarg ;; 944 945 -build | --build | --buil | --bui | --bu) 946 ac_prev=build_alias ;; 947 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 948 build_alias=$ac_optarg ;; 949 950 -cache-file | --cache-file | --cache-fil | --cache-fi \ 951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 952 ac_prev=cache_file ;; 953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 955 cache_file=$ac_optarg ;; 956 957 --config-cache | -C) 958 cache_file=config.cache ;; 959 960 -datadir | --datadir | --datadi | --datad) 961 ac_prev=datadir ;; 962 -datadir=* | --datadir=* | --datadi=* | --datad=*) 963 datadir=$ac_optarg ;; 964 965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 966 | --dataroo | --dataro | --datar) 967 ac_prev=datarootdir ;; 968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 970 datarootdir=$ac_optarg ;; 971 972 -disable-* | --disable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: $ac_useropt" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=no ;; 987 988 -docdir | --docdir | --docdi | --doc | --do) 989 ac_prev=docdir ;; 990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 991 docdir=$ac_optarg ;; 992 993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 994 ac_prev=dvidir ;; 995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 996 dvidir=$ac_optarg ;; 997 998 -enable-* | --enable-*) 999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1002 as_fn_error $? "invalid feature name: $ac_useropt" 1003 ac_useropt_orig=$ac_useropt 1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1005 case $ac_user_opts in 1006 *" 1007"enable_$ac_useropt" 1008"*) ;; 1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1010 ac_unrecognized_sep=', ';; 1011 esac 1012 eval enable_$ac_useropt=\$ac_optarg ;; 1013 1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1016 | --exec | --exe | --ex) 1017 ac_prev=exec_prefix ;; 1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1020 | --exec=* | --exe=* | --ex=*) 1021 exec_prefix=$ac_optarg ;; 1022 1023 -gas | --gas | --ga | --g) 1024 # Obsolete; use --with-gas. 1025 with_gas=yes ;; 1026 1027 -help | --help | --hel | --he | -h) 1028 ac_init_help=long ;; 1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1030 ac_init_help=recursive ;; 1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1032 ac_init_help=short ;; 1033 1034 -host | --host | --hos | --ho) 1035 ac_prev=host_alias ;; 1036 -host=* | --host=* | --hos=* | --ho=*) 1037 host_alias=$ac_optarg ;; 1038 1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1040 ac_prev=htmldir ;; 1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1042 | --ht=*) 1043 htmldir=$ac_optarg ;; 1044 1045 -includedir | --includedir | --includedi | --included | --include \ 1046 | --includ | --inclu | --incl | --inc) 1047 ac_prev=includedir ;; 1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1049 | --includ=* | --inclu=* | --incl=* | --inc=*) 1050 includedir=$ac_optarg ;; 1051 1052 -infodir | --infodir | --infodi | --infod | --info | --inf) 1053 ac_prev=infodir ;; 1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1055 infodir=$ac_optarg ;; 1056 1057 -libdir | --libdir | --libdi | --libd) 1058 ac_prev=libdir ;; 1059 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1060 libdir=$ac_optarg ;; 1061 1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1063 | --libexe | --libex | --libe) 1064 ac_prev=libexecdir ;; 1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1066 | --libexe=* | --libex=* | --libe=*) 1067 libexecdir=$ac_optarg ;; 1068 1069 -localedir | --localedir | --localedi | --localed | --locale) 1070 ac_prev=localedir ;; 1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1072 localedir=$ac_optarg ;; 1073 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1075 | --localstate | --localstat | --localsta | --localst | --locals) 1076 ac_prev=localstatedir ;; 1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1079 localstatedir=$ac_optarg ;; 1080 1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1082 ac_prev=mandir ;; 1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1084 mandir=$ac_optarg ;; 1085 1086 -nfp | --nfp | --nf) 1087 # Obsolete; use --without-fp. 1088 with_fp=no ;; 1089 1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1091 | --no-cr | --no-c | -n) 1092 no_create=yes ;; 1093 1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1096 no_recursion=yes ;; 1097 1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1100 | --oldin | --oldi | --old | --ol | --o) 1101 ac_prev=oldincludedir ;; 1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1105 oldincludedir=$ac_optarg ;; 1106 1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1108 ac_prev=prefix ;; 1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1110 prefix=$ac_optarg ;; 1111 1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1113 | --program-pre | --program-pr | --program-p) 1114 ac_prev=program_prefix ;; 1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1117 program_prefix=$ac_optarg ;; 1118 1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1120 | --program-suf | --program-su | --program-s) 1121 ac_prev=program_suffix ;; 1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1124 program_suffix=$ac_optarg ;; 1125 1126 -program-transform-name | --program-transform-name \ 1127 | --program-transform-nam | --program-transform-na \ 1128 | --program-transform-n | --program-transform- \ 1129 | --program-transform | --program-transfor \ 1130 | --program-transfo | --program-transf \ 1131 | --program-trans | --program-tran \ 1132 | --progr-tra | --program-tr | --program-t) 1133 ac_prev=program_transform_name ;; 1134 -program-transform-name=* | --program-transform-name=* \ 1135 | --program-transform-nam=* | --program-transform-na=* \ 1136 | --program-transform-n=* | --program-transform-=* \ 1137 | --program-transform=* | --program-transfor=* \ 1138 | --program-transfo=* | --program-transf=* \ 1139 | --program-trans=* | --program-tran=* \ 1140 | --progr-tra=* | --program-tr=* | --program-t=*) 1141 program_transform_name=$ac_optarg ;; 1142 1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1144 ac_prev=pdfdir ;; 1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1146 pdfdir=$ac_optarg ;; 1147 1148 -psdir | --psdir | --psdi | --psd | --ps) 1149 ac_prev=psdir ;; 1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1151 psdir=$ac_optarg ;; 1152 1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1154 | -silent | --silent | --silen | --sile | --sil) 1155 silent=yes ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350$as_echo X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures gold 0.1 to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --libdir=DIR object code libraries [EPREFIX/lib] 1448 --includedir=DIR C header files [PREFIX/include] 1449 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1452 --infodir=DIR info documentation [DATAROOTDIR/info] 1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1454 --mandir=DIR man documentation [DATAROOTDIR/man] 1455 --docdir=DIR documentation root [DATAROOTDIR/doc/gold] 1456 --htmldir=DIR html documentation [DOCDIR] 1457 --dvidir=DIR dvi documentation [DOCDIR] 1458 --pdfdir=DIR pdf documentation [DOCDIR] 1459 --psdir=DIR ps documentation [DOCDIR] 1460_ACEOF 1461 1462 cat <<\_ACEOF 1463 1464Program names: 1465 --program-prefix=PREFIX prepend PREFIX to installed program names 1466 --program-suffix=SUFFIX append SUFFIX to installed program names 1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1468 1469System types: 1470 --build=BUILD configure for building on BUILD [guessed] 1471 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1472 --target=TARGET configure for building compilers for TARGET [HOST] 1473_ACEOF 1474fi 1475 1476if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of gold 0.1:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-silent-rules less verbose build output (undo: "make V=1") 1487 --disable-silent-rules verbose build output (undo: "make V=0") 1488 --enable-dependency-tracking 1489 do not reject slow dependency extractors 1490 --disable-dependency-tracking 1491 speeds up one-time build 1492 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1493 --enable-plugins Enable support for plugins 1494 --enable-relro enable -z relro in ELF linker by default 1495 --enable-targets alternative target configurations 1496 --enable-default-hash-style={sysv,gnu,both} 1497 use this default hash style 1498 --disable-nls do not use Native Language Support 1499 --enable-werror treat compile warnings as errors 1500 --enable-build-warnings enable build-time compiler warnings 1501 --enable-threads[=ARG] multi-threaded linking [ARG={auto,yes,no}] 1502 --enable-maintainer-mode 1503 enable make rules and dependencies not useful (and 1504 sometimes confusing) to the casual installer 1505 1506Optional Packages: 1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1509 --with-sysroot=DIR search for usr/lib et al within DIR 1510 --with-lib-path=dir1:dir2... set default LIB_PATH 1511 --with-gold-ldflags=FLAGS additional link flags for gold 1512 --with-gold-ldadd=LIBS additional libraries for gold 1513 --with-system-zlib use installed libz 1514 1515Some influential environment variables: 1516 CC C compiler command 1517 CFLAGS C compiler flags 1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1519 nonstandard directory <lib dir> 1520 LIBS libraries to pass to the linker, e.g. -l<library> 1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1522 you have headers in a nonstandard directory <include dir> 1523 CPP C preprocessor 1524 CXX C++ compiler command 1525 CXXFLAGS C++ compiler flags 1526 YACC The `Yet Another Compiler Compiler' implementation to use. 1527 Defaults to the first program found out of: `bison -y', `byacc', 1528 `yacc'. 1529 YFLAGS The list of arguments that will be passed by default to $YACC. 1530 This script will default YFLAGS to the empty string to avoid a 1531 default value of `-d' given by some make applications. 1532 CXXCPP C++ preprocessor 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to the package provider. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for guested configure. 1584 if test -f "$ac_srcdir/configure.gnu"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1587 elif test -f "$ac_srcdir/configure"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure" --help=recursive 1590 else 1591 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1592 fi || ac_status=$? 1593 cd "$ac_pwd" || { ac_status=$?; break; } 1594 done 1595fi 1596 1597test -n "$ac_init_help" && exit $ac_status 1598if $ac_init_version; then 1599 cat <<\_ACEOF 1600gold configure 0.1 1601generated by GNU Autoconf 2.69 1602 1603Copyright (C) 2012 Free Software Foundation, Inc. 1604This configure script is free software; the Free Software Foundation 1605gives unlimited permission to copy, distribute and modify it. 1606_ACEOF 1607 exit 1608fi 1609 1610## ------------------------ ## 1611## Autoconf initialization. ## 1612## ------------------------ ## 1613 1614# ac_fn_c_try_compile LINENO 1615# -------------------------- 1616# Try to compile conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_compile () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext 1621 if { { ac_try="$ac_compile" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_cpp LINENO 1653# ---------------------- 1654# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_cpp () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 if { { ac_try="$ac_cpp conftest.$ac_ext" 1659case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1666 ac_status=$? 1667 if test -s conftest.err; then 1668 grep -v '^ *+' conftest.err >conftest.er1 1669 cat conftest.er1 >&5 1670 mv -f conftest.er1 conftest.err 1671 fi 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } > conftest.i && { 1674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1675 test ! -s conftest.err 1676 }; then : 1677 ac_retval=0 1678else 1679 $as_echo "$as_me: failed program was:" >&5 1680sed 's/^/| /' conftest.$ac_ext >&5 1681 1682 ac_retval=1 1683fi 1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1685 as_fn_set_status $ac_retval 1686 1687} # ac_fn_c_try_cpp 1688 1689# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1690# ------------------------------------------------------- 1691# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1692# the include files in INCLUDES and setting the cache variable VAR 1693# accordingly. 1694ac_fn_c_check_header_mongrel () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if eval \${$3+:} false; then : 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1699$as_echo_n "checking for $2... " >&6; } 1700if eval \${$3+:} false; then : 1701 $as_echo_n "(cached) " >&6 1702fi 1703eval ac_res=\$$3 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1705$as_echo "$ac_res" >&6; } 1706else 1707 # Is the header compilable? 1708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1709$as_echo_n "checking $2 usability... " >&6; } 1710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713#include <$2> 1714_ACEOF 1715if ac_fn_c_try_compile "$LINENO"; then : 1716 ac_header_compiler=yes 1717else 1718 ac_header_compiler=no 1719fi 1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1722$as_echo "$ac_header_compiler" >&6; } 1723 1724# Is the header present? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1726$as_echo_n "checking $2 presence... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729#include <$2> 1730_ACEOF 1731if ac_fn_c_try_cpp "$LINENO"; then : 1732 ac_header_preproc=yes 1733else 1734 ac_header_preproc=no 1735fi 1736rm -f conftest.err conftest.i conftest.$ac_ext 1737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1738$as_echo "$ac_header_preproc" >&6; } 1739 1740# So? What about this header? 1741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1742 yes:no: ) 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1744$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1746$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1747 ;; 1748 no:yes:* ) 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1750$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1752$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1754$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1756$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1758$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1759 ;; 1760esac 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 eval "$3=\$ac_header_compiler" 1767fi 1768eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770$as_echo "$ac_res" >&6; } 1771fi 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 1774} # ac_fn_c_check_header_mongrel 1775 1776# ac_fn_c_try_run LINENO 1777# ---------------------- 1778# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1779# that executables *can* be run. 1780ac_fn_c_try_run () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 if { { ac_try="$ac_link" 1784case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789$as_echo "$ac_try_echo"; } >&5 1790 (eval "$ac_link") 2>&5 1791 ac_status=$? 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1794 { { case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_try") 2>&5 1801 ac_status=$? 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; }; }; then : 1804 ac_retval=0 1805else 1806 $as_echo "$as_me: program exited with status $ac_status" >&5 1807 $as_echo "$as_me: failed program was:" >&5 1808sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=$ac_status 1811fi 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816} # ac_fn_c_try_run 1817 1818# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1819# ------------------------------------------------------- 1820# Tests whether HEADER exists and can be compiled using the include files in 1821# INCLUDES, setting the cache variable VAR accordingly. 1822ac_fn_c_check_header_compile () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1826$as_echo_n "checking for $2... " >&6; } 1827if eval \${$3+:} false; then : 1828 $as_echo_n "(cached) " >&6 1829else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832$4 1833#include <$2> 1834_ACEOF 1835if ac_fn_c_try_compile "$LINENO"; then : 1836 eval "$3=yes" 1837else 1838 eval "$3=no" 1839fi 1840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1841fi 1842eval ac_res=\$$3 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1844$as_echo "$ac_res" >&6; } 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847} # ac_fn_c_check_header_compile 1848 1849# ac_fn_c_try_link LINENO 1850# ----------------------- 1851# Try to link conftest.$ac_ext, and return whether this succeeded. 1852ac_fn_c_try_link () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 rm -f conftest.$ac_objext conftest$ac_exeext 1856 if { { ac_try="$ac_link" 1857case "(($ac_try" in 1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1859 *) ac_try_echo=$ac_try;; 1860esac 1861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1862$as_echo "$ac_try_echo"; } >&5 1863 (eval "$ac_link") 2>conftest.err 1864 ac_status=$? 1865 if test -s conftest.err; then 1866 grep -v '^ *+' conftest.err >conftest.er1 1867 cat conftest.er1 >&5 1868 mv -f conftest.er1 conftest.err 1869 fi 1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1871 test $ac_status = 0; } && { 1872 test -z "$ac_c_werror_flag" || 1873 test ! -s conftest.err 1874 } && test -s conftest$ac_exeext && { 1875 test "$cross_compiling" = yes || 1876 test -x conftest$ac_exeext 1877 }; then : 1878 ac_retval=0 1879else 1880 $as_echo "$as_me: failed program was:" >&5 1881sed 's/^/| /' conftest.$ac_ext >&5 1882 1883 ac_retval=1 1884fi 1885 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1886 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1887 # interfere with the next link command; also delete a directory that is 1888 # left behind by Apple's compiler. We do this before executing the actions. 1889 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 as_fn_set_status $ac_retval 1892 1893} # ac_fn_c_try_link 1894 1895# ac_fn_cxx_try_compile LINENO 1896# ---------------------------- 1897# Try to compile conftest.$ac_ext, and return whether this succeeded. 1898ac_fn_cxx_try_compile () 1899{ 1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1901 rm -f conftest.$ac_objext 1902 if { { ac_try="$ac_compile" 1903case "(($ac_try" in 1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1905 *) ac_try_echo=$ac_try;; 1906esac 1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1908$as_echo "$ac_try_echo"; } >&5 1909 (eval "$ac_compile") 2>conftest.err 1910 ac_status=$? 1911 if test -s conftest.err; then 1912 grep -v '^ *+' conftest.err >conftest.er1 1913 cat conftest.er1 >&5 1914 mv -f conftest.er1 conftest.err 1915 fi 1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1917 test $ac_status = 0; } && { 1918 test -z "$ac_cxx_werror_flag" || 1919 test ! -s conftest.err 1920 } && test -s conftest.$ac_objext; then : 1921 ac_retval=0 1922else 1923 $as_echo "$as_me: failed program was:" >&5 1924sed 's/^/| /' conftest.$ac_ext >&5 1925 1926 ac_retval=1 1927fi 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 as_fn_set_status $ac_retval 1930 1931} # ac_fn_cxx_try_compile 1932 1933# ac_fn_c_check_func LINENO FUNC VAR 1934# ---------------------------------- 1935# Tests whether FUNC exists, setting the cache variable VAR accordingly 1936ac_fn_c_check_func () 1937{ 1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1940$as_echo_n "checking for $2... " >&6; } 1941if eval \${$3+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943else 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1948#define $2 innocuous_$2 1949 1950/* System header to define __stub macros and hopefully few prototypes, 1951 which can conflict with char $2 (); below. 1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1953 <limits.h> exists even on freestanding compilers. */ 1954 1955#ifdef __STDC__ 1956# include <limits.h> 1957#else 1958# include <assert.h> 1959#endif 1960 1961#undef $2 1962 1963/* Override any GCC internal prototype to avoid an error. 1964 Use char because int might match the return type of a GCC 1965 builtin and then its argument prototype would still apply. */ 1966#ifdef __cplusplus 1967extern "C" 1968#endif 1969char $2 (); 1970/* The GNU C library defines this for functions which it implements 1971 to always fail with ENOSYS. Some functions are actually named 1972 something starting with __ and the normal name is an alias. */ 1973#if defined __stub_$2 || defined __stub___$2 1974choke me 1975#endif 1976 1977int 1978main () 1979{ 1980return $2 (); 1981 ; 1982 return 0; 1983} 1984_ACEOF 1985if ac_fn_c_try_link "$LINENO"; then : 1986 eval "$3=yes" 1987else 1988 eval "$3=no" 1989fi 1990rm -f core conftest.err conftest.$ac_objext \ 1991 conftest$ac_exeext conftest.$ac_ext 1992fi 1993eval ac_res=\$$3 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1995$as_echo "$ac_res" >&6; } 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1997 1998} # ac_fn_c_check_func 1999 2000# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2001# --------------------------------------------- 2002# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2003# accordingly. 2004ac_fn_c_check_decl () 2005{ 2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2007 as_decl_name=`echo $2|sed 's/ *(.*//'` 2008 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2010$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2011if eval \${$3+:} false; then : 2012 $as_echo_n "(cached) " >&6 2013else 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020#ifndef $as_decl_name 2021#ifdef __cplusplus 2022 (void) $as_decl_use; 2023#else 2024 (void) $as_decl_name; 2025#endif 2026#endif 2027 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 eval "$3=yes" 2034else 2035 eval "$3=no" 2036fi 2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2038fi 2039eval ac_res=\$$3 2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2041$as_echo "$ac_res" >&6; } 2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2043 2044} # ac_fn_c_check_decl 2045 2046# ac_fn_cxx_try_cpp LINENO 2047# ------------------------ 2048# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2049ac_fn_cxx_try_cpp () 2050{ 2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2052 if { { ac_try="$ac_cpp conftest.$ac_ext" 2053case "(($ac_try" in 2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2055 *) ac_try_echo=$ac_try;; 2056esac 2057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2058$as_echo "$ac_try_echo"; } >&5 2059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2060 ac_status=$? 2061 if test -s conftest.err; then 2062 grep -v '^ *+' conftest.err >conftest.er1 2063 cat conftest.er1 >&5 2064 mv -f conftest.er1 conftest.err 2065 fi 2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2067 test $ac_status = 0; } > conftest.i && { 2068 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2069 test ! -s conftest.err 2070 }; then : 2071 ac_retval=0 2072else 2073 $as_echo "$as_me: failed program was:" >&5 2074sed 's/^/| /' conftest.$ac_ext >&5 2075 2076 ac_retval=1 2077fi 2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2079 as_fn_set_status $ac_retval 2080 2081} # ac_fn_cxx_try_cpp 2082 2083# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2084# --------------------------------------------------------- 2085# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2086# the include files in INCLUDES and setting the cache variable VAR 2087# accordingly. 2088ac_fn_cxx_check_header_mongrel () 2089{ 2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2091 if eval \${$3+:} false; then : 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2093$as_echo_n "checking for $2... " >&6; } 2094if eval \${$3+:} false; then : 2095 $as_echo_n "(cached) " >&6 2096fi 2097eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099$as_echo "$ac_res" >&6; } 2100else 2101 # Is the header compilable? 2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2103$as_echo_n "checking $2 usability... " >&6; } 2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105/* end confdefs.h. */ 2106$4 2107#include <$2> 2108_ACEOF 2109if ac_fn_cxx_try_compile "$LINENO"; then : 2110 ac_header_compiler=yes 2111else 2112 ac_header_compiler=no 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2116$as_echo "$ac_header_compiler" >&6; } 2117 2118# Is the header present? 2119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2120$as_echo_n "checking $2 presence... " >&6; } 2121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2122/* end confdefs.h. */ 2123#include <$2> 2124_ACEOF 2125if ac_fn_cxx_try_cpp "$LINENO"; then : 2126 ac_header_preproc=yes 2127else 2128 ac_header_preproc=no 2129fi 2130rm -f conftest.err conftest.i conftest.$ac_ext 2131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2132$as_echo "$ac_header_preproc" >&6; } 2133 2134# So? What about this header? 2135case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2136 yes:no: ) 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2138$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2140$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2141 ;; 2142 no:yes:* ) 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2144$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2146$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2148$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2150$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2152$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2153 ;; 2154esac 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2156$as_echo_n "checking for $2... " >&6; } 2157if eval \${$3+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159else 2160 eval "$3=\$ac_header_compiler" 2161fi 2162eval ac_res=\$$3 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2164$as_echo "$ac_res" >&6; } 2165fi 2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2167 2168} # ac_fn_cxx_check_header_mongrel 2169 2170# ac_fn_cxx_try_link LINENO 2171# ------------------------- 2172# Try to link conftest.$ac_ext, and return whether this succeeded. 2173ac_fn_cxx_try_link () 2174{ 2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2176 rm -f conftest.$ac_objext conftest$ac_exeext 2177 if { { ac_try="$ac_link" 2178case "(($ac_try" in 2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2180 *) ac_try_echo=$ac_try;; 2181esac 2182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2183$as_echo "$ac_try_echo"; } >&5 2184 (eval "$ac_link") 2>conftest.err 2185 ac_status=$? 2186 if test -s conftest.err; then 2187 grep -v '^ *+' conftest.err >conftest.er1 2188 cat conftest.er1 >&5 2189 mv -f conftest.er1 conftest.err 2190 fi 2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2192 test $ac_status = 0; } && { 2193 test -z "$ac_cxx_werror_flag" || 2194 test ! -s conftest.err 2195 } && test -s conftest$ac_exeext && { 2196 test "$cross_compiling" = yes || 2197 test -x conftest$ac_exeext 2198 }; then : 2199 ac_retval=0 2200else 2201 $as_echo "$as_me: failed program was:" >&5 2202sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 ac_retval=1 2205fi 2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2208 # interfere with the next link command; also delete a directory that is 2209 # left behind by Apple's compiler. We do this before executing the actions. 2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2212 as_fn_set_status $ac_retval 2213 2214} # ac_fn_cxx_try_link 2215 2216# ac_fn_cxx_check_func LINENO FUNC VAR 2217# ------------------------------------ 2218# Tests whether FUNC exists, setting the cache variable VAR accordingly 2219ac_fn_cxx_check_func () 2220{ 2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2223$as_echo_n "checking for $2... " >&6; } 2224if eval \${$3+:} false; then : 2225 $as_echo_n "(cached) " >&6 2226else 2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2230 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2231#define $2 innocuous_$2 2232 2233/* System header to define __stub macros and hopefully few prototypes, 2234 which can conflict with char $2 (); below. 2235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2236 <limits.h> exists even on freestanding compilers. */ 2237 2238#ifdef __STDC__ 2239# include <limits.h> 2240#else 2241# include <assert.h> 2242#endif 2243 2244#undef $2 2245 2246/* Override any GCC internal prototype to avoid an error. 2247 Use char because int might match the return type of a GCC 2248 builtin and then its argument prototype would still apply. */ 2249#ifdef __cplusplus 2250extern "C" 2251#endif 2252char $2 (); 2253/* The GNU C library defines this for functions which it implements 2254 to always fail with ENOSYS. Some functions are actually named 2255 something starting with __ and the normal name is an alias. */ 2256#if defined __stub_$2 || defined __stub___$2 2257choke me 2258#endif 2259 2260int 2261main () 2262{ 2263return $2 (); 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_cxx_try_link "$LINENO"; then : 2269 eval "$3=yes" 2270else 2271 eval "$3=no" 2272fi 2273rm -f core conftest.err conftest.$ac_objext \ 2274 conftest$ac_exeext conftest.$ac_ext 2275fi 2276eval ac_res=\$$3 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2278$as_echo "$ac_res" >&6; } 2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2280 2281} # ac_fn_cxx_check_func 2282 2283# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2284# ----------------------------------------------- 2285# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2286# accordingly. 2287ac_fn_cxx_check_decl () 2288{ 2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2290 as_decl_name=`echo $2|sed 's/ *(.*//'` 2291 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2293$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2294if eval \${$3+:} false; then : 2295 $as_echo_n "(cached) " >&6 2296else 2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2298/* end confdefs.h. */ 2299$4 2300int 2301main () 2302{ 2303#ifndef $as_decl_name 2304#ifdef __cplusplus 2305 (void) $as_decl_use; 2306#else 2307 (void) $as_decl_name; 2308#endif 2309#endif 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_cxx_try_compile "$LINENO"; then : 2316 eval "$3=yes" 2317else 2318 eval "$3=no" 2319fi 2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2321fi 2322eval ac_res=\$$3 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2324$as_echo "$ac_res" >&6; } 2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2326 2327} # ac_fn_cxx_check_decl 2328cat >config.log <<_ACEOF 2329This file contains any messages produced by compilers while 2330running configure, to aid debugging if configure makes a mistake. 2331 2332It was created by gold $as_me 0.1, which was 2333generated by GNU Autoconf 2.69. Invocation command line was 2334 2335 $ $0 $@ 2336 2337_ACEOF 2338exec 5>>config.log 2339{ 2340cat <<_ASUNAME 2341## --------- ## 2342## Platform. ## 2343## --------- ## 2344 2345hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2346uname -m = `(uname -m) 2>/dev/null || echo unknown` 2347uname -r = `(uname -r) 2>/dev/null || echo unknown` 2348uname -s = `(uname -s) 2>/dev/null || echo unknown` 2349uname -v = `(uname -v) 2>/dev/null || echo unknown` 2350 2351/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2352/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2353 2354/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2355/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2356/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2357/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2358/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2359/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2360/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2361 2362_ASUNAME 2363 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 $as_echo "PATH: $as_dir" 2370 done 2371IFS=$as_save_IFS 2372 2373} >&5 2374 2375cat >&5 <<_ACEOF 2376 2377 2378## ----------- ## 2379## Core tests. ## 2380## ----------- ## 2381 2382_ACEOF 2383 2384 2385# Keep a trace of the command line. 2386# Strip out --no-create and --no-recursion so they do not pile up. 2387# Strip out --silent because we don't want to record it for future runs. 2388# Also quote any args containing shell meta-characters. 2389# Make two passes to allow for proper duplicate-argument suppression. 2390ac_configure_args= 2391ac_configure_args0= 2392ac_configure_args1= 2393ac_must_keep_next=false 2394for ac_pass in 1 2 2395do 2396 for ac_arg 2397 do 2398 case $ac_arg in 2399 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2401 | -silent | --silent | --silen | --sile | --sil) 2402 continue ;; 2403 *\'*) 2404 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2405 esac 2406 case $ac_pass in 2407 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2408 2) 2409 as_fn_append ac_configure_args1 " '$ac_arg'" 2410 if test $ac_must_keep_next = true; then 2411 ac_must_keep_next=false # Got value, back to normal. 2412 else 2413 case $ac_arg in 2414 *=* | --config-cache | -C | -disable-* | --disable-* \ 2415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2417 | -with-* | --with-* | -without-* | --without-* | --x) 2418 case "$ac_configure_args0 " in 2419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2420 esac 2421 ;; 2422 -* ) ac_must_keep_next=true ;; 2423 esac 2424 fi 2425 as_fn_append ac_configure_args " '$ac_arg'" 2426 ;; 2427 esac 2428 done 2429done 2430{ ac_configure_args0=; unset ac_configure_args0;} 2431{ ac_configure_args1=; unset ac_configure_args1;} 2432 2433# When interrupted or exit'd, cleanup temporary files, and complete 2434# config.log. We remove comments because anyway the quotes in there 2435# would cause problems or look ugly. 2436# WARNING: Use '\'' to represent an apostrophe within the trap. 2437# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2438trap 'exit_status=$? 2439 # Save into config.log some information that might help in debugging. 2440 { 2441 echo 2442 2443 $as_echo "## ---------------- ## 2444## Cache variables. ## 2445## ---------------- ##" 2446 echo 2447 # The following way of writing the cache mishandles newlines in values, 2448( 2449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2450 eval ac_val=\$$ac_var 2451 case $ac_val in #( 2452 *${as_nl}*) 2453 case $ac_var in #( 2454 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2455$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2456 esac 2457 case $ac_var in #( 2458 _ | IFS | as_nl) ;; #( 2459 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2460 *) { eval $ac_var=; unset $ac_var;} ;; 2461 esac ;; 2462 esac 2463 done 2464 (set) 2>&1 | 2465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2466 *${as_nl}ac_space=\ *) 2467 sed -n \ 2468 "s/'\''/'\''\\\\'\'''\''/g; 2469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2470 ;; #( 2471 *) 2472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2473 ;; 2474 esac | 2475 sort 2476) 2477 echo 2478 2479 $as_echo "## ----------------- ## 2480## Output variables. ## 2481## ----------------- ##" 2482 echo 2483 for ac_var in $ac_subst_vars 2484 do 2485 eval ac_val=\$$ac_var 2486 case $ac_val in 2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2488 esac 2489 $as_echo "$ac_var='\''$ac_val'\''" 2490 done | sort 2491 echo 2492 2493 if test -n "$ac_subst_files"; then 2494 $as_echo "## ------------------- ## 2495## File substitutions. ## 2496## ------------------- ##" 2497 echo 2498 for ac_var in $ac_subst_files 2499 do 2500 eval ac_val=\$$ac_var 2501 case $ac_val in 2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2503 esac 2504 $as_echo "$ac_var='\''$ac_val'\''" 2505 done | sort 2506 echo 2507 fi 2508 2509 if test -s confdefs.h; then 2510 $as_echo "## ----------- ## 2511## confdefs.h. ## 2512## ----------- ##" 2513 echo 2514 cat confdefs.h 2515 echo 2516 fi 2517 test "$ac_signal" != 0 && 2518 $as_echo "$as_me: caught signal $ac_signal" 2519 $as_echo "$as_me: exit $exit_status" 2520 } >&5 2521 rm -f core *.core core.conftest.* && 2522 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2523 exit $exit_status 2524' 0 2525for ac_signal in 1 2 13 15; do 2526 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2527done 2528ac_signal=0 2529 2530# confdefs.h avoids OS command line length limits that DEFS can exceed. 2531rm -f -r conftest* confdefs.h 2532 2533$as_echo "/* confdefs.h */" > confdefs.h 2534 2535# Predefined preprocessor variables. 2536 2537cat >>confdefs.h <<_ACEOF 2538#define PACKAGE_NAME "$PACKAGE_NAME" 2539_ACEOF 2540 2541cat >>confdefs.h <<_ACEOF 2542#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2543_ACEOF 2544 2545cat >>confdefs.h <<_ACEOF 2546#define PACKAGE_VERSION "$PACKAGE_VERSION" 2547_ACEOF 2548 2549cat >>confdefs.h <<_ACEOF 2550#define PACKAGE_STRING "$PACKAGE_STRING" 2551_ACEOF 2552 2553cat >>confdefs.h <<_ACEOF 2554#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2555_ACEOF 2556 2557cat >>confdefs.h <<_ACEOF 2558#define PACKAGE_URL "$PACKAGE_URL" 2559_ACEOF 2560 2561 2562# Let the site file select an alternate cache file if it wants to. 2563# Prefer an explicitly selected file to automatically selected ones. 2564ac_site_file1=NONE 2565ac_site_file2=NONE 2566if test -n "$CONFIG_SITE"; then 2567 # We do not want a PATH search for config.site. 2568 case $CONFIG_SITE in #(( 2569 -*) ac_site_file1=./$CONFIG_SITE;; 2570 */*) ac_site_file1=$CONFIG_SITE;; 2571 *) ac_site_file1=./$CONFIG_SITE;; 2572 esac 2573elif test "x$prefix" != xNONE; then 2574 ac_site_file1=$prefix/share/config.site 2575 ac_site_file2=$prefix/etc/config.site 2576else 2577 ac_site_file1=$ac_default_prefix/share/config.site 2578 ac_site_file2=$ac_default_prefix/etc/config.site 2579fi 2580for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2581do 2582 test "x$ac_site_file" = xNONE && continue 2583 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2585$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2586 sed 's/^/| /' "$ac_site_file" >&5 2587 . "$ac_site_file" \ 2588 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590as_fn_error $? "failed to load site script $ac_site_file 2591See \`config.log' for more details" "$LINENO" 5; } 2592 fi 2593done 2594 2595if test -r "$cache_file"; then 2596 # Some versions of bash will fail to source /dev/null (special files 2597 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2598 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2600$as_echo "$as_me: loading cache $cache_file" >&6;} 2601 case $cache_file in 2602 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2603 *) . "./$cache_file";; 2604 esac 2605 fi 2606else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2608$as_echo "$as_me: creating cache $cache_file" >&6;} 2609 >$cache_file 2610fi 2611 2612# Check that the precious variables saved in the cache have kept the same 2613# value. 2614ac_cache_corrupted=false 2615for ac_var in $ac_precious_vars; do 2616 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2617 eval ac_new_set=\$ac_env_${ac_var}_set 2618 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2619 eval ac_new_val=\$ac_env_${ac_var}_value 2620 case $ac_old_set,$ac_new_set in 2621 set,) 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2623$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2624 ac_cache_corrupted=: ;; 2625 ,set) 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2627$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2628 ac_cache_corrupted=: ;; 2629 ,);; 2630 *) 2631 if test "x$ac_old_val" != "x$ac_new_val"; then 2632 # differences in whitespace do not lead to failure. 2633 ac_old_val_w=`echo x $ac_old_val` 2634 ac_new_val_w=`echo x $ac_new_val` 2635 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2637$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2638 ac_cache_corrupted=: 2639 else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2641$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2642 eval $ac_var=\$ac_old_val 2643 fi 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2645$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2647$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2648 fi;; 2649 esac 2650 # Pass precious variables to config.status. 2651 if test "$ac_new_set" = set; then 2652 case $ac_new_val in 2653 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2654 *) ac_arg=$ac_var=$ac_new_val ;; 2655 esac 2656 case " $ac_configure_args " in 2657 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2658 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2659 esac 2660 fi 2661done 2662if $ac_cache_corrupted; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2666$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2667 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2668fi 2669## -------------------- ## 2670## Main body of script. ## 2671## -------------------- ## 2672 2673ac_ext=c 2674ac_cpp='$CPP $CPPFLAGS' 2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2677ac_compiler_gnu=$ac_cv_c_compiler_gnu 2678 2679 2680 2681 2682 2683 2684 2685ac_aux_dir= 2686for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2687 if test -f "$ac_dir/install-sh"; then 2688 ac_aux_dir=$ac_dir 2689 ac_install_sh="$ac_aux_dir/install-sh -c" 2690 break 2691 elif test -f "$ac_dir/install.sh"; then 2692 ac_aux_dir=$ac_dir 2693 ac_install_sh="$ac_aux_dir/install.sh -c" 2694 break 2695 elif test -f "$ac_dir/shtool"; then 2696 ac_aux_dir=$ac_dir 2697 ac_install_sh="$ac_aux_dir/shtool install -c" 2698 break 2699 fi 2700done 2701if test -z "$ac_aux_dir"; then 2702 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2703fi 2704 2705# These three variables are undocumented and unsupported, 2706# and are intended to be withdrawn in a future Autoconf release. 2707# They can cause serious problems if a builder's source tree is in a directory 2708# whose full name contains unusual characters. 2709ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2710ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2711ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2712 2713 2714# Make sure we can run config.sub. 2715$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2716 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2717 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2719$as_echo_n "checking build system type... " >&6; } 2720if ${ac_cv_build+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 ac_build_alias=$build_alias 2724test "x$ac_build_alias" = x && 2725 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2726test "x$ac_build_alias" = x && 2727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2728ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2729 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2730 2731fi 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2733$as_echo "$ac_cv_build" >&6; } 2734case $ac_cv_build in 2735*-*-*) ;; 2736*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2737esac 2738build=$ac_cv_build 2739ac_save_IFS=$IFS; IFS='-' 2740set x $ac_cv_build 2741shift 2742build_cpu=$1 2743build_vendor=$2 2744shift; shift 2745# Remember, the first character of IFS is used to create $*, 2746# except with old shells: 2747build_os=$* 2748IFS=$ac_save_IFS 2749case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2750 2751 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2753$as_echo_n "checking host system type... " >&6; } 2754if ${ac_cv_host+:} false; then : 2755 $as_echo_n "(cached) " >&6 2756else 2757 if test "x$host_alias" = x; then 2758 ac_cv_host=$ac_cv_build 2759else 2760 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2762fi 2763 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2766$as_echo "$ac_cv_host" >&6; } 2767case $ac_cv_host in 2768*-*-*) ;; 2769*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2770esac 2771host=$ac_cv_host 2772ac_save_IFS=$IFS; IFS='-' 2773set x $ac_cv_host 2774shift 2775host_cpu=$1 2776host_vendor=$2 2777shift; shift 2778# Remember, the first character of IFS is used to create $*, 2779# except with old shells: 2780host_os=$* 2781IFS=$ac_save_IFS 2782case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2783 2784 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2786$as_echo_n "checking target system type... " >&6; } 2787if ${ac_cv_target+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 if test "x$target_alias" = x; then 2791 ac_cv_target=$ac_cv_host 2792else 2793 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2795fi 2796 2797fi 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2799$as_echo "$ac_cv_target" >&6; } 2800case $ac_cv_target in 2801*-*-*) ;; 2802*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2803esac 2804target=$ac_cv_target 2805ac_save_IFS=$IFS; IFS='-' 2806set x $ac_cv_target 2807shift 2808target_cpu=$1 2809target_vendor=$2 2810shift; shift 2811# Remember, the first character of IFS is used to create $*, 2812# except with old shells: 2813target_os=$* 2814IFS=$ac_save_IFS 2815case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2816 2817 2818# The aliases save the names the user supplied, while $host etc. 2819# will get canonicalized. 2820test -n "$target_alias" && 2821 test "$program_prefix$program_suffix$program_transform_name" = \ 2822 NONENONEs,x,x, && 2823 program_prefix=${target_alias}- 2824 2825am__api_version='1.15' 2826 2827# Find a good install program. We prefer a C program (faster), 2828# so one script is as good as another. But avoid the broken or 2829# incompatible versions: 2830# SysV /etc/install, /usr/sbin/install 2831# SunOS /usr/etc/install 2832# IRIX /sbin/install 2833# AIX /bin/install 2834# AmigaOS /C/install, which installs bootblocks on floppy discs 2835# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2836# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2837# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2838# OS/2's system install, which has a completely different semantic 2839# ./install, which can be erroneously created by make from ./install.sh. 2840# Reject install programs that cannot install multiple files. 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2842$as_echo_n "checking for a BSD-compatible install... " >&6; } 2843if test -z "$INSTALL"; then 2844if ${ac_cv_path_install+:} false; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 test -z "$as_dir" && as_dir=. 2852 # Account for people who put trailing slashes in PATH elements. 2853case $as_dir/ in #(( 2854 ./ | .// | /[cC]/* | \ 2855 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2856 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2857 /usr/ucb/* ) ;; 2858 *) 2859 # OSF1 and SCO ODT 3.0 have their own names for install. 2860 # Don't use installbsd from OSF since it installs stuff as root 2861 # by default. 2862 for ac_prog in ginstall scoinst install; do 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2865 if test $ac_prog = install && 2866 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2867 # AIX install. It has an incompatible calling convention. 2868 : 2869 elif test $ac_prog = install && 2870 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2871 # program-specific install script used by HP pwplus--don't use. 2872 : 2873 else 2874 rm -rf conftest.one conftest.two conftest.dir 2875 echo one > conftest.one 2876 echo two > conftest.two 2877 mkdir conftest.dir 2878 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2879 test -s conftest.one && test -s conftest.two && 2880 test -s conftest.dir/conftest.one && 2881 test -s conftest.dir/conftest.two 2882 then 2883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2884 break 3 2885 fi 2886 fi 2887 fi 2888 done 2889 done 2890 ;; 2891esac 2892 2893 done 2894IFS=$as_save_IFS 2895 2896rm -rf conftest.one conftest.two conftest.dir 2897 2898fi 2899 if test "${ac_cv_path_install+set}" = set; then 2900 INSTALL=$ac_cv_path_install 2901 else 2902 # As a last resort, use the slow shell script. Don't cache a 2903 # value for INSTALL within a source directory, because that will 2904 # break other packages using the cache if that directory is 2905 # removed, or if the value is a relative name. 2906 INSTALL=$ac_install_sh 2907 fi 2908fi 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2910$as_echo "$INSTALL" >&6; } 2911 2912# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2913# It thinks the first close brace ends the variable substitution. 2914test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2915 2916test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2917 2918test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2919 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2921$as_echo_n "checking whether build environment is sane... " >&6; } 2922# Reject unsafe characters in $srcdir or the absolute working directory 2923# name. Accept space and tab only in the latter. 2924am_lf=' 2925' 2926case `pwd` in 2927 *[\\\"\#\$\&\'\`$am_lf]*) 2928 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2929esac 2930case $srcdir in 2931 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2932 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2933esac 2934 2935# Do 'set' in a subshell so we don't clobber the current shell's 2936# arguments. Must try -L first in case configure is actually a 2937# symlink; some systems play weird games with the mod time of symlinks 2938# (eg FreeBSD returns the mod time of the symlink's containing 2939# directory). 2940if ( 2941 am_has_slept=no 2942 for am_try in 1 2; do 2943 echo "timestamp, slept: $am_has_slept" > conftest.file 2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2945 if test "$*" = "X"; then 2946 # -L didn't work. 2947 set X `ls -t "$srcdir/configure" conftest.file` 2948 fi 2949 if test "$*" != "X $srcdir/configure conftest.file" \ 2950 && test "$*" != "X conftest.file $srcdir/configure"; then 2951 2952 # If neither matched, then we have a broken ls. This can happen 2953 # if, for instance, CONFIG_SHELL is bash and it inherits a 2954 # broken ls alias from the environment. This has actually 2955 # happened. Such a system could not be considered "sane". 2956 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2957 alias in your environment" "$LINENO" 5 2958 fi 2959 if test "$2" = conftest.file || test $am_try -eq 2; then 2960 break 2961 fi 2962 # Just in case. 2963 sleep 1 2964 am_has_slept=yes 2965 done 2966 test "$2" = conftest.file 2967 ) 2968then 2969 # Ok. 2970 : 2971else 2972 as_fn_error $? "newly created file is older than distributed files! 2973Check your system clock" "$LINENO" 5 2974fi 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2976$as_echo "yes" >&6; } 2977# If we didn't sleep, we still need to ensure time stamps of config.status and 2978# generated files are strictly newer. 2979am_sleep_pid= 2980if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2981 ( sleep 1 ) & 2982 am_sleep_pid=$! 2983fi 2984 2985rm -f conftest.file 2986 2987test "$program_prefix" != NONE && 2988 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2989# Use a double $ so make ignores it. 2990test "$program_suffix" != NONE && 2991 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2992# Double any \ or $. 2993# By default was `s,x,x', remove it if useless. 2994ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2995program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2996 2997# Expand $ac_aux_dir to an absolute path. 2998am_aux_dir=`cd "$ac_aux_dir" && pwd` 2999 3000if test x"${MISSING+set}" != xset; then 3001 case $am_aux_dir in 3002 *\ * | *\ *) 3003 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3004 *) 3005 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3006 esac 3007fi 3008# Use eval to expand $SHELL 3009if eval "$MISSING --is-lightweight"; then 3010 am_missing_run="$MISSING " 3011else 3012 am_missing_run= 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3014$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3015fi 3016 3017if test x"${install_sh+set}" != xset; then 3018 case $am_aux_dir in 3019 *\ * | *\ *) 3020 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3021 *) 3022 install_sh="\${SHELL} $am_aux_dir/install-sh" 3023 esac 3024fi 3025 3026# Installed binaries are usually stripped using 'strip' when the user 3027# run "make install-strip". However 'strip' might not be the right 3028# tool to use in cross-compilation environments, therefore Automake 3029# will honor the 'STRIP' environment variable to overrule this program. 3030if test "$cross_compiling" != no; then 3031 if test -n "$ac_tool_prefix"; then 3032 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3033set dummy ${ac_tool_prefix}strip; ac_word=$2 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035$as_echo_n "checking for $ac_word... " >&6; } 3036if ${ac_cv_prog_STRIP+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 if test -n "$STRIP"; then 3040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059STRIP=$ac_cv_prog_STRIP 3060if test -n "$STRIP"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3062$as_echo "$STRIP" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069fi 3070if test -z "$ac_cv_prog_STRIP"; then 3071 ac_ct_STRIP=$STRIP 3072 # Extract the first word of "strip", so it can be a program name with args. 3073set dummy strip; ac_word=$2 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3075$as_echo_n "checking for $ac_word... " >&6; } 3076if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078else 3079 if test -n "$ac_ct_STRIP"; then 3080 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3081else 3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3083for as_dir in $PATH 3084do 3085 IFS=$as_save_IFS 3086 test -z "$as_dir" && as_dir=. 3087 for ac_exec_ext in '' $ac_executable_extensions; do 3088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3089 ac_cv_prog_ac_ct_STRIP="strip" 3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 break 2 3092 fi 3093done 3094 done 3095IFS=$as_save_IFS 3096 3097fi 3098fi 3099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3100if test -n "$ac_ct_STRIP"; then 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3102$as_echo "$ac_ct_STRIP" >&6; } 3103else 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105$as_echo "no" >&6; } 3106fi 3107 3108 if test "x$ac_ct_STRIP" = x; then 3109 STRIP=":" 3110 else 3111 case $cross_compiling:$ac_tool_warned in 3112yes:) 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3115ac_tool_warned=yes ;; 3116esac 3117 STRIP=$ac_ct_STRIP 3118 fi 3119else 3120 STRIP="$ac_cv_prog_STRIP" 3121fi 3122 3123fi 3124INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3125 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3127$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3128if test -z "$MKDIR_P"; then 3129 if ${ac_cv_path_mkdir+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3134do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 for ac_prog in mkdir gmkdir; do 3138 for ac_exec_ext in '' $ac_executable_extensions; do 3139 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3140 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3141 'mkdir (GNU coreutils) '* | \ 3142 'mkdir (coreutils) '* | \ 3143 'mkdir (fileutils) '4.1*) 3144 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3145 break 3;; 3146 esac 3147 done 3148 done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153 3154 test -d ./--version && rmdir ./--version 3155 if test "${ac_cv_path_mkdir+set}" = set; then 3156 MKDIR_P="$ac_cv_path_mkdir -p" 3157 else 3158 # As a last resort, use the slow shell script. Don't cache a 3159 # value for MKDIR_P within a source directory, because that will 3160 # break other packages using the cache if that directory is 3161 # removed, or if the value is a relative name. 3162 MKDIR_P="$ac_install_sh -d" 3163 fi 3164fi 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3166$as_echo "$MKDIR_P" >&6; } 3167 3168for ac_prog in gawk mawk nawk awk 3169do 3170 # Extract the first word of "$ac_prog", so it can be a program name with args. 3171set dummy $ac_prog; ac_word=$2 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3173$as_echo_n "checking for $ac_word... " >&6; } 3174if ${ac_cv_prog_AWK+:} false; then : 3175 $as_echo_n "(cached) " >&6 3176else 3177 if test -n "$AWK"; then 3178 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3179else 3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_exec_ext in '' $ac_executable_extensions; do 3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3187 ac_cv_prog_AWK="$ac_prog" 3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3189 break 2 3190 fi 3191done 3192 done 3193IFS=$as_save_IFS 3194 3195fi 3196fi 3197AWK=$ac_cv_prog_AWK 3198if test -n "$AWK"; then 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3200$as_echo "$AWK" >&6; } 3201else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203$as_echo "no" >&6; } 3204fi 3205 3206 3207 test -n "$AWK" && break 3208done 3209 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3211$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3212set x ${MAKE-make} 3213ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3214if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3215 $as_echo_n "(cached) " >&6 3216else 3217 cat >conftest.make <<\_ACEOF 3218SHELL = /bin/sh 3219all: 3220 @echo '@@@%%%=$(MAKE)=@@@%%%' 3221_ACEOF 3222# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3223case `${MAKE-make} -f conftest.make 2>/dev/null` in 3224 *@@@%%%=?*=@@@%%%*) 3225 eval ac_cv_prog_make_${ac_make}_set=yes;; 3226 *) 3227 eval ac_cv_prog_make_${ac_make}_set=no;; 3228esac 3229rm -f conftest.make 3230fi 3231if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3233$as_echo "yes" >&6; } 3234 SET_MAKE= 3235else 3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237$as_echo "no" >&6; } 3238 SET_MAKE="MAKE=${MAKE-make}" 3239fi 3240 3241rm -rf .tst 2>/dev/null 3242mkdir .tst 2>/dev/null 3243if test -d .tst; then 3244 am__leading_dot=. 3245else 3246 am__leading_dot=_ 3247fi 3248rmdir .tst 2>/dev/null 3249 3250# Check whether --enable-silent-rules was given. 3251if test "${enable_silent_rules+set}" = set; then : 3252 enableval=$enable_silent_rules; 3253fi 3254 3255case $enable_silent_rules in # ((( 3256 yes) AM_DEFAULT_VERBOSITY=0;; 3257 no) AM_DEFAULT_VERBOSITY=1;; 3258 *) AM_DEFAULT_VERBOSITY=1;; 3259esac 3260am_make=${MAKE-make} 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3262$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3263if ${am_cv_make_support_nested_variables+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 if $as_echo 'TRUE=$(BAR$(V)) 3267BAR0=false 3268BAR1=true 3269V=1 3270am__doit: 3271 @$(TRUE) 3272.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3273 am_cv_make_support_nested_variables=yes 3274else 3275 am_cv_make_support_nested_variables=no 3276fi 3277fi 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3279$as_echo "$am_cv_make_support_nested_variables" >&6; } 3280if test $am_cv_make_support_nested_variables = yes; then 3281 AM_V='$(V)' 3282 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3283else 3284 AM_V=$AM_DEFAULT_VERBOSITY 3285 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3286fi 3287AM_BACKSLASH='\' 3288 3289if test "`cd $srcdir && pwd`" != "`pwd`"; then 3290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3291 # is not polluted with repeated "-I." 3292 am__isrc=' -I$(srcdir)' 3293 # test to see if srcdir already configured 3294 if test -f $srcdir/config.status; then 3295 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3296 fi 3297fi 3298 3299# test whether we have cygpath 3300if test -z "$CYGPATH_W"; then 3301 if (cygpath --version) >/dev/null 2>/dev/null; then 3302 CYGPATH_W='cygpath -w' 3303 else 3304 CYGPATH_W=echo 3305 fi 3306fi 3307 3308 3309# Define the identity of the package. 3310 PACKAGE='gold' 3311 VERSION='0.1' 3312 3313 3314cat >>confdefs.h <<_ACEOF 3315#define PACKAGE "$PACKAGE" 3316_ACEOF 3317 3318 3319cat >>confdefs.h <<_ACEOF 3320#define VERSION "$VERSION" 3321_ACEOF 3322 3323# Some tools Automake needs. 3324 3325ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3326 3327 3328AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3329 3330 3331AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3332 3333 3334AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3335 3336 3337MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3338 3339# For better backward compatibility. To be removed once Automake 1.9.x 3340# dies out for good. For more background, see: 3341# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3342# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3343mkdir_p='$(MKDIR_P)' 3344 3345# We need awk for the "check" target (and possibly the TAP driver). The 3346# system "awk" is bad on some platforms. 3347# Always define AMTAR for backward compatibility. Yes, it's still used 3348# in the wild :-( We should find a proper way to deprecate it ... 3349AMTAR='$${TAR-tar}' 3350 3351 3352# We'll loop over all known methods to create a tar archive until one works. 3353_am_tools='gnutar pax cpio none' 3354 3355am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3356 3357 3358 3359 3360 3361 3362# POSIX will say in a future version that running "rm -f" with no argument 3363# is OK; and we want to be able to make that assumption in our Makefile 3364# recipes. So use an aggressive probe to check that the usage we want is 3365# actually supported "in the wild" to an acceptable degree. 3366# See automake bug#10828. 3367# To make any issue more visible, cause the running configure to be aborted 3368# by default if the 'rm' program in use doesn't match our expectations; the 3369# user can still override this though. 3370if rm -f && rm -fr && rm -rf; then : OK; else 3371 cat >&2 <<'END' 3372Oops! 3373 3374Your 'rm' program seems unable to run without file operands specified 3375on the command line, even when the '-f' option is present. This is contrary 3376to the behaviour of most rm programs out there, and not conforming with 3377the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3378 3379Please tell bug-automake@gnu.org about your system, including the value 3380of your $PATH and any error possibly output before this message. This 3381can help us improve future automake versions. 3382 3383END 3384 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3385 echo 'Configuration will proceed anyway, since you have set the' >&2 3386 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3387 echo >&2 3388 else 3389 cat >&2 <<'END' 3390Aborting the configuration process, to ensure you take notice of the issue. 3391 3392You can download and install GNU coreutils to get an 'rm' implementation 3393that behaves properly: <http://www.gnu.org/software/coreutils/>. 3394 3395If you want to complete the configuration process using your problematic 3396'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3397to "yes", and re-run configure. 3398 3399END 3400 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3401 fi 3402fi 3403 3404 3405ac_config_headers="$ac_config_headers config.h:config.in" 3406 3407 3408DEPDIR="${am__leading_dot}deps" 3409 3410ac_config_commands="$ac_config_commands depfiles" 3411 3412 3413am_make=${MAKE-make} 3414cat > confinc << 'END' 3415am__doit: 3416 @echo this is the am__doit target 3417.PHONY: am__doit 3418END 3419# If we don't find an include directive, just comment out the code. 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3421$as_echo_n "checking for style of include used by $am_make... " >&6; } 3422am__include="#" 3423am__quote= 3424_am_result=none 3425# First try GNU make style include. 3426echo "include confinc" > confmf 3427# Ignore all kinds of additional output from 'make'. 3428case `$am_make -s -f confmf 2> /dev/null` in #( 3429*the\ am__doit\ target*) 3430 am__include=include 3431 am__quote= 3432 _am_result=GNU 3433 ;; 3434esac 3435# Now try BSD make style include. 3436if test "$am__include" = "#"; then 3437 echo '.include "confinc"' > confmf 3438 case `$am_make -s -f confmf 2> /dev/null` in #( 3439 *the\ am__doit\ target*) 3440 am__include=.include 3441 am__quote="\"" 3442 _am_result=BSD 3443 ;; 3444 esac 3445fi 3446 3447 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3449$as_echo "$_am_result" >&6; } 3450rm -f confinc confmf 3451 3452# Check whether --enable-dependency-tracking was given. 3453if test "${enable_dependency_tracking+set}" = set; then : 3454 enableval=$enable_dependency_tracking; 3455fi 3456 3457if test "x$enable_dependency_tracking" != xno; then 3458 am_depcomp="$ac_aux_dir/depcomp" 3459 AMDEPBACKSLASH='\' 3460 am__nodep='_no' 3461fi 3462 if test "x$enable_dependency_tracking" != xno; then 3463 AMDEP_TRUE= 3464 AMDEP_FALSE='#' 3465else 3466 AMDEP_TRUE='#' 3467 AMDEP_FALSE= 3468fi 3469 3470 3471ac_ext=c 3472ac_cpp='$CPP $CPPFLAGS' 3473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3475ac_compiler_gnu=$ac_cv_c_compiler_gnu 3476if test -n "$ac_tool_prefix"; then 3477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3478set dummy ${ac_tool_prefix}gcc; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3488for as_dir in $PATH 3489do 3490 IFS=$as_save_IFS 3491 test -z "$as_dir" && as_dir=. 3492 for ac_exec_ext in '' $ac_executable_extensions; do 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3494 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3496 break 2 3497 fi 3498done 3499 done 3500IFS=$as_save_IFS 3501 3502fi 3503fi 3504CC=$ac_cv_prog_CC 3505if test -n "$CC"; then 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3507$as_echo "$CC" >&6; } 3508else 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3510$as_echo "no" >&6; } 3511fi 3512 3513 3514fi 3515if test -z "$ac_cv_prog_CC"; then 3516 ac_ct_CC=$CC 3517 # Extract the first word of "gcc", so it can be a program name with args. 3518set dummy gcc; ac_word=$2 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3520$as_echo_n "checking for $ac_word... " >&6; } 3521if ${ac_cv_prog_ac_ct_CC+:} false; then : 3522 $as_echo_n "(cached) " >&6 3523else 3524 if test -n "$ac_ct_CC"; then 3525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3526else 3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3534 ac_cv_prog_ac_ct_CC="gcc" 3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3536 break 2 3537 fi 3538done 3539 done 3540IFS=$as_save_IFS 3541 3542fi 3543fi 3544ac_ct_CC=$ac_cv_prog_ac_ct_CC 3545if test -n "$ac_ct_CC"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3547$as_echo "$ac_ct_CC" >&6; } 3548else 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3550$as_echo "no" >&6; } 3551fi 3552 3553 if test "x$ac_ct_CC" = x; then 3554 CC="" 3555 else 3556 case $cross_compiling:$ac_tool_warned in 3557yes:) 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3560ac_tool_warned=yes ;; 3561esac 3562 CC=$ac_ct_CC 3563 fi 3564else 3565 CC="$ac_cv_prog_CC" 3566fi 3567 3568if test -z "$CC"; then 3569 if test -n "$ac_tool_prefix"; then 3570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3571set dummy ${ac_tool_prefix}cc; ac_word=$2 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573$as_echo_n "checking for $ac_word... " >&6; } 3574if ${ac_cv_prog_CC+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -n "$CC"; then 3578 ac_cv_prog_CC="$CC" # Let the user override the test. 3579else 3580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3581for as_dir in $PATH 3582do 3583 IFS=$as_save_IFS 3584 test -z "$as_dir" && as_dir=. 3585 for ac_exec_ext in '' $ac_executable_extensions; do 3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3587 ac_cv_prog_CC="${ac_tool_prefix}cc" 3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3589 break 2 3590 fi 3591done 3592 done 3593IFS=$as_save_IFS 3594 3595fi 3596fi 3597CC=$ac_cv_prog_CC 3598if test -n "$CC"; then 3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3600$as_echo "$CC" >&6; } 3601else 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3603$as_echo "no" >&6; } 3604fi 3605 3606 3607 fi 3608fi 3609if test -z "$CC"; then 3610 # Extract the first word of "cc", so it can be a program name with args. 3611set dummy cc; ac_word=$2 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3613$as_echo_n "checking for $ac_word... " >&6; } 3614if ${ac_cv_prog_CC+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 if test -n "$CC"; then 3618 ac_cv_prog_CC="$CC" # Let the user override the test. 3619else 3620 ac_prog_rejected=no 3621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3622for as_dir in $PATH 3623do 3624 IFS=$as_save_IFS 3625 test -z "$as_dir" && as_dir=. 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3629 ac_prog_rejected=yes 3630 continue 3631 fi 3632 ac_cv_prog_CC="cc" 3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3634 break 2 3635 fi 3636done 3637 done 3638IFS=$as_save_IFS 3639 3640if test $ac_prog_rejected = yes; then 3641 # We found a bogon in the path, so make sure we never use it. 3642 set dummy $ac_cv_prog_CC 3643 shift 3644 if test $# != 0; then 3645 # We chose a different compiler from the bogus one. 3646 # However, it has the same basename, so the bogon will be chosen 3647 # first if we set CC to just the basename; use the full file name. 3648 shift 3649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3650 fi 3651fi 3652fi 3653fi 3654CC=$ac_cv_prog_CC 3655if test -n "$CC"; then 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3657$as_echo "$CC" >&6; } 3658else 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3660$as_echo "no" >&6; } 3661fi 3662 3663 3664fi 3665if test -z "$CC"; then 3666 if test -n "$ac_tool_prefix"; then 3667 for ac_prog in cl.exe 3668 do 3669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3670set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3672$as_echo_n "checking for $ac_word... " >&6; } 3673if ${ac_cv_prog_CC+:} false; then : 3674 $as_echo_n "(cached) " >&6 3675else 3676 if test -n "$CC"; then 3677 ac_cv_prog_CC="$CC" # Let the user override the test. 3678else 3679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3680for as_dir in $PATH 3681do 3682 IFS=$as_save_IFS 3683 test -z "$as_dir" && as_dir=. 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3688 break 2 3689 fi 3690done 3691 done 3692IFS=$as_save_IFS 3693 3694fi 3695fi 3696CC=$ac_cv_prog_CC 3697if test -n "$CC"; then 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3699$as_echo "$CC" >&6; } 3700else 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3702$as_echo "no" >&6; } 3703fi 3704 3705 3706 test -n "$CC" && break 3707 done 3708fi 3709if test -z "$CC"; then 3710 ac_ct_CC=$CC 3711 for ac_prog in cl.exe 3712do 3713 # Extract the first word of "$ac_prog", so it can be a program name with args. 3714set dummy $ac_prog; ac_word=$2 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3716$as_echo_n "checking for $ac_word... " >&6; } 3717if ${ac_cv_prog_ac_ct_CC+:} false; then : 3718 $as_echo_n "(cached) " >&6 3719else 3720 if test -n "$ac_ct_CC"; then 3721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3722else 3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH 3725do 3726 IFS=$as_save_IFS 3727 test -z "$as_dir" && as_dir=. 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3730 ac_cv_prog_ac_ct_CC="$ac_prog" 3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734done 3735 done 3736IFS=$as_save_IFS 3737 3738fi 3739fi 3740ac_ct_CC=$ac_cv_prog_ac_ct_CC 3741if test -n "$ac_ct_CC"; then 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3743$as_echo "$ac_ct_CC" >&6; } 3744else 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3746$as_echo "no" >&6; } 3747fi 3748 3749 3750 test -n "$ac_ct_CC" && break 3751done 3752 3753 if test "x$ac_ct_CC" = x; then 3754 CC="" 3755 else 3756 case $cross_compiling:$ac_tool_warned in 3757yes:) 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3760ac_tool_warned=yes ;; 3761esac 3762 CC=$ac_ct_CC 3763 fi 3764fi 3765 3766fi 3767 3768 3769test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3771as_fn_error $? "no acceptable C compiler found in \$PATH 3772See \`config.log' for more details" "$LINENO" 5; } 3773 3774# Provide some information about the compiler. 3775$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3776set X $ac_compile 3777ac_compiler=$2 3778for ac_option in --version -v -V -qversion; do 3779 { { ac_try="$ac_compiler $ac_option >&5" 3780case "(($ac_try" in 3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3782 *) ac_try_echo=$ac_try;; 3783esac 3784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3785$as_echo "$ac_try_echo"; } >&5 3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3787 ac_status=$? 3788 if test -s conftest.err; then 3789 sed '10a\ 3790... rest of stderr output deleted ... 3791 10q' conftest.err >conftest.er1 3792 cat conftest.er1 >&5 3793 fi 3794 rm -f conftest.er1 conftest.err 3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3796 test $ac_status = 0; } 3797done 3798 3799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801 3802int 3803main () 3804{ 3805 3806 ; 3807 return 0; 3808} 3809_ACEOF 3810ac_clean_files_save=$ac_clean_files 3811ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3812# Try to create an executable without -o first, disregard a.out. 3813# It will help us diagnose broken compilers, and finding out an intuition 3814# of exeext. 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3816$as_echo_n "checking whether the C compiler works... " >&6; } 3817ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3818 3819# The possible output files: 3820ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3821 3822ac_rmfiles= 3823for ac_file in $ac_files 3824do 3825 case $ac_file in 3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3827 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3828 esac 3829done 3830rm -f $ac_rmfiles 3831 3832if { { ac_try="$ac_link_default" 3833case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838$as_echo "$ac_try_echo"; } >&5 3839 (eval "$ac_link_default") 2>&5 3840 ac_status=$? 3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; }; then : 3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3845# in a Makefile. We should not override ac_cv_exeext if it was cached, 3846# so that the user can short-circuit this test for compilers unknown to 3847# Autoconf. 3848for ac_file in $ac_files '' 3849do 3850 test -f "$ac_file" || continue 3851 case $ac_file in 3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3853 ;; 3854 [ab].out ) 3855 # We found the default executable, but exeext='' is most 3856 # certainly right. 3857 break;; 3858 *.* ) 3859 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3860 then :; else 3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3862 fi 3863 # We set ac_cv_exeext here because the later test for it is not 3864 # safe: cross compilers may not add the suffix if given an `-o' 3865 # argument, so we may need to know it at that point already. 3866 # Even if this section looks crufty: it has the advantage of 3867 # actually working. 3868 break;; 3869 * ) 3870 break;; 3871 esac 3872done 3873test "$ac_cv_exeext" = no && ac_cv_exeext= 3874 3875else 3876 ac_file='' 3877fi 3878if test -z "$ac_file"; then : 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3880$as_echo "no" >&6; } 3881$as_echo "$as_me: failed program was:" >&5 3882sed 's/^/| /' conftest.$ac_ext >&5 3883 3884{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3886as_fn_error 77 "C compiler cannot create executables 3887See \`config.log' for more details" "$LINENO" 5; } 3888else 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3890$as_echo "yes" >&6; } 3891fi 3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3893$as_echo_n "checking for C compiler default output file name... " >&6; } 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3895$as_echo "$ac_file" >&6; } 3896ac_exeext=$ac_cv_exeext 3897 3898rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3899ac_clean_files=$ac_clean_files_save 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3901$as_echo_n "checking for suffix of executables... " >&6; } 3902if { { ac_try="$ac_link" 3903case "(($ac_try" in 3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3905 *) ac_try_echo=$ac_try;; 3906esac 3907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3908$as_echo "$ac_try_echo"; } >&5 3909 (eval "$ac_link") 2>&5 3910 ac_status=$? 3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3912 test $ac_status = 0; }; then : 3913 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3915# work properly (i.e., refer to `conftest.exe'), while it won't with 3916# `rm'. 3917for ac_file in conftest.exe conftest conftest.*; do 3918 test -f "$ac_file" || continue 3919 case $ac_file in 3920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3922 break;; 3923 * ) break;; 3924 esac 3925done 3926else 3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3930See \`config.log' for more details" "$LINENO" 5; } 3931fi 3932rm -f conftest conftest$ac_cv_exeext 3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3934$as_echo "$ac_cv_exeext" >&6; } 3935 3936rm -f conftest.$ac_ext 3937EXEEXT=$ac_cv_exeext 3938ac_exeext=$EXEEXT 3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941#include <stdio.h> 3942int 3943main () 3944{ 3945FILE *f = fopen ("conftest.out", "w"); 3946 return ferror (f) || fclose (f) != 0; 3947 3948 ; 3949 return 0; 3950} 3951_ACEOF 3952ac_clean_files="$ac_clean_files conftest.out" 3953# Check that the compiler produces executables we can run. If not, either 3954# the compiler is broken, or we cross compile. 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3956$as_echo_n "checking whether we are cross compiling... " >&6; } 3957if test "$cross_compiling" != yes; then 3958 { { ac_try="$ac_link" 3959case "(($ac_try" in 3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3961 *) ac_try_echo=$ac_try;; 3962esac 3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3964$as_echo "$ac_try_echo"; } >&5 3965 (eval "$ac_link") 2>&5 3966 ac_status=$? 3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3968 test $ac_status = 0; } 3969 if { ac_try='./conftest$ac_cv_exeext' 3970 { { case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975$as_echo "$ac_try_echo"; } >&5 3976 (eval "$ac_try") 2>&5 3977 ac_status=$? 3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; }; }; then 3980 cross_compiling=no 3981 else 3982 if test "$cross_compiling" = maybe; then 3983 cross_compiling=yes 3984 else 3985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3986$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3987as_fn_error $? "cannot run C compiled programs. 3988If you meant to cross compile, use \`--host'. 3989See \`config.log' for more details" "$LINENO" 5; } 3990 fi 3991 fi 3992fi 3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3994$as_echo "$cross_compiling" >&6; } 3995 3996rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3997ac_clean_files=$ac_clean_files_save 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3999$as_echo_n "checking for suffix of object files... " >&6; } 4000if ${ac_cv_objext+:} false; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4004/* end confdefs.h. */ 4005 4006int 4007main () 4008{ 4009 4010 ; 4011 return 0; 4012} 4013_ACEOF 4014rm -f conftest.o conftest.obj 4015if { { ac_try="$ac_compile" 4016case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019esac 4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021$as_echo "$ac_try_echo"; } >&5 4022 (eval "$ac_compile") 2>&5 4023 ac_status=$? 4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; }; then : 4026 for ac_file in conftest.o conftest.obj conftest.*; do 4027 test -f "$ac_file" || continue; 4028 case $ac_file in 4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4031 break;; 4032 esac 4033done 4034else 4035 $as_echo "$as_me: failed program was:" >&5 4036sed 's/^/| /' conftest.$ac_ext >&5 4037 4038{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4040as_fn_error $? "cannot compute suffix of object files: cannot compile 4041See \`config.log' for more details" "$LINENO" 5; } 4042fi 4043rm -f conftest.$ac_cv_objext conftest.$ac_ext 4044fi 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4046$as_echo "$ac_cv_objext" >&6; } 4047OBJEXT=$ac_cv_objext 4048ac_objext=$OBJEXT 4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4050$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4051if ${ac_cv_c_compiler_gnu+:} false; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055/* end confdefs.h. */ 4056 4057int 4058main () 4059{ 4060#ifndef __GNUC__ 4061 choke me 4062#endif 4063 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_compiler_gnu=yes 4070else 4071 ac_compiler_gnu=no 4072fi 4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4074ac_cv_c_compiler_gnu=$ac_compiler_gnu 4075 4076fi 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4078$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4079if test $ac_compiler_gnu = yes; then 4080 GCC=yes 4081else 4082 GCC= 4083fi 4084ac_test_CFLAGS=${CFLAGS+set} 4085ac_save_CFLAGS=$CFLAGS 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4087$as_echo_n "checking whether $CC accepts -g... " >&6; } 4088if ${ac_cv_prog_cc_g+:} false; then : 4089 $as_echo_n "(cached) " >&6 4090else 4091 ac_save_c_werror_flag=$ac_c_werror_flag 4092 ac_c_werror_flag=yes 4093 ac_cv_prog_cc_g=no 4094 CFLAGS="-g" 4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097 4098int 4099main () 4100{ 4101 4102 ; 4103 return 0; 4104} 4105_ACEOF 4106if ac_fn_c_try_compile "$LINENO"; then : 4107 ac_cv_prog_cc_g=yes 4108else 4109 CFLAGS="" 4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112 4113int 4114main () 4115{ 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121if ac_fn_c_try_compile "$LINENO"; then : 4122 4123else 4124 ac_c_werror_flag=$ac_save_c_werror_flag 4125 CFLAGS="-g" 4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4127/* end confdefs.h. */ 4128 4129int 4130main () 4131{ 4132 4133 ; 4134 return 0; 4135} 4136_ACEOF 4137if ac_fn_c_try_compile "$LINENO"; then : 4138 ac_cv_prog_cc_g=yes 4139fi 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143fi 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4145 ac_c_werror_flag=$ac_save_c_werror_flag 4146fi 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4148$as_echo "$ac_cv_prog_cc_g" >&6; } 4149if test "$ac_test_CFLAGS" = set; then 4150 CFLAGS=$ac_save_CFLAGS 4151elif test $ac_cv_prog_cc_g = yes; then 4152 if test "$GCC" = yes; then 4153 CFLAGS="-g -O2" 4154 else 4155 CFLAGS="-g" 4156 fi 4157else 4158 if test "$GCC" = yes; then 4159 CFLAGS="-O2" 4160 else 4161 CFLAGS= 4162 fi 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4165$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4166if ${ac_cv_prog_cc_c89+:} false; then : 4167 $as_echo_n "(cached) " >&6 4168else 4169 ac_cv_prog_cc_c89=no 4170ac_save_CC=$CC 4171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173#include <stdarg.h> 4174#include <stdio.h> 4175struct stat; 4176/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4177struct buf { int x; }; 4178FILE * (*rcsopen) (struct buf *, struct stat *, int); 4179static char *e (p, i) 4180 char **p; 4181 int i; 4182{ 4183 return p[i]; 4184} 4185static char *f (char * (*g) (char **, int), char **p, ...) 4186{ 4187 char *s; 4188 va_list v; 4189 va_start (v,p); 4190 s = g (p, va_arg (v,int)); 4191 va_end (v); 4192 return s; 4193} 4194 4195/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4196 function prototypes and stuff, but not '\xHH' hex character constants. 4197 These don't provoke an error unfortunately, instead are silently treated 4198 as 'x'. The following induces an error, until -std is added to get 4199 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4200 array size at least. It's necessary to write '\x00'==0 to get something 4201 that's true only with -std. */ 4202int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4203 4204/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4205 inside strings and character constants. */ 4206#define FOO(x) 'x' 4207int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4208 4209int test (int i, double x); 4210struct s1 {int (*f) (int a);}; 4211struct s2 {int (*f) (double a);}; 4212int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4213int argc; 4214char **argv; 4215int 4216main () 4217{ 4218return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4219 ; 4220 return 0; 4221} 4222_ACEOF 4223for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4224 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4225do 4226 CC="$ac_save_CC $ac_arg" 4227 if ac_fn_c_try_compile "$LINENO"; then : 4228 ac_cv_prog_cc_c89=$ac_arg 4229fi 4230rm -f core conftest.err conftest.$ac_objext 4231 test "x$ac_cv_prog_cc_c89" != "xno" && break 4232done 4233rm -f conftest.$ac_ext 4234CC=$ac_save_CC 4235 4236fi 4237# AC_CACHE_VAL 4238case "x$ac_cv_prog_cc_c89" in 4239 x) 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4241$as_echo "none needed" >&6; } ;; 4242 xno) 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4244$as_echo "unsupported" >&6; } ;; 4245 *) 4246 CC="$CC $ac_cv_prog_cc_c89" 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4248$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4249esac 4250if test "x$ac_cv_prog_cc_c89" != xno; then : 4251 4252fi 4253 4254ac_ext=c 4255ac_cpp='$CPP $CPPFLAGS' 4256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4258ac_compiler_gnu=$ac_cv_c_compiler_gnu 4259 4260ac_ext=c 4261ac_cpp='$CPP $CPPFLAGS' 4262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4264ac_compiler_gnu=$ac_cv_c_compiler_gnu 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4266$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4267if ${am_cv_prog_cc_c_o+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271/* end confdefs.h. */ 4272 4273int 4274main () 4275{ 4276 4277 ; 4278 return 0; 4279} 4280_ACEOF 4281 # Make sure it works both with $CC and with simple cc. 4282 # Following AC_PROG_CC_C_O, we do the test twice because some 4283 # compilers refuse to overwrite an existing .o file with -o, 4284 # though they will create one. 4285 am_cv_prog_cc_c_o=yes 4286 for am_i in 1 2; do 4287 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4288 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4289 ac_status=$? 4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4291 (exit $ac_status); } \ 4292 && test -f conftest2.$ac_objext; then 4293 : OK 4294 else 4295 am_cv_prog_cc_c_o=no 4296 break 4297 fi 4298 done 4299 rm -f core conftest* 4300 unset am_i 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4303$as_echo "$am_cv_prog_cc_c_o" >&6; } 4304if test "$am_cv_prog_cc_c_o" != yes; then 4305 # Losing compiler, so override with the script. 4306 # FIXME: It is wrong to rewrite CC. 4307 # But if we don't then we get into trouble of one sort or another. 4308 # A longer-term fix would be to have automake use am__CC in this case, 4309 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4310 CC="$am_aux_dir/compile $CC" 4311fi 4312ac_ext=c 4313ac_cpp='$CPP $CPPFLAGS' 4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4316ac_compiler_gnu=$ac_cv_c_compiler_gnu 4317 4318 4319depcc="$CC" am_compiler_list= 4320 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4322$as_echo_n "checking dependency style of $depcc... " >&6; } 4323if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4327 # We make a subdir and do the tests there. Otherwise we can end up 4328 # making bogus files that we don't know about and never remove. For 4329 # instance it was reported that on HP-UX the gcc test will end up 4330 # making a dummy file named 'D' -- because '-MD' means "put the output 4331 # in D". 4332 rm -rf conftest.dir 4333 mkdir conftest.dir 4334 # Copy depcomp to subdir because otherwise we won't find it if we're 4335 # using a relative directory. 4336 cp "$am_depcomp" conftest.dir 4337 cd conftest.dir 4338 # We will build objects and dependencies in a subdirectory because 4339 # it helps to detect inapplicable dependency modes. For instance 4340 # both Tru64's cc and ICC support -MD to output dependencies as a 4341 # side effect of compilation, but ICC will put the dependencies in 4342 # the current directory while Tru64 will put them in the object 4343 # directory. 4344 mkdir sub 4345 4346 am_cv_CC_dependencies_compiler_type=none 4347 if test "$am_compiler_list" = ""; then 4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4349 fi 4350 am__universal=false 4351 case " $depcc " in #( 4352 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4353 esac 4354 4355 for depmode in $am_compiler_list; do 4356 # Setup a source with many dependencies, because some compilers 4357 # like to wrap large dependency lists on column 80 (with \), and 4358 # we should not choose a depcomp mode which is confused by this. 4359 # 4360 # We need to recreate these files for each test, as the compiler may 4361 # overwrite some of them when testing with obscure command lines. 4362 # This happens at least with the AIX C compiler. 4363 : > sub/conftest.c 4364 for i in 1 2 3 4 5 6; do 4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4367 # Solaris 10 /bin/sh. 4368 echo '/* dummy */' > sub/conftst$i.h 4369 done 4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4371 4372 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4373 # mode. It turns out that the SunPro C++ compiler does not properly 4374 # handle '-M -o', and we need to detect this. Also, some Intel 4375 # versions had trouble with output in subdirs. 4376 am__obj=sub/conftest.${OBJEXT-o} 4377 am__minus_obj="-o $am__obj" 4378 case $depmode in 4379 gcc) 4380 # This depmode causes a compiler race in universal mode. 4381 test "$am__universal" = false || continue 4382 ;; 4383 nosideeffect) 4384 # After this tag, mechanisms are not by side-effect, so they'll 4385 # only be used when explicitly requested. 4386 if test "x$enable_dependency_tracking" = xyes; then 4387 continue 4388 else 4389 break 4390 fi 4391 ;; 4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4393 # This compiler won't grok '-c -o', but also, the minuso test has 4394 # not run yet. These depmodes are late enough in the game, and 4395 # so weak that their functioning should not be impacted. 4396 am__obj=conftest.${OBJEXT-o} 4397 am__minus_obj= 4398 ;; 4399 none) break ;; 4400 esac 4401 if depmode=$depmode \ 4402 source=sub/conftest.c object=$am__obj \ 4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4405 >/dev/null 2>conftest.err && 4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4410 # icc doesn't choke on unknown options, it will just issue warnings 4411 # or remarks (even with -Werror). So we grep stderr for any message 4412 # that says an option was ignored or not supported. 4413 # When given -MP, icc 7.0 and 7.1 complain thusly: 4414 # icc: Command line warning: ignoring option '-M'; no argument required 4415 # The diagnosis changed in icc 8.0: 4416 # icc: Command line remark: option '-MP' not supported 4417 if (grep 'ignoring option' conftest.err || 4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4419 am_cv_CC_dependencies_compiler_type=$depmode 4420 break 4421 fi 4422 fi 4423 done 4424 4425 cd .. 4426 rm -rf conftest.dir 4427else 4428 am_cv_CC_dependencies_compiler_type=none 4429fi 4430 4431fi 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4433$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4435 4436 if 4437 test "x$enable_dependency_tracking" != xno \ 4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4439 am__fastdepCC_TRUE= 4440 am__fastdepCC_FALSE='#' 4441else 4442 am__fastdepCC_TRUE='#' 4443 am__fastdepCC_FALSE= 4444fi 4445 4446 4447 4448ac_ext=c 4449ac_cpp='$CPP $CPPFLAGS' 4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4454$as_echo_n "checking how to run the C preprocessor... " >&6; } 4455# On Suns, sometimes $CPP names a directory. 4456if test -n "$CPP" && test -d "$CPP"; then 4457 CPP= 4458fi 4459if test -z "$CPP"; then 4460 if ${ac_cv_prog_CPP+:} false; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 # Double quotes because CPP needs to be expanded 4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4465 do 4466 ac_preproc_ok=false 4467for ac_c_preproc_warn_flag in '' yes 4468do 4469 # Use a header file that comes with gcc, so configuring glibc 4470 # with a fresh cross-compiler works. 4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4472 # <limits.h> exists even on freestanding compilers. 4473 # On the NeXT, cc -E runs the code through the compiler's parser, 4474 # not just through cpp. "Syntax error" is here to catch this case. 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476/* end confdefs.h. */ 4477#ifdef __STDC__ 4478# include <limits.h> 4479#else 4480# include <assert.h> 4481#endif 4482 Syntax error 4483_ACEOF 4484if ac_fn_c_try_cpp "$LINENO"; then : 4485 4486else 4487 # Broken: fails on valid input. 4488continue 4489fi 4490rm -f conftest.err conftest.i conftest.$ac_ext 4491 4492 # OK, works on sane cases. Now check whether nonexistent headers 4493 # can be detected and how. 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495/* end confdefs.h. */ 4496#include <ac_nonexistent.h> 4497_ACEOF 4498if ac_fn_c_try_cpp "$LINENO"; then : 4499 # Broken: success on invalid input. 4500continue 4501else 4502 # Passes both tests. 4503ac_preproc_ok=: 4504break 4505fi 4506rm -f conftest.err conftest.i conftest.$ac_ext 4507 4508done 4509# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4510rm -f conftest.i conftest.err conftest.$ac_ext 4511if $ac_preproc_ok; then : 4512 break 4513fi 4514 4515 done 4516 ac_cv_prog_CPP=$CPP 4517 4518fi 4519 CPP=$ac_cv_prog_CPP 4520else 4521 ac_cv_prog_CPP=$CPP 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4524$as_echo "$CPP" >&6; } 4525ac_preproc_ok=false 4526for ac_c_preproc_warn_flag in '' yes 4527do 4528 # Use a header file that comes with gcc, so configuring glibc 4529 # with a fresh cross-compiler works. 4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4531 # <limits.h> exists even on freestanding compilers. 4532 # On the NeXT, cc -E runs the code through the compiler's parser, 4533 # not just through cpp. "Syntax error" is here to catch this case. 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535/* end confdefs.h. */ 4536#ifdef __STDC__ 4537# include <limits.h> 4538#else 4539# include <assert.h> 4540#endif 4541 Syntax error 4542_ACEOF 4543if ac_fn_c_try_cpp "$LINENO"; then : 4544 4545else 4546 # Broken: fails on valid input. 4547continue 4548fi 4549rm -f conftest.err conftest.i conftest.$ac_ext 4550 4551 # OK, works on sane cases. Now check whether nonexistent headers 4552 # can be detected and how. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#include <ac_nonexistent.h> 4556_ACEOF 4557if ac_fn_c_try_cpp "$LINENO"; then : 4558 # Broken: success on invalid input. 4559continue 4560else 4561 # Passes both tests. 4562ac_preproc_ok=: 4563break 4564fi 4565rm -f conftest.err conftest.i conftest.$ac_ext 4566 4567done 4568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4569rm -f conftest.i conftest.err conftest.$ac_ext 4570if $ac_preproc_ok; then : 4571 4572else 4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4575as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4576See \`config.log' for more details" "$LINENO" 5; } 4577fi 4578 4579ac_ext=c 4580ac_cpp='$CPP $CPPFLAGS' 4581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4583ac_compiler_gnu=$ac_cv_c_compiler_gnu 4584 4585 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4587$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4588if ${ac_cv_path_GREP+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 if test -z "$GREP"; then 4592 ac_path_GREP_found=false 4593 # Loop through the user's path and test for each of PROGNAME-LIST 4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4596do 4597 IFS=$as_save_IFS 4598 test -z "$as_dir" && as_dir=. 4599 for ac_prog in grep ggrep; do 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4602 as_fn_executable_p "$ac_path_GREP" || continue 4603# Check for GNU ac_path_GREP and select it if it is found. 4604 # Check for GNU $ac_path_GREP 4605case `"$ac_path_GREP" --version 2>&1` in 4606*GNU*) 4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4608*) 4609 ac_count=0 4610 $as_echo_n 0123456789 >"conftest.in" 4611 while : 4612 do 4613 cat "conftest.in" "conftest.in" >"conftest.tmp" 4614 mv "conftest.tmp" "conftest.in" 4615 cp "conftest.in" "conftest.nl" 4616 $as_echo 'GREP' >> "conftest.nl" 4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4619 as_fn_arith $ac_count + 1 && ac_count=$as_val 4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4621 # Best one so far, save it but keep looking for a better one 4622 ac_cv_path_GREP="$ac_path_GREP" 4623 ac_path_GREP_max=$ac_count 4624 fi 4625 # 10*(2^10) chars as input seems more than enough 4626 test $ac_count -gt 10 && break 4627 done 4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4629esac 4630 4631 $ac_path_GREP_found && break 3 4632 done 4633 done 4634 done 4635IFS=$as_save_IFS 4636 if test -z "$ac_cv_path_GREP"; then 4637 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4638 fi 4639else 4640 ac_cv_path_GREP=$GREP 4641fi 4642 4643fi 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4645$as_echo "$ac_cv_path_GREP" >&6; } 4646 GREP="$ac_cv_path_GREP" 4647 4648 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4650$as_echo_n "checking for egrep... " >&6; } 4651if ${ac_cv_path_EGREP+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4655 then ac_cv_path_EGREP="$GREP -E" 4656 else 4657 if test -z "$EGREP"; then 4658 ac_path_EGREP_found=false 4659 # Loop through the user's path and test for each of PROGNAME-LIST 4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4662do 4663 IFS=$as_save_IFS 4664 test -z "$as_dir" && as_dir=. 4665 for ac_prog in egrep; do 4666 for ac_exec_ext in '' $ac_executable_extensions; do 4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4668 as_fn_executable_p "$ac_path_EGREP" || continue 4669# Check for GNU ac_path_EGREP and select it if it is found. 4670 # Check for GNU $ac_path_EGREP 4671case `"$ac_path_EGREP" --version 2>&1` in 4672*GNU*) 4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4674*) 4675 ac_count=0 4676 $as_echo_n 0123456789 >"conftest.in" 4677 while : 4678 do 4679 cat "conftest.in" "conftest.in" >"conftest.tmp" 4680 mv "conftest.tmp" "conftest.in" 4681 cp "conftest.in" "conftest.nl" 4682 $as_echo 'EGREP' >> "conftest.nl" 4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4685 as_fn_arith $ac_count + 1 && ac_count=$as_val 4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4687 # Best one so far, save it but keep looking for a better one 4688 ac_cv_path_EGREP="$ac_path_EGREP" 4689 ac_path_EGREP_max=$ac_count 4690 fi 4691 # 10*(2^10) chars as input seems more than enough 4692 test $ac_count -gt 10 && break 4693 done 4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4695esac 4696 4697 $ac_path_EGREP_found && break 3 4698 done 4699 done 4700 done 4701IFS=$as_save_IFS 4702 if test -z "$ac_cv_path_EGREP"; then 4703 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4704 fi 4705else 4706 ac_cv_path_EGREP=$EGREP 4707fi 4708 4709 fi 4710fi 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4712$as_echo "$ac_cv_path_EGREP" >&6; } 4713 EGREP="$ac_cv_path_EGREP" 4714 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4717$as_echo_n "checking for ANSI C header files... " >&6; } 4718if ${ac_cv_header_stdc+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723#include <stdlib.h> 4724#include <stdarg.h> 4725#include <string.h> 4726#include <float.h> 4727 4728int 4729main () 4730{ 4731 4732 ; 4733 return 0; 4734} 4735_ACEOF 4736if ac_fn_c_try_compile "$LINENO"; then : 4737 ac_cv_header_stdc=yes 4738else 4739 ac_cv_header_stdc=no 4740fi 4741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4742 4743if test $ac_cv_header_stdc = yes; then 4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746/* end confdefs.h. */ 4747#include <string.h> 4748 4749_ACEOF 4750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4751 $EGREP "memchr" >/dev/null 2>&1; then : 4752 4753else 4754 ac_cv_header_stdc=no 4755fi 4756rm -f conftest* 4757 4758fi 4759 4760if test $ac_cv_header_stdc = yes; then 4761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4763/* end confdefs.h. */ 4764#include <stdlib.h> 4765 4766_ACEOF 4767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4768 $EGREP "free" >/dev/null 2>&1; then : 4769 4770else 4771 ac_cv_header_stdc=no 4772fi 4773rm -f conftest* 4774 4775fi 4776 4777if test $ac_cv_header_stdc = yes; then 4778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4779 if test "$cross_compiling" = yes; then : 4780 : 4781else 4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4783/* end confdefs.h. */ 4784#include <ctype.h> 4785#include <stdlib.h> 4786#if ((' ' & 0x0FF) == 0x020) 4787# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4788# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4789#else 4790# define ISLOWER(c) \ 4791 (('a' <= (c) && (c) <= 'i') \ 4792 || ('j' <= (c) && (c) <= 'r') \ 4793 || ('s' <= (c) && (c) <= 'z')) 4794# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4795#endif 4796 4797#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4798int 4799main () 4800{ 4801 int i; 4802 for (i = 0; i < 256; i++) 4803 if (XOR (islower (i), ISLOWER (i)) 4804 || toupper (i) != TOUPPER (i)) 4805 return 2; 4806 return 0; 4807} 4808_ACEOF 4809if ac_fn_c_try_run "$LINENO"; then : 4810 4811else 4812 ac_cv_header_stdc=no 4813fi 4814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4815 conftest.$ac_objext conftest.beam conftest.$ac_ext 4816fi 4817 4818fi 4819fi 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4821$as_echo "$ac_cv_header_stdc" >&6; } 4822if test $ac_cv_header_stdc = yes; then 4823 4824$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4825 4826fi 4827 4828# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4829for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4830 inttypes.h stdint.h unistd.h 4831do : 4832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4833ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4834" 4835if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4836 cat >>confdefs.h <<_ACEOF 4837#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4838_ACEOF 4839 4840fi 4841 4842done 4843 4844 4845 4846 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4847if test "x$ac_cv_header_minix_config_h" = xyes; then : 4848 MINIX=yes 4849else 4850 MINIX= 4851fi 4852 4853 4854 if test "$MINIX" = yes; then 4855 4856$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4857 4858 4859$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4860 4861 4862$as_echo "#define _MINIX 1" >>confdefs.h 4863 4864 fi 4865 4866 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4868$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4869if ${ac_cv_safe_to_define___extensions__+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4873/* end confdefs.h. */ 4874 4875# define __EXTENSIONS__ 1 4876 $ac_includes_default 4877int 4878main () 4879{ 4880 4881 ; 4882 return 0; 4883} 4884_ACEOF 4885if ac_fn_c_try_compile "$LINENO"; then : 4886 ac_cv_safe_to_define___extensions__=yes 4887else 4888 ac_cv_safe_to_define___extensions__=no 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4891fi 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4893$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4894 test $ac_cv_safe_to_define___extensions__ = yes && 4895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4896 4897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4898 4899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4900 4901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4902 4903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4904 4905 4906 4907# PR 14072 4908 4909 4910 4911# Check whether --with-sysroot was given. 4912if test "${with_sysroot+set}" = set; then : 4913 withval=$with_sysroot; sysroot=$withval 4914else 4915 sysroot=no 4916fi 4917 4918 4919if test "$sysroot" = "yes"; then 4920 sysroot='${exec_prefix}/${target_alias}/sys-root' 4921elif test "$sysroot" = "no"; then 4922 sysroot= 4923fi 4924 4925sysroot_relocatable=0 4926if test -n "$sysroot"; then 4927 case "$sysroot" in 4928 "${prefix}" | "${prefix}/"* | \ 4929 "${exec_prefix}" | "${exec_prefix}/"* | \ 4930 '${prefix}' | '${prefix}/'*| \ 4931 '${exec_prefix}' | '${exec_prefix}/'*) 4932 sysroot_relocatable=1 4933 ;; 4934 esac 4935fi 4936 4937 4938cat >>confdefs.h <<_ACEOF 4939#define TARGET_SYSTEM_ROOT "$sysroot" 4940_ACEOF 4941 4942 4943cat >>confdefs.h <<_ACEOF 4944#define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable 4945_ACEOF 4946 4947 4948 4949installed_linker=ld.gold 4950# Check whether --enable-gold was given. 4951if test "${enable_gold+set}" = set; then : 4952 enableval=$enable_gold; case "${enableval}" in 4953 default) 4954 install_as_default=yes 4955 ;; 4956 yes) 4957 if test x${enable_ld} = xno; then 4958 install_as_default=yes 4959 fi 4960 ;; 4961 esac 4962else 4963 install_as_default=no 4964fi 4965 4966 4967 4968 4969 4970 maybe_plugins=no 4971 for ac_header in dlfcn.h 4972do : 4973 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 4974" 4975if test "x$ac_cv_header_dlfcn_h" = xyes; then : 4976 cat >>confdefs.h <<_ACEOF 4977#define HAVE_DLFCN_H 1 4978_ACEOF 4979 maybe_plugins=yes 4980fi 4981 4982done 4983 4984 for ac_header in windows.h 4985do : 4986 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 4987" 4988if test "x$ac_cv_header_windows_h" = xyes; then : 4989 cat >>confdefs.h <<_ACEOF 4990#define HAVE_WINDOWS_H 1 4991_ACEOF 4992 maybe_plugins=yes 4993fi 4994 4995done 4996 4997 4998 # Check whether --enable-plugins was given. 4999if test "${enable_plugins+set}" = set; then : 5000 enableval=$enable_plugins; case "${enableval}" in 5001 no) plugins=no ;; 5002 *) plugins=yes 5003 if test "$maybe_plugins" != "yes" ; then 5004 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 5005 fi ;; 5006 esac 5007else 5008 plugins=$maybe_plugins 5009 5010fi 5011 5012 if test "$plugins" = "yes"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 5014$as_echo_n "checking for library containing dlsym... " >&6; } 5015if ${ac_cv_search_dlsym+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 ac_func_search_save_LIBS=$LIBS 5019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020/* end confdefs.h. */ 5021 5022/* Override any GCC internal prototype to avoid an error. 5023 Use char because int might match the return type of a GCC 5024 builtin and then its argument prototype would still apply. */ 5025#ifdef __cplusplus 5026extern "C" 5027#endif 5028char dlsym (); 5029int 5030main () 5031{ 5032return dlsym (); 5033 ; 5034 return 0; 5035} 5036_ACEOF 5037for ac_lib in '' dl; do 5038 if test -z "$ac_lib"; then 5039 ac_res="none required" 5040 else 5041 ac_res=-l$ac_lib 5042 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5043 fi 5044 if ac_fn_c_try_link "$LINENO"; then : 5045 ac_cv_search_dlsym=$ac_res 5046fi 5047rm -f core conftest.err conftest.$ac_objext \ 5048 conftest$ac_exeext 5049 if ${ac_cv_search_dlsym+:} false; then : 5050 break 5051fi 5052done 5053if ${ac_cv_search_dlsym+:} false; then : 5054 5055else 5056 ac_cv_search_dlsym=no 5057fi 5058rm conftest.$ac_ext 5059LIBS=$ac_func_search_save_LIBS 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 5062$as_echo "$ac_cv_search_dlsym" >&6; } 5063ac_res=$ac_cv_search_dlsym 5064if test "$ac_res" != no; then : 5065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5066 5067fi 5068 5069 fi 5070 5071if test "$plugins" = "yes"; then 5072 5073$as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h 5074 5075fi 5076 if test "$plugins" = "yes"; then 5077 PLUGINS_TRUE= 5078 PLUGINS_FALSE='#' 5079else 5080 PLUGINS_TRUE='#' 5081 PLUGINS_FALSE= 5082fi 5083 5084 5085# Decide if -z relro should be enabled in ELF linker by default. 5086ac_default_ld_z_relro=unset 5087# Provide a configure time option to override our default. 5088# Check whether --enable-relro was given. 5089if test "${enable_relro+set}" = set; then : 5090 enableval=$enable_relro; case "${enableval}" in 5091 yes) ac_default_ld_z_relro=1 ;; 5092 no) ac_default_ld_z_relro=0 ;; 5093esac 5094fi 5095if test "${ac_default_ld_z_relro}" = unset; then 5096 ac_default_ld_z_relro=1 5097fi 5098 5099cat >>confdefs.h <<_ACEOF 5100#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro 5101_ACEOF 5102 5103 5104# Check whether --enable-targets was given. 5105if test "${enable_targets+set}" = set; then : 5106 enableval=$enable_targets; case "${enableval}" in 5107 yes | "") 5108 as_fn_error $? "--enable-targets option must specify target names or 'all'" "$LINENO" 5 5109 ;; 5110 no) 5111 enable_targets= 5112 ;; 5113 *) 5114 enable_targets=$enableval 5115 ;; 5116esac 5117else 5118 # For now, enable all targets by default 5119 enable_targets=all 5120 5121fi 5122 5123 5124# Canonicalize the enabled targets. 5125if test -n "$enable_targets"; then 5126 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do 5127 result=`$ac_config_sub $targ 2>/dev/null` 5128 if test -n "$result"; then 5129 canon_targets="$canon_targets $result" 5130 else 5131 # Permit unrecognized target names, like "all". 5132 canon_targets="$canon_targets $targ" 5133 fi 5134 done 5135fi 5136 5137# Decide which "--hash-style" to use by default 5138# Provide a configure time option to override our default. 5139# Check whether --enable-default-hash-style was given. 5140if test "${enable_default_hash_style+set}" = set; then : 5141 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in 5142 sysv | gnu | both) ;; 5143 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;; 5144esac 5145else 5146 case "${target}" in 5147 # Enable gnu hash only on GNU targets, but not mips 5148 mips*-*-*) enable_default_hash_style=sysv ;; 5149 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;; 5150 *) enable_default_hash_style=sysv ;; 5151esac 5152fi 5153 5154 5155 5156cat >>confdefs.h <<_ACEOF 5157#define DEFAULT_HASH_STYLE "${enable_default_hash_style}" 5158_ACEOF 5159 5160 5161# See which specific instantiations we need. 5162targetobjs= 5163all_targets= 5164default_machine= 5165default_size= 5166default_big_endian= 5167default_osabi=ELFOSABI_NONE 5168targ_32_little= 5169targ_32_big= 5170targ_64_little= 5171targ_64_big= 5172for targ in $target $canon_targets; do 5173 if test "$targ" = "all"; then 5174 targ_32_little=yes 5175 targ_32_big=yes 5176 targ_64_little=yes 5177 targ_64_big=yes 5178 all_targets=yes 5179 else 5180 . ${srcdir}/configure.tgt 5181 5182 if test "$targ_obj" = "UNKNOWN"; then 5183 as_fn_error $? "\"unsupported target $targ\"" "$LINENO" 5 5184 else 5185 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)" 5186 if test "$targ_extra_obj" != ""; then 5187 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)" 5188 fi 5189 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then 5190 if test "$targ_big_endian" = "true" \ 5191 -o "$targ_extra_big_endian" = "true"; then 5192 targ_32_big=yes 5193 fi 5194 if test "$targ_big_endian" = "false" \ 5195 -o "$targ_extra_big_endian" = "false"; then 5196 targ_32_little=yes 5197 fi 5198 fi 5199 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then 5200 if test "$targ_big_endian" = "true" \ 5201 -o "$targ_extra_big_endian" = "true"; then 5202 targ_64_big=yes 5203 fi 5204 if test "$targ_big_endian" = "false" \ 5205 -o "$targ_extra_big_endian" = "false"; then 5206 targ_64_little=yes 5207 fi 5208 fi 5209 5210 if test "$target" = "$targ"; then 5211 default_machine=$targ_machine 5212 default_size=$targ_size 5213 default_big_endian=$targ_big_endian 5214 default_osabi=$targ_osabi 5215 5216 if test "$targ_obj" = "aarch64"; then 5217 DEFAULT_TARGET_AARCH64_TRUE= 5218 DEFAULT_TARGET_AARCH64_FALSE='#' 5219else 5220 DEFAULT_TARGET_AARCH64_TRUE='#' 5221 DEFAULT_TARGET_AARCH64_FALSE= 5222fi 5223 5224 if test "$targ_obj" = "arm"; then 5225 DEFAULT_TARGET_ARM_TRUE= 5226 DEFAULT_TARGET_ARM_FALSE='#' 5227else 5228 DEFAULT_TARGET_ARM_TRUE='#' 5229 DEFAULT_TARGET_ARM_FALSE= 5230fi 5231 5232 if test "$targ_obj" = "i386"; then 5233 DEFAULT_TARGET_I386_TRUE= 5234 DEFAULT_TARGET_I386_FALSE='#' 5235else 5236 DEFAULT_TARGET_I386_TRUE='#' 5237 DEFAULT_TARGET_I386_FALSE= 5238fi 5239 5240 if test "$targ_obj" = "powerpc"; then 5241 DEFAULT_TARGET_POWERPC_TRUE= 5242 DEFAULT_TARGET_POWERPC_FALSE='#' 5243else 5244 DEFAULT_TARGET_POWERPC_TRUE='#' 5245 DEFAULT_TARGET_POWERPC_FALSE= 5246fi 5247 5248 if test "$targ_obj" = "sparc"; then 5249 DEFAULT_TARGET_SPARC_TRUE= 5250 DEFAULT_TARGET_SPARC_FALSE='#' 5251else 5252 DEFAULT_TARGET_SPARC_TRUE='#' 5253 DEFAULT_TARGET_SPARC_FALSE= 5254fi 5255 5256 if test "$targ_obj" = "s390"; then 5257 DEFAULT_TARGET_S390_TRUE= 5258 DEFAULT_TARGET_S390_FALSE='#' 5259else 5260 DEFAULT_TARGET_S390_TRUE='#' 5261 DEFAULT_TARGET_S390_FALSE= 5262fi 5263 5264 target_x86_64=no 5265 target_x32=no 5266 if test "$targ_obj" = "x86_64"; then 5267 case "$target" in 5268 x86_64*-linux-gnux32) 5269 target_x32=yes 5270 default_size=32 5271 ;; 5272 *) 5273 target_x86_64=yes 5274 ;; 5275 esac 5276 fi 5277 if test "$target_x86_64" = "yes"; then 5278 DEFAULT_TARGET_X86_64_TRUE= 5279 DEFAULT_TARGET_X86_64_FALSE='#' 5280else 5281 DEFAULT_TARGET_X86_64_TRUE='#' 5282 DEFAULT_TARGET_X86_64_FALSE= 5283fi 5284 5285 if test "$target_x32" = "yes"; then 5286 DEFAULT_TARGET_X32_TRUE= 5287 DEFAULT_TARGET_X32_FALSE='#' 5288else 5289 DEFAULT_TARGET_X32_TRUE='#' 5290 DEFAULT_TARGET_X32_FALSE= 5291fi 5292 5293 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then 5294 DEFAULT_TARGET_X86_64_OR_X32_TRUE= 5295 DEFAULT_TARGET_X86_64_OR_X32_FALSE='#' 5296else 5297 DEFAULT_TARGET_X86_64_OR_X32_TRUE='#' 5298 DEFAULT_TARGET_X86_64_OR_X32_FALSE= 5299fi 5300 5301 if test "$targ_obj" = "tilegx"; then 5302 DEFAULT_TARGET_TILEGX_TRUE= 5303 DEFAULT_TARGET_TILEGX_FALSE='#' 5304else 5305 DEFAULT_TARGET_TILEGX_TRUE='#' 5306 DEFAULT_TARGET_TILEGX_FALSE= 5307fi 5308 5309 if test "$targ_obj" = "mips"; then 5310 DEFAULT_TARGET_MIPS_TRUE= 5311 DEFAULT_TARGET_MIPS_FALSE='#' 5312else 5313 DEFAULT_TARGET_MIPS_TRUE='#' 5314 DEFAULT_TARGET_MIPS_FALSE= 5315fi 5316 5317 DEFAULT_TARGET=${targ_obj} 5318 5319 fi 5320 fi 5321 fi 5322done 5323 5324# Remove any duplicates. 5325to="" 5326for t in $targetobjs; do 5327 case " $to " in 5328 *" $t "*) ;; 5329 *) to="$to $t" ;; 5330 esac 5331done 5332targetobjs=$to 5333 5334if test -n "$targ_32_little"; then 5335 5336$as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h 5337 5338fi 5339if test -n "$targ_32_big"; then 5340 5341$as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h 5342 5343fi 5344if test -n "$targ_64_little"; then 5345 5346$as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h 5347 5348fi 5349if test -n "$targ_64_big"; then 5350 5351$as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h 5352 5353fi 5354 5355if test -n "$all_targets"; then 5356 TARGETOBJS='$(ALL_TARGETOBJS)' 5357else 5358 TARGETOBJS="$targetobjs" 5359fi 5360 5361 5362 5363cat >>confdefs.h <<_ACEOF 5364#define GOLD_DEFAULT_MACHINE $default_machine 5365_ACEOF 5366 5367 5368cat >>confdefs.h <<_ACEOF 5369#define GOLD_DEFAULT_SIZE $default_size 5370_ACEOF 5371 5372 5373cat >>confdefs.h <<_ACEOF 5374#define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian 5375_ACEOF 5376 5377 5378cat >>confdefs.h <<_ACEOF 5379#define GOLD_DEFAULT_OSABI $default_osabi 5380_ACEOF 5381 5382 5383 5384# Check whether --with-lib-path was given. 5385if test "${with_lib_path+set}" = set; then : 5386 withval=$with_lib_path; case "$withval" in 5387 yes) LIB_PATH='"/lib:/usr/lib"' ;; 5388 no) LIB_PATH='""' ;; 5389 *) LIB_PATH='"'"$withval"'"' ;; 5390 esac 5391else 5392 LIB_PATH='"::DEFAULT::"' 5393fi 5394 5395 5396cat >>confdefs.h <<_ACEOF 5397#define LIB_PATH $LIB_PATH 5398_ACEOF 5399 5400if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then 5401 5402$as_echo "#define NATIVE_LINKER 1" >>confdefs.h 5403 5404fi 5405 5406if test -n "$ac_tool_prefix"; then 5407 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 5408set dummy ${ac_tool_prefix}nm; ac_word=$2 5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5410$as_echo_n "checking for $ac_word... " >&6; } 5411if ${ac_cv_prog_NM+:} false; then : 5412 $as_echo_n "(cached) " >&6 5413else 5414 if test -n "$NM"; then 5415 ac_cv_prog_NM="$NM" # Let the user override the test. 5416else 5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5418for as_dir in $PATH 5419do 5420 IFS=$as_save_IFS 5421 test -z "$as_dir" && as_dir=. 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5424 ac_cv_prog_NM="${ac_tool_prefix}nm" 5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434NM=$ac_cv_prog_NM 5435if test -n "$NM"; then 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 5437$as_echo "$NM" >&6; } 5438else 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441fi 5442 5443 5444fi 5445if test -z "$ac_cv_prog_NM"; then 5446 ac_ct_NM=$NM 5447 # Extract the first word of "nm", so it can be a program name with args. 5448set dummy nm; ac_word=$2 5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450$as_echo_n "checking for $ac_word... " >&6; } 5451if ${ac_cv_prog_ac_ct_NM+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453else 5454 if test -n "$ac_ct_NM"; then 5455 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 5456else 5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5458for as_dir in $PATH 5459do 5460 IFS=$as_save_IFS 5461 test -z "$as_dir" && as_dir=. 5462 for ac_exec_ext in '' $ac_executable_extensions; do 5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5464 ac_cv_prog_ac_ct_NM="nm" 5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5466 break 2 5467 fi 5468done 5469 done 5470IFS=$as_save_IFS 5471 5472fi 5473fi 5474ac_ct_NM=$ac_cv_prog_ac_ct_NM 5475if test -n "$ac_ct_NM"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 5477$as_echo "$ac_ct_NM" >&6; } 5478else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480$as_echo "no" >&6; } 5481fi 5482 5483 if test "x$ac_ct_NM" = x; then 5484 NM="" 5485 else 5486 case $cross_compiling:$ac_tool_warned in 5487yes:) 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5490ac_tool_warned=yes ;; 5491esac 5492 NM=$ac_ct_NM 5493 fi 5494else 5495 NM="$ac_cv_prog_NM" 5496fi 5497 5498 5499ac_ext=c 5500ac_cpp='$CPP $CPPFLAGS' 5501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5503ac_compiler_gnu=$ac_cv_c_compiler_gnu 5504if test -n "$ac_tool_prefix"; then 5505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5506set dummy ${ac_tool_prefix}gcc; ac_word=$2 5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5508$as_echo_n "checking for $ac_word... " >&6; } 5509if ${ac_cv_prog_CC+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511else 5512 if test -n "$CC"; then 5513 ac_cv_prog_CC="$CC" # Let the user override the test. 5514else 5515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5516for as_dir in $PATH 5517do 5518 IFS=$as_save_IFS 5519 test -z "$as_dir" && as_dir=. 5520 for ac_exec_ext in '' $ac_executable_extensions; do 5521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5522 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5524 break 2 5525 fi 5526done 5527 done 5528IFS=$as_save_IFS 5529 5530fi 5531fi 5532CC=$ac_cv_prog_CC 5533if test -n "$CC"; then 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5535$as_echo "$CC" >&6; } 5536else 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5538$as_echo "no" >&6; } 5539fi 5540 5541 5542fi 5543if test -z "$ac_cv_prog_CC"; then 5544 ac_ct_CC=$CC 5545 # Extract the first word of "gcc", so it can be a program name with args. 5546set dummy gcc; ac_word=$2 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5548$as_echo_n "checking for $ac_word... " >&6; } 5549if ${ac_cv_prog_ac_ct_CC+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 if test -n "$ac_ct_CC"; then 5553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5554else 5555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5556for as_dir in $PATH 5557do 5558 IFS=$as_save_IFS 5559 test -z "$as_dir" && as_dir=. 5560 for ac_exec_ext in '' $ac_executable_extensions; do 5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5562 ac_cv_prog_ac_ct_CC="gcc" 5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5564 break 2 5565 fi 5566done 5567 done 5568IFS=$as_save_IFS 5569 5570fi 5571fi 5572ac_ct_CC=$ac_cv_prog_ac_ct_CC 5573if test -n "$ac_ct_CC"; then 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5575$as_echo "$ac_ct_CC" >&6; } 5576else 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5578$as_echo "no" >&6; } 5579fi 5580 5581 if test "x$ac_ct_CC" = x; then 5582 CC="" 5583 else 5584 case $cross_compiling:$ac_tool_warned in 5585yes:) 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5588ac_tool_warned=yes ;; 5589esac 5590 CC=$ac_ct_CC 5591 fi 5592else 5593 CC="$ac_cv_prog_CC" 5594fi 5595 5596if test -z "$CC"; then 5597 if test -n "$ac_tool_prefix"; then 5598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5599set dummy ${ac_tool_prefix}cc; ac_word=$2 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5601$as_echo_n "checking for $ac_word... " >&6; } 5602if ${ac_cv_prog_CC+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 if test -n "$CC"; then 5606 ac_cv_prog_CC="$CC" # Let the user override the test. 5607else 5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5609for as_dir in $PATH 5610do 5611 IFS=$as_save_IFS 5612 test -z "$as_dir" && as_dir=. 5613 for ac_exec_ext in '' $ac_executable_extensions; do 5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5615 ac_cv_prog_CC="${ac_tool_prefix}cc" 5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5617 break 2 5618 fi 5619done 5620 done 5621IFS=$as_save_IFS 5622 5623fi 5624fi 5625CC=$ac_cv_prog_CC 5626if test -n "$CC"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5628$as_echo "$CC" >&6; } 5629else 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5631$as_echo "no" >&6; } 5632fi 5633 5634 5635 fi 5636fi 5637if test -z "$CC"; then 5638 # Extract the first word of "cc", so it can be a program name with args. 5639set dummy cc; ac_word=$2 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641$as_echo_n "checking for $ac_word... " >&6; } 5642if ${ac_cv_prog_CC+:} false; then : 5643 $as_echo_n "(cached) " >&6 5644else 5645 if test -n "$CC"; then 5646 ac_cv_prog_CC="$CC" # Let the user override the test. 5647else 5648 ac_prog_rejected=no 5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5650for as_dir in $PATH 5651do 5652 IFS=$as_save_IFS 5653 test -z "$as_dir" && as_dir=. 5654 for ac_exec_ext in '' $ac_executable_extensions; do 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5657 ac_prog_rejected=yes 5658 continue 5659 fi 5660 ac_cv_prog_CC="cc" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668if test $ac_prog_rejected = yes; then 5669 # We found a bogon in the path, so make sure we never use it. 5670 set dummy $ac_cv_prog_CC 5671 shift 5672 if test $# != 0; then 5673 # We chose a different compiler from the bogus one. 5674 # However, it has the same basename, so the bogon will be chosen 5675 # first if we set CC to just the basename; use the full file name. 5676 shift 5677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5678 fi 5679fi 5680fi 5681fi 5682CC=$ac_cv_prog_CC 5683if test -n "$CC"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5685$as_echo "$CC" >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5688$as_echo "no" >&6; } 5689fi 5690 5691 5692fi 5693if test -z "$CC"; then 5694 if test -n "$ac_tool_prefix"; then 5695 for ac_prog in cl.exe 5696 do 5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5698set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5700$as_echo_n "checking for $ac_word... " >&6; } 5701if ${ac_cv_prog_CC+:} false; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 if test -n "$CC"; then 5705 ac_cv_prog_CC="$CC" # Let the user override the test. 5706else 5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708for as_dir in $PATH 5709do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718done 5719 done 5720IFS=$as_save_IFS 5721 5722fi 5723fi 5724CC=$ac_cv_prog_CC 5725if test -n "$CC"; then 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5727$as_echo "$CC" >&6; } 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5730$as_echo "no" >&6; } 5731fi 5732 5733 5734 test -n "$CC" && break 5735 done 5736fi 5737if test -z "$CC"; then 5738 ac_ct_CC=$CC 5739 for ac_prog in cl.exe 5740do 5741 # Extract the first word of "$ac_prog", so it can be a program name with args. 5742set dummy $ac_prog; ac_word=$2 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5744$as_echo_n "checking for $ac_word... " >&6; } 5745if ${ac_cv_prog_ac_ct_CC+:} false; then : 5746 $as_echo_n "(cached) " >&6 5747else 5748 if test -n "$ac_ct_CC"; then 5749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_exec_ext in '' $ac_executable_extensions; do 5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5758 ac_cv_prog_ac_ct_CC="$ac_prog" 5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5760 break 2 5761 fi 5762done 5763 done 5764IFS=$as_save_IFS 5765 5766fi 5767fi 5768ac_ct_CC=$ac_cv_prog_ac_ct_CC 5769if test -n "$ac_ct_CC"; then 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5771$as_echo "$ac_ct_CC" >&6; } 5772else 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5774$as_echo "no" >&6; } 5775fi 5776 5777 5778 test -n "$ac_ct_CC" && break 5779done 5780 5781 if test "x$ac_ct_CC" = x; then 5782 CC="" 5783 else 5784 case $cross_compiling:$ac_tool_warned in 5785yes:) 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5788ac_tool_warned=yes ;; 5789esac 5790 CC=$ac_ct_CC 5791 fi 5792fi 5793 5794fi 5795 5796 5797test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5799as_fn_error $? "no acceptable C compiler found in \$PATH 5800See \`config.log' for more details" "$LINENO" 5; } 5801 5802# Provide some information about the compiler. 5803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5804set X $ac_compile 5805ac_compiler=$2 5806for ac_option in --version -v -V -qversion; do 5807 { { ac_try="$ac_compiler $ac_option >&5" 5808case "(($ac_try" in 5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5810 *) ac_try_echo=$ac_try;; 5811esac 5812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5813$as_echo "$ac_try_echo"; } >&5 5814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5815 ac_status=$? 5816 if test -s conftest.err; then 5817 sed '10a\ 5818... rest of stderr output deleted ... 5819 10q' conftest.err >conftest.er1 5820 cat conftest.er1 >&5 5821 fi 5822 rm -f conftest.er1 conftest.err 5823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5824 test $ac_status = 0; } 5825done 5826 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5828$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5829if ${ac_cv_c_compiler_gnu+:} false; then : 5830 $as_echo_n "(cached) " >&6 5831else 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834 5835int 5836main () 5837{ 5838#ifndef __GNUC__ 5839 choke me 5840#endif 5841 5842 ; 5843 return 0; 5844} 5845_ACEOF 5846if ac_fn_c_try_compile "$LINENO"; then : 5847 ac_compiler_gnu=yes 5848else 5849 ac_compiler_gnu=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852ac_cv_c_compiler_gnu=$ac_compiler_gnu 5853 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5856$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5857if test $ac_compiler_gnu = yes; then 5858 GCC=yes 5859else 5860 GCC= 5861fi 5862ac_test_CFLAGS=${CFLAGS+set} 5863ac_save_CFLAGS=$CFLAGS 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5865$as_echo_n "checking whether $CC accepts -g... " >&6; } 5866if ${ac_cv_prog_cc_g+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 ac_save_c_werror_flag=$ac_c_werror_flag 5870 ac_c_werror_flag=yes 5871 ac_cv_prog_cc_g=no 5872 CFLAGS="-g" 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875 5876int 5877main () 5878{ 5879 5880 ; 5881 return 0; 5882} 5883_ACEOF 5884if ac_fn_c_try_compile "$LINENO"; then : 5885 ac_cv_prog_cc_g=yes 5886else 5887 CFLAGS="" 5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5889/* end confdefs.h. */ 5890 5891int 5892main () 5893{ 5894 5895 ; 5896 return 0; 5897} 5898_ACEOF 5899if ac_fn_c_try_compile "$LINENO"; then : 5900 5901else 5902 ac_c_werror_flag=$ac_save_c_werror_flag 5903 CFLAGS="-g" 5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5905/* end confdefs.h. */ 5906 5907int 5908main () 5909{ 5910 5911 ; 5912 return 0; 5913} 5914_ACEOF 5915if ac_fn_c_try_compile "$LINENO"; then : 5916 ac_cv_prog_cc_g=yes 5917fi 5918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5919fi 5920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5921fi 5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5923 ac_c_werror_flag=$ac_save_c_werror_flag 5924fi 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5926$as_echo "$ac_cv_prog_cc_g" >&6; } 5927if test "$ac_test_CFLAGS" = set; then 5928 CFLAGS=$ac_save_CFLAGS 5929elif test $ac_cv_prog_cc_g = yes; then 5930 if test "$GCC" = yes; then 5931 CFLAGS="-g -O2" 5932 else 5933 CFLAGS="-g" 5934 fi 5935else 5936 if test "$GCC" = yes; then 5937 CFLAGS="-O2" 5938 else 5939 CFLAGS= 5940 fi 5941fi 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5943$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5944if ${ac_cv_prog_cc_c89+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 ac_cv_prog_cc_c89=no 5948ac_save_CC=$CC 5949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951#include <stdarg.h> 5952#include <stdio.h> 5953struct stat; 5954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5955struct buf { int x; }; 5956FILE * (*rcsopen) (struct buf *, struct stat *, int); 5957static char *e (p, i) 5958 char **p; 5959 int i; 5960{ 5961 return p[i]; 5962} 5963static char *f (char * (*g) (char **, int), char **p, ...) 5964{ 5965 char *s; 5966 va_list v; 5967 va_start (v,p); 5968 s = g (p, va_arg (v,int)); 5969 va_end (v); 5970 return s; 5971} 5972 5973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5974 function prototypes and stuff, but not '\xHH' hex character constants. 5975 These don't provoke an error unfortunately, instead are silently treated 5976 as 'x'. The following induces an error, until -std is added to get 5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5978 array size at least. It's necessary to write '\x00'==0 to get something 5979 that's true only with -std. */ 5980int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5981 5982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5983 inside strings and character constants. */ 5984#define FOO(x) 'x' 5985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5986 5987int test (int i, double x); 5988struct s1 {int (*f) (int a);}; 5989struct s2 {int (*f) (double a);}; 5990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5991int argc; 5992char **argv; 5993int 5994main () 5995{ 5996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5997 ; 5998 return 0; 5999} 6000_ACEOF 6001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6003do 6004 CC="$ac_save_CC $ac_arg" 6005 if ac_fn_c_try_compile "$LINENO"; then : 6006 ac_cv_prog_cc_c89=$ac_arg 6007fi 6008rm -f core conftest.err conftest.$ac_objext 6009 test "x$ac_cv_prog_cc_c89" != "xno" && break 6010done 6011rm -f conftest.$ac_ext 6012CC=$ac_save_CC 6013 6014fi 6015# AC_CACHE_VAL 6016case "x$ac_cv_prog_cc_c89" in 6017 x) 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6019$as_echo "none needed" >&6; } ;; 6020 xno) 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6022$as_echo "unsupported" >&6; } ;; 6023 *) 6024 CC="$CC $ac_cv_prog_cc_c89" 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6026$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6027esac 6028if test "x$ac_cv_prog_cc_c89" != xno; then : 6029 6030fi 6031 6032ac_ext=c 6033ac_cpp='$CPP $CPPFLAGS' 6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6036ac_compiler_gnu=$ac_cv_c_compiler_gnu 6037 6038ac_ext=c 6039ac_cpp='$CPP $CPPFLAGS' 6040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6042ac_compiler_gnu=$ac_cv_c_compiler_gnu 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6044$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6045if ${am_cv_prog_cc_c_o+:} false; then : 6046 $as_echo_n "(cached) " >&6 6047else 6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6049/* end confdefs.h. */ 6050 6051int 6052main () 6053{ 6054 6055 ; 6056 return 0; 6057} 6058_ACEOF 6059 # Make sure it works both with $CC and with simple cc. 6060 # Following AC_PROG_CC_C_O, we do the test twice because some 6061 # compilers refuse to overwrite an existing .o file with -o, 6062 # though they will create one. 6063 am_cv_prog_cc_c_o=yes 6064 for am_i in 1 2; do 6065 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6066 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6067 ac_status=$? 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } \ 6070 && test -f conftest2.$ac_objext; then 6071 : OK 6072 else 6073 am_cv_prog_cc_c_o=no 6074 break 6075 fi 6076 done 6077 rm -f core conftest* 6078 unset am_i 6079fi 6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6081$as_echo "$am_cv_prog_cc_c_o" >&6; } 6082if test "$am_cv_prog_cc_c_o" != yes; then 6083 # Losing compiler, so override with the script. 6084 # FIXME: It is wrong to rewrite CC. 6085 # But if we don't then we get into trouble of one sort or another. 6086 # A longer-term fix would be to have automake use am__CC in this case, 6087 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6088 CC="$am_aux_dir/compile $CC" 6089fi 6090ac_ext=c 6091ac_cpp='$CPP $CPPFLAGS' 6092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6094ac_compiler_gnu=$ac_cv_c_compiler_gnu 6095 6096 6097depcc="$CC" am_compiler_list= 6098 6099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6100$as_echo_n "checking dependency style of $depcc... " >&6; } 6101if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6102 $as_echo_n "(cached) " >&6 6103else 6104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6105 # We make a subdir and do the tests there. Otherwise we can end up 6106 # making bogus files that we don't know about and never remove. For 6107 # instance it was reported that on HP-UX the gcc test will end up 6108 # making a dummy file named 'D' -- because '-MD' means "put the output 6109 # in D". 6110 rm -rf conftest.dir 6111 mkdir conftest.dir 6112 # Copy depcomp to subdir because otherwise we won't find it if we're 6113 # using a relative directory. 6114 cp "$am_depcomp" conftest.dir 6115 cd conftest.dir 6116 # We will build objects and dependencies in a subdirectory because 6117 # it helps to detect inapplicable dependency modes. For instance 6118 # both Tru64's cc and ICC support -MD to output dependencies as a 6119 # side effect of compilation, but ICC will put the dependencies in 6120 # the current directory while Tru64 will put them in the object 6121 # directory. 6122 mkdir sub 6123 6124 am_cv_CC_dependencies_compiler_type=none 6125 if test "$am_compiler_list" = ""; then 6126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6127 fi 6128 am__universal=false 6129 case " $depcc " in #( 6130 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6131 esac 6132 6133 for depmode in $am_compiler_list; do 6134 # Setup a source with many dependencies, because some compilers 6135 # like to wrap large dependency lists on column 80 (with \), and 6136 # we should not choose a depcomp mode which is confused by this. 6137 # 6138 # We need to recreate these files for each test, as the compiler may 6139 # overwrite some of them when testing with obscure command lines. 6140 # This happens at least with the AIX C compiler. 6141 : > sub/conftest.c 6142 for i in 1 2 3 4 5 6; do 6143 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6144 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6145 # Solaris 10 /bin/sh. 6146 echo '/* dummy */' > sub/conftst$i.h 6147 done 6148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6149 6150 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6151 # mode. It turns out that the SunPro C++ compiler does not properly 6152 # handle '-M -o', and we need to detect this. Also, some Intel 6153 # versions had trouble with output in subdirs. 6154 am__obj=sub/conftest.${OBJEXT-o} 6155 am__minus_obj="-o $am__obj" 6156 case $depmode in 6157 gcc) 6158 # This depmode causes a compiler race in universal mode. 6159 test "$am__universal" = false || continue 6160 ;; 6161 nosideeffect) 6162 # After this tag, mechanisms are not by side-effect, so they'll 6163 # only be used when explicitly requested. 6164 if test "x$enable_dependency_tracking" = xyes; then 6165 continue 6166 else 6167 break 6168 fi 6169 ;; 6170 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6171 # This compiler won't grok '-c -o', but also, the minuso test has 6172 # not run yet. These depmodes are late enough in the game, and 6173 # so weak that their functioning should not be impacted. 6174 am__obj=conftest.${OBJEXT-o} 6175 am__minus_obj= 6176 ;; 6177 none) break ;; 6178 esac 6179 if depmode=$depmode \ 6180 source=sub/conftest.c object=$am__obj \ 6181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6183 >/dev/null 2>conftest.err && 6184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6188 # icc doesn't choke on unknown options, it will just issue warnings 6189 # or remarks (even with -Werror). So we grep stderr for any message 6190 # that says an option was ignored or not supported. 6191 # When given -MP, icc 7.0 and 7.1 complain thusly: 6192 # icc: Command line warning: ignoring option '-M'; no argument required 6193 # The diagnosis changed in icc 8.0: 6194 # icc: Command line remark: option '-MP' not supported 6195 if (grep 'ignoring option' conftest.err || 6196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6197 am_cv_CC_dependencies_compiler_type=$depmode 6198 break 6199 fi 6200 fi 6201 done 6202 6203 cd .. 6204 rm -rf conftest.dir 6205else 6206 am_cv_CC_dependencies_compiler_type=none 6207fi 6208 6209fi 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6211$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6212CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6213 6214 if 6215 test "x$enable_dependency_tracking" != xno \ 6216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6217 am__fastdepCC_TRUE= 6218 am__fastdepCC_FALSE='#' 6219else 6220 am__fastdepCC_TRUE='#' 6221 am__fastdepCC_FALSE= 6222fi 6223 6224 6225ac_ext=cpp 6226ac_cpp='$CXXCPP $CPPFLAGS' 6227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6230if test -z "$CXX"; then 6231 if test -n "$CCC"; then 6232 CXX=$CCC 6233 else 6234 if test -n "$ac_tool_prefix"; then 6235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6236 do 6237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6240$as_echo_n "checking for $ac_word... " >&6; } 6241if ${ac_cv_prog_CXX+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 if test -n "$CXX"; then 6245 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6246else 6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248for as_dir in $PATH 6249do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264CXX=$ac_cv_prog_CXX 6265if test -n "$CXX"; then 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6267$as_echo "$CXX" >&6; } 6268else 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270$as_echo "no" >&6; } 6271fi 6272 6273 6274 test -n "$CXX" && break 6275 done 6276fi 6277if test -z "$CXX"; then 6278 ac_ct_CXX=$CXX 6279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6280do 6281 # Extract the first word of "$ac_prog", so it can be a program name with args. 6282set dummy $ac_prog; ac_word=$2 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$ac_ct_CXX"; then 6289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298 ac_cv_prog_ac_ct_CXX="$ac_prog" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6309if test -n "$ac_ct_CXX"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6311$as_echo "$ac_ct_CXX" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 6318 test -n "$ac_ct_CXX" && break 6319done 6320 6321 if test "x$ac_ct_CXX" = x; then 6322 CXX="g++" 6323 else 6324 case $cross_compiling:$ac_tool_warned in 6325yes:) 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6328ac_tool_warned=yes ;; 6329esac 6330 CXX=$ac_ct_CXX 6331 fi 6332fi 6333 6334 fi 6335fi 6336# Provide some information about the compiler. 6337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6338set X $ac_compile 6339ac_compiler=$2 6340for ac_option in --version -v -V -qversion; do 6341 { { ac_try="$ac_compiler $ac_option >&5" 6342case "(($ac_try" in 6343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6344 *) ac_try_echo=$ac_try;; 6345esac 6346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6347$as_echo "$ac_try_echo"; } >&5 6348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6349 ac_status=$? 6350 if test -s conftest.err; then 6351 sed '10a\ 6352... rest of stderr output deleted ... 6353 10q' conftest.err >conftest.er1 6354 cat conftest.er1 >&5 6355 fi 6356 rm -f conftest.er1 conftest.err 6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6358 test $ac_status = 0; } 6359done 6360 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6362$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6363if ${ac_cv_cxx_compiler_gnu+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6367/* end confdefs.h. */ 6368 6369int 6370main () 6371{ 6372#ifndef __GNUC__ 6373 choke me 6374#endif 6375 6376 ; 6377 return 0; 6378} 6379_ACEOF 6380if ac_fn_cxx_try_compile "$LINENO"; then : 6381 ac_compiler_gnu=yes 6382else 6383 ac_compiler_gnu=no 6384fi 6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6386ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6387 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6390$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6391if test $ac_compiler_gnu = yes; then 6392 GXX=yes 6393else 6394 GXX= 6395fi 6396ac_test_CXXFLAGS=${CXXFLAGS+set} 6397ac_save_CXXFLAGS=$CXXFLAGS 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6399$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6400if ${ac_cv_prog_cxx_g+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6404 ac_cxx_werror_flag=yes 6405 ac_cv_prog_cxx_g=no 6406 CXXFLAGS="-g" 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409 6410int 6411main () 6412{ 6413 6414 ; 6415 return 0; 6416} 6417_ACEOF 6418if ac_fn_cxx_try_compile "$LINENO"; then : 6419 ac_cv_prog_cxx_g=yes 6420else 6421 CXXFLAGS="" 6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423/* end confdefs.h. */ 6424 6425int 6426main () 6427{ 6428 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433if ac_fn_cxx_try_compile "$LINENO"; then : 6434 6435else 6436 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6437 CXXFLAGS="-g" 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439/* end confdefs.h. */ 6440 6441int 6442main () 6443{ 6444 6445 ; 6446 return 0; 6447} 6448_ACEOF 6449if ac_fn_cxx_try_compile "$LINENO"; then : 6450 ac_cv_prog_cxx_g=yes 6451fi 6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6453fi 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6455fi 6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6458fi 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6460$as_echo "$ac_cv_prog_cxx_g" >&6; } 6461if test "$ac_test_CXXFLAGS" = set; then 6462 CXXFLAGS=$ac_save_CXXFLAGS 6463elif test $ac_cv_prog_cxx_g = yes; then 6464 if test "$GXX" = yes; then 6465 CXXFLAGS="-g -O2" 6466 else 6467 CXXFLAGS="-g" 6468 fi 6469else 6470 if test "$GXX" = yes; then 6471 CXXFLAGS="-O2" 6472 else 6473 CXXFLAGS= 6474 fi 6475fi 6476ac_ext=c 6477ac_cpp='$CPP $CPPFLAGS' 6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6480ac_compiler_gnu=$ac_cv_c_compiler_gnu 6481 6482depcc="$CXX" am_compiler_list= 6483 6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6485$as_echo_n "checking dependency style of $depcc... " >&6; } 6486if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6487 $as_echo_n "(cached) " >&6 6488else 6489 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6490 # We make a subdir and do the tests there. Otherwise we can end up 6491 # making bogus files that we don't know about and never remove. For 6492 # instance it was reported that on HP-UX the gcc test will end up 6493 # making a dummy file named 'D' -- because '-MD' means "put the output 6494 # in D". 6495 rm -rf conftest.dir 6496 mkdir conftest.dir 6497 # Copy depcomp to subdir because otherwise we won't find it if we're 6498 # using a relative directory. 6499 cp "$am_depcomp" conftest.dir 6500 cd conftest.dir 6501 # We will build objects and dependencies in a subdirectory because 6502 # it helps to detect inapplicable dependency modes. For instance 6503 # both Tru64's cc and ICC support -MD to output dependencies as a 6504 # side effect of compilation, but ICC will put the dependencies in 6505 # the current directory while Tru64 will put them in the object 6506 # directory. 6507 mkdir sub 6508 6509 am_cv_CXX_dependencies_compiler_type=none 6510 if test "$am_compiler_list" = ""; then 6511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6512 fi 6513 am__universal=false 6514 case " $depcc " in #( 6515 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6516 esac 6517 6518 for depmode in $am_compiler_list; do 6519 # Setup a source with many dependencies, because some compilers 6520 # like to wrap large dependency lists on column 80 (with \), and 6521 # we should not choose a depcomp mode which is confused by this. 6522 # 6523 # We need to recreate these files for each test, as the compiler may 6524 # overwrite some of them when testing with obscure command lines. 6525 # This happens at least with the AIX C compiler. 6526 : > sub/conftest.c 6527 for i in 1 2 3 4 5 6; do 6528 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6529 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6530 # Solaris 10 /bin/sh. 6531 echo '/* dummy */' > sub/conftst$i.h 6532 done 6533 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6534 6535 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6536 # mode. It turns out that the SunPro C++ compiler does not properly 6537 # handle '-M -o', and we need to detect this. Also, some Intel 6538 # versions had trouble with output in subdirs. 6539 am__obj=sub/conftest.${OBJEXT-o} 6540 am__minus_obj="-o $am__obj" 6541 case $depmode in 6542 gcc) 6543 # This depmode causes a compiler race in universal mode. 6544 test "$am__universal" = false || continue 6545 ;; 6546 nosideeffect) 6547 # After this tag, mechanisms are not by side-effect, so they'll 6548 # only be used when explicitly requested. 6549 if test "x$enable_dependency_tracking" = xyes; then 6550 continue 6551 else 6552 break 6553 fi 6554 ;; 6555 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6556 # This compiler won't grok '-c -o', but also, the minuso test has 6557 # not run yet. These depmodes are late enough in the game, and 6558 # so weak that their functioning should not be impacted. 6559 am__obj=conftest.${OBJEXT-o} 6560 am__minus_obj= 6561 ;; 6562 none) break ;; 6563 esac 6564 if depmode=$depmode \ 6565 source=sub/conftest.c object=$am__obj \ 6566 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6567 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6568 >/dev/null 2>conftest.err && 6569 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6570 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6571 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6572 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6573 # icc doesn't choke on unknown options, it will just issue warnings 6574 # or remarks (even with -Werror). So we grep stderr for any message 6575 # that says an option was ignored or not supported. 6576 # When given -MP, icc 7.0 and 7.1 complain thusly: 6577 # icc: Command line warning: ignoring option '-M'; no argument required 6578 # The diagnosis changed in icc 8.0: 6579 # icc: Command line remark: option '-MP' not supported 6580 if (grep 'ignoring option' conftest.err || 6581 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6582 am_cv_CXX_dependencies_compiler_type=$depmode 6583 break 6584 fi 6585 fi 6586 done 6587 6588 cd .. 6589 rm -rf conftest.dir 6590else 6591 am_cv_CXX_dependencies_compiler_type=none 6592fi 6593 6594fi 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6596$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6597CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6598 6599 if 6600 test "x$enable_dependency_tracking" != xno \ 6601 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6602 am__fastdepCXX_TRUE= 6603 am__fastdepCXX_FALSE='#' 6604else 6605 am__fastdepCXX_TRUE='#' 6606 am__fastdepCXX_FALSE= 6607fi 6608 6609 6610for ac_prog in 'bison -y' byacc 6611do 6612 # Extract the first word of "$ac_prog", so it can be a program name with args. 6613set dummy $ac_prog; ac_word=$2 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6615$as_echo_n "checking for $ac_word... " >&6; } 6616if ${ac_cv_prog_YACC+:} false; then : 6617 $as_echo_n "(cached) " >&6 6618else 6619 if test -n "$YACC"; then 6620 ac_cv_prog_YACC="$YACC" # Let the user override the test. 6621else 6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623for as_dir in $PATH 6624do 6625 IFS=$as_save_IFS 6626 test -z "$as_dir" && as_dir=. 6627 for ac_exec_ext in '' $ac_executable_extensions; do 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629 ac_cv_prog_YACC="$ac_prog" 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631 break 2 6632 fi 6633done 6634 done 6635IFS=$as_save_IFS 6636 6637fi 6638fi 6639YACC=$ac_cv_prog_YACC 6640if test -n "$YACC"; then 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 6642$as_echo "$YACC" >&6; } 6643else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645$as_echo "no" >&6; } 6646fi 6647 6648 6649 test -n "$YACC" && break 6650done 6651test -n "$YACC" || YACC="yacc" 6652 6653if test -n "$ac_tool_prefix"; then 6654 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6655set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if ${ac_cv_prog_RANLIB+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$RANLIB"; then 6662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681RANLIB=$ac_cv_prog_RANLIB 6682if test -n "$RANLIB"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6684$as_echo "$RANLIB" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 6691fi 6692if test -z "$ac_cv_prog_RANLIB"; then 6693 ac_ct_RANLIB=$RANLIB 6694 # Extract the first word of "ranlib", so it can be a program name with args. 6695set dummy ranlib; ac_word=$2 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6697$as_echo_n "checking for $ac_word... " >&6; } 6698if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 if test -n "$ac_ct_RANLIB"; then 6702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6703else 6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in $PATH 6706do 6707 IFS=$as_save_IFS 6708 test -z "$as_dir" && as_dir=. 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6711 ac_cv_prog_ac_ct_RANLIB="ranlib" 6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6713 break 2 6714 fi 6715done 6716 done 6717IFS=$as_save_IFS 6718 6719fi 6720fi 6721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6722if test -n "$ac_ct_RANLIB"; then 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6724$as_echo "$ac_ct_RANLIB" >&6; } 6725else 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6727$as_echo "no" >&6; } 6728fi 6729 6730 if test "x$ac_ct_RANLIB" = x; then 6731 RANLIB=":" 6732 else 6733 case $cross_compiling:$ac_tool_warned in 6734yes:) 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6737ac_tool_warned=yes ;; 6738esac 6739 RANLIB=$ac_ct_RANLIB 6740 fi 6741else 6742 RANLIB="$ac_cv_prog_RANLIB" 6743fi 6744 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6747$as_echo_n "checking whether ln -s works... " >&6; } 6748LN_S=$as_ln_s 6749if test "$LN_S" = "ln -s"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6751$as_echo "yes" >&6; } 6752else 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6754$as_echo "no, using $LN_S" >&6; } 6755fi 6756 6757 6758 6759 6760# If we haven't got the data from the intl directory, 6761# assume NLS is disabled. 6762USE_NLS=no 6763LIBINTL= 6764LIBINTL_DEP= 6765INCINTL= 6766XGETTEXT= 6767GMSGFMT= 6768POSUB= 6769 6770if test -f ../intl/config.intl; then 6771 . ../intl/config.intl 6772fi 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6774$as_echo_n "checking whether NLS is requested... " >&6; } 6775if test x"$USE_NLS" != xyes; then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777$as_echo "no" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6780$as_echo "yes" >&6; } 6781 6782$as_echo "#define ENABLE_NLS 1" >>confdefs.h 6783 6784 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 6786$as_echo_n "checking for catalogs to be installed... " >&6; } 6787 # Look for .po and .gmo files in the source directory. 6788 CATALOGS= 6789 XLINGUAS= 6790 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 6791 # If there aren't any .gmo files the shell will give us the 6792 # literal string "../path/to/srcdir/po/*.gmo" which has to be 6793 # weeded out. 6794 case "$cat" in *\**) 6795 continue;; 6796 esac 6797 # The quadruple backslash is collapsed to a double backslash 6798 # by the backticks, then collapsed again by the double quotes, 6799 # leaving us with one backslash in the sed expression (right 6800 # before the dot that mustn't act as a wildcard). 6801 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 6802 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 6803 # The user is allowed to set LINGUAS to a list of languages to 6804 # install catalogs for. If it's empty that means "all of them." 6805 if test "x$LINGUAS" = x; then 6806 CATALOGS="$CATALOGS $cat" 6807 XLINGUAS="$XLINGUAS $lang" 6808 else 6809 case "$LINGUAS" in *$lang*) 6810 CATALOGS="$CATALOGS $cat" 6811 XLINGUAS="$XLINGUAS $lang" 6812 ;; 6813 esac 6814 fi 6815 done 6816 LINGUAS="$XLINGUAS" 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 6818$as_echo "$LINGUAS" >&6; } 6819 6820 6821 DATADIRNAME=share 6822 6823 INSTOBJEXT=.mo 6824 6825 GENCAT=gencat 6826 6827 CATOBJEXT=.gmo 6828 6829fi 6830 6831 MKINSTALLDIRS= 6832 if test -n "$ac_aux_dir"; then 6833 case "$ac_aux_dir" in 6834 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 6835 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 6836 esac 6837 fi 6838 if test -z "$MKINSTALLDIRS"; then 6839 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 6840 fi 6841 6842 6843 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6845$as_echo_n "checking whether NLS is requested... " >&6; } 6846 # Check whether --enable-nls was given. 6847if test "${enable_nls+set}" = set; then : 6848 enableval=$enable_nls; USE_NLS=$enableval 6849else 6850 USE_NLS=yes 6851fi 6852 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6854$as_echo "$USE_NLS" >&6; } 6855 6856 6857 6858 6859 6860 6861# Prepare PATH_SEPARATOR. 6862# The user is always right. 6863if test "${PATH_SEPARATOR+set}" != set; then 6864 echo "#! /bin/sh" >conf$$.sh 6865 echo "exit 0" >>conf$$.sh 6866 chmod +x conf$$.sh 6867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6868 PATH_SEPARATOR=';' 6869 else 6870 PATH_SEPARATOR=: 6871 fi 6872 rm -f conf$$.sh 6873fi 6874 6875# Find out how to test for executable files. Don't use a zero-byte file, 6876# as systems may use methods other than mode bits to determine executability. 6877cat >conf$$.file <<_ASEOF 6878#! /bin/sh 6879exit 0 6880_ASEOF 6881chmod +x conf$$.file 6882if test -x conf$$.file >/dev/null 2>&1; then 6883 ac_executable_p="test -x" 6884else 6885 ac_executable_p="test -f" 6886fi 6887rm -f conf$$.file 6888 6889# Extract the first word of "msgfmt", so it can be a program name with args. 6890set dummy msgfmt; ac_word=$2 6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6892$as_echo_n "checking for $ac_word... " >&6; } 6893if ${ac_cv_path_MSGFMT+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895else 6896 case "$MSGFMT" in 6897 [\\/]* | ?:[\\/]*) 6898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6899 ;; 6900 *) 6901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6902 for ac_dir in $PATH; do 6903 IFS="$ac_save_IFS" 6904 test -z "$ac_dir" && ac_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6907 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 6908 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6909 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 6910 break 2 6911 fi 6912 fi 6913 done 6914 done 6915 IFS="$ac_save_IFS" 6916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 6917 ;; 6918esac 6919fi 6920MSGFMT="$ac_cv_path_MSGFMT" 6921if test "$MSGFMT" != ":"; then 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6923$as_echo "$MSGFMT" >&6; } 6924else 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926$as_echo "no" >&6; } 6927fi 6928 6929 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6930set dummy gmsgfmt; ac_word=$2 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932$as_echo_n "checking for $ac_word... " >&6; } 6933if ${ac_cv_path_GMSGFMT+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 case $GMSGFMT in 6937 [\\/]* | ?:[\\/]*) 6938 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6939 ;; 6940 *) 6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6942for as_dir in $PATH 6943do 6944 IFS=$as_save_IFS 6945 test -z "$as_dir" && as_dir=. 6946 for ac_exec_ext in '' $ac_executable_extensions; do 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6948 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6950 break 2 6951 fi 6952done 6953 done 6954IFS=$as_save_IFS 6955 6956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6957 ;; 6958esac 6959fi 6960GMSGFMT=$ac_cv_path_GMSGFMT 6961if test -n "$GMSGFMT"; then 6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6963$as_echo "$GMSGFMT" >&6; } 6964else 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6966$as_echo "no" >&6; } 6967fi 6968 6969 6970 6971 6972# Prepare PATH_SEPARATOR. 6973# The user is always right. 6974if test "${PATH_SEPARATOR+set}" != set; then 6975 echo "#! /bin/sh" >conf$$.sh 6976 echo "exit 0" >>conf$$.sh 6977 chmod +x conf$$.sh 6978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6979 PATH_SEPARATOR=';' 6980 else 6981 PATH_SEPARATOR=: 6982 fi 6983 rm -f conf$$.sh 6984fi 6985 6986# Find out how to test for executable files. Don't use a zero-byte file, 6987# as systems may use methods other than mode bits to determine executability. 6988cat >conf$$.file <<_ASEOF 6989#! /bin/sh 6990exit 0 6991_ASEOF 6992chmod +x conf$$.file 6993if test -x conf$$.file >/dev/null 2>&1; then 6994 ac_executable_p="test -x" 6995else 6996 ac_executable_p="test -f" 6997fi 6998rm -f conf$$.file 6999 7000# Extract the first word of "xgettext", so it can be a program name with args. 7001set dummy xgettext; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_path_XGETTEXT+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 case "$XGETTEXT" in 7008 [\\/]* | ?:[\\/]*) 7009 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7010 ;; 7011 *) 7012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7013 for ac_dir in $PATH; do 7014 IFS="$ac_save_IFS" 7015 test -z "$ac_dir" && ac_dir=. 7016 for ac_exec_ext in '' $ac_executable_extensions; do 7017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7018 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7019 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7020 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7021 break 2 7022 fi 7023 fi 7024 done 7025 done 7026 IFS="$ac_save_IFS" 7027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7028 ;; 7029esac 7030fi 7031XGETTEXT="$ac_cv_path_XGETTEXT" 7032if test "$XGETTEXT" != ":"; then 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 7034$as_echo "$XGETTEXT" >&6; } 7035else 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037$as_echo "no" >&6; } 7038fi 7039 7040 rm -f messages.po 7041 7042 7043# Prepare PATH_SEPARATOR. 7044# The user is always right. 7045if test "${PATH_SEPARATOR+set}" != set; then 7046 echo "#! /bin/sh" >conf$$.sh 7047 echo "exit 0" >>conf$$.sh 7048 chmod +x conf$$.sh 7049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7050 PATH_SEPARATOR=';' 7051 else 7052 PATH_SEPARATOR=: 7053 fi 7054 rm -f conf$$.sh 7055fi 7056 7057# Find out how to test for executable files. Don't use a zero-byte file, 7058# as systems may use methods other than mode bits to determine executability. 7059cat >conf$$.file <<_ASEOF 7060#! /bin/sh 7061exit 0 7062_ASEOF 7063chmod +x conf$$.file 7064if test -x conf$$.file >/dev/null 2>&1; then 7065 ac_executable_p="test -x" 7066else 7067 ac_executable_p="test -f" 7068fi 7069rm -f conf$$.file 7070 7071# Extract the first word of "msgmerge", so it can be a program name with args. 7072set dummy msgmerge; ac_word=$2 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7074$as_echo_n "checking for $ac_word... " >&6; } 7075if ${ac_cv_path_MSGMERGE+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 case "$MSGMERGE" in 7079 [\\/]* | ?:[\\/]*) 7080 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7081 ;; 7082 *) 7083 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7084 for ac_dir in $PATH; do 7085 IFS="$ac_save_IFS" 7086 test -z "$ac_dir" && ac_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7089 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 7090 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7091 break 2 7092 fi 7093 fi 7094 done 7095 done 7096 IFS="$ac_save_IFS" 7097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 7098 ;; 7099esac 7100fi 7101MSGMERGE="$ac_cv_path_MSGMERGE" 7102if test "$MSGMERGE" != ":"; then 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 7104$as_echo "$MSGMERGE" >&6; } 7105else 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7107$as_echo "no" >&6; } 7108fi 7109 7110 7111 if test "$GMSGFMT" != ":"; then 7112 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 7113 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7114 : ; 7115 else 7116 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 7118$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 7119 GMSGFMT=":" 7120 fi 7121 fi 7122 7123 if test "$XGETTEXT" != ":"; then 7124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7125 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 7126 : ; 7127 else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 7129$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 7130 XGETTEXT=":" 7131 fi 7132 rm -f messages.po 7133 fi 7134 7135 ac_config_commands="$ac_config_commands default-1" 7136 7137 7138 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 7140$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 7141if ${ac_cv_c_bigendian+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 ac_cv_c_bigendian=unknown 7145 # See if we're dealing with a universal compiler. 7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148#ifndef __APPLE_CC__ 7149 not a universal capable compiler 7150 #endif 7151 typedef int dummy; 7152 7153_ACEOF 7154if ac_fn_c_try_compile "$LINENO"; then : 7155 7156 # Check for potential -arch flags. It is not universal unless 7157 # there are at least two -arch flags with different values. 7158 ac_arch= 7159 ac_prev= 7160 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 7161 if test -n "$ac_prev"; then 7162 case $ac_word in 7163 i?86 | x86_64 | ppc | ppc64) 7164 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 7165 ac_arch=$ac_word 7166 else 7167 ac_cv_c_bigendian=universal 7168 break 7169 fi 7170 ;; 7171 esac 7172 ac_prev= 7173 elif test "x$ac_word" = "x-arch"; then 7174 ac_prev=arch 7175 fi 7176 done 7177fi 7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7179 if test $ac_cv_c_bigendian = unknown; then 7180 # See if sys/param.h defines the BYTE_ORDER macro. 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183#include <sys/types.h> 7184 #include <sys/param.h> 7185 7186int 7187main () 7188{ 7189#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 7190 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 7191 && LITTLE_ENDIAN) 7192 bogus endian macros 7193 #endif 7194 7195 ; 7196 return 0; 7197} 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO"; then : 7200 # It does; now see whether it defined to BIG_ENDIAN or not. 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203#include <sys/types.h> 7204 #include <sys/param.h> 7205 7206int 7207main () 7208{ 7209#if BYTE_ORDER != BIG_ENDIAN 7210 not big endian 7211 #endif 7212 7213 ; 7214 return 0; 7215} 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 ac_cv_c_bigendian=yes 7219else 7220 ac_cv_c_bigendian=no 7221fi 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223fi 7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7225 fi 7226 if test $ac_cv_c_bigendian = unknown; then 7227 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230#include <limits.h> 7231 7232int 7233main () 7234{ 7235#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 7236 bogus endian macros 7237 #endif 7238 7239 ; 7240 return 0; 7241} 7242_ACEOF 7243if ac_fn_c_try_compile "$LINENO"; then : 7244 # It does; now see whether it defined to _BIG_ENDIAN or not. 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247#include <limits.h> 7248 7249int 7250main () 7251{ 7252#ifndef _BIG_ENDIAN 7253 not big endian 7254 #endif 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_compile "$LINENO"; then : 7261 ac_cv_c_bigendian=yes 7262else 7263 ac_cv_c_bigendian=no 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7266fi 7267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7268 fi 7269 if test $ac_cv_c_bigendian = unknown; then 7270 # Compile a test program. 7271 if test "$cross_compiling" = yes; then : 7272 # Try to guess by grepping values from an object file. 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7274/* end confdefs.h. */ 7275short int ascii_mm[] = 7276 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7277 short int ascii_ii[] = 7278 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7279 int use_ascii (int i) { 7280 return ascii_mm[i] + ascii_ii[i]; 7281 } 7282 short int ebcdic_ii[] = 7283 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7284 short int ebcdic_mm[] = 7285 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7286 int use_ebcdic (int i) { 7287 return ebcdic_mm[i] + ebcdic_ii[i]; 7288 } 7289 extern int foo; 7290 7291int 7292main () 7293{ 7294return use_ascii (foo) == use_ebcdic (foo); 7295 ; 7296 return 0; 7297} 7298_ACEOF 7299if ac_fn_c_try_compile "$LINENO"; then : 7300 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 7301 ac_cv_c_bigendian=yes 7302 fi 7303 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7304 if test "$ac_cv_c_bigendian" = unknown; then 7305 ac_cv_c_bigendian=no 7306 else 7307 # finding both strings is unlikely to happen, but who knows? 7308 ac_cv_c_bigendian=unknown 7309 fi 7310 fi 7311fi 7312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7313else 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316$ac_includes_default 7317int 7318main () 7319{ 7320 7321 /* Are we little or big endian? From Harbison&Steele. */ 7322 union 7323 { 7324 long int l; 7325 char c[sizeof (long int)]; 7326 } u; 7327 u.l = 1; 7328 return u.c[sizeof (long int) - 1] == 1; 7329 7330 ; 7331 return 0; 7332} 7333_ACEOF 7334if ac_fn_c_try_run "$LINENO"; then : 7335 ac_cv_c_bigendian=no 7336else 7337 ac_cv_c_bigendian=yes 7338fi 7339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7340 conftest.$ac_objext conftest.beam conftest.$ac_ext 7341fi 7342 7343 fi 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7346$as_echo "$ac_cv_c_bigendian" >&6; } 7347 case $ac_cv_c_bigendian in #( 7348 yes) 7349 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 7350;; #( 7351 no) 7352 ;; #( 7353 universal) 7354 7355$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 7356 7357 ;; #( 7358 *) 7359 as_fn_error $? "unknown endianness 7360 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 7361 esac 7362 7363 7364 7365 7366 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then 7367 NATIVE_LINKER_TRUE= 7368 NATIVE_LINKER_FALSE='#' 7369else 7370 NATIVE_LINKER_TRUE='#' 7371 NATIVE_LINKER_FALSE= 7372fi 7373 7374 if test "$GCC" = yes; then 7375 GCC_TRUE= 7376 GCC_FALSE='#' 7377else 7378 GCC_TRUE='#' 7379 GCC_FALSE= 7380fi 7381 7382 7383 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then 7384 NATIVE_OR_CROSS_LINKER_TRUE= 7385 NATIVE_OR_CROSS_LINKER_FALSE='#' 7386else 7387 NATIVE_OR_CROSS_LINKER_TRUE='#' 7388 NATIVE_OR_CROSS_LINKER_FALSE= 7389fi 7390 7391 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5 7393$as_echo_n "checking whether static linking works... " >&6; } 7394if ${gold_cv_lib_static+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 LDFLAGS_hold=$LDFLAGS 7398LDFLAGS="$LDFLAGS -static" 7399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401 7402void f() { } 7403int 7404main () 7405{ 7406 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_c_try_link "$LINENO"; then : 7412 gold_cv_lib_static=yes 7413else 7414 gold_cv_lib_static=no 7415fi 7416rm -f core conftest.err conftest.$ac_objext \ 7417 conftest$ac_exeext conftest.$ac_ext 7418LDFLAGS=$LDFLAGS_hold 7419fi 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5 7421$as_echo "$gold_cv_lib_static" >&6; } 7422 if test "$gold_cv_lib_static" = "yes"; then 7423 HAVE_STATIC_TRUE= 7424 HAVE_STATIC_FALSE='#' 7425else 7426 HAVE_STATIC_TRUE='#' 7427 HAVE_STATIC_FALSE= 7428fi 7429 7430 7431 if 7432 case $target_cpu in 7433 powerpc*) false;; 7434 x86_64) false;; 7435 sparc64) false;; 7436 s390x) false;; 7437 *) true;; 7438 esac; then 7439 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE= 7440 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#' 7441else 7442 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#' 7443 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE= 7444fi 7445 7446 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5 7448$as_echo_n "checking for gcc >= 4.1... " >&6; } 7449if ${gold_cv_prog_gcc41+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454 7455#if !defined __GNUC__ 7456error 7457#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) 7458error 7459#endif 7460 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 gold_cv_prog_gcc41=yes 7464else 7465 gold_cv_prog_gcc41=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5 7470$as_echo "$gold_cv_prog_gcc41" >&6; } 7471 7472save_CFLAGS="$CFLAGS" 7473CFLAGS="$CFLAGS -mcmodel=medium" 7474cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477_ACEOF 7478if ac_fn_c_try_compile "$LINENO"; then : 7479 have_mcmodel_medium=yes 7480else 7481 have_mcmodel_medium=no 7482fi 7483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7484CFLAGS="$save_CFLAGS" 7485 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then 7486 MCMODEL_MEDIUM_TRUE= 7487 MCMODEL_MEDIUM_FALSE='#' 7488else 7489 MCMODEL_MEDIUM_TRUE='#' 7490 MCMODEL_MEDIUM_FALSE= 7491fi 7492 7493 7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5 7495$as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; } 7496if ${gold_cv_merge_constants+:} false; then : 7497 $as_echo_n "(cached) " >&6 7498else 7499 7500save_CFLAGS="$CFLAGS" 7501CFLAGS="$CFLAGS -fmerge-constants" 7502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7503/* end confdefs.h. */ 7504const char *s = "foo"; 7505_ACEOF 7506if ac_fn_c_try_compile "$LINENO"; then : 7507 gold_cv_merge_constants=yes 7508else 7509 gold_cv_merge_constants=no 7510fi 7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7512CFLAGS="$save_CFLAGS" 7513fi 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5 7515$as_echo "$gold_cv_merge_constants" >&6; } 7516 7517if test "$gold_cv_merge_constants" = yes; then : 7518 MERGE_CONSTANTS_FLAG=-fmerge-constants 7519else 7520 MERGE_CONSTANTS_FLAG= 7521fi 7522 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5 7524$as_echo_n "checking for thread support... " >&6; } 7525if ${gold_cv_c_thread+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530__thread int i = 1; 7531_ACEOF 7532if ac_fn_c_try_compile "$LINENO"; then : 7533 gold_cv_c_thread=yes 7534else 7535 gold_cv_c_thread=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7538fi 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5 7540$as_echo "$gold_cv_c_thread" >&6; } 7541 7542 if test "$gold_cv_c_thread" = "yes"; then 7543 TLS_TRUE= 7544 TLS_FALSE='#' 7545else 7546 TLS_TRUE='#' 7547 TLS_FALSE= 7548fi 7549 7550 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5 7552$as_echo_n "checking for glibc >= 2.4... " >&6; } 7553if ${gold_cv_lib_glibc24+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555else 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558 7559#include <features.h> 7560#if !defined __GLIBC__ 7561error 7562#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4) 7563error 7564#endif 7565 7566_ACEOF 7567if ac_fn_c_try_compile "$LINENO"; then : 7568 gold_cv_lib_glibc24=yes 7569else 7570 gold_cv_lib_glibc24=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7573fi 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5 7575$as_echo "$gold_cv_lib_glibc24" >&6; } 7576 7577 if test "$gold_cv_lib_glibc24" = "yes"; then 7578 STATIC_TLS_TRUE= 7579 STATIC_TLS_FALSE='#' 7580else 7581 STATIC_TLS_TRUE='#' 7582 STATIC_TLS_FALSE= 7583fi 7584 7585 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5 7587$as_echo_n "checking for omp support... " >&6; } 7588if ${gold_cv_c_threadprivate+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 save_CFLAGS="$CFLAGS" 7592CFLAGS="$CFLAGS -fopenmp" 7593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594/* end confdefs.h. */ 7595 7596#include <omp.h> 7597int i; 7598#pragma omp threadprivate (i) 7599 7600_ACEOF 7601if ac_fn_c_try_compile "$LINENO"; then : 7602 gold_cv_c_threadprivate=yes 7603else 7604 gold_cv_c_threadprivate=no 7605fi 7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7607CFLAGS="$save_CFLAGS" 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5 7610$as_echo "$gold_cv_c_threadprivate" >&6; } 7611if test "$gold_cv_c_threadprivate" = "yes"; then 7612 7613$as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h 7614 7615fi 7616 if test "$gold_cv_c_threadprivate" = "yes"; then 7617 OMP_SUPPORT_TRUE= 7618 OMP_SUPPORT_FALSE='#' 7619else 7620 OMP_SUPPORT_TRUE='#' 7621 OMP_SUPPORT_FALSE= 7622fi 7623 7624 7625save_CFLAGS="$CFLAGS" 7626CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2" 7627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629 7630__thread int i; 7631void foo (void) 7632{ 7633 i = 10; 7634} 7635 7636_ACEOF 7637if ac_fn_c_try_compile "$LINENO"; then : 7638 have_tls_gnu2=yes 7639else 7640 have_tls_gnu2=no 7641fi 7642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7643CFLAGS="$save_CFLAGS" 7644 if test "$have_tls_gnu2" = "yes"; then 7645 TLS_GNU2_DIALECT_TRUE= 7646 TLS_GNU2_DIALECT_FALSE='#' 7647else 7648 TLS_GNU2_DIALECT_TRUE='#' 7649 TLS_GNU2_DIALECT_FALSE= 7650fi 7651 7652 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5 7654$as_echo_n "checking for glibc >= 2.9... " >&6; } 7655if ${gold_cv_lib_glibc29+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660 7661#include <features.h> 7662#if !defined __GLIBC__ 7663error 7664#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9) 7665error 7666#endif 7667 7668_ACEOF 7669if ac_fn_c_try_compile "$LINENO"; then : 7670 gold_cv_lib_glibc29=yes 7671else 7672 gold_cv_lib_glibc29=no 7673fi 7674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7675fi 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5 7677$as_echo "$gold_cv_lib_glibc29" >&6; } 7678 7679 if test "$gold_cv_lib_glibc29" = "yes"; then 7680 TLS_DESCRIPTORS_TRUE= 7681 TLS_DESCRIPTORS_FALSE='#' 7682else 7683 TLS_DESCRIPTORS_TRUE='#' 7684 TLS_DESCRIPTORS_FALSE= 7685fi 7686 7687 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5 7689$as_echo_n "checking for -frandom-seed support... " >&6; } 7690if ${gold_cv_c_random_seed+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 save_CFLAGS="$CFLAGS" 7694CFLAGS="$CFLAGS -frandom-seed=foo" 7695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697int i; 7698_ACEOF 7699if ac_fn_c_try_compile "$LINENO"; then : 7700 gold_cv_c_random_seed=yes 7701else 7702 gold_cv_c_random_seed=no 7703fi 7704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7705CFLAGS="$save_CFLAGS" 7706fi 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5 7708$as_echo "$gold_cv_c_random_seed" >&6; } 7709if test "$gold_cv_c_random_seed" = "yes"; then 7710 # In Makefile, '$@' will be expanded to be the name of the file 7711 # being built, providing a unique seed for each file. 7712 RANDOM_SEED_CFLAGS=-frandom-seed=\$@ 7713fi 7714 7715 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5 7717$as_echo_n "checking for glibc ifunc support... " >&6; } 7718if ${gold_cv_lib_glibc_ifunc+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 save_LDFLAGS="$LDFLAGS" 7722LDFLAGS="$LDFLAGS -static" 7723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725 7726#include <features.h> 7727#if !defined __GLIBC__ 7728error 7729#elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11) 7730error 7731#endif 7732void func (void) { } 7733void invoke (void); 7734__asm__(".type invoke, %gnu_indirect_function"); 7735typedef void (*funcptr) (void); 7736funcptr dispatch (void) __asm__ ("invoke"); 7737funcptr dispatch (void) { return &func; } 7738int 7739main () 7740{ 7741invoke(); 7742 ; 7743 return 0; 7744} 7745 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 7749if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then 7750 gold_cv_lib_glibc_ifunc=both 7751else 7752 gold_cv_lib_glibc_ifunc=dyn 7753fi 7754else 7755 gold_cv_lib_glibc_ifunc=no 7756fi 7757rm -f core conftest.err conftest.$ac_objext \ 7758 conftest$ac_exeext conftest.$ac_ext 7759LDFLAGS="$save_LDFLAGS" 7760fi 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5 7762$as_echo "$gold_cv_lib_glibc_ifunc" >&6; } 7763 7764 if test "$gold_cv_lib_glibc_ifunc" != "no"; then 7765 IFUNC_TRUE= 7766 IFUNC_FALSE='#' 7767else 7768 IFUNC_TRUE='#' 7769 IFUNC_FALSE= 7770fi 7771 7772 if test "$gold_cv_lib_glibc_ifunc" = "both"; then 7773 IFUNC_STATIC_TRUE= 7774 IFUNC_STATIC_FALSE='#' 7775else 7776 IFUNC_STATIC_TRUE='#' 7777 IFUNC_STATIC_FALSE= 7778fi 7779 7780 7781 7782# Set the 'development' global. 7783. $srcdir/../bfd/development.sh 7784 7785# Set acp_cpp_for_build variable 7786ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 7787 7788# Default set of GCC warnings to enable. 7789GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 7790GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 7791 7792# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 7793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794/* end confdefs.h. */ 7795__GNUC__ 7796_ACEOF 7797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7798 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 7799 7800else 7801 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 7802fi 7803rm -f conftest* 7804 7805 7806# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 7807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7808/* end confdefs.h. */ 7809__GNUC__ 7810_ACEOF 7811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7812 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 7813 7814else 7815 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 7816fi 7817rm -f conftest* 7818 7819 7820# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 7821WARN_WRITE_STRINGS="" 7822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7823/* end confdefs.h. */ 7824__GNUC__ 7825_ACEOF 7826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7827 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 7828 7829else 7830 WARN_WRITE_STRINGS="-Wwrite-strings" 7831fi 7832rm -f conftest* 7833 7834 7835# Verify CC_FOR_BUILD to be compatible with warning flags 7836 7837# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 7838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7839/* end confdefs.h. */ 7840__GNUC__ 7841_ACEOF 7842if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 7843 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 7844 7845else 7846 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 7847fi 7848rm -f conftest* 7849 7850 7851# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 7852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7853/* end confdefs.h. */ 7854__GNUC__ 7855_ACEOF 7856if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 7857 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 7858 7859else 7860 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 7861fi 7862rm -f conftest* 7863 7864 7865# Check whether --enable-werror was given. 7866if test "${enable_werror+set}" = set; then : 7867 enableval=$enable_werror; case "${enableval}" in 7868 yes | y) ERROR_ON_WARNING="yes" ;; 7869 no | n) ERROR_ON_WARNING="no" ;; 7870 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 7871 esac 7872fi 7873 7874 7875# Disable -Wformat by default when using gcc on mingw 7876case "${host}" in 7877 *-*-mingw32*) 7878 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 7879 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 7880 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 7881 fi 7882 ;; 7883 *) ;; 7884esac 7885 7886# Enable -Werror by default when using gcc. Turn it off for releases. 7887if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 7888 ERROR_ON_WARNING=yes 7889fi 7890 7891NO_WERROR= 7892if test "${ERROR_ON_WARNING}" = yes ; then 7893 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 7894 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 7895 NO_WERROR="-Wno-error" 7896fi 7897 7898if test "${GCC}" = yes ; then 7899 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 7900 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 7901fi 7902 7903# Check whether --enable-build-warnings was given. 7904if test "${enable_build_warnings+set}" = set; then : 7905 enableval=$enable_build_warnings; case "${enableval}" in 7906 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 7907 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 7908 no) if test "${GCC}" = yes ; then 7909 WARN_CFLAGS="-w" 7910 WARN_CFLAGS_FOR_BUILD="-w" 7911 fi;; 7912 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 7913 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 7914 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 7915 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 7916 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 7917 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 7918 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 7919 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 7920esac 7921fi 7922 7923 7924if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 7925 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 7926fi 7927 7928 7929 7930 7931 7932 7933 7934WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'` 7935 7936 7937 7938# Check whether --with-gold-ldflags was given. 7939if test "${with_gold_ldflags+set}" = set; then : 7940 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then 7941 GOLD_LDFLAGS= 7942 else 7943 GOLD_LDFLAGS=$withval 7944 fi 7945else 7946 GOLD_LDFLAGS= 7947fi 7948 7949 7950 7951 7952# Check whether --with-gold-ldadd was given. 7953if test "${with_gold_ldadd+set}" = set; then : 7954 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then 7955 GOLD_LDADD= 7956 else 7957 GOLD_LDADD=$withval 7958 fi 7959else 7960 GOLD_LDADD= 7961fi 7962 7963 7964 7965LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 7966 7967 7968for ac_header in sys/mman.h 7969do : 7970 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 7971if test "x$ac_cv_header_sys_mman_h" = xyes; then : 7972 cat >>confdefs.h <<_ACEOF 7973#define HAVE_SYS_MMAN_H 1 7974_ACEOF 7975 7976fi 7977 7978done 7979 7980for ac_func in chsize mmap link 7981do : 7982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7983ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7984if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7985 cat >>confdefs.h <<_ACEOF 7986#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7987_ACEOF 7988 7989fi 7990done 7991 7992ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 7993if test "x$ac_cv_func_pread" = xyes; then : 7994 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 7995 7996else 7997 case " $LIBOBJS " in 7998 *" pread.$ac_objext "* ) ;; 7999 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 8000 ;; 8001esac 8002 8003fi 8004 8005ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 8006if test "x$ac_cv_func_ftruncate" = xyes; then : 8007 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h 8008 8009else 8010 case " $LIBOBJS " in 8011 *" ftruncate.$ac_objext "* ) ;; 8012 *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext" 8013 ;; 8014esac 8015 8016fi 8017 8018ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll" 8019if test "x$ac_cv_func_ffsll" = xyes; then : 8020 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h 8021 8022else 8023 case " $LIBOBJS " in 8024 *" ffsll.$ac_objext "* ) ;; 8025 *) LIBOBJS="$LIBOBJS ffsll.$ac_objext" 8026 ;; 8027esac 8028 8029fi 8030 8031 8032 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5 8034$as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; } 8035if ${gold_cv_lib_mremap_maymove+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8039/* end confdefs.h. */ 8040 8041 8042#include <sys/mman.h> 8043void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); } 8044 8045int 8046main () 8047{ 8048 8049 ; 8050 return 0; 8051} 8052_ACEOF 8053if ac_fn_c_try_link "$LINENO"; then : 8054 gold_cv_lib_mremap_maymove=yes 8055else 8056 gold_cv_lib_mremap_maymove=no 8057fi 8058rm -f core conftest.err conftest.$ac_objext \ 8059 conftest$ac_exeext conftest.$ac_ext 8060fi 8061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5 8062$as_echo "$gold_cv_lib_mremap_maymove" >&6; } 8063if test "$gold_cv_lib_mremap_maymove" = "yes"; then 8064 8065$as_echo "#define HAVE_MREMAP 1" >>confdefs.h 8066 8067else 8068 case " $LIBOBJS " in 8069 *" mremap.$ac_objext "* ) ;; 8070 *) LIBOBJS="$LIBOBJS mremap.$ac_objext" 8071 ;; 8072esac 8073 8074fi 8075 8076# Link in zlib if we can. This allows us to write compressed sections. 8077 8078 # Use the system's zlib library. 8079 zlibdir="-L\$(top_builddir)/../zlib" 8080 zlibinc="-I\$(top_srcdir)/../zlib" 8081 8082# Check whether --with-system-zlib was given. 8083if test "${with_system_zlib+set}" = set; then : 8084 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 8085 zlibdir= 8086 zlibinc= 8087 fi 8088 8089fi 8090 8091 8092 8093 8094 8095# Check whether --enable-threads was given. 8096if test "${enable_threads+set}" = set; then : 8097 enableval=$enable_threads; case "${enableval}" in 8098 yes | "") threads=yes ;; 8099 no) threads=no ;; 8100 auto) threads=auto ;; 8101 *) threads=yes ;; 8102 esac 8103else 8104 threads=auto 8105fi 8106 8107 8108if test "$threads" = "yes"; then 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8110$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8111if ${ac_cv_path_SED+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113else 8114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8115 for ac_i in 1 2 3 4 5 6 7; do 8116 ac_script="$ac_script$as_nl$ac_script" 8117 done 8118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8119 { ac_script=; unset ac_script;} 8120 if test -z "$SED"; then 8121 ac_path_SED_found=false 8122 # Loop through the user's path and test for each of PROGNAME-LIST 8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8124for as_dir in $PATH 8125do 8126 IFS=$as_save_IFS 8127 test -z "$as_dir" && as_dir=. 8128 for ac_prog in sed gsed; do 8129 for ac_exec_ext in '' $ac_executable_extensions; do 8130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8131 as_fn_executable_p "$ac_path_SED" || continue 8132# Check for GNU ac_path_SED and select it if it is found. 8133 # Check for GNU $ac_path_SED 8134case `"$ac_path_SED" --version 2>&1` in 8135*GNU*) 8136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8137*) 8138 ac_count=0 8139 $as_echo_n 0123456789 >"conftest.in" 8140 while : 8141 do 8142 cat "conftest.in" "conftest.in" >"conftest.tmp" 8143 mv "conftest.tmp" "conftest.in" 8144 cp "conftest.in" "conftest.nl" 8145 $as_echo '' >> "conftest.nl" 8146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8148 as_fn_arith $ac_count + 1 && ac_count=$as_val 8149 if test $ac_count -gt ${ac_path_SED_max-0}; then 8150 # Best one so far, save it but keep looking for a better one 8151 ac_cv_path_SED="$ac_path_SED" 8152 ac_path_SED_max=$ac_count 8153 fi 8154 # 10*(2^10) chars as input seems more than enough 8155 test $ac_count -gt 10 && break 8156 done 8157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8158esac 8159 8160 $ac_path_SED_found && break 3 8161 done 8162 done 8163 done 8164IFS=$as_save_IFS 8165 if test -z "$ac_cv_path_SED"; then 8166 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8167 fi 8168else 8169 ac_cv_path_SED=$SED 8170fi 8171 8172fi 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8174$as_echo "$ac_cv_path_SED" >&6; } 8175 SED="$ac_cv_path_SED" 8176 rm -f conftest.sed 8177 8178 8179 8180 8181 8182ac_ext=c 8183ac_cpp='$CPP $CPPFLAGS' 8184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8186ac_compiler_gnu=$ac_cv_c_compiler_gnu 8187 8188ax_pthread_ok=no 8189 8190# We used to check for pthread.h first, but this fails if pthread.h 8191# requires special compiler flags (e.g. on Tru64 or Sequent). 8192# It gets checked for in the link test anyway. 8193 8194# First of all, check if the user has set any of the PTHREAD_LIBS, 8195# etcetera environment variables, and if threads linking works using 8196# them: 8197if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 8198 ax_pthread_save_CC="$CC" 8199 ax_pthread_save_CFLAGS="$CFLAGS" 8200 ax_pthread_save_LIBS="$LIBS" 8201 if test "x$PTHREAD_CC" != "x"; then : 8202 CC="$PTHREAD_CC" 8203fi 8204 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8205 LIBS="$PTHREAD_LIBS $LIBS" 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 8207$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209/* end confdefs.h. */ 8210 8211/* Override any GCC internal prototype to avoid an error. 8212 Use char because int might match the return type of a GCC 8213 builtin and then its argument prototype would still apply. */ 8214#ifdef __cplusplus 8215extern "C" 8216#endif 8217char pthread_join (); 8218int 8219main () 8220{ 8221return pthread_join (); 8222 ; 8223 return 0; 8224} 8225_ACEOF 8226if ac_fn_c_try_link "$LINENO"; then : 8227 ax_pthread_ok=yes 8228fi 8229rm -f core conftest.err conftest.$ac_objext \ 8230 conftest$ac_exeext conftest.$ac_ext 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 8232$as_echo "$ax_pthread_ok" >&6; } 8233 if test "x$ax_pthread_ok" = "xno"; then 8234 PTHREAD_LIBS="" 8235 PTHREAD_CFLAGS="" 8236 fi 8237 CC="$ax_pthread_save_CC" 8238 CFLAGS="$ax_pthread_save_CFLAGS" 8239 LIBS="$ax_pthread_save_LIBS" 8240fi 8241 8242# We must check for the threads library under a number of different 8243# names; the ordering is very important because some systems 8244# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 8245# libraries is broken (non-POSIX). 8246 8247# Create a list of thread flags to try. Items starting with a "-" are 8248# C compiler flags, and other items are library names, except for "none" 8249# which indicates that we try without any flags at all, and "pthread-config" 8250# which is a program returning the flags for the Pth emulation library. 8251 8252ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 8253 8254# The ordering *is* (sometimes) important. Some notes on the 8255# individual items follow: 8256 8257# pthreads: AIX (must check this before -lpthread) 8258# none: in case threads are in libc; should be tried before -Kthread and 8259# other compiler flags to prevent continual compiler warnings 8260# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 8261# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 8262# (Note: HP C rejects this with "bad form for `-t' option") 8263# -pthreads: Solaris/gcc (Note: HP C also rejects) 8264# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 8265# doesn't hurt to check since this sometimes defines pthreads and 8266# -D_REENTRANT too), HP C (must be checked before -lpthread, which 8267# is present but should not be used directly; and before -mthreads, 8268# because the compiler interprets this as "-mt" + "-hreads") 8269# -mthreads: Mingw32/gcc, Lynx/gcc 8270# pthread: Linux, etcetera 8271# --thread-safe: KAI C++ 8272# pthread-config: use pthread-config program (for GNU Pth library) 8273 8274case $host_os in 8275 8276 freebsd*) 8277 8278 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 8279 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 8280 8281 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 8282 ;; 8283 8284 hpux*) 8285 8286 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 8287 # multi-threading and also sets -lpthread." 8288 8289 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 8290 ;; 8291 8292 openedition*) 8293 8294 # IBM z/OS requires a feature-test macro to be defined in order to 8295 # enable POSIX threads at all, so give the user a hint if this is 8296 # not set. (We don't define these ourselves, as they can affect 8297 # other portions of the system API in unpredictable ways.) 8298 8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8300/* end confdefs.h. */ 8301 8302# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 8303 AX_PTHREAD_ZOS_MISSING 8304# endif 8305 8306_ACEOF 8307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8308 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 8310$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 8311fi 8312rm -f conftest* 8313 8314 ;; 8315 8316 solaris*) 8317 8318 # On Solaris (at least, for some versions), libc contains stubbed 8319 # (non-functional) versions of the pthreads routines, so link-based 8320 # tests will erroneously succeed. (N.B.: The stubs are missing 8321 # pthread_cleanup_push, or rather a function called by this macro, 8322 # so we could check for that, but who knows whether they'll stub 8323 # that too in a future libc.) So we'll check first for the 8324 # standard Solaris way of linking pthreads (-mt -lpthread). 8325 8326 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 8327 ;; 8328esac 8329 8330# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 8331 8332if test "x$GCC" = "xyes"; then : 8333 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 8334fi 8335 8336# The presence of a feature test macro requesting re-entrant function 8337# definitions is, on some systems, a strong hint that pthreads support is 8338# correctly enabled 8339 8340case $host_os in 8341 darwin* | hpux* | linux* | osf* | solaris*) 8342 ax_pthread_check_macro="_REENTRANT" 8343 ;; 8344 8345 aix*) 8346 ax_pthread_check_macro="_THREAD_SAFE" 8347 ;; 8348 8349 *) 8350 ax_pthread_check_macro="--" 8351 ;; 8352esac 8353if test "x$ax_pthread_check_macro" = "x--"; then : 8354 ax_pthread_check_cond=0 8355else 8356 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 8357fi 8358 8359# Are we compiling with Clang? 8360 8361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 8362$as_echo_n "checking whether $CC is Clang... " >&6; } 8363if ${ax_cv_PTHREAD_CLANG+:} false; then : 8364 $as_echo_n "(cached) " >&6 8365else 8366 ax_cv_PTHREAD_CLANG=no 8367 # Note that Autoconf sets GCC=yes for Clang as well as GCC 8368 if test "x$GCC" = "xyes"; then 8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8370/* end confdefs.h. */ 8371/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 8372# if defined(__clang__) && defined(__llvm__) 8373 AX_PTHREAD_CC_IS_CLANG 8374# endif 8375 8376_ACEOF 8377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8378 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 8379 ax_cv_PTHREAD_CLANG=yes 8380fi 8381rm -f conftest* 8382 8383 fi 8384 8385fi 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 8387$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 8388ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 8389 8390ax_pthread_clang_warning=no 8391 8392# Clang needs special handling, because older versions handle the -pthread 8393# option in a rather... idiosyncratic way 8394 8395if test "x$ax_pthread_clang" = "xyes"; then 8396 8397 # Clang takes -pthread; it has never supported any other flag 8398 8399 # (Note 1: This will need to be revisited if a system that Clang 8400 # supports has POSIX threads in a separate library. This tends not 8401 # to be the way of modern systems, but it's conceivable.) 8402 8403 # (Note 2: On some systems, notably Darwin, -pthread is not needed 8404 # to get POSIX threads support; the API is always present and 8405 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 8406 # -pthread does define _REENTRANT, and while the Darwin headers 8407 # ignore this macro, third-party headers might not.) 8408 8409 PTHREAD_CFLAGS="-pthread" 8410 PTHREAD_LIBS= 8411 8412 ax_pthread_ok=yes 8413 8414 # However, older versions of Clang make a point of warning the user 8415 # that, in an invocation where only linking and no compilation is 8416 # taking place, the -pthread option has no effect ("argument unused 8417 # during compilation"). They expect -pthread to be passed in only 8418 # when source code is being compiled. 8419 # 8420 # Problem is, this is at odds with the way Automake and most other 8421 # C build frameworks function, which is that the same flags used in 8422 # compilation (CFLAGS) are also used in linking. Many systems 8423 # supported by AX_PTHREAD require exactly this for POSIX threads 8424 # support, and in fact it is often not straightforward to specify a 8425 # flag that is used only in the compilation phase and not in 8426 # linking. Such a scenario is extremely rare in practice. 8427 # 8428 # Even though use of the -pthread flag in linking would only print 8429 # a warning, this can be a nuisance for well-run software projects 8430 # that build with -Werror. So if the active version of Clang has 8431 # this misfeature, we search for an option to squash it. 8432 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 8434$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 8435if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 8439 # Create an alternate version of $ac_link that compiles and 8440 # links in two steps (.c -> .o, .o -> exe) instead of one 8441 # (.c -> exe), because the warning occurs only in the second 8442 # step 8443 ax_pthread_save_ac_link="$ac_link" 8444 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 8445 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 8446 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 8447 ax_pthread_save_CFLAGS="$CFLAGS" 8448 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 8449 if test "x$ax_pthread_try" = "xunknown"; then : 8450 break 8451fi 8452 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 8453 ac_link="$ax_pthread_save_ac_link" 8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8455/* end confdefs.h. */ 8456int main(void){return 0;} 8457_ACEOF 8458if ac_fn_c_try_link "$LINENO"; then : 8459 ac_link="$ax_pthread_2step_ac_link" 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int main(void){return 0;} 8463_ACEOF 8464if ac_fn_c_try_link "$LINENO"; then : 8465 break 8466fi 8467rm -f core conftest.err conftest.$ac_objext \ 8468 conftest$ac_exeext conftest.$ac_ext 8469 8470fi 8471rm -f core conftest.err conftest.$ac_objext \ 8472 conftest$ac_exeext conftest.$ac_ext 8473 done 8474 ac_link="$ax_pthread_save_ac_link" 8475 CFLAGS="$ax_pthread_save_CFLAGS" 8476 if test "x$ax_pthread_try" = "x"; then : 8477 ax_pthread_try=no 8478fi 8479 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 8480 8481fi 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 8483$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 8484 8485 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 8486 no | unknown) ;; 8487 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 8488 esac 8489 8490fi # $ax_pthread_clang = yes 8491 8492if test "x$ax_pthread_ok" = "xno"; then 8493for ax_pthread_try_flag in $ax_pthread_flags; do 8494 8495 case $ax_pthread_try_flag in 8496 none) 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 8498$as_echo_n "checking whether pthreads work without any flags... " >&6; } 8499 ;; 8500 8501 -mt,pthread) 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 8503$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 8504 PTHREAD_CFLAGS="-mt" 8505 PTHREAD_LIBS="-lpthread" 8506 ;; 8507 8508 -*) 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 8510$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 8511 PTHREAD_CFLAGS="$ax_pthread_try_flag" 8512 ;; 8513 8514 pthread-config) 8515 # Extract the first word of "pthread-config", so it can be a program name with args. 8516set dummy pthread-config; ac_word=$2 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8518$as_echo_n "checking for $ac_word... " >&6; } 8519if ${ac_cv_prog_ax_pthread_config+:} false; then : 8520 $as_echo_n "(cached) " >&6 8521else 8522 if test -n "$ax_pthread_config"; then 8523 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 8524else 8525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8526for as_dir in $PATH 8527do 8528 IFS=$as_save_IFS 8529 test -z "$as_dir" && as_dir=. 8530 for ac_exec_ext in '' $ac_executable_extensions; do 8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8532 ac_cv_prog_ax_pthread_config="yes" 8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8534 break 2 8535 fi 8536done 8537 done 8538IFS=$as_save_IFS 8539 8540 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 8541fi 8542fi 8543ax_pthread_config=$ac_cv_prog_ax_pthread_config 8544if test -n "$ax_pthread_config"; then 8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 8546$as_echo "$ax_pthread_config" >&6; } 8547else 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8549$as_echo "no" >&6; } 8550fi 8551 8552 8553 if test "x$ax_pthread_config" = "xno"; then : 8554 continue 8555fi 8556 PTHREAD_CFLAGS="`pthread-config --cflags`" 8557 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 8558 ;; 8559 8560 *) 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 8562$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 8563 PTHREAD_LIBS="-l$ax_pthread_try_flag" 8564 ;; 8565 esac 8566 8567 ax_pthread_save_CFLAGS="$CFLAGS" 8568 ax_pthread_save_LIBS="$LIBS" 8569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8570 LIBS="$PTHREAD_LIBS $LIBS" 8571 8572 # Check for various functions. We must include pthread.h, 8573 # since some functions may be macros. (On the Sequent, we 8574 # need a special flag -Kthread to make this header compile.) 8575 # We check for pthread_join because it is in -lpthread on IRIX 8576 # while pthread_create is in libc. We check for pthread_attr_init 8577 # due to DEC craziness with -lpthreads. We check for 8578 # pthread_cleanup_push because it is one of the few pthread 8579 # functions on Solaris that doesn't have a non-functional libc stub. 8580 # We try pthread_create on general principles. 8581 8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584#include <pthread.h> 8585# if $ax_pthread_check_cond 8586# error "$ax_pthread_check_macro must be defined" 8587# endif 8588 static void routine(void *a) { a = 0; } 8589 static void *start_routine(void *a) { return a; } 8590int 8591main () 8592{ 8593pthread_t th; pthread_attr_t attr; 8594 pthread_create(&th, 0, start_routine, 0); 8595 pthread_join(th, 0); 8596 pthread_attr_init(&attr); 8597 pthread_cleanup_push(routine, 0); 8598 pthread_cleanup_pop(0) /* ; */ 8599 ; 8600 return 0; 8601} 8602_ACEOF 8603if ac_fn_c_try_link "$LINENO"; then : 8604 ax_pthread_ok=yes 8605fi 8606rm -f core conftest.err conftest.$ac_objext \ 8607 conftest$ac_exeext conftest.$ac_ext 8608 8609 CFLAGS="$ax_pthread_save_CFLAGS" 8610 LIBS="$ax_pthread_save_LIBS" 8611 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 8613$as_echo "$ax_pthread_ok" >&6; } 8614 if test "x$ax_pthread_ok" = "xyes"; then : 8615 break 8616fi 8617 8618 PTHREAD_LIBS="" 8619 PTHREAD_CFLAGS="" 8620done 8621fi 8622 8623# Various other checks: 8624if test "x$ax_pthread_ok" = "xyes"; then 8625 ax_pthread_save_CFLAGS="$CFLAGS" 8626 ax_pthread_save_LIBS="$LIBS" 8627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8628 LIBS="$PTHREAD_LIBS $LIBS" 8629 8630 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 8632$as_echo_n "checking for joinable pthread attribute... " >&6; } 8633if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 8634 $as_echo_n "(cached) " >&6 8635else 8636 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 8637 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8639/* end confdefs.h. */ 8640#include <pthread.h> 8641int 8642main () 8643{ 8644int attr = $ax_pthread_attr; return attr /* ; */ 8645 ; 8646 return 0; 8647} 8648_ACEOF 8649if ac_fn_c_try_link "$LINENO"; then : 8650 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 8651fi 8652rm -f core conftest.err conftest.$ac_objext \ 8653 conftest$ac_exeext conftest.$ac_ext 8654 done 8655 8656fi 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 8658$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 8659 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 8660 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 8661 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 8662 8663cat >>confdefs.h <<_ACEOF 8664#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 8665_ACEOF 8666 8667 ax_pthread_joinable_attr_defined=yes 8668 8669fi 8670 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 8672$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 8673if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 8674 $as_echo_n "(cached) " >&6 8675else 8676 ax_cv_PTHREAD_SPECIAL_FLAGS=no 8677 case $host_os in 8678 solaris*) 8679 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 8680 ;; 8681 esac 8682 8683fi 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 8685$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 8686 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 8687 test "x$ax_pthread_special_flags_added" != "xyes"; then : 8688 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 8689 ax_pthread_special_flags_added=yes 8690fi 8691 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 8693$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 8694if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696else 8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8698/* end confdefs.h. */ 8699#include <pthread.h> 8700int 8701main () 8702{ 8703int i = PTHREAD_PRIO_INHERIT; 8704 ; 8705 return 0; 8706} 8707_ACEOF 8708if ac_fn_c_try_link "$LINENO"; then : 8709 ax_cv_PTHREAD_PRIO_INHERIT=yes 8710else 8711 ax_cv_PTHREAD_PRIO_INHERIT=no 8712fi 8713rm -f core conftest.err conftest.$ac_objext \ 8714 conftest$ac_exeext conftest.$ac_ext 8715 8716fi 8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 8718$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 8719 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 8720 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 8721 8722$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 8723 8724 ax_pthread_prio_inherit_defined=yes 8725 8726fi 8727 8728 CFLAGS="$ax_pthread_save_CFLAGS" 8729 LIBS="$ax_pthread_save_LIBS" 8730 8731 # More AIX lossage: compile with *_r variant 8732 if test "x$GCC" != "xyes"; then 8733 case $host_os in 8734 aix*) 8735 case "x/$CC" in #( 8736 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 8737 #handle absolute path differently from PATH based program lookup 8738 case "x$CC" in #( 8739 x/*) : 8740 if as_fn_executable_p ${CC}_r; then : 8741 PTHREAD_CC="${CC}_r" 8742fi ;; #( 8743 *) : 8744 for ac_prog in ${CC}_r 8745do 8746 # Extract the first word of "$ac_prog", so it can be a program name with args. 8747set dummy $ac_prog; ac_word=$2 8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8749$as_echo_n "checking for $ac_word... " >&6; } 8750if ${ac_cv_prog_PTHREAD_CC+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 if test -n "$PTHREAD_CC"; then 8754 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 8755else 8756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8757for as_dir in $PATH 8758do 8759 IFS=$as_save_IFS 8760 test -z "$as_dir" && as_dir=. 8761 for ac_exec_ext in '' $ac_executable_extensions; do 8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8763 ac_cv_prog_PTHREAD_CC="$ac_prog" 8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8765 break 2 8766 fi 8767done 8768 done 8769IFS=$as_save_IFS 8770 8771fi 8772fi 8773PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 8774if test -n "$PTHREAD_CC"; then 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 8776$as_echo "$PTHREAD_CC" >&6; } 8777else 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8779$as_echo "no" >&6; } 8780fi 8781 8782 8783 test -n "$PTHREAD_CC" && break 8784done 8785test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 8786 ;; 8787esac ;; #( 8788 *) : 8789 ;; 8790esac 8791 ;; 8792 esac 8793 fi 8794fi 8795 8796test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 8797 8798 8799 8800 8801 8802# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 8803if test "x$ax_pthread_ok" = "xyes"; then 8804 threads=yes 8805 : 8806else 8807 ax_pthread_ok=no 8808 as_fn_error $? "pthread not found" "$LINENO" 5 8809fi 8810ac_ext=c 8811ac_cpp='$CPP $CPPFLAGS' 8812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8814ac_compiler_gnu=$ac_cv_c_compiler_gnu 8815 8816 8817elif test "$threads" = "auto"; then 8818 8819 8820 8821 8822ac_ext=c 8823ac_cpp='$CPP $CPPFLAGS' 8824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8826ac_compiler_gnu=$ac_cv_c_compiler_gnu 8827 8828ax_pthread_ok=no 8829 8830# We used to check for pthread.h first, but this fails if pthread.h 8831# requires special compiler flags (e.g. on Tru64 or Sequent). 8832# It gets checked for in the link test anyway. 8833 8834# First of all, check if the user has set any of the PTHREAD_LIBS, 8835# etcetera environment variables, and if threads linking works using 8836# them: 8837if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 8838 ax_pthread_save_CC="$CC" 8839 ax_pthread_save_CFLAGS="$CFLAGS" 8840 ax_pthread_save_LIBS="$LIBS" 8841 if test "x$PTHREAD_CC" != "x"; then : 8842 CC="$PTHREAD_CC" 8843fi 8844 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 8845 LIBS="$PTHREAD_LIBS $LIBS" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 8847$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 8848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8849/* end confdefs.h. */ 8850 8851/* Override any GCC internal prototype to avoid an error. 8852 Use char because int might match the return type of a GCC 8853 builtin and then its argument prototype would still apply. */ 8854#ifdef __cplusplus 8855extern "C" 8856#endif 8857char pthread_join (); 8858int 8859main () 8860{ 8861return pthread_join (); 8862 ; 8863 return 0; 8864} 8865_ACEOF 8866if ac_fn_c_try_link "$LINENO"; then : 8867 ax_pthread_ok=yes 8868fi 8869rm -f core conftest.err conftest.$ac_objext \ 8870 conftest$ac_exeext conftest.$ac_ext 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 8872$as_echo "$ax_pthread_ok" >&6; } 8873 if test "x$ax_pthread_ok" = "xno"; then 8874 PTHREAD_LIBS="" 8875 PTHREAD_CFLAGS="" 8876 fi 8877 CC="$ax_pthread_save_CC" 8878 CFLAGS="$ax_pthread_save_CFLAGS" 8879 LIBS="$ax_pthread_save_LIBS" 8880fi 8881 8882# We must check for the threads library under a number of different 8883# names; the ordering is very important because some systems 8884# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 8885# libraries is broken (non-POSIX). 8886 8887# Create a list of thread flags to try. Items starting with a "-" are 8888# C compiler flags, and other items are library names, except for "none" 8889# which indicates that we try without any flags at all, and "pthread-config" 8890# which is a program returning the flags for the Pth emulation library. 8891 8892ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 8893 8894# The ordering *is* (sometimes) important. Some notes on the 8895# individual items follow: 8896 8897# pthreads: AIX (must check this before -lpthread) 8898# none: in case threads are in libc; should be tried before -Kthread and 8899# other compiler flags to prevent continual compiler warnings 8900# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 8901# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 8902# (Note: HP C rejects this with "bad form for `-t' option") 8903# -pthreads: Solaris/gcc (Note: HP C also rejects) 8904# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 8905# doesn't hurt to check since this sometimes defines pthreads and 8906# -D_REENTRANT too), HP C (must be checked before -lpthread, which 8907# is present but should not be used directly; and before -mthreads, 8908# because the compiler interprets this as "-mt" + "-hreads") 8909# -mthreads: Mingw32/gcc, Lynx/gcc 8910# pthread: Linux, etcetera 8911# --thread-safe: KAI C++ 8912# pthread-config: use pthread-config program (for GNU Pth library) 8913 8914case $host_os in 8915 8916 freebsd*) 8917 8918 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 8919 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 8920 8921 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 8922 ;; 8923 8924 hpux*) 8925 8926 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 8927 # multi-threading and also sets -lpthread." 8928 8929 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 8930 ;; 8931 8932 openedition*) 8933 8934 # IBM z/OS requires a feature-test macro to be defined in order to 8935 # enable POSIX threads at all, so give the user a hint if this is 8936 # not set. (We don't define these ourselves, as they can affect 8937 # other portions of the system API in unpredictable ways.) 8938 8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8940/* end confdefs.h. */ 8941 8942# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 8943 AX_PTHREAD_ZOS_MISSING 8944# endif 8945 8946_ACEOF 8947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8948 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 8950$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 8951fi 8952rm -f conftest* 8953 8954 ;; 8955 8956 solaris*) 8957 8958 # On Solaris (at least, for some versions), libc contains stubbed 8959 # (non-functional) versions of the pthreads routines, so link-based 8960 # tests will erroneously succeed. (N.B.: The stubs are missing 8961 # pthread_cleanup_push, or rather a function called by this macro, 8962 # so we could check for that, but who knows whether they'll stub 8963 # that too in a future libc.) So we'll check first for the 8964 # standard Solaris way of linking pthreads (-mt -lpthread). 8965 8966 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 8967 ;; 8968esac 8969 8970# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 8971 8972if test "x$GCC" = "xyes"; then : 8973 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 8974fi 8975 8976# The presence of a feature test macro requesting re-entrant function 8977# definitions is, on some systems, a strong hint that pthreads support is 8978# correctly enabled 8979 8980case $host_os in 8981 darwin* | hpux* | linux* | osf* | solaris*) 8982 ax_pthread_check_macro="_REENTRANT" 8983 ;; 8984 8985 aix*) 8986 ax_pthread_check_macro="_THREAD_SAFE" 8987 ;; 8988 8989 *) 8990 ax_pthread_check_macro="--" 8991 ;; 8992esac 8993if test "x$ax_pthread_check_macro" = "x--"; then : 8994 ax_pthread_check_cond=0 8995else 8996 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 8997fi 8998 8999# Are we compiling with Clang? 9000 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 9002$as_echo_n "checking whether $CC is Clang... " >&6; } 9003if ${ax_cv_PTHREAD_CLANG+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 ax_cv_PTHREAD_CLANG=no 9007 # Note that Autoconf sets GCC=yes for Clang as well as GCC 9008 if test "x$GCC" = "xyes"; then 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010/* end confdefs.h. */ 9011/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 9012# if defined(__clang__) && defined(__llvm__) 9013 AX_PTHREAD_CC_IS_CLANG 9014# endif 9015 9016_ACEOF 9017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9018 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 9019 ax_cv_PTHREAD_CLANG=yes 9020fi 9021rm -f conftest* 9022 9023 fi 9024 9025fi 9026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 9027$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 9028ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 9029 9030ax_pthread_clang_warning=no 9031 9032# Clang needs special handling, because older versions handle the -pthread 9033# option in a rather... idiosyncratic way 9034 9035if test "x$ax_pthread_clang" = "xyes"; then 9036 9037 # Clang takes -pthread; it has never supported any other flag 9038 9039 # (Note 1: This will need to be revisited if a system that Clang 9040 # supports has POSIX threads in a separate library. This tends not 9041 # to be the way of modern systems, but it's conceivable.) 9042 9043 # (Note 2: On some systems, notably Darwin, -pthread is not needed 9044 # to get POSIX threads support; the API is always present and 9045 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 9046 # -pthread does define _REENTRANT, and while the Darwin headers 9047 # ignore this macro, third-party headers might not.) 9048 9049 PTHREAD_CFLAGS="-pthread" 9050 PTHREAD_LIBS= 9051 9052 ax_pthread_ok=yes 9053 9054 # However, older versions of Clang make a point of warning the user 9055 # that, in an invocation where only linking and no compilation is 9056 # taking place, the -pthread option has no effect ("argument unused 9057 # during compilation"). They expect -pthread to be passed in only 9058 # when source code is being compiled. 9059 # 9060 # Problem is, this is at odds with the way Automake and most other 9061 # C build frameworks function, which is that the same flags used in 9062 # compilation (CFLAGS) are also used in linking. Many systems 9063 # supported by AX_PTHREAD require exactly this for POSIX threads 9064 # support, and in fact it is often not straightforward to specify a 9065 # flag that is used only in the compilation phase and not in 9066 # linking. Such a scenario is extremely rare in practice. 9067 # 9068 # Even though use of the -pthread flag in linking would only print 9069 # a warning, this can be a nuisance for well-run software projects 9070 # that build with -Werror. So if the active version of Clang has 9071 # this misfeature, we search for an option to squash it. 9072 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 9074$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 9075if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 9076 $as_echo_n "(cached) " >&6 9077else 9078 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 9079 # Create an alternate version of $ac_link that compiles and 9080 # links in two steps (.c -> .o, .o -> exe) instead of one 9081 # (.c -> exe), because the warning occurs only in the second 9082 # step 9083 ax_pthread_save_ac_link="$ac_link" 9084 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 9085 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 9086 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 9087 ax_pthread_save_CFLAGS="$CFLAGS" 9088 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 9089 if test "x$ax_pthread_try" = "xunknown"; then : 9090 break 9091fi 9092 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 9093 ac_link="$ax_pthread_save_ac_link" 9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9095/* end confdefs.h. */ 9096int main(void){return 0;} 9097_ACEOF 9098if ac_fn_c_try_link "$LINENO"; then : 9099 ac_link="$ax_pthread_2step_ac_link" 9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9101/* end confdefs.h. */ 9102int main(void){return 0;} 9103_ACEOF 9104if ac_fn_c_try_link "$LINENO"; then : 9105 break 9106fi 9107rm -f core conftest.err conftest.$ac_objext \ 9108 conftest$ac_exeext conftest.$ac_ext 9109 9110fi 9111rm -f core conftest.err conftest.$ac_objext \ 9112 conftest$ac_exeext conftest.$ac_ext 9113 done 9114 ac_link="$ax_pthread_save_ac_link" 9115 CFLAGS="$ax_pthread_save_CFLAGS" 9116 if test "x$ax_pthread_try" = "x"; then : 9117 ax_pthread_try=no 9118fi 9119 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 9120 9121fi 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 9123$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 9124 9125 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 9126 no | unknown) ;; 9127 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 9128 esac 9129 9130fi # $ax_pthread_clang = yes 9131 9132if test "x$ax_pthread_ok" = "xno"; then 9133for ax_pthread_try_flag in $ax_pthread_flags; do 9134 9135 case $ax_pthread_try_flag in 9136 none) 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 9138$as_echo_n "checking whether pthreads work without any flags... " >&6; } 9139 ;; 9140 9141 -mt,pthread) 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 9143$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 9144 PTHREAD_CFLAGS="-mt" 9145 PTHREAD_LIBS="-lpthread" 9146 ;; 9147 9148 -*) 9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 9150$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 9151 PTHREAD_CFLAGS="$ax_pthread_try_flag" 9152 ;; 9153 9154 pthread-config) 9155 # Extract the first word of "pthread-config", so it can be a program name with args. 9156set dummy pthread-config; ac_word=$2 9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9158$as_echo_n "checking for $ac_word... " >&6; } 9159if ${ac_cv_prog_ax_pthread_config+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 if test -n "$ax_pthread_config"; then 9163 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 9164else 9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9166for as_dir in $PATH 9167do 9168 IFS=$as_save_IFS 9169 test -z "$as_dir" && as_dir=. 9170 for ac_exec_ext in '' $ac_executable_extensions; do 9171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9172 ac_cv_prog_ax_pthread_config="yes" 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9174 break 2 9175 fi 9176done 9177 done 9178IFS=$as_save_IFS 9179 9180 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 9181fi 9182fi 9183ax_pthread_config=$ac_cv_prog_ax_pthread_config 9184if test -n "$ax_pthread_config"; then 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 9186$as_echo "$ax_pthread_config" >&6; } 9187else 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9189$as_echo "no" >&6; } 9190fi 9191 9192 9193 if test "x$ax_pthread_config" = "xno"; then : 9194 continue 9195fi 9196 PTHREAD_CFLAGS="`pthread-config --cflags`" 9197 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 9198 ;; 9199 9200 *) 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 9202$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 9203 PTHREAD_LIBS="-l$ax_pthread_try_flag" 9204 ;; 9205 esac 9206 9207 ax_pthread_save_CFLAGS="$CFLAGS" 9208 ax_pthread_save_LIBS="$LIBS" 9209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9210 LIBS="$PTHREAD_LIBS $LIBS" 9211 9212 # Check for various functions. We must include pthread.h, 9213 # since some functions may be macros. (On the Sequent, we 9214 # need a special flag -Kthread to make this header compile.) 9215 # We check for pthread_join because it is in -lpthread on IRIX 9216 # while pthread_create is in libc. We check for pthread_attr_init 9217 # due to DEC craziness with -lpthreads. We check for 9218 # pthread_cleanup_push because it is one of the few pthread 9219 # functions on Solaris that doesn't have a non-functional libc stub. 9220 # We try pthread_create on general principles. 9221 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224#include <pthread.h> 9225# if $ax_pthread_check_cond 9226# error "$ax_pthread_check_macro must be defined" 9227# endif 9228 static void routine(void *a) { a = 0; } 9229 static void *start_routine(void *a) { return a; } 9230int 9231main () 9232{ 9233pthread_t th; pthread_attr_t attr; 9234 pthread_create(&th, 0, start_routine, 0); 9235 pthread_join(th, 0); 9236 pthread_attr_init(&attr); 9237 pthread_cleanup_push(routine, 0); 9238 pthread_cleanup_pop(0) /* ; */ 9239 ; 9240 return 0; 9241} 9242_ACEOF 9243if ac_fn_c_try_link "$LINENO"; then : 9244 ax_pthread_ok=yes 9245fi 9246rm -f core conftest.err conftest.$ac_objext \ 9247 conftest$ac_exeext conftest.$ac_ext 9248 9249 CFLAGS="$ax_pthread_save_CFLAGS" 9250 LIBS="$ax_pthread_save_LIBS" 9251 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 9253$as_echo "$ax_pthread_ok" >&6; } 9254 if test "x$ax_pthread_ok" = "xyes"; then : 9255 break 9256fi 9257 9258 PTHREAD_LIBS="" 9259 PTHREAD_CFLAGS="" 9260done 9261fi 9262 9263# Various other checks: 9264if test "x$ax_pthread_ok" = "xyes"; then 9265 ax_pthread_save_CFLAGS="$CFLAGS" 9266 ax_pthread_save_LIBS="$LIBS" 9267 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 9268 LIBS="$PTHREAD_LIBS $LIBS" 9269 9270 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 9272$as_echo_n "checking for joinable pthread attribute... " >&6; } 9273if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 9274 $as_echo_n "(cached) " >&6 9275else 9276 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 9277 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9279/* end confdefs.h. */ 9280#include <pthread.h> 9281int 9282main () 9283{ 9284int attr = $ax_pthread_attr; return attr /* ; */ 9285 ; 9286 return 0; 9287} 9288_ACEOF 9289if ac_fn_c_try_link "$LINENO"; then : 9290 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 9291fi 9292rm -f core conftest.err conftest.$ac_objext \ 9293 conftest$ac_exeext conftest.$ac_ext 9294 done 9295 9296fi 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 9298$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 9299 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 9300 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 9301 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 9302 9303cat >>confdefs.h <<_ACEOF 9304#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 9305_ACEOF 9306 9307 ax_pthread_joinable_attr_defined=yes 9308 9309fi 9310 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 9312$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 9313if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 ax_cv_PTHREAD_SPECIAL_FLAGS=no 9317 case $host_os in 9318 solaris*) 9319 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 9320 ;; 9321 esac 9322 9323fi 9324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 9325$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 9326 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 9327 test "x$ax_pthread_special_flags_added" != "xyes"; then : 9328 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 9329 ax_pthread_special_flags_added=yes 9330fi 9331 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 9333$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 9334if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9338/* end confdefs.h. */ 9339#include <pthread.h> 9340int 9341main () 9342{ 9343int i = PTHREAD_PRIO_INHERIT; 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348if ac_fn_c_try_link "$LINENO"; then : 9349 ax_cv_PTHREAD_PRIO_INHERIT=yes 9350else 9351 ax_cv_PTHREAD_PRIO_INHERIT=no 9352fi 9353rm -f core conftest.err conftest.$ac_objext \ 9354 conftest$ac_exeext conftest.$ac_ext 9355 9356fi 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 9358$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 9359 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 9360 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 9361 9362$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 9363 9364 ax_pthread_prio_inherit_defined=yes 9365 9366fi 9367 9368 CFLAGS="$ax_pthread_save_CFLAGS" 9369 LIBS="$ax_pthread_save_LIBS" 9370 9371 # More AIX lossage: compile with *_r variant 9372 if test "x$GCC" != "xyes"; then 9373 case $host_os in 9374 aix*) 9375 case "x/$CC" in #( 9376 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 9377 #handle absolute path differently from PATH based program lookup 9378 case "x$CC" in #( 9379 x/*) : 9380 if as_fn_executable_p ${CC}_r; then : 9381 PTHREAD_CC="${CC}_r" 9382fi ;; #( 9383 *) : 9384 for ac_prog in ${CC}_r 9385do 9386 # Extract the first word of "$ac_prog", so it can be a program name with args. 9387set dummy $ac_prog; ac_word=$2 9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9389$as_echo_n "checking for $ac_word... " >&6; } 9390if ${ac_cv_prog_PTHREAD_CC+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 if test -n "$PTHREAD_CC"; then 9394 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 9395else 9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9397for as_dir in $PATH 9398do 9399 IFS=$as_save_IFS 9400 test -z "$as_dir" && as_dir=. 9401 for ac_exec_ext in '' $ac_executable_extensions; do 9402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9403 ac_cv_prog_PTHREAD_CC="$ac_prog" 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9405 break 2 9406 fi 9407done 9408 done 9409IFS=$as_save_IFS 9410 9411fi 9412fi 9413PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 9414if test -n "$PTHREAD_CC"; then 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 9416$as_echo "$PTHREAD_CC" >&6; } 9417else 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9419$as_echo "no" >&6; } 9420fi 9421 9422 9423 test -n "$PTHREAD_CC" && break 9424done 9425test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 9426 ;; 9427esac ;; #( 9428 *) : 9429 ;; 9430esac 9431 ;; 9432 esac 9433 fi 9434fi 9435 9436test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 9437 9438 9439 9440 9441 9442# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 9443if test "x$ax_pthread_ok" = "xyes"; then 9444 threads=yes 9445 : 9446else 9447 ax_pthread_ok=no 9448 threads=no 9449fi 9450ac_ext=c 9451ac_cpp='$CPP $CPPFLAGS' 9452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9454ac_compiler_gnu=$ac_cv_c_compiler_gnu 9455 9456 9457fi 9458 9459if test "$threads" = "yes"; then 9460 9461$as_echo "#define ENABLE_THREADS 1" >>confdefs.h 9462 9463fi 9464 if test "$threads" = "yes"; then 9465 THREADS_TRUE= 9466 THREADS_FALSE='#' 9467else 9468 THREADS_TRUE='#' 9469 THREADS_FALSE= 9470fi 9471 9472 9473ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 9474if test "x$ac_cv_have_decl_basename" = xyes; then : 9475 ac_have_decl=1 9476else 9477 ac_have_decl=0 9478fi 9479 9480cat >>confdefs.h <<_ACEOF 9481#define HAVE_DECL_BASENAME $ac_have_decl 9482_ACEOF 9483ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 9484if test "x$ac_cv_have_decl_ffs" = xyes; then : 9485 ac_have_decl=1 9486else 9487 ac_have_decl=0 9488fi 9489 9490cat >>confdefs.h <<_ACEOF 9491#define HAVE_DECL_FFS $ac_have_decl 9492_ACEOF 9493ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 9494if test "x$ac_cv_have_decl_asprintf" = xyes; then : 9495 ac_have_decl=1 9496else 9497 ac_have_decl=0 9498fi 9499 9500cat >>confdefs.h <<_ACEOF 9501#define HAVE_DECL_ASPRINTF $ac_have_decl 9502_ACEOF 9503ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 9504if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 9505 ac_have_decl=1 9506else 9507 ac_have_decl=0 9508fi 9509 9510cat >>confdefs.h <<_ACEOF 9511#define HAVE_DECL_VASPRINTF $ac_have_decl 9512_ACEOF 9513ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 9514if test "x$ac_cv_have_decl_snprintf" = xyes; then : 9515 ac_have_decl=1 9516else 9517 ac_have_decl=0 9518fi 9519 9520cat >>confdefs.h <<_ACEOF 9521#define HAVE_DECL_SNPRINTF $ac_have_decl 9522_ACEOF 9523ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 9524if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 9525 ac_have_decl=1 9526else 9527 ac_have_decl=0 9528fi 9529 9530cat >>confdefs.h <<_ACEOF 9531#define HAVE_DECL_VSNPRINTF $ac_have_decl 9532_ACEOF 9533ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 9534if test "x$ac_cv_have_decl_strverscmp" = xyes; then : 9535 ac_have_decl=1 9536else 9537 ac_have_decl=0 9538fi 9539 9540cat >>confdefs.h <<_ACEOF 9541#define HAVE_DECL_STRVERSCMP $ac_have_decl 9542_ACEOF 9543 9544 9545save_CFLAGS="$CFLAGS" 9546CFLAGS="$CFLAGS -Werror -gpubnames" 9547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9548/* end confdefs.h. */ 9549int i; 9550_ACEOF 9551if ac_fn_c_try_compile "$LINENO"; then : 9552 have_pubnames=yes 9553else 9554 have_pubnames=no 9555fi 9556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9557CFLAGS="$save_CFLAGS" 9558 if test "$have_pubnames" = "yes"; then 9559 HAVE_PUBNAMES_TRUE= 9560 HAVE_PUBNAMES_FALSE='#' 9561else 9562 HAVE_PUBNAMES_TRUE='#' 9563 HAVE_PUBNAMES_FALSE= 9564fi 9565 9566 9567save_CFLAGS="$CFLAGS" 9568CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin" 9569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9570/* end confdefs.h. */ 9571int i; 9572_ACEOF 9573if ac_fn_c_try_compile "$LINENO"; then : 9574 have_no_use_linker_plugin=yes 9575else 9576 have_no_use_linker_plugin=no 9577fi 9578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9579CFLAGS="$save_CFLAGS" 9580 if test "$have_no_use_linker_plugin" = "yes"; then 9581 HAVE_NO_USE_LINKER_PLUGIN_TRUE= 9582 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#' 9583else 9584 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#' 9585 HAVE_NO_USE_LINKER_PLUGIN_FALSE= 9586fi 9587 9588 9589ac_ext=cpp 9590ac_cpp='$CXXCPP $CPPFLAGS' 9591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9594 9595 9596 9597ac_ext=cpp 9598ac_cpp='$CXXCPP $CPPFLAGS' 9599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 9603$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 9604if test -z "$CXXCPP"; then 9605 if ${ac_cv_prog_CXXCPP+:} false; then : 9606 $as_echo_n "(cached) " >&6 9607else 9608 # Double quotes because CXXCPP needs to be expanded 9609 for CXXCPP in "$CXX -E" "/lib/cpp" 9610 do 9611 ac_preproc_ok=false 9612for ac_cxx_preproc_warn_flag in '' yes 9613do 9614 # Use a header file that comes with gcc, so configuring glibc 9615 # with a fresh cross-compiler works. 9616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9617 # <limits.h> exists even on freestanding compilers. 9618 # On the NeXT, cc -E runs the code through the compiler's parser, 9619 # not just through cpp. "Syntax error" is here to catch this case. 9620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9621/* end confdefs.h. */ 9622#ifdef __STDC__ 9623# include <limits.h> 9624#else 9625# include <assert.h> 9626#endif 9627 Syntax error 9628_ACEOF 9629if ac_fn_cxx_try_cpp "$LINENO"; then : 9630 9631else 9632 # Broken: fails on valid input. 9633continue 9634fi 9635rm -f conftest.err conftest.i conftest.$ac_ext 9636 9637 # OK, works on sane cases. Now check whether nonexistent headers 9638 # can be detected and how. 9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9640/* end confdefs.h. */ 9641#include <ac_nonexistent.h> 9642_ACEOF 9643if ac_fn_cxx_try_cpp "$LINENO"; then : 9644 # Broken: success on invalid input. 9645continue 9646else 9647 # Passes both tests. 9648ac_preproc_ok=: 9649break 9650fi 9651rm -f conftest.err conftest.i conftest.$ac_ext 9652 9653done 9654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9655rm -f conftest.i conftest.err conftest.$ac_ext 9656if $ac_preproc_ok; then : 9657 break 9658fi 9659 9660 done 9661 ac_cv_prog_CXXCPP=$CXXCPP 9662 9663fi 9664 CXXCPP=$ac_cv_prog_CXXCPP 9665else 9666 ac_cv_prog_CXXCPP=$CXXCPP 9667fi 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 9669$as_echo "$CXXCPP" >&6; } 9670ac_preproc_ok=false 9671for ac_cxx_preproc_warn_flag in '' yes 9672do 9673 # Use a header file that comes with gcc, so configuring glibc 9674 # with a fresh cross-compiler works. 9675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9676 # <limits.h> exists even on freestanding compilers. 9677 # On the NeXT, cc -E runs the code through the compiler's parser, 9678 # not just through cpp. "Syntax error" is here to catch this case. 9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9680/* end confdefs.h. */ 9681#ifdef __STDC__ 9682# include <limits.h> 9683#else 9684# include <assert.h> 9685#endif 9686 Syntax error 9687_ACEOF 9688if ac_fn_cxx_try_cpp "$LINENO"; then : 9689 9690else 9691 # Broken: fails on valid input. 9692continue 9693fi 9694rm -f conftest.err conftest.i conftest.$ac_ext 9695 9696 # OK, works on sane cases. Now check whether nonexistent headers 9697 # can be detected and how. 9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9699/* end confdefs.h. */ 9700#include <ac_nonexistent.h> 9701_ACEOF 9702if ac_fn_cxx_try_cpp "$LINENO"; then : 9703 # Broken: success on invalid input. 9704continue 9705else 9706 # Passes both tests. 9707ac_preproc_ok=: 9708break 9709fi 9710rm -f conftest.err conftest.i conftest.$ac_ext 9711 9712done 9713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9714rm -f conftest.i conftest.err conftest.$ac_ext 9715if $ac_preproc_ok; then : 9716 9717else 9718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9720as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 9721See \`config.log' for more details" "$LINENO" 5; } 9722fi 9723 9724ac_ext=cpp 9725ac_cpp='$CXXCPP $CPPFLAGS' 9726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9729 9730 9731for ac_header in unordered_set unordered_map 9732do : 9733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9734ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9736 cat >>confdefs.h <<_ACEOF 9737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9738_ACEOF 9739 9740fi 9741 9742done 9743 9744for ac_header in tr1/unordered_set tr1/unordered_map 9745do : 9746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9747ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9748if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9749 cat >>confdefs.h <<_ACEOF 9750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9751_ACEOF 9752 9753fi 9754 9755done 9756 9757for ac_header in ext/hash_map ext/hash_set 9758do : 9759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9760ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9761if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9762 cat >>confdefs.h <<_ACEOF 9763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9764_ACEOF 9765 9766fi 9767 9768done 9769 9770for ac_header in byteswap.h 9771do : 9772 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 9773if test "x$ac_cv_header_byteswap_h" = xyes; then : 9774 cat >>confdefs.h <<_ACEOF 9775#define HAVE_BYTESWAP_H 1 9776_ACEOF 9777 9778fi 9779 9780done 9781 9782 9783for ac_header in windows.h 9784do : 9785 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 9786if test "x$ac_cv_header_windows_h" = xyes; then : 9787 cat >>confdefs.h <<_ACEOF 9788#define HAVE_WINDOWS_H 1 9789_ACEOF 9790 9791fi 9792 9793done 9794 9795for ac_header in dlfcn.h 9796do : 9797 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 9798if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9799 cat >>confdefs.h <<_ACEOF 9800#define HAVE_DLFCN_H 1 9801_ACEOF 9802 9803fi 9804 9805done 9806 9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9808$as_echo_n "checking for library containing dlopen... " >&6; } 9809if ${ac_cv_search_dlopen+:} false; then : 9810 $as_echo_n "(cached) " >&6 9811else 9812 ac_func_search_save_LIBS=$LIBS 9813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815 9816/* Override any GCC internal prototype to avoid an error. 9817 Use char because int might match the return type of a GCC 9818 builtin and then its argument prototype would still apply. */ 9819#ifdef __cplusplus 9820extern "C" 9821#endif 9822char dlopen (); 9823int 9824main () 9825{ 9826return dlopen (); 9827 ; 9828 return 0; 9829} 9830_ACEOF 9831for ac_lib in '' dl dld; do 9832 if test -z "$ac_lib"; then 9833 ac_res="none required" 9834 else 9835 ac_res=-l$ac_lib 9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9837 fi 9838 if ac_fn_cxx_try_link "$LINENO"; then : 9839 ac_cv_search_dlopen=$ac_res 9840fi 9841rm -f core conftest.err conftest.$ac_objext \ 9842 conftest$ac_exeext 9843 if ${ac_cv_search_dlopen+:} false; then : 9844 break 9845fi 9846done 9847if ${ac_cv_search_dlopen+:} false; then : 9848 9849else 9850 ac_cv_search_dlopen=no 9851fi 9852rm conftest.$ac_ext 9853LIBS=$ac_func_search_save_LIBS 9854fi 9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9856$as_echo "$ac_cv_search_dlopen" >&6; } 9857ac_res=$ac_cv_search_dlopen 9858if test "$ac_res" != no; then : 9859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9860 9861fi 9862 9863case "$ac_cv_search_dlopen" in 9864 no*) DLOPEN_LIBS="";; 9865 *) DLOPEN_LIBS="$ac_cv_search_dlopen";; 9866esac 9867 9868 9869for ac_func in mallinfo posix_fallocate fallocate readv sysconf times mkdtemp 9870do : 9871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9872ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 9873if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9874 cat >>confdefs.h <<_ACEOF 9875#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9876_ACEOF 9877 9878fi 9879done 9880 9881ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 9882if test "x$ac_cv_have_decl_basename" = xyes; then : 9883 ac_have_decl=1 9884else 9885 ac_have_decl=0 9886fi 9887 9888cat >>confdefs.h <<_ACEOF 9889#define HAVE_DECL_BASENAME $ac_have_decl 9890_ACEOF 9891ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 9892if test "x$ac_cv_have_decl_ffs" = xyes; then : 9893 ac_have_decl=1 9894else 9895 ac_have_decl=0 9896fi 9897 9898cat >>confdefs.h <<_ACEOF 9899#define HAVE_DECL_FFS $ac_have_decl 9900_ACEOF 9901ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 9902if test "x$ac_cv_have_decl_asprintf" = xyes; then : 9903 ac_have_decl=1 9904else 9905 ac_have_decl=0 9906fi 9907 9908cat >>confdefs.h <<_ACEOF 9909#define HAVE_DECL_ASPRINTF $ac_have_decl 9910_ACEOF 9911ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 9912if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 9913 ac_have_decl=1 9914else 9915 ac_have_decl=0 9916fi 9917 9918cat >>confdefs.h <<_ACEOF 9919#define HAVE_DECL_VASPRINTF $ac_have_decl 9920_ACEOF 9921ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 9922if test "x$ac_cv_have_decl_snprintf" = xyes; then : 9923 ac_have_decl=1 9924else 9925 ac_have_decl=0 9926fi 9927 9928cat >>confdefs.h <<_ACEOF 9929#define HAVE_DECL_SNPRINTF $ac_have_decl 9930_ACEOF 9931ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 9932if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 9933 ac_have_decl=1 9934else 9935 ac_have_decl=0 9936fi 9937 9938cat >>confdefs.h <<_ACEOF 9939#define HAVE_DECL_VSNPRINTF $ac_have_decl 9940_ACEOF 9941ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default" 9942if test "x$ac_cv_have_decl_strverscmp" = xyes; then : 9943 ac_have_decl=1 9944else 9945 ac_have_decl=0 9946fi 9947 9948cat >>confdefs.h <<_ACEOF 9949#define HAVE_DECL_STRVERSCMP $ac_have_decl 9950_ACEOF 9951ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" 9952if test "x$ac_cv_have_decl_strndup" = xyes; then : 9953 ac_have_decl=1 9954else 9955 ac_have_decl=0 9956fi 9957 9958cat >>confdefs.h <<_ACEOF 9959#define HAVE_DECL_STRNDUP $ac_have_decl 9960_ACEOF 9961ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default" 9962if test "x$ac_cv_have_decl_memmem" = xyes; then : 9963 ac_have_decl=1 9964else 9965 ac_have_decl=0 9966fi 9967 9968cat >>confdefs.h <<_ACEOF 9969#define HAVE_DECL_MEMMEM $ac_have_decl 9970_ACEOF 9971 9972 9973# Use of ::std::tr1::unordered_map::rehash causes undefined symbols 9974# at link time with some versions of GCC. 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5 9976$as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; } 9977if ${gold_cv_unordered_map_rehash+:} false; then : 9978 $as_echo_n "(cached) " >&6 9979else 9980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9981/* end confdefs.h. */ 9982 9983#include <tr1/unordered_map> 9984void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); } 9985 9986int 9987main () 9988{ 9989 9990 ; 9991 return 0; 9992} 9993_ACEOF 9994if ac_fn_cxx_try_link "$LINENO"; then : 9995 gold_cv_unordered_map_rehash=yes 9996else 9997 gold_cv_unordered_map_rehash=no 9998fi 9999rm -f core conftest.err conftest.$ac_objext \ 10000 conftest$ac_exeext conftest.$ac_ext 10001fi 10002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5 10003$as_echo "$gold_cv_unordered_map_rehash" >&6; } 10004if test "$gold_cv_unordered_map_rehash" = "yes"; then 10005 10006$as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h 10007 10008fi 10009 10010# Use of tr1/unordered_map with off_t as a key is not supported on GCC 10011# 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type. 10012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5 10013$as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; } 10014if ${gold_cv_hash_off_t+:} false; then : 10015 $as_echo_n "(cached) " >&6 10016else 10017 CXXFLAGS_hold=$CXXFLAGS 10018CXXFLAGS="$CXXFLAGS $LFS_CFLAGS" 10019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10020/* end confdefs.h. */ 10021 10022#include <sys/types.h> 10023#include <tr1/unordered_map> 10024std::tr1::hash<off_t> h; 10025 10026_ACEOF 10027if ac_fn_cxx_try_compile "$LINENO"; then : 10028 gold_cv_hash_off_t=yes 10029else 10030 gold_cv_hash_off_t=no 10031fi 10032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10033CXXFLAGS=$CXXFLAGS_hold 10034fi 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5 10036$as_echo "$gold_cv_hash_off_t" >&6; } 10037if test "$gold_cv_hash_off_t" = "yes"; then 10038 10039$as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h 10040 10041fi 10042 10043# gcc 4.3.0 doesn't recognize the printf attribute on a template 10044# function. Check for that. This is gcc bug 35546. This test can 10045# probably be removed after the bug has been fixed for a while. 10046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5 10047$as_echo_n "checking whether we can use attributes with template functions... " >&6; } 10048if ${gold_cv_template_attribute+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053 10054template<typename T> extern void foo(const char*, ...) 10055 __attribute__ ((__format__ (__printf__, 1, 2))); 10056template<typename T> void foo(const char* format, ...) {} 10057void bar() { foo<int>("%s\n", "foo"); } 10058 10059_ACEOF 10060if ac_fn_cxx_try_compile "$LINENO"; then : 10061 gold_cv_template_attribute=yes 10062else 10063 gold_cv_template_attribute=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10066fi 10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5 10068$as_echo "$gold_cv_template_attribute" >&6; } 10069if test "$gold_cv_template_attribute" = "yes"; then 10070 10071$as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h 10072 10073fi 10074 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5 10076$as_echo_n "checking for struct stat::st_mtim.... " >&6; } 10077if ${gold_cv_stat_st_mtim+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079else 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082 10083#include <sys/stat.h> 10084long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);} 10085 10086int 10087main () 10088{ 10089 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094if ac_fn_cxx_try_compile "$LINENO"; then : 10095 gold_cv_stat_st_mtim=yes 10096else 10097 gold_cv_stat_st_mtim=no 10098fi 10099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10100fi 10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5 10102$as_echo "$gold_cv_stat_st_mtim" >&6; } 10103if test "$gold_cv_stat_st_mtim" = "yes"; then 10104 10105$as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h 10106 10107fi 10108 10109ac_ext=c 10110ac_cpp='$CPP $CPPFLAGS' 10111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10113ac_compiler_gnu=$ac_cv_c_compiler_gnu 10114 10115 10116for ac_header in locale.h 10117do : 10118 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 10119if test "x$ac_cv_header_locale_h" = xyes; then : 10120 cat >>confdefs.h <<_ACEOF 10121#define HAVE_LOCALE_H 1 10122_ACEOF 10123 10124fi 10125 10126done 10127 10128for ac_func in setlocale 10129do : 10130 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 10131if test "x$ac_cv_func_setlocale" = xyes; then : 10132 cat >>confdefs.h <<_ACEOF 10133#define HAVE_SETLOCALE 1 10134_ACEOF 10135 10136fi 10137done 10138 10139 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 10141$as_echo_n "checking for LC_MESSAGES... " >&6; } 10142if ${am_cv_val_LC_MESSAGES+:} false; then : 10143 $as_echo_n "(cached) " >&6 10144else 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147#include <locale.h> 10148int 10149main () 10150{ 10151return LC_MESSAGES 10152 ; 10153 return 0; 10154} 10155_ACEOF 10156if ac_fn_c_try_link "$LINENO"; then : 10157 am_cv_val_LC_MESSAGES=yes 10158else 10159 am_cv_val_LC_MESSAGES=no 10160fi 10161rm -f core conftest.err conftest.$ac_objext \ 10162 conftest$ac_exeext conftest.$ac_ext 10163fi 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 10165$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 10166 if test $am_cv_val_LC_MESSAGES = yes; then 10167 10168$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 10169 10170 fi 10171 10172 10173 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10175$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10176 # Check whether --enable-maintainer-mode was given. 10177if test "${enable_maintainer_mode+set}" = set; then : 10178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10179else 10180 USE_MAINTAINER_MODE=no 10181fi 10182 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10184$as_echo "$USE_MAINTAINER_MODE" >&6; } 10185 if test $USE_MAINTAINER_MODE = yes; then 10186 MAINTAINER_MODE_TRUE= 10187 MAINTAINER_MODE_FALSE='#' 10188else 10189 MAINTAINER_MODE_TRUE='#' 10190 MAINTAINER_MODE_FALSE= 10191fi 10192 10193 MAINT=$MAINTAINER_MODE_TRUE 10194 10195 10196 10197ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in" 10198 10199cat >confcache <<\_ACEOF 10200# This file is a shell script that caches the results of configure 10201# tests run on this system so they can be shared between configure 10202# scripts and configure runs, see configure's option --config-cache. 10203# It is not useful on other systems. If it contains results you don't 10204# want to keep, you may remove or edit it. 10205# 10206# config.status only pays attention to the cache file if you give it 10207# the --recheck option to rerun configure. 10208# 10209# `ac_cv_env_foo' variables (set or unset) will be overridden when 10210# loading this file, other *unset* `ac_cv_foo' will be assigned the 10211# following values. 10212 10213_ACEOF 10214 10215# The following way of writing the cache mishandles newlines in values, 10216# but we know of no workaround that is simple, portable, and efficient. 10217# So, we kill variables containing newlines. 10218# Ultrix sh set writes to stderr and can't be redirected directly, 10219# and sets the high bit in the cache file unless we assign to the vars. 10220( 10221 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10222 eval ac_val=\$$ac_var 10223 case $ac_val in #( 10224 *${as_nl}*) 10225 case $ac_var in #( 10226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10227$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10228 esac 10229 case $ac_var in #( 10230 _ | IFS | as_nl) ;; #( 10231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10232 *) { eval $ac_var=; unset $ac_var;} ;; 10233 esac ;; 10234 esac 10235 done 10236 10237 (set) 2>&1 | 10238 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10239 *${as_nl}ac_space=\ *) 10240 # `set' does not quote correctly, so add quotes: double-quote 10241 # substitution turns \\\\ into \\, and sed turns \\ into \. 10242 sed -n \ 10243 "s/'/'\\\\''/g; 10244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10245 ;; #( 10246 *) 10247 # `set' quotes correctly as required by POSIX, so do not add quotes. 10248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10249 ;; 10250 esac | 10251 sort 10252) | 10253 sed ' 10254 /^ac_cv_env_/b end 10255 t clear 10256 :clear 10257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10258 t end 10259 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10260 :end' >>confcache 10261if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10262 if test -w "$cache_file"; then 10263 if test "x$cache_file" != "x/dev/null"; then 10264 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10265$as_echo "$as_me: updating cache $cache_file" >&6;} 10266 if test ! -f "$cache_file" || test -h "$cache_file"; then 10267 cat confcache >"$cache_file" 10268 else 10269 case $cache_file in #( 10270 */* | ?:*) 10271 mv -f confcache "$cache_file"$$ && 10272 mv -f "$cache_file"$$ "$cache_file" ;; #( 10273 *) 10274 mv -f confcache "$cache_file" ;; 10275 esac 10276 fi 10277 fi 10278 else 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10280$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10281 fi 10282fi 10283rm -f confcache 10284 10285test "x$prefix" = xNONE && prefix=$ac_default_prefix 10286# Let make expand exec_prefix. 10287test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10288 10289DEFS=-DHAVE_CONFIG_H 10290 10291ac_libobjs= 10292ac_ltlibobjs= 10293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10294 # 1. Remove the extension, and $U if already installed. 10295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10298 # will be set to the directory where LIBOBJS objects are built. 10299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10301done 10302LIBOBJS=$ac_libobjs 10303 10304LTLIBOBJS=$ac_ltlibobjs 10305 10306 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10308$as_echo_n "checking that generated files are newer than configure... " >&6; } 10309 if test -n "$am_sleep_pid"; then 10310 # Hide warnings about reused PIDs. 10311 wait $am_sleep_pid 2>/dev/null 10312 fi 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10314$as_echo "done" >&6; } 10315 if test -n "$EXEEXT"; then 10316 am__EXEEXT_TRUE= 10317 am__EXEEXT_FALSE='#' 10318else 10319 am__EXEEXT_TRUE='#' 10320 am__EXEEXT_FALSE= 10321fi 10322 10323if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10324 as_fn_error $? "conditional \"AMDEP\" was never defined. 10325Usually this means the macro was only invoked conditionally." "$LINENO" 5 10326fi 10327if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10329Usually this means the macro was only invoked conditionally." "$LINENO" 5 10330fi 10331if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then 10332 as_fn_error $? "conditional \"PLUGINS\" was never defined. 10333Usually this means the macro was only invoked conditionally." "$LINENO" 5 10334fi 10335if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then 10336 as_fn_error $? "conditional \"DEFAULT_TARGET_AARCH64\" was never defined. 10337Usually this means the macro was only invoked conditionally." "$LINENO" 5 10338fi 10339if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then 10340 as_fn_error $? "conditional \"DEFAULT_TARGET_ARM\" was never defined. 10341Usually this means the macro was only invoked conditionally." "$LINENO" 5 10342fi 10343if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then 10344 as_fn_error $? "conditional \"DEFAULT_TARGET_I386\" was never defined. 10345Usually this means the macro was only invoked conditionally." "$LINENO" 5 10346fi 10347if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then 10348 as_fn_error $? "conditional \"DEFAULT_TARGET_POWERPC\" was never defined. 10349Usually this means the macro was only invoked conditionally." "$LINENO" 5 10350fi 10351if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then 10352 as_fn_error $? "conditional \"DEFAULT_TARGET_SPARC\" was never defined. 10353Usually this means the macro was only invoked conditionally." "$LINENO" 5 10354fi 10355if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then 10356 as_fn_error $? "conditional \"DEFAULT_TARGET_S390\" was never defined. 10357Usually this means the macro was only invoked conditionally." "$LINENO" 5 10358fi 10359if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then 10360 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64\" was never defined. 10361Usually this means the macro was only invoked conditionally." "$LINENO" 5 10362fi 10363if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then 10364 as_fn_error $? "conditional \"DEFAULT_TARGET_X32\" was never defined. 10365Usually this means the macro was only invoked conditionally." "$LINENO" 5 10366fi 10367if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then 10368 as_fn_error $? "conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined. 10369Usually this means the macro was only invoked conditionally." "$LINENO" 5 10370fi 10371if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then 10372 as_fn_error $? "conditional \"DEFAULT_TARGET_TILEGX\" was never defined. 10373Usually this means the macro was only invoked conditionally." "$LINENO" 5 10374fi 10375if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then 10376 as_fn_error $? "conditional \"DEFAULT_TARGET_MIPS\" was never defined. 10377Usually this means the macro was only invoked conditionally." "$LINENO" 5 10378fi 10379if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10380 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10381Usually this means the macro was only invoked conditionally." "$LINENO" 5 10382fi 10383if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10384 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10385Usually this means the macro was only invoked conditionally." "$LINENO" 5 10386fi 10387 10388if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then 10389 as_fn_error $? "conditional \"NATIVE_LINKER\" was never defined. 10390Usually this means the macro was only invoked conditionally." "$LINENO" 5 10391fi 10392if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 10393 as_fn_error $? "conditional \"GCC\" was never defined. 10394Usually this means the macro was only invoked conditionally." "$LINENO" 5 10395fi 10396if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then 10397 as_fn_error $? "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined. 10398Usually this means the macro was only invoked conditionally." "$LINENO" 5 10399fi 10400if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then 10401 as_fn_error $? "conditional \"HAVE_STATIC\" was never defined. 10402Usually this means the macro was only invoked conditionally." "$LINENO" 5 10403fi 10404if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then 10405 as_fn_error $? "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined. 10406Usually this means the macro was only invoked conditionally." "$LINENO" 5 10407fi 10408if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then 10409 as_fn_error $? "conditional \"MCMODEL_MEDIUM\" was never defined. 10410Usually this means the macro was only invoked conditionally." "$LINENO" 5 10411fi 10412if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then 10413 as_fn_error $? "conditional \"TLS\" was never defined. 10414Usually this means the macro was only invoked conditionally." "$LINENO" 5 10415fi 10416if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then 10417 as_fn_error $? "conditional \"STATIC_TLS\" was never defined. 10418Usually this means the macro was only invoked conditionally." "$LINENO" 5 10419fi 10420if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then 10421 as_fn_error $? "conditional \"OMP_SUPPORT\" was never defined. 10422Usually this means the macro was only invoked conditionally." "$LINENO" 5 10423fi 10424if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then 10425 as_fn_error $? "conditional \"TLS_GNU2_DIALECT\" was never defined. 10426Usually this means the macro was only invoked conditionally." "$LINENO" 5 10427fi 10428if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then 10429 as_fn_error $? "conditional \"TLS_DESCRIPTORS\" was never defined. 10430Usually this means the macro was only invoked conditionally." "$LINENO" 5 10431fi 10432if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then 10433 as_fn_error $? "conditional \"IFUNC\" was never defined. 10434Usually this means the macro was only invoked conditionally." "$LINENO" 5 10435fi 10436if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then 10437 as_fn_error $? "conditional \"IFUNC_STATIC\" was never defined. 10438Usually this means the macro was only invoked conditionally." "$LINENO" 5 10439fi 10440if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then 10441 as_fn_error $? "conditional \"THREADS\" was never defined. 10442Usually this means the macro was only invoked conditionally." "$LINENO" 5 10443fi 10444if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then 10445 as_fn_error $? "conditional \"HAVE_PUBNAMES\" was never defined. 10446Usually this means the macro was only invoked conditionally." "$LINENO" 5 10447fi 10448if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then 10449 as_fn_error $? "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined. 10450Usually this means the macro was only invoked conditionally." "$LINENO" 5 10451fi 10452if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 10453 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 10454Usually this means the macro was only invoked conditionally." "$LINENO" 5 10455fi 10456 10457: "${CONFIG_STATUS=./config.status}" 10458ac_write_fail=0 10459ac_clean_files_save=$ac_clean_files 10460ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10462$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10463as_write_fail=0 10464cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10465#! $SHELL 10466# Generated by $as_me. 10467# Run this file to recreate the current configuration. 10468# Compiler output produced by configure, useful for debugging 10469# configure, is in config.log if it exists. 10470 10471debug=false 10472ac_cs_recheck=false 10473ac_cs_silent=false 10474 10475SHELL=\${CONFIG_SHELL-$SHELL} 10476export SHELL 10477_ASEOF 10478cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10479## -------------------- ## 10480## M4sh Initialization. ## 10481## -------------------- ## 10482 10483# Be more Bourne compatible 10484DUALCASE=1; export DUALCASE # for MKS sh 10485if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10486 emulate sh 10487 NULLCMD=: 10488 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10489 # is contrary to our usage. Disable this feature. 10490 alias -g '${1+"$@"}'='"$@"' 10491 setopt NO_GLOB_SUBST 10492else 10493 case `(set -o) 2>/dev/null` in #( 10494 *posix*) : 10495 set -o posix ;; #( 10496 *) : 10497 ;; 10498esac 10499fi 10500 10501 10502as_nl=' 10503' 10504export as_nl 10505# Printing a long string crashes Solaris 7 /usr/bin/printf. 10506as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10507as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10508as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10509# Prefer a ksh shell builtin over an external printf program on Solaris, 10510# but without wasting forks for bash or zsh. 10511if test -z "$BASH_VERSION$ZSH_VERSION" \ 10512 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10513 as_echo='print -r --' 10514 as_echo_n='print -rn --' 10515elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10516 as_echo='printf %s\n' 10517 as_echo_n='printf %s' 10518else 10519 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10520 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10521 as_echo_n='/usr/ucb/echo -n' 10522 else 10523 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10524 as_echo_n_body='eval 10525 arg=$1; 10526 case $arg in #( 10527 *"$as_nl"*) 10528 expr "X$arg" : "X\\(.*\\)$as_nl"; 10529 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10530 esac; 10531 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10532 ' 10533 export as_echo_n_body 10534 as_echo_n='sh -c $as_echo_n_body as_echo' 10535 fi 10536 export as_echo_body 10537 as_echo='sh -c $as_echo_body as_echo' 10538fi 10539 10540# The user is always right. 10541if test "${PATH_SEPARATOR+set}" != set; then 10542 PATH_SEPARATOR=: 10543 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10544 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10545 PATH_SEPARATOR=';' 10546 } 10547fi 10548 10549 10550# IFS 10551# We need space, tab and new line, in precisely that order. Quoting is 10552# there to prevent editors from complaining about space-tab. 10553# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10554# splitting by setting IFS to empty value.) 10555IFS=" "" $as_nl" 10556 10557# Find who we are. Look in the path if we contain no directory separator. 10558as_myself= 10559case $0 in #(( 10560 *[\\/]* ) as_myself=$0 ;; 10561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10562for as_dir in $PATH 10563do 10564 IFS=$as_save_IFS 10565 test -z "$as_dir" && as_dir=. 10566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10567 done 10568IFS=$as_save_IFS 10569 10570 ;; 10571esac 10572# We did not find ourselves, most probably we were run as `sh COMMAND' 10573# in which case we are not to be found in the path. 10574if test "x$as_myself" = x; then 10575 as_myself=$0 10576fi 10577if test ! -f "$as_myself"; then 10578 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10579 exit 1 10580fi 10581 10582# Unset variables that we do not need and which cause bugs (e.g. in 10583# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10584# suppresses any "Segmentation fault" message there. '((' could 10585# trigger a bug in pdksh 5.2.14. 10586for as_var in BASH_ENV ENV MAIL MAILPATH 10587do eval test x\${$as_var+set} = xset \ 10588 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10589done 10590PS1='$ ' 10591PS2='> ' 10592PS4='+ ' 10593 10594# NLS nuisances. 10595LC_ALL=C 10596export LC_ALL 10597LANGUAGE=C 10598export LANGUAGE 10599 10600# CDPATH. 10601(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10602 10603 10604# as_fn_error STATUS ERROR [LINENO LOG_FD] 10605# ---------------------------------------- 10606# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10607# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10608# script with STATUS, using 1 if that was 0. 10609as_fn_error () 10610{ 10611 as_status=$1; test $as_status -eq 0 && as_status=1 10612 if test "$4"; then 10613 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10614 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10615 fi 10616 $as_echo "$as_me: error: $2" >&2 10617 as_fn_exit $as_status 10618} # as_fn_error 10619 10620 10621# as_fn_set_status STATUS 10622# ----------------------- 10623# Set $? to STATUS, without forking. 10624as_fn_set_status () 10625{ 10626 return $1 10627} # as_fn_set_status 10628 10629# as_fn_exit STATUS 10630# ----------------- 10631# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10632as_fn_exit () 10633{ 10634 set +e 10635 as_fn_set_status $1 10636 exit $1 10637} # as_fn_exit 10638 10639# as_fn_unset VAR 10640# --------------- 10641# Portably unset VAR. 10642as_fn_unset () 10643{ 10644 { eval $1=; unset $1;} 10645} 10646as_unset=as_fn_unset 10647# as_fn_append VAR VALUE 10648# ---------------------- 10649# Append the text in VALUE to the end of the definition contained in VAR. Take 10650# advantage of any shell optimizations that allow amortized linear growth over 10651# repeated appends, instead of the typical quadratic growth present in naive 10652# implementations. 10653if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10654 eval 'as_fn_append () 10655 { 10656 eval $1+=\$2 10657 }' 10658else 10659 as_fn_append () 10660 { 10661 eval $1=\$$1\$2 10662 } 10663fi # as_fn_append 10664 10665# as_fn_arith ARG... 10666# ------------------ 10667# Perform arithmetic evaluation on the ARGs, and store the result in the 10668# global $as_val. Take advantage of shells that can avoid forks. The arguments 10669# must be portable across $(()) and expr. 10670if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10671 eval 'as_fn_arith () 10672 { 10673 as_val=$(( $* )) 10674 }' 10675else 10676 as_fn_arith () 10677 { 10678 as_val=`expr "$@" || test $? -eq 1` 10679 } 10680fi # as_fn_arith 10681 10682 10683if expr a : '\(a\)' >/dev/null 2>&1 && 10684 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10685 as_expr=expr 10686else 10687 as_expr=false 10688fi 10689 10690if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10691 as_basename=basename 10692else 10693 as_basename=false 10694fi 10695 10696if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10697 as_dirname=dirname 10698else 10699 as_dirname=false 10700fi 10701 10702as_me=`$as_basename -- "$0" || 10703$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10704 X"$0" : 'X\(//\)$' \| \ 10705 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10706$as_echo X/"$0" | 10707 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10708 s//\1/ 10709 q 10710 } 10711 /^X\/\(\/\/\)$/{ 10712 s//\1/ 10713 q 10714 } 10715 /^X\/\(\/\).*/{ 10716 s//\1/ 10717 q 10718 } 10719 s/.*/./; q'` 10720 10721# Avoid depending upon Character Ranges. 10722as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10724as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10725as_cr_digits='0123456789' 10726as_cr_alnum=$as_cr_Letters$as_cr_digits 10727 10728ECHO_C= ECHO_N= ECHO_T= 10729case `echo -n x` in #((((( 10730-n*) 10731 case `echo 'xy\c'` in 10732 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10733 xy) ECHO_C='\c';; 10734 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10735 ECHO_T=' ';; 10736 esac;; 10737*) 10738 ECHO_N='-n';; 10739esac 10740 10741rm -f conf$$ conf$$.exe conf$$.file 10742if test -d conf$$.dir; then 10743 rm -f conf$$.dir/conf$$.file 10744else 10745 rm -f conf$$.dir 10746 mkdir conf$$.dir 2>/dev/null 10747fi 10748if (echo >conf$$.file) 2>/dev/null; then 10749 if ln -s conf$$.file conf$$ 2>/dev/null; then 10750 as_ln_s='ln -s' 10751 # ... but there are two gotchas: 10752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10754 # In both cases, we have to default to `cp -pR'. 10755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10756 as_ln_s='cp -pR' 10757 elif ln conf$$.file conf$$ 2>/dev/null; then 10758 as_ln_s=ln 10759 else 10760 as_ln_s='cp -pR' 10761 fi 10762else 10763 as_ln_s='cp -pR' 10764fi 10765rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10766rmdir conf$$.dir 2>/dev/null 10767 10768 10769# as_fn_mkdir_p 10770# ------------- 10771# Create "$as_dir" as a directory, including parents if necessary. 10772as_fn_mkdir_p () 10773{ 10774 10775 case $as_dir in #( 10776 -*) as_dir=./$as_dir;; 10777 esac 10778 test -d "$as_dir" || eval $as_mkdir_p || { 10779 as_dirs= 10780 while :; do 10781 case $as_dir in #( 10782 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10783 *) as_qdir=$as_dir;; 10784 esac 10785 as_dirs="'$as_qdir' $as_dirs" 10786 as_dir=`$as_dirname -- "$as_dir" || 10787$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10788 X"$as_dir" : 'X\(//\)[^/]' \| \ 10789 X"$as_dir" : 'X\(//\)$' \| \ 10790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10791$as_echo X"$as_dir" | 10792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10793 s//\1/ 10794 q 10795 } 10796 /^X\(\/\/\)[^/].*/{ 10797 s//\1/ 10798 q 10799 } 10800 /^X\(\/\/\)$/{ 10801 s//\1/ 10802 q 10803 } 10804 /^X\(\/\).*/{ 10805 s//\1/ 10806 q 10807 } 10808 s/.*/./; q'` 10809 test -d "$as_dir" && break 10810 done 10811 test -z "$as_dirs" || eval "mkdir $as_dirs" 10812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10813 10814 10815} # as_fn_mkdir_p 10816if mkdir -p . 2>/dev/null; then 10817 as_mkdir_p='mkdir -p "$as_dir"' 10818else 10819 test -d ./-p && rmdir ./-p 10820 as_mkdir_p=false 10821fi 10822 10823 10824# as_fn_executable_p FILE 10825# ----------------------- 10826# Test if FILE is an executable regular file. 10827as_fn_executable_p () 10828{ 10829 test -f "$1" && test -x "$1" 10830} # as_fn_executable_p 10831as_test_x='test -x' 10832as_executable_p=as_fn_executable_p 10833 10834# Sed expression to map a string onto a valid CPP name. 10835as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10836 10837# Sed expression to map a string onto a valid variable name. 10838as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10839 10840 10841exec 6>&1 10842## ----------------------------------- ## 10843## Main body of $CONFIG_STATUS script. ## 10844## ----------------------------------- ## 10845_ASEOF 10846test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10847 10848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10849# Save the log message, to keep $0 and so on meaningful, and to 10850# report actual input values of CONFIG_FILES etc. instead of their 10851# values after options handling. 10852ac_log=" 10853This file was extended by gold $as_me 0.1, which was 10854generated by GNU Autoconf 2.69. Invocation command line was 10855 10856 CONFIG_FILES = $CONFIG_FILES 10857 CONFIG_HEADERS = $CONFIG_HEADERS 10858 CONFIG_LINKS = $CONFIG_LINKS 10859 CONFIG_COMMANDS = $CONFIG_COMMANDS 10860 $ $0 $@ 10861 10862on `(hostname || uname -n) 2>/dev/null | sed 1q` 10863" 10864 10865_ACEOF 10866 10867case $ac_config_files in *" 10868"*) set x $ac_config_files; shift; ac_config_files=$*;; 10869esac 10870 10871case $ac_config_headers in *" 10872"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10873esac 10874 10875 10876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10877# Files that config.status was made for. 10878config_files="$ac_config_files" 10879config_headers="$ac_config_headers" 10880config_commands="$ac_config_commands" 10881 10882_ACEOF 10883 10884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10885ac_cs_usage="\ 10886\`$as_me' instantiates files and other configuration actions 10887from templates according to the current configuration. Unless the files 10888and actions are specified as TAGs, all are instantiated by default. 10889 10890Usage: $0 [OPTION]... [TAG]... 10891 10892 -h, --help print this help, then exit 10893 -V, --version print version number and configuration settings, then exit 10894 --config print configuration, then exit 10895 -q, --quiet, --silent 10896 do not print progress messages 10897 -d, --debug don't remove temporary files 10898 --recheck update $as_me by reconfiguring in the same conditions 10899 --file=FILE[:TEMPLATE] 10900 instantiate the configuration file FILE 10901 --header=FILE[:TEMPLATE] 10902 instantiate the configuration header FILE 10903 10904Configuration files: 10905$config_files 10906 10907Configuration headers: 10908$config_headers 10909 10910Configuration commands: 10911$config_commands 10912 10913Report bugs to the package provider." 10914 10915_ACEOF 10916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10917ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10918ac_cs_version="\\ 10919gold config.status 0.1 10920configured by $0, generated by GNU Autoconf 2.69, 10921 with options \\"\$ac_cs_config\\" 10922 10923Copyright (C) 2012 Free Software Foundation, Inc. 10924This config.status script is free software; the Free Software Foundation 10925gives unlimited permission to copy, distribute and modify it." 10926 10927ac_pwd='$ac_pwd' 10928srcdir='$srcdir' 10929INSTALL='$INSTALL' 10930MKDIR_P='$MKDIR_P' 10931AWK='$AWK' 10932test -n "\$AWK" || AWK=awk 10933_ACEOF 10934 10935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10936# The default lists apply if the user does not specify any file. 10937ac_need_defaults=: 10938while test $# != 0 10939do 10940 case $1 in 10941 --*=?*) 10942 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10944 ac_shift=: 10945 ;; 10946 --*=) 10947 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10948 ac_optarg= 10949 ac_shift=: 10950 ;; 10951 *) 10952 ac_option=$1 10953 ac_optarg=$2 10954 ac_shift=shift 10955 ;; 10956 esac 10957 10958 case $ac_option in 10959 # Handling of the options. 10960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10961 ac_cs_recheck=: ;; 10962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10963 $as_echo "$ac_cs_version"; exit ;; 10964 --config | --confi | --conf | --con | --co | --c ) 10965 $as_echo "$ac_cs_config"; exit ;; 10966 --debug | --debu | --deb | --de | --d | -d ) 10967 debug=: ;; 10968 --file | --fil | --fi | --f ) 10969 $ac_shift 10970 case $ac_optarg in 10971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10972 '') as_fn_error $? "missing file argument" ;; 10973 esac 10974 as_fn_append CONFIG_FILES " '$ac_optarg'" 10975 ac_need_defaults=false;; 10976 --header | --heade | --head | --hea ) 10977 $ac_shift 10978 case $ac_optarg in 10979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10980 esac 10981 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10982 ac_need_defaults=false;; 10983 --he | --h) 10984 # Conflict between --help and --header 10985 as_fn_error $? "ambiguous option: \`$1' 10986Try \`$0 --help' for more information.";; 10987 --help | --hel | -h ) 10988 $as_echo "$ac_cs_usage"; exit ;; 10989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10990 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10991 ac_cs_silent=: ;; 10992 10993 # This is an error. 10994 -*) as_fn_error $? "unrecognized option: \`$1' 10995Try \`$0 --help' for more information." ;; 10996 10997 *) as_fn_append ac_config_targets " $1" 10998 ac_need_defaults=false ;; 10999 11000 esac 11001 shift 11002done 11003 11004ac_configure_extra_args= 11005 11006if $ac_cs_silent; then 11007 exec 6>/dev/null 11008 ac_configure_extra_args="$ac_configure_extra_args --silent" 11009fi 11010 11011_ACEOF 11012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11013if \$ac_cs_recheck; then 11014 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11015 shift 11016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11017 CONFIG_SHELL='$SHELL' 11018 export CONFIG_SHELL 11019 exec "\$@" 11020fi 11021 11022_ACEOF 11023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11024exec 5>>config.log 11025{ 11026 echo 11027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11028## Running $as_me. ## 11029_ASBOX 11030 $as_echo "$ac_log" 11031} >&5 11032 11033_ACEOF 11034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11035# 11036# INIT-COMMANDS 11037# 11038AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11039# Capture the value of obsolete ALL_LINGUAS because we need it to compute 11040 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 11041 # from automake. 11042 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 11043 # Capture the value of LINGUAS because we need it to compute CATALOGS. 11044 LINGUAS="${LINGUAS-%UNSET%}" 11045 11046 11047_ACEOF 11048 11049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11050 11051# Handling of arguments. 11052for ac_config_target in $ac_config_targets 11053do 11054 case $ac_config_target in 11055 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 11056 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11057 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 11058 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11059 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 11060 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 11061 11062 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11063 esac 11064done 11065 11066 11067# If the user did not use the arguments to specify the items to instantiate, 11068# then the envvar interface is used. Set only those that are not. 11069# We use the long form for the default assignment because of an extremely 11070# bizarre bug on SunOS 4.1.3. 11071if $ac_need_defaults; then 11072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11075fi 11076 11077# Have a temporary directory for convenience. Make it in the build tree 11078# simply because there is no reason against having it here, and in addition, 11079# creating and moving files from /tmp can sometimes cause problems. 11080# Hook for its removal unless debugging. 11081# Note that there is a small window in which the directory will not be cleaned: 11082# after its creation but before its name has been assigned to `$tmp'. 11083$debug || 11084{ 11085 tmp= ac_tmp= 11086 trap 'exit_status=$? 11087 : "${ac_tmp:=$tmp}" 11088 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11089' 0 11090 trap 'as_fn_exit 1' 1 2 13 15 11091} 11092# Create a (secure) tmp directory for tmp files. 11093 11094{ 11095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11096 test -d "$tmp" 11097} || 11098{ 11099 tmp=./conf$$-$RANDOM 11100 (umask 077 && mkdir "$tmp") 11101} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11102ac_tmp=$tmp 11103 11104# Set up the scripts for CONFIG_FILES section. 11105# No need to generate them if there are no CONFIG_FILES. 11106# This happens for instance with `./config.status config.h'. 11107if test -n "$CONFIG_FILES"; then 11108 11109 11110ac_cr=`echo X | tr X '\015'` 11111# On cygwin, bash can eat \r inside `` if the user requested igncr. 11112# But we know of no other shell where ac_cr would be empty at this 11113# point, so we can use a bashism as a fallback. 11114if test "x$ac_cr" = x; then 11115 eval ac_cr=\$\'\\r\' 11116fi 11117ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11118if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11119 ac_cs_awk_cr='\\r' 11120else 11121 ac_cs_awk_cr=$ac_cr 11122fi 11123 11124echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11125_ACEOF 11126 11127 11128{ 11129 echo "cat >conf$$subs.awk <<_ACEOF" && 11130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11131 echo "_ACEOF" 11132} >conf$$subs.sh || 11133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11134ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11135ac_delim='%!_!# ' 11136for ac_last_try in false false false false false :; do 11137 . ./conf$$subs.sh || 11138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11139 11140 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11141 if test $ac_delim_n = $ac_delim_num; then 11142 break 11143 elif $ac_last_try; then 11144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11145 else 11146 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11147 fi 11148done 11149rm -f conf$$subs.sh 11150 11151cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11152cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11153_ACEOF 11154sed -n ' 11155h 11156s/^/S["/; s/!.*/"]=/ 11157p 11158g 11159s/^[^!]*!// 11160:repl 11161t repl 11162s/'"$ac_delim"'$// 11163t delim 11164:nl 11165h 11166s/\(.\{148\}\)..*/\1/ 11167t more1 11168s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11169p 11170n 11171b repl 11172:more1 11173s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11174p 11175g 11176s/.\{148\}// 11177t nl 11178:delim 11179h 11180s/\(.\{148\}\)..*/\1/ 11181t more2 11182s/["\\]/\\&/g; s/^/"/; s/$/"/ 11183p 11184b 11185:more2 11186s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11187p 11188g 11189s/.\{148\}// 11190t delim 11191' <conf$$subs.awk | sed ' 11192/^[^""]/{ 11193 N 11194 s/\n// 11195} 11196' >>$CONFIG_STATUS || ac_write_fail=1 11197rm -f conf$$subs.awk 11198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11199_ACAWK 11200cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11201 for (key in S) S_is_set[key] = 1 11202 FS = "" 11203 11204} 11205{ 11206 line = $ 0 11207 nfields = split(line, field, "@") 11208 substed = 0 11209 len = length(field[1]) 11210 for (i = 2; i < nfields; i++) { 11211 key = field[i] 11212 keylen = length(key) 11213 if (S_is_set[key]) { 11214 value = S[key] 11215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11216 len += length(value) + length(field[++i]) 11217 substed = 1 11218 } else 11219 len += 1 + keylen 11220 } 11221 11222 print line 11223} 11224 11225_ACAWK 11226_ACEOF 11227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11228if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11229 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11230else 11231 cat 11232fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11233 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11234_ACEOF 11235 11236# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11237# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11238# trailing colons and then remove the whole line if VPATH becomes empty 11239# (actually we leave an empty line to preserve line numbers). 11240if test "x$srcdir" = x.; then 11241 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11242h 11243s/// 11244s/^/:/ 11245s/[ ]*$/:/ 11246s/:\$(srcdir):/:/g 11247s/:\${srcdir}:/:/g 11248s/:@srcdir@:/:/g 11249s/^:*// 11250s/:*$// 11251x 11252s/\(=[ ]*\).*/\1/ 11253G 11254s/\n// 11255s/^[^=]*=[ ]*$// 11256}' 11257fi 11258 11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11260fi # test -n "$CONFIG_FILES" 11261 11262# Set up the scripts for CONFIG_HEADERS section. 11263# No need to generate them if there are no CONFIG_HEADERS. 11264# This happens for instance with `./config.status Makefile'. 11265if test -n "$CONFIG_HEADERS"; then 11266cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11267BEGIN { 11268_ACEOF 11269 11270# Transform confdefs.h into an awk script `defines.awk', embedded as 11271# here-document in config.status, that substitutes the proper values into 11272# config.h.in to produce config.h. 11273 11274# Create a delimiter string that does not exist in confdefs.h, to ease 11275# handling of long lines. 11276ac_delim='%!_!# ' 11277for ac_last_try in false false :; do 11278 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11279 if test -z "$ac_tt"; then 11280 break 11281 elif $ac_last_try; then 11282 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11283 else 11284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11285 fi 11286done 11287 11288# For the awk script, D is an array of macro values keyed by name, 11289# likewise P contains macro parameters if any. Preserve backslash 11290# newline sequences. 11291 11292ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11293sed -n ' 11294s/.\{148\}/&'"$ac_delim"'/g 11295t rset 11296:rset 11297s/^[ ]*#[ ]*define[ ][ ]*/ / 11298t def 11299d 11300:def 11301s/\\$// 11302t bsnl 11303s/["\\]/\\&/g 11304s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11305D["\1"]=" \3"/p 11306s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11307d 11308:bsnl 11309s/["\\]/\\&/g 11310s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11311D["\1"]=" \3\\\\\\n"\\/p 11312t cont 11313s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11314t cont 11315d 11316:cont 11317n 11318s/.\{148\}/&'"$ac_delim"'/g 11319t clear 11320:clear 11321s/\\$// 11322t bsnlc 11323s/["\\]/\\&/g; s/^/"/; s/$/"/p 11324d 11325:bsnlc 11326s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11327b cont 11328' <confdefs.h | sed ' 11329s/'"$ac_delim"'/"\\\ 11330"/g' >>$CONFIG_STATUS || ac_write_fail=1 11331 11332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11333 for (key in D) D_is_set[key] = 1 11334 FS = "" 11335} 11336/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11337 line = \$ 0 11338 split(line, arg, " ") 11339 if (arg[1] == "#") { 11340 defundef = arg[2] 11341 mac1 = arg[3] 11342 } else { 11343 defundef = substr(arg[1], 2) 11344 mac1 = arg[2] 11345 } 11346 split(mac1, mac2, "(") #) 11347 macro = mac2[1] 11348 prefix = substr(line, 1, index(line, defundef) - 1) 11349 if (D_is_set[macro]) { 11350 # Preserve the white space surrounding the "#". 11351 print prefix "define", macro P[macro] D[macro] 11352 next 11353 } else { 11354 # Replace #undef with comments. This is necessary, for example, 11355 # in the case of _POSIX_SOURCE, which is predefined and required 11356 # on some systems where configure will not decide to define it. 11357 if (defundef == "undef") { 11358 print "/*", prefix defundef, macro, "*/" 11359 next 11360 } 11361 } 11362} 11363{ print } 11364_ACAWK 11365_ACEOF 11366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11367 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11368fi # test -n "$CONFIG_HEADERS" 11369 11370 11371eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11372shift 11373for ac_tag 11374do 11375 case $ac_tag in 11376 :[FHLC]) ac_mode=$ac_tag; continue;; 11377 esac 11378 case $ac_mode$ac_tag in 11379 :[FHL]*:*);; 11380 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11381 :[FH]-) ac_tag=-:-;; 11382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11383 esac 11384 ac_save_IFS=$IFS 11385 IFS=: 11386 set x $ac_tag 11387 IFS=$ac_save_IFS 11388 shift 11389 ac_file=$1 11390 shift 11391 11392 case $ac_mode in 11393 :L) ac_source=$1;; 11394 :[FH]) 11395 ac_file_inputs= 11396 for ac_f 11397 do 11398 case $ac_f in 11399 -) ac_f="$ac_tmp/stdin";; 11400 *) # Look for the file first in the build tree, then in the source tree 11401 # (if the path is not absolute). The absolute path cannot be DOS-style, 11402 # because $ac_f cannot contain `:'. 11403 test -f "$ac_f" || 11404 case $ac_f in 11405 [\\/$]*) false;; 11406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11407 esac || 11408 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11409 esac 11410 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11411 as_fn_append ac_file_inputs " '$ac_f'" 11412 done 11413 11414 # Let's still pretend it is `configure' which instantiates (i.e., don't 11415 # use $as_me), people would be surprised to read: 11416 # /* config.h. Generated by config.status. */ 11417 configure_input='Generated from '` 11418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11419 `' by configure.' 11420 if test x"$ac_file" != x-; then 11421 configure_input="$ac_file. $configure_input" 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11423$as_echo "$as_me: creating $ac_file" >&6;} 11424 fi 11425 # Neutralize special characters interpreted by sed in replacement strings. 11426 case $configure_input in #( 11427 *\&* | *\|* | *\\* ) 11428 ac_sed_conf_input=`$as_echo "$configure_input" | 11429 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11430 *) ac_sed_conf_input=$configure_input;; 11431 esac 11432 11433 case $ac_tag in 11434 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11436 esac 11437 ;; 11438 esac 11439 11440 ac_dir=`$as_dirname -- "$ac_file" || 11441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11442 X"$ac_file" : 'X\(//\)[^/]' \| \ 11443 X"$ac_file" : 'X\(//\)$' \| \ 11444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11445$as_echo X"$ac_file" | 11446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11447 s//\1/ 11448 q 11449 } 11450 /^X\(\/\/\)[^/].*/{ 11451 s//\1/ 11452 q 11453 } 11454 /^X\(\/\/\)$/{ 11455 s//\1/ 11456 q 11457 } 11458 /^X\(\/\).*/{ 11459 s//\1/ 11460 q 11461 } 11462 s/.*/./; q'` 11463 as_dir="$ac_dir"; as_fn_mkdir_p 11464 ac_builddir=. 11465 11466case "$ac_dir" in 11467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11468*) 11469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11470 # A ".." for each directory in $ac_dir_suffix. 11471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11472 case $ac_top_builddir_sub in 11473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11475 esac ;; 11476esac 11477ac_abs_top_builddir=$ac_pwd 11478ac_abs_builddir=$ac_pwd$ac_dir_suffix 11479# for backward compatibility: 11480ac_top_builddir=$ac_top_build_prefix 11481 11482case $srcdir in 11483 .) # We are building in place. 11484 ac_srcdir=. 11485 ac_top_srcdir=$ac_top_builddir_sub 11486 ac_abs_top_srcdir=$ac_pwd ;; 11487 [\\/]* | ?:[\\/]* ) # Absolute name. 11488 ac_srcdir=$srcdir$ac_dir_suffix; 11489 ac_top_srcdir=$srcdir 11490 ac_abs_top_srcdir=$srcdir ;; 11491 *) # Relative name. 11492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11493 ac_top_srcdir=$ac_top_build_prefix$srcdir 11494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11495esac 11496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11497 11498 11499 case $ac_mode in 11500 :F) 11501 # 11502 # CONFIG_FILE 11503 # 11504 11505 case $INSTALL in 11506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11507 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11508 esac 11509 ac_MKDIR_P=$MKDIR_P 11510 case $MKDIR_P in 11511 [\\/$]* | ?:[\\/]* ) ;; 11512 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11513 esac 11514_ACEOF 11515 11516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11517# If the template does not know about datarootdir, expand it. 11518# FIXME: This hack should be removed a few years after 2.60. 11519ac_datarootdir_hack=; ac_datarootdir_seen= 11520ac_sed_dataroot=' 11521/datarootdir/ { 11522 p 11523 q 11524} 11525/@datadir@/p 11526/@docdir@/p 11527/@infodir@/p 11528/@localedir@/p 11529/@mandir@/p' 11530case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11531*datarootdir*) ac_datarootdir_seen=yes;; 11532*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11534$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11535_ACEOF 11536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11537 ac_datarootdir_hack=' 11538 s&@datadir@&$datadir&g 11539 s&@docdir@&$docdir&g 11540 s&@infodir@&$infodir&g 11541 s&@localedir@&$localedir&g 11542 s&@mandir@&$mandir&g 11543 s&\\\${datarootdir}&$datarootdir&g' ;; 11544esac 11545_ACEOF 11546 11547# Neutralize VPATH when `$srcdir' = `.'. 11548# Shell code in configure.ac might set extrasub. 11549# FIXME: do we really want to maintain this feature? 11550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11551ac_sed_extra="$ac_vpsub 11552$extrasub 11553_ACEOF 11554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11555:t 11556/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11557s|@configure_input@|$ac_sed_conf_input|;t t 11558s&@top_builddir@&$ac_top_builddir_sub&;t t 11559s&@top_build_prefix@&$ac_top_build_prefix&;t t 11560s&@srcdir@&$ac_srcdir&;t t 11561s&@abs_srcdir@&$ac_abs_srcdir&;t t 11562s&@top_srcdir@&$ac_top_srcdir&;t t 11563s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11564s&@builddir@&$ac_builddir&;t t 11565s&@abs_builddir@&$ac_abs_builddir&;t t 11566s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11567s&@INSTALL@&$ac_INSTALL&;t t 11568s&@MKDIR_P@&$ac_MKDIR_P&;t t 11569$ac_datarootdir_hack 11570" 11571eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11572 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11573 11574test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11575 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11576 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11577 "$ac_tmp/out"`; test -z "$ac_out"; } && 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11579which seems to be undefined. Please make sure it is defined" >&5 11580$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11581which seems to be undefined. Please make sure it is defined" >&2;} 11582 11583 rm -f "$ac_tmp/stdin" 11584 case $ac_file in 11585 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11586 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11587 esac \ 11588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11589 ;; 11590 :H) 11591 # 11592 # CONFIG_HEADER 11593 # 11594 if test x"$ac_file" != x-; then 11595 { 11596 $as_echo "/* $configure_input */" \ 11597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11598 } >"$ac_tmp/config.h" \ 11599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11600 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11602$as_echo "$as_me: $ac_file is unchanged" >&6;} 11603 else 11604 rm -f "$ac_file" 11605 mv "$ac_tmp/config.h" "$ac_file" \ 11606 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11607 fi 11608 else 11609 $as_echo "/* $configure_input */" \ 11610 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11611 || as_fn_error $? "could not create -" "$LINENO" 5 11612 fi 11613# Compute "$ac_file"'s index in $config_headers. 11614_am_arg="$ac_file" 11615_am_stamp_count=1 11616for _am_header in $config_headers :; do 11617 case $_am_header in 11618 $_am_arg | $_am_arg:* ) 11619 break ;; 11620 * ) 11621 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11622 esac 11623done 11624echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11625$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11626 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11627 X"$_am_arg" : 'X\(//\)$' \| \ 11628 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11629$as_echo X"$_am_arg" | 11630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11631 s//\1/ 11632 q 11633 } 11634 /^X\(\/\/\)[^/].*/{ 11635 s//\1/ 11636 q 11637 } 11638 /^X\(\/\/\)$/{ 11639 s//\1/ 11640 q 11641 } 11642 /^X\(\/\).*/{ 11643 s//\1/ 11644 q 11645 } 11646 s/.*/./; q'`/stamp-h$_am_stamp_count 11647 ;; 11648 11649 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11650$as_echo "$as_me: executing $ac_file commands" >&6;} 11651 ;; 11652 esac 11653 11654 11655 case $ac_file$ac_mode in 11656 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11657 # Older Autoconf quotes --file arguments for eval, but not when files 11658 # are listed without --file. Let's play safe and only enable the eval 11659 # if we detect the quoting. 11660 case $CONFIG_FILES in 11661 *\'*) eval set x "$CONFIG_FILES" ;; 11662 *) set x $CONFIG_FILES ;; 11663 esac 11664 shift 11665 for mf 11666 do 11667 # Strip MF so we end up with the name of the file. 11668 mf=`echo "$mf" | sed -e 's/:.*$//'` 11669 # Check whether this is an Automake generated Makefile or not. 11670 # We used to match only the files named 'Makefile.in', but 11671 # some people rename them; so instead we look at the file content. 11672 # Grep'ing the first line is not enough: some people post-process 11673 # each Makefile.in and add a new line on top of each file to say so. 11674 # Grep'ing the whole file is not good either: AIX grep has a line 11675 # limit of 2048, but all sed's we know have understand at least 4000. 11676 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11677 dirpart=`$as_dirname -- "$mf" || 11678$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11679 X"$mf" : 'X\(//\)[^/]' \| \ 11680 X"$mf" : 'X\(//\)$' \| \ 11681 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11682$as_echo X"$mf" | 11683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11684 s//\1/ 11685 q 11686 } 11687 /^X\(\/\/\)[^/].*/{ 11688 s//\1/ 11689 q 11690 } 11691 /^X\(\/\/\)$/{ 11692 s//\1/ 11693 q 11694 } 11695 /^X\(\/\).*/{ 11696 s//\1/ 11697 q 11698 } 11699 s/.*/./; q'` 11700 else 11701 continue 11702 fi 11703 # Extract the definition of DEPDIR, am__include, and am__quote 11704 # from the Makefile without running 'make'. 11705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11706 test -z "$DEPDIR" && continue 11707 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11708 test -z "$am__include" && continue 11709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11710 # Find all dependency output files, they are included files with 11711 # $(DEPDIR) in their names. We invoke sed twice because it is the 11712 # simplest approach to changing $(DEPDIR) to its actual value in the 11713 # expansion. 11714 for file in `sed -n " 11715 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11716 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 11717 # Make sure the directory exists. 11718 test -f "$dirpart/$file" && continue 11719 fdir=`$as_dirname -- "$file" || 11720$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11721 X"$file" : 'X\(//\)[^/]' \| \ 11722 X"$file" : 'X\(//\)$' \| \ 11723 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11724$as_echo X"$file" | 11725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11726 s//\1/ 11727 q 11728 } 11729 /^X\(\/\/\)[^/].*/{ 11730 s//\1/ 11731 q 11732 } 11733 /^X\(\/\/\)$/{ 11734 s//\1/ 11735 q 11736 } 11737 /^X\(\/\).*/{ 11738 s//\1/ 11739 q 11740 } 11741 s/.*/./; q'` 11742 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11743 # echo "creating $dirpart/$file" 11744 echo '# dummy' > "$dirpart/$file" 11745 done 11746 done 11747} 11748 ;; 11749 "default-1":C) 11750 for ac_file in $CONFIG_FILES; do 11751 # Support "outfile[:infile[:infile...]]" 11752 case "$ac_file" in 11753 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 11754 esac 11755 # PO directories have a Makefile.in generated from Makefile.in.in. 11756 case "$ac_file" in */Makefile.in) 11757 # Adjust a relative srcdir. 11758 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 11759 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 11760 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 11761 # In autoconf-2.13 it is called $ac_given_srcdir. 11762 # In autoconf-2.50 it is called $srcdir. 11763 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 11764 case "$ac_given_srcdir" in 11765 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 11766 /*) top_srcdir="$ac_given_srcdir" ;; 11767 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 11768 esac 11769 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 11770 rm -f "$ac_dir/POTFILES" 11771 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 11772 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 11773 POMAKEFILEDEPS="POTFILES.in" 11774 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 11775 # on $ac_dir but don't depend on user-specified configuration 11776 # parameters. 11777 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 11778 # The LINGUAS file contains the set of available languages. 11779 if test -n "$OBSOLETE_ALL_LINGUAS"; then 11780 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 11781 fi 11782 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 11783 # Hide the ALL_LINGUAS assigment from automake. 11784 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 11785 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 11786 else 11787 # The set of available languages was given in configure.ac. 11788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 11789 fi 11790 case "$ac_given_srcdir" in 11791 .) srcdirpre= ;; 11792 *) srcdirpre='$(srcdir)/' ;; 11793 esac 11794 POFILES= 11795 GMOFILES= 11796 UPDATEPOFILES= 11797 DUMMYPOFILES= 11798 for lang in $ALL_LINGUAS; do 11799 POFILES="$POFILES $srcdirpre$lang.po" 11800 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 11801 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 11802 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 11803 done 11804 # CATALOGS depends on both $ac_dir and the user's LINGUAS 11805 # environment variable. 11806 INST_LINGUAS= 11807 if test -n "$ALL_LINGUAS"; then 11808 for presentlang in $ALL_LINGUAS; do 11809 useit=no 11810 if test "%UNSET%" != "$LINGUAS"; then 11811 desiredlanguages="$LINGUAS" 11812 else 11813 desiredlanguages="$ALL_LINGUAS" 11814 fi 11815 for desiredlang in $desiredlanguages; do 11816 # Use the presentlang catalog if desiredlang is 11817 # a. equal to presentlang, or 11818 # b. a variant of presentlang (because in this case, 11819 # presentlang can be used as a fallback for messages 11820 # which are not translated in the desiredlang catalog). 11821 case "$desiredlang" in 11822 "$presentlang"*) useit=yes;; 11823 esac 11824 done 11825 if test $useit = yes; then 11826 INST_LINGUAS="$INST_LINGUAS $presentlang" 11827 fi 11828 done 11829 fi 11830 CATALOGS= 11831 if test -n "$INST_LINGUAS"; then 11832 for lang in $INST_LINGUAS; do 11833 CATALOGS="$CATALOGS $lang.gmo" 11834 done 11835 fi 11836 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 11837 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 11838 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 11839 if test -f "$f"; then 11840 case "$f" in 11841 *.orig | *.bak | *~) ;; 11842 *) cat "$f" >> "$ac_dir/Makefile" ;; 11843 esac 11844 fi 11845 done 11846 fi 11847 ;; 11848 esac 11849 done ;; 11850 11851 esac 11852done # for ac_tag 11853 11854 11855as_fn_exit 0 11856_ACEOF 11857ac_clean_files=$ac_clean_files_save 11858 11859test $ac_write_fail = 0 || 11860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11861 11862 11863# configure is writing to config.log, and then calls config.status. 11864# config.status does its own redirection, appending to config.log. 11865# Unfortunately, on DOS this fails, as config.log is still kept open 11866# by configure, so config.status won't be able to write to it; its 11867# output is simply discarded. So we exec the FD to /dev/null, 11868# effectively closing config.log, so it can be properly (re)opened and 11869# appended to by config.status. When coming back to configure, we 11870# need to make the FD available again. 11871if test "$no_create" != yes; then 11872 ac_cs_success=: 11873 ac_config_status_args= 11874 test "$silent" = yes && 11875 ac_config_status_args="$ac_config_status_args --quiet" 11876 exec 5>/dev/null 11877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11878 exec 5>>config.log 11879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11880 # would make configure fail if this is the last instruction. 11881 $ac_cs_success || as_fn_exit 1 11882fi 11883if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11885$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11886fi 11887 11888