1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for bfd 2.39.50. 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 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507} 508 509ECHO_C= ECHO_N= ECHO_T= 510case `echo -n x` in #((((( 511-n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518*) 519 ECHO_N='-n';; 520esac 521 522rm -f conf$$ conf$$.exe conf$$.file 523if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528fi 529if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543else 544 as_ln_s='cp -pR' 545fi 546rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547rmdir conf$$.dir 2>/dev/null 548 549if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554fi 555 556as_test_x='test -x' 557as_executable_p=as_fn_executable_p 558 559# Sed expression to map a string onto a valid CPP name. 560as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562# Sed expression to map a string onto a valid variable name. 563as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565SHELL=${CONFIG_SHELL-/bin/sh} 566 567 568test -n "$DJDIR" || exec 7<&0 </dev/null 569exec 6>&1 570 571# Name of the host. 572# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 573# so uname gets run too. 574ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 575 576# 577# Initializations. 578# 579ac_default_prefix=/usr/local 580ac_clean_files= 581ac_config_libobj_dir=. 582LIBOBJS= 583cross_compiling=no 584subdirs= 585MFLAGS= 586MAKEFLAGS= 587 588# Identity of this package. 589PACKAGE_NAME='bfd' 590PACKAGE_TARNAME='bfd' 591PACKAGE_VERSION='2.39.50' 592PACKAGE_STRING='bfd 2.39.50' 593PACKAGE_BUGREPORT='' 594PACKAGE_URL='' 595 596ac_unique_file="libbfd.c" 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_header_list= 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638bfd_ufile_ptr 639bfd_file_ptr 640lt_cv_dlopen_libs 641supports_plugins 642COREFLAG 643COREFILE 644havevecs 645tdefaults 646bfd_default_target_size 647bfd_machines 648bfd_backends 649all_backends 650bfd64_libs 651wordsize 652TDEFINES 653SHARED_LIBADD 654SHARED_LDFLAGS 655LIBM 656ZSTD_LIBS 657ZSTD_CFLAGS 658PKG_CONFIG_LIBDIR 659PKG_CONFIG_PATH 660PKG_CONFIG 661zlibinc 662zlibdir 663EXEEXT_FOR_BUILD 664CC_FOR_BUILD 665HDEFINES 666MSGMERGE 667MSGFMT 668MKINSTALLDIRS 669CATOBJEXT 670GENCAT 671INSTOBJEXT 672DATADIRNAME 673CATALOGS 674POSUB 675GMSGFMT 676XGETTEXT 677INCINTL 678LIBINTL_DEP 679LIBINTL 680USE_NLS 681bfdincludedir 682bfdlibdir 683target_noncanonical 684host_noncanonical 685INSTALL_LIBBFD_FALSE 686INSTALL_LIBBFD_TRUE 687GENINSRC_NEVER_FALSE 688GENINSRC_NEVER_TRUE 689MAINT 690MAINTAINER_MODE_FALSE 691MAINTAINER_MODE_TRUE 692WARN_WRITE_STRINGS 693NO_WERROR 694WARN_CFLAGS_FOR_BUILD 695WARN_CFLAGS 696REPORT_BUGS_TEXI 697REPORT_BUGS_TO 698PKGVERSION 699DEBUGDIR 700ENABLE_BFD_64_BIT_FALSE 701ENABLE_BFD_64_BIT_TRUE 702PLUGINS_FALSE 703PLUGINS_TRUE 704LARGEFILE_CPPFLAGS 705OTOOL64 706OTOOL 707LIPO 708NMEDIT 709DSYMUTIL 710OBJDUMP 711LN_S 712NM 713ac_ct_DUMPBIN 714DUMPBIN 715LD 716FGREP 717SED 718LIBTOOL 719EGREP 720GREP 721CPP 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__quote 730am__include 731DEPDIR 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739RANLIB 740AR 741AM_BACKSLASH 742AM_DEFAULT_VERBOSITY 743AM_DEFAULT_V 744AM_V 745am__untar 746am__tar 747AMTAR 748am__leading_dot 749SET_MAKE 750AWK 751mkdir_p 752MKDIR_P 753INSTALL_STRIP_PROGRAM 754STRIP 755install_sh 756MAKEINFO 757AUTOHEADER 758AUTOMAKE 759AUTOCONF 760ACLOCAL 761VERSION 762PACKAGE 763CYGPATH_W 764am__isrc 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768target_os 769target_vendor 770target_cpu 771target 772host_os 773host_vendor 774host_cpu 775host 776build_os 777build_vendor 778build_cpu 779build 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_silent_rules 822enable_shared 823enable_dependency_tracking 824enable_static 825with_pic 826enable_fast_install 827with_gnu_ld 828enable_libtool_lock 829enable_plugins 830enable_largefile 831enable_checking 832enable_64_bit_bfd 833enable_targets 834enable_64_bit_archive 835with_mmap 836enable_secureplt 837enable_separate_code 838enable_leading_mingw64_underscores 839with_separate_debug_dir 840with_pkgversion 841with_bugurl 842enable_werror 843enable_build_warnings 844enable_maintainer_mode 845enable_install_libbfd 846enable_nls 847with_system_zlib 848with_zstd 849' 850 ac_precious_vars='build_alias 851host_alias 852target_alias 853CC 854CFLAGS 855LDFLAGS 856LIBS 857CPPFLAGS 858CPP 859PKG_CONFIG 860PKG_CONFIG_PATH 861PKG_CONFIG_LIBDIR 862ZSTD_CFLAGS 863ZSTD_LIBS' 864 865 866# Initialize some variables set by options. 867ac_init_help= 868ac_init_version=false 869ac_unrecognized_opts= 870ac_unrecognized_sep= 871# The variables have the same names as the options, with 872# dashes changed to underlines. 873cache_file=/dev/null 874exec_prefix=NONE 875no_create= 876no_recursion= 877prefix=NONE 878program_prefix=NONE 879program_suffix=NONE 880program_transform_name=s,x,x, 881silent= 882site= 883srcdir= 884verbose= 885x_includes=NONE 886x_libraries=NONE 887 888# Installation directory options. 889# These are left unexpanded so users can "make install exec_prefix=/foo" 890# and all the variables that are supposed to be based on exec_prefix 891# by default will actually change. 892# Use braces instead of parens because sh, perl, etc. also accept them. 893# (The list follows the same order as the GNU Coding Standards.) 894bindir='${exec_prefix}/bin' 895sbindir='${exec_prefix}/sbin' 896libexecdir='${exec_prefix}/libexec' 897datarootdir='${prefix}/share' 898datadir='${datarootdir}' 899sysconfdir='${prefix}/etc' 900sharedstatedir='${prefix}/com' 901localstatedir='${prefix}/var' 902includedir='${prefix}/include' 903oldincludedir='/usr/include' 904docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 905infodir='${datarootdir}/info' 906htmldir='${docdir}' 907dvidir='${docdir}' 908pdfdir='${docdir}' 909psdir='${docdir}' 910libdir='${exec_prefix}/lib' 911localedir='${datarootdir}/locale' 912mandir='${datarootdir}/man' 913 914ac_prev= 915ac_dashdash= 916for ac_option 917do 918 # If the previous option needs an argument, assign it. 919 if test -n "$ac_prev"; then 920 eval $ac_prev=\$ac_option 921 ac_prev= 922 continue 923 fi 924 925 case $ac_option in 926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 927 *=) ac_optarg= ;; 928 *) ac_optarg=yes ;; 929 esac 930 931 # Accept the important Cygnus configure options, so we can diagnose typos. 932 933 case $ac_dashdash$ac_option in 934 --) 935 ac_dashdash=yes ;; 936 937 -bindir | --bindir | --bindi | --bind | --bin | --bi) 938 ac_prev=bindir ;; 939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 940 bindir=$ac_optarg ;; 941 942 -build | --build | --buil | --bui | --bu) 943 ac_prev=build_alias ;; 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 945 build_alias=$ac_optarg ;; 946 947 -cache-file | --cache-file | --cache-fil | --cache-fi \ 948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 949 ac_prev=cache_file ;; 950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 952 cache_file=$ac_optarg ;; 953 954 --config-cache | -C) 955 cache_file=config.cache ;; 956 957 -datadir | --datadir | --datadi | --datad) 958 ac_prev=datadir ;; 959 -datadir=* | --datadir=* | --datadi=* | --datad=*) 960 datadir=$ac_optarg ;; 961 962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 963 | --dataroo | --dataro | --datar) 964 ac_prev=datarootdir ;; 965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 967 datarootdir=$ac_optarg ;; 968 969 -disable-* | --disable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: $ac_useropt" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=no ;; 984 985 -docdir | --docdir | --docdi | --doc | --do) 986 ac_prev=docdir ;; 987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 988 docdir=$ac_optarg ;; 989 990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 991 ac_prev=dvidir ;; 992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 993 dvidir=$ac_optarg ;; 994 995 -enable-* | --enable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: $ac_useropt" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004"enable_$ac_useropt" 1005"*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=\$ac_optarg ;; 1010 1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1013 | --exec | --exe | --ex) 1014 ac_prev=exec_prefix ;; 1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1017 | --exec=* | --exe=* | --ex=*) 1018 exec_prefix=$ac_optarg ;; 1019 1020 -gas | --gas | --ga | --g) 1021 # Obsolete; use --with-gas. 1022 with_gas=yes ;; 1023 1024 -help | --help | --hel | --he | -h) 1025 ac_init_help=long ;; 1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1027 ac_init_help=recursive ;; 1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1029 ac_init_help=short ;; 1030 1031 -host | --host | --hos | --ho) 1032 ac_prev=host_alias ;; 1033 -host=* | --host=* | --hos=* | --ho=*) 1034 host_alias=$ac_optarg ;; 1035 1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1037 ac_prev=htmldir ;; 1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1039 | --ht=*) 1040 htmldir=$ac_optarg ;; 1041 1042 -includedir | --includedir | --includedi | --included | --include \ 1043 | --includ | --inclu | --incl | --inc) 1044 ac_prev=includedir ;; 1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1046 | --includ=* | --inclu=* | --incl=* | --inc=*) 1047 includedir=$ac_optarg ;; 1048 1049 -infodir | --infodir | --infodi | --infod | --info | --inf) 1050 ac_prev=infodir ;; 1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1052 infodir=$ac_optarg ;; 1053 1054 -libdir | --libdir | --libdi | --libd) 1055 ac_prev=libdir ;; 1056 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1057 libdir=$ac_optarg ;; 1058 1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1060 | --libexe | --libex | --libe) 1061 ac_prev=libexecdir ;; 1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1063 | --libexe=* | --libex=* | --libe=*) 1064 libexecdir=$ac_optarg ;; 1065 1066 -localedir | --localedir | --localedi | --localed | --locale) 1067 ac_prev=localedir ;; 1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1069 localedir=$ac_optarg ;; 1070 1071 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1072 | --localstate | --localstat | --localsta | --localst | --locals) 1073 ac_prev=localstatedir ;; 1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1076 localstatedir=$ac_optarg ;; 1077 1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1079 ac_prev=mandir ;; 1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1081 mandir=$ac_optarg ;; 1082 1083 -nfp | --nfp | --nf) 1084 # Obsolete; use --without-fp. 1085 with_fp=no ;; 1086 1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1088 | --no-cr | --no-c | -n) 1089 no_create=yes ;; 1090 1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1093 no_recursion=yes ;; 1094 1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1097 | --oldin | --oldi | --old | --ol | --o) 1098 ac_prev=oldincludedir ;; 1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1102 oldincludedir=$ac_optarg ;; 1103 1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1105 ac_prev=prefix ;; 1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1107 prefix=$ac_optarg ;; 1108 1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1110 | --program-pre | --program-pr | --program-p) 1111 ac_prev=program_prefix ;; 1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1114 program_prefix=$ac_optarg ;; 1115 1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1117 | --program-suf | --program-su | --program-s) 1118 ac_prev=program_suffix ;; 1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1121 program_suffix=$ac_optarg ;; 1122 1123 -program-transform-name | --program-transform-name \ 1124 | --program-transform-nam | --program-transform-na \ 1125 | --program-transform-n | --program-transform- \ 1126 | --program-transform | --program-transfor \ 1127 | --program-transfo | --program-transf \ 1128 | --program-trans | --program-tran \ 1129 | --progr-tra | --program-tr | --program-t) 1130 ac_prev=program_transform_name ;; 1131 -program-transform-name=* | --program-transform-name=* \ 1132 | --program-transform-nam=* | --program-transform-na=* \ 1133 | --program-transform-n=* | --program-transform-=* \ 1134 | --program-transform=* | --program-transfor=* \ 1135 | --program-transfo=* | --program-transf=* \ 1136 | --program-trans=* | --program-tran=* \ 1137 | --progr-tra=* | --program-tr=* | --program-t=*) 1138 program_transform_name=$ac_optarg ;; 1139 1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1141 ac_prev=pdfdir ;; 1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1143 pdfdir=$ac_optarg ;; 1144 1145 -psdir | --psdir | --psdi | --psd | --ps) 1146 ac_prev=psdir ;; 1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1148 psdir=$ac_optarg ;; 1149 1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1151 | -silent | --silent | --silen | --sile | --sil) 1152 silent=yes ;; 1153 1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1155 ac_prev=sbindir ;; 1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1157 | --sbi=* | --sb=*) 1158 sbindir=$ac_optarg ;; 1159 1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1162 | --sharedst | --shareds | --shared | --share | --shar \ 1163 | --sha | --sh) 1164 ac_prev=sharedstatedir ;; 1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1168 | --sha=* | --sh=*) 1169 sharedstatedir=$ac_optarg ;; 1170 1171 -site | --site | --sit) 1172 ac_prev=site ;; 1173 -site=* | --site=* | --sit=*) 1174 site=$ac_optarg ;; 1175 1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1177 ac_prev=srcdir ;; 1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1179 srcdir=$ac_optarg ;; 1180 1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1182 | --syscon | --sysco | --sysc | --sys | --sy) 1183 ac_prev=sysconfdir ;; 1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1186 sysconfdir=$ac_optarg ;; 1187 1188 -target | --target | --targe | --targ | --tar | --ta | --t) 1189 ac_prev=target_alias ;; 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1191 target_alias=$ac_optarg ;; 1192 1193 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1194 verbose=yes ;; 1195 1196 -version | --version | --versio | --versi | --vers | -V) 1197 ac_init_version=: ;; 1198 1199 -with-* | --with-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: $ac_useropt" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=\$ac_optarg ;; 1214 1215 -without-* | --without-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1250Try \`$0 --help' for more information" 1251 ;; 1252 1253 *=*) 1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1255 # Reject names that are not valid shell variable names. 1256 case $ac_envvar in #( 1257 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1259 esac 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 as_fn_error $? "missing argument to $ac_option" 1277fi 1278 1279if test -n "$ac_unrecognized_opts"; then 1280 case $enable_option_checking in 1281 no) ;; 1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1284 esac 1285fi 1286 1287# Check all directory arguments for consistency. 1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1289 datadir sysconfdir sharedstatedir localstatedir includedir \ 1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1291 libdir localedir mandir 1292do 1293 eval ac_val=\$$ac_var 1294 # Remove trailing slashes. 1295 case $ac_val in 1296 */ ) 1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1298 eval $ac_var=\$ac_val;; 1299 esac 1300 # Be sure to have absolute directory names. 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1306done 1307 1308# There might be people who depend on the old broken behavior: `$host' 1309# used to hold the argument of --host etc. 1310# FIXME: To remove some day. 1311build=$build_alias 1312host=$host_alias 1313target=$target_alias 1314 1315# FIXME: To remove some day. 1316if test "x$host_alias" != x; then 1317 if test "x$build_alias" = x; then 1318 cross_compiling=maybe 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322fi 1323 1324ac_tool_prefix= 1325test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327test "$silent" = yes && exec 6>/dev/null 1328 1329 1330ac_pwd=`pwd` && test -n "$ac_pwd" && 1331ac_ls_di=`ls -di .` && 1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 as_fn_error $? "working directory cannot be determined" 1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1335 as_fn_error $? "pwd does not report name of working directory" 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$as_myself" || 1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$as_myself" : 'X\(//\)[^/]' \| \ 1345 X"$as_myself" : 'X\(//\)$' \| \ 1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1347$as_echo X"$as_myself" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1375fi 1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1377ac_abs_confdir=`( 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1379 pwd)` 1380# When building in place, set srcdir=. 1381if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383fi 1384# Remove unnecessary trailing slashes from srcdir. 1385# Double slashes in file names in object file debugging info 1386# mess up M-x gdb in Emacs. 1387case $srcdir in 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389esac 1390for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395done 1396 1397# 1398# Report the --help message. 1399# 1400if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404\`configure' configures bfd 2.39.50 to adapt to many kinds of systems. 1405 1406Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411Defaults for the options are specified in brackets. 1412 1413Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print \`checking ...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for \`--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1423 1424Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430By default, \`make install' will install all the files in 1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1432an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1433for instance \`--prefix=\$HOME'. 1434 1435For better control, use the options below. 1436 1437Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --libdir=DIR object code libraries [EPREFIX/lib] 1445 --includedir=DIR C header files [PREFIX/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1449 --infodir=DIR info documentation [DATAROOTDIR/info] 1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1451 --mandir=DIR man documentation [DATAROOTDIR/man] 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd] 1453 --htmldir=DIR html documentation [DOCDIR] 1454 --dvidir=DIR dvi documentation [DOCDIR] 1455 --pdfdir=DIR pdf documentation [DOCDIR] 1456 --psdir=DIR ps documentation [DOCDIR] 1457_ACEOF 1458 1459 cat <<\_ACEOF 1460 1461Program names: 1462 --program-prefix=PREFIX prepend PREFIX to installed program names 1463 --program-suffix=SUFFIX append SUFFIX to installed program names 1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469 --target=TARGET configure for building compilers for TARGET [HOST] 1470_ACEOF 1471fi 1472 1473if test -n "$ac_init_help"; then 1474 case $ac_init_help in 1475 short | recursive ) echo "Configuration of bfd 2.39.50:";; 1476 esac 1477 cat <<\_ACEOF 1478 1479Optional Features: 1480 --disable-option-checking ignore unrecognized --enable/--with options 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1483 --enable-silent-rules less verbose build output (undo: "make V=1") 1484 --disable-silent-rules verbose build output (undo: "make V=0") 1485 --enable-shared[=PKGS] build shared libraries [default=no] 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --enable-static[=PKGS] build static libraries [default=yes] 1491 --enable-fast-install[=PKGS] 1492 optimize for fast installation [default=yes] 1493 --disable-libtool-lock avoid locking (might break parallel builds) 1494 --enable-plugins Enable support for plugins 1495 --disable-largefile omit support for large files 1496 --enable-checking enable run-time checks 1497 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1498 --enable-targets alternative target configurations 1499 --enable-64-bit-archive force 64-bit archives 1500 --enable-secureplt Default to creating read-only plt entries 1501 --enable-separate-code enable -z separate-code in ELF linker by default 1502 --enable-leading-mingw64-underscores 1503 Enable leading underscores on 64 bit mingw targets 1504 --enable-werror treat compile warnings as errors 1505 --enable-build-warnings enable build-time compiler warnings 1506 --enable-maintainer-mode 1507 enable make rules and dependencies not useful (and 1508 sometimes confusing) to the casual installer 1509 --enable-install-libbfd controls installation of libbfd and related headers 1510 --disable-nls do not use Native Language Support 1511 1512Optional Packages: 1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1515 --with-pic try to use only PIC/non-PIC objects [default=use 1516 both] 1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1518 --with-mmap try using mmap for BFD input files if available 1519 --with-separate-debug-dir=DIR 1520 Look for global separate debug info in DIR 1521 [[default=LIBDIR/debug]] 1522 --with-pkgversion=PKG Use PKG in the version string in place of "GNU 1523 Binutils" 1524 --with-bugurl=URL Direct users to URL to report a bug 1525 --with-system-zlib use installed libz 1526 --with-zstd support zstd compressed debug sections 1527 (default=auto) 1528 1529Some influential environment variables: 1530 CC C compiler command 1531 CFLAGS C compiler flags 1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1533 nonstandard directory <lib dir> 1534 LIBS libraries to pass to the linker, e.g. -l<library> 1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1536 you have headers in a nonstandard directory <include dir> 1537 CPP C preprocessor 1538 PKG_CONFIG path to pkg-config utility 1539 PKG_CONFIG_PATH 1540 directories to add to pkg-config's search path 1541 PKG_CONFIG_LIBDIR 1542 path overriding pkg-config's built-in search path 1543 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config 1544 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config 1545 1546Use these variables to override the choices made by `configure' or to help 1547it to find libraries and programs with nonstandard names/locations. 1548 1549Report bugs to the package provider. 1550_ACEOF 1551ac_status=$? 1552fi 1553 1554if test "$ac_init_help" = "recursive"; then 1555 # If there are subdirs, report their specific --help. 1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1557 test -d "$ac_dir" || 1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1559 continue 1560 ac_builddir=. 1561 1562case "$ac_dir" in 1563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1564*) 1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1566 # A ".." for each directory in $ac_dir_suffix. 1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1568 case $ac_top_builddir_sub in 1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1571 esac ;; 1572esac 1573ac_abs_top_builddir=$ac_pwd 1574ac_abs_builddir=$ac_pwd$ac_dir_suffix 1575# for backward compatibility: 1576ac_top_builddir=$ac_top_build_prefix 1577 1578case $srcdir in 1579 .) # We are building in place. 1580 ac_srcdir=. 1581 ac_top_srcdir=$ac_top_builddir_sub 1582 ac_abs_top_srcdir=$ac_pwd ;; 1583 [\\/]* | ?:[\\/]* ) # Absolute name. 1584 ac_srcdir=$srcdir$ac_dir_suffix; 1585 ac_top_srcdir=$srcdir 1586 ac_abs_top_srcdir=$srcdir ;; 1587 *) # Relative name. 1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1589 ac_top_srcdir=$ac_top_build_prefix$srcdir 1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1591esac 1592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1593 1594 cd "$ac_dir" || { ac_status=$?; continue; } 1595 # Check for guested configure. 1596 if test -f "$ac_srcdir/configure.gnu"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1599 elif test -f "$ac_srcdir/configure"; then 1600 echo && 1601 $SHELL "$ac_srcdir/configure" --help=recursive 1602 else 1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1604 fi || ac_status=$? 1605 cd "$ac_pwd" || { ac_status=$?; break; } 1606 done 1607fi 1608 1609test -n "$ac_init_help" && exit $ac_status 1610if $ac_init_version; then 1611 cat <<\_ACEOF 1612bfd configure 2.39.50 1613generated by GNU Autoconf 2.69 1614 1615Copyright (C) 2012 Free Software Foundation, Inc. 1616This configure script is free software; the Free Software Foundation 1617gives unlimited permission to copy, distribute and modify it. 1618_ACEOF 1619 exit 1620fi 1621 1622## ------------------------ ## 1623## Autoconf initialization. ## 1624## ------------------------ ## 1625 1626# ac_fn_c_try_compile LINENO 1627# -------------------------- 1628# Try to compile conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext 1633 if { { ac_try="$ac_compile" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_compile") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest.$ac_objext; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_c_try_compile 1663 1664# ac_fn_c_try_cpp LINENO 1665# ---------------------- 1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_cpp () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if { { ac_try="$ac_cpp conftest.$ac_ext" 1671case "(($ac_try" in 1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1673 *) ac_try_echo=$ac_try;; 1674esac 1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1676$as_echo "$ac_try_echo"; } >&5 1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1678 ac_status=$? 1679 if test -s conftest.err; then 1680 grep -v '^ *+' conftest.err >conftest.er1 1681 cat conftest.er1 >&5 1682 mv -f conftest.er1 conftest.err 1683 fi 1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1685 test $ac_status = 0; } > conftest.i && { 1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1687 test ! -s conftest.err 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_cpp 1700 1701# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1704# the include files in INCLUDES and setting the cache variable VAR 1705# accordingly. 1706ac_fn_c_check_header_mongrel () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 if eval \${$3+:} false; then : 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711$as_echo_n "checking for $2... " >&6; } 1712if eval \${$3+:} false; then : 1713 $as_echo_n "(cached) " >&6 1714fi 1715eval ac_res=\$$3 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717$as_echo "$ac_res" >&6; } 1718else 1719 # Is the header compilable? 1720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1721$as_echo_n "checking $2 usability... " >&6; } 1722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723/* end confdefs.h. */ 1724$4 1725#include <$2> 1726_ACEOF 1727if ac_fn_c_try_compile "$LINENO"; then : 1728 ac_header_compiler=yes 1729else 1730 ac_header_compiler=no 1731fi 1732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1734$as_echo "$ac_header_compiler" >&6; } 1735 1736# Is the header present? 1737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1738$as_echo_n "checking $2 presence... " >&6; } 1739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740/* end confdefs.h. */ 1741#include <$2> 1742_ACEOF 1743if ac_fn_c_try_cpp "$LINENO"; then : 1744 ac_header_preproc=yes 1745else 1746 ac_header_preproc=no 1747fi 1748rm -f conftest.err conftest.i conftest.$ac_ext 1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1750$as_echo "$ac_header_preproc" >&6; } 1751 1752# So? What about this header? 1753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1754 yes:no: ) 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1756$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 ;; 1760 no:yes:* ) 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1762$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1764$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1766$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1768$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1770$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1771 ;; 1772esac 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774$as_echo_n "checking for $2... " >&6; } 1775if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 1777else 1778 eval "$3=\$ac_header_compiler" 1779fi 1780eval ac_res=\$$3 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1782$as_echo "$ac_res" >&6; } 1783fi 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_mongrel 1787 1788# ac_fn_c_try_run LINENO 1789# ---------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1791# that executables *can* be run. 1792ac_fn_c_try_run () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>&5 1803 ac_status=$? 1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1806 { { case "(($ac_try" in 1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1808 *) ac_try_echo=$ac_try;; 1809esac 1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1811$as_echo "$ac_try_echo"; } >&5 1812 (eval "$ac_try") 2>&5 1813 ac_status=$? 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; }; }; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: program exited with status $ac_status" >&5 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=$ac_status 1823fi 1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 as_fn_set_status $ac_retval 1827 1828} # ac_fn_c_try_run 1829 1830# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1831# ------------------------------------------------------- 1832# Tests whether HEADER exists and can be compiled using the include files in 1833# INCLUDES, setting the cache variable VAR accordingly. 1834ac_fn_c_check_header_compile () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838$as_echo_n "checking for $2... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844$4 1845#include <$2> 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO"; then : 1848 eval "$3=yes" 1849else 1850 eval "$3=no" 1851fi 1852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1853fi 1854eval ac_res=\$$3 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1856$as_echo "$ac_res" >&6; } 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859} # ac_fn_c_check_header_compile 1860 1861# ac_fn_c_try_link LINENO 1862# ----------------------- 1863# Try to link conftest.$ac_ext, and return whether this succeeded. 1864ac_fn_c_try_link () 1865{ 1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1867 rm -f conftest.$ac_objext conftest$ac_exeext 1868 if { { ac_try="$ac_link" 1869case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872esac 1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874$as_echo "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>conftest.err 1876 ac_status=$? 1877 if test -s conftest.err; then 1878 grep -v '^ *+' conftest.err >conftest.er1 1879 cat conftest.er1 >&5 1880 mv -f conftest.er1 conftest.err 1881 fi 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; } && { 1884 test -z "$ac_c_werror_flag" || 1885 test ! -s conftest.err 1886 } && test -s conftest$ac_exeext && { 1887 test "$cross_compiling" = yes || 1888 test -x conftest$ac_exeext 1889 }; then : 1890 ac_retval=0 1891else 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1899 # interfere with the next link command; also delete a directory that is 1900 # left behind by Apple's compiler. We do this before executing the actions. 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_c_try_link 1906 1907# ac_fn_c_check_func LINENO FUNC VAR 1908# ---------------------------------- 1909# Tests whether FUNC exists, setting the cache variable VAR accordingly 1910ac_fn_c_check_func () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1922#define $2 innocuous_$2 1923 1924/* System header to define __stub macros and hopefully few prototypes, 1925 which can conflict with char $2 (); below. 1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1927 <limits.h> exists even on freestanding compilers. */ 1928 1929#ifdef __STDC__ 1930# include <limits.h> 1931#else 1932# include <assert.h> 1933#endif 1934 1935#undef $2 1936 1937/* Override any GCC internal prototype to avoid an error. 1938 Use char because int might match the return type of a GCC 1939 builtin and then its argument prototype would still apply. */ 1940#ifdef __cplusplus 1941extern "C" 1942#endif 1943char $2 (); 1944/* The GNU C library defines this for functions which it implements 1945 to always fail with ENOSYS. Some functions are actually named 1946 something starting with __ and the normal name is an alias. */ 1947#if defined __stub_$2 || defined __stub___$2 1948choke me 1949#endif 1950 1951int 1952main () 1953{ 1954return $2 (); 1955 ; 1956 return 0; 1957} 1958_ACEOF 1959if ac_fn_c_try_link "$LINENO"; then : 1960 eval "$3=yes" 1961else 1962 eval "$3=no" 1963fi 1964rm -f core conftest.err conftest.$ac_objext \ 1965 conftest$ac_exeext conftest.$ac_ext 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_func 1973 1974# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1975# -------------------------------------------- 1976# Tries to find the compile-time value of EXPR in a program that includes 1977# INCLUDES, setting VAR accordingly. Returns whether the value could be 1978# computed 1979ac_fn_c_compute_int () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 if test "$cross_compiling" = yes; then 1983 # Depending upon the size, compute the lo and hi bounds. 1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986$4 1987int 1988main () 1989{ 1990static int test_array [1 - 2 * !(($2) >= 0)]; 1991test_array [0] = 0; 1992return test_array [0]; 1993 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_compile "$LINENO"; then : 1999 ac_lo=0 ac_mid=0 2000 while :; do 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2008test_array [0] = 0; 2009return test_array [0]; 2010 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 ac_hi=$ac_mid; break 2017else 2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2019 if test $ac_lo -le $ac_mid; then 2020 ac_lo= ac_hi= 2021 break 2022 fi 2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026 done 2027else 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029/* end confdefs.h. */ 2030$4 2031int 2032main () 2033{ 2034static int test_array [1 - 2 * !(($2) < 0)]; 2035test_array [0] = 0; 2036return test_array [0]; 2037 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 ac_hi=-1 ac_mid=-1 2044 while :; do 2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2046/* end confdefs.h. */ 2047$4 2048int 2049main () 2050{ 2051static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2052test_array [0] = 0; 2053return test_array [0]; 2054 2055 ; 2056 return 0; 2057} 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO"; then : 2060 ac_lo=$ac_mid; break 2061else 2062 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2063 if test $ac_mid -le $ac_hi; then 2064 ac_lo= ac_hi= 2065 break 2066 fi 2067 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2068fi 2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2070 done 2071else 2072 ac_lo= ac_hi= 2073fi 2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075fi 2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077# Binary search between lo and hi bounds. 2078while test "x$ac_lo" != "x$ac_hi"; do 2079 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main () 2085{ 2086static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2087test_array [0] = 0; 2088return test_array [0]; 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO"; then : 2095 ac_hi=$ac_mid 2096else 2097 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2098fi 2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2100done 2101case $ac_lo in #(( 2102?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2103'') ac_retval=1 ;; 2104esac 2105 else 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109static long int longval () { return $2; } 2110static unsigned long int ulongval () { return $2; } 2111#include <stdio.h> 2112#include <stdlib.h> 2113int 2114main () 2115{ 2116 2117 FILE *f = fopen ("conftest.val", "w"); 2118 if (! f) 2119 return 1; 2120 if (($2) < 0) 2121 { 2122 long int i = longval (); 2123 if (i != ($2)) 2124 return 1; 2125 fprintf (f, "%ld", i); 2126 } 2127 else 2128 { 2129 unsigned long int i = ulongval (); 2130 if (i != ($2)) 2131 return 1; 2132 fprintf (f, "%lu", i); 2133 } 2134 /* Do not output a trailing newline, as this causes \r\n confusion 2135 on some platforms. */ 2136 return ferror (f) || fclose (f) != 0; 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142if ac_fn_c_try_run "$LINENO"; then : 2143 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2144else 2145 ac_retval=1 2146fi 2147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2148 conftest.$ac_objext conftest.beam conftest.$ac_ext 2149rm -f conftest.val 2150 2151 fi 2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2153 as_fn_set_status $ac_retval 2154 2155} # ac_fn_c_compute_int 2156 2157# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2158# --------------------------------------------- 2159# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2160# accordingly. 2161ac_fn_c_check_decl () 2162{ 2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2164 as_decl_name=`echo $2|sed 's/ *(.*//'` 2165 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2167$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2168if eval \${$3+:} false; then : 2169 $as_echo_n "(cached) " >&6 2170else 2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173$4 2174int 2175main () 2176{ 2177#ifndef $as_decl_name 2178#ifdef __cplusplus 2179 (void) $as_decl_use; 2180#else 2181 (void) $as_decl_name; 2182#endif 2183#endif 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 eval "$3=yes" 2191else 2192 eval "$3=no" 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195fi 2196eval ac_res=\$$3 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2198$as_echo "$ac_res" >&6; } 2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2200 2201} # ac_fn_c_check_decl 2202cat >config.log <<_ACEOF 2203This file contains any messages produced by compilers while 2204running configure, to aid debugging if configure makes a mistake. 2205 2206It was created by bfd $as_me 2.39.50, which was 2207generated by GNU Autoconf 2.69. Invocation command line was 2208 2209 $ $0 $@ 2210 2211_ACEOF 2212exec 5>>config.log 2213{ 2214cat <<_ASUNAME 2215## --------- ## 2216## Platform. ## 2217## --------- ## 2218 2219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2220uname -m = `(uname -m) 2>/dev/null || echo unknown` 2221uname -r = `(uname -r) 2>/dev/null || echo unknown` 2222uname -s = `(uname -s) 2>/dev/null || echo unknown` 2223uname -v = `(uname -v) 2>/dev/null || echo unknown` 2224 2225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2227 2228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2231/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2235 2236_ASUNAME 2237 2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2239for as_dir in $PATH 2240do 2241 IFS=$as_save_IFS 2242 test -z "$as_dir" && as_dir=. 2243 $as_echo "PATH: $as_dir" 2244 done 2245IFS=$as_save_IFS 2246 2247} >&5 2248 2249cat >&5 <<_ACEOF 2250 2251 2252## ----------- ## 2253## Core tests. ## 2254## ----------- ## 2255 2256_ACEOF 2257 2258 2259# Keep a trace of the command line. 2260# Strip out --no-create and --no-recursion so they do not pile up. 2261# Strip out --silent because we don't want to record it for future runs. 2262# Also quote any args containing shell meta-characters. 2263# Make two passes to allow for proper duplicate-argument suppression. 2264ac_configure_args= 2265ac_configure_args0= 2266ac_configure_args1= 2267ac_must_keep_next=false 2268for ac_pass in 1 2 2269do 2270 for ac_arg 2271 do 2272 case $ac_arg in 2273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2275 | -silent | --silent | --silen | --sile | --sil) 2276 continue ;; 2277 *\'*) 2278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2279 esac 2280 case $ac_pass in 2281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2282 2) 2283 as_fn_append ac_configure_args1 " '$ac_arg'" 2284 if test $ac_must_keep_next = true; then 2285 ac_must_keep_next=false # Got value, back to normal. 2286 else 2287 case $ac_arg in 2288 *=* | --config-cache | -C | -disable-* | --disable-* \ 2289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2291 | -with-* | --with-* | -without-* | --without-* | --x) 2292 case "$ac_configure_args0 " in 2293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2294 esac 2295 ;; 2296 -* ) ac_must_keep_next=true ;; 2297 esac 2298 fi 2299 as_fn_append ac_configure_args " '$ac_arg'" 2300 ;; 2301 esac 2302 done 2303done 2304{ ac_configure_args0=; unset ac_configure_args0;} 2305{ ac_configure_args1=; unset ac_configure_args1;} 2306 2307# When interrupted or exit'd, cleanup temporary files, and complete 2308# config.log. We remove comments because anyway the quotes in there 2309# would cause problems or look ugly. 2310# WARNING: Use '\'' to represent an apostrophe within the trap. 2311# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2312trap 'exit_status=$? 2313 # Save into config.log some information that might help in debugging. 2314 { 2315 echo 2316 2317 $as_echo "## ---------------- ## 2318## Cache variables. ## 2319## ---------------- ##" 2320 echo 2321 # The following way of writing the cache mishandles newlines in values, 2322( 2323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2324 eval ac_val=\$$ac_var 2325 case $ac_val in #( 2326 *${as_nl}*) 2327 case $ac_var in #( 2328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2330 esac 2331 case $ac_var in #( 2332 _ | IFS | as_nl) ;; #( 2333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2334 *) { eval $ac_var=; unset $ac_var;} ;; 2335 esac ;; 2336 esac 2337 done 2338 (set) 2>&1 | 2339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2340 *${as_nl}ac_space=\ *) 2341 sed -n \ 2342 "s/'\''/'\''\\\\'\'''\''/g; 2343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2344 ;; #( 2345 *) 2346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2347 ;; 2348 esac | 2349 sort 2350) 2351 echo 2352 2353 $as_echo "## ----------------- ## 2354## Output variables. ## 2355## ----------------- ##" 2356 echo 2357 for ac_var in $ac_subst_vars 2358 do 2359 eval ac_val=\$$ac_var 2360 case $ac_val in 2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2362 esac 2363 $as_echo "$ac_var='\''$ac_val'\''" 2364 done | sort 2365 echo 2366 2367 if test -n "$ac_subst_files"; then 2368 $as_echo "## ------------------- ## 2369## File substitutions. ## 2370## ------------------- ##" 2371 echo 2372 for ac_var in $ac_subst_files 2373 do 2374 eval ac_val=\$$ac_var 2375 case $ac_val in 2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2377 esac 2378 $as_echo "$ac_var='\''$ac_val'\''" 2379 done | sort 2380 echo 2381 fi 2382 2383 if test -s confdefs.h; then 2384 $as_echo "## ----------- ## 2385## confdefs.h. ## 2386## ----------- ##" 2387 echo 2388 cat confdefs.h 2389 echo 2390 fi 2391 test "$ac_signal" != 0 && 2392 $as_echo "$as_me: caught signal $ac_signal" 2393 $as_echo "$as_me: exit $exit_status" 2394 } >&5 2395 rm -f core *.core core.conftest.* && 2396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2397 exit $exit_status 2398' 0 2399for ac_signal in 1 2 13 15; do 2400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2401done 2402ac_signal=0 2403 2404# confdefs.h avoids OS command line length limits that DEFS can exceed. 2405rm -f -r conftest* confdefs.h 2406 2407$as_echo "/* confdefs.h */" > confdefs.h 2408 2409# Predefined preprocessor variables. 2410 2411cat >>confdefs.h <<_ACEOF 2412#define PACKAGE_NAME "$PACKAGE_NAME" 2413_ACEOF 2414 2415cat >>confdefs.h <<_ACEOF 2416#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2417_ACEOF 2418 2419cat >>confdefs.h <<_ACEOF 2420#define PACKAGE_VERSION "$PACKAGE_VERSION" 2421_ACEOF 2422 2423cat >>confdefs.h <<_ACEOF 2424#define PACKAGE_STRING "$PACKAGE_STRING" 2425_ACEOF 2426 2427cat >>confdefs.h <<_ACEOF 2428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2429_ACEOF 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE_URL "$PACKAGE_URL" 2433_ACEOF 2434 2435 2436# Let the site file select an alternate cache file if it wants to. 2437# Prefer an explicitly selected file to automatically selected ones. 2438ac_site_file1=NONE 2439ac_site_file2=NONE 2440if test -n "$CONFIG_SITE"; then 2441 # We do not want a PATH search for config.site. 2442 case $CONFIG_SITE in #(( 2443 -*) ac_site_file1=./$CONFIG_SITE;; 2444 */*) ac_site_file1=$CONFIG_SITE;; 2445 *) ac_site_file1=./$CONFIG_SITE;; 2446 esac 2447elif test "x$prefix" != xNONE; then 2448 ac_site_file1=$prefix/share/config.site 2449 ac_site_file2=$prefix/etc/config.site 2450else 2451 ac_site_file1=$ac_default_prefix/share/config.site 2452 ac_site_file2=$ac_default_prefix/etc/config.site 2453fi 2454for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2455do 2456 test "x$ac_site_file" = xNONE && continue 2457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2459$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2460 sed 's/^/| /' "$ac_site_file" >&5 2461 . "$ac_site_file" \ 2462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2464as_fn_error $? "failed to load site script $ac_site_file 2465See \`config.log' for more details" "$LINENO" 5; } 2466 fi 2467done 2468 2469if test -r "$cache_file"; then 2470 # Some versions of bash will fail to source /dev/null (special files 2471 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2474$as_echo "$as_me: loading cache $cache_file" >&6;} 2475 case $cache_file in 2476 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2477 *) . "./$cache_file";; 2478 esac 2479 fi 2480else 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2482$as_echo "$as_me: creating cache $cache_file" >&6;} 2483 >$cache_file 2484fi 2485 2486as_fn_append ac_header_list " stdlib.h" 2487as_fn_append ac_header_list " unistd.h" 2488as_fn_append ac_header_list " sys/param.h" 2489# Check that the precious variables saved in the cache have kept the same 2490# value. 2491ac_cache_corrupted=false 2492for ac_var in $ac_precious_vars; do 2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2494 eval ac_new_set=\$ac_env_${ac_var}_set 2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2496 eval ac_new_val=\$ac_env_${ac_var}_value 2497 case $ac_old_set,$ac_new_set in 2498 set,) 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2501 ac_cache_corrupted=: ;; 2502 ,set) 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2505 ac_cache_corrupted=: ;; 2506 ,);; 2507 *) 2508 if test "x$ac_old_val" != "x$ac_new_val"; then 2509 # differences in whitespace do not lead to failure. 2510 ac_old_val_w=`echo x $ac_old_val` 2511 ac_new_val_w=`echo x $ac_new_val` 2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2515 ac_cache_corrupted=: 2516 else 2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2519 eval $ac_var=\$ac_old_val 2520 fi 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2522$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2524$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2525 fi;; 2526 esac 2527 # Pass precious variables to config.status. 2528 if test "$ac_new_set" = set; then 2529 case $ac_new_val in 2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2531 *) ac_arg=$ac_var=$ac_new_val ;; 2532 esac 2533 case " $ac_configure_args " in 2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2536 esac 2537 fi 2538done 2539if $ac_cache_corrupted; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2545fi 2546## -------------------- ## 2547## Main body of script. ## 2548## -------------------- ## 2549 2550ac_ext=c 2551ac_cpp='$CPP $CPPFLAGS' 2552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2554ac_compiler_gnu=$ac_cv_c_compiler_gnu 2555 2556 2557 2558 2559 2560 2561 2562ac_aux_dir= 2563for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2564 if test -f "$ac_dir/install-sh"; then 2565 ac_aux_dir=$ac_dir 2566 ac_install_sh="$ac_aux_dir/install-sh -c" 2567 break 2568 elif test -f "$ac_dir/install.sh"; then 2569 ac_aux_dir=$ac_dir 2570 ac_install_sh="$ac_aux_dir/install.sh -c" 2571 break 2572 elif test -f "$ac_dir/shtool"; then 2573 ac_aux_dir=$ac_dir 2574 ac_install_sh="$ac_aux_dir/shtool install -c" 2575 break 2576 fi 2577done 2578if test -z "$ac_aux_dir"; then 2579 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2580fi 2581 2582# These three variables are undocumented and unsupported, 2583# and are intended to be withdrawn in a future Autoconf release. 2584# They can cause serious problems if a builder's source tree is in a directory 2585# whose full name contains unusual characters. 2586ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2587ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2588ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2589 2590 2591# Make sure we can run config.sub. 2592$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2593 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2594 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2596$as_echo_n "checking build system type... " >&6; } 2597if ${ac_cv_build+:} false; then : 2598 $as_echo_n "(cached) " >&6 2599else 2600 ac_build_alias=$build_alias 2601test "x$ac_build_alias" = x && 2602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2603test "x$ac_build_alias" = x && 2604 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2605ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2607 2608fi 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2610$as_echo "$ac_cv_build" >&6; } 2611case $ac_cv_build in 2612*-*-*) ;; 2613*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2614esac 2615build=$ac_cv_build 2616ac_save_IFS=$IFS; IFS='-' 2617set x $ac_cv_build 2618shift 2619build_cpu=$1 2620build_vendor=$2 2621shift; shift 2622# Remember, the first character of IFS is used to create $*, 2623# except with old shells: 2624build_os=$* 2625IFS=$ac_save_IFS 2626case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2627 2628 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2630$as_echo_n "checking host system type... " >&6; } 2631if ${ac_cv_host+:} false; then : 2632 $as_echo_n "(cached) " >&6 2633else 2634 if test "x$host_alias" = x; then 2635 ac_cv_host=$ac_cv_build 2636else 2637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2639fi 2640 2641fi 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2643$as_echo "$ac_cv_host" >&6; } 2644case $ac_cv_host in 2645*-*-*) ;; 2646*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2647esac 2648host=$ac_cv_host 2649ac_save_IFS=$IFS; IFS='-' 2650set x $ac_cv_host 2651shift 2652host_cpu=$1 2653host_vendor=$2 2654shift; shift 2655# Remember, the first character of IFS is used to create $*, 2656# except with old shells: 2657host_os=$* 2658IFS=$ac_save_IFS 2659case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2660 2661 2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2663$as_echo_n "checking target system type... " >&6; } 2664if ${ac_cv_target+:} false; then : 2665 $as_echo_n "(cached) " >&6 2666else 2667 if test "x$target_alias" = x; then 2668 ac_cv_target=$ac_cv_host 2669else 2670 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2672fi 2673 2674fi 2675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2676$as_echo "$ac_cv_target" >&6; } 2677case $ac_cv_target in 2678*-*-*) ;; 2679*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2680esac 2681target=$ac_cv_target 2682ac_save_IFS=$IFS; IFS='-' 2683set x $ac_cv_target 2684shift 2685target_cpu=$1 2686target_vendor=$2 2687shift; shift 2688# Remember, the first character of IFS is used to create $*, 2689# except with old shells: 2690target_os=$* 2691IFS=$ac_save_IFS 2692case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2693 2694 2695# The aliases save the names the user supplied, while $host etc. 2696# will get canonicalized. 2697test -n "$target_alias" && 2698 test "$program_prefix$program_suffix$program_transform_name" = \ 2699 NONENONEs,x,x, && 2700 program_prefix=${target_alias}- 2701 2702am__api_version='1.15' 2703 2704# Find a good install program. We prefer a C program (faster), 2705# so one script is as good as another. But avoid the broken or 2706# incompatible versions: 2707# SysV /etc/install, /usr/sbin/install 2708# SunOS /usr/etc/install 2709# IRIX /sbin/install 2710# AIX /bin/install 2711# AmigaOS /C/install, which installs bootblocks on floppy discs 2712# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2713# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2714# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2715# OS/2's system install, which has a completely different semantic 2716# ./install, which can be erroneously created by make from ./install.sh. 2717# Reject install programs that cannot install multiple files. 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2719$as_echo_n "checking for a BSD-compatible install... " >&6; } 2720if test -z "$INSTALL"; then 2721if ${ac_cv_path_install+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2725for as_dir in $PATH 2726do 2727 IFS=$as_save_IFS 2728 test -z "$as_dir" && as_dir=. 2729 # Account for people who put trailing slashes in PATH elements. 2730case $as_dir/ in #(( 2731 ./ | .// | /[cC]/* | \ 2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2734 /usr/ucb/* ) ;; 2735 *) 2736 # OSF1 and SCO ODT 3.0 have their own names for install. 2737 # Don't use installbsd from OSF since it installs stuff as root 2738 # by default. 2739 for ac_prog in ginstall scoinst install; do 2740 for ac_exec_ext in '' $ac_executable_extensions; do 2741 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2742 if test $ac_prog = install && 2743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2744 # AIX install. It has an incompatible calling convention. 2745 : 2746 elif test $ac_prog = install && 2747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2748 # program-specific install script used by HP pwplus--don't use. 2749 : 2750 else 2751 rm -rf conftest.one conftest.two conftest.dir 2752 echo one > conftest.one 2753 echo two > conftest.two 2754 mkdir conftest.dir 2755 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2756 test -s conftest.one && test -s conftest.two && 2757 test -s conftest.dir/conftest.one && 2758 test -s conftest.dir/conftest.two 2759 then 2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2761 break 3 2762 fi 2763 fi 2764 fi 2765 done 2766 done 2767 ;; 2768esac 2769 2770 done 2771IFS=$as_save_IFS 2772 2773rm -rf conftest.one conftest.two conftest.dir 2774 2775fi 2776 if test "${ac_cv_path_install+set}" = set; then 2777 INSTALL=$ac_cv_path_install 2778 else 2779 # As a last resort, use the slow shell script. Don't cache a 2780 # value for INSTALL within a source directory, because that will 2781 # break other packages using the cache if that directory is 2782 # removed, or if the value is a relative name. 2783 INSTALL=$ac_install_sh 2784 fi 2785fi 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2787$as_echo "$INSTALL" >&6; } 2788 2789# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2790# It thinks the first close brace ends the variable substitution. 2791test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2792 2793test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2794 2795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2796 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2798$as_echo_n "checking whether build environment is sane... " >&6; } 2799# Reject unsafe characters in $srcdir or the absolute working directory 2800# name. Accept space and tab only in the latter. 2801am_lf=' 2802' 2803case `pwd` in 2804 *[\\\"\#\$\&\'\`$am_lf]*) 2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2806esac 2807case $srcdir in 2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2810esac 2811 2812# Do 'set' in a subshell so we don't clobber the current shell's 2813# arguments. Must try -L first in case configure is actually a 2814# symlink; some systems play weird games with the mod time of symlinks 2815# (eg FreeBSD returns the mod time of the symlink's containing 2816# directory). 2817if ( 2818 am_has_slept=no 2819 for am_try in 1 2; do 2820 echo "timestamp, slept: $am_has_slept" > conftest.file 2821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2822 if test "$*" = "X"; then 2823 # -L didn't work. 2824 set X `ls -t "$srcdir/configure" conftest.file` 2825 fi 2826 if test "$*" != "X $srcdir/configure conftest.file" \ 2827 && test "$*" != "X conftest.file $srcdir/configure"; then 2828 2829 # If neither matched, then we have a broken ls. This can happen 2830 # if, for instance, CONFIG_SHELL is bash and it inherits a 2831 # broken ls alias from the environment. This has actually 2832 # happened. Such a system could not be considered "sane". 2833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2834 alias in your environment" "$LINENO" 5 2835 fi 2836 if test "$2" = conftest.file || test $am_try -eq 2; then 2837 break 2838 fi 2839 # Just in case. 2840 sleep 1 2841 am_has_slept=yes 2842 done 2843 test "$2" = conftest.file 2844 ) 2845then 2846 # Ok. 2847 : 2848else 2849 as_fn_error $? "newly created file is older than distributed files! 2850Check your system clock" "$LINENO" 5 2851fi 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2853$as_echo "yes" >&6; } 2854# If we didn't sleep, we still need to ensure time stamps of config.status and 2855# generated files are strictly newer. 2856am_sleep_pid= 2857if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2858 ( sleep 1 ) & 2859 am_sleep_pid=$! 2860fi 2861 2862rm -f conftest.file 2863 2864test "$program_prefix" != NONE && 2865 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2866# Use a double $ so make ignores it. 2867test "$program_suffix" != NONE && 2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2869# Double any \ or $. 2870# By default was `s,x,x', remove it if useless. 2871ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2872program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2873 2874# Expand $ac_aux_dir to an absolute path. 2875am_aux_dir=`cd "$ac_aux_dir" && pwd` 2876 2877if test x"${MISSING+set}" != xset; then 2878 case $am_aux_dir in 2879 *\ * | *\ *) 2880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2881 *) 2882 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2883 esac 2884fi 2885# Use eval to expand $SHELL 2886if eval "$MISSING --is-lightweight"; then 2887 am_missing_run="$MISSING " 2888else 2889 am_missing_run= 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2891$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2892fi 2893 2894if test x"${install_sh+set}" != xset; then 2895 case $am_aux_dir in 2896 *\ * | *\ *) 2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2898 *) 2899 install_sh="\${SHELL} $am_aux_dir/install-sh" 2900 esac 2901fi 2902 2903# Installed binaries are usually stripped using 'strip' when the user 2904# run "make install-strip". However 'strip' might not be the right 2905# tool to use in cross-compilation environments, therefore Automake 2906# will honor the 'STRIP' environment variable to overrule this program. 2907if test "$cross_compiling" != no; then 2908 if test -n "$ac_tool_prefix"; then 2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2910set dummy ${ac_tool_prefix}strip; ac_word=$2 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912$as_echo_n "checking for $ac_word... " >&6; } 2913if ${ac_cv_prog_STRIP+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 if test -n "$STRIP"; then 2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2918else 2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2920for as_dir in $PATH 2921do 2922 IFS=$as_save_IFS 2923 test -z "$as_dir" && as_dir=. 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2926 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930done 2931 done 2932IFS=$as_save_IFS 2933 2934fi 2935fi 2936STRIP=$ac_cv_prog_STRIP 2937if test -n "$STRIP"; then 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2939$as_echo "$STRIP" >&6; } 2940else 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942$as_echo "no" >&6; } 2943fi 2944 2945 2946fi 2947if test -z "$ac_cv_prog_STRIP"; then 2948 ac_ct_STRIP=$STRIP 2949 # Extract the first word of "strip", so it can be a program name with args. 2950set dummy strip; ac_word=$2 2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2952$as_echo_n "checking for $ac_word... " >&6; } 2953if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2954 $as_echo_n "(cached) " >&6 2955else 2956 if test -n "$ac_ct_STRIP"; then 2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2958else 2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2960for as_dir in $PATH 2961do 2962 IFS=$as_save_IFS 2963 test -z "$as_dir" && as_dir=. 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2966 ac_cv_prog_ac_ct_STRIP="strip" 2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970done 2971 done 2972IFS=$as_save_IFS 2973 2974fi 2975fi 2976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2977if test -n "$ac_ct_STRIP"; then 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2979$as_echo "$ac_ct_STRIP" >&6; } 2980else 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2982$as_echo "no" >&6; } 2983fi 2984 2985 if test "x$ac_ct_STRIP" = x; then 2986 STRIP=":" 2987 else 2988 case $cross_compiling:$ac_tool_warned in 2989yes:) 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2992ac_tool_warned=yes ;; 2993esac 2994 STRIP=$ac_ct_STRIP 2995 fi 2996else 2997 STRIP="$ac_cv_prog_STRIP" 2998fi 2999 3000fi 3001INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3002 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3004$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3005if test -z "$MKDIR_P"; then 3006 if ${ac_cv_path_mkdir+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3011do 3012 IFS=$as_save_IFS 3013 test -z "$as_dir" && as_dir=. 3014 for ac_prog in mkdir gmkdir; do 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3018 'mkdir (GNU coreutils) '* | \ 3019 'mkdir (coreutils) '* | \ 3020 'mkdir (fileutils) '4.1*) 3021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3022 break 3;; 3023 esac 3024 done 3025 done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030 3031 test -d ./--version && rmdir ./--version 3032 if test "${ac_cv_path_mkdir+set}" = set; then 3033 MKDIR_P="$ac_cv_path_mkdir -p" 3034 else 3035 # As a last resort, use the slow shell script. Don't cache a 3036 # value for MKDIR_P within a source directory, because that will 3037 # break other packages using the cache if that directory is 3038 # removed, or if the value is a relative name. 3039 MKDIR_P="$ac_install_sh -d" 3040 fi 3041fi 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3043$as_echo "$MKDIR_P" >&6; } 3044 3045for ac_prog in gawk mawk nawk awk 3046do 3047 # Extract the first word of "$ac_prog", so it can be a program name with args. 3048set dummy $ac_prog; ac_word=$2 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3050$as_echo_n "checking for $ac_word... " >&6; } 3051if ${ac_cv_prog_AWK+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 if test -n "$AWK"; then 3055 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3056else 3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058for as_dir in $PATH 3059do 3060 IFS=$as_save_IFS 3061 test -z "$as_dir" && as_dir=. 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_AWK="$ac_prog" 3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068done 3069 done 3070IFS=$as_save_IFS 3071 3072fi 3073fi 3074AWK=$ac_cv_prog_AWK 3075if test -n "$AWK"; then 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3077$as_echo "$AWK" >&6; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081fi 3082 3083 3084 test -n "$AWK" && break 3085done 3086 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3088$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3089set x ${MAKE-make} 3090ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3091if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 cat >conftest.make <<\_ACEOF 3095SHELL = /bin/sh 3096all: 3097 @echo '@@@%%%=$(MAKE)=@@@%%%' 3098_ACEOF 3099# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3100case `${MAKE-make} -f conftest.make 2>/dev/null` in 3101 *@@@%%%=?*=@@@%%%*) 3102 eval ac_cv_prog_make_${ac_make}_set=yes;; 3103 *) 3104 eval ac_cv_prog_make_${ac_make}_set=no;; 3105esac 3106rm -f conftest.make 3107fi 3108if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3110$as_echo "yes" >&6; } 3111 SET_MAKE= 3112else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115 SET_MAKE="MAKE=${MAKE-make}" 3116fi 3117 3118rm -rf .tst 2>/dev/null 3119mkdir .tst 2>/dev/null 3120if test -d .tst; then 3121 am__leading_dot=. 3122else 3123 am__leading_dot=_ 3124fi 3125rmdir .tst 2>/dev/null 3126 3127# Check whether --enable-silent-rules was given. 3128if test "${enable_silent_rules+set}" = set; then : 3129 enableval=$enable_silent_rules; 3130fi 3131 3132case $enable_silent_rules in # ((( 3133 yes) AM_DEFAULT_VERBOSITY=0;; 3134 no) AM_DEFAULT_VERBOSITY=1;; 3135 *) AM_DEFAULT_VERBOSITY=1;; 3136esac 3137am_make=${MAKE-make} 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3139$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3140if ${am_cv_make_support_nested_variables+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if $as_echo 'TRUE=$(BAR$(V)) 3144BAR0=false 3145BAR1=true 3146V=1 3147am__doit: 3148 @$(TRUE) 3149.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3150 am_cv_make_support_nested_variables=yes 3151else 3152 am_cv_make_support_nested_variables=no 3153fi 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3156$as_echo "$am_cv_make_support_nested_variables" >&6; } 3157if test $am_cv_make_support_nested_variables = yes; then 3158 AM_V='$(V)' 3159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3160else 3161 AM_V=$AM_DEFAULT_VERBOSITY 3162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3163fi 3164AM_BACKSLASH='\' 3165 3166if test "`cd $srcdir && pwd`" != "`pwd`"; then 3167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3168 # is not polluted with repeated "-I." 3169 am__isrc=' -I$(srcdir)' 3170 # test to see if srcdir already configured 3171 if test -f $srcdir/config.status; then 3172 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3173 fi 3174fi 3175 3176# test whether we have cygpath 3177if test -z "$CYGPATH_W"; then 3178 if (cygpath --version) >/dev/null 2>/dev/null; then 3179 CYGPATH_W='cygpath -w' 3180 else 3181 CYGPATH_W=echo 3182 fi 3183fi 3184 3185 3186# Define the identity of the package. 3187 PACKAGE='bfd' 3188 VERSION='2.39.50' 3189 3190 3191cat >>confdefs.h <<_ACEOF 3192#define PACKAGE "$PACKAGE" 3193_ACEOF 3194 3195 3196cat >>confdefs.h <<_ACEOF 3197#define VERSION "$VERSION" 3198_ACEOF 3199 3200# Some tools Automake needs. 3201 3202ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3203 3204 3205AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3206 3207 3208AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3209 3210 3211AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3212 3213 3214MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3215 3216# For better backward compatibility. To be removed once Automake 1.9.x 3217# dies out for good. For more background, see: 3218# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3219# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3220mkdir_p='$(MKDIR_P)' 3221 3222# We need awk for the "check" target (and possibly the TAP driver). The 3223# system "awk" is bad on some platforms. 3224# Always define AMTAR for backward compatibility. Yes, it's still used 3225# in the wild :-( We should find a proper way to deprecate it ... 3226AMTAR='$${TAR-tar}' 3227 3228 3229# We'll loop over all known methods to create a tar archive until one works. 3230_am_tools='gnutar pax cpio none' 3231 3232am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3233 3234 3235 3236 3237 3238 3239# POSIX will say in a future version that running "rm -f" with no argument 3240# is OK; and we want to be able to make that assumption in our Makefile 3241# recipes. So use an aggressive probe to check that the usage we want is 3242# actually supported "in the wild" to an acceptable degree. 3243# See automake bug#10828. 3244# To make any issue more visible, cause the running configure to be aborted 3245# by default if the 'rm' program in use doesn't match our expectations; the 3246# user can still override this though. 3247if rm -f && rm -fr && rm -rf; then : OK; else 3248 cat >&2 <<'END' 3249Oops! 3250 3251Your 'rm' program seems unable to run without file operands specified 3252on the command line, even when the '-f' option is present. This is contrary 3253to the behaviour of most rm programs out there, and not conforming with 3254the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3255 3256Please tell bug-automake@gnu.org about your system, including the value 3257of your $PATH and any error possibly output before this message. This 3258can help us improve future automake versions. 3259 3260END 3261 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3262 echo 'Configuration will proceed anyway, since you have set the' >&2 3263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3264 echo >&2 3265 else 3266 cat >&2 <<'END' 3267Aborting the configuration process, to ensure you take notice of the issue. 3268 3269You can download and install GNU coreutils to get an 'rm' implementation 3270that behaves properly: <http://www.gnu.org/software/coreutils/>. 3271 3272If you want to complete the configuration process using your problematic 3273'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3274to "yes", and re-run configure. 3275 3276END 3277 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3278 fi 3279fi 3280 3281# Check whether --enable-silent-rules was given. 3282if test "${enable_silent_rules+set}" = set; then : 3283 enableval=$enable_silent_rules; 3284fi 3285 3286case $enable_silent_rules in # ((( 3287 yes) AM_DEFAULT_VERBOSITY=0;; 3288 no) AM_DEFAULT_VERBOSITY=1;; 3289 *) AM_DEFAULT_VERBOSITY=0;; 3290esac 3291am_make=${MAKE-make} 3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3293$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3294if ${am_cv_make_support_nested_variables+:} false; then : 3295 $as_echo_n "(cached) " >&6 3296else 3297 if $as_echo 'TRUE=$(BAR$(V)) 3298BAR0=false 3299BAR1=true 3300V=1 3301am__doit: 3302 @$(TRUE) 3303.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3304 am_cv_make_support_nested_variables=yes 3305else 3306 am_cv_make_support_nested_variables=no 3307fi 3308fi 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3310$as_echo "$am_cv_make_support_nested_variables" >&6; } 3311if test $am_cv_make_support_nested_variables = yes; then 3312 AM_V='$(V)' 3313 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3314else 3315 AM_V=$AM_DEFAULT_VERBOSITY 3316 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3317fi 3318AM_BACKSLASH='\' 3319 3320 3321if test -n "$ac_tool_prefix"; then 3322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3323set dummy ${ac_tool_prefix}ar; ac_word=$2 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3325$as_echo_n "checking for $ac_word... " >&6; } 3326if ${ac_cv_prog_AR+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328else 3329 if test -n "$AR"; then 3330 ac_cv_prog_AR="$AR" # Let the user override the test. 3331else 3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3333for as_dir in $PATH 3334do 3335 IFS=$as_save_IFS 3336 test -z "$as_dir" && as_dir=. 3337 for ac_exec_ext in '' $ac_executable_extensions; do 3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3339 ac_cv_prog_AR="${ac_tool_prefix}ar" 3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343done 3344 done 3345IFS=$as_save_IFS 3346 3347fi 3348fi 3349AR=$ac_cv_prog_AR 3350if test -n "$AR"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3352$as_echo "$AR" >&6; } 3353else 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3355$as_echo "no" >&6; } 3356fi 3357 3358 3359fi 3360if test -z "$ac_cv_prog_AR"; then 3361 ac_ct_AR=$AR 3362 # Extract the first word of "ar", so it can be a program name with args. 3363set dummy ar; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if ${ac_cv_prog_ac_ct_AR+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$ac_ct_AR"; then 3370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_ac_ct_AR="ar" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389ac_ct_AR=$ac_cv_prog_ac_ct_AR 3390if test -n "$ac_ct_AR"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 3392$as_echo "$ac_ct_AR" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 if test "x$ac_ct_AR" = x; then 3399 AR="" 3400 else 3401 case $cross_compiling:$ac_tool_warned in 3402yes:) 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3405ac_tool_warned=yes ;; 3406esac 3407 AR=$ac_ct_AR 3408 fi 3409else 3410 AR="$ac_cv_prog_AR" 3411fi 3412 3413if test -n "$ac_tool_prefix"; then 3414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3415set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3417$as_echo_n "checking for $ac_word... " >&6; } 3418if ${ac_cv_prog_RANLIB+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 if test -n "$RANLIB"; then 3422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3423else 3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3425for as_dir in $PATH 3426do 3427 IFS=$as_save_IFS 3428 test -z "$as_dir" && as_dir=. 3429 for ac_exec_ext in '' $ac_executable_extensions; do 3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3433 break 2 3434 fi 3435done 3436 done 3437IFS=$as_save_IFS 3438 3439fi 3440fi 3441RANLIB=$ac_cv_prog_RANLIB 3442if test -n "$RANLIB"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3444$as_echo "$RANLIB" >&6; } 3445else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447$as_echo "no" >&6; } 3448fi 3449 3450 3451fi 3452if test -z "$ac_cv_prog_RANLIB"; then 3453 ac_ct_RANLIB=$RANLIB 3454 # Extract the first word of "ranlib", so it can be a program name with args. 3455set dummy ranlib; ac_word=$2 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457$as_echo_n "checking for $ac_word... " >&6; } 3458if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 if test -n "$ac_ct_RANLIB"; then 3462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3463else 3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3471 ac_cv_prog_ac_ct_RANLIB="ranlib" 3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479fi 3480fi 3481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3482if test -n "$ac_ct_RANLIB"; then 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3484$as_echo "$ac_ct_RANLIB" >&6; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487$as_echo "no" >&6; } 3488fi 3489 3490 if test "x$ac_ct_RANLIB" = x; then 3491 RANLIB=":" 3492 else 3493 case $cross_compiling:$ac_tool_warned in 3494yes:) 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3497ac_tool_warned=yes ;; 3498esac 3499 RANLIB=$ac_ct_RANLIB 3500 fi 3501else 3502 RANLIB="$ac_cv_prog_RANLIB" 3503fi 3504 3505 3506# Check whether --enable-shared was given. 3507if test "${enable_shared+set}" = set; then : 3508 enableval=$enable_shared; p=${PACKAGE-default} 3509 case $enableval in 3510 yes) enable_shared=yes ;; 3511 no) enable_shared=no ;; 3512 *) 3513 enable_shared=no 3514 # Look at the argument we got. We use all the common list separators. 3515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3516 for pkg in $enableval; do 3517 IFS="$lt_save_ifs" 3518 if test "X$pkg" = "X$p"; then 3519 enable_shared=yes 3520 fi 3521 done 3522 IFS="$lt_save_ifs" 3523 ;; 3524 esac 3525else 3526 enable_shared=no 3527fi 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538ac_ext=c 3539ac_cpp='$CPP $CPPFLAGS' 3540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3542ac_compiler_gnu=$ac_cv_c_compiler_gnu 3543if test -n "$ac_tool_prefix"; then 3544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3545set dummy ${ac_tool_prefix}gcc; ac_word=$2 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547$as_echo_n "checking for $ac_word... " >&6; } 3548if ${ac_cv_prog_CC+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 if test -n "$CC"; then 3552 ac_cv_prog_CC="$CC" # Let the user override the test. 3553else 3554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555for as_dir in $PATH 3556do 3557 IFS=$as_save_IFS 3558 test -z "$as_dir" && as_dir=. 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3561 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3563 break 2 3564 fi 3565done 3566 done 3567IFS=$as_save_IFS 3568 3569fi 3570fi 3571CC=$ac_cv_prog_CC 3572if test -n "$CC"; then 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3574$as_echo "$CC" >&6; } 3575else 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577$as_echo "no" >&6; } 3578fi 3579 3580 3581fi 3582if test -z "$ac_cv_prog_CC"; then 3583 ac_ct_CC=$CC 3584 # Extract the first word of "gcc", so it can be a program name with args. 3585set dummy gcc; ac_word=$2 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587$as_echo_n "checking for $ac_word... " >&6; } 3588if ${ac_cv_prog_ac_ct_CC+:} false; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 if test -n "$ac_ct_CC"; then 3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3593else 3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_exec_ext in '' $ac_executable_extensions; do 3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3601 ac_cv_prog_ac_ct_CC="gcc" 3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3603 break 2 3604 fi 3605done 3606 done 3607IFS=$as_save_IFS 3608 3609fi 3610fi 3611ac_ct_CC=$ac_cv_prog_ac_ct_CC 3612if test -n "$ac_ct_CC"; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3614$as_echo "$ac_ct_CC" >&6; } 3615else 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617$as_echo "no" >&6; } 3618fi 3619 3620 if test "x$ac_ct_CC" = x; then 3621 CC="" 3622 else 3623 case $cross_compiling:$ac_tool_warned in 3624yes:) 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3627ac_tool_warned=yes ;; 3628esac 3629 CC=$ac_ct_CC 3630 fi 3631else 3632 CC="$ac_cv_prog_CC" 3633fi 3634 3635if test -z "$CC"; then 3636 if test -n "$ac_tool_prefix"; then 3637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3638set dummy ${ac_tool_prefix}cc; ac_word=$2 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3640$as_echo_n "checking for $ac_word... " >&6; } 3641if ${ac_cv_prog_CC+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -n "$CC"; then 3645 ac_cv_prog_CC="$CC" # Let the user override the test. 3646else 3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3654 ac_cv_prog_CC="${ac_tool_prefix}cc" 3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658done 3659 done 3660IFS=$as_save_IFS 3661 3662fi 3663fi 3664CC=$ac_cv_prog_CC 3665if test -n "$CC"; then 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3667$as_echo "$CC" >&6; } 3668else 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3670$as_echo "no" >&6; } 3671fi 3672 3673 3674 fi 3675fi 3676if test -z "$CC"; then 3677 # Extract the first word of "cc", so it can be a program name with args. 3678set dummy cc; ac_word=$2 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3680$as_echo_n "checking for $ac_word... " >&6; } 3681if ${ac_cv_prog_CC+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 if test -n "$CC"; then 3685 ac_cv_prog_CC="$CC" # Let the user override the test. 3686else 3687 ac_prog_rejected=no 3688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689for as_dir in $PATH 3690do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3696 ac_prog_rejected=yes 3697 continue 3698 fi 3699 ac_cv_prog_CC="cc" 3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703done 3704 done 3705IFS=$as_save_IFS 3706 3707if test $ac_prog_rejected = yes; then 3708 # We found a bogon in the path, so make sure we never use it. 3709 set dummy $ac_cv_prog_CC 3710 shift 3711 if test $# != 0; then 3712 # We chose a different compiler from the bogus one. 3713 # However, it has the same basename, so the bogon will be chosen 3714 # first if we set CC to just the basename; use the full file name. 3715 shift 3716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3717 fi 3718fi 3719fi 3720fi 3721CC=$ac_cv_prog_CC 3722if test -n "$CC"; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3724$as_echo "$CC" >&6; } 3725else 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727$as_echo "no" >&6; } 3728fi 3729 3730 3731fi 3732if test -z "$CC"; then 3733 if test -n "$ac_tool_prefix"; then 3734 for ac_prog in cl.exe 3735 do 3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3737set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739$as_echo_n "checking for $ac_word... " >&6; } 3740if ${ac_cv_prog_CC+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 if test -n "$CC"; then 3744 ac_cv_prog_CC="$CC" # Let the user override the test. 3745else 3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3747for as_dir in $PATH 3748do 3749 IFS=$as_save_IFS 3750 test -z "$as_dir" && as_dir=. 3751 for ac_exec_ext in '' $ac_executable_extensions; do 3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3755 break 2 3756 fi 3757done 3758 done 3759IFS=$as_save_IFS 3760 3761fi 3762fi 3763CC=$ac_cv_prog_CC 3764if test -n "$CC"; then 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3766$as_echo "$CC" >&6; } 3767else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3769$as_echo "no" >&6; } 3770fi 3771 3772 3773 test -n "$CC" && break 3774 done 3775fi 3776if test -z "$CC"; then 3777 ac_ct_CC=$CC 3778 for ac_prog in cl.exe 3779do 3780 # Extract the first word of "$ac_prog", so it can be a program name with args. 3781set dummy $ac_prog; ac_word=$2 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783$as_echo_n "checking for $ac_word... " >&6; } 3784if ${ac_cv_prog_ac_ct_CC+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 if test -n "$ac_ct_CC"; then 3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3789else 3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3791for as_dir in $PATH 3792do 3793 IFS=$as_save_IFS 3794 test -z "$as_dir" && as_dir=. 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3797 ac_cv_prog_ac_ct_CC="$ac_prog" 3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801done 3802 done 3803IFS=$as_save_IFS 3804 3805fi 3806fi 3807ac_ct_CC=$ac_cv_prog_ac_ct_CC 3808if test -n "$ac_ct_CC"; then 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3810$as_echo "$ac_ct_CC" >&6; } 3811else 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813$as_echo "no" >&6; } 3814fi 3815 3816 3817 test -n "$ac_ct_CC" && break 3818done 3819 3820 if test "x$ac_ct_CC" = x; then 3821 CC="" 3822 else 3823 case $cross_compiling:$ac_tool_warned in 3824yes:) 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3827ac_tool_warned=yes ;; 3828esac 3829 CC=$ac_ct_CC 3830 fi 3831fi 3832 3833fi 3834 3835 3836test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3838as_fn_error $? "no acceptable C compiler found in \$PATH 3839See \`config.log' for more details" "$LINENO" 5; } 3840 3841# Provide some information about the compiler. 3842$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3843set X $ac_compile 3844ac_compiler=$2 3845for ac_option in --version -v -V -qversion; do 3846 { { ac_try="$ac_compiler $ac_option >&5" 3847case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3852$as_echo "$ac_try_echo"; } >&5 3853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3854 ac_status=$? 3855 if test -s conftest.err; then 3856 sed '10a\ 3857... rest of stderr output deleted ... 3858 10q' conftest.err >conftest.er1 3859 cat conftest.er1 >&5 3860 fi 3861 rm -f conftest.er1 conftest.err 3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3863 test $ac_status = 0; } 3864done 3865 3866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868 3869int 3870main () 3871{ 3872 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877ac_clean_files_save=$ac_clean_files 3878ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3879# Try to create an executable without -o first, disregard a.out. 3880# It will help us diagnose broken compilers, and finding out an intuition 3881# of exeext. 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3883$as_echo_n "checking whether the C compiler works... " >&6; } 3884ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3885 3886# The possible output files: 3887ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3888 3889ac_rmfiles= 3890for ac_file in $ac_files 3891do 3892 case $ac_file in 3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3894 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3895 esac 3896done 3897rm -f $ac_rmfiles 3898 3899if { { ac_try="$ac_link_default" 3900case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903esac 3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3905$as_echo "$ac_try_echo"; } >&5 3906 (eval "$ac_link_default") 2>&5 3907 ac_status=$? 3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; }; then : 3910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3911# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3912# in a Makefile. We should not override ac_cv_exeext if it was cached, 3913# so that the user can short-circuit this test for compilers unknown to 3914# Autoconf. 3915for ac_file in $ac_files '' 3916do 3917 test -f "$ac_file" || continue 3918 case $ac_file in 3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3920 ;; 3921 [ab].out ) 3922 # We found the default executable, but exeext='' is most 3923 # certainly right. 3924 break;; 3925 *.* ) 3926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3927 then :; else 3928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3929 fi 3930 # We set ac_cv_exeext here because the later test for it is not 3931 # safe: cross compilers may not add the suffix if given an `-o' 3932 # argument, so we may need to know it at that point already. 3933 # Even if this section looks crufty: it has the advantage of 3934 # actually working. 3935 break;; 3936 * ) 3937 break;; 3938 esac 3939done 3940test "$ac_cv_exeext" = no && ac_cv_exeext= 3941 3942else 3943 ac_file='' 3944fi 3945if test -z "$ac_file"; then : 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3947$as_echo "no" >&6; } 3948$as_echo "$as_me: failed program was:" >&5 3949sed 's/^/| /' conftest.$ac_ext >&5 3950 3951{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3953as_fn_error 77 "C compiler cannot create executables 3954See \`config.log' for more details" "$LINENO" 5; } 3955else 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3957$as_echo "yes" >&6; } 3958fi 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3960$as_echo_n "checking for C compiler default output file name... " >&6; } 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3962$as_echo "$ac_file" >&6; } 3963ac_exeext=$ac_cv_exeext 3964 3965rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3966ac_clean_files=$ac_clean_files_save 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3968$as_echo_n "checking for suffix of executables... " >&6; } 3969if { { ac_try="$ac_link" 3970case "(($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_link") 2>&5 3977 ac_status=$? 3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; }; then : 3980 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3981# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3982# work properly (i.e., refer to `conftest.exe'), while it won't with 3983# `rm'. 3984for ac_file in conftest.exe conftest conftest.*; do 3985 test -f "$ac_file" || continue 3986 case $ac_file in 3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3989 break;; 3990 * ) break;; 3991 esac 3992done 3993else 3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3997See \`config.log' for more details" "$LINENO" 5; } 3998fi 3999rm -f conftest conftest$ac_cv_exeext 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4001$as_echo "$ac_cv_exeext" >&6; } 4002 4003rm -f conftest.$ac_ext 4004EXEEXT=$ac_cv_exeext 4005ac_exeext=$EXEEXT 4006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4007/* end confdefs.h. */ 4008#include <stdio.h> 4009int 4010main () 4011{ 4012FILE *f = fopen ("conftest.out", "w"); 4013 return ferror (f) || fclose (f) != 0; 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019ac_clean_files="$ac_clean_files conftest.out" 4020# Check that the compiler produces executables we can run. If not, either 4021# the compiler is broken, or we cross compile. 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4023$as_echo_n "checking whether we are cross compiling... " >&6; } 4024if test "$cross_compiling" != yes; then 4025 { { ac_try="$ac_link" 4026case "(($ac_try" in 4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4028 *) ac_try_echo=$ac_try;; 4029esac 4030eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4031$as_echo "$ac_try_echo"; } >&5 4032 (eval "$ac_link") 2>&5 4033 ac_status=$? 4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4035 test $ac_status = 0; } 4036 if { ac_try='./conftest$ac_cv_exeext' 4037 { { case "(($ac_try" in 4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4039 *) ac_try_echo=$ac_try;; 4040esac 4041eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4042$as_echo "$ac_try_echo"; } >&5 4043 (eval "$ac_try") 2>&5 4044 ac_status=$? 4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4046 test $ac_status = 0; }; }; then 4047 cross_compiling=no 4048 else 4049 if test "$cross_compiling" = maybe; then 4050 cross_compiling=yes 4051 else 4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4054as_fn_error $? "cannot run C compiled programs. 4055If you meant to cross compile, use \`--host'. 4056See \`config.log' for more details" "$LINENO" 5; } 4057 fi 4058 fi 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4061$as_echo "$cross_compiling" >&6; } 4062 4063rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4064ac_clean_files=$ac_clean_files_save 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4066$as_echo_n "checking for suffix of object files... " >&6; } 4067if ${ac_cv_objext+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071/* end confdefs.h. */ 4072 4073int 4074main () 4075{ 4076 4077 ; 4078 return 0; 4079} 4080_ACEOF 4081rm -f conftest.o conftest.obj 4082if { { ac_try="$ac_compile" 4083case "(($ac_try" in 4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4085 *) ac_try_echo=$ac_try;; 4086esac 4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4088$as_echo "$ac_try_echo"; } >&5 4089 (eval "$ac_compile") 2>&5 4090 ac_status=$? 4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4092 test $ac_status = 0; }; then : 4093 for ac_file in conftest.o conftest.obj conftest.*; do 4094 test -f "$ac_file" || continue; 4095 case $ac_file in 4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4098 break;; 4099 esac 4100done 4101else 4102 $as_echo "$as_me: failed program was:" >&5 4103sed 's/^/| /' conftest.$ac_ext >&5 4104 4105{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4107as_fn_error $? "cannot compute suffix of object files: cannot compile 4108See \`config.log' for more details" "$LINENO" 5; } 4109fi 4110rm -f conftest.$ac_cv_objext conftest.$ac_ext 4111fi 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4113$as_echo "$ac_cv_objext" >&6; } 4114OBJEXT=$ac_cv_objext 4115ac_objext=$OBJEXT 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4117$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4118if ${ac_cv_c_compiler_gnu+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123 4124int 4125main () 4126{ 4127#ifndef __GNUC__ 4128 choke me 4129#endif 4130 4131 ; 4132 return 0; 4133} 4134_ACEOF 4135if ac_fn_c_try_compile "$LINENO"; then : 4136 ac_compiler_gnu=yes 4137else 4138 ac_compiler_gnu=no 4139fi 4140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141ac_cv_c_compiler_gnu=$ac_compiler_gnu 4142 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4145$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4146if test $ac_compiler_gnu = yes; then 4147 GCC=yes 4148else 4149 GCC= 4150fi 4151ac_test_CFLAGS=${CFLAGS+set} 4152ac_save_CFLAGS=$CFLAGS 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4154$as_echo_n "checking whether $CC accepts -g... " >&6; } 4155if ${ac_cv_prog_cc_g+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157else 4158 ac_save_c_werror_flag=$ac_c_werror_flag 4159 ac_c_werror_flag=yes 4160 ac_cv_prog_cc_g=no 4161 CFLAGS="-g" 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164 4165int 4166main () 4167{ 4168 4169 ; 4170 return 0; 4171} 4172_ACEOF 4173if ac_fn_c_try_compile "$LINENO"; then : 4174 ac_cv_prog_cc_g=yes 4175else 4176 CFLAGS="" 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178/* end confdefs.h. */ 4179 4180int 4181main () 4182{ 4183 4184 ; 4185 return 0; 4186} 4187_ACEOF 4188if ac_fn_c_try_compile "$LINENO"; then : 4189 4190else 4191 ac_c_werror_flag=$ac_save_c_werror_flag 4192 CFLAGS="-g" 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194/* end confdefs.h. */ 4195 4196int 4197main () 4198{ 4199 4200 ; 4201 return 0; 4202} 4203_ACEOF 4204if ac_fn_c_try_compile "$LINENO"; then : 4205 ac_cv_prog_cc_g=yes 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4208fi 4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4212 ac_c_werror_flag=$ac_save_c_werror_flag 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4215$as_echo "$ac_cv_prog_cc_g" >&6; } 4216if test "$ac_test_CFLAGS" = set; then 4217 CFLAGS=$ac_save_CFLAGS 4218elif test $ac_cv_prog_cc_g = yes; then 4219 if test "$GCC" = yes; then 4220 CFLAGS="-g -O2" 4221 else 4222 CFLAGS="-g" 4223 fi 4224else 4225 if test "$GCC" = yes; then 4226 CFLAGS="-O2" 4227 else 4228 CFLAGS= 4229 fi 4230fi 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4232$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4233if ${ac_cv_prog_cc_c89+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 ac_cv_prog_cc_c89=no 4237ac_save_CC=$CC 4238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239/* end confdefs.h. */ 4240#include <stdarg.h> 4241#include <stdio.h> 4242struct stat; 4243/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4244struct buf { int x; }; 4245FILE * (*rcsopen) (struct buf *, struct stat *, int); 4246static char *e (p, i) 4247 char **p; 4248 int i; 4249{ 4250 return p[i]; 4251} 4252static char *f (char * (*g) (char **, int), char **p, ...) 4253{ 4254 char *s; 4255 va_list v; 4256 va_start (v,p); 4257 s = g (p, va_arg (v,int)); 4258 va_end (v); 4259 return s; 4260} 4261 4262/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4263 function prototypes and stuff, but not '\xHH' hex character constants. 4264 These don't provoke an error unfortunately, instead are silently treated 4265 as 'x'. The following induces an error, until -std is added to get 4266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4267 array size at least. It's necessary to write '\x00'==0 to get something 4268 that's true only with -std. */ 4269int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4270 4271/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4272 inside strings and character constants. */ 4273#define FOO(x) 'x' 4274int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4275 4276int test (int i, double x); 4277struct s1 {int (*f) (int a);}; 4278struct s2 {int (*f) (double a);}; 4279int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4280int argc; 4281char **argv; 4282int 4283main () 4284{ 4285return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4286 ; 4287 return 0; 4288} 4289_ACEOF 4290for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4292do 4293 CC="$ac_save_CC $ac_arg" 4294 if ac_fn_c_try_compile "$LINENO"; then : 4295 ac_cv_prog_cc_c89=$ac_arg 4296fi 4297rm -f core conftest.err conftest.$ac_objext 4298 test "x$ac_cv_prog_cc_c89" != "xno" && break 4299done 4300rm -f conftest.$ac_ext 4301CC=$ac_save_CC 4302 4303fi 4304# AC_CACHE_VAL 4305case "x$ac_cv_prog_cc_c89" in 4306 x) 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4308$as_echo "none needed" >&6; } ;; 4309 xno) 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4311$as_echo "unsupported" >&6; } ;; 4312 *) 4313 CC="$CC $ac_cv_prog_cc_c89" 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4315$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4316esac 4317if test "x$ac_cv_prog_cc_c89" != xno; then : 4318 4319fi 4320 4321ac_ext=c 4322ac_cpp='$CPP $CPPFLAGS' 4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4325ac_compiler_gnu=$ac_cv_c_compiler_gnu 4326 4327ac_ext=c 4328ac_cpp='$CPP $CPPFLAGS' 4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4333$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4334if ${am_cv_prog_cc_c_o+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4338/* end confdefs.h. */ 4339 4340int 4341main () 4342{ 4343 4344 ; 4345 return 0; 4346} 4347_ACEOF 4348 # Make sure it works both with $CC and with simple cc. 4349 # Following AC_PROG_CC_C_O, we do the test twice because some 4350 # compilers refuse to overwrite an existing .o file with -o, 4351 # though they will create one. 4352 am_cv_prog_cc_c_o=yes 4353 for am_i in 1 2; do 4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } \ 4359 && test -f conftest2.$ac_objext; then 4360 : OK 4361 else 4362 am_cv_prog_cc_c_o=no 4363 break 4364 fi 4365 done 4366 rm -f core conftest* 4367 unset am_i 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4370$as_echo "$am_cv_prog_cc_c_o" >&6; } 4371if test "$am_cv_prog_cc_c_o" != yes; then 4372 # Losing compiler, so override with the script. 4373 # FIXME: It is wrong to rewrite CC. 4374 # But if we don't then we get into trouble of one sort or another. 4375 # A longer-term fix would be to have automake use am__CC in this case, 4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4377 CC="$am_aux_dir/compile $CC" 4378fi 4379ac_ext=c 4380ac_cpp='$CPP $CPPFLAGS' 4381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4383ac_compiler_gnu=$ac_cv_c_compiler_gnu 4384 4385DEPDIR="${am__leading_dot}deps" 4386 4387ac_config_commands="$ac_config_commands depfiles" 4388 4389 4390am_make=${MAKE-make} 4391cat > confinc << 'END' 4392am__doit: 4393 @echo this is the am__doit target 4394.PHONY: am__doit 4395END 4396# If we don't find an include directive, just comment out the code. 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4398$as_echo_n "checking for style of include used by $am_make... " >&6; } 4399am__include="#" 4400am__quote= 4401_am_result=none 4402# First try GNU make style include. 4403echo "include confinc" > confmf 4404# Ignore all kinds of additional output from 'make'. 4405case `$am_make -s -f confmf 2> /dev/null` in #( 4406*the\ am__doit\ target*) 4407 am__include=include 4408 am__quote= 4409 _am_result=GNU 4410 ;; 4411esac 4412# Now try BSD make style include. 4413if test "$am__include" = "#"; then 4414 echo '.include "confinc"' > confmf 4415 case `$am_make -s -f confmf 2> /dev/null` in #( 4416 *the\ am__doit\ target*) 4417 am__include=.include 4418 am__quote="\"" 4419 _am_result=BSD 4420 ;; 4421 esac 4422fi 4423 4424 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4426$as_echo "$_am_result" >&6; } 4427rm -f confinc confmf 4428 4429# Check whether --enable-dependency-tracking was given. 4430if test "${enable_dependency_tracking+set}" = set; then : 4431 enableval=$enable_dependency_tracking; 4432fi 4433 4434if test "x$enable_dependency_tracking" != xno; then 4435 am_depcomp="$ac_aux_dir/depcomp" 4436 AMDEPBACKSLASH='\' 4437 am__nodep='_no' 4438fi 4439 if test "x$enable_dependency_tracking" != xno; then 4440 AMDEP_TRUE= 4441 AMDEP_FALSE='#' 4442else 4443 AMDEP_TRUE='#' 4444 AMDEP_FALSE= 4445fi 4446 4447 4448 4449depcc="$CC" am_compiler_list= 4450 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4452$as_echo_n "checking dependency style of $depcc... " >&6; } 4453if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4457 # We make a subdir and do the tests there. Otherwise we can end up 4458 # making bogus files that we don't know about and never remove. For 4459 # instance it was reported that on HP-UX the gcc test will end up 4460 # making a dummy file named 'D' -- because '-MD' means "put the output 4461 # in D". 4462 rm -rf conftest.dir 4463 mkdir conftest.dir 4464 # Copy depcomp to subdir because otherwise we won't find it if we're 4465 # using a relative directory. 4466 cp "$am_depcomp" conftest.dir 4467 cd conftest.dir 4468 # We will build objects and dependencies in a subdirectory because 4469 # it helps to detect inapplicable dependency modes. For instance 4470 # both Tru64's cc and ICC support -MD to output dependencies as a 4471 # side effect of compilation, but ICC will put the dependencies in 4472 # the current directory while Tru64 will put them in the object 4473 # directory. 4474 mkdir sub 4475 4476 am_cv_CC_dependencies_compiler_type=none 4477 if test "$am_compiler_list" = ""; then 4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4479 fi 4480 am__universal=false 4481 case " $depcc " in #( 4482 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4483 esac 4484 4485 for depmode in $am_compiler_list; do 4486 # Setup a source with many dependencies, because some compilers 4487 # like to wrap large dependency lists on column 80 (with \), and 4488 # we should not choose a depcomp mode which is confused by this. 4489 # 4490 # We need to recreate these files for each test, as the compiler may 4491 # overwrite some of them when testing with obscure command lines. 4492 # This happens at least with the AIX C compiler. 4493 : > sub/conftest.c 4494 for i in 1 2 3 4 5 6; do 4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4497 # Solaris 10 /bin/sh. 4498 echo '/* dummy */' > sub/conftst$i.h 4499 done 4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4501 4502 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4503 # mode. It turns out that the SunPro C++ compiler does not properly 4504 # handle '-M -o', and we need to detect this. Also, some Intel 4505 # versions had trouble with output in subdirs. 4506 am__obj=sub/conftest.${OBJEXT-o} 4507 am__minus_obj="-o $am__obj" 4508 case $depmode in 4509 gcc) 4510 # This depmode causes a compiler race in universal mode. 4511 test "$am__universal" = false || continue 4512 ;; 4513 nosideeffect) 4514 # After this tag, mechanisms are not by side-effect, so they'll 4515 # only be used when explicitly requested. 4516 if test "x$enable_dependency_tracking" = xyes; then 4517 continue 4518 else 4519 break 4520 fi 4521 ;; 4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4523 # This compiler won't grok '-c -o', but also, the minuso test has 4524 # not run yet. These depmodes are late enough in the game, and 4525 # so weak that their functioning should not be impacted. 4526 am__obj=conftest.${OBJEXT-o} 4527 am__minus_obj= 4528 ;; 4529 none) break ;; 4530 esac 4531 if depmode=$depmode \ 4532 source=sub/conftest.c object=$am__obj \ 4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4535 >/dev/null 2>conftest.err && 4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4540 # icc doesn't choke on unknown options, it will just issue warnings 4541 # or remarks (even with -Werror). So we grep stderr for any message 4542 # that says an option was ignored or not supported. 4543 # When given -MP, icc 7.0 and 7.1 complain thusly: 4544 # icc: Command line warning: ignoring option '-M'; no argument required 4545 # The diagnosis changed in icc 8.0: 4546 # icc: Command line remark: option '-MP' not supported 4547 if (grep 'ignoring option' conftest.err || 4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4549 am_cv_CC_dependencies_compiler_type=$depmode 4550 break 4551 fi 4552 fi 4553 done 4554 4555 cd .. 4556 rm -rf conftest.dir 4557else 4558 am_cv_CC_dependencies_compiler_type=none 4559fi 4560 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4563$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4564CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4565 4566 if 4567 test "x$enable_dependency_tracking" != xno \ 4568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4569 am__fastdepCC_TRUE= 4570 am__fastdepCC_FALSE='#' 4571else 4572 am__fastdepCC_TRUE='#' 4573 am__fastdepCC_FALSE= 4574fi 4575 4576 4577 4578ac_ext=c 4579ac_cpp='$CPP $CPPFLAGS' 4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4582ac_compiler_gnu=$ac_cv_c_compiler_gnu 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4584$as_echo_n "checking how to run the C preprocessor... " >&6; } 4585# On Suns, sometimes $CPP names a directory. 4586if test -n "$CPP" && test -d "$CPP"; then 4587 CPP= 4588fi 4589if test -z "$CPP"; then 4590 if ${ac_cv_prog_CPP+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 # Double quotes because CPP needs to be expanded 4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4595 do 4596 ac_preproc_ok=false 4597for ac_c_preproc_warn_flag in '' yes 4598do 4599 # Use a header file that comes with gcc, so configuring glibc 4600 # with a fresh cross-compiler works. 4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4602 # <limits.h> exists even on freestanding compilers. 4603 # On the NeXT, cc -E runs the code through the compiler's parser, 4604 # not just through cpp. "Syntax error" is here to catch this case. 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4606/* end confdefs.h. */ 4607#ifdef __STDC__ 4608# include <limits.h> 4609#else 4610# include <assert.h> 4611#endif 4612 Syntax error 4613_ACEOF 4614if ac_fn_c_try_cpp "$LINENO"; then : 4615 4616else 4617 # Broken: fails on valid input. 4618continue 4619fi 4620rm -f conftest.err conftest.i conftest.$ac_ext 4621 4622 # OK, works on sane cases. Now check whether nonexistent headers 4623 # can be detected and how. 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625/* end confdefs.h. */ 4626#include <ac_nonexistent.h> 4627_ACEOF 4628if ac_fn_c_try_cpp "$LINENO"; then : 4629 # Broken: success on invalid input. 4630continue 4631else 4632 # Passes both tests. 4633ac_preproc_ok=: 4634break 4635fi 4636rm -f conftest.err conftest.i conftest.$ac_ext 4637 4638done 4639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4640rm -f conftest.i conftest.err conftest.$ac_ext 4641if $ac_preproc_ok; then : 4642 break 4643fi 4644 4645 done 4646 ac_cv_prog_CPP=$CPP 4647 4648fi 4649 CPP=$ac_cv_prog_CPP 4650else 4651 ac_cv_prog_CPP=$CPP 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4654$as_echo "$CPP" >&6; } 4655ac_preproc_ok=false 4656for ac_c_preproc_warn_flag in '' yes 4657do 4658 # Use a header file that comes with gcc, so configuring glibc 4659 # with a fresh cross-compiler works. 4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4661 # <limits.h> exists even on freestanding compilers. 4662 # On the NeXT, cc -E runs the code through the compiler's parser, 4663 # not just through cpp. "Syntax error" is here to catch this case. 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666#ifdef __STDC__ 4667# include <limits.h> 4668#else 4669# include <assert.h> 4670#endif 4671 Syntax error 4672_ACEOF 4673if ac_fn_c_try_cpp "$LINENO"; then : 4674 4675else 4676 # Broken: fails on valid input. 4677continue 4678fi 4679rm -f conftest.err conftest.i conftest.$ac_ext 4680 4681 # OK, works on sane cases. Now check whether nonexistent headers 4682 # can be detected and how. 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685#include <ac_nonexistent.h> 4686_ACEOF 4687if ac_fn_c_try_cpp "$LINENO"; then : 4688 # Broken: success on invalid input. 4689continue 4690else 4691 # Passes both tests. 4692ac_preproc_ok=: 4693break 4694fi 4695rm -f conftest.err conftest.i conftest.$ac_ext 4696 4697done 4698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4699rm -f conftest.i conftest.err conftest.$ac_ext 4700if $ac_preproc_ok; then : 4701 4702else 4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4705as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4706See \`config.log' for more details" "$LINENO" 5; } 4707fi 4708 4709ac_ext=c 4710ac_cpp='$CPP $CPPFLAGS' 4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4713ac_compiler_gnu=$ac_cv_c_compiler_gnu 4714 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4717$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4718if ${ac_cv_path_GREP+:} false; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 if test -z "$GREP"; then 4722 ac_path_GREP_found=false 4723 # Loop through the user's path and test for each of PROGNAME-LIST 4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4725for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4726do 4727 IFS=$as_save_IFS 4728 test -z "$as_dir" && as_dir=. 4729 for ac_prog in grep ggrep; do 4730 for ac_exec_ext in '' $ac_executable_extensions; do 4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4732 as_fn_executable_p "$ac_path_GREP" || continue 4733# Check for GNU ac_path_GREP and select it if it is found. 4734 # Check for GNU $ac_path_GREP 4735case `"$ac_path_GREP" --version 2>&1` in 4736*GNU*) 4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4738*) 4739 ac_count=0 4740 $as_echo_n 0123456789 >"conftest.in" 4741 while : 4742 do 4743 cat "conftest.in" "conftest.in" >"conftest.tmp" 4744 mv "conftest.tmp" "conftest.in" 4745 cp "conftest.in" "conftest.nl" 4746 $as_echo 'GREP' >> "conftest.nl" 4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4749 as_fn_arith $ac_count + 1 && ac_count=$as_val 4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4751 # Best one so far, save it but keep looking for a better one 4752 ac_cv_path_GREP="$ac_path_GREP" 4753 ac_path_GREP_max=$ac_count 4754 fi 4755 # 10*(2^10) chars as input seems more than enough 4756 test $ac_count -gt 10 && break 4757 done 4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4759esac 4760 4761 $ac_path_GREP_found && break 3 4762 done 4763 done 4764 done 4765IFS=$as_save_IFS 4766 if test -z "$ac_cv_path_GREP"; then 4767 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4768 fi 4769else 4770 ac_cv_path_GREP=$GREP 4771fi 4772 4773fi 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4775$as_echo "$ac_cv_path_GREP" >&6; } 4776 GREP="$ac_cv_path_GREP" 4777 4778 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4780$as_echo_n "checking for egrep... " >&6; } 4781if ${ac_cv_path_EGREP+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4785 then ac_cv_path_EGREP="$GREP -E" 4786 else 4787 if test -z "$EGREP"; then 4788 ac_path_EGREP_found=false 4789 # Loop through the user's path and test for each of PROGNAME-LIST 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_prog in egrep; do 4796 for ac_exec_ext in '' $ac_executable_extensions; do 4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4798 as_fn_executable_p "$ac_path_EGREP" || continue 4799# Check for GNU ac_path_EGREP and select it if it is found. 4800 # Check for GNU $ac_path_EGREP 4801case `"$ac_path_EGREP" --version 2>&1` in 4802*GNU*) 4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4804*) 4805 ac_count=0 4806 $as_echo_n 0123456789 >"conftest.in" 4807 while : 4808 do 4809 cat "conftest.in" "conftest.in" >"conftest.tmp" 4810 mv "conftest.tmp" "conftest.in" 4811 cp "conftest.in" "conftest.nl" 4812 $as_echo 'EGREP' >> "conftest.nl" 4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4815 as_fn_arith $ac_count + 1 && ac_count=$as_val 4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4817 # Best one so far, save it but keep looking for a better one 4818 ac_cv_path_EGREP="$ac_path_EGREP" 4819 ac_path_EGREP_max=$ac_count 4820 fi 4821 # 10*(2^10) chars as input seems more than enough 4822 test $ac_count -gt 10 && break 4823 done 4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4825esac 4826 4827 $ac_path_EGREP_found && break 3 4828 done 4829 done 4830 done 4831IFS=$as_save_IFS 4832 if test -z "$ac_cv_path_EGREP"; then 4833 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4834 fi 4835else 4836 ac_cv_path_EGREP=$EGREP 4837fi 4838 4839 fi 4840fi 4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4842$as_echo "$ac_cv_path_EGREP" >&6; } 4843 EGREP="$ac_cv_path_EGREP" 4844 4845 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4847$as_echo_n "checking for ANSI C header files... " >&6; } 4848if ${ac_cv_header_stdc+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853#include <stdlib.h> 4854#include <stdarg.h> 4855#include <string.h> 4856#include <float.h> 4857 4858int 4859main () 4860{ 4861 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866if ac_fn_c_try_compile "$LINENO"; then : 4867 ac_cv_header_stdc=yes 4868else 4869 ac_cv_header_stdc=no 4870fi 4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4872 4873if test $ac_cv_header_stdc = yes; then 4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877#include <string.h> 4878 4879_ACEOF 4880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4881 $EGREP "memchr" >/dev/null 2>&1; then : 4882 4883else 4884 ac_cv_header_stdc=no 4885fi 4886rm -f conftest* 4887 4888fi 4889 4890if test $ac_cv_header_stdc = yes; then 4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4893/* end confdefs.h. */ 4894#include <stdlib.h> 4895 4896_ACEOF 4897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4898 $EGREP "free" >/dev/null 2>&1; then : 4899 4900else 4901 ac_cv_header_stdc=no 4902fi 4903rm -f conftest* 4904 4905fi 4906 4907if test $ac_cv_header_stdc = yes; then 4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4909 if test "$cross_compiling" = yes; then : 4910 : 4911else 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914#include <ctype.h> 4915#include <stdlib.h> 4916#if ((' ' & 0x0FF) == 0x020) 4917# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4918# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4919#else 4920# define ISLOWER(c) \ 4921 (('a' <= (c) && (c) <= 'i') \ 4922 || ('j' <= (c) && (c) <= 'r') \ 4923 || ('s' <= (c) && (c) <= 'z')) 4924# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4925#endif 4926 4927#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4928int 4929main () 4930{ 4931 int i; 4932 for (i = 0; i < 256; i++) 4933 if (XOR (islower (i), ISLOWER (i)) 4934 || toupper (i) != TOUPPER (i)) 4935 return 2; 4936 return 0; 4937} 4938_ACEOF 4939if ac_fn_c_try_run "$LINENO"; then : 4940 4941else 4942 ac_cv_header_stdc=no 4943fi 4944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4945 conftest.$ac_objext conftest.beam conftest.$ac_ext 4946fi 4947 4948fi 4949fi 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4951$as_echo "$ac_cv_header_stdc" >&6; } 4952if test $ac_cv_header_stdc = yes; then 4953 4954$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4955 4956fi 4957 4958# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4959for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4960 inttypes.h stdint.h unistd.h 4961do : 4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4963ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4964" 4965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4966 cat >>confdefs.h <<_ACEOF 4967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4968_ACEOF 4969 4970fi 4971 4972done 4973 4974 4975 4976 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4977if test "x$ac_cv_header_minix_config_h" = xyes; then : 4978 MINIX=yes 4979else 4980 MINIX= 4981fi 4982 4983 4984 if test "$MINIX" = yes; then 4985 4986$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4987 4988 4989$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4990 4991 4992$as_echo "#define _MINIX 1" >>confdefs.h 4993 4994 fi 4995 4996 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4998$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4999if ${ac_cv_safe_to_define___extensions__+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004 5005# define __EXTENSIONS__ 1 5006 $ac_includes_default 5007int 5008main () 5009{ 5010 5011 ; 5012 return 0; 5013} 5014_ACEOF 5015if ac_fn_c_try_compile "$LINENO"; then : 5016 ac_cv_safe_to_define___extensions__=yes 5017else 5018 ac_cv_safe_to_define___extensions__=no 5019fi 5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5021fi 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5023$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5024 test $ac_cv_safe_to_define___extensions__ = yes && 5025 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5026 5027 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5028 5029 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5030 5031 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5032 5033 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5034 5035 5036 5037 5038 5039case `pwd` in 5040 *\ * | *\ *) 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5042$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5043esac 5044 5045 5046 5047macro_version='2.2.7a' 5048macro_revision='1.3134' 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062ltmain="$ac_aux_dir/ltmain.sh" 5063 5064# Backslashify metacharacters that are still active within 5065# double-quoted strings. 5066sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5067 5068# Same as above, but do not quote variable references. 5069double_quote_subst='s/\(["`\\]\)/\\\1/g' 5070 5071# Sed substitution to delay expansion of an escaped shell variable in a 5072# double_quote_subst'ed string. 5073delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5074 5075# Sed substitution to delay expansion of an escaped single quote. 5076delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5077 5078# Sed substitution to avoid accidental globbing in evaled expressions 5079no_glob_subst='s/\*/\\\*/g' 5080 5081ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5082ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5083ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5084 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5086$as_echo_n "checking how to print strings... " >&6; } 5087# Test print first, because it will be a builtin if present. 5088if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5089 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5090 ECHO='print -r --' 5091elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5092 ECHO='printf %s\n' 5093else 5094 # Use this function as a fallback that always works. 5095 func_fallback_echo () 5096 { 5097 eval 'cat <<_LTECHO_EOF 5098$1 5099_LTECHO_EOF' 5100 } 5101 ECHO='func_fallback_echo' 5102fi 5103 5104# func_echo_all arg... 5105# Invoke $ECHO with all args, space-separated. 5106func_echo_all () 5107{ 5108 $ECHO "" 5109} 5110 5111case "$ECHO" in 5112 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5113$as_echo "printf" >&6; } ;; 5114 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5115$as_echo "print -r" >&6; } ;; 5116 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5117$as_echo "cat" >&6; } ;; 5118esac 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5134$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5135if ${ac_cv_path_SED+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5139 for ac_i in 1 2 3 4 5 6 7; do 5140 ac_script="$ac_script$as_nl$ac_script" 5141 done 5142 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5143 { ac_script=; unset ac_script;} 5144 if test -z "$SED"; then 5145 ac_path_SED_found=false 5146 # Loop through the user's path and test for each of PROGNAME-LIST 5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5148for as_dir in $PATH 5149do 5150 IFS=$as_save_IFS 5151 test -z "$as_dir" && as_dir=. 5152 for ac_prog in sed gsed; do 5153 for ac_exec_ext in '' $ac_executable_extensions; do 5154 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5155 as_fn_executable_p "$ac_path_SED" || continue 5156# Check for GNU ac_path_SED and select it if it is found. 5157 # Check for GNU $ac_path_SED 5158case `"$ac_path_SED" --version 2>&1` in 5159*GNU*) 5160 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5161*) 5162 ac_count=0 5163 $as_echo_n 0123456789 >"conftest.in" 5164 while : 5165 do 5166 cat "conftest.in" "conftest.in" >"conftest.tmp" 5167 mv "conftest.tmp" "conftest.in" 5168 cp "conftest.in" "conftest.nl" 5169 $as_echo '' >> "conftest.nl" 5170 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5172 as_fn_arith $ac_count + 1 && ac_count=$as_val 5173 if test $ac_count -gt ${ac_path_SED_max-0}; then 5174 # Best one so far, save it but keep looking for a better one 5175 ac_cv_path_SED="$ac_path_SED" 5176 ac_path_SED_max=$ac_count 5177 fi 5178 # 10*(2^10) chars as input seems more than enough 5179 test $ac_count -gt 10 && break 5180 done 5181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5182esac 5183 5184 $ac_path_SED_found && break 3 5185 done 5186 done 5187 done 5188IFS=$as_save_IFS 5189 if test -z "$ac_cv_path_SED"; then 5190 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5191 fi 5192else 5193 ac_cv_path_SED=$SED 5194fi 5195 5196fi 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5198$as_echo "$ac_cv_path_SED" >&6; } 5199 SED="$ac_cv_path_SED" 5200 rm -f conftest.sed 5201 5202test -z "$SED" && SED=sed 5203Xsed="$SED -e 1s/^X//" 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5216$as_echo_n "checking for fgrep... " >&6; } 5217if ${ac_cv_path_FGREP+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5221 then ac_cv_path_FGREP="$GREP -F" 5222 else 5223 if test -z "$FGREP"; then 5224 ac_path_FGREP_found=false 5225 # Loop through the user's path and test for each of PROGNAME-LIST 5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5227for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5228do 5229 IFS=$as_save_IFS 5230 test -z "$as_dir" && as_dir=. 5231 for ac_prog in fgrep; do 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5234 as_fn_executable_p "$ac_path_FGREP" || continue 5235# Check for GNU ac_path_FGREP and select it if it is found. 5236 # Check for GNU $ac_path_FGREP 5237case `"$ac_path_FGREP" --version 2>&1` in 5238*GNU*) 5239 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5240*) 5241 ac_count=0 5242 $as_echo_n 0123456789 >"conftest.in" 5243 while : 5244 do 5245 cat "conftest.in" "conftest.in" >"conftest.tmp" 5246 mv "conftest.tmp" "conftest.in" 5247 cp "conftest.in" "conftest.nl" 5248 $as_echo 'FGREP' >> "conftest.nl" 5249 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5251 as_fn_arith $ac_count + 1 && ac_count=$as_val 5252 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5253 # Best one so far, save it but keep looking for a better one 5254 ac_cv_path_FGREP="$ac_path_FGREP" 5255 ac_path_FGREP_max=$ac_count 5256 fi 5257 # 10*(2^10) chars as input seems more than enough 5258 test $ac_count -gt 10 && break 5259 done 5260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5261esac 5262 5263 $ac_path_FGREP_found && break 3 5264 done 5265 done 5266 done 5267IFS=$as_save_IFS 5268 if test -z "$ac_cv_path_FGREP"; then 5269 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5270 fi 5271else 5272 ac_cv_path_FGREP=$FGREP 5273fi 5274 5275 fi 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5278$as_echo "$ac_cv_path_FGREP" >&6; } 5279 FGREP="$ac_cv_path_FGREP" 5280 5281 5282test -z "$GREP" && GREP=grep 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302# Check whether --with-gnu-ld was given. 5303if test "${with_gnu_ld+set}" = set; then : 5304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5305else 5306 with_gnu_ld=no 5307fi 5308 5309ac_prog=ld 5310if test "$GCC" = yes; then 5311 # Check if gcc -print-prog-name=ld gives a path. 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5313$as_echo_n "checking for ld used by $CC... " >&6; } 5314 case $host in 5315 *-*-mingw*) 5316 # gcc leaves a trailing carriage return which upsets mingw 5317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5318 *) 5319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5320 esac 5321 case $ac_prog in 5322 # Accept absolute paths. 5323 [\\/]* | ?:[\\/]*) 5324 re_direlt='/[^/][^/]*/\.\./' 5325 # Canonicalize the pathname of ld 5326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5329 done 5330 test -z "$LD" && LD="$ac_prog" 5331 ;; 5332 "") 5333 # If it fails, then pretend we aren't using GCC. 5334 ac_prog=ld 5335 ;; 5336 *) 5337 # If it is relative, then search for the first ld in PATH. 5338 with_gnu_ld=unknown 5339 ;; 5340 esac 5341elif test "$with_gnu_ld" = yes; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5343$as_echo_n "checking for GNU ld... " >&6; } 5344else 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5346$as_echo_n "checking for non-GNU ld... " >&6; } 5347fi 5348if ${lt_cv_path_LD+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 if test -z "$LD"; then 5352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5353 for ac_dir in $PATH; do 5354 IFS="$lt_save_ifs" 5355 test -z "$ac_dir" && ac_dir=. 5356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5357 lt_cv_path_LD="$ac_dir/$ac_prog" 5358 # Check to see if the program is GNU ld. I'd rather use --version, 5359 # but apparently some variants of GNU ld only accept -v. 5360 # Break only if it was the GNU/non-GNU ld that we prefer. 5361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5362 *GNU* | *'with BFD'*) 5363 test "$with_gnu_ld" != no && break 5364 ;; 5365 *) 5366 test "$with_gnu_ld" != yes && break 5367 ;; 5368 esac 5369 fi 5370 done 5371 IFS="$lt_save_ifs" 5372else 5373 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5374fi 5375fi 5376 5377LD="$lt_cv_path_LD" 5378if test -n "$LD"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5380$as_echo "$LD" >&6; } 5381else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383$as_echo "no" >&6; } 5384fi 5385test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5387$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5388if ${lt_cv_prog_gnu_ld+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390else 5391 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5392case `$LD -v 2>&1 </dev/null` in 5393*GNU* | *'with BFD'*) 5394 lt_cv_prog_gnu_ld=yes 5395 ;; 5396*) 5397 lt_cv_prog_gnu_ld=no 5398 ;; 5399esac 5400fi 5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5402$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5403with_gnu_ld=$lt_cv_prog_gnu_ld 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5414$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5415if ${lt_cv_path_NM+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 if test -n "$NM"; then 5419 # Let the user override the nm to test. 5420 lt_nm_to_check="$NM" 5421 else 5422 lt_nm_to_check="${ac_tool_prefix}nm" 5423 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5424 lt_nm_to_check="$lt_nm_to_check nm" 5425 fi 5426 fi 5427 for lt_tmp_nm in "$lt_nm_to_check"; do 5428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5430 IFS="$lt_save_ifs" 5431 test -z "$ac_dir" && ac_dir=. 5432 # Strip out any user-provided options from the nm to test twice, 5433 # the first time to test to see if nm (rather than its options) has 5434 # an explicit path, the second time to yield a file which can be 5435 # nm'ed itself. 5436 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5437 case "$tmp_nm_path" in 5438 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5439 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5440 esac 5441 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5442 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5443 # Check to see if the nm accepts a BSD-compat flag. 5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5445 # nm: unknown option "B" ignored 5446 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5447 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5448 break 5449 ;; 5450 *) 5451 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5452 *$tmp_nm*) 5453 lt_cv_path_NM="$tmp_nm -p" 5454 break 5455 ;; 5456 *) 5457 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5458 continue # so that we can try to find one that supports BSD flags 5459 ;; 5460 esac 5461 ;; 5462 esac 5463 fi 5464 done 5465 IFS="$lt_save_ifs" 5466 done 5467 : ${lt_cv_path_NM=no} 5468fi 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5470$as_echo "$lt_cv_path_NM" >&6; } 5471if test "$lt_cv_path_NM" != "no"; then 5472 NM="$lt_cv_path_NM" 5473else 5474 # Didn't find any BSD compatible name lister, look for dumpbin. 5475 if test -n "$DUMPBIN"; then : 5476 # Let the user override the test. 5477 else 5478 if test -n "$ac_tool_prefix"; then 5479 for ac_prog in dumpbin "link -dump" 5480 do 5481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5484$as_echo_n "checking for $ac_word... " >&6; } 5485if ${ac_cv_prog_DUMPBIN+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 if test -n "$DUMPBIN"; then 5489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5490else 5491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5492for as_dir in $PATH 5493do 5494 IFS=$as_save_IFS 5495 test -z "$as_dir" && as_dir=. 5496 for ac_exec_ext in '' $ac_executable_extensions; do 5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5498 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5500 break 2 5501 fi 5502done 5503 done 5504IFS=$as_save_IFS 5505 5506fi 5507fi 5508DUMPBIN=$ac_cv_prog_DUMPBIN 5509if test -n "$DUMPBIN"; then 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5511$as_echo "$DUMPBIN" >&6; } 5512else 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5514$as_echo "no" >&6; } 5515fi 5516 5517 5518 test -n "$DUMPBIN" && break 5519 done 5520fi 5521if test -z "$DUMPBIN"; then 5522 ac_ct_DUMPBIN=$DUMPBIN 5523 for ac_prog in dumpbin "link -dump" 5524do 5525 # Extract the first word of "$ac_prog", so it can be a program name with args. 5526set dummy $ac_prog; ac_word=$2 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5528$as_echo_n "checking for $ac_word... " >&6; } 5529if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 if test -n "$ac_ct_DUMPBIN"; then 5533 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5534else 5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5536for as_dir in $PATH 5537do 5538 IFS=$as_save_IFS 5539 test -z "$as_dir" && as_dir=. 5540 for ac_exec_ext in '' $ac_executable_extensions; do 5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5542 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5544 break 2 5545 fi 5546done 5547 done 5548IFS=$as_save_IFS 5549 5550fi 5551fi 5552ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5553if test -n "$ac_ct_DUMPBIN"; then 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5555$as_echo "$ac_ct_DUMPBIN" >&6; } 5556else 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5558$as_echo "no" >&6; } 5559fi 5560 5561 5562 test -n "$ac_ct_DUMPBIN" && break 5563done 5564 5565 if test "x$ac_ct_DUMPBIN" = x; then 5566 DUMPBIN=":" 5567 else 5568 case $cross_compiling:$ac_tool_warned in 5569yes:) 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5572ac_tool_warned=yes ;; 5573esac 5574 DUMPBIN=$ac_ct_DUMPBIN 5575 fi 5576fi 5577 5578 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5579 *COFF*) 5580 DUMPBIN="$DUMPBIN -symbols" 5581 ;; 5582 *) 5583 DUMPBIN=: 5584 ;; 5585 esac 5586 fi 5587 5588 if test "$DUMPBIN" != ":"; then 5589 NM="$DUMPBIN" 5590 fi 5591fi 5592test -z "$NM" && NM=nm 5593 5594 5595 5596 5597 5598 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5600$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5601if ${lt_cv_nm_interface+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 lt_cv_nm_interface="BSD nm" 5605 echo "int some_variable = 0;" > conftest.$ac_ext 5606 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5607 (eval "$ac_compile" 2>conftest.err) 5608 cat conftest.err >&5 5609 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5611 cat conftest.err >&5 5612 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5613 cat conftest.out >&5 5614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5615 lt_cv_nm_interface="MS dumpbin" 5616 fi 5617 rm -f conftest* 5618fi 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5620$as_echo "$lt_cv_nm_interface" >&6; } 5621 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5623$as_echo_n "checking whether ln -s works... " >&6; } 5624LN_S=$as_ln_s 5625if test "$LN_S" = "ln -s"; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5627$as_echo "yes" >&6; } 5628else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5630$as_echo "no, using $LN_S" >&6; } 5631fi 5632 5633# find the maximum length of command line arguments 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5635$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5636if ${lt_cv_sys_max_cmd_len+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 i=0 5640 teststring="ABCD" 5641 5642 case $build_os in 5643 msdosdjgpp*) 5644 # On DJGPP, this test can blow up pretty badly due to problems in libc 5645 # (any single argument exceeding 2000 bytes causes a buffer overrun 5646 # during glob expansion). Even if it were fixed, the result of this 5647 # check would be larger than it should be. 5648 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5649 ;; 5650 5651 gnu*) 5652 # Under GNU Hurd, this test is not required because there is 5653 # no limit to the length of command line arguments. 5654 # Libtool will interpret -1 as no limit whatsoever 5655 lt_cv_sys_max_cmd_len=-1; 5656 ;; 5657 5658 cygwin* | mingw* | cegcc*) 5659 # On Win9x/ME, this test blows up -- it succeeds, but takes 5660 # about 5 minutes as the teststring grows exponentially. 5661 # Worse, since 9x/ME are not pre-emptively multitasking, 5662 # you end up with a "frozen" computer, even though with patience 5663 # the test eventually succeeds (with a max line length of 256k). 5664 # Instead, let's just punt: use the minimum linelength reported by 5665 # all of the supported platforms: 8192 (on NT/2K/XP). 5666 lt_cv_sys_max_cmd_len=8192; 5667 ;; 5668 5669 mint*) 5670 # On MiNT this can take a long time and run out of memory. 5671 lt_cv_sys_max_cmd_len=8192; 5672 ;; 5673 5674 amigaos*) 5675 # On AmigaOS with pdksh, this test takes hours, literally. 5676 # So we just punt and use a minimum line length of 8192. 5677 lt_cv_sys_max_cmd_len=8192; 5678 ;; 5679 5680 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5681 # This has been around since 386BSD, at least. Likely further. 5682 if test -x /sbin/sysctl; then 5683 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5684 elif test -x /usr/sbin/sysctl; then 5685 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5686 else 5687 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5688 fi 5689 # And add a safety zone 5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5692 ;; 5693 5694 interix*) 5695 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5696 lt_cv_sys_max_cmd_len=196608 5697 ;; 5698 5699 osf*) 5700 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5701 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5702 # nice to cause kernel panics so lets avoid the loop below. 5703 # First set a reasonable default. 5704 lt_cv_sys_max_cmd_len=16384 5705 # 5706 if test -x /sbin/sysconfig; then 5707 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5708 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5709 esac 5710 fi 5711 ;; 5712 sco3.2v5*) 5713 lt_cv_sys_max_cmd_len=102400 5714 ;; 5715 sysv5* | sco5v6* | sysv4.2uw2*) 5716 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5717 if test -n "$kargmax"; then 5718 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5719 else 5720 lt_cv_sys_max_cmd_len=32768 5721 fi 5722 ;; 5723 *) 5724 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5725 if test -n "$lt_cv_sys_max_cmd_len"; then 5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5728 else 5729 # Make teststring a little bigger before we do anything with it. 5730 # a 1K string should be a reasonable start. 5731 for i in 1 2 3 4 5 6 7 8 ; do 5732 teststring=$teststring$teststring 5733 done 5734 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5735 # If test is not a shell built-in, we'll probably end up computing a 5736 # maximum length that is only half of the actual maximum length, but 5737 # we can't tell. 5738 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5739 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5740 test $i != 17 # 1/2 MB should be enough 5741 do 5742 i=`expr $i + 1` 5743 teststring=$teststring$teststring 5744 done 5745 # Only check the string length outside the loop. 5746 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5747 teststring= 5748 # Add a significant safety factor because C++ compilers can tack on 5749 # massive amounts of additional arguments before passing them to the 5750 # linker. It appears as though 1/2 is a usable value. 5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5752 fi 5753 ;; 5754 esac 5755 5756fi 5757 5758if test -n $lt_cv_sys_max_cmd_len ; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5760$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5761else 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5763$as_echo "none" >&6; } 5764fi 5765max_cmd_len=$lt_cv_sys_max_cmd_len 5766 5767 5768 5769 5770 5771 5772: ${CP="cp -f"} 5773: ${MV="mv -f"} 5774: ${RM="rm -f"} 5775 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5777$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5778# Try some XSI features 5779xsi_shell=no 5780( _lt_dummy="a/b/c" 5781 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5782 = c,a/b,, \ 5783 && eval 'test $(( 1 + 1 )) -eq 2 \ 5784 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5785 && xsi_shell=yes 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5787$as_echo "$xsi_shell" >&6; } 5788 5789 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5791$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5792lt_shell_append=no 5793( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5794 >/dev/null 2>&1 \ 5795 && lt_shell_append=yes 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5797$as_echo "$lt_shell_append" >&6; } 5798 5799 5800if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5801 lt_unset=unset 5802else 5803 lt_unset=false 5804fi 5805 5806 5807 5808 5809 5810# test EBCDIC or ASCII 5811case `echo X|tr X '\101'` in 5812 A) # ASCII based system 5813 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5814 lt_SP2NL='tr \040 \012' 5815 lt_NL2SP='tr \015\012 \040\040' 5816 ;; 5817 *) # EBCDIC based system 5818 lt_SP2NL='tr \100 \n' 5819 lt_NL2SP='tr \r\n \100\100' 5820 ;; 5821esac 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5832$as_echo_n "checking for $LD option to reload object files... " >&6; } 5833if ${lt_cv_ld_reload_flag+:} false; then : 5834 $as_echo_n "(cached) " >&6 5835else 5836 lt_cv_ld_reload_flag='-r' 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5839$as_echo "$lt_cv_ld_reload_flag" >&6; } 5840reload_flag=$lt_cv_ld_reload_flag 5841case $reload_flag in 5842"" | " "*) ;; 5843*) reload_flag=" $reload_flag" ;; 5844esac 5845reload_cmds='$LD$reload_flag -o $output$reload_objs' 5846case $host_os in 5847 darwin*) 5848 if test "$GCC" = yes; then 5849 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5850 else 5851 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5852 fi 5853 ;; 5854esac 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864if test -n "$ac_tool_prefix"; then 5865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5866set dummy ${ac_tool_prefix}objdump; ac_word=$2 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5868$as_echo_n "checking for $ac_word... " >&6; } 5869if ${ac_cv_prog_OBJDUMP+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871else 5872 if test -n "$OBJDUMP"; then 5873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890fi 5891fi 5892OBJDUMP=$ac_cv_prog_OBJDUMP 5893if test -n "$OBJDUMP"; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5895$as_echo "$OBJDUMP" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898$as_echo "no" >&6; } 5899fi 5900 5901 5902fi 5903if test -z "$ac_cv_prog_OBJDUMP"; then 5904 ac_ct_OBJDUMP=$OBJDUMP 5905 # Extract the first word of "objdump", so it can be a program name with args. 5906set dummy objdump; ac_word=$2 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908$as_echo_n "checking for $ac_word... " >&6; } 5909if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911else 5912 if test -n "$ac_ct_OBJDUMP"; then 5913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5914else 5915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5916for as_dir in $PATH 5917do 5918 IFS=$as_save_IFS 5919 test -z "$as_dir" && as_dir=. 5920 for ac_exec_ext in '' $ac_executable_extensions; do 5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5922 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5924 break 2 5925 fi 5926done 5927 done 5928IFS=$as_save_IFS 5929 5930fi 5931fi 5932ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5933if test -n "$ac_ct_OBJDUMP"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5935$as_echo "$ac_ct_OBJDUMP" >&6; } 5936else 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5938$as_echo "no" >&6; } 5939fi 5940 5941 if test "x$ac_ct_OBJDUMP" = x; then 5942 OBJDUMP="false" 5943 else 5944 case $cross_compiling:$ac_tool_warned in 5945yes:) 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5948ac_tool_warned=yes ;; 5949esac 5950 OBJDUMP=$ac_ct_OBJDUMP 5951 fi 5952else 5953 OBJDUMP="$ac_cv_prog_OBJDUMP" 5954fi 5955 5956test -z "$OBJDUMP" && OBJDUMP=objdump 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5967$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5968if ${lt_cv_deplibs_check_method+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 lt_cv_file_magic_cmd='$MAGIC_CMD' 5972lt_cv_file_magic_test_file= 5973lt_cv_deplibs_check_method='unknown' 5974# Need to set the preceding variable on all platforms that support 5975# interlibrary dependencies. 5976# 'none' -- dependencies not supported. 5977# `unknown' -- same as none, but documents that we really don't know. 5978# 'pass_all' -- all dependencies passed with no checks. 5979# 'test_compile' -- check by making test program. 5980# 'file_magic [[regex]]' -- check by looking for files in library path 5981# which responds to the $file_magic_cmd with a given extended regex. 5982# If you have `file' or equivalent on your system and you're not sure 5983# whether `pass_all' will *always* work, you probably want this one. 5984 5985case $host_os in 5986aix[4-9]*) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989 5990beos*) 5991 lt_cv_deplibs_check_method=pass_all 5992 ;; 5993 5994bsdi[45]*) 5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5996 lt_cv_file_magic_cmd='/usr/bin/file -L' 5997 lt_cv_file_magic_test_file=/shlib/libc.so 5998 ;; 5999 6000cygwin*) 6001 # func_win32_libid is a shell function defined in ltmain.sh 6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6003 lt_cv_file_magic_cmd='func_win32_libid' 6004 ;; 6005 6006mingw* | pw32*) 6007 # Base MSYS/MinGW do not provide the 'file' command needed by 6008 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6009 # unless we find 'file', for example because we are cross-compiling. 6010 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6011 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6013 lt_cv_file_magic_cmd='func_win32_libid' 6014 else 6015 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6016 lt_cv_file_magic_cmd='$OBJDUMP -f' 6017 fi 6018 ;; 6019 6020cegcc*) 6021 # use the weaker test based on 'objdump'. See mingw*. 6022 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6023 lt_cv_file_magic_cmd='$OBJDUMP -f' 6024 ;; 6025 6026darwin* | rhapsody*) 6027 lt_cv_deplibs_check_method=pass_all 6028 ;; 6029 6030freebsd* | dragonfly*) 6031 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6032 case $host_cpu in 6033 i*86 ) 6034 # Not sure whether the presence of OpenBSD here was a mistake. 6035 # Let's accept both of them until this is cleared up. 6036 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6037 lt_cv_file_magic_cmd=/usr/bin/file 6038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6039 ;; 6040 esac 6041 else 6042 lt_cv_deplibs_check_method=pass_all 6043 fi 6044 ;; 6045 6046gnu*) 6047 lt_cv_deplibs_check_method=pass_all 6048 ;; 6049 6050haiku*) 6051 lt_cv_deplibs_check_method=pass_all 6052 ;; 6053 6054hpux10.20* | hpux11*) 6055 lt_cv_file_magic_cmd=/usr/bin/file 6056 case $host_cpu in 6057 ia64*) 6058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6060 ;; 6061 hppa*64*) 6062 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6064 ;; 6065 *) 6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6067 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6068 ;; 6069 esac 6070 ;; 6071 6072interix[3-9]*) 6073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6075 ;; 6076 6077irix5* | irix6* | nonstopux*) 6078 case $LD in 6079 *-32|*"-32 ") libmagic=32-bit;; 6080 *-n32|*"-n32 ") libmagic=N32;; 6081 *-64|*"-64 ") libmagic=64-bit;; 6082 *) libmagic=never-match;; 6083 esac 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086 6087# This must be Linux ELF. 6088linux* | k*bsd*-gnu | kopensolaris*-gnu) 6089 lt_cv_deplibs_check_method=pass_all 6090 ;; 6091 6092netbsd*) 6093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6095 else 6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6097 fi 6098 ;; 6099 6100newos6*) 6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6102 lt_cv_file_magic_cmd=/usr/bin/file 6103 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6104 ;; 6105 6106*nto* | *qnx*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110openbsd*) 6111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6113 else 6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6115 fi 6116 ;; 6117 6118osf3* | osf4* | osf5*) 6119 lt_cv_deplibs_check_method=pass_all 6120 ;; 6121 6122rdos*) 6123 lt_cv_deplibs_check_method=pass_all 6124 ;; 6125 6126solaris*) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133 6134sysv4 | sysv4.3*) 6135 case $host_vendor in 6136 motorola) 6137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 6138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6139 ;; 6140 ncr) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143 sequent) 6144 lt_cv_file_magic_cmd='/bin/file' 6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6146 ;; 6147 sni) 6148 lt_cv_file_magic_cmd='/bin/file' 6149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6150 lt_cv_file_magic_test_file=/lib/libc.so 6151 ;; 6152 siemens) 6153 lt_cv_deplibs_check_method=pass_all 6154 ;; 6155 pc) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 esac 6159 ;; 6160 6161tpf*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164esac 6165 6166fi 6167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6168$as_echo "$lt_cv_deplibs_check_method" >&6; } 6169file_magic_cmd=$lt_cv_file_magic_cmd 6170deplibs_check_method=$lt_cv_deplibs_check_method 6171test -z "$deplibs_check_method" && deplibs_check_method=unknown 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184plugin_option= 6185plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6186for plugin in $plugin_names; do 6187 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6188 if test x$plugin_so = x$plugin; then 6189 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6190 fi 6191 if test x$plugin_so != x$plugin; then 6192 plugin_option="--plugin $plugin_so" 6193 break 6194 fi 6195done 6196 6197if test -n "$ac_tool_prefix"; then 6198 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6199set dummy ${ac_tool_prefix}ar; ac_word=$2 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201$as_echo_n "checking for $ac_word... " >&6; } 6202if ${ac_cv_prog_AR+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 if test -n "$AR"; then 6206 ac_cv_prog_AR="$AR" # Let the user override the test. 6207else 6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6215 ac_cv_prog_AR="${ac_tool_prefix}ar" 6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi 6224fi 6225AR=$ac_cv_prog_AR 6226if test -n "$AR"; then 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6228$as_echo "$AR" >&6; } 6229else 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231$as_echo "no" >&6; } 6232fi 6233 6234 6235fi 6236if test -z "$ac_cv_prog_AR"; then 6237 ac_ct_AR=$AR 6238 # Extract the first word of "ar", so it can be a program name with args. 6239set dummy ar; ac_word=$2 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6241$as_echo_n "checking for $ac_word... " >&6; } 6242if ${ac_cv_prog_ac_ct_AR+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$ac_ct_AR"; then 6246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6247else 6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6249for as_dir in $PATH 6250do 6251 IFS=$as_save_IFS 6252 test -z "$as_dir" && as_dir=. 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6255 ac_cv_prog_ac_ct_AR="ar" 6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6257 break 2 6258 fi 6259done 6260 done 6261IFS=$as_save_IFS 6262 6263fi 6264fi 6265ac_ct_AR=$ac_cv_prog_ac_ct_AR 6266if test -n "$ac_ct_AR"; then 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6268$as_echo "$ac_ct_AR" >&6; } 6269else 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6271$as_echo "no" >&6; } 6272fi 6273 6274 if test "x$ac_ct_AR" = x; then 6275 AR="false" 6276 else 6277 case $cross_compiling:$ac_tool_warned in 6278yes:) 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6281ac_tool_warned=yes ;; 6282esac 6283 AR=$ac_ct_AR 6284 fi 6285else 6286 AR="$ac_cv_prog_AR" 6287fi 6288 6289test -z "$AR" && AR=ar 6290if test -n "$plugin_option"; then 6291 if $AR --help 2>&1 | grep -q "\--plugin"; then 6292 touch conftest.c 6293 $AR $plugin_option rc conftest.a conftest.c 6294 if test "$?" != 0; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6296$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6297 else 6298 AR="$AR $plugin_option" 6299 fi 6300 rm -f conftest.* 6301 fi 6302fi 6303test -z "$AR_FLAGS" && AR_FLAGS=cru 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315if test -n "$ac_tool_prefix"; then 6316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6317set dummy ${ac_tool_prefix}strip; ac_word=$2 6318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6319$as_echo_n "checking for $ac_word... " >&6; } 6320if ${ac_cv_prog_STRIP+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322else 6323 if test -n "$STRIP"; then 6324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6325else 6326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6327for as_dir in $PATH 6328do 6329 IFS=$as_save_IFS 6330 test -z "$as_dir" && as_dir=. 6331 for ac_exec_ext in '' $ac_executable_extensions; do 6332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6333 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6335 break 2 6336 fi 6337done 6338 done 6339IFS=$as_save_IFS 6340 6341fi 6342fi 6343STRIP=$ac_cv_prog_STRIP 6344if test -n "$STRIP"; then 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6346$as_echo "$STRIP" >&6; } 6347else 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6349$as_echo "no" >&6; } 6350fi 6351 6352 6353fi 6354if test -z "$ac_cv_prog_STRIP"; then 6355 ac_ct_STRIP=$STRIP 6356 # Extract the first word of "strip", so it can be a program name with args. 6357set dummy strip; ac_word=$2 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6359$as_echo_n "checking for $ac_word... " >&6; } 6360if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 if test -n "$ac_ct_STRIP"; then 6364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6365else 6366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6367for as_dir in $PATH 6368do 6369 IFS=$as_save_IFS 6370 test -z "$as_dir" && as_dir=. 6371 for ac_exec_ext in '' $ac_executable_extensions; do 6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6373 ac_cv_prog_ac_ct_STRIP="strip" 6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6375 break 2 6376 fi 6377done 6378 done 6379IFS=$as_save_IFS 6380 6381fi 6382fi 6383ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6384if test -n "$ac_ct_STRIP"; then 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6386$as_echo "$ac_ct_STRIP" >&6; } 6387else 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389$as_echo "no" >&6; } 6390fi 6391 6392 if test "x$ac_ct_STRIP" = x; then 6393 STRIP=":" 6394 else 6395 case $cross_compiling:$ac_tool_warned in 6396yes:) 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6399ac_tool_warned=yes ;; 6400esac 6401 STRIP=$ac_ct_STRIP 6402 fi 6403else 6404 STRIP="$ac_cv_prog_STRIP" 6405fi 6406 6407test -z "$STRIP" && STRIP=: 6408 6409 6410 6411 6412 6413 6414if test -n "$ac_tool_prefix"; then 6415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6416set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6418$as_echo_n "checking for $ac_word... " >&6; } 6419if ${ac_cv_prog_RANLIB+:} false; then : 6420 $as_echo_n "(cached) " >&6 6421else 6422 if test -n "$RANLIB"; then 6423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6424else 6425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6426for as_dir in $PATH 6427do 6428 IFS=$as_save_IFS 6429 test -z "$as_dir" && as_dir=. 6430 for ac_exec_ext in '' $ac_executable_extensions; do 6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6434 break 2 6435 fi 6436done 6437 done 6438IFS=$as_save_IFS 6439 6440fi 6441fi 6442RANLIB=$ac_cv_prog_RANLIB 6443if test -n "$RANLIB"; then 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6445$as_echo "$RANLIB" >&6; } 6446else 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6448$as_echo "no" >&6; } 6449fi 6450 6451 6452fi 6453if test -z "$ac_cv_prog_RANLIB"; then 6454 ac_ct_RANLIB=$RANLIB 6455 # Extract the first word of "ranlib", so it can be a program name with args. 6456set dummy ranlib; ac_word=$2 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6458$as_echo_n "checking for $ac_word... " >&6; } 6459if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6460 $as_echo_n "(cached) " >&6 6461else 6462 if test -n "$ac_ct_RANLIB"; then 6463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6464else 6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6466for as_dir in $PATH 6467do 6468 IFS=$as_save_IFS 6469 test -z "$as_dir" && as_dir=. 6470 for ac_exec_ext in '' $ac_executable_extensions; do 6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6472 ac_cv_prog_ac_ct_RANLIB="ranlib" 6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6474 break 2 6475 fi 6476done 6477 done 6478IFS=$as_save_IFS 6479 6480fi 6481fi 6482ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6483if test -n "$ac_ct_RANLIB"; then 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6485$as_echo "$ac_ct_RANLIB" >&6; } 6486else 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488$as_echo "no" >&6; } 6489fi 6490 6491 if test "x$ac_ct_RANLIB" = x; then 6492 RANLIB=":" 6493 else 6494 case $cross_compiling:$ac_tool_warned in 6495yes:) 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6498ac_tool_warned=yes ;; 6499esac 6500 RANLIB=$ac_ct_RANLIB 6501 fi 6502else 6503 RANLIB="$ac_cv_prog_RANLIB" 6504fi 6505 6506test -z "$RANLIB" && RANLIB=: 6507if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6508 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6509 RANLIB="$RANLIB $plugin_option" 6510 fi 6511fi 6512 6513 6514 6515 6516 6517 6518# Determine commands to create old-style static archives. 6519old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6520old_postinstall_cmds='chmod 644 $oldlib' 6521old_postuninstall_cmds= 6522 6523if test -n "$RANLIB"; then 6524 case $host_os in 6525 openbsd*) 6526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6527 ;; 6528 *) 6529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6530 ;; 6531 esac 6532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6533fi 6534 6535case $host_os in 6536 darwin*) 6537 lock_old_archive_extraction=yes ;; 6538 *) 6539 lock_old_archive_extraction=no ;; 6540esac 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580# If no C compiler was specified, use CC. 6581LTCC=${LTCC-"$CC"} 6582 6583# If no C compiler flags were specified, use CFLAGS. 6584LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6585 6586# Allow CC to be a program name with arguments. 6587compiler=$CC 6588 6589 6590# Check for command to grab the raw symbol name followed by C symbol from nm. 6591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6592$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6593if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6594 $as_echo_n "(cached) " >&6 6595else 6596 6597# These are sane defaults that work on at least a few old systems. 6598# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6599 6600# Character class describing NM global symbol codes. 6601symcode='[BCDEGRST]' 6602 6603# Regexp to match symbols that can be accessed directly from C. 6604sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6605 6606# Define system-specific variables. 6607case $host_os in 6608aix*) 6609 symcode='[BCDT]' 6610 ;; 6611cygwin* | mingw* | pw32* | cegcc*) 6612 symcode='[ABCDGISTW]' 6613 ;; 6614hpux*) 6615 if test "$host_cpu" = ia64; then 6616 symcode='[ABCDEGRST]' 6617 fi 6618 ;; 6619irix* | nonstopux*) 6620 symcode='[BCDEGRST]' 6621 ;; 6622osf*) 6623 symcode='[BCDEGQRST]' 6624 ;; 6625solaris*) 6626 symcode='[BCDRT]' 6627 ;; 6628sco3.2v5*) 6629 symcode='[DT]' 6630 ;; 6631sysv4.2uw2*) 6632 symcode='[DT]' 6633 ;; 6634sysv5* | sco5v6* | unixware* | OpenUNIX*) 6635 symcode='[ABDT]' 6636 ;; 6637sysv4) 6638 symcode='[DFNSTU]' 6639 ;; 6640esac 6641 6642# If we're using GNU nm, then use its standard symbol codes. 6643case `$NM -V 2>&1` in 6644*GNU* | *'with BFD'*) 6645 symcode='[ABCDGIRSTW]' ;; 6646esac 6647 6648# Transform an extracted symbol line into a proper C declaration. 6649# Some systems (esp. on ia64) link data and code symbols differently, 6650# so use this general approach. 6651lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6652 6653# Transform an extracted symbol line into symbol name and symbol address 6654lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6655lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6656 6657# Handle CRLF in mingw tool chain 6658opt_cr= 6659case $build_os in 6660mingw*) 6661 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6662 ;; 6663esac 6664 6665# Try without a prefix underscore, then with it. 6666for ac_symprfx in "" "_"; do 6667 6668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6669 symxfrm="\\1 $ac_symprfx\\2 \\2" 6670 6671 # Write the raw and C identifiers. 6672 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6673 # Fake it for dumpbin and say T for any non-static function 6674 # and D for any global variable. 6675 # Also find C++ and __fastcall symbols from MSVC++, 6676 # which start with @ or ?. 6677 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6678" {last_section=section; section=\$ 3};"\ 6679" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6680" \$ 0!~/External *\|/{next};"\ 6681" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6682" {if(hide[section]) next};"\ 6683" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6684" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6685" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6686" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6687" ' prfx=^$ac_symprfx" 6688 else 6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6690 fi 6691 6692 # Check to see that the pipe works correctly. 6693 pipe_works=no 6694 6695 rm -f conftest* 6696 cat > conftest.$ac_ext <<_LT_EOF 6697#ifdef __cplusplus 6698extern "C" { 6699#endif 6700char nm_test_var; 6701void nm_test_func(void); 6702void nm_test_func(void){} 6703#ifdef __cplusplus 6704} 6705#endif 6706int main(){nm_test_var='a';nm_test_func();return(0);} 6707_LT_EOF 6708 6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6710 (eval $ac_compile) 2>&5 6711 ac_status=$? 6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6713 test $ac_status = 0; }; then 6714 # Now try to grab the symbols. 6715 nlist=conftest.nm 6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6717 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6718 ac_status=$? 6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6720 test $ac_status = 0; } && test -s "$nlist"; then 6721 # Try sorting and uniquifying the output. 6722 if sort "$nlist" | uniq > "$nlist"T; then 6723 mv -f "$nlist"T "$nlist" 6724 else 6725 rm -f "$nlist"T 6726 fi 6727 6728 # Make sure that we snagged all the symbols we need. 6729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6731 cat <<_LT_EOF > conftest.$ac_ext 6732#ifdef __cplusplus 6733extern "C" { 6734#endif 6735 6736_LT_EOF 6737 # Now generate the symbol file. 6738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6739 6740 cat <<_LT_EOF >> conftest.$ac_ext 6741 6742/* The mapping between symbol names and symbols. */ 6743const struct { 6744 const char *name; 6745 void *address; 6746} 6747lt__PROGRAM__LTX_preloaded_symbols[] = 6748{ 6749 { "@PROGRAM@", (void *) 0 }, 6750_LT_EOF 6751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6752 cat <<\_LT_EOF >> conftest.$ac_ext 6753 {0, (void *) 0} 6754}; 6755 6756/* This works around a problem in FreeBSD linker */ 6757#ifdef FREEBSD_WORKAROUND 6758static const void *lt_preloaded_setup() { 6759 return lt__PROGRAM__LTX_preloaded_symbols; 6760} 6761#endif 6762 6763#ifdef __cplusplus 6764} 6765#endif 6766_LT_EOF 6767 # Now try linking the two files. 6768 mv conftest.$ac_objext conftstm.$ac_objext 6769 lt_save_LIBS="$LIBS" 6770 lt_save_CFLAGS="$CFLAGS" 6771 LIBS="conftstm.$ac_objext" 6772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6774 (eval $ac_link) 2>&5 6775 ac_status=$? 6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6778 pipe_works=yes 6779 fi 6780 LIBS="$lt_save_LIBS" 6781 CFLAGS="$lt_save_CFLAGS" 6782 else 6783 echo "cannot find nm_test_func in $nlist" >&5 6784 fi 6785 else 6786 echo "cannot find nm_test_var in $nlist" >&5 6787 fi 6788 else 6789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6790 fi 6791 else 6792 echo "$progname: failed program was:" >&5 6793 cat conftest.$ac_ext >&5 6794 fi 6795 rm -rf conftest* conftst* 6796 6797 # Do not use the global_symbol_pipe unless it works. 6798 if test "$pipe_works" = yes; then 6799 break 6800 else 6801 lt_cv_sys_global_symbol_pipe= 6802 fi 6803done 6804 6805fi 6806 6807if test -z "$lt_cv_sys_global_symbol_pipe"; then 6808 lt_cv_sys_global_symbol_to_cdecl= 6809fi 6810if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6812$as_echo "failed" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6815$as_echo "ok" >&6; } 6816fi 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839# Check whether --enable-libtool-lock was given. 6840if test "${enable_libtool_lock+set}" = set; then : 6841 enableval=$enable_libtool_lock; 6842fi 6843 6844test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6845 6846# Some flags need to be propagated to the compiler or linker for good 6847# libtool support. 6848case $host in 6849ia64-*-hpux*) 6850 # Find out which ABI we are using. 6851 echo 'int i;' > conftest.$ac_ext 6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6853 (eval $ac_compile) 2>&5 6854 ac_status=$? 6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6856 test $ac_status = 0; }; then 6857 case `/usr/bin/file conftest.$ac_objext` in 6858 *ELF-32*) 6859 HPUX_IA64_MODE="32" 6860 ;; 6861 *ELF-64*) 6862 HPUX_IA64_MODE="64" 6863 ;; 6864 esac 6865 fi 6866 rm -rf conftest* 6867 ;; 6868*-*-irix6*) 6869 # Find out which ABI we are using. 6870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6872 (eval $ac_compile) 2>&5 6873 ac_status=$? 6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6875 test $ac_status = 0; }; then 6876 if test "$lt_cv_prog_gnu_ld" = yes; then 6877 case `/usr/bin/file conftest.$ac_objext` in 6878 *32-bit*) 6879 LD="${LD-ld} -melf32bsmip" 6880 ;; 6881 *N32*) 6882 LD="${LD-ld} -melf32bmipn32" 6883 ;; 6884 *64-bit*) 6885 LD="${LD-ld} -melf64bmip" 6886 ;; 6887 esac 6888 else 6889 case `/usr/bin/file conftest.$ac_objext` in 6890 *32-bit*) 6891 LD="${LD-ld} -32" 6892 ;; 6893 *N32*) 6894 LD="${LD-ld} -n32" 6895 ;; 6896 *64-bit*) 6897 LD="${LD-ld} -64" 6898 ;; 6899 esac 6900 fi 6901 fi 6902 rm -rf conftest* 6903 ;; 6904 6905x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6906s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6907 # Find out which ABI we are using. 6908 echo 'int i;' > conftest.$ac_ext 6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6910 (eval $ac_compile) 2>&5 6911 ac_status=$? 6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6913 test $ac_status = 0; }; then 6914 case `/usr/bin/file conftest.o` in 6915 *32-bit*) 6916 case $host in 6917 x86_64-*kfreebsd*-gnu) 6918 LD="${LD-ld} -m elf_i386_fbsd" 6919 ;; 6920 x86_64-*linux*) 6921 case `/usr/bin/file conftest.o` in 6922 *x86-64*) 6923 LD="${LD-ld} -m elf32_x86_64" 6924 ;; 6925 *) 6926 LD="${LD-ld} -m elf_i386" 6927 ;; 6928 esac 6929 ;; 6930 powerpc64le-*linux*) 6931 LD="${LD-ld} -m elf32lppclinux" 6932 ;; 6933 powerpc64-*linux*) 6934 LD="${LD-ld} -m elf32ppclinux" 6935 ;; 6936 s390x-*linux*) 6937 LD="${LD-ld} -m elf_s390" 6938 ;; 6939 sparc64-*linux*) 6940 LD="${LD-ld} -m elf32_sparc" 6941 ;; 6942 esac 6943 ;; 6944 *64-bit*) 6945 case $host in 6946 x86_64-*kfreebsd*-gnu) 6947 LD="${LD-ld} -m elf_x86_64_fbsd" 6948 ;; 6949 x86_64-*linux*) 6950 LD="${LD-ld} -m elf_x86_64" 6951 ;; 6952 powerpcle-*linux*) 6953 LD="${LD-ld} -m elf64lppc" 6954 ;; 6955 powerpc-*linux*) 6956 LD="${LD-ld} -m elf64ppc" 6957 ;; 6958 s390*-*linux*|s390*-*tpf*) 6959 LD="${LD-ld} -m elf64_s390" 6960 ;; 6961 sparc*-*linux*) 6962 LD="${LD-ld} -m elf64_sparc" 6963 ;; 6964 esac 6965 ;; 6966 esac 6967 fi 6968 rm -rf conftest* 6969 ;; 6970 6971*-*-sco3.2v5*) 6972 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6973 SAVE_CFLAGS="$CFLAGS" 6974 CFLAGS="$CFLAGS -belf" 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6976$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6977if ${lt_cv_cc_needs_belf+:} false; then : 6978 $as_echo_n "(cached) " >&6 6979else 6980 ac_ext=c 6981ac_cpp='$CPP $CPPFLAGS' 6982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6984ac_compiler_gnu=$ac_cv_c_compiler_gnu 6985 6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6987/* end confdefs.h. */ 6988 6989int 6990main () 6991{ 6992 6993 ; 6994 return 0; 6995} 6996_ACEOF 6997if ac_fn_c_try_link "$LINENO"; then : 6998 lt_cv_cc_needs_belf=yes 6999else 7000 lt_cv_cc_needs_belf=no 7001fi 7002rm -f core conftest.err conftest.$ac_objext \ 7003 conftest$ac_exeext conftest.$ac_ext 7004 ac_ext=c 7005ac_cpp='$CPP $CPPFLAGS' 7006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7008ac_compiler_gnu=$ac_cv_c_compiler_gnu 7009 7010fi 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7012$as_echo "$lt_cv_cc_needs_belf" >&6; } 7013 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7014 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7015 CFLAGS="$SAVE_CFLAGS" 7016 fi 7017 ;; 7018sparc*-*solaris*) 7019 # Find out which ABI we are using. 7020 echo 'int i;' > conftest.$ac_ext 7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7022 (eval $ac_compile) 2>&5 7023 ac_status=$? 7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7025 test $ac_status = 0; }; then 7026 case `/usr/bin/file conftest.o` in 7027 *64-bit*) 7028 case $lt_cv_prog_gnu_ld in 7029 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7030 *) 7031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7032 LD="${LD-ld} -64" 7033 fi 7034 ;; 7035 esac 7036 ;; 7037 esac 7038 fi 7039 rm -rf conftest* 7040 ;; 7041esac 7042 7043need_locks="$enable_libtool_lock" 7044 7045 7046 case $host_os in 7047 rhapsody* | darwin*) 7048 if test -n "$ac_tool_prefix"; then 7049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7050set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_DSYMUTIL+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$DSYMUTIL"; then 7057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076DSYMUTIL=$ac_cv_prog_DSYMUTIL 7077if test -n "$DSYMUTIL"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7079$as_echo "$DSYMUTIL" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086fi 7087if test -z "$ac_cv_prog_DSYMUTIL"; then 7088 ac_ct_DSYMUTIL=$DSYMUTIL 7089 # Extract the first word of "dsymutil", so it can be a program name with args. 7090set dummy dsymutil; ac_word=$2 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 if test -n "$ac_ct_DSYMUTIL"; then 7097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111 done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7117if test -n "$ac_ct_DSYMUTIL"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7119$as_echo "$ac_ct_DSYMUTIL" >&6; } 7120else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125 if test "x$ac_ct_DSYMUTIL" = x; then 7126 DSYMUTIL=":" 7127 else 7128 case $cross_compiling:$ac_tool_warned in 7129yes:) 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7132ac_tool_warned=yes ;; 7133esac 7134 DSYMUTIL=$ac_ct_DSYMUTIL 7135 fi 7136else 7137 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7138fi 7139 7140 if test -n "$ac_tool_prefix"; then 7141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7142set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7144$as_echo_n "checking for $ac_word... " >&6; } 7145if ${ac_cv_prog_NMEDIT+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 if test -n "$NMEDIT"; then 7149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7150else 7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152for as_dir in $PATH 7153do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_exec_ext in '' $ac_executable_extensions; do 7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7160 break 2 7161 fi 7162done 7163 done 7164IFS=$as_save_IFS 7165 7166fi 7167fi 7168NMEDIT=$ac_cv_prog_NMEDIT 7169if test -n "$NMEDIT"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7171$as_echo "$NMEDIT" >&6; } 7172else 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7174$as_echo "no" >&6; } 7175fi 7176 7177 7178fi 7179if test -z "$ac_cv_prog_NMEDIT"; then 7180 ac_ct_NMEDIT=$NMEDIT 7181 # Extract the first word of "nmedit", so it can be a program name with args. 7182set dummy nmedit; ac_word=$2 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184$as_echo_n "checking for $ac_word... " >&6; } 7185if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187else 7188 if test -n "$ac_ct_NMEDIT"; then 7189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7190else 7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192for as_dir in $PATH 7193do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7209if test -n "$ac_ct_NMEDIT"; then 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7211$as_echo "$ac_ct_NMEDIT" >&6; } 7212else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214$as_echo "no" >&6; } 7215fi 7216 7217 if test "x$ac_ct_NMEDIT" = x; then 7218 NMEDIT=":" 7219 else 7220 case $cross_compiling:$ac_tool_warned in 7221yes:) 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7224ac_tool_warned=yes ;; 7225esac 7226 NMEDIT=$ac_ct_NMEDIT 7227 fi 7228else 7229 NMEDIT="$ac_cv_prog_NMEDIT" 7230fi 7231 7232 if test -n "$ac_tool_prefix"; then 7233 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7234set dummy ${ac_tool_prefix}lipo; ac_word=$2 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7236$as_echo_n "checking for $ac_word... " >&6; } 7237if ${ac_cv_prog_LIPO+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 if test -n "$LIPO"; then 7241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7242else 7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7244for as_dir in $PATH 7245do 7246 IFS=$as_save_IFS 7247 test -z "$as_dir" && as_dir=. 7248 for ac_exec_ext in '' $ac_executable_extensions; do 7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7252 break 2 7253 fi 7254done 7255 done 7256IFS=$as_save_IFS 7257 7258fi 7259fi 7260LIPO=$ac_cv_prog_LIPO 7261if test -n "$LIPO"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7263$as_echo "$LIPO" >&6; } 7264else 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266$as_echo "no" >&6; } 7267fi 7268 7269 7270fi 7271if test -z "$ac_cv_prog_LIPO"; then 7272 ac_ct_LIPO=$LIPO 7273 # Extract the first word of "lipo", so it can be a program name with args. 7274set dummy lipo; ac_word=$2 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7276$as_echo_n "checking for $ac_word... " >&6; } 7277if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279else 7280 if test -n "$ac_ct_LIPO"; then 7281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7282else 7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 test -z "$as_dir" && as_dir=. 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7290 ac_cv_prog_ac_ct_LIPO="lipo" 7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7292 break 2 7293 fi 7294done 7295 done 7296IFS=$as_save_IFS 7297 7298fi 7299fi 7300ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7301if test -n "$ac_ct_LIPO"; then 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7303$as_echo "$ac_ct_LIPO" >&6; } 7304else 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308 7309 if test "x$ac_ct_LIPO" = x; then 7310 LIPO=":" 7311 else 7312 case $cross_compiling:$ac_tool_warned in 7313yes:) 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7316ac_tool_warned=yes ;; 7317esac 7318 LIPO=$ac_ct_LIPO 7319 fi 7320else 7321 LIPO="$ac_cv_prog_LIPO" 7322fi 7323 7324 if test -n "$ac_tool_prefix"; then 7325 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7326set dummy ${ac_tool_prefix}otool; ac_word=$2 7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7328$as_echo_n "checking for $ac_word... " >&6; } 7329if ${ac_cv_prog_OTOOL+:} false; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 if test -n "$OTOOL"; then 7333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7334else 7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7336for as_dir in $PATH 7337do 7338 IFS=$as_save_IFS 7339 test -z "$as_dir" && as_dir=. 7340 for ac_exec_ext in '' $ac_executable_extensions; do 7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7344 break 2 7345 fi 7346done 7347 done 7348IFS=$as_save_IFS 7349 7350fi 7351fi 7352OTOOL=$ac_cv_prog_OTOOL 7353if test -n "$OTOOL"; then 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7355$as_echo "$OTOOL" >&6; } 7356else 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7358$as_echo "no" >&6; } 7359fi 7360 7361 7362fi 7363if test -z "$ac_cv_prog_OTOOL"; then 7364 ac_ct_OTOOL=$OTOOL 7365 # Extract the first word of "otool", so it can be a program name with args. 7366set dummy otool; ac_word=$2 7367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7368$as_echo_n "checking for $ac_word... " >&6; } 7369if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371else 7372 if test -n "$ac_ct_OTOOL"; then 7373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7374else 7375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7376for as_dir in $PATH 7377do 7378 IFS=$as_save_IFS 7379 test -z "$as_dir" && as_dir=. 7380 for ac_exec_ext in '' $ac_executable_extensions; do 7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7382 ac_cv_prog_ac_ct_OTOOL="otool" 7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7384 break 2 7385 fi 7386done 7387 done 7388IFS=$as_save_IFS 7389 7390fi 7391fi 7392ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7393if test -n "$ac_ct_OTOOL"; then 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7395$as_echo "$ac_ct_OTOOL" >&6; } 7396else 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7398$as_echo "no" >&6; } 7399fi 7400 7401 if test "x$ac_ct_OTOOL" = x; then 7402 OTOOL=":" 7403 else 7404 case $cross_compiling:$ac_tool_warned in 7405yes:) 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7408ac_tool_warned=yes ;; 7409esac 7410 OTOOL=$ac_ct_OTOOL 7411 fi 7412else 7413 OTOOL="$ac_cv_prog_OTOOL" 7414fi 7415 7416 if test -n "$ac_tool_prefix"; then 7417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7418set dummy ${ac_tool_prefix}otool64; ac_word=$2 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7420$as_echo_n "checking for $ac_word... " >&6; } 7421if ${ac_cv_prog_OTOOL64+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 if test -n "$OTOOL64"; then 7425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7426else 7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7428for as_dir in $PATH 7429do 7430 IFS=$as_save_IFS 7431 test -z "$as_dir" && as_dir=. 7432 for ac_exec_ext in '' $ac_executable_extensions; do 7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7436 break 2 7437 fi 7438done 7439 done 7440IFS=$as_save_IFS 7441 7442fi 7443fi 7444OTOOL64=$ac_cv_prog_OTOOL64 7445if test -n "$OTOOL64"; then 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7447$as_echo "$OTOOL64" >&6; } 7448else 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7450$as_echo "no" >&6; } 7451fi 7452 7453 7454fi 7455if test -z "$ac_cv_prog_OTOOL64"; then 7456 ac_ct_OTOOL64=$OTOOL64 7457 # Extract the first word of "otool64", so it can be a program name with args. 7458set dummy otool64; ac_word=$2 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7460$as_echo_n "checking for $ac_word... " >&6; } 7461if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7462 $as_echo_n "(cached) " >&6 7463else 7464 if test -n "$ac_ct_OTOOL64"; then 7465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7466else 7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7468for as_dir in $PATH 7469do 7470 IFS=$as_save_IFS 7471 test -z "$as_dir" && as_dir=. 7472 for ac_exec_ext in '' $ac_executable_extensions; do 7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7474 ac_cv_prog_ac_ct_OTOOL64="otool64" 7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7476 break 2 7477 fi 7478done 7479 done 7480IFS=$as_save_IFS 7481 7482fi 7483fi 7484ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7485if test -n "$ac_ct_OTOOL64"; then 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7487$as_echo "$ac_ct_OTOOL64" >&6; } 7488else 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7490$as_echo "no" >&6; } 7491fi 7492 7493 if test "x$ac_ct_OTOOL64" = x; then 7494 OTOOL64=":" 7495 else 7496 case $cross_compiling:$ac_tool_warned in 7497yes:) 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7500ac_tool_warned=yes ;; 7501esac 7502 OTOOL64=$ac_ct_OTOOL64 7503 fi 7504else 7505 OTOOL64="$ac_cv_prog_OTOOL64" 7506fi 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7535$as_echo_n "checking for -single_module linker flag... " >&6; } 7536if ${lt_cv_apple_cc_single_mod+:} false; then : 7537 $as_echo_n "(cached) " >&6 7538else 7539 lt_cv_apple_cc_single_mod=no 7540 if test -z "${LT_MULTI_MODULE}"; then 7541 # By default we will add the -single_module flag. You can override 7542 # by either setting the environment variable LT_MULTI_MODULE 7543 # non-empty at configure time, or by adding -multi_module to the 7544 # link flags. 7545 rm -rf libconftest.dylib* 7546 echo "int foo(void){return 1;}" > conftest.c 7547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7548-dynamiclib -Wl,-single_module conftest.c" >&5 7549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7551 _lt_result=$? 7552 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7553 lt_cv_apple_cc_single_mod=yes 7554 else 7555 cat conftest.err >&5 7556 fi 7557 rm -rf libconftest.dylib* 7558 rm -f conftest.* 7559 fi 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7562$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7564$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7565if ${lt_cv_ld_exported_symbols_list+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 lt_cv_ld_exported_symbols_list=no 7569 save_LDFLAGS=$LDFLAGS 7570 echo "_main" > conftest.sym 7571 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574 7575int 7576main () 7577{ 7578 7579 ; 7580 return 0; 7581} 7582_ACEOF 7583if ac_fn_c_try_link "$LINENO"; then : 7584 lt_cv_ld_exported_symbols_list=yes 7585else 7586 lt_cv_ld_exported_symbols_list=no 7587fi 7588rm -f core conftest.err conftest.$ac_objext \ 7589 conftest$ac_exeext conftest.$ac_ext 7590 LDFLAGS="$save_LDFLAGS" 7591 7592fi 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7594$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7596$as_echo_n "checking for -force_load linker flag... " >&6; } 7597if ${lt_cv_ld_force_load+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 lt_cv_ld_force_load=no 7601 cat > conftest.c << _LT_EOF 7602int forced_loaded() { return 2;} 7603_LT_EOF 7604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7606 echo "$AR cru libconftest.a conftest.o" >&5 7607 $AR cru libconftest.a conftest.o 2>&5 7608 cat > conftest.c << _LT_EOF 7609int main() { return 0;} 7610_LT_EOF 7611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7613 _lt_result=$? 7614 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7615 lt_cv_ld_force_load=yes 7616 else 7617 cat conftest.err >&5 7618 fi 7619 rm -f conftest.err libconftest.a conftest conftest.c 7620 rm -rf conftest.dSYM 7621 7622fi 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7624$as_echo "$lt_cv_ld_force_load" >&6; } 7625 case $host_os in 7626 rhapsody* | darwin1.[012]) 7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7628 darwin1.*) 7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7630 darwin*) # darwin 5.x on 7631 # if running on 10.5 or later, the deployment target defaults 7632 # to the OS version, if on x86, and 10.4, the deployment 7633 # target defaults to 10.4. Don't you love it? 7634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7635 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7637 10.[012][,.]*) 7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7639 10.*) 7640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7641 esac 7642 ;; 7643 esac 7644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7645 _lt_dar_single_mod='$single_module' 7646 fi 7647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7649 else 7650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7651 fi 7652 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7653 _lt_dsymutil='~$DSYMUTIL $lib || :' 7654 else 7655 _lt_dsymutil= 7656 fi 7657 ;; 7658 esac 7659 7660for ac_header in dlfcn.h 7661do : 7662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7663" 7664if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7665 cat >>confdefs.h <<_ACEOF 7666#define HAVE_DLFCN_H 1 7667_ACEOF 7668 7669fi 7670 7671done 7672 7673 7674 7675 7676 7677# Set options 7678enable_dlopen=yes 7679 7680 7681 7682 7683 enable_win32_dll=no 7684 7685 7686 7687 # Check whether --enable-static was given. 7688if test "${enable_static+set}" = set; then : 7689 enableval=$enable_static; p=${PACKAGE-default} 7690 case $enableval in 7691 yes) enable_static=yes ;; 7692 no) enable_static=no ;; 7693 *) 7694 enable_static=no 7695 # Look at the argument we got. We use all the common list separators. 7696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7697 for pkg in $enableval; do 7698 IFS="$lt_save_ifs" 7699 if test "X$pkg" = "X$p"; then 7700 enable_static=yes 7701 fi 7702 done 7703 IFS="$lt_save_ifs" 7704 ;; 7705 esac 7706else 7707 enable_static=yes 7708fi 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719# Check whether --with-pic was given. 7720if test "${with_pic+set}" = set; then : 7721 withval=$with_pic; pic_mode="$withval" 7722else 7723 pic_mode=default 7724fi 7725 7726 7727test -z "$pic_mode" && pic_mode=default 7728 7729 7730 7731 7732 7733 7734 7735 # Check whether --enable-fast-install was given. 7736if test "${enable_fast_install+set}" = set; then : 7737 enableval=$enable_fast_install; p=${PACKAGE-default} 7738 case $enableval in 7739 yes) enable_fast_install=yes ;; 7740 no) enable_fast_install=no ;; 7741 *) 7742 enable_fast_install=no 7743 # Look at the argument we got. We use all the common list separators. 7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7745 for pkg in $enableval; do 7746 IFS="$lt_save_ifs" 7747 if test "X$pkg" = "X$p"; then 7748 enable_fast_install=yes 7749 fi 7750 done 7751 IFS="$lt_save_ifs" 7752 ;; 7753 esac 7754else 7755 enable_fast_install=yes 7756fi 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768# This can be used to rebuild libtool when needed 7769LIBTOOL_DEPS="$ltmain" 7770 7771# Always use our own libtool. 7772LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799test -z "$LN_S" && LN_S="ln -s" 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814if test -n "${ZSH_VERSION+set}" ; then 7815 setopt NO_GLOB_SUBST 7816fi 7817 7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7819$as_echo_n "checking for objdir... " >&6; } 7820if ${lt_cv_objdir+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 rm -f .libs 2>/dev/null 7824mkdir .libs 2>/dev/null 7825if test -d .libs; then 7826 lt_cv_objdir=.libs 7827else 7828 # MS-DOS does not allow filenames that begin with a dot. 7829 lt_cv_objdir=_libs 7830fi 7831rmdir .libs 2>/dev/null 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7834$as_echo "$lt_cv_objdir" >&6; } 7835objdir=$lt_cv_objdir 7836 7837 7838 7839 7840 7841cat >>confdefs.h <<_ACEOF 7842#define LT_OBJDIR "$lt_cv_objdir/" 7843_ACEOF 7844 7845 7846 7847 7848case $host_os in 7849aix3*) 7850 # AIX sometimes has problems with the GCC collect2 program. For some 7851 # reason, if we set the COLLECT_NAMES environment variable, the problems 7852 # vanish in a puff of smoke. 7853 if test "X${COLLECT_NAMES+set}" != Xset; then 7854 COLLECT_NAMES= 7855 export COLLECT_NAMES 7856 fi 7857 ;; 7858esac 7859 7860# Global variables: 7861ofile=libtool 7862can_build_shared=yes 7863 7864# All known linkers require a `.a' archive for static linking (except MSVC, 7865# which needs '.lib'). 7866libext=a 7867 7868with_gnu_ld="$lt_cv_prog_gnu_ld" 7869 7870old_CC="$CC" 7871old_CFLAGS="$CFLAGS" 7872 7873# Set sane defaults for various variables 7874test -z "$CC" && CC=cc 7875test -z "$LTCC" && LTCC=$CC 7876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7877test -z "$LD" && LD=ld 7878test -z "$ac_objext" && ac_objext=o 7879 7880for cc_temp in $compiler""; do 7881 case $cc_temp in 7882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7884 \-*) ;; 7885 *) break;; 7886 esac 7887done 7888cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7889 7890 7891# Only perform the check for file, if the check method requires it 7892test -z "$MAGIC_CMD" && MAGIC_CMD=file 7893case $deplibs_check_method in 7894file_magic*) 7895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7897$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7898if ${lt_cv_path_MAGIC_CMD+:} false; then : 7899 $as_echo_n "(cached) " >&6 7900else 7901 case $MAGIC_CMD in 7902[\\/*] | ?:[\\/]*) 7903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7904 ;; 7905*) 7906 lt_save_MAGIC_CMD="$MAGIC_CMD" 7907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7909 for ac_dir in $ac_dummy; do 7910 IFS="$lt_save_ifs" 7911 test -z "$ac_dir" && ac_dir=. 7912 if test -f $ac_dir/${ac_tool_prefix}file; then 7913 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7914 if test -n "$file_magic_test_file"; then 7915 case $deplibs_check_method in 7916 "file_magic "*) 7917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7920 $EGREP "$file_magic_regex" > /dev/null; then 7921 : 7922 else 7923 cat <<_LT_EOF 1>&2 7924 7925*** Warning: the command libtool uses to detect shared libraries, 7926*** $file_magic_cmd, produces output that libtool cannot recognize. 7927*** The result is that libtool may fail to recognize shared libraries 7928*** as such. This will affect the creation of libtool libraries that 7929*** depend on shared libraries, but programs linked with such libtool 7930*** libraries will work regardless of this problem. Nevertheless, you 7931*** may want to report the problem to your system manager and/or to 7932*** bug-libtool@gnu.org 7933 7934_LT_EOF 7935 fi ;; 7936 esac 7937 fi 7938 break 7939 fi 7940 done 7941 IFS="$lt_save_ifs" 7942 MAGIC_CMD="$lt_save_MAGIC_CMD" 7943 ;; 7944esac 7945fi 7946 7947MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7948if test -n "$MAGIC_CMD"; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7950$as_echo "$MAGIC_CMD" >&6; } 7951else 7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7953$as_echo "no" >&6; } 7954fi 7955 7956 7957 7958 7959 7960if test -z "$lt_cv_path_MAGIC_CMD"; then 7961 if test -n "$ac_tool_prefix"; then 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7963$as_echo_n "checking for file... " >&6; } 7964if ${lt_cv_path_MAGIC_CMD+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 case $MAGIC_CMD in 7968[\\/*] | ?:[\\/]*) 7969 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7970 ;; 7971*) 7972 lt_save_MAGIC_CMD="$MAGIC_CMD" 7973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7975 for ac_dir in $ac_dummy; do 7976 IFS="$lt_save_ifs" 7977 test -z "$ac_dir" && ac_dir=. 7978 if test -f $ac_dir/file; then 7979 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7980 if test -n "$file_magic_test_file"; then 7981 case $deplibs_check_method in 7982 "file_magic "*) 7983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7986 $EGREP "$file_magic_regex" > /dev/null; then 7987 : 7988 else 7989 cat <<_LT_EOF 1>&2 7990 7991*** Warning: the command libtool uses to detect shared libraries, 7992*** $file_magic_cmd, produces output that libtool cannot recognize. 7993*** The result is that libtool may fail to recognize shared libraries 7994*** as such. This will affect the creation of libtool libraries that 7995*** depend on shared libraries, but programs linked with such libtool 7996*** libraries will work regardless of this problem. Nevertheless, you 7997*** may want to report the problem to your system manager and/or to 7998*** bug-libtool@gnu.org 7999 8000_LT_EOF 8001 fi ;; 8002 esac 8003 fi 8004 break 8005 fi 8006 done 8007 IFS="$lt_save_ifs" 8008 MAGIC_CMD="$lt_save_MAGIC_CMD" 8009 ;; 8010esac 8011fi 8012 8013MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8014if test -n "$MAGIC_CMD"; then 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8016$as_echo "$MAGIC_CMD" >&6; } 8017else 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8019$as_echo "no" >&6; } 8020fi 8021 8022 8023 else 8024 MAGIC_CMD=: 8025 fi 8026fi 8027 8028 fi 8029 ;; 8030esac 8031 8032# Use C for the default configuration in the libtool script 8033 8034lt_save_CC="$CC" 8035ac_ext=c 8036ac_cpp='$CPP $CPPFLAGS' 8037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8039ac_compiler_gnu=$ac_cv_c_compiler_gnu 8040 8041 8042# Source file extension for C test sources. 8043ac_ext=c 8044 8045# Object file extension for compiled C test sources. 8046objext=o 8047objext=$objext 8048 8049# Code to be used in simple compile tests 8050lt_simple_compile_test_code="int some_variable = 0;" 8051 8052# Code to be used in simple link tests 8053lt_simple_link_test_code='int main(){return(0);}' 8054 8055 8056 8057 8058 8059 8060 8061# If no C compiler was specified, use CC. 8062LTCC=${LTCC-"$CC"} 8063 8064# If no C compiler flags were specified, use CFLAGS. 8065LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8066 8067# Allow CC to be a program name with arguments. 8068compiler=$CC 8069 8070# Save the default compiler, since it gets overwritten when the other 8071# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8072compiler_DEFAULT=$CC 8073 8074# save warnings/boilerplate of simple test code 8075ac_outfile=conftest.$ac_objext 8076echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8077eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8078_lt_compiler_boilerplate=`cat conftest.err` 8079$RM conftest* 8080 8081ac_outfile=conftest.$ac_objext 8082echo "$lt_simple_link_test_code" >conftest.$ac_ext 8083eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8084_lt_linker_boilerplate=`cat conftest.err` 8085$RM -r conftest* 8086 8087 8088## CAVEAT EMPTOR: 8089## There is no encapsulation within the following macros, do not change 8090## the running order or otherwise move them around unless you know exactly 8091## what you are doing... 8092if test -n "$compiler"; then 8093 8094lt_prog_compiler_no_builtin_flag= 8095 8096if test "$GCC" = yes; then 8097 case $cc_basename in 8098 nvcc*) 8099 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8100 *) 8101 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8102 esac 8103 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8105$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8106if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 lt_cv_prog_compiler_rtti_exceptions=no 8110 ac_outfile=conftest.$ac_objext 8111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8112 lt_compiler_flag="-fno-rtti -fno-exceptions" 8113 # Insert the option either (1) after the last *FLAGS variable, or 8114 # (2) before a word containing "conftest.", or (3) at the end. 8115 # Note that $ac_compile itself does not contain backslashes and begins 8116 # with a dollar sign (not a hyphen), so the echo should work correctly. 8117 # The option is referenced via a variable to avoid confusing sed. 8118 lt_compile=`echo "$ac_compile" | $SED \ 8119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8121 -e 's:$: $lt_compiler_flag:'` 8122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8123 (eval "$lt_compile" 2>conftest.err) 8124 ac_status=$? 8125 cat conftest.err >&5 8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8127 if (exit $ac_status) && test -s "$ac_outfile"; then 8128 # The compiler can only warn and ignore the option if not recognized 8129 # So say no if there are warnings other than the usual output. 8130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8133 lt_cv_prog_compiler_rtti_exceptions=yes 8134 fi 8135 fi 8136 $RM conftest* 8137 8138fi 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8140$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8141 8142if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8143 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8144else 8145 : 8146fi 8147 8148fi 8149 8150 8151 8152 8153 8154 8155 lt_prog_compiler_wl= 8156lt_prog_compiler_pic= 8157lt_prog_compiler_static= 8158 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8160$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8161 8162 if test "$GCC" = yes; then 8163 lt_prog_compiler_wl='-Wl,' 8164 lt_prog_compiler_static='-static' 8165 8166 case $host_os in 8167 aix*) 8168 # All AIX code is PIC. 8169 if test "$host_cpu" = ia64; then 8170 # AIX 5 now supports IA64 processor 8171 lt_prog_compiler_static='-Bstatic' 8172 fi 8173 lt_prog_compiler_pic='-fPIC' 8174 ;; 8175 8176 amigaos*) 8177 case $host_cpu in 8178 powerpc) 8179 # see comment about AmigaOS4 .so support 8180 lt_prog_compiler_pic='-fPIC' 8181 ;; 8182 m68k) 8183 # FIXME: we need at least 68020 code to build shared libraries, but 8184 # adding the `-m68020' flag to GCC prevents building anything better, 8185 # like `-m68040'. 8186 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8187 ;; 8188 esac 8189 ;; 8190 8191 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8192 # PIC is the default for these OSes. 8193 ;; 8194 8195 mingw* | cygwin* | pw32* | os2* | cegcc*) 8196 # This hack is so that the source file can tell whether it is being 8197 # built for inclusion in a dll (and should export symbols for example). 8198 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8199 # (--disable-auto-import) libraries 8200 lt_prog_compiler_pic='-DDLL_EXPORT' 8201 ;; 8202 8203 darwin* | rhapsody*) 8204 # PIC is the default on this platform 8205 # Common symbols not allowed in MH_DYLIB files 8206 lt_prog_compiler_pic='-fno-common' 8207 ;; 8208 8209 haiku*) 8210 # PIC is the default for Haiku. 8211 # The "-static" flag exists, but is broken. 8212 lt_prog_compiler_static= 8213 ;; 8214 8215 hpux*) 8216 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8217 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8218 # sets the default TLS model and affects inlining. 8219 case $host_cpu in 8220 hppa*64*) 8221 # +Z the default 8222 ;; 8223 *) 8224 lt_prog_compiler_pic='-fPIC' 8225 ;; 8226 esac 8227 ;; 8228 8229 interix[3-9]*) 8230 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8231 # Instead, we relocate shared libraries at runtime. 8232 ;; 8233 8234 msdosdjgpp*) 8235 # Just because we use GCC doesn't mean we suddenly get shared libraries 8236 # on systems that don't support them. 8237 lt_prog_compiler_can_build_shared=no 8238 enable_shared=no 8239 ;; 8240 8241 *nto* | *qnx*) 8242 # QNX uses GNU C++, but need to define -shared option too, otherwise 8243 # it will coredump. 8244 lt_prog_compiler_pic='-fPIC -shared' 8245 ;; 8246 8247 sysv4*MP*) 8248 if test -d /usr/nec; then 8249 lt_prog_compiler_pic=-Kconform_pic 8250 fi 8251 ;; 8252 8253 *) 8254 lt_prog_compiler_pic='-fPIC' 8255 ;; 8256 esac 8257 8258 case $cc_basename in 8259 nvcc*) # Cuda Compiler Driver 2.2 8260 lt_prog_compiler_wl='-Xlinker ' 8261 lt_prog_compiler_pic='-Xcompiler -fPIC' 8262 ;; 8263 esac 8264 else 8265 # PORTME Check for flag to pass linker flags through the system compiler. 8266 case $host_os in 8267 aix*) 8268 lt_prog_compiler_wl='-Wl,' 8269 if test "$host_cpu" = ia64; then 8270 # AIX 5 now supports IA64 processor 8271 lt_prog_compiler_static='-Bstatic' 8272 else 8273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8274 fi 8275 ;; 8276 8277 mingw* | cygwin* | pw32* | os2* | cegcc*) 8278 # This hack is so that the source file can tell whether it is being 8279 # built for inclusion in a dll (and should export symbols for example). 8280 lt_prog_compiler_pic='-DDLL_EXPORT' 8281 ;; 8282 8283 hpux9* | hpux10* | hpux11*) 8284 lt_prog_compiler_wl='-Wl,' 8285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8286 # not for PA HP-UX. 8287 case $host_cpu in 8288 hppa*64*|ia64*) 8289 # +Z the default 8290 ;; 8291 *) 8292 lt_prog_compiler_pic='+Z' 8293 ;; 8294 esac 8295 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8296 lt_prog_compiler_static='${wl}-a ${wl}archive' 8297 ;; 8298 8299 irix5* | irix6* | nonstopux*) 8300 lt_prog_compiler_wl='-Wl,' 8301 # PIC (with -KPIC) is the default. 8302 lt_prog_compiler_static='-non_shared' 8303 ;; 8304 8305 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8306 case $cc_basename in 8307 # old Intel for x86_64 which still supported -KPIC. 8308 ecc*) 8309 lt_prog_compiler_wl='-Wl,' 8310 lt_prog_compiler_pic='-KPIC' 8311 lt_prog_compiler_static='-static' 8312 ;; 8313 # icc used to be incompatible with GCC. 8314 # ICC 10 doesn't accept -KPIC any more. 8315 icc* | ifort*) 8316 lt_prog_compiler_wl='-Wl,' 8317 lt_prog_compiler_pic='-fPIC' 8318 lt_prog_compiler_static='-static' 8319 ;; 8320 # Lahey Fortran 8.1. 8321 lf95*) 8322 lt_prog_compiler_wl='-Wl,' 8323 lt_prog_compiler_pic='--shared' 8324 lt_prog_compiler_static='--static' 8325 ;; 8326 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8327 # Portland Group compilers (*not* the Pentium gcc compiler, 8328 # which looks to be a dead project) 8329 lt_prog_compiler_wl='-Wl,' 8330 lt_prog_compiler_pic='-fpic' 8331 lt_prog_compiler_static='-Bstatic' 8332 ;; 8333 ccc*) 8334 lt_prog_compiler_wl='-Wl,' 8335 # All Alpha code is PIC. 8336 lt_prog_compiler_static='-non_shared' 8337 ;; 8338 xl* | bgxl* | bgf* | mpixl*) 8339 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8340 lt_prog_compiler_wl='-Wl,' 8341 lt_prog_compiler_pic='-qpic' 8342 lt_prog_compiler_static='-qstaticlink' 8343 ;; 8344 *) 8345 case `$CC -V 2>&1 | sed 5q` in 8346 *Sun\ F* | *Sun*Fortran*) 8347 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8348 lt_prog_compiler_pic='-KPIC' 8349 lt_prog_compiler_static='-Bstatic' 8350 lt_prog_compiler_wl='' 8351 ;; 8352 *Sun\ C*) 8353 # Sun C 5.9 8354 lt_prog_compiler_pic='-KPIC' 8355 lt_prog_compiler_static='-Bstatic' 8356 lt_prog_compiler_wl='-Wl,' 8357 ;; 8358 esac 8359 ;; 8360 esac 8361 ;; 8362 8363 newsos6) 8364 lt_prog_compiler_pic='-KPIC' 8365 lt_prog_compiler_static='-Bstatic' 8366 ;; 8367 8368 *nto* | *qnx*) 8369 # QNX uses GNU C++, but need to define -shared option too, otherwise 8370 # it will coredump. 8371 lt_prog_compiler_pic='-fPIC -shared' 8372 ;; 8373 8374 osf3* | osf4* | osf5*) 8375 lt_prog_compiler_wl='-Wl,' 8376 # All OSF/1 code is PIC. 8377 lt_prog_compiler_static='-non_shared' 8378 ;; 8379 8380 rdos*) 8381 lt_prog_compiler_static='-non_shared' 8382 ;; 8383 8384 solaris*) 8385 lt_prog_compiler_pic='-KPIC' 8386 lt_prog_compiler_static='-Bstatic' 8387 case $cc_basename in 8388 f77* | f90* | f95*) 8389 lt_prog_compiler_wl='-Qoption ld ';; 8390 *) 8391 lt_prog_compiler_wl='-Wl,';; 8392 esac 8393 ;; 8394 8395 sunos4*) 8396 lt_prog_compiler_wl='-Qoption ld ' 8397 lt_prog_compiler_pic='-PIC' 8398 lt_prog_compiler_static='-Bstatic' 8399 ;; 8400 8401 sysv4 | sysv4.2uw2* | sysv4.3*) 8402 lt_prog_compiler_wl='-Wl,' 8403 lt_prog_compiler_pic='-KPIC' 8404 lt_prog_compiler_static='-Bstatic' 8405 ;; 8406 8407 sysv4*MP*) 8408 if test -d /usr/nec ;then 8409 lt_prog_compiler_pic='-Kconform_pic' 8410 lt_prog_compiler_static='-Bstatic' 8411 fi 8412 ;; 8413 8414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8415 lt_prog_compiler_wl='-Wl,' 8416 lt_prog_compiler_pic='-KPIC' 8417 lt_prog_compiler_static='-Bstatic' 8418 ;; 8419 8420 unicos*) 8421 lt_prog_compiler_wl='-Wl,' 8422 lt_prog_compiler_can_build_shared=no 8423 ;; 8424 8425 uts4*) 8426 lt_prog_compiler_pic='-pic' 8427 lt_prog_compiler_static='-Bstatic' 8428 ;; 8429 8430 *) 8431 lt_prog_compiler_can_build_shared=no 8432 ;; 8433 esac 8434 fi 8435 8436case $host_os in 8437 # For platforms which do not support PIC, -DPIC is meaningless: 8438 *djgpp*) 8439 lt_prog_compiler_pic= 8440 ;; 8441 *) 8442 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8443 ;; 8444esac 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8446$as_echo "$lt_prog_compiler_pic" >&6; } 8447 8448 8449 8450 8451 8452 8453# 8454# Check to make sure the PIC flag actually works. 8455# 8456if test -n "$lt_prog_compiler_pic"; then 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8458$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8459if ${lt_cv_prog_compiler_pic_works+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461else 8462 lt_cv_prog_compiler_pic_works=no 8463 ac_outfile=conftest.$ac_objext 8464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8466 # Insert the option either (1) after the last *FLAGS variable, or 8467 # (2) before a word containing "conftest.", or (3) at the end. 8468 # Note that $ac_compile itself does not contain backslashes and begins 8469 # with a dollar sign (not a hyphen), so the echo should work correctly. 8470 # The option is referenced via a variable to avoid confusing sed. 8471 lt_compile=`echo "$ac_compile" | $SED \ 8472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8474 -e 's:$: $lt_compiler_flag:'` 8475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8476 (eval "$lt_compile" 2>conftest.err) 8477 ac_status=$? 8478 cat conftest.err >&5 8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8480 if (exit $ac_status) && test -s "$ac_outfile"; then 8481 # The compiler can only warn and ignore the option if not recognized 8482 # So say no if there are warnings other than the usual output. 8483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8486 lt_cv_prog_compiler_pic_works=yes 8487 fi 8488 fi 8489 $RM conftest* 8490 8491fi 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8493$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8494 8495if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8496 case $lt_prog_compiler_pic in 8497 "" | " "*) ;; 8498 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8499 esac 8500else 8501 lt_prog_compiler_pic= 8502 lt_prog_compiler_can_build_shared=no 8503fi 8504 8505fi 8506 8507 8508 8509 8510 8511 8512# 8513# Check to make sure the static flag actually works. 8514# 8515wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8517$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8518if ${lt_cv_prog_compiler_static_works+:} false; then : 8519 $as_echo_n "(cached) " >&6 8520else 8521 lt_cv_prog_compiler_static_works=no 8522 save_LDFLAGS="$LDFLAGS" 8523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8524 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8526 # The linker can only warn and ignore the option if not recognized 8527 # So say no if there are warnings 8528 if test -s conftest.err; then 8529 # Append any errors to the config.log. 8530 cat conftest.err 1>&5 8531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8533 if diff conftest.exp conftest.er2 >/dev/null; then 8534 lt_cv_prog_compiler_static_works=yes 8535 fi 8536 else 8537 lt_cv_prog_compiler_static_works=yes 8538 fi 8539 fi 8540 $RM -r conftest* 8541 LDFLAGS="$save_LDFLAGS" 8542 8543fi 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8545$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8546 8547if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8548 : 8549else 8550 lt_prog_compiler_static= 8551fi 8552 8553 8554 8555 8556 8557 8558 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8560$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8561if ${lt_cv_prog_compiler_c_o+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 lt_cv_prog_compiler_c_o=no 8565 $RM -r conftest 2>/dev/null 8566 mkdir conftest 8567 cd conftest 8568 mkdir out 8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8570 8571 lt_compiler_flag="-o out/conftest2.$ac_objext" 8572 # Insert the option either (1) after the last *FLAGS variable, or 8573 # (2) before a word containing "conftest.", or (3) at the end. 8574 # Note that $ac_compile itself does not contain backslashes and begins 8575 # with a dollar sign (not a hyphen), so the echo should work correctly. 8576 lt_compile=`echo "$ac_compile" | $SED \ 8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8579 -e 's:$: $lt_compiler_flag:'` 8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8581 (eval "$lt_compile" 2>out/conftest.err) 8582 ac_status=$? 8583 cat out/conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8586 then 8587 # The compiler can only warn and ignore the option if not recognized 8588 # So say no if there are warnings 8589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8592 lt_cv_prog_compiler_c_o=yes 8593 fi 8594 fi 8595 chmod u+w . 2>&5 8596 $RM conftest* 8597 # SGI C++ compiler will create directory out/ii_files/ for 8598 # template instantiation 8599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8600 $RM out/* && rmdir out 8601 cd .. 8602 $RM -r conftest 8603 $RM conftest* 8604 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8607$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8608 8609 8610 8611 8612 8613 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8615$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8616if ${lt_cv_prog_compiler_c_o+:} false; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 lt_cv_prog_compiler_c_o=no 8620 $RM -r conftest 2>/dev/null 8621 mkdir conftest 8622 cd conftest 8623 mkdir out 8624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8625 8626 lt_compiler_flag="-o out/conftest2.$ac_objext" 8627 # Insert the option either (1) after the last *FLAGS variable, or 8628 # (2) before a word containing "conftest.", or (3) at the end. 8629 # Note that $ac_compile itself does not contain backslashes and begins 8630 # with a dollar sign (not a hyphen), so the echo should work correctly. 8631 lt_compile=`echo "$ac_compile" | $SED \ 8632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8634 -e 's:$: $lt_compiler_flag:'` 8635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8636 (eval "$lt_compile" 2>out/conftest.err) 8637 ac_status=$? 8638 cat out/conftest.err >&5 8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8640 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8641 then 8642 # The compiler can only warn and ignore the option if not recognized 8643 # So say no if there are warnings 8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8647 lt_cv_prog_compiler_c_o=yes 8648 fi 8649 fi 8650 chmod u+w . 2>&5 8651 $RM conftest* 8652 # SGI C++ compiler will create directory out/ii_files/ for 8653 # template instantiation 8654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8655 $RM out/* && rmdir out 8656 cd .. 8657 $RM -r conftest 8658 $RM conftest* 8659 8660fi 8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8662$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8663 8664 8665 8666 8667hard_links="nottested" 8668if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8669 # do not overwrite the value of need_locks provided by the user 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8671$as_echo_n "checking if we can lock with hard links... " >&6; } 8672 hard_links=yes 8673 $RM conftest* 8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8675 touch conftest.a 8676 ln conftest.a conftest.b 2>&5 || hard_links=no 8677 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8679$as_echo "$hard_links" >&6; } 8680 if test "$hard_links" = no; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8682$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8683 need_locks=warn 8684 fi 8685else 8686 need_locks=no 8687fi 8688 8689 8690 8691 8692 8693 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8695$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8696 8697 runpath_var= 8698 allow_undefined_flag= 8699 always_export_symbols=no 8700 archive_cmds= 8701 archive_expsym_cmds= 8702 compiler_needs_object=no 8703 enable_shared_with_static_runtimes=no 8704 export_dynamic_flag_spec= 8705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8706 hardcode_automatic=no 8707 hardcode_direct=no 8708 hardcode_direct_absolute=no 8709 hardcode_libdir_flag_spec= 8710 hardcode_libdir_flag_spec_ld= 8711 hardcode_libdir_separator= 8712 hardcode_minus_L=no 8713 hardcode_shlibpath_var=unsupported 8714 inherit_rpath=no 8715 link_all_deplibs=unknown 8716 module_cmds= 8717 module_expsym_cmds= 8718 old_archive_from_new_cmds= 8719 old_archive_from_expsyms_cmds= 8720 thread_safe_flag_spec= 8721 whole_archive_flag_spec= 8722 # include_expsyms should be a list of space-separated symbols to be *always* 8723 # included in the symbol list 8724 include_expsyms= 8725 # exclude_expsyms can be an extended regexp of symbols to exclude 8726 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8727 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8728 # as well as any symbol that contains `d'. 8729 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8730 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8731 # platforms (ab)use it in PIC code, but their linkers get confused if 8732 # the symbol is explicitly referenced. Since portable code cannot 8733 # rely on this symbol name, it's probably fine to never include it in 8734 # preloaded symbol tables. 8735 # Exclude shared library initialization/finalization symbols. 8736 extract_expsyms_cmds= 8737 8738 case $host_os in 8739 cygwin* | mingw* | pw32* | cegcc*) 8740 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8741 # When not using gcc, we currently assume that we are using 8742 # Microsoft Visual C++. 8743 if test "$GCC" != yes; then 8744 with_gnu_ld=no 8745 fi 8746 ;; 8747 interix*) 8748 # we just hope/assume this is gcc and not c89 (= MSVC++) 8749 with_gnu_ld=yes 8750 ;; 8751 openbsd*) 8752 with_gnu_ld=no 8753 ;; 8754 esac 8755 8756 ld_shlibs=yes 8757 8758 # On some targets, GNU ld is compatible enough with the native linker 8759 # that we're better off using the native interface for both. 8760 lt_use_gnu_ld_interface=no 8761 if test "$with_gnu_ld" = yes; then 8762 case $host_os in 8763 aix*) 8764 # The AIX port of GNU ld has always aspired to compatibility 8765 # with the native linker. However, as the warning in the GNU ld 8766 # block says, versions before 2.19.5* couldn't really create working 8767 # shared libraries, regardless of the interface used. 8768 case `$LD -v 2>&1` in 8769 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8770 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8771 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8772 *) 8773 lt_use_gnu_ld_interface=yes 8774 ;; 8775 esac 8776 ;; 8777 *) 8778 lt_use_gnu_ld_interface=yes 8779 ;; 8780 esac 8781 fi 8782 8783 if test "$lt_use_gnu_ld_interface" = yes; then 8784 # If archive_cmds runs LD, not CC, wlarc should be empty 8785 wlarc='${wl}' 8786 8787 # Set some defaults for GNU ld with shared library support. These 8788 # are reset later if shared libraries are not supported. Putting them 8789 # here allows them to be overridden if necessary. 8790 runpath_var=LD_RUN_PATH 8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8792 export_dynamic_flag_spec='${wl}--export-dynamic' 8793 # ancient GNU ld didn't support --whole-archive et. al. 8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8796 else 8797 whole_archive_flag_spec= 8798 fi 8799 supports_anon_versioning=no 8800 case `$LD -v 2>&1` in 8801 *GNU\ gold*) supports_anon_versioning=yes ;; 8802 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8803 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8804 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8805 *\ 2.11.*) ;; # other 2.11 versions 8806 *) supports_anon_versioning=yes ;; 8807 esac 8808 8809 # See if GNU ld supports shared libraries. 8810 case $host_os in 8811 aix[3-9]*) 8812 # On AIX/PPC, the GNU linker is very broken 8813 if test "$host_cpu" != ia64; then 8814 ld_shlibs=no 8815 cat <<_LT_EOF 1>&2 8816 8817*** Warning: the GNU linker, at least up to release 2.19, is reported 8818*** to be unable to reliably create shared libraries on AIX. 8819*** Therefore, libtool is disabling shared libraries support. If you 8820*** really care for shared libraries, you may want to install binutils 8821*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8822*** You will then need to restart the configuration process. 8823 8824_LT_EOF 8825 fi 8826 ;; 8827 8828 amigaos*) 8829 case $host_cpu in 8830 powerpc) 8831 # see comment about AmigaOS4 .so support 8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8833 archive_expsym_cmds='' 8834 ;; 8835 m68k) 8836 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8837 hardcode_libdir_flag_spec='-L$libdir' 8838 hardcode_minus_L=yes 8839 ;; 8840 esac 8841 ;; 8842 8843 beos*) 8844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8845 allow_undefined_flag=unsupported 8846 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8847 # support --undefined. This deserves some investigation. FIXME 8848 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8849 else 8850 ld_shlibs=no 8851 fi 8852 ;; 8853 8854 cygwin* | mingw* | pw32* | cegcc*) 8855 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8856 # as there is no search path for DLLs. 8857 hardcode_libdir_flag_spec='-L$libdir' 8858 export_dynamic_flag_spec='${wl}--export-all-symbols' 8859 allow_undefined_flag=unsupported 8860 always_export_symbols=no 8861 enable_shared_with_static_runtimes=yes 8862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8863 8864 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8866 # If the export-symbols file already is a .def file (1st line 8867 # is EXPORTS), use it as is; otherwise, prepend... 8868 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8869 cp $export_symbols $output_objdir/$soname.def; 8870 else 8871 echo EXPORTS > $output_objdir/$soname.def; 8872 cat $export_symbols >> $output_objdir/$soname.def; 8873 fi~ 8874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8875 else 8876 ld_shlibs=no 8877 fi 8878 ;; 8879 8880 haiku*) 8881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8882 link_all_deplibs=yes 8883 ;; 8884 8885 interix[3-9]*) 8886 hardcode_direct=no 8887 hardcode_shlibpath_var=no 8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8889 export_dynamic_flag_spec='${wl}-E' 8890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8891 # Instead, shared libraries are loaded at an image base (0x10000000 by 8892 # default) and relocated if they conflict, which is a slow very memory 8893 # consuming and fragmenting process. To avoid this, we pick a random, 8894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8895 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8897 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8898 ;; 8899 8900 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8901 tmp_diet=no 8902 if test "$host_os" = linux-dietlibc; then 8903 case $cc_basename in 8904 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8905 esac 8906 fi 8907 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8908 && test "$tmp_diet" = no 8909 then 8910 tmp_addflag=' $pic_flag' 8911 tmp_sharedflag='-shared' 8912 case $cc_basename,$host_cpu in 8913 pgcc*) # Portland Group C compiler 8914 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8915 tmp_addflag=' $pic_flag' 8916 ;; 8917 pgf77* | pgf90* | pgf95* | pgfortran*) 8918 # Portland Group f77 and f90 compilers 8919 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8920 tmp_addflag=' $pic_flag -Mnomain' ;; 8921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8922 tmp_addflag=' -i_dynamic' ;; 8923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8924 tmp_addflag=' -i_dynamic -nofor_main' ;; 8925 ifc* | ifort*) # Intel Fortran compiler 8926 tmp_addflag=' -nofor_main' ;; 8927 lf95*) # Lahey Fortran 8.1 8928 whole_archive_flag_spec= 8929 tmp_sharedflag='--shared' ;; 8930 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8931 tmp_sharedflag='-qmkshrobj' 8932 tmp_addflag= ;; 8933 nvcc*) # Cuda Compiler Driver 2.2 8934 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8935 compiler_needs_object=yes 8936 ;; 8937 esac 8938 case `$CC -V 2>&1 | sed 5q` in 8939 *Sun\ C*) # Sun C 5.9 8940 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8941 compiler_needs_object=yes 8942 tmp_sharedflag='-G' ;; 8943 *Sun\ F*) # Sun Fortran 8.3 8944 tmp_sharedflag='-G' ;; 8945 esac 8946 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8947 8948 if test "x$supports_anon_versioning" = xyes; then 8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8951 echo "local: *; };" >> $output_objdir/$libname.ver~ 8952 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8953 fi 8954 8955 case $cc_basename in 8956 xlf* | bgf* | bgxlf* | mpixlf*) 8957 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8958 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8959 hardcode_libdir_flag_spec= 8960 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8961 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8962 if test "x$supports_anon_versioning" = xyes; then 8963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8965 echo "local: *; };" >> $output_objdir/$libname.ver~ 8966 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8967 fi 8968 ;; 8969 esac 8970 else 8971 ld_shlibs=no 8972 fi 8973 ;; 8974 8975 netbsd*) 8976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8978 wlarc= 8979 else 8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8982 fi 8983 ;; 8984 8985 solaris*) 8986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8987 ld_shlibs=no 8988 cat <<_LT_EOF 1>&2 8989 8990*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8991*** create shared libraries on Solaris systems. Therefore, libtool 8992*** is disabling shared libraries support. We urge you to upgrade GNU 8993*** binutils to release 2.9.1 or newer. Another option is to modify 8994*** your PATH or compiler configuration so that the native linker is 8995*** used, and then restart. 8996 8997_LT_EOF 8998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9001 else 9002 ld_shlibs=no 9003 fi 9004 ;; 9005 9006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9007 case `$LD -v 2>&1` in 9008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9009 ld_shlibs=no 9010 cat <<_LT_EOF 1>&2 9011 9012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9013*** reliably create shared libraries on SCO systems. Therefore, libtool 9014*** is disabling shared libraries support. We urge you to upgrade GNU 9015*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9016*** your PATH or compiler configuration so that the native linker is 9017*** used, and then restart. 9018 9019_LT_EOF 9020 ;; 9021 *) 9022 # For security reasons, it is highly recommended that you always 9023 # use absolute paths for naming shared libraries, and exclude the 9024 # DT_RUNPATH tag from executables and libraries. But doing so 9025 # requires that you compile everything twice, which is a pain. 9026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9030 else 9031 ld_shlibs=no 9032 fi 9033 ;; 9034 esac 9035 ;; 9036 9037 sunos4*) 9038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9039 wlarc= 9040 hardcode_direct=yes 9041 hardcode_shlibpath_var=no 9042 ;; 9043 9044 *) 9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9048 else 9049 ld_shlibs=no 9050 fi 9051 ;; 9052 esac 9053 9054 if test "$ld_shlibs" = no; then 9055 runpath_var= 9056 hardcode_libdir_flag_spec= 9057 export_dynamic_flag_spec= 9058 whole_archive_flag_spec= 9059 fi 9060 else 9061 # PORTME fill in a description of your system's linker (not GNU ld) 9062 case $host_os in 9063 aix3*) 9064 allow_undefined_flag=unsupported 9065 always_export_symbols=yes 9066 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9067 # Note: this linker hardcodes the directories in LIBPATH if there 9068 # are no directories specified by -L. 9069 hardcode_minus_L=yes 9070 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9071 # Neither direct hardcoding nor static linking is supported with a 9072 # broken collect2. 9073 hardcode_direct=unsupported 9074 fi 9075 ;; 9076 9077 aix[4-9]*) 9078 if test "$host_cpu" = ia64; then 9079 # On IA64, the linker does run time linking by default, so we don't 9080 # have to do anything special. 9081 aix_use_runtimelinking=no 9082 exp_sym_flag='-Bexport' 9083 no_entry_flag="" 9084 else 9085 # If we're using GNU nm, then we don't want the "-C" option. 9086 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9087 # Also, AIX nm treats weak defined symbols like other global 9088 # defined symbols, whereas GNU nm marks them as "W". 9089 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9090 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9091 else 9092 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9093 fi 9094 aix_use_runtimelinking=no 9095 9096 # Test if we are trying to use run time linking or normal 9097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9098 # need to do runtime linking. 9099 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9100 for ld_flag in $LDFLAGS; do 9101 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9102 aix_use_runtimelinking=yes 9103 break 9104 fi 9105 done 9106 ;; 9107 esac 9108 9109 exp_sym_flag='-bexport' 9110 no_entry_flag='-bnoentry' 9111 fi 9112 9113 # When large executables or shared objects are built, AIX ld can 9114 # have problems creating the table of contents. If linking a library 9115 # or program results in "error TOC overflow" add -mminimal-toc to 9116 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9117 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9118 9119 archive_cmds='' 9120 hardcode_direct=yes 9121 hardcode_direct_absolute=yes 9122 hardcode_libdir_separator=':' 9123 link_all_deplibs=yes 9124 file_list_spec='${wl}-f,' 9125 9126 if test "$GCC" = yes; then 9127 case $host_os in aix4.[012]|aix4.[012].*) 9128 # We only want to do this on AIX 4.2 and lower, the check 9129 # below for broken collect2 doesn't work under 4.3+ 9130 collect2name=`${CC} -print-prog-name=collect2` 9131 if test -f "$collect2name" && 9132 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9133 then 9134 # We have reworked collect2 9135 : 9136 else 9137 # We have old collect2 9138 hardcode_direct=unsupported 9139 # It fails to find uninstalled libraries when the uninstalled 9140 # path is not listed in the libpath. Setting hardcode_minus_L 9141 # to unsupported forces relinking 9142 hardcode_minus_L=yes 9143 hardcode_libdir_flag_spec='-L$libdir' 9144 hardcode_libdir_separator= 9145 fi 9146 ;; 9147 esac 9148 shared_flag='-shared' 9149 if test "$aix_use_runtimelinking" = yes; then 9150 shared_flag="$shared_flag "'${wl}-G' 9151 fi 9152 else 9153 # not using gcc 9154 if test "$host_cpu" = ia64; then 9155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9156 # chokes on -Wl,-G. The following line is correct: 9157 shared_flag='-G' 9158 else 9159 if test "$aix_use_runtimelinking" = yes; then 9160 shared_flag='${wl}-G' 9161 else 9162 shared_flag='${wl}-bM:SRE' 9163 fi 9164 fi 9165 fi 9166 9167 export_dynamic_flag_spec='${wl}-bexpall' 9168 # It seems that -bexpall does not export symbols beginning with 9169 # underscore (_), so it is better to generate a list of symbols to export. 9170 always_export_symbols=yes 9171 if test "$aix_use_runtimelinking" = yes; then 9172 # Warning - without using the other runtime loading flags (-brtl), 9173 # -berok will link without error, but may produce a broken library. 9174 allow_undefined_flag='-berok' 9175 # Determine the default libpath from the value encoded in an 9176 # empty executable. 9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178/* end confdefs.h. */ 9179 9180int 9181main () 9182{ 9183 9184 ; 9185 return 0; 9186} 9187_ACEOF 9188if ac_fn_c_try_link "$LINENO"; then : 9189 9190lt_aix_libpath_sed=' 9191 /Import File Strings/,/^$/ { 9192 /^0/ { 9193 s/^0 *\(.*\)$/\1/ 9194 p 9195 } 9196 }' 9197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9198# Check for a 64-bit object if we didn't find anything. 9199if test -z "$aix_libpath"; then 9200 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9201fi 9202fi 9203rm -f core conftest.err conftest.$ac_objext \ 9204 conftest$ac_exeext conftest.$ac_ext 9205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9206 9207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9208 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9209 else 9210 if test "$host_cpu" = ia64; then 9211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9212 allow_undefined_flag="-z nodefs" 9213 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9214 else 9215 # Determine the default libpath from the value encoded in an 9216 # empty executable. 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218/* end confdefs.h. */ 9219 9220int 9221main () 9222{ 9223 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228if ac_fn_c_try_link "$LINENO"; then : 9229 9230lt_aix_libpath_sed=' 9231 /Import File Strings/,/^$/ { 9232 /^0/ { 9233 s/^0 *\(.*\)$/\1/ 9234 p 9235 } 9236 }' 9237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9238# Check for a 64-bit object if we didn't find anything. 9239if test -z "$aix_libpath"; then 9240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9241fi 9242fi 9243rm -f core conftest.err conftest.$ac_objext \ 9244 conftest$ac_exeext conftest.$ac_ext 9245if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9246 9247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9248 # Warning - without using the other run time loading flags, 9249 # -berok will link without error, but may produce a broken library. 9250 no_undefined_flag=' ${wl}-bernotok' 9251 allow_undefined_flag=' ${wl}-berok' 9252 if test "$with_gnu_ld" = yes; then 9253 # We only use this code for GNU lds that support --whole-archive. 9254 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9255 else 9256 # Exported symbols can be pulled into shared objects from archives 9257 whole_archive_flag_spec='$convenience' 9258 fi 9259 archive_cmds_need_lc=yes 9260 # This is similar to how AIX traditionally builds its shared libraries. 9261 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9262 fi 9263 fi 9264 ;; 9265 9266 amigaos*) 9267 case $host_cpu in 9268 powerpc) 9269 # see comment about AmigaOS4 .so support 9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9271 archive_expsym_cmds='' 9272 ;; 9273 m68k) 9274 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9275 hardcode_libdir_flag_spec='-L$libdir' 9276 hardcode_minus_L=yes 9277 ;; 9278 esac 9279 ;; 9280 9281 bsdi[45]*) 9282 export_dynamic_flag_spec=-rdynamic 9283 ;; 9284 9285 cygwin* | mingw* | pw32* | cegcc*) 9286 # When not using gcc, we currently assume that we are using 9287 # Microsoft Visual C++. 9288 # hardcode_libdir_flag_spec is actually meaningless, as there is 9289 # no search path for DLLs. 9290 hardcode_libdir_flag_spec=' ' 9291 allow_undefined_flag=unsupported 9292 # Tell ltmain to make .lib files, not .a files. 9293 libext=lib 9294 # Tell ltmain to make .dll files, not .so files. 9295 shrext_cmds=".dll" 9296 # FIXME: Setting linknames here is a bad hack. 9297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9298 # The linker will automatically build a .lib file if we build a DLL. 9299 old_archive_from_new_cmds='true' 9300 # FIXME: Should let the user specify the lib program. 9301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9302 fix_srcfile_path='`cygpath -w "$srcfile"`' 9303 enable_shared_with_static_runtimes=yes 9304 ;; 9305 9306 darwin* | rhapsody*) 9307 9308 9309 archive_cmds_need_lc=no 9310 hardcode_direct=no 9311 hardcode_automatic=yes 9312 hardcode_shlibpath_var=unsupported 9313 if test "$lt_cv_ld_force_load" = "yes"; then 9314 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9315 else 9316 whole_archive_flag_spec='' 9317 fi 9318 link_all_deplibs=yes 9319 allow_undefined_flag="$_lt_dar_allow_undefined" 9320 case $cc_basename in 9321 ifort*) _lt_dar_can_shared=yes ;; 9322 *) _lt_dar_can_shared=$GCC ;; 9323 esac 9324 if test "$_lt_dar_can_shared" = "yes"; then 9325 output_verbose_link_cmd=func_echo_all 9326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9328 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9329 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9330 9331 else 9332 ld_shlibs=no 9333 fi 9334 9335 ;; 9336 9337 dgux*) 9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9339 hardcode_libdir_flag_spec='-L$libdir' 9340 hardcode_shlibpath_var=no 9341 ;; 9342 9343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9344 # support. Future versions do this automatically, but an explicit c++rt0.o 9345 # does not break anything, and helps significantly (at the cost of a little 9346 # extra space). 9347 freebsd2.2*) 9348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9349 hardcode_libdir_flag_spec='-R$libdir' 9350 hardcode_direct=yes 9351 hardcode_shlibpath_var=no 9352 ;; 9353 9354 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9355 freebsd2.*) 9356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9357 hardcode_direct=yes 9358 hardcode_minus_L=yes 9359 hardcode_shlibpath_var=no 9360 ;; 9361 9362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9363 freebsd* | dragonfly*) 9364 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9365 hardcode_libdir_flag_spec='-R$libdir' 9366 hardcode_direct=yes 9367 hardcode_shlibpath_var=no 9368 ;; 9369 9370 hpux9*) 9371 if test "$GCC" = yes; then 9372 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9373 else 9374 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9375 fi 9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9377 hardcode_libdir_separator=: 9378 hardcode_direct=yes 9379 9380 # hardcode_minus_L: Not really in the search PATH, 9381 # but as the default location of the library. 9382 hardcode_minus_L=yes 9383 export_dynamic_flag_spec='${wl}-E' 9384 ;; 9385 9386 hpux10*) 9387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9389 else 9390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9391 fi 9392 if test "$with_gnu_ld" = no; then 9393 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9394 hardcode_libdir_flag_spec_ld='+b $libdir' 9395 hardcode_libdir_separator=: 9396 hardcode_direct=yes 9397 hardcode_direct_absolute=yes 9398 export_dynamic_flag_spec='${wl}-E' 9399 # hardcode_minus_L: Not really in the search PATH, 9400 # but as the default location of the library. 9401 hardcode_minus_L=yes 9402 fi 9403 ;; 9404 9405 hpux11*) 9406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9407 case $host_cpu in 9408 hppa*64*) 9409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9410 ;; 9411 ia64*) 9412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9413 ;; 9414 *) 9415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9416 ;; 9417 esac 9418 else 9419 case $host_cpu in 9420 hppa*64*) 9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9422 ;; 9423 ia64*) 9424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9425 ;; 9426 *) 9427 9428 # Older versions of the 11.00 compiler do not understand -b yet 9429 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9431$as_echo_n "checking if $CC understands -b... " >&6; } 9432if ${lt_cv_prog_compiler__b+:} false; then : 9433 $as_echo_n "(cached) " >&6 9434else 9435 lt_cv_prog_compiler__b=no 9436 save_LDFLAGS="$LDFLAGS" 9437 LDFLAGS="$LDFLAGS -b" 9438 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9440 # The linker can only warn and ignore the option if not recognized 9441 # So say no if there are warnings 9442 if test -s conftest.err; then 9443 # Append any errors to the config.log. 9444 cat conftest.err 1>&5 9445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9447 if diff conftest.exp conftest.er2 >/dev/null; then 9448 lt_cv_prog_compiler__b=yes 9449 fi 9450 else 9451 lt_cv_prog_compiler__b=yes 9452 fi 9453 fi 9454 $RM -r conftest* 9455 LDFLAGS="$save_LDFLAGS" 9456 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9459$as_echo "$lt_cv_prog_compiler__b" >&6; } 9460 9461if test x"$lt_cv_prog_compiler__b" = xyes; then 9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9463else 9464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9465fi 9466 9467 ;; 9468 esac 9469 fi 9470 if test "$with_gnu_ld" = no; then 9471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9472 hardcode_libdir_separator=: 9473 9474 case $host_cpu in 9475 hppa*64*|ia64*) 9476 hardcode_direct=no 9477 hardcode_shlibpath_var=no 9478 ;; 9479 *) 9480 hardcode_direct=yes 9481 hardcode_direct_absolute=yes 9482 export_dynamic_flag_spec='${wl}-E' 9483 9484 # hardcode_minus_L: Not really in the search PATH, 9485 # but as the default location of the library. 9486 hardcode_minus_L=yes 9487 ;; 9488 esac 9489 fi 9490 ;; 9491 9492 irix5* | irix6* | nonstopux*) 9493 if test "$GCC" = yes; then 9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9495 # Try to use the -exported_symbol ld option, if it does not 9496 # work, assume that -exports_file does not work either and 9497 # implicitly export all symbols. 9498 save_LDFLAGS="$LDFLAGS" 9499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9501/* end confdefs.h. */ 9502int foo(void) {} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO"; then : 9505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9506 9507fi 9508rm -f core conftest.err conftest.$ac_objext \ 9509 conftest$ac_exeext conftest.$ac_ext 9510 LDFLAGS="$save_LDFLAGS" 9511 else 9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9514 fi 9515 archive_cmds_need_lc='no' 9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9517 hardcode_libdir_separator=: 9518 inherit_rpath=yes 9519 link_all_deplibs=yes 9520 ;; 9521 9522 netbsd*) 9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9525 else 9526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9527 fi 9528 hardcode_libdir_flag_spec='-R$libdir' 9529 hardcode_direct=yes 9530 hardcode_shlibpath_var=no 9531 ;; 9532 9533 newsos6) 9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9535 hardcode_direct=yes 9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9537 hardcode_libdir_separator=: 9538 hardcode_shlibpath_var=no 9539 ;; 9540 9541 *nto* | *qnx*) 9542 ;; 9543 9544 openbsd*) 9545 if test -f /usr/libexec/ld.so; then 9546 hardcode_direct=yes 9547 hardcode_shlibpath_var=no 9548 hardcode_direct_absolute=yes 9549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9553 export_dynamic_flag_spec='${wl}-E' 9554 else 9555 case $host_os in 9556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9558 hardcode_libdir_flag_spec='-R$libdir' 9559 ;; 9560 *) 9561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9563 ;; 9564 esac 9565 fi 9566 else 9567 ld_shlibs=no 9568 fi 9569 ;; 9570 9571 os2*) 9572 hardcode_libdir_flag_spec='-L$libdir' 9573 hardcode_minus_L=yes 9574 allow_undefined_flag=unsupported 9575 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9577 ;; 9578 9579 osf3*) 9580 if test "$GCC" = yes; then 9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9582 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9583 else 9584 allow_undefined_flag=' -expect_unresolved \*' 9585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9586 fi 9587 archive_cmds_need_lc='no' 9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9589 hardcode_libdir_separator=: 9590 ;; 9591 9592 osf4* | osf5*) # as osf3* with the addition of -msym flag 9593 if test "$GCC" = yes; then 9594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9595 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9597 else 9598 allow_undefined_flag=' -expect_unresolved \*' 9599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9600 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9601 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9602 9603 # Both c and cxx compiler support -rpath directly 9604 hardcode_libdir_flag_spec='-rpath $libdir' 9605 fi 9606 archive_cmds_need_lc='no' 9607 hardcode_libdir_separator=: 9608 ;; 9609 9610 solaris*) 9611 no_undefined_flag=' -z defs' 9612 if test "$GCC" = yes; then 9613 wlarc='${wl}' 9614 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9616 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9617 else 9618 case `$CC -V 2>&1` in 9619 *"Compilers 5.0"*) 9620 wlarc='' 9621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9624 ;; 9625 *) 9626 wlarc='${wl}' 9627 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9629 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9630 ;; 9631 esac 9632 fi 9633 hardcode_libdir_flag_spec='-R$libdir' 9634 hardcode_shlibpath_var=no 9635 case $host_os in 9636 solaris2.[0-5] | solaris2.[0-5].*) ;; 9637 *) 9638 # The compiler driver will combine and reorder linker options, 9639 # but understands `-z linker_flag'. GCC discards it without `$wl', 9640 # but is careful enough not to reorder. 9641 # Supported since Solaris 2.6 (maybe 2.5.1?) 9642 if test "$GCC" = yes; then 9643 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9644 else 9645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9646 fi 9647 ;; 9648 esac 9649 link_all_deplibs=yes 9650 ;; 9651 9652 sunos4*) 9653 if test "x$host_vendor" = xsequent; then 9654 # Use $CC to link under sequent, because it throws in some extra .o 9655 # files that make .init and .fini sections work. 9656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9657 else 9658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9659 fi 9660 hardcode_libdir_flag_spec='-L$libdir' 9661 hardcode_direct=yes 9662 hardcode_minus_L=yes 9663 hardcode_shlibpath_var=no 9664 ;; 9665 9666 sysv4) 9667 case $host_vendor in 9668 sni) 9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9670 hardcode_direct=yes # is this really true??? 9671 ;; 9672 siemens) 9673 ## LD is ld it makes a PLAMLIB 9674 ## CC just makes a GrossModule. 9675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9676 reload_cmds='$CC -r -o $output$reload_objs' 9677 hardcode_direct=no 9678 ;; 9679 motorola) 9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9682 ;; 9683 esac 9684 runpath_var='LD_RUN_PATH' 9685 hardcode_shlibpath_var=no 9686 ;; 9687 9688 sysv4.3*) 9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9690 hardcode_shlibpath_var=no 9691 export_dynamic_flag_spec='-Bexport' 9692 ;; 9693 9694 sysv4*MP*) 9695 if test -d /usr/nec; then 9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9697 hardcode_shlibpath_var=no 9698 runpath_var=LD_RUN_PATH 9699 hardcode_runpath_var=yes 9700 ld_shlibs=yes 9701 fi 9702 ;; 9703 9704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9705 no_undefined_flag='${wl}-z,text' 9706 archive_cmds_need_lc=no 9707 hardcode_shlibpath_var=no 9708 runpath_var='LD_RUN_PATH' 9709 9710 if test "$GCC" = yes; then 9711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9713 else 9714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9716 fi 9717 ;; 9718 9719 sysv5* | sco3.2v5* | sco5v6*) 9720 # Note: We can NOT use -z defs as we might desire, because we do not 9721 # link with -lc, and that would cause any symbols used from libc to 9722 # always be unresolved, which means just about no library would 9723 # ever link correctly. If we're not using GNU ld we use -z text 9724 # though, which does catch some bad symbols but isn't as heavy-handed 9725 # as -z defs. 9726 no_undefined_flag='${wl}-z,text' 9727 allow_undefined_flag='${wl}-z,nodefs' 9728 archive_cmds_need_lc=no 9729 hardcode_shlibpath_var=no 9730 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9731 hardcode_libdir_separator=':' 9732 link_all_deplibs=yes 9733 export_dynamic_flag_spec='${wl}-Bexport' 9734 runpath_var='LD_RUN_PATH' 9735 9736 if test "$GCC" = yes; then 9737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9739 else 9740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9742 fi 9743 ;; 9744 9745 uts4*) 9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9747 hardcode_libdir_flag_spec='-L$libdir' 9748 hardcode_shlibpath_var=no 9749 ;; 9750 9751 *) 9752 ld_shlibs=no 9753 ;; 9754 esac 9755 9756 if test x$host_vendor = xsni; then 9757 case $host in 9758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9759 export_dynamic_flag_spec='${wl}-Blargedynsym' 9760 ;; 9761 esac 9762 fi 9763 fi 9764 9765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9766$as_echo "$ld_shlibs" >&6; } 9767test "$ld_shlibs" = no && can_build_shared=no 9768 9769with_gnu_ld=$with_gnu_ld 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785# 9786# Do we need to explicitly link libc? 9787# 9788case "x$archive_cmds_need_lc" in 9789x|xyes) 9790 # Assume -lc should be added 9791 archive_cmds_need_lc=yes 9792 9793 if test "$enable_shared" = yes && test "$GCC" = yes; then 9794 case $archive_cmds in 9795 *'~'*) 9796 # FIXME: we may have to deal with multi-command sequences. 9797 ;; 9798 '$CC '*) 9799 # Test whether the compiler implicitly links with -lc since on some 9800 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9801 # to ld, don't add -lc before -lgcc. 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9803$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9804if ${lt_cv_archive_cmds_need_lc+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806else 9807 $RM conftest* 9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9809 9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9811 (eval $ac_compile) 2>&5 9812 ac_status=$? 9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9814 test $ac_status = 0; } 2>conftest.err; then 9815 soname=conftest 9816 lib=conftest 9817 libobjs=conftest.$ac_objext 9818 deplibs= 9819 wl=$lt_prog_compiler_wl 9820 pic_flag=$lt_prog_compiler_pic 9821 compiler_flags=-v 9822 linker_flags=-v 9823 verstring= 9824 output_objdir=. 9825 libname=conftest 9826 lt_save_allow_undefined_flag=$allow_undefined_flag 9827 allow_undefined_flag= 9828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9829 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9830 ac_status=$? 9831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9832 test $ac_status = 0; } 9833 then 9834 lt_cv_archive_cmds_need_lc=no 9835 else 9836 lt_cv_archive_cmds_need_lc=yes 9837 fi 9838 allow_undefined_flag=$lt_save_allow_undefined_flag 9839 else 9840 cat conftest.err 1>&5 9841 fi 9842 $RM conftest* 9843 9844fi 9845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9846$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9847 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9848 ;; 9849 esac 9850 fi 9851 ;; 9852esac 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10011$as_echo_n "checking dynamic linker characteristics... " >&6; } 10012 10013if test "$GCC" = yes; then 10014 case $host_os in 10015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10016 *) lt_awk_arg="/^libraries:/" ;; 10017 esac 10018 case $host_os in 10019 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10020 *) lt_sed_strip_eq="s,=/,/,g" ;; 10021 esac 10022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10023 case $lt_search_path_spec in 10024 *\;*) 10025 # if the path contains ";" then we assume it to be the separator 10026 # otherwise default to the standard path separator (i.e. ":") - it is 10027 # assumed that no part of a normal pathname contains ";" but that should 10028 # okay in the real world where ";" in dirpaths is itself problematic. 10029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10030 ;; 10031 *) 10032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10033 ;; 10034 esac 10035 # Ok, now we have the path, separated by spaces, we can step through it 10036 # and add multilib dir if necessary. 10037 lt_tmp_lt_search_path_spec= 10038 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10039 for lt_sys_path in $lt_search_path_spec; do 10040 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10042 else 10043 test -d "$lt_sys_path" && \ 10044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10045 fi 10046 done 10047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10048BEGIN {RS=" "; FS="/|\n";} { 10049 lt_foo=""; 10050 lt_count=0; 10051 for (lt_i = NF; lt_i > 0; lt_i--) { 10052 if ($lt_i != "" && $lt_i != ".") { 10053 if ($lt_i == "..") { 10054 lt_count++; 10055 } else { 10056 if (lt_count == 0) { 10057 lt_foo="/" $lt_i lt_foo; 10058 } else { 10059 lt_count--; 10060 } 10061 } 10062 } 10063 } 10064 if (lt_foo != "") { lt_freq[lt_foo]++; } 10065 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10066}'` 10067 # AWK program above erroneously prepends '/' to C:/dos/paths 10068 # for these hosts. 10069 case $host_os in 10070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10071 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10072 esac 10073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10074else 10075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10076fi 10077library_names_spec= 10078libname_spec='lib$name' 10079soname_spec= 10080shrext_cmds=".so" 10081postinstall_cmds= 10082postuninstall_cmds= 10083finish_cmds= 10084finish_eval= 10085shlibpath_var= 10086shlibpath_overrides_runpath=unknown 10087version_type=none 10088dynamic_linker="$host_os ld.so" 10089sys_lib_dlsearch_path_spec="/lib /usr/lib" 10090need_lib_prefix=unknown 10091hardcode_into_libs=no 10092 10093# when you set need_version to no, make sure it does not cause -set_version 10094# flags to be left without arguments 10095need_version=unknown 10096 10097case $host_os in 10098aix3*) 10099 version_type=linux 10100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10101 shlibpath_var=LIBPATH 10102 10103 # AIX 3 has no versioning support, so we append a major version to the name. 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 ;; 10106 10107aix[4-9]*) 10108 version_type=linux 10109 need_lib_prefix=no 10110 need_version=no 10111 hardcode_into_libs=yes 10112 if test "$host_cpu" = ia64; then 10113 # AIX 5 supports IA64 10114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10115 shlibpath_var=LD_LIBRARY_PATH 10116 else 10117 # With GCC up to 2.95.x, collect2 would create an import file 10118 # for dependence libraries. The import file would start with 10119 # the line `#! .'. This would cause the generated library to 10120 # depend on `.', always an invalid library. This was fixed in 10121 # development snapshots of GCC prior to 3.0. 10122 case $host_os in 10123 aix4 | aix4.[01] | aix4.[01].*) 10124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10125 echo ' yes ' 10126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10127 : 10128 else 10129 can_build_shared=no 10130 fi 10131 ;; 10132 esac 10133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10134 # soname into executable. Probably we can add versioning support to 10135 # collect2, so additional links can be useful in future. 10136 if test "$aix_use_runtimelinking" = yes; then 10137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10138 # instead of lib<name>.a to let people know that these are not 10139 # typical AIX shared libraries. 10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10141 else 10142 # We preserve .a as extension for shared libraries through AIX4.2 10143 # and later when we are not doing run time linking. 10144 library_names_spec='${libname}${release}.a $libname.a' 10145 soname_spec='${libname}${release}${shared_ext}$major' 10146 fi 10147 shlibpath_var=LIBPATH 10148 fi 10149 ;; 10150 10151amigaos*) 10152 case $host_cpu in 10153 powerpc) 10154 # Since July 2007 AmigaOS4 officially supports .so libraries. 10155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10157 ;; 10158 m68k) 10159 library_names_spec='$libname.ixlibrary $libname.a' 10160 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10161 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10162 ;; 10163 esac 10164 ;; 10165 10166beos*) 10167 library_names_spec='${libname}${shared_ext}' 10168 dynamic_linker="$host_os ld.so" 10169 shlibpath_var=LIBRARY_PATH 10170 ;; 10171 10172bsdi[45]*) 10173 version_type=linux 10174 need_version=no 10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10176 soname_spec='${libname}${release}${shared_ext}$major' 10177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10178 shlibpath_var=LD_LIBRARY_PATH 10179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10181 # the default ld.so.conf also contains /usr/contrib/lib and 10182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10183 # libtool to hard-code these into programs 10184 ;; 10185 10186cygwin* | mingw* | pw32* | cegcc*) 10187 version_type=windows 10188 shrext_cmds=".dll" 10189 need_version=no 10190 need_lib_prefix=no 10191 10192 case $GCC,$host_os in 10193 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10194 library_names_spec='$libname.dll.a' 10195 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10196 postinstall_cmds='base_file=`basename \${file}`~ 10197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10198 dldir=$destdir/`dirname \$dlpath`~ 10199 test -d \$dldir || mkdir -p \$dldir~ 10200 $install_prog $dir/$dlname \$dldir/$dlname~ 10201 chmod a+x \$dldir/$dlname~ 10202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10204 fi' 10205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10206 dlpath=$dir/\$dldll~ 10207 $RM \$dlpath' 10208 shlibpath_overrides_runpath=yes 10209 10210 case $host_os in 10211 cygwin*) 10212 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10214 10215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10216 ;; 10217 mingw* | cegcc*) 10218 # MinGW DLLs use traditional 'lib' prefix 10219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10220 ;; 10221 pw32*) 10222 # pw32 DLLs use 'pw' prefix rather than 'lib' 10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10224 ;; 10225 esac 10226 ;; 10227 10228 *) 10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10230 ;; 10231 esac 10232 dynamic_linker='Win32 ld.exe' 10233 # FIXME: first we should search . and the directory the executable is in 10234 shlibpath_var=PATH 10235 ;; 10236 10237darwin* | rhapsody*) 10238 dynamic_linker="$host_os dyld" 10239 version_type=darwin 10240 need_lib_prefix=no 10241 need_version=no 10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10243 soname_spec='${libname}${release}${major}$shared_ext' 10244 shlibpath_overrides_runpath=yes 10245 shlibpath_var=DYLD_LIBRARY_PATH 10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10247 10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10250 ;; 10251 10252dgux*) 10253 version_type=linux 10254 need_lib_prefix=no 10255 need_version=no 10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10257 soname_spec='${libname}${release}${shared_ext}$major' 10258 shlibpath_var=LD_LIBRARY_PATH 10259 ;; 10260 10261freebsd* | dragonfly*) 10262 # DragonFly does not have aout. When/if they implement a new 10263 # versioning mechanism, adjust this. 10264 if test -x /usr/bin/objformat; then 10265 objformat=`/usr/bin/objformat` 10266 else 10267 case $host_os in 10268 freebsd[23].*) objformat=aout ;; 10269 *) objformat=elf ;; 10270 esac 10271 fi 10272 version_type=freebsd-$objformat 10273 case $version_type in 10274 freebsd-elf*) 10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10276 need_version=no 10277 need_lib_prefix=no 10278 ;; 10279 freebsd-*) 10280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10281 need_version=yes 10282 ;; 10283 esac 10284 shlibpath_var=LD_LIBRARY_PATH 10285 case $host_os in 10286 freebsd2.*) 10287 shlibpath_overrides_runpath=yes 10288 ;; 10289 freebsd3.[01]* | freebsdelf3.[01]*) 10290 shlibpath_overrides_runpath=yes 10291 hardcode_into_libs=yes 10292 ;; 10293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10295 shlibpath_overrides_runpath=no 10296 hardcode_into_libs=yes 10297 ;; 10298 *) # from 4.6 on, and DragonFly 10299 shlibpath_overrides_runpath=yes 10300 hardcode_into_libs=yes 10301 ;; 10302 esac 10303 ;; 10304 10305haiku*) 10306 version_type=linux 10307 need_lib_prefix=no 10308 need_version=no 10309 dynamic_linker="$host_os runtime_loader" 10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10311 soname_spec='${libname}${release}${shared_ext}$major' 10312 shlibpath_var=LIBRARY_PATH 10313 shlibpath_overrides_runpath=yes 10314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10315 hardcode_into_libs=yes 10316 ;; 10317 10318hpux9* | hpux10* | hpux11*) 10319 # Give a soname corresponding to the major version so that dld.sl refuses to 10320 # link against other versions. 10321 version_type=sunos 10322 need_lib_prefix=no 10323 need_version=no 10324 case $host_cpu in 10325 ia64*) 10326 shrext_cmds='.so' 10327 hardcode_into_libs=yes 10328 dynamic_linker="$host_os dld.so" 10329 shlibpath_var=LD_LIBRARY_PATH 10330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10332 soname_spec='${libname}${release}${shared_ext}$major' 10333 if test "X$HPUX_IA64_MODE" = X32; then 10334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10335 else 10336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10337 fi 10338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10339 ;; 10340 hppa*64*) 10341 shrext_cmds='.sl' 10342 hardcode_into_libs=yes 10343 dynamic_linker="$host_os dld.sl" 10344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10347 soname_spec='${libname}${release}${shared_ext}$major' 10348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10350 ;; 10351 *) 10352 shrext_cmds='.sl' 10353 dynamic_linker="$host_os dld.sl" 10354 shlibpath_var=SHLIB_PATH 10355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10357 soname_spec='${libname}${release}${shared_ext}$major' 10358 ;; 10359 esac 10360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10361 postinstall_cmds='chmod 555 $lib' 10362 # or fails outright, so override atomically: 10363 install_override_mode=555 10364 ;; 10365 10366interix[3-9]*) 10367 version_type=linux 10368 need_lib_prefix=no 10369 need_version=no 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10371 soname_spec='${libname}${release}${shared_ext}$major' 10372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10373 shlibpath_var=LD_LIBRARY_PATH 10374 shlibpath_overrides_runpath=no 10375 hardcode_into_libs=yes 10376 ;; 10377 10378irix5* | irix6* | nonstopux*) 10379 case $host_os in 10380 nonstopux*) version_type=nonstopux ;; 10381 *) 10382 if test "$lt_cv_prog_gnu_ld" = yes; then 10383 version_type=linux 10384 else 10385 version_type=irix 10386 fi ;; 10387 esac 10388 need_lib_prefix=no 10389 need_version=no 10390 soname_spec='${libname}${release}${shared_ext}$major' 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10392 case $host_os in 10393 irix5* | nonstopux*) 10394 libsuff= shlibsuff= 10395 ;; 10396 *) 10397 case $LD in # libtool.m4 will add one of these switches to LD 10398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10399 libsuff= shlibsuff= libmagic=32-bit;; 10400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10401 libsuff=32 shlibsuff=N32 libmagic=N32;; 10402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10403 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10404 *) libsuff= shlibsuff= libmagic=never-match;; 10405 esac 10406 ;; 10407 esac 10408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10409 shlibpath_overrides_runpath=no 10410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10412 hardcode_into_libs=yes 10413 ;; 10414 10415# No shared lib support for Linux oldld, aout, or coff. 10416linux*oldld* | linux*aout* | linux*coff*) 10417 dynamic_linker=no 10418 ;; 10419 10420# This must be Linux ELF. 10421linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10422 version_type=linux 10423 need_lib_prefix=no 10424 need_version=no 10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10426 soname_spec='${libname}${release}${shared_ext}$major' 10427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10428 shlibpath_var=LD_LIBRARY_PATH 10429 shlibpath_overrides_runpath=no 10430 10431 # Some binutils ld are patched to set DT_RUNPATH 10432 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10433 $as_echo_n "(cached) " >&6 10434else 10435 lt_cv_shlibpath_overrides_runpath=no 10436 save_LDFLAGS=$LDFLAGS 10437 save_libdir=$libdir 10438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10441/* end confdefs.h. */ 10442 10443int 10444main () 10445{ 10446 10447 ; 10448 return 0; 10449} 10450_ACEOF 10451if ac_fn_c_try_link "$LINENO"; then : 10452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10453 lt_cv_shlibpath_overrides_runpath=yes 10454fi 10455fi 10456rm -f core conftest.err conftest.$ac_objext \ 10457 conftest$ac_exeext conftest.$ac_ext 10458 LDFLAGS=$save_LDFLAGS 10459 libdir=$save_libdir 10460 10461fi 10462 10463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10464 10465 # This implies no fast_install, which is unacceptable. 10466 # Some rework will be needed to allow for fast_install 10467 # before this can be enabled. 10468 hardcode_into_libs=yes 10469 10470 # Append ld.so.conf contents to the search path 10471 if test -f /etc/ld.so.conf; then 10472 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10474 fi 10475 10476 # We used to test for /lib/ld.so.1 and disable shared libraries on 10477 # powerpc, because MkLinux only supported shared libraries with the 10478 # GNU dynamic linker. Since this was broken with cross compilers, 10479 # most powerpc-linux boxes support dynamic linking these days and 10480 # people can always --disable-shared, the test was removed, and we 10481 # assume the GNU/Linux dynamic linker is in use. 10482 dynamic_linker='GNU/Linux ld.so' 10483 ;; 10484 10485netbsd*) 10486 version_type=sunos 10487 need_lib_prefix=no 10488 need_version=no 10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10492 dynamic_linker='NetBSD (a.out) ld.so' 10493 else 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10495 soname_spec='${libname}${release}${shared_ext}$major' 10496 dynamic_linker='NetBSD ld.elf_so' 10497 fi 10498 shlibpath_var=LD_LIBRARY_PATH 10499 shlibpath_overrides_runpath=yes 10500 hardcode_into_libs=yes 10501 ;; 10502 10503newsos6) 10504 version_type=linux 10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10506 shlibpath_var=LD_LIBRARY_PATH 10507 shlibpath_overrides_runpath=yes 10508 ;; 10509 10510*nto* | *qnx*) 10511 version_type=qnx 10512 need_lib_prefix=no 10513 need_version=no 10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10515 soname_spec='${libname}${release}${shared_ext}$major' 10516 shlibpath_var=LD_LIBRARY_PATH 10517 shlibpath_overrides_runpath=no 10518 hardcode_into_libs=yes 10519 dynamic_linker='ldqnx.so' 10520 ;; 10521 10522openbsd*) 10523 version_type=sunos 10524 sys_lib_dlsearch_path_spec="/usr/lib" 10525 need_lib_prefix=no 10526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10527 case $host_os in 10528 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10529 *) need_version=no ;; 10530 esac 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10533 shlibpath_var=LD_LIBRARY_PATH 10534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10535 case $host_os in 10536 openbsd2.[89] | openbsd2.[89].*) 10537 shlibpath_overrides_runpath=no 10538 ;; 10539 *) 10540 shlibpath_overrides_runpath=yes 10541 ;; 10542 esac 10543 else 10544 shlibpath_overrides_runpath=yes 10545 fi 10546 ;; 10547 10548os2*) 10549 libname_spec='$name' 10550 shrext_cmds=".dll" 10551 need_lib_prefix=no 10552 library_names_spec='$libname${shared_ext} $libname.a' 10553 dynamic_linker='OS/2 ld.exe' 10554 shlibpath_var=LIBPATH 10555 ;; 10556 10557osf3* | osf4* | osf5*) 10558 version_type=osf 10559 need_lib_prefix=no 10560 need_version=no 10561 soname_spec='${libname}${release}${shared_ext}$major' 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10563 shlibpath_var=LD_LIBRARY_PATH 10564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10566 ;; 10567 10568rdos*) 10569 dynamic_linker=no 10570 ;; 10571 10572solaris*) 10573 version_type=linux 10574 need_lib_prefix=no 10575 need_version=no 10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10577 soname_spec='${libname}${release}${shared_ext}$major' 10578 shlibpath_var=LD_LIBRARY_PATH 10579 shlibpath_overrides_runpath=yes 10580 hardcode_into_libs=yes 10581 # ldd complains unless libraries are executable 10582 postinstall_cmds='chmod +x $lib' 10583 ;; 10584 10585sunos4*) 10586 version_type=sunos 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 shlibpath_overrides_runpath=yes 10591 if test "$with_gnu_ld" = yes; then 10592 need_lib_prefix=no 10593 fi 10594 need_version=yes 10595 ;; 10596 10597sysv4 | sysv4.3*) 10598 version_type=linux 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10600 soname_spec='${libname}${release}${shared_ext}$major' 10601 shlibpath_var=LD_LIBRARY_PATH 10602 case $host_vendor in 10603 sni) 10604 shlibpath_overrides_runpath=no 10605 need_lib_prefix=no 10606 runpath_var=LD_RUN_PATH 10607 ;; 10608 siemens) 10609 need_lib_prefix=no 10610 ;; 10611 motorola) 10612 need_lib_prefix=no 10613 need_version=no 10614 shlibpath_overrides_runpath=no 10615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10616 ;; 10617 esac 10618 ;; 10619 10620sysv4*MP*) 10621 if test -d /usr/nec ;then 10622 version_type=linux 10623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10624 soname_spec='$libname${shared_ext}.$major' 10625 shlibpath_var=LD_LIBRARY_PATH 10626 fi 10627 ;; 10628 10629sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10630 version_type=freebsd-elf 10631 need_lib_prefix=no 10632 need_version=no 10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10634 soname_spec='${libname}${release}${shared_ext}$major' 10635 shlibpath_var=LD_LIBRARY_PATH 10636 shlibpath_overrides_runpath=yes 10637 hardcode_into_libs=yes 10638 if test "$with_gnu_ld" = yes; then 10639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10640 else 10641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10642 case $host_os in 10643 sco3.2v5*) 10644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10645 ;; 10646 esac 10647 fi 10648 sys_lib_dlsearch_path_spec='/usr/lib' 10649 ;; 10650 10651tpf*) 10652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10653 version_type=linux 10654 need_lib_prefix=no 10655 need_version=no 10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10657 shlibpath_var=LD_LIBRARY_PATH 10658 shlibpath_overrides_runpath=no 10659 hardcode_into_libs=yes 10660 ;; 10661 10662uts4*) 10663 version_type=linux 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 shlibpath_var=LD_LIBRARY_PATH 10667 ;; 10668 10669*) 10670 dynamic_linker=no 10671 ;; 10672esac 10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10674$as_echo "$dynamic_linker" >&6; } 10675test "$dynamic_linker" = no && can_build_shared=no 10676 10677variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10678if test "$GCC" = yes; then 10679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10680fi 10681 10682if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10684fi 10685if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10686 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10687fi 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10781$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10782hardcode_action= 10783if test -n "$hardcode_libdir_flag_spec" || 10784 test -n "$runpath_var" || 10785 test "X$hardcode_automatic" = "Xyes" ; then 10786 10787 # We can hardcode non-existent directories. 10788 if test "$hardcode_direct" != no && 10789 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10790 # have to relink, otherwise we might link with an installed library 10791 # when we should be linking with a yet-to-be-installed one 10792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10793 test "$hardcode_minus_L" != no; then 10794 # Linking always hardcodes the temporary library directory. 10795 hardcode_action=relink 10796 else 10797 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10798 hardcode_action=immediate 10799 fi 10800else 10801 # We cannot hardcode anything, or else we can only hardcode existing 10802 # directories. 10803 hardcode_action=unsupported 10804fi 10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10806$as_echo "$hardcode_action" >&6; } 10807 10808if test "$hardcode_action" = relink || 10809 test "$inherit_rpath" = yes; then 10810 # Fast installation is not supported 10811 enable_fast_install=no 10812elif test "$shlibpath_overrides_runpath" = yes || 10813 test "$enable_shared" = no; then 10814 # Fast installation is not necessary 10815 enable_fast_install=needless 10816fi 10817 10818 10819 10820 10821 10822 10823 if test "x$enable_dlopen" != xyes; then 10824 enable_dlopen=unknown 10825 enable_dlopen_self=unknown 10826 enable_dlopen_self_static=unknown 10827else 10828 lt_cv_dlopen=no 10829 lt_cv_dlopen_libs= 10830 10831 case $host_os in 10832 beos*) 10833 lt_cv_dlopen="load_add_on" 10834 lt_cv_dlopen_libs= 10835 lt_cv_dlopen_self=yes 10836 ;; 10837 10838 mingw* | pw32* | cegcc*) 10839 lt_cv_dlopen="LoadLibrary" 10840 lt_cv_dlopen_libs= 10841 ;; 10842 10843 cygwin*) 10844 lt_cv_dlopen="dlopen" 10845 lt_cv_dlopen_libs= 10846 ;; 10847 10848 darwin*) 10849 # if libdl is installed we need to link against it 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10851$as_echo_n "checking for dlopen in -ldl... " >&6; } 10852if ${ac_cv_lib_dl_dlopen+:} false; then : 10853 $as_echo_n "(cached) " >&6 10854else 10855 ac_check_lib_save_LIBS=$LIBS 10856LIBS="-ldl $LIBS" 10857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859 10860/* Override any GCC internal prototype to avoid an error. 10861 Use char because int might match the return type of a GCC 10862 builtin and then its argument prototype would still apply. */ 10863#ifdef __cplusplus 10864extern "C" 10865#endif 10866char dlopen (); 10867int 10868main () 10869{ 10870return dlopen (); 10871 ; 10872 return 0; 10873} 10874_ACEOF 10875if ac_fn_c_try_link "$LINENO"; then : 10876 ac_cv_lib_dl_dlopen=yes 10877else 10878 ac_cv_lib_dl_dlopen=no 10879fi 10880rm -f core conftest.err conftest.$ac_objext \ 10881 conftest$ac_exeext conftest.$ac_ext 10882LIBS=$ac_check_lib_save_LIBS 10883fi 10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10885$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10886if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10888else 10889 10890 lt_cv_dlopen="dyld" 10891 lt_cv_dlopen_libs= 10892 lt_cv_dlopen_self=yes 10893 10894fi 10895 10896 ;; 10897 10898 *) 10899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10900if test "x$ac_cv_func_shl_load" = xyes; then : 10901 lt_cv_dlopen="shl_load" 10902else 10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10904$as_echo_n "checking for shl_load in -ldld... " >&6; } 10905if ${ac_cv_lib_dld_shl_load+:} false; then : 10906 $as_echo_n "(cached) " >&6 10907else 10908 ac_check_lib_save_LIBS=$LIBS 10909LIBS="-ldld $LIBS" 10910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10911/* end confdefs.h. */ 10912 10913/* Override any GCC internal prototype to avoid an error. 10914 Use char because int might match the return type of a GCC 10915 builtin and then its argument prototype would still apply. */ 10916#ifdef __cplusplus 10917extern "C" 10918#endif 10919char shl_load (); 10920int 10921main () 10922{ 10923return shl_load (); 10924 ; 10925 return 0; 10926} 10927_ACEOF 10928if ac_fn_c_try_link "$LINENO"; then : 10929 ac_cv_lib_dld_shl_load=yes 10930else 10931 ac_cv_lib_dld_shl_load=no 10932fi 10933rm -f core conftest.err conftest.$ac_objext \ 10934 conftest$ac_exeext conftest.$ac_ext 10935LIBS=$ac_check_lib_save_LIBS 10936fi 10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10938$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10939if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10941else 10942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10943if test "x$ac_cv_func_dlopen" = xyes; then : 10944 lt_cv_dlopen="dlopen" 10945else 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10947$as_echo_n "checking for dlopen in -ldl... " >&6; } 10948if ${ac_cv_lib_dl_dlopen+:} false; then : 10949 $as_echo_n "(cached) " >&6 10950else 10951 ac_check_lib_save_LIBS=$LIBS 10952LIBS="-ldl $LIBS" 10953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10954/* end confdefs.h. */ 10955 10956/* Override any GCC internal prototype to avoid an error. 10957 Use char because int might match the return type of a GCC 10958 builtin and then its argument prototype would still apply. */ 10959#ifdef __cplusplus 10960extern "C" 10961#endif 10962char dlopen (); 10963int 10964main () 10965{ 10966return dlopen (); 10967 ; 10968 return 0; 10969} 10970_ACEOF 10971if ac_fn_c_try_link "$LINENO"; then : 10972 ac_cv_lib_dl_dlopen=yes 10973else 10974 ac_cv_lib_dl_dlopen=no 10975fi 10976rm -f core conftest.err conftest.$ac_objext \ 10977 conftest$ac_exeext conftest.$ac_ext 10978LIBS=$ac_check_lib_save_LIBS 10979fi 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10981$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10982if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10984else 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10986$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10987if ${ac_cv_lib_svld_dlopen+:} false; then : 10988 $as_echo_n "(cached) " >&6 10989else 10990 ac_check_lib_save_LIBS=$LIBS 10991LIBS="-lsvld $LIBS" 10992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10993/* end confdefs.h. */ 10994 10995/* Override any GCC internal prototype to avoid an error. 10996 Use char because int might match the return type of a GCC 10997 builtin and then its argument prototype would still apply. */ 10998#ifdef __cplusplus 10999extern "C" 11000#endif 11001char dlopen (); 11002int 11003main () 11004{ 11005return dlopen (); 11006 ; 11007 return 0; 11008} 11009_ACEOF 11010if ac_fn_c_try_link "$LINENO"; then : 11011 ac_cv_lib_svld_dlopen=yes 11012else 11013 ac_cv_lib_svld_dlopen=no 11014fi 11015rm -f core conftest.err conftest.$ac_objext \ 11016 conftest$ac_exeext conftest.$ac_ext 11017LIBS=$ac_check_lib_save_LIBS 11018fi 11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11020$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11021if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11023else 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11025$as_echo_n "checking for dld_link in -ldld... " >&6; } 11026if ${ac_cv_lib_dld_dld_link+:} false; then : 11027 $as_echo_n "(cached) " >&6 11028else 11029 ac_check_lib_save_LIBS=$LIBS 11030LIBS="-ldld $LIBS" 11031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11032/* end confdefs.h. */ 11033 11034/* Override any GCC internal prototype to avoid an error. 11035 Use char because int might match the return type of a GCC 11036 builtin and then its argument prototype would still apply. */ 11037#ifdef __cplusplus 11038extern "C" 11039#endif 11040char dld_link (); 11041int 11042main () 11043{ 11044return dld_link (); 11045 ; 11046 return 0; 11047} 11048_ACEOF 11049if ac_fn_c_try_link "$LINENO"; then : 11050 ac_cv_lib_dld_dld_link=yes 11051else 11052 ac_cv_lib_dld_dld_link=no 11053fi 11054rm -f core conftest.err conftest.$ac_objext \ 11055 conftest$ac_exeext conftest.$ac_ext 11056LIBS=$ac_check_lib_save_LIBS 11057fi 11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11059$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11060if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11062fi 11063 11064 11065fi 11066 11067 11068fi 11069 11070 11071fi 11072 11073 11074fi 11075 11076 11077fi 11078 11079 ;; 11080 esac 11081 11082 if test "x$lt_cv_dlopen" != xno; then 11083 enable_dlopen=yes 11084 else 11085 enable_dlopen=no 11086 fi 11087 11088 case $lt_cv_dlopen in 11089 dlopen) 11090 save_CPPFLAGS="$CPPFLAGS" 11091 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11092 11093 save_LDFLAGS="$LDFLAGS" 11094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11095 11096 save_LIBS="$LIBS" 11097 LIBS="$lt_cv_dlopen_libs $LIBS" 11098 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11100$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11101if ${lt_cv_dlopen_self+:} false; then : 11102 $as_echo_n "(cached) " >&6 11103else 11104 if test "$cross_compiling" = yes; then : 11105 lt_cv_dlopen_self=cross 11106else 11107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11108 lt_status=$lt_dlunknown 11109 cat > conftest.$ac_ext <<_LT_EOF 11110#line 11109 "configure" 11111#include "confdefs.h" 11112 11113#if HAVE_DLFCN_H 11114#include <dlfcn.h> 11115#endif 11116 11117#include <stdio.h> 11118 11119#ifdef RTLD_GLOBAL 11120# define LT_DLGLOBAL RTLD_GLOBAL 11121#else 11122# ifdef DL_GLOBAL 11123# define LT_DLGLOBAL DL_GLOBAL 11124# else 11125# define LT_DLGLOBAL 0 11126# endif 11127#endif 11128 11129/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11130 find out it does not work in some platform. */ 11131#ifndef LT_DLLAZY_OR_NOW 11132# ifdef RTLD_LAZY 11133# define LT_DLLAZY_OR_NOW RTLD_LAZY 11134# else 11135# ifdef DL_LAZY 11136# define LT_DLLAZY_OR_NOW DL_LAZY 11137# else 11138# ifdef RTLD_NOW 11139# define LT_DLLAZY_OR_NOW RTLD_NOW 11140# else 11141# ifdef DL_NOW 11142# define LT_DLLAZY_OR_NOW DL_NOW 11143# else 11144# define LT_DLLAZY_OR_NOW 0 11145# endif 11146# endif 11147# endif 11148# endif 11149#endif 11150 11151/* When -fvisbility=hidden is used, assume the code has been annotated 11152 correspondingly for the symbols needed. */ 11153#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11154void fnord () __attribute__((visibility("default"))); 11155#endif 11156 11157void fnord () { int i=42; } 11158int main () 11159{ 11160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11161 int status = $lt_dlunknown; 11162 11163 if (self) 11164 { 11165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11166 else 11167 { 11168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11169 else puts (dlerror ()); 11170 } 11171 /* dlclose (self); */ 11172 } 11173 else 11174 puts (dlerror ()); 11175 11176 return status; 11177} 11178_LT_EOF 11179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11180 (eval $ac_link) 2>&5 11181 ac_status=$? 11182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11184 (./conftest; exit; ) >&5 2>/dev/null 11185 lt_status=$? 11186 case x$lt_status in 11187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11190 esac 11191 else : 11192 # compilation failed 11193 lt_cv_dlopen_self=no 11194 fi 11195fi 11196rm -fr conftest* 11197 11198 11199fi 11200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11201$as_echo "$lt_cv_dlopen_self" >&6; } 11202 11203 if test "x$lt_cv_dlopen_self" = xyes; then 11204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11206$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11207if ${lt_cv_dlopen_self_static+:} false; then : 11208 $as_echo_n "(cached) " >&6 11209else 11210 if test "$cross_compiling" = yes; then : 11211 lt_cv_dlopen_self_static=cross 11212else 11213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11214 lt_status=$lt_dlunknown 11215 cat > conftest.$ac_ext <<_LT_EOF 11216#line 11215 "configure" 11217#include "confdefs.h" 11218 11219#if HAVE_DLFCN_H 11220#include <dlfcn.h> 11221#endif 11222 11223#include <stdio.h> 11224 11225#ifdef RTLD_GLOBAL 11226# define LT_DLGLOBAL RTLD_GLOBAL 11227#else 11228# ifdef DL_GLOBAL 11229# define LT_DLGLOBAL DL_GLOBAL 11230# else 11231# define LT_DLGLOBAL 0 11232# endif 11233#endif 11234 11235/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11236 find out it does not work in some platform. */ 11237#ifndef LT_DLLAZY_OR_NOW 11238# ifdef RTLD_LAZY 11239# define LT_DLLAZY_OR_NOW RTLD_LAZY 11240# else 11241# ifdef DL_LAZY 11242# define LT_DLLAZY_OR_NOW DL_LAZY 11243# else 11244# ifdef RTLD_NOW 11245# define LT_DLLAZY_OR_NOW RTLD_NOW 11246# else 11247# ifdef DL_NOW 11248# define LT_DLLAZY_OR_NOW DL_NOW 11249# else 11250# define LT_DLLAZY_OR_NOW 0 11251# endif 11252# endif 11253# endif 11254# endif 11255#endif 11256 11257/* When -fvisbility=hidden is used, assume the code has been annotated 11258 correspondingly for the symbols needed. */ 11259#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11260void fnord () __attribute__((visibility("default"))); 11261#endif 11262 11263void fnord () { int i=42; } 11264int main () 11265{ 11266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11267 int status = $lt_dlunknown; 11268 11269 if (self) 11270 { 11271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11272 else 11273 { 11274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11275 else puts (dlerror ()); 11276 } 11277 /* dlclose (self); */ 11278 } 11279 else 11280 puts (dlerror ()); 11281 11282 return status; 11283} 11284_LT_EOF 11285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11286 (eval $ac_link) 2>&5 11287 ac_status=$? 11288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11290 (./conftest; exit; ) >&5 2>/dev/null 11291 lt_status=$? 11292 case x$lt_status in 11293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11296 esac 11297 else : 11298 # compilation failed 11299 lt_cv_dlopen_self_static=no 11300 fi 11301fi 11302rm -fr conftest* 11303 11304 11305fi 11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11307$as_echo "$lt_cv_dlopen_self_static" >&6; } 11308 fi 11309 11310 CPPFLAGS="$save_CPPFLAGS" 11311 LDFLAGS="$save_LDFLAGS" 11312 LIBS="$save_LIBS" 11313 ;; 11314 esac 11315 11316 case $lt_cv_dlopen_self in 11317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11318 *) enable_dlopen_self=unknown ;; 11319 esac 11320 11321 case $lt_cv_dlopen_self_static in 11322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11323 *) enable_dlopen_self_static=unknown ;; 11324 esac 11325fi 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343striplib= 11344old_striplib= 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11346$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11347if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11349 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11351$as_echo "yes" >&6; } 11352else 11353# FIXME - insert some real tests, host_os isn't really good enough 11354 case $host_os in 11355 darwin*) 11356 if test -n "$STRIP" ; then 11357 striplib="$STRIP -x" 11358 old_striplib="$STRIP -S" 11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11360$as_echo "yes" >&6; } 11361 else 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11363$as_echo "no" >&6; } 11364 fi 11365 ;; 11366 *) 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11368$as_echo "no" >&6; } 11369 ;; 11370 esac 11371fi 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 # Report which library types will actually be built 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11386$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11388$as_echo "$can_build_shared" >&6; } 11389 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11391$as_echo_n "checking whether to build shared libraries... " >&6; } 11392 test "$can_build_shared" = "no" && enable_shared=no 11393 11394 # On AIX, shared libraries and static libraries use the same namespace, and 11395 # are all built from PIC. 11396 case $host_os in 11397 aix3*) 11398 test "$enable_shared" = yes && enable_static=no 11399 if test -n "$RANLIB"; then 11400 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11401 postinstall_cmds='$RANLIB $lib' 11402 fi 11403 ;; 11404 11405 aix[4-9]*) 11406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11407 test "$enable_shared" = yes && enable_static=no 11408 fi 11409 ;; 11410 esac 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11412$as_echo "$enable_shared" >&6; } 11413 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11415$as_echo_n "checking whether to build static libraries... " >&6; } 11416 # Make sure either enable_shared or enable_static is yes. 11417 test "$enable_shared" = yes || enable_static=yes 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11419$as_echo "$enable_static" >&6; } 11420 11421 11422 11423 11424fi 11425ac_ext=c 11426ac_cpp='$CPP $CPPFLAGS' 11427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11429ac_compiler_gnu=$ac_cv_c_compiler_gnu 11430 11431CC="$lt_save_CC" 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 ac_config_commands="$ac_config_commands libtool" 11446 11447 11448 11449 11450# Only expand once: 11451 11452 11453 11454# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. 11455 11456# The tests for host and target for $enable_largefile require 11457# canonical names. 11458 11459 11460 11461# As the $enable_largefile decision depends on --enable-plugins we must set it 11462# even in directories otherwise not depending on the $plugins option. 11463 11464 11465 maybe_plugins=no 11466 for ac_header in dlfcn.h 11467do : 11468 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11469" 11470if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11471 cat >>confdefs.h <<_ACEOF 11472#define HAVE_DLFCN_H 1 11473_ACEOF 11474 maybe_plugins=yes 11475fi 11476 11477done 11478 11479 for ac_header in windows.h 11480do : 11481 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11482" 11483if test "x$ac_cv_header_windows_h" = xyes; then : 11484 cat >>confdefs.h <<_ACEOF 11485#define HAVE_WINDOWS_H 1 11486_ACEOF 11487 maybe_plugins=yes 11488fi 11489 11490done 11491 11492 11493 # Check whether --enable-plugins was given. 11494if test "${enable_plugins+set}" = set; then : 11495 enableval=$enable_plugins; case "${enableval}" in 11496 no) plugins=no ;; 11497 *) plugins=yes 11498 if test "$maybe_plugins" != "yes" ; then 11499 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11500 fi ;; 11501 esac 11502else 11503 plugins=$maybe_plugins 11504 11505fi 11506 11507 if test "$plugins" = "yes"; then 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 11509$as_echo_n "checking for library containing dlsym... " >&6; } 11510if ${ac_cv_search_dlsym+:} false; then : 11511 $as_echo_n "(cached) " >&6 11512else 11513 ac_func_search_save_LIBS=$LIBS 11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11515/* end confdefs.h. */ 11516 11517/* Override any GCC internal prototype to avoid an error. 11518 Use char because int might match the return type of a GCC 11519 builtin and then its argument prototype would still apply. */ 11520#ifdef __cplusplus 11521extern "C" 11522#endif 11523char dlsym (); 11524int 11525main () 11526{ 11527return dlsym (); 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532for ac_lib in '' dl; do 11533 if test -z "$ac_lib"; then 11534 ac_res="none required" 11535 else 11536 ac_res=-l$ac_lib 11537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11538 fi 11539 if ac_fn_c_try_link "$LINENO"; then : 11540 ac_cv_search_dlsym=$ac_res 11541fi 11542rm -f core conftest.err conftest.$ac_objext \ 11543 conftest$ac_exeext 11544 if ${ac_cv_search_dlsym+:} false; then : 11545 break 11546fi 11547done 11548if ${ac_cv_search_dlsym+:} false; then : 11549 11550else 11551 ac_cv_search_dlsym=no 11552fi 11553rm conftest.$ac_ext 11554LIBS=$ac_func_search_save_LIBS 11555fi 11556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 11557$as_echo "$ac_cv_search_dlsym" >&6; } 11558ac_res=$ac_cv_search_dlsym 11559if test "$ac_res" != no; then : 11560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11561 11562fi 11563 11564 fi 11565 11566 11567case "${host}" in 11568 sparc-*-solaris*|i?86-*-solaris*) 11569 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support 11570 # were mutually exclusive until Solaris 11.3. Without procfs support, 11571 # the bfd/ elf module cannot provide certain routines such as 11572 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user 11573 # explicitly requested large-file support through the 11574 # --enable-largefile switch, disable large-file support in favor of 11575 # procfs support. 11576 # 11577 # Check if <sys/procfs.h> is incompatible with large-file support. 11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11579/* end confdefs.h. */ 11580#define _FILE_OFFSET_BITS 64 11581#define _STRUCTURED_PROC 1 11582#include <sys/procfs.h> 11583int 11584main () 11585{ 11586 11587 ; 11588 return 0; 11589} 11590_ACEOF 11591if ac_fn_c_try_compile "$LINENO"; then : 11592 acx_cv_procfs_lfs=yes 11593else 11594 acx_cv_procfs_lfs=no 11595fi 11596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11597 # 11598 # Forcefully disable large-file support only if necessary, gdb is in 11599 # tree and enabled. 11600 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ 11601 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then 11602 : ${enable_largefile="no"} 11603 if test "$plugins" = yes; then 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 11605plugin support disabled; require large-file support which is incompatible with GDB." >&5 11606$as_echo "$as_me: WARNING: 11607plugin support disabled; require large-file support which is incompatible with GDB." >&2;} 11608 plugins=no 11609 fi 11610 fi 11611 # 11612 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the 11613 # benefit of g++ 9+ which predefines it on Solaris. 11614 if test "$enable_largefile" = no; then 11615 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" 11616 11617 fi 11618 ;; 11619esac 11620 11621# Check whether --enable-largefile was given. 11622if test "${enable_largefile+set}" = set; then : 11623 enableval=$enable_largefile; 11624fi 11625 11626if test "$enable_largefile" != no; then 11627 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 11629$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 11630if ${ac_cv_sys_largefile_CC+:} false; then : 11631 $as_echo_n "(cached) " >&6 11632else 11633 ac_cv_sys_largefile_CC=no 11634 if test "$GCC" != yes; then 11635 ac_save_CC=$CC 11636 while :; do 11637 # IRIX 6.2 and later do not support large files by default, 11638 # so use the C compiler's -n32 option if that helps. 11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11640/* end confdefs.h. */ 11641#include <sys/types.h> 11642 /* Check that off_t can represent 2**63 - 1 correctly. 11643 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11644 since some C++ compilers masquerading as C compilers 11645 incorrectly reject 9223372036854775807. */ 11646#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11648 && LARGE_OFF_T % 2147483647 == 1) 11649 ? 1 : -1]; 11650int 11651main () 11652{ 11653 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658 if ac_fn_c_try_compile "$LINENO"; then : 11659 break 11660fi 11661rm -f core conftest.err conftest.$ac_objext 11662 CC="$CC -n32" 11663 if ac_fn_c_try_compile "$LINENO"; then : 11664 ac_cv_sys_largefile_CC=' -n32'; break 11665fi 11666rm -f core conftest.err conftest.$ac_objext 11667 break 11668 done 11669 CC=$ac_save_CC 11670 rm -f conftest.$ac_ext 11671 fi 11672fi 11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 11674$as_echo "$ac_cv_sys_largefile_CC" >&6; } 11675 if test "$ac_cv_sys_largefile_CC" != no; then 11676 CC=$CC$ac_cv_sys_largefile_CC 11677 fi 11678 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 11680$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 11681if ${ac_cv_sys_file_offset_bits+:} false; then : 11682 $as_echo_n "(cached) " >&6 11683else 11684 while :; do 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686/* end confdefs.h. */ 11687#include <sys/types.h> 11688 /* Check that off_t can represent 2**63 - 1 correctly. 11689 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11690 since some C++ compilers masquerading as C compilers 11691 incorrectly reject 9223372036854775807. */ 11692#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11694 && LARGE_OFF_T % 2147483647 == 1) 11695 ? 1 : -1]; 11696int 11697main () 11698{ 11699 11700 ; 11701 return 0; 11702} 11703_ACEOF 11704if ac_fn_c_try_compile "$LINENO"; then : 11705 ac_cv_sys_file_offset_bits=no; break 11706fi 11707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710#define _FILE_OFFSET_BITS 64 11711#include <sys/types.h> 11712 /* Check that off_t can represent 2**63 - 1 correctly. 11713 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11714 since some C++ compilers masquerading as C compilers 11715 incorrectly reject 9223372036854775807. */ 11716#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11718 && LARGE_OFF_T % 2147483647 == 1) 11719 ? 1 : -1]; 11720int 11721main () 11722{ 11723 11724 ; 11725 return 0; 11726} 11727_ACEOF 11728if ac_fn_c_try_compile "$LINENO"; then : 11729 ac_cv_sys_file_offset_bits=64; break 11730fi 11731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11732 ac_cv_sys_file_offset_bits=unknown 11733 break 11734done 11735fi 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 11737$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 11738case $ac_cv_sys_file_offset_bits in #( 11739 no | unknown) ;; 11740 *) 11741cat >>confdefs.h <<_ACEOF 11742#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 11743_ACEOF 11744;; 11745esac 11746rm -rf conftest* 11747 if test $ac_cv_sys_file_offset_bits = unknown; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 11749$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 11750if ${ac_cv_sys_large_files+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752else 11753 while :; do 11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11755/* end confdefs.h. */ 11756#include <sys/types.h> 11757 /* Check that off_t can represent 2**63 - 1 correctly. 11758 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11759 since some C++ compilers masquerading as C compilers 11760 incorrectly reject 9223372036854775807. */ 11761#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11763 && LARGE_OFF_T % 2147483647 == 1) 11764 ? 1 : -1]; 11765int 11766main () 11767{ 11768 11769 ; 11770 return 0; 11771} 11772_ACEOF 11773if ac_fn_c_try_compile "$LINENO"; then : 11774 ac_cv_sys_large_files=no; break 11775fi 11776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779#define _LARGE_FILES 1 11780#include <sys/types.h> 11781 /* Check that off_t can represent 2**63 - 1 correctly. 11782 We can't simply define LARGE_OFF_T to be 9223372036854775807, 11783 since some C++ compilers masquerading as C compilers 11784 incorrectly reject 9223372036854775807. */ 11785#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 11786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 11787 && LARGE_OFF_T % 2147483647 == 1) 11788 ? 1 : -1]; 11789int 11790main () 11791{ 11792 11793 ; 11794 return 0; 11795} 11796_ACEOF 11797if ac_fn_c_try_compile "$LINENO"; then : 11798 ac_cv_sys_large_files=1; break 11799fi 11800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11801 ac_cv_sys_large_files=unknown 11802 break 11803done 11804fi 11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 11806$as_echo "$ac_cv_sys_large_files" >&6; } 11807case $ac_cv_sys_large_files in #( 11808 no | unknown) ;; 11809 *) 11810cat >>confdefs.h <<_ACEOF 11811#define _LARGE_FILES $ac_cv_sys_large_files 11812_ACEOF 11813;; 11814esac 11815rm -rf conftest* 11816 fi 11817 11818 11819fi 11820 11821 11822 11823case "${target}" in 11824 hppa*64*-*-*) ;; 11825 *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*) 11826 if test "$plugins" = "yes"; then 11827 if test "${enable_plugins+set}" = set; then 11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5 11829$as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;} 11830 else 11831 plugins=no 11832 fi 11833 fi ;; 11834 hppa*-*-hpux* | *-*-*vms* | \ 11835 powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*) 11836 if test "$plugins" = "yes"; then 11837 if test "${enable_plugins+set}" = set; then 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5 11839$as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;} 11840 else 11841 plugins=no 11842 fi 11843 fi ;; 11844esac 11845 11846 if test "$plugins" = "yes"; then 11847 PLUGINS_TRUE= 11848 PLUGINS_FALSE='#' 11849else 11850 PLUGINS_TRUE='#' 11851 PLUGINS_FALSE= 11852fi 11853 11854 11855ac_checking= 11856. ${srcdir}/development.sh 11857test "$development" = true && ac_checking=yes 11858# Check whether --enable-checking was given. 11859if test "${enable_checking+set}" = set; then : 11860 enableval=$enable_checking; case "${enableval}" in 11861 no|none) ac_checking= ;; 11862 *) ac_checking=yes ;; 11863esac 11864fi 11865if test x$ac_checking != x ; then 11866 11867$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11868 11869fi 11870 11871# Check whether --enable-64-bit-bfd was given. 11872if test "${enable_64_bit_bfd+set}" = set; then : 11873 enableval=$enable_64_bit_bfd; case $enableval in #( 11874 yes|no) : 11875 ;; #( 11876 *) : 11877 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #( 11878 *) : 11879 ;; 11880esac 11881else 11882 enable_64_bit_bfd=no 11883fi 11884 11885 11886if test "x$enable_64_bit_bfd" = "xno"; then : 11887 # The cast to long int works around a bug in the HP C Compiler 11888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11890# This bug is HP SR number 8606223364. 11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11892$as_echo_n "checking size of void *... " >&6; } 11893if ${ac_cv_sizeof_void_p+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 11897 11898else 11899 if test "$ac_cv_type_void_p" = yes; then 11900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11902as_fn_error 77 "cannot compute sizeof (void *) 11903See \`config.log' for more details" "$LINENO" 5; } 11904 else 11905 ac_cv_sizeof_void_p=0 11906 fi 11907fi 11908 11909fi 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11911$as_echo "$ac_cv_sizeof_void_p" >&6; } 11912 11913 11914 11915cat >>confdefs.h <<_ACEOF 11916#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 11917_ACEOF 11918 11919 11920 if test "x$ac_cv_sizeof_void_p" = "x8"; then : 11921 enable_64_bit_bfd=yes 11922fi 11923 11924fi 11925 11926 if test "x$enable_64_bit_bfd" = "xyes"; then 11927 ENABLE_BFD_64_BIT_TRUE= 11928 ENABLE_BFD_64_BIT_FALSE='#' 11929else 11930 ENABLE_BFD_64_BIT_TRUE='#' 11931 ENABLE_BFD_64_BIT_FALSE= 11932fi 11933 11934 11935if test $enable_64_bit_bfd = yes ; then 11936 want64=true 11937else 11938 want64=false 11939fi 11940 11941# Check whether --enable-targets was given. 11942if test "${enable_targets+set}" = set; then : 11943 enableval=$enable_targets; case "${enableval}" in 11944 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11945 ;; 11946 no) enable_targets= ;; 11947 *) enable_targets=$enableval ;; 11948esac 11949fi 11950 11951# Check whether --enable-64_bit_archive was given. 11952if test "${enable_64_bit_archive+set}" = set; then : 11953 enableval=$enable_64_bit_archive; case "${enableval}" in 11954 yes) want_64_bit_archive=true ;; 11955 no) want_64_bit_archive=false ;; 11956 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;; 11957esac 11958else 11959 want_64_bit_archive=unset 11960fi 11961 11962 11963# Check whether --with-mmap was given. 11964if test "${with_mmap+set}" = set; then : 11965 withval=$with_mmap; case "${withval}" in 11966 yes) want_mmap=true ;; 11967 no) want_mmap=false ;; 11968 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;; 11969esac 11970else 11971 want_mmap=false 11972fi 11973 11974# Check whether --enable-secureplt was given. 11975if test "${enable_secureplt+set}" = set; then : 11976 enableval=$enable_secureplt; case "${enableval}" in 11977 yes) use_secureplt=true ;; 11978 no) use_secureplt=false ;; 11979 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; 11980esac 11981else 11982 use_secureplt=false # XXX port-alpha/57511 11983fi 11984if test $use_secureplt = true; then 11985 11986$as_echo "#define USE_SECUREPLT 1" >>confdefs.h 11987 11988fi 11989 11990# Decide if -z separate-code should be enabled in ELF linker by default. 11991ac_default_ld_z_separate_code=unset 11992# Check whether --enable-separate-code was given. 11993if test "${enable_separate_code+set}" = set; then : 11994 enableval=$enable_separate_code; case "${enableval}" in 11995 yes) ac_default_ld_z_separate_code=1 ;; 11996 no) ac_default_ld_z_separate_code=0 ;; 11997esac 11998fi 11999 12000# Enable -z separate-code by default for Linux/x86. 12001case "${target}" in 12002i[3-7]86-*-linux-* | x86_64-*-linux-*) 12003 if test ${ac_default_ld_z_separate_code} = unset; then 12004 ac_default_ld_z_separate_code=1 12005 fi 12006 ;; 12007esac 12008if test "${ac_default_ld_z_separate_code}" = unset; then 12009 ac_default_ld_z_separate_code=0 12010fi 12011 12012cat >>confdefs.h <<_ACEOF 12013#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code 12014_ACEOF 12015 12016 12017# Check whether --enable-leading-mingw64-underscores was given. 12018if test "${enable_leading_mingw64_underscores+set}" = set; then : 12019 enableval=$enable_leading_mingw64_underscores; 12020fi 12021 12022if test x"$enable_leading_mingw64_underscores" = xyes ; then : 12023 12024$as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h 12025 12026fi 12027 12028DEBUGDIR=${libdir}/debug 12029 12030# Check whether --with-separate-debug-dir was given. 12031if test "${with_separate_debug_dir+set}" = set; then : 12032 withval=$with_separate_debug_dir; DEBUGDIR="${withval}" 12033fi 12034 12035 12036 12037 12038 12039# Check whether --with-pkgversion was given. 12040if test "${with_pkgversion+set}" = set; then : 12041 withval=$with_pkgversion; case "$withval" in 12042 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; 12043 no) PKGVERSION= ;; 12044 *) PKGVERSION="($withval) " ;; 12045 esac 12046else 12047 PKGVERSION="(GNU Binutils) " 12048 12049fi 12050 12051 12052 12053 12054 12055# Check whether --with-bugurl was given. 12056if test "${with_bugurl+set}" = set; then : 12057 withval=$with_bugurl; case "$withval" in 12058 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; 12059 no) BUGURL= 12060 ;; 12061 *) BUGURL="$withval" 12062 ;; 12063 esac 12064else 12065 BUGURL="https://sourceware.org/bugzilla/" 12066 12067fi 12068 12069 case ${BUGURL} in 12070 "") 12071 REPORT_BUGS_TO= 12072 REPORT_BUGS_TEXI= 12073 ;; 12074 *) 12075 REPORT_BUGS_TO="<$BUGURL>" 12076 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 12077 ;; 12078 esac; 12079 12080 12081 12082 12083 12084# Set the 'development' global. 12085. $srcdir/../bfd/development.sh 12086 12087# Set acp_cpp_for_build variable 12088ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 12089 12090# Default set of GCC warnings to enable. 12091GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12092GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12093 12094# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096/* end confdefs.h. */ 12097__GNUC__ 12098_ACEOF 12099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12100 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12101 12102else 12103 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12104fi 12105rm -f conftest* 12106 12107 12108# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111__GNUC__ 12112_ACEOF 12113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12114 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12115 12116else 12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119__clang__ 12120_ACEOF 12121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12122 $EGREP "^__clang__$" >/dev/null 2>&1; then : 12123 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 12124fi 12125rm -f conftest* 12126 12127fi 12128rm -f conftest* 12129 12130 12131# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 12132WARN_WRITE_STRINGS="" 12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135__GNUC__ 12136_ACEOF 12137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12138 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12139 12140else 12141 WARN_WRITE_STRINGS="-Wwrite-strings" 12142fi 12143rm -f conftest* 12144 12145 12146# Verify CC_FOR_BUILD to be compatible with warning flags 12147 12148# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12150/* end confdefs.h. */ 12151__GNUC__ 12152_ACEOF 12153if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12154 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12155 12156else 12157 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 12158fi 12159rm -f conftest* 12160 12161 12162# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165__GNUC__ 12166_ACEOF 12167if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12168 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12169 12170else 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173__clang__ 12174_ACEOF 12175if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12176 $EGREP "^__clang__$" >/dev/null 2>&1; then : 12177 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 12178fi 12179rm -f conftest* 12180 12181fi 12182rm -f conftest* 12183 12184 12185# Check whether --enable-werror was given. 12186if test "${enable_werror+set}" = set; then : 12187 enableval=$enable_werror; case "${enableval}" in 12188 yes | y) ERROR_ON_WARNING="yes" ;; 12189 no | n) ERROR_ON_WARNING="no" ;; 12190 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12191 esac 12192fi 12193 12194 12195# Disable -Wformat by default when using gcc on mingw 12196case "${host}" in 12197 *-*-mingw32*) 12198 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12200 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 12201 fi 12202 ;; 12203 *) ;; 12204esac 12205 12206# Enable -Werror by default when using gcc. Turn it off for releases. 12207if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12208 ERROR_ON_WARNING=yes 12209fi 12210 12211NO_WERROR= 12212if test "${ERROR_ON_WARNING}" = yes ; then 12213 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12214 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 12215 NO_WERROR="-Wno-error" 12216fi 12217 12218if test "${GCC}" = yes ; then 12219 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12220 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 12221fi 12222 12223# Check whether --enable-build-warnings was given. 12224if test "${enable_build_warnings+set}" = set; then : 12225 enableval=$enable_build_warnings; case "${enableval}" in 12226 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12227 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 12228 no) if test "${GCC}" = yes ; then 12229 WARN_CFLAGS="-w" 12230 WARN_CFLAGS_FOR_BUILD="-w" 12231 fi;; 12232 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12233 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 12234 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 12235 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12236 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 12237 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 12238 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 12239 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12240esac 12241fi 12242 12243 12244if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12245 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12246fi 12247 12248 12249 12250 12251 12252 12253 12254ac_config_headers="$ac_config_headers config.h:config.in" 12255 12256 12257# PR 14072 12258 12259 12260if test -z "$target" ; then 12261 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 12262fi 12263 12264 12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12266$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12267 # Check whether --enable-maintainer-mode was given. 12268if test "${enable_maintainer_mode+set}" = set; then : 12269 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12270else 12271 USE_MAINTAINER_MODE=no 12272fi 12273 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12275$as_echo "$USE_MAINTAINER_MODE" >&6; } 12276 if test $USE_MAINTAINER_MODE = yes; then 12277 MAINTAINER_MODE_TRUE= 12278 MAINTAINER_MODE_FALSE='#' 12279else 12280 MAINTAINER_MODE_TRUE='#' 12281 MAINTAINER_MODE_FALSE= 12282fi 12283 12284 MAINT=$MAINTAINER_MODE_TRUE 12285 12286 12287 if false; then 12288 GENINSRC_NEVER_TRUE= 12289 GENINSRC_NEVER_FALSE='#' 12290else 12291 GENINSRC_NEVER_TRUE='#' 12292 GENINSRC_NEVER_FALSE= 12293fi 12294 12295 case ${build_alias} in 12296 "") build_noncanonical=${build} ;; 12297 *) build_noncanonical=${build_alias} ;; 12298esac 12299 12300 case ${host_alias} in 12301 "") host_noncanonical=${build_noncanonical} ;; 12302 *) host_noncanonical=${host_alias} ;; 12303esac 12304 12305 case ${target_alias} in 12306 "") target_noncanonical=${host_noncanonical} ;; 12307 *) target_noncanonical=${target_alias} ;; 12308esac 12309 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 12311$as_echo_n "checking whether to install libbfd... " >&6; } 12312 # Check whether --enable-install-libbfd was given. 12313if test "${enable_install_libbfd+set}" = set; then : 12314 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 12315else 12316 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 12317 install_libbfd_p=yes 12318 else 12319 install_libbfd_p=no 12320 fi 12321fi 12322 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 12324$as_echo "$install_libbfd_p" >&6; } 12325 if test $install_libbfd_p = yes; then 12326 INSTALL_LIBBFD_TRUE= 12327 INSTALL_LIBBFD_FALSE='#' 12328else 12329 INSTALL_LIBBFD_TRUE='#' 12330 INSTALL_LIBBFD_FALSE= 12331fi 12332 12333 # Need _noncanonical variables for this. 12334 12335 12336 12337 12338 # libbfd.a is a host library containing target dependent code 12339 bfdlibdir='$(libdir)' 12340 bfdincludedir='$(includedir)' 12341 if test "${host}" != "${target}"; then 12342 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 12343 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 12344 fi 12345 12346 12347 12348 12349 12350 12351 12352 12353host64=false 12354target64=false 12355bfd_default_target_size=32 12356 12357# host stuff: 12358 12359ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt" 12360# If we haven't got the data from the intl directory, 12361# assume NLS is disabled. 12362USE_NLS=no 12363LIBINTL= 12364LIBINTL_DEP= 12365INCINTL= 12366XGETTEXT= 12367GMSGFMT= 12368POSUB= 12369 12370if test -f ../intl/config.intl; then 12371 . ../intl/config.intl 12372fi 12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12374$as_echo_n "checking whether NLS is requested... " >&6; } 12375if test x"$USE_NLS" != xyes; then 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12377$as_echo "no" >&6; } 12378else 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12380$as_echo "yes" >&6; } 12381 12382$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12383 12384 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 12386$as_echo_n "checking for catalogs to be installed... " >&6; } 12387 # Look for .po and .gmo files in the source directory. 12388 CATALOGS= 12389 XLINGUAS= 12390 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12391 # If there aren't any .gmo files the shell will give us the 12392 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12393 # weeded out. 12394 case "$cat" in *\**) 12395 continue;; 12396 esac 12397 # The quadruple backslash is collapsed to a double backslash 12398 # by the backticks, then collapsed again by the double quotes, 12399 # leaving us with one backslash in the sed expression (right 12400 # before the dot that mustn't act as a wildcard). 12401 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12402 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 12403 # The user is allowed to set LINGUAS to a list of languages to 12404 # install catalogs for. If it's empty that means "all of them." 12405 if test "x$LINGUAS" = x; then 12406 CATALOGS="$CATALOGS $cat" 12407 XLINGUAS="$XLINGUAS $lang" 12408 else 12409 case "$LINGUAS" in *$lang*) 12410 CATALOGS="$CATALOGS $cat" 12411 XLINGUAS="$XLINGUAS $lang" 12412 ;; 12413 esac 12414 fi 12415 done 12416 LINGUAS="$XLINGUAS" 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 12418$as_echo "$LINGUAS" >&6; } 12419 12420 12421 DATADIRNAME=share 12422 12423 INSTOBJEXT=.mo 12424 12425 GENCAT=gencat 12426 12427 CATOBJEXT=.gmo 12428 12429fi 12430 12431 MKINSTALLDIRS= 12432 if test -n "$ac_aux_dir"; then 12433 case "$ac_aux_dir" in 12434 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 12435 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 12436 esac 12437 fi 12438 if test -z "$MKINSTALLDIRS"; then 12439 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12440 fi 12441 12442 12443 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12445$as_echo_n "checking whether NLS is requested... " >&6; } 12446 # Check whether --enable-nls was given. 12447if test "${enable_nls+set}" = set; then : 12448 enableval=$enable_nls; USE_NLS=$enableval 12449else 12450 USE_NLS=yes 12451fi 12452 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12454$as_echo "$USE_NLS" >&6; } 12455 12456 12457 12458 12459 12460 12461# Prepare PATH_SEPARATOR. 12462# The user is always right. 12463if test "${PATH_SEPARATOR+set}" != set; then 12464 echo "#! /bin/sh" >conf$$.sh 12465 echo "exit 0" >>conf$$.sh 12466 chmod +x conf$$.sh 12467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12468 PATH_SEPARATOR=';' 12469 else 12470 PATH_SEPARATOR=: 12471 fi 12472 rm -f conf$$.sh 12473fi 12474 12475# Find out how to test for executable files. Don't use a zero-byte file, 12476# as systems may use methods other than mode bits to determine executability. 12477cat >conf$$.file <<_ASEOF 12478#! /bin/sh 12479exit 0 12480_ASEOF 12481chmod +x conf$$.file 12482if test -x conf$$.file >/dev/null 2>&1; then 12483 ac_executable_p="test -x" 12484else 12485 ac_executable_p="test -f" 12486fi 12487rm -f conf$$.file 12488 12489# Extract the first word of "msgfmt", so it can be a program name with args. 12490set dummy msgfmt; ac_word=$2 12491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12492$as_echo_n "checking for $ac_word... " >&6; } 12493if ${ac_cv_path_MSGFMT+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 case "$MSGFMT" in 12497 [\\/]* | ?:[\\/]*) 12498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12499 ;; 12500 *) 12501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12502 for ac_dir in $PATH; do 12503 IFS="$ac_save_IFS" 12504 test -z "$ac_dir" && ac_dir=. 12505 for ac_exec_ext in '' $ac_executable_extensions; do 12506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12507 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12508 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12509 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12510 break 2 12511 fi 12512 fi 12513 done 12514 done 12515 IFS="$ac_save_IFS" 12516 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12517 ;; 12518esac 12519fi 12520MSGFMT="$ac_cv_path_MSGFMT" 12521if test "$MSGFMT" != ":"; then 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12523$as_echo "$MSGFMT" >&6; } 12524else 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12526$as_echo "no" >&6; } 12527fi 12528 12529 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12530set dummy gmsgfmt; ac_word=$2 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12532$as_echo_n "checking for $ac_word... " >&6; } 12533if ${ac_cv_path_GMSGFMT+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 case $GMSGFMT in 12537 [\\/]* | ?:[\\/]*) 12538 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12539 ;; 12540 *) 12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12542for as_dir in $PATH 12543do 12544 IFS=$as_save_IFS 12545 test -z "$as_dir" && as_dir=. 12546 for ac_exec_ext in '' $ac_executable_extensions; do 12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12548 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12550 break 2 12551 fi 12552done 12553 done 12554IFS=$as_save_IFS 12555 12556 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12557 ;; 12558esac 12559fi 12560GMSGFMT=$ac_cv_path_GMSGFMT 12561if test -n "$GMSGFMT"; then 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12563$as_echo "$GMSGFMT" >&6; } 12564else 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12566$as_echo "no" >&6; } 12567fi 12568 12569 12570 12571 12572# Prepare PATH_SEPARATOR. 12573# The user is always right. 12574if test "${PATH_SEPARATOR+set}" != set; then 12575 echo "#! /bin/sh" >conf$$.sh 12576 echo "exit 0" >>conf$$.sh 12577 chmod +x conf$$.sh 12578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12579 PATH_SEPARATOR=';' 12580 else 12581 PATH_SEPARATOR=: 12582 fi 12583 rm -f conf$$.sh 12584fi 12585 12586# Find out how to test for executable files. Don't use a zero-byte file, 12587# as systems may use methods other than mode bits to determine executability. 12588cat >conf$$.file <<_ASEOF 12589#! /bin/sh 12590exit 0 12591_ASEOF 12592chmod +x conf$$.file 12593if test -x conf$$.file >/dev/null 2>&1; then 12594 ac_executable_p="test -x" 12595else 12596 ac_executable_p="test -f" 12597fi 12598rm -f conf$$.file 12599 12600# Extract the first word of "xgettext", so it can be a program name with args. 12601set dummy xgettext; ac_word=$2 12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12603$as_echo_n "checking for $ac_word... " >&6; } 12604if ${ac_cv_path_XGETTEXT+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606else 12607 case "$XGETTEXT" in 12608 [\\/]* | ?:[\\/]*) 12609 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12610 ;; 12611 *) 12612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12613 for ac_dir in $PATH; do 12614 IFS="$ac_save_IFS" 12615 test -z "$ac_dir" && ac_dir=. 12616 for ac_exec_ext in '' $ac_executable_extensions; do 12617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12618 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12619 (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 12620 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12621 break 2 12622 fi 12623 fi 12624 done 12625 done 12626 IFS="$ac_save_IFS" 12627 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12628 ;; 12629esac 12630fi 12631XGETTEXT="$ac_cv_path_XGETTEXT" 12632if test "$XGETTEXT" != ":"; then 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12634$as_echo "$XGETTEXT" >&6; } 12635else 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12637$as_echo "no" >&6; } 12638fi 12639 12640 rm -f messages.po 12641 12642 12643# Prepare PATH_SEPARATOR. 12644# The user is always right. 12645if test "${PATH_SEPARATOR+set}" != set; then 12646 echo "#! /bin/sh" >conf$$.sh 12647 echo "exit 0" >>conf$$.sh 12648 chmod +x conf$$.sh 12649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12650 PATH_SEPARATOR=';' 12651 else 12652 PATH_SEPARATOR=: 12653 fi 12654 rm -f conf$$.sh 12655fi 12656 12657# Find out how to test for executable files. Don't use a zero-byte file, 12658# as systems may use methods other than mode bits to determine executability. 12659cat >conf$$.file <<_ASEOF 12660#! /bin/sh 12661exit 0 12662_ASEOF 12663chmod +x conf$$.file 12664if test -x conf$$.file >/dev/null 2>&1; then 12665 ac_executable_p="test -x" 12666else 12667 ac_executable_p="test -f" 12668fi 12669rm -f conf$$.file 12670 12671# Extract the first word of "msgmerge", so it can be a program name with args. 12672set dummy msgmerge; ac_word=$2 12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12674$as_echo_n "checking for $ac_word... " >&6; } 12675if ${ac_cv_path_MSGMERGE+:} false; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 case "$MSGMERGE" in 12679 [\\/]* | ?:[\\/]*) 12680 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12681 ;; 12682 *) 12683 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12684 for ac_dir in $PATH; do 12685 IFS="$ac_save_IFS" 12686 test -z "$ac_dir" && ac_dir=. 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12689 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 12690 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12691 break 2 12692 fi 12693 fi 12694 done 12695 done 12696 IFS="$ac_save_IFS" 12697 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12698 ;; 12699esac 12700fi 12701MSGMERGE="$ac_cv_path_MSGMERGE" 12702if test "$MSGMERGE" != ":"; then 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12704$as_echo "$MSGMERGE" >&6; } 12705else 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12707$as_echo "no" >&6; } 12708fi 12709 12710 12711 if test "$GMSGFMT" != ":"; then 12712 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 12713 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12714 : ; 12715 else 12716 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 12718$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 12719 GMSGFMT=":" 12720 fi 12721 fi 12722 12723 if test "$XGETTEXT" != ":"; then 12724 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12725 (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 12726 : ; 12727 else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 12729$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 12730 XGETTEXT=":" 12731 fi 12732 rm -f messages.po 12733 fi 12734 12735 ac_config_commands="$ac_config_commands default-1" 12736 12737 12738 12739# Permit host specific settings. 12740. ${srcdir}/configure.host 12741 12742 12743 12744 12745# The cast to long int works around a bug in the HP C Compiler 12746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12748# This bug is HP SR number 8606223364. 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12750$as_echo_n "checking size of long long... " >&6; } 12751if ${ac_cv_sizeof_long_long+:} false; then : 12752 $as_echo_n "(cached) " >&6 12753else 12754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12755 12756else 12757 if test "$ac_cv_type_long_long" = yes; then 12758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12760as_fn_error 77 "cannot compute sizeof (long long) 12761See \`config.log' for more details" "$LINENO" 5; } 12762 else 12763 ac_cv_sizeof_long_long=0 12764 fi 12765fi 12766 12767fi 12768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12769$as_echo "$ac_cv_sizeof_long_long" >&6; } 12770 12771 12772 12773cat >>confdefs.h <<_ACEOF 12774#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12775_ACEOF 12776 12777 12778# The cast to long int works around a bug in the HP C Compiler 12779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12781# This bug is HP SR number 8606223364. 12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 12783$as_echo_n "checking size of void *... " >&6; } 12784if ${ac_cv_sizeof_void_p+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 12788 12789else 12790 if test "$ac_cv_type_void_p" = yes; then 12791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12793as_fn_error 77 "cannot compute sizeof (void *) 12794See \`config.log' for more details" "$LINENO" 5; } 12795 else 12796 ac_cv_sizeof_void_p=0 12797 fi 12798fi 12799 12800fi 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 12802$as_echo "$ac_cv_sizeof_void_p" >&6; } 12803 12804 12805 12806cat >>confdefs.h <<_ACEOF 12807#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 12808_ACEOF 12809 12810 12811# The cast to long int works around a bug in the HP C Compiler 12812# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12813# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12814# This bug is HP SR number 8606223364. 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12816$as_echo_n "checking size of long... " >&6; } 12817if ${ac_cv_sizeof_long+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12821 12822else 12823 if test "$ac_cv_type_long" = yes; then 12824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12826as_fn_error 77 "cannot compute sizeof (long) 12827See \`config.log' for more details" "$LINENO" 5; } 12828 else 12829 ac_cv_sizeof_long=0 12830 fi 12831fi 12832 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12835$as_echo "$ac_cv_sizeof_long" >&6; } 12836 12837 12838 12839cat >>confdefs.h <<_ACEOF 12840#define SIZEOF_LONG $ac_cv_sizeof_long 12841_ACEOF 12842 12843 12844# The cast to long int works around a bug in the HP C Compiler 12845# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12846# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12847# This bug is HP SR number 8606223364. 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12849$as_echo_n "checking size of int... " >&6; } 12850if ${ac_cv_sizeof_int+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12854 12855else 12856 if test "$ac_cv_type_int" = yes; then 12857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12859as_fn_error 77 "cannot compute sizeof (int) 12860See \`config.log' for more details" "$LINENO" 5; } 12861 else 12862 ac_cv_sizeof_int=0 12863 fi 12864fi 12865 12866fi 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12868$as_echo "$ac_cv_sizeof_int" >&6; } 12869 12870 12871 12872cat >>confdefs.h <<_ACEOF 12873#define SIZEOF_INT $ac_cv_sizeof_int 12874_ACEOF 12875 12876 12877 12878if test "x${ac_cv_sizeof_void_p}" = "x8"; then 12879 host64=true 12880fi 12881 12882# Put a plausible default for CC_FOR_BUILD in Makefile. 12883if test -z "$CC_FOR_BUILD"; then 12884 if test "x$cross_compiling" = "xno"; then 12885 CC_FOR_BUILD='$(CC)' 12886 else 12887 CC_FOR_BUILD=gcc 12888 fi 12889fi 12890 12891# Also set EXEEXT_FOR_BUILD. 12892if test "x$cross_compiling" = "xno"; then 12893 EXEEXT_FOR_BUILD='$(EXEEXT)' 12894else 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 12896$as_echo_n "checking for build system executable suffix... " >&6; } 12897if ${bfd_cv_build_exeext+:} false; then : 12898 $as_echo_n "(cached) " >&6 12899else 12900 rm -f conftest* 12901 echo 'int main () { return 0; }' > conftest.c 12902 bfd_cv_build_exeext= 12903 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 12904 for file in conftest.*; do 12905 case $file in 12906 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 12907 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 12908 esac 12909 done 12910 rm -f conftest* 12911 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 12914$as_echo "$bfd_cv_build_exeext" >&6; } 12915 EXEEXT_FOR_BUILD="" 12916 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 12917fi 12918 12919 12920for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \ 12921 unistd.h 12922do : 12923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12924ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12925if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12926 cat >>confdefs.h <<_ACEOF 12927#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12928_ACEOF 12929 12930fi 12931 12932done 12933 12934 12935for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \ 12936 sysconf 12937do : 12938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12940if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12941 cat >>confdefs.h <<_ACEOF 12942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12943_ACEOF 12944 12945fi 12946done 12947 12948 12949ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 12950if test "x$ac_cv_have_decl_basename" = xyes; then : 12951 ac_have_decl=1 12952else 12953 ac_have_decl=0 12954fi 12955 12956cat >>confdefs.h <<_ACEOF 12957#define HAVE_DECL_BASENAME $ac_have_decl 12958_ACEOF 12959ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" 12960if test "x$ac_cv_have_decl_ffs" = xyes; then : 12961 ac_have_decl=1 12962else 12963 ac_have_decl=0 12964fi 12965 12966cat >>confdefs.h <<_ACEOF 12967#define HAVE_DECL_FFS $ac_have_decl 12968_ACEOF 12969ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 12970if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 12971 ac_have_decl=1 12972else 12973 ac_have_decl=0 12974fi 12975 12976cat >>confdefs.h <<_ACEOF 12977#define HAVE_DECL_STPCPY $ac_have_decl 12978_ACEOF 12979ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 12980if test "x$ac_cv_have_decl_asprintf" = xyes; then : 12981 ac_have_decl=1 12982else 12983 ac_have_decl=0 12984fi 12985 12986cat >>confdefs.h <<_ACEOF 12987#define HAVE_DECL_ASPRINTF $ac_have_decl 12988_ACEOF 12989ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 12990if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 12991 ac_have_decl=1 12992else 12993 ac_have_decl=0 12994fi 12995 12996cat >>confdefs.h <<_ACEOF 12997#define HAVE_DECL_VASPRINTF $ac_have_decl 12998_ACEOF 12999ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 13000if test "x$ac_cv_have_decl_strnlen" = xyes; then : 13001 ac_have_decl=1 13002else 13003 ac_have_decl=0 13004fi 13005 13006cat >>confdefs.h <<_ACEOF 13007#define HAVE_DECL_STRNLEN $ac_have_decl 13008_ACEOF 13009 13010ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h> 13011" 13012if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then : 13013 ac_have_decl=1 13014else 13015 ac_have_decl=0 13016fi 13017 13018cat >>confdefs.h <<_ACEOF 13019#define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl 13020_ACEOF 13021 13022 13023 13024case "${host}" in 13025*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 13026 13027$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 13028 ;; 13029esac 13030 13031# Link in zlib/zstd if we can. This allows us to read compressed debug sections. 13032# This is used only by compress.c. 13033 13034 # Use the system's zlib library. 13035 zlibdir="-L\$(top_builddir)/../zlib" 13036 zlibinc="-I\$(top_srcdir)/../zlib" 13037 13038# Check whether --with-system-zlib was given. 13039if test "${with_system_zlib+set}" = set; then : 13040 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 13041 zlibdir= 13042 zlibinc= 13043 fi 13044 13045fi 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13058 if test -n "$ac_tool_prefix"; then 13059 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13060set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13062$as_echo_n "checking for $ac_word... " >&6; } 13063if ${ac_cv_path_PKG_CONFIG+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 case $PKG_CONFIG in 13067 [\\/]* | ?:[\\/]*) 13068 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13069 ;; 13070 *) 13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13072for as_dir in $PATH 13073do 13074 IFS=$as_save_IFS 13075 test -z "$as_dir" && as_dir=. 13076 for ac_exec_ext in '' $ac_executable_extensions; do 13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13078 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13080 break 2 13081 fi 13082done 13083 done 13084IFS=$as_save_IFS 13085 13086 ;; 13087esac 13088fi 13089PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13090if test -n "$PKG_CONFIG"; then 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13092$as_echo "$PKG_CONFIG" >&6; } 13093else 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13095$as_echo "no" >&6; } 13096fi 13097 13098 13099fi 13100if test -z "$ac_cv_path_PKG_CONFIG"; then 13101 ac_pt_PKG_CONFIG=$PKG_CONFIG 13102 # Extract the first word of "pkg-config", so it can be a program name with args. 13103set dummy pkg-config; ac_word=$2 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13105$as_echo_n "checking for $ac_word... " >&6; } 13106if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13107 $as_echo_n "(cached) " >&6 13108else 13109 case $ac_pt_PKG_CONFIG in 13110 [\\/]* | ?:[\\/]*) 13111 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13112 ;; 13113 *) 13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13115for as_dir in $PATH 13116do 13117 IFS=$as_save_IFS 13118 test -z "$as_dir" && as_dir=. 13119 for ac_exec_ext in '' $ac_executable_extensions; do 13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13121 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13123 break 2 13124 fi 13125done 13126 done 13127IFS=$as_save_IFS 13128 13129 ;; 13130esac 13131fi 13132ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13133if test -n "$ac_pt_PKG_CONFIG"; then 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13135$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13136else 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13138$as_echo "no" >&6; } 13139fi 13140 13141 if test "x$ac_pt_PKG_CONFIG" = x; then 13142 PKG_CONFIG="" 13143 else 13144 case $cross_compiling:$ac_tool_warned in 13145yes:) 13146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13148ac_tool_warned=yes ;; 13149esac 13150 PKG_CONFIG=$ac_pt_PKG_CONFIG 13151 fi 13152else 13153 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13154fi 13155 13156fi 13157if test -n "$PKG_CONFIG"; then 13158 _pkg_min_version=0.9.0 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13160$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13161 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13163$as_echo "yes" >&6; } 13164 else 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13166$as_echo "no" >&6; } 13167 PKG_CONFIG="" 13168 fi 13169fi 13170 13171 13172# Check whether --with-zstd was given. 13173if test "${with_zstd+set}" = set; then : 13174 withval=$with_zstd; 13175else 13176 with_zstd=auto 13177fi 13178 13179 13180if test "$with_zstd" != no; then : 13181 13182pkg_failed=no 13183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5 13184$as_echo_n "checking for libzstd >= 1.4.0... " >&6; } 13185 13186if test -n "$ZSTD_CFLAGS"; then 13187 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" 13188 elif test -n "$PKG_CONFIG"; then 13189 if test -n "$PKG_CONFIG" && \ 13190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 13191 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 13192 ac_status=$? 13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13194 test $ac_status = 0; }; then 13195 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null` 13196 test "x$?" != "x0" && pkg_failed=yes 13197else 13198 pkg_failed=yes 13199fi 13200 else 13201 pkg_failed=untried 13202fi 13203if test -n "$ZSTD_LIBS"; then 13204 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" 13205 elif test -n "$PKG_CONFIG"; then 13206 if test -n "$PKG_CONFIG" && \ 13207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5 13208 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5 13209 ac_status=$? 13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13211 test $ac_status = 0; }; then 13212 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null` 13213 test "x$?" != "x0" && pkg_failed=yes 13214else 13215 pkg_failed=yes 13216fi 13217 else 13218 pkg_failed=untried 13219fi 13220 13221if test $pkg_failed = no; then 13222 pkg_save_LDFLAGS="$LDFLAGS" 13223 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS" 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226 13227int 13228main () 13229{ 13230 13231 ; 13232 return 0; 13233} 13234_ACEOF 13235if ac_fn_c_try_link "$LINENO"; then : 13236 13237else 13238 pkg_failed=yes 13239fi 13240rm -f core conftest.err conftest.$ac_objext \ 13241 conftest$ac_exeext conftest.$ac_ext 13242 LDFLAGS=$pkg_save_LDFLAGS 13243fi 13244 13245 13246 13247if test $pkg_failed = yes; then 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13249$as_echo "no" >&6; } 13250 13251if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13252 _pkg_short_errors_supported=yes 13253else 13254 _pkg_short_errors_supported=no 13255fi 13256 if test $_pkg_short_errors_supported = yes; then 13257 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 13258 else 13259 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1` 13260 fi 13261 # Put the nasty error message in config.log where it belongs 13262 echo "$ZSTD_PKG_ERRORS" >&5 13263 13264 13265 if test "$with_zstd" = yes; then 13266 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 13267 fi 13268 13269elif test $pkg_failed = untried; then 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271$as_echo "no" >&6; } 13272 13273 if test "$with_zstd" = yes; then 13274 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5 13275 fi 13276 13277else 13278 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS 13279 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS 13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13281$as_echo "yes" >&6; } 13282 13283 13284$as_echo "#define HAVE_ZSTD 1" >>confdefs.h 13285 13286 13287fi 13288 13289fi 13290 13291 13292save_CFLAGS="$CFLAGS" 13293CFLAGS="$CFLAGS -Werror" 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5 13295$as_echo_n "checking compiler support for hidden visibility... " >&6; } 13296if ${bfd_cv_hidden+:} false; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301 13302const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n"; 13303extern void print (const char *) __attribute__ ((__visibility__ ("hidden"))); 13304int 13305main () 13306{ 13307print (hw); 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_compile "$LINENO"; then : 13313 bfd_cv_hidden=yes 13314else 13315 bfd_cv_hidden=no 13316fi 13317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5 13320$as_echo "$bfd_cv_hidden" >&6; } 13321CFLAGS="$save_CFLAGS" 13322if test $bfd_cv_hidden = yes; then 13323 13324$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 13325 13326fi 13327 13328# Check if linker supports --as-needed and --no-as-needed options 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13330$as_echo_n "checking linker --as-needed support... " >&6; } 13331if ${bfd_cv_ld_as_needed+:} false; then : 13332 $as_echo_n "(cached) " >&6 13333else 13334 bfd_cv_ld_as_needed=no 13335 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 13336 bfd_cv_ld_as_needed=yes 13337 fi 13338 13339fi 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 13341$as_echo "$bfd_cv_ld_as_needed" >&6; } 13342 13343LIBM= 13344case $host in 13345*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 13346 # These system don't have libm, or don't need it 13347 ;; 13348*-ncr-sysv4.3*) 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 13350$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 13351if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 13352 $as_echo_n "(cached) " >&6 13353else 13354 ac_check_lib_save_LIBS=$LIBS 13355LIBS="-lmw $LIBS" 13356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13357/* end confdefs.h. */ 13358 13359/* Override any GCC internal prototype to avoid an error. 13360 Use char because int might match the return type of a GCC 13361 builtin and then its argument prototype would still apply. */ 13362#ifdef __cplusplus 13363extern "C" 13364#endif 13365char _mwvalidcheckl (); 13366int 13367main () 13368{ 13369return _mwvalidcheckl (); 13370 ; 13371 return 0; 13372} 13373_ACEOF 13374if ac_fn_c_try_link "$LINENO"; then : 13375 ac_cv_lib_mw__mwvalidcheckl=yes 13376else 13377 ac_cv_lib_mw__mwvalidcheckl=no 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381LIBS=$ac_check_lib_save_LIBS 13382fi 13383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 13384$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 13385if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 13386 LIBM="-lmw" 13387fi 13388 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13390$as_echo_n "checking for cos in -lm... " >&6; } 13391if ${ac_cv_lib_m_cos+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 ac_check_lib_save_LIBS=$LIBS 13395LIBS="-lm $LIBS" 13396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13397/* end confdefs.h. */ 13398 13399/* Override any GCC internal prototype to avoid an error. 13400 Use char because int might match the return type of a GCC 13401 builtin and then its argument prototype would still apply. */ 13402#ifdef __cplusplus 13403extern "C" 13404#endif 13405char cos (); 13406int 13407main () 13408{ 13409return cos (); 13410 ; 13411 return 0; 13412} 13413_ACEOF 13414if ac_fn_c_try_link "$LINENO"; then : 13415 ac_cv_lib_m_cos=yes 13416else 13417 ac_cv_lib_m_cos=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext \ 13420 conftest$ac_exeext conftest.$ac_ext 13421LIBS=$ac_check_lib_save_LIBS 13422fi 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13424$as_echo "$ac_cv_lib_m_cos" >&6; } 13425if test "x$ac_cv_lib_m_cos" = xyes; then : 13426 LIBM="$LIBM -lm" 13427fi 13428 13429 ;; 13430*) 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13432$as_echo_n "checking for cos in -lm... " >&6; } 13433if ${ac_cv_lib_m_cos+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435else 13436 ac_check_lib_save_LIBS=$LIBS 13437LIBS="-lm $LIBS" 13438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13439/* end confdefs.h. */ 13440 13441/* Override any GCC internal prototype to avoid an error. 13442 Use char because int might match the return type of a GCC 13443 builtin and then its argument prototype would still apply. */ 13444#ifdef __cplusplus 13445extern "C" 13446#endif 13447char cos (); 13448int 13449main () 13450{ 13451return cos (); 13452 ; 13453 return 0; 13454} 13455_ACEOF 13456if ac_fn_c_try_link "$LINENO"; then : 13457 ac_cv_lib_m_cos=yes 13458else 13459 ac_cv_lib_m_cos=no 13460fi 13461rm -f core conftest.err conftest.$ac_objext \ 13462 conftest$ac_exeext conftest.$ac_ext 13463LIBS=$ac_check_lib_save_LIBS 13464fi 13465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13466$as_echo "$ac_cv_lib_m_cos" >&6; } 13467if test "x$ac_cv_lib_m_cos" = xyes; then : 13468 LIBM="-lm" 13469fi 13470 13471 ;; 13472esac 13473 13474 13475 13476# When building a shared libbfd, link against the pic version of libiberty 13477# so that apps that use libbfd won't need libiberty just to satisfy any 13478# libbfd references. 13479# We can't do that if a pic libiberty is unavailable since including non-pic 13480# code would insert text relocations into libbfd. 13481SHARED_LIBADD= 13482SHARED_LDFLAGS= 13483if test "$enable_shared" = "yes"; then 13484 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 13485 if test -n "$x"; then 13486 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 13487 fi 13488fi 13489 13490SHARED_LIBADD="$SHARED_LIBADD $LIBINTL" 13491 13492if test "$enable_shared" = "yes"; then 13493 case "${host}" in 13494 # More hacks to build DLLs on Windows. 13495 *-*-cygwin*) 13496 SHARED_LDFLAGS="-no-undefined" 13497 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32" 13498 ;; 13499 esac 13500 13501 if test -n "$SHARED_LIBADD"; then 13502 if test -n "$LIBM"; then 13503 if test x"$bfd_cv_ld_as_needed" = xyes; then 13504 # Link against libm only when needed. Put -lc, -lm inside -Wl 13505 # to stop libtool reordering these options. 13506 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 13507 else 13508 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 13509 fi 13510 fi 13511 fi 13512fi 13513 13514 13515 13516# target stuff: 13517 13518# Canonicalize the secondary target names. 13519if test -n "$enable_targets" ; then 13520 for targ in `echo $enable_targets | sed 's/,/ /g'` 13521 do 13522 result=`$ac_config_sub $targ 2>/dev/null` 13523 if test -n "$result" ; then 13524 canon_targets="$canon_targets $result" 13525 else 13526 # Allow targets that config.sub doesn't recognize, like "all". 13527 canon_targets="$canon_targets $targ" 13528 fi 13529 done 13530fi 13531 13532all_targets=false 13533defvec= 13534selvecs= 13535assocvecs= 13536selarchs= 13537TDEFINES= 13538for targ in $target $canon_targets 13539do 13540 if test $targ = all; then 13541 all_targets=true 13542 assocvecs="$assocvecs $targ_defvec $targ_selvecs" 13543 elif test $targ != plugin; then 13544 . $srcdir/config.bfd 13545 if test $targ = $target; then 13546 defvec=$targ_defvec 13547 fi 13548 selvecs="$selvecs $targ_defvec $targ_selvecs" 13549 selarchs="$selarchs $targ_archs" 13550 TDEFINES="$TDEFINES $targ_cflags" 13551 fi 13552done 13553 13554 13555# This processing still needs to be done if we're to decide properly whether 13556# 64-bit support needs to be compiled in. Currently, it will be included if 13557# the default or any other explicitly requested target requires it; it 13558# will not be included on a 32-bit host if no 64-bit target is requested, and 13559# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 13560# used. 13561 13562# uniq the default and selected vectors in all the configured targets. 13563f="" 13564for i in $selvecs ; do 13565 case " $f " in 13566 *" $i "*) ;; 13567 *) f="$f $i" ;; 13568 esac 13569done 13570selvecs="$f" 13571 13572 13573# uniq the associated vectors in all the configured targets. 13574f="" 13575for i in $assocvecs ; do 13576 case " $f " in 13577 *" $i "*) ;; 13578 *) f="$f $i" ;; 13579 esac 13580done 13581assocvecs="$f" 13582 13583 13584# uniq the architectures in all the configured targets. 13585f="" 13586for i in $selarchs ; do 13587 case " $f " in 13588 *" $i "*) ;; 13589 *) f="$f $i" ;; 13590 esac 13591done 13592selarchs="$f" 13593 13594# Target backend .o files. 13595tb= 13596 13597elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo 13598 elf-sframe.lo dwarf1.lo dwarf2.lo" 13599coffgen="coffgen.lo dwarf2.lo" 13600coff="cofflink.lo $coffgen" 13601ecoff="ecofflink.lo $coffgen" 13602xcoff="xcofflink.lo $coffgen" 13603 13604elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo" 13605for vec in $selvecs 13606do 13607 target_size=32 13608 case "$vec" in 13609 # This list is alphabetized to make it easy to compare 13610 # with the two vector lists in targets.c. For the same reason, 13611 # use one entry per line, even though this leads to long lines. 13612 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 13613 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 13614 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 13615 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 13616 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 13617 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; 13618 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;; 13619 aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 13620 aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;; 13621 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; 13622 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 13623 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 13624 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; 13625 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; 13626 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 13627 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;; 13628 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; 13629 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 13630 aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 13631 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 13632 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 13633 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13634 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13635 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13636 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13637 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13638 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13639 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13640 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; 13641 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 13642 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; 13643 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 13644 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; 13645 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 13646 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; 13647 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 13648 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; 13649 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; 13650 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 13651 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 13652 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 13653 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; 13654 cris_aout_vec) tb="$tb aout-cris.lo" ;; 13655 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 13656 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 13657 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 13658 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 13659 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; 13660 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 13661 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 13662 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 13663 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 13664 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 13665 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13666 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13667 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;; 13668 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;; 13669 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; 13670 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 13671 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 13672 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 13673 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 13674 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 13675 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13676 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13677 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 13678 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 13679 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 13680 hppa_som_vec) tb="$tb som.lo" ;; 13681 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 13682 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 13683 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 13684 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; 13685 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; 13686 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; 13687 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; 13688 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 13689 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 13690 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 13691 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 13692 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; 13693 i386_msdos_vec) tb="$tb i386msdos.lo" ;; 13694 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 13695 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; 13696 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; 13697 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; 13698 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 13699 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; 13700 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 13701 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 13702 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; 13703 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;; 13704 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; 13705 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 13706 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 13707 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 13708 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; 13709 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;; 13710 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;; 13711 loongarch64_pei_vec) tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;; 13712 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 13713 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13714 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13715 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13716 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 13717 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 13718 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 13719 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 13720 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;; 13721 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 13722 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 13723 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; 13724 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 13725 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 13726 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 13727 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; 13728 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 13729 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; 13730 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 13731 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; 13732 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; 13733 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 13734 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; 13735 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 13736 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 13737 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; 13738 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13739 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13740 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13741 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13742 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 13743 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; ;; 13744 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13745 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13746 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13747 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13748 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13749 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13750 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13751 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; 13752 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13753 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13754 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13755 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13756 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13757 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; 13758 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 13759 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 13760 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 13761 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 13762 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 13763 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; 13764 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 13765 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 13766 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 13767 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 13768 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 13769 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 13770 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; 13771 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;; 13772 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 13773 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; 13774 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 13775 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 13776 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; 13777 pdb_vec) tb="$tb pdb.lo" ;; 13778 pdp11_aout_vec) tb="$tb pdp11.lo" ;; 13779 pef_vec) tb="$tb pef.lo" ;; 13780 pef_xlib_vec) tb="$tb pef.lo" ;; 13781 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 13782 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; 13783 powerpc_boot_vec) tb="$tb ppcboot.lo" ;; 13784 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13785 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13786 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13787 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 13788 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 13789 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 13790 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 13791 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 13792 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 13793 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;; 13794 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 13795 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 13796 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; 13797 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; 13798 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; 13799 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 13800 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; 13801 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; 13802 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 13803 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 13804 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 13805 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; 13806 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 13807 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 13808 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 13809 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; 13810 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; 13811 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; 13812 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; 13813 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; 13814 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13815 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13816 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13817 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13818 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13819 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13820 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13821 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13822 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13823 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; 13824 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; 13825 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; 13826 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 13827 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 13828 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 13829 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 13830 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 13831 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 13832 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; 13833 sym_vec) tb="$tb xsym.lo" ;; 13834 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; 13835 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13836 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13837 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13838 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13839 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13840 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; 13841 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13842 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13843 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13844 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13845 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13846 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; 13847 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13848 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13849 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13850 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13851 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13852 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; 13853 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 13854 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; 13855 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 13856 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; 13857 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; 13858 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 13859 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 13860 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 13861 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 13862 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 13863 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; 13864 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; 13865 wasm_vec) tb="$tb wasm-module.lo" ;; 13866 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;; 13867 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; 13868 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;; 13869 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 13870 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 13871 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 13872 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; 13873 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; 13874 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 13875 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 13876 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; 13877 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; 13878 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 13879 xtensa_elf32_be_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 13880 xtensa_elf32_le_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 13881 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; 13882 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;; 13883 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; 13884 13885 # These appear out of order in targets.c 13886 srec_vec) tb="$tb srec.lo" ;; 13887 symbolsrec_vec) tb="$tb srec.lo" ;; 13888 tekhex_vec) tb="$tb tekhex.lo" ;; 13889 core_cisco_be_vec) tb="$tb cisco-core.lo" ;; 13890 core_cisco_le_vec) tb="$tb cisco-core.lo" ;; 13891 13892 "") ;; 13893 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;; 13894 esac 13895 13896 if test ${target_size} = 64; then 13897 target64=true 13898 fi 13899 if test x"${vec}" = x"${defvec}"; then 13900 bfd_default_target_size=${target_size} 13901 fi 13902done 13903 13904if test "$plugins" = "yes"; then 13905 tb="$tb plugin.lo" 13906fi 13907 13908# Target architecture .o files. 13909# A couple of CPUs use shorter file names to avoid problems on DOS 13910# filesystems. 13911ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 13912 13913# Weed out duplicate .o files. 13914f="" 13915for i in $tb ; do 13916 case " $f " in 13917 *" $i "*) ;; 13918 *) f="$f $i" ;; 13919 esac 13920done 13921tb="$f" 13922 13923f="" 13924for i in $ta ; do 13925 case " $f " in 13926 *" $i "*) ;; 13927 *) f="$f $i" ;; 13928 esac 13929done 13930ta="$f" 13931 13932bfd_backends="$tb" 13933bfd_machines="$ta" 13934 13935if test x${all_targets} = xtrue ; then 13936 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 13937 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 13938 selvecs= 13939 havevecs=-DHAVE_all_vecs 13940 selarchs= 13941 test -n "$assocvecs" && 13942 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13943else # all_targets is true 13944 # Only set these if they will be nonempty, for the clever echo. 13945 havevecs= 13946 assocvecs= 13947 test -n "$selvecs" && 13948 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 13949 test -n "$selvecs" && 13950 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13951 test -n "$selarchs" && 13952 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 13953fi # all_targets is true 13954 13955# 64-bit archives need a 64-bit bfd_vma. 13956if test "x$want_64_bit_archive" = xtrue; then 13957 want64=true 13958 13959$as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h 13960 13961fi 13962 13963case ${host64}-${target64}-${want64} in 13964 *true*) 13965 wordsize=64 13966 bfd64_libs='$(BFD64_LIBS)' 13967 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 13968 if test -n "$GCC" ; then 13969 bad_64bit_gcc=no; 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5 13971$as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; } 13972 # Add more tests for gcc versions with non-working 64-bit support here. 13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13974/* end confdefs.h. */ 13975:__GNUC__:__GNUC_MINOR__:__i386__: 13976_ACEOF 13977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13978 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then : 13979 bad_64bit_gcc=yes; 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5 13981$as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; } 13982else 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13984$as_echo "no" >&6; } 13985fi 13986rm -f conftest* 13987 13988 if test $bad_64bit_gcc = yes ; then 13989 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5 13990 fi 13991 fi 13992 ;; 13993 false-false-false) 13994 wordsize=32 13995 all_backends='$(BFD32_BACKENDS)' 13996 ;; 13997esac 13998 13999tdefaults="" 14000test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 14001test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 14002test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 14003test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014# If we are configured native, pick a core file support file. 14015COREFILE= 14016COREFLAG= 14017CORE_HEADER= 14018TRAD_HEADER= 14019if test "${target}" = "${host}"; then 14020 case "${host}" in 14021 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) 14022 COREFILE='' 14023 ;; 14024 alpha*-*-linux-*) 14025 COREFILE=trad-core.lo 14026 TRAD_HEADER='"hosts/alphalinux.h"' 14027 ;; 14028 alpha*-*-netbsd* | alpha*-*-openbsd*) 14029 COREFILE=netbsd-core.lo 14030 ;; 14031 alpha*-*-*) 14032 COREFILE=osf-core.lo 14033 ;; 14034 arm-*-freebsd* | arm-*-kfreebsd*-gnu) 14035 COREFILE='' ;; 14036 arm*-*-netbsd* | arm-*-openbsd*) 14037 COREFILE=netbsd-core.lo 14038 ;; 14039 arm-*-riscix) COREFILE=trad-core.lo ;; 14040 hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 14041 hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 14042 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 14043 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 14044 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 14045 hppa*-*-netbsd* | hppa*-*-openbsd*) 14046 COREFILE=netbsd-core.lo 14047 ;; 14048 14049 i[3-7]86-sequent-bsd*) 14050 COREFILE=trad-core.lo 14051 TRAD_HEADER='"hosts/symmetry.h"' 14052 ;; 14053 i[3-7]86-sequent-sysv4*) ;; 14054 i[3-7]86-sequent-sysv*) 14055 COREFILE=trad-core.lo 14056 TRAD_HEADER='"hosts/symmetry.h"' 14057 ;; 14058 i[3-7]86-*-bsdi) 14059 COREFILE= 14060 ;; 14061 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*) 14062 COREFILE=trad-core.lo 14063 TRAD_HEADER='"hosts/i386bsd.h"' 14064 ;; 14065 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) 14066 COREFILE='' 14067 TRAD_HEADER='"hosts/i386bsd.h"' 14068 ;; 14069 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 14070 COREFILE=netbsd-core.lo 14071 ;; 14072 i[3-7]86-esix-sysv3*) 14073 COREFILE=trad-core.lo 14074 TRAD_HEADER='"hosts/esix.h"' 14075 ;; 14076 i[3-7]86-*-sco3.2v5*) 14077 COREFILE=sco5-core.lo 14078 ;; 14079 i[3-7]86-*-sco* | i[3-7]86-*-isc*) 14080 COREFILE=trad-core.lo 14081 TRAD_HEADER='"hosts/i386sco.h"' 14082 ;; 14083 i[3-7]86-*-mach3*) 14084 COREFILE=trad-core.lo 14085 TRAD_HEADER='"hosts/i386mach3.h"' 14086 ;; 14087 i[3-7]86-*-linux-*) 14088 COREFILE=trad-core.lo 14089 TRAD_HEADER='"hosts/i386linux.h"' 14090 case "$enable_targets"-"$want64" in 14091 *x86_64-*linux*|*-true) 14092 CORE_HEADER='"hosts/x86-64linux.h"' 14093 esac 14094 ;; 14095 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; 14096 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; 14097 mips*-*-netbsd* | mips*-*-openbsd*) 14098 COREFILE=netbsd-core.lo 14099 ;; 14100 mips-sgi-irix4*) COREFILE=irix-core.lo ;; 14101 mips-sgi-irix5*) COREFILE=irix-core.lo ;; 14102 mips-sgi-irix6*) COREFILE=irix-core.lo ;; 14103 m68*-*-linux-*) 14104 COREFILE=trad-core.lo 14105 TRAD_HEADER='"hosts/m68klinux.h"' 14106 ;; 14107 m68*-*-netbsd*) 14108 COREFILE=netbsd-core.lo 14109 ;; 14110 ns32k-pc532-mach) 14111 COREFILE=trad-core.lo 14112 TRAD_HEADER='"hosts/pc532mach.h"' 14113 ;; 14114 ns32k-*-netbsd* | ns32k-*-openbsd*) 14115 COREFILE=netbsd-core.lo 14116 ;; 14117 rs6000-*-lynx*) 14118 COREFILE=lynx-core.lo 14119 ;; 14120 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*) 14121 COREFILE=rs6000-core.lo 14122 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 14123 ;; 14124 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 14125 COREFILE=rs6000-core.lo 14126 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 14127 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 14128 # have c_impl as a member of struct core_dumpx 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5 14130$as_echo_n "checking for c_impl in struct core_dumpx... " >&6; } 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133#include <core.h> 14134int 14135main () 14136{ 14137struct core_dumpx c; c.c_impl = 0; 14138 ; 14139 return 0; 14140} 14141_ACEOF 14142if ac_fn_c_try_compile "$LINENO"; then : 14143 14144$as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h 14145 14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14147$as_echo "yes" >&6; } 14148else 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14150$as_echo "no" >&6; } 14151fi 14152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14153 ;; 14154 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 14155 rs6000-*-*) COREFILE=rs6000-core.lo ;; 14156 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;; 14157 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 14158 powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 14159 powerpc-*-beos*) ;; 14160 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 14161 COREFILE='' ;; 14162 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 14163 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 14164 s390*-*-*) COREFILE=trad-core.lo ;; 14165 sh*-*-netbsd* | sh*-*-openbsd*) 14166 COREFILE=netbsd-core.lo 14167 ;; 14168 sparc-*-netbsd* | sparc*-*-openbsd*) 14169 COREFILE=netbsd-core.lo 14170 ;; 14171 vax-*-netbsd* | vax-*-openbsd*) 14172 COREFILE=netbsd-core.lo 14173 ;; 14174 vax-*-ultrix2*) 14175 COREFILE=trad-core.lo 14176 TRAD_HEADER='"hosts/vaxult2.h"' 14177 ;; 14178 vax-*-ultrix*) 14179 COREFILE=trad-core.lo 14180 TRAD_HEADER='"hosts/vaxult2.h"' 14181 ;; 14182 vax-*-linux-*) 14183 COREFILE=trad-core.lo 14184 TRAD_HEADER='"hosts/vaxlinux.h"' 14185 ;; 14186 vax-*-*) 14187 COREFILE=trad-core.lo 14188 TRAD_HEADER='"hosts/vaxbsd.h"' 14189 ;; 14190 x86_64-*-linux*) 14191 CORE_HEADER='"hosts/x86-64linux.h"' 14192 ;; 14193 x86_64-*-netbsd* | x86_64-*-openbsd*) 14194 COREFILE=netbsd-core.lo 14195 ;; 14196 esac 14197 14198 case "$COREFILE" in 14199 aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 14200 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 14201 hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 14202 irix-core.lo) COREFLAG=-DIRIX_CORE ;; 14203 lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 14204 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 14205 osf-core.lo) COREFLAG=-DOSF_CORE ;; 14206 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 14207 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 14208 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 14209 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 14210 esac 14211 14212 # ELF corefile support has several flavors, but all of 14213 # them use something called <sys/procfs.h> 14214 14215$as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h 14216 14217 for ac_header in sys/procfs.h 14218do : 14219 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" 14220if test "x$ac_cv_header_sys_procfs_h" = xyes; then : 14221 cat >>confdefs.h <<_ACEOF 14222#define HAVE_SYS_PROCFS_H 1 14223_ACEOF 14224 14225fi 14226 14227done 14228 14229 if test "$ac_cv_header_sys_procfs_h" = yes; then 14230 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5 14232$as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; } 14233 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14237/* end confdefs.h. */ 14238 14239#define _SYSCALL32 14240#include <sys/procfs.h> 14241int 14242main () 14243{ 14244prstatus_t avar 14245 ; 14246 return 0; 14247} 14248_ACEOF 14249if ac_fn_c_try_compile "$LINENO"; then : 14250 bfd_cv_have_sys_procfs_type_prstatus_t=yes 14251else 14252 bfd_cv_have_sys_procfs_type_prstatus_t=no 14253 14254fi 14255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14256fi 14257 14258 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then 14259 14260$as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h 14261 14262 fi 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 14264$as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; } 14265 14266 14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5 14268$as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; } 14269 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then : 14270 $as_echo_n "(cached) " >&6 14271else 14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14273/* end confdefs.h. */ 14274 14275#define _SYSCALL32 14276#include <sys/procfs.h> 14277int 14278main () 14279{ 14280prstatus32_t avar 14281 ; 14282 return 0; 14283} 14284_ACEOF 14285if ac_fn_c_try_compile "$LINENO"; then : 14286 bfd_cv_have_sys_procfs_type_prstatus32_t=yes 14287else 14288 bfd_cv_have_sys_procfs_type_prstatus32_t=no 14289 14290fi 14291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14292fi 14293 14294 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then 14295 14296$as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h 14297 14298 fi 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 14300$as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; } 14301 14302 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5 14304$as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; } 14305 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307else 14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14309/* end confdefs.h. */ 14310 14311#define _SYSCALL32 14312#include <sys/procfs.h> 14313int 14314main () 14315{ 14316prstatus_t avar; void* aref = (void*) &avar.pr_who 14317 ; 14318 return 0; 14319} 14320_ACEOF 14321if ac_fn_c_try_compile "$LINENO"; then : 14322 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes 14323else 14324 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no 14325 14326fi 14327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14328fi 14329 14330 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then 14331 14332$as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h 14333 14334 fi 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 14336$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; } 14337 14338 14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 14340$as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; } 14341 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then : 14342 $as_echo_n "(cached) " >&6 14343else 14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14345/* end confdefs.h. */ 14346 14347#define _SYSCALL32 14348#include <sys/procfs.h> 14349int 14350main () 14351{ 14352prstatus32_t avar; void* aref = (void*) &avar.pr_who 14353 ; 14354 return 0; 14355} 14356_ACEOF 14357if ac_fn_c_try_compile "$LINENO"; then : 14358 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes 14359else 14360 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no 14361 14362fi 14363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14364fi 14365 14366 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then 14367 14368$as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h 14369 14370 fi 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 14372$as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; } 14373 14374 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5 14376$as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } 14377 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then : 14378 $as_echo_n "(cached) " >&6 14379else 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382 14383#define _SYSCALL32 14384#include <sys/procfs.h> 14385int 14386main () 14387{ 14388pstatus_t avar 14389 ; 14390 return 0; 14391} 14392_ACEOF 14393if ac_fn_c_try_compile "$LINENO"; then : 14394 bfd_cv_have_sys_procfs_type_pstatus_t=yes 14395else 14396 bfd_cv_have_sys_procfs_type_pstatus_t=no 14397 14398fi 14399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14400fi 14401 14402 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then 14403 14404$as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h 14405 14406 fi 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 14408$as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } 14409 14410 14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5 14412$as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; } 14413 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then : 14414 $as_echo_n "(cached) " >&6 14415else 14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14417/* end confdefs.h. */ 14418 14419#define _SYSCALL32 14420#include <sys/procfs.h> 14421int 14422main () 14423{ 14424pxstatus_t avar 14425 ; 14426 return 0; 14427} 14428_ACEOF 14429if ac_fn_c_try_compile "$LINENO"; then : 14430 bfd_cv_have_sys_procfs_type_pxstatus_t=yes 14431else 14432 bfd_cv_have_sys_procfs_type_pxstatus_t=no 14433 14434fi 14435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14436fi 14437 14438 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then 14439 14440$as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h 14441 14442 fi 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 14444$as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; } 14445 14446 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5 14448$as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; } 14449 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451else 14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14453/* end confdefs.h. */ 14454 14455#define _SYSCALL32 14456#include <sys/procfs.h> 14457int 14458main () 14459{ 14460pstatus32_t avar 14461 ; 14462 return 0; 14463} 14464_ACEOF 14465if ac_fn_c_try_compile "$LINENO"; then : 14466 bfd_cv_have_sys_procfs_type_pstatus32_t=yes 14467else 14468 bfd_cv_have_sys_procfs_type_pstatus32_t=no 14469 14470fi 14471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14472fi 14473 14474 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then 14475 14476$as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h 14477 14478 fi 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 14480$as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; } 14481 14482 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5 14484$as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; } 14485 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490 14491#define _SYSCALL32 14492#include <sys/procfs.h> 14493int 14494main () 14495{ 14496prpsinfo_t avar 14497 ; 14498 return 0; 14499} 14500_ACEOF 14501if ac_fn_c_try_compile "$LINENO"; then : 14502 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes 14503else 14504 bfd_cv_have_sys_procfs_type_prpsinfo_t=no 14505 14506fi 14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14508fi 14509 14510 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then 14511 14512$as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h 14513 14514 fi 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 14516$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; } 14517 14518 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5 14520$as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; } 14521 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then : 14522 $as_echo_n "(cached) " >&6 14523else 14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14525/* end confdefs.h. */ 14526 14527#define _SYSCALL32 14528#include <sys/procfs.h> 14529int 14530main () 14531{ 14532prpsinfo_t avar; void* aref = (void*) &avar.pr_pid 14533 ; 14534 return 0; 14535} 14536_ACEOF 14537if ac_fn_c_try_compile "$LINENO"; then : 14538 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes 14539else 14540 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no 14541 14542fi 14543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14544fi 14545 14546 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then 14547 14548$as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h 14549 14550 fi 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5 14552$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; } 14553 14554 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5 14556$as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; } 14557 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14561/* end confdefs.h. */ 14562 14563#define _SYSCALL32 14564#include <sys/procfs.h> 14565int 14566main () 14567{ 14568prpsinfo32_t avar 14569 ; 14570 return 0; 14571} 14572_ACEOF 14573if ac_fn_c_try_compile "$LINENO"; then : 14574 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes 14575else 14576 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no 14577 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14580fi 14581 14582 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then 14583 14584$as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h 14585 14586 fi 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 14588$as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; } 14589 14590 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5 14592$as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; } 14593 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14597/* end confdefs.h. */ 14598 14599#define _SYSCALL32 14600#include <sys/procfs.h> 14601int 14602main () 14603{ 14604prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_c_try_compile "$LINENO"; then : 14610 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes 14611else 14612 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no 14613 14614fi 14615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14616fi 14617 14618 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then 14619 14620$as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h 14621 14622 fi 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5 14624$as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; } 14625 14626 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5 14628$as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; } 14629 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then : 14630 $as_echo_n "(cached) " >&6 14631else 14632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14633/* end confdefs.h. */ 14634 14635#define _SYSCALL32 14636#include <sys/procfs.h> 14637int 14638main () 14639{ 14640psinfo_t avar 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_compile "$LINENO"; then : 14646 bfd_cv_have_sys_procfs_type_psinfo_t=yes 14647else 14648 bfd_cv_have_sys_procfs_type_psinfo_t=no 14649 14650fi 14651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14652fi 14653 14654 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then 14655 14656$as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h 14657 14658 fi 14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 14660$as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; } 14661 14662 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5 14664$as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; } 14665 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then : 14666 $as_echo_n "(cached) " >&6 14667else 14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14669/* end confdefs.h. */ 14670 14671#define _SYSCALL32 14672#include <sys/procfs.h> 14673int 14674main () 14675{ 14676psinfo_t avar; void* aref = (void*) &avar.pr_pid 14677 ; 14678 return 0; 14679} 14680_ACEOF 14681if ac_fn_c_try_compile "$LINENO"; then : 14682 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes 14683else 14684 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no 14685 14686fi 14687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14688fi 14689 14690 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then 14691 14692$as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h 14693 14694 fi 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5 14696$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; } 14697 14698 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5 14700$as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; } 14701 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then : 14702 $as_echo_n "(cached) " >&6 14703else 14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14705/* end confdefs.h. */ 14706 14707#define _SYSCALL32 14708#include <sys/procfs.h> 14709int 14710main () 14711{ 14712psinfo32_t avar 14713 ; 14714 return 0; 14715} 14716_ACEOF 14717if ac_fn_c_try_compile "$LINENO"; then : 14718 bfd_cv_have_sys_procfs_type_psinfo32_t=yes 14719else 14720 bfd_cv_have_sys_procfs_type_psinfo32_t=no 14721 14722fi 14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14724fi 14725 14726 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then 14727 14728$as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h 14729 14730 fi 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 14732$as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; } 14733 14734 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5 14736$as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; } 14737 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741/* end confdefs.h. */ 14742 14743#define _SYSCALL32 14744#include <sys/procfs.h> 14745int 14746main () 14747{ 14748psinfo32_t avar; void* aref = (void*) &avar.pr_pid 14749 ; 14750 return 0; 14751} 14752_ACEOF 14753if ac_fn_c_try_compile "$LINENO"; then : 14754 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes 14755else 14756 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no 14757 14758fi 14759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14760fi 14761 14762 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then 14763 14764$as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h 14765 14766 fi 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5 14768$as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; } 14769 14770 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5 14772$as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; } 14773 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778 14779#define _SYSCALL32 14780#include <sys/procfs.h> 14781int 14782main () 14783{ 14784lwpstatus_t avar 14785 ; 14786 return 0; 14787} 14788_ACEOF 14789if ac_fn_c_try_compile "$LINENO"; then : 14790 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes 14791else 14792 bfd_cv_have_sys_procfs_type_lwpstatus_t=no 14793 14794fi 14795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14796fi 14797 14798 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then 14799 14800$as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h 14801 14802 fi 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 14804$as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; } 14805 14806 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5 14808$as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; } 14809 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814 14815#define _SYSCALL32 14816#include <sys/procfs.h> 14817int 14818main () 14819{ 14820lwpxstatus_t avar 14821 ; 14822 return 0; 14823} 14824_ACEOF 14825if ac_fn_c_try_compile "$LINENO"; then : 14826 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes 14827else 14828 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no 14829 14830fi 14831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14832fi 14833 14834 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then 14835 14836$as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h 14837 14838 fi 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 14840$as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; } 14841 14842 14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 14844$as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; } 14845 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then : 14846 $as_echo_n "(cached) " >&6 14847else 14848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14849/* end confdefs.h. */ 14850 14851#define _SYSCALL32 14852#include <sys/procfs.h> 14853int 14854main () 14855{ 14856lwpstatus_t avar; void* aref = (void*) &avar.pr_context 14857 ; 14858 return 0; 14859} 14860_ACEOF 14861if ac_fn_c_try_compile "$LINENO"; then : 14862 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes 14863else 14864 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no 14865 14866fi 14867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14868fi 14869 14870 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then 14871 14872$as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h 14873 14874 fi 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 14876$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; } 14877 14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 14880$as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; } 14881 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14885/* end confdefs.h. */ 14886 14887#define _SYSCALL32 14888#include <sys/procfs.h> 14889int 14890main () 14891{ 14892lwpstatus_t avar; void* aref = (void*) &avar.pr_reg 14893 ; 14894 return 0; 14895} 14896_ACEOF 14897if ac_fn_c_try_compile "$LINENO"; then : 14898 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes 14899else 14900 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no 14901 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14904fi 14905 14906 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then 14907 14908$as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h 14909 14910 fi 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 14912$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; } 14913 14914 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5 14916$as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; } 14917 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then : 14918 $as_echo_n "(cached) " >&6 14919else 14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14921/* end confdefs.h. */ 14922 14923#define _SYSCALL32 14924#include <sys/procfs.h> 14925int 14926main () 14927{ 14928lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg 14929 ; 14930 return 0; 14931} 14932_ACEOF 14933if ac_fn_c_try_compile "$LINENO"; then : 14934 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes 14935else 14936 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no 14937 14938fi 14939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14940fi 14941 14942 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then 14943 14944$as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h 14945 14946 fi 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5 14948$as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; } 14949 14950 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5 14952$as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; } 14953 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then : 14954 $as_echo_n "(cached) " >&6 14955else 14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957/* end confdefs.h. */ 14958 14959#define _SYSCALL32 14960#include <sys/procfs.h> 14961int 14962main () 14963{ 14964win32_pstatus_t avar 14965 ; 14966 return 0; 14967} 14968_ACEOF 14969if ac_fn_c_try_compile "$LINENO"; then : 14970 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes 14971else 14972 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no 14973 14974fi 14975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14976fi 14977 14978 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then 14979 14980$as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h 14981 14982 fi 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 14984$as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } 14985 14986 fi 14987fi 14988 14989 14990if test -n "$CORE_HEADER"; then 14991 14992cat >>confdefs.h <<_ACEOF 14993#define CORE_HEADER $CORE_HEADER 14994_ACEOF 14995 14996fi 14997if test -n "$TRAD_HEADER"; then 14998 14999cat >>confdefs.h <<_ACEOF 15000#define TRAD_HEADER $TRAD_HEADER 15001_ACEOF 15002 15003fi 15004 15005if test "$plugins" = "yes"; then 15006 supports_plugins=1 15007else 15008 supports_plugins=0 15009fi 15010 15011 15012 15013# Determine the host dependent file_ptr a.k.a. off_t type. In order 15014# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 15015# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 15016# Hopefully a reasonable assumption since fseeko et.al. should be 15017# upward compatible. 15018for ac_func in ftello ftello64 fseeko fseeko64 fopen64 15019do : 15020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15022if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15023 cat >>confdefs.h <<_ACEOF 15024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15025_ACEOF 15026 15027fi 15028done 15029 15030ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" 15031if test "x$ac_cv_have_decl_ftello" = xyes; then : 15032 ac_have_decl=1 15033else 15034 ac_have_decl=0 15035fi 15036 15037cat >>confdefs.h <<_ACEOF 15038#define HAVE_DECL_FTELLO $ac_have_decl 15039_ACEOF 15040ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default" 15041if test "x$ac_cv_have_decl_ftello64" = xyes; then : 15042 ac_have_decl=1 15043else 15044 ac_have_decl=0 15045fi 15046 15047cat >>confdefs.h <<_ACEOF 15048#define HAVE_DECL_FTELLO64 $ac_have_decl 15049_ACEOF 15050ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 15051if test "x$ac_cv_have_decl_fseeko" = xyes; then : 15052 ac_have_decl=1 15053else 15054 ac_have_decl=0 15055fi 15056 15057cat >>confdefs.h <<_ACEOF 15058#define HAVE_DECL_FSEEKO $ac_have_decl 15059_ACEOF 15060ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default" 15061if test "x$ac_cv_have_decl_fseeko64" = xyes; then : 15062 ac_have_decl=1 15063else 15064 ac_have_decl=0 15065fi 15066 15067cat >>confdefs.h <<_ACEOF 15068#define HAVE_DECL_FSEEKO64 $ac_have_decl 15069_ACEOF 15070ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default" 15071if test "x$ac_cv_have_decl_fopen64" = xyes; then : 15072 ac_have_decl=1 15073else 15074 ac_have_decl=0 15075fi 15076 15077cat >>confdefs.h <<_ACEOF 15078#define HAVE_DECL_FOPEN64 $ac_have_decl 15079_ACEOF 15080 15081if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 15082 # The cast to long int works around a bug in the HP C Compiler 15083# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15084# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15085# This bug is HP SR number 8606223364. 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 15087$as_echo_n "checking size of off_t... " >&6; } 15088if ${ac_cv_sizeof_off_t+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 15092 15093else 15094 if test "$ac_cv_type_off_t" = yes; then 15095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15097as_fn_error 77 "cannot compute sizeof (off_t) 15098See \`config.log' for more details" "$LINENO" 5; } 15099 else 15100 ac_cv_sizeof_off_t=0 15101 fi 15102fi 15103 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 15106$as_echo "$ac_cv_sizeof_off_t" >&6; } 15107 15108 15109 15110cat >>confdefs.h <<_ACEOF 15111#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 15112_ACEOF 15113 15114 15115fi 15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5 15117$as_echo_n "checking file_ptr type... " >&6; } 15118bfd_file_ptr="long" 15119bfd_ufile_ptr="unsigned long" 15120if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 15121 -o x"${ac_cv_sizeof_off_t}" = x8; then 15122 bfd_file_ptr=int64_t 15123 bfd_ufile_ptr=uint64_t 15124fi 15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5 15126$as_echo "$bfd_file_ptr" >&6; } 15127 15128 15129 15130 15131 15132 15133 for ac_header in $ac_header_list 15134do : 15135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15136ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15137" 15138if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15139 cat >>confdefs.h <<_ACEOF 15140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15141_ACEOF 15142 15143fi 15144 15145done 15146 15147 15148 15149 15150 15151 15152 15153 15154for ac_func in getpagesize 15155do : 15156 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15157if test "x$ac_cv_func_getpagesize" = xyes; then : 15158 cat >>confdefs.h <<_ACEOF 15159#define HAVE_GETPAGESIZE 1 15160_ACEOF 15161 15162fi 15163done 15164 15165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15166$as_echo_n "checking for working mmap... " >&6; } 15167if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 15168 $as_echo_n "(cached) " >&6 15169else 15170 if test "$cross_compiling" = yes; then : 15171 ac_cv_func_mmap_fixed_mapped=no 15172else 15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15174/* end confdefs.h. */ 15175$ac_includes_default 15176/* malloc might have been renamed as rpl_malloc. */ 15177#undef malloc 15178 15179/* Thanks to Mike Haertel and Jim Avera for this test. 15180 Here is a matrix of mmap possibilities: 15181 mmap private not fixed 15182 mmap private fixed at somewhere currently unmapped 15183 mmap private fixed at somewhere already mapped 15184 mmap shared not fixed 15185 mmap shared fixed at somewhere currently unmapped 15186 mmap shared fixed at somewhere already mapped 15187 For private mappings, we should verify that changes cannot be read() 15188 back from the file, nor mmap's back from the file at a different 15189 address. (There have been systems where private was not correctly 15190 implemented like the infamous i386 svr4.0, and systems where the 15191 VM page cache was not coherent with the file system buffer cache 15192 like early versions of FreeBSD and possibly contemporary NetBSD.) 15193 For shared mappings, we should conversely verify that changes get 15194 propagated back to all the places they're supposed to be. 15195 15196 Grep wants private fixed already mapped. 15197 The main things grep needs to know about mmap are: 15198 * does it exist and is it safe to write into the mmap'd area 15199 * how to use it (BSD variants) */ 15200 15201#include <fcntl.h> 15202#include <sys/mman.h> 15203 15204#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 15205char *malloc (); 15206#endif 15207 15208/* This mess was copied from the GNU getpagesize.h. */ 15209#ifndef HAVE_GETPAGESIZE 15210# ifdef _SC_PAGESIZE 15211# define getpagesize() sysconf(_SC_PAGESIZE) 15212# else /* no _SC_PAGESIZE */ 15213# ifdef HAVE_SYS_PARAM_H 15214# include <sys/param.h> 15215# ifdef EXEC_PAGESIZE 15216# define getpagesize() EXEC_PAGESIZE 15217# else /* no EXEC_PAGESIZE */ 15218# ifdef NBPG 15219# define getpagesize() NBPG * CLSIZE 15220# ifndef CLSIZE 15221# define CLSIZE 1 15222# endif /* no CLSIZE */ 15223# else /* no NBPG */ 15224# ifdef NBPC 15225# define getpagesize() NBPC 15226# else /* no NBPC */ 15227# ifdef PAGESIZE 15228# define getpagesize() PAGESIZE 15229# endif /* PAGESIZE */ 15230# endif /* no NBPC */ 15231# endif /* no NBPG */ 15232# endif /* no EXEC_PAGESIZE */ 15233# else /* no HAVE_SYS_PARAM_H */ 15234# define getpagesize() 8192 /* punt totally */ 15235# endif /* no HAVE_SYS_PARAM_H */ 15236# endif /* no _SC_PAGESIZE */ 15237 15238#endif /* no HAVE_GETPAGESIZE */ 15239 15240int 15241main () 15242{ 15243 char *data, *data2, *data3; 15244 const char *cdata2; 15245 int i, pagesize; 15246 int fd, fd2; 15247 15248 pagesize = getpagesize (); 15249 15250 /* First, make a file with some known garbage in it. */ 15251 data = (char *) malloc (pagesize); 15252 if (!data) 15253 return 1; 15254 for (i = 0; i < pagesize; ++i) 15255 *(data + i) = rand (); 15256 umask (0); 15257 fd = creat ("conftest.mmap", 0600); 15258 if (fd < 0) 15259 return 2; 15260 if (write (fd, data, pagesize) != pagesize) 15261 return 3; 15262 close (fd); 15263 15264 /* Next, check that the tail of a page is zero-filled. File must have 15265 non-zero length, otherwise we risk SIGBUS for entire page. */ 15266 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15267 if (fd2 < 0) 15268 return 4; 15269 cdata2 = ""; 15270 if (write (fd2, cdata2, 1) != 1) 15271 return 5; 15272 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15273 if (data2 == MAP_FAILED) 15274 return 6; 15275 for (i = 0; i < pagesize; ++i) 15276 if (*(data2 + i)) 15277 return 7; 15278 close (fd2); 15279 if (munmap (data2, pagesize)) 15280 return 8; 15281 15282 /* Next, try to mmap the file at a fixed address which already has 15283 something else allocated at it. If we can, also make sure that 15284 we see the same garbage. */ 15285 fd = open ("conftest.mmap", O_RDWR); 15286 if (fd < 0) 15287 return 9; 15288 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15289 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15290 return 10; 15291 for (i = 0; i < pagesize; ++i) 15292 if (*(data + i) != *(data2 + i)) 15293 return 11; 15294 15295 /* Finally, make sure that changes to the mapped area do not 15296 percolate back to the file as seen by read(). (This is a bug on 15297 some variants of i386 svr4.0.) */ 15298 for (i = 0; i < pagesize; ++i) 15299 *(data2 + i) = *(data2 + i) + 1; 15300 data3 = (char *) malloc (pagesize); 15301 if (!data3) 15302 return 12; 15303 if (read (fd, data3, pagesize) != pagesize) 15304 return 13; 15305 for (i = 0; i < pagesize; ++i) 15306 if (*(data + i) != *(data3 + i)) 15307 return 14; 15308 close (fd); 15309 return 0; 15310} 15311_ACEOF 15312if ac_fn_c_try_run "$LINENO"; then : 15313 ac_cv_func_mmap_fixed_mapped=yes 15314else 15315 ac_cv_func_mmap_fixed_mapped=no 15316fi 15317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15318 conftest.$ac_objext conftest.beam conftest.$ac_ext 15319fi 15320 15321fi 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15323$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 15324if test $ac_cv_func_mmap_fixed_mapped = yes; then 15325 15326$as_echo "#define HAVE_MMAP 1" >>confdefs.h 15327 15328fi 15329rm -f conftest.mmap conftest.txt 15330 15331for ac_func in madvise mprotect 15332do : 15333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15335if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15336 cat >>confdefs.h <<_ACEOF 15337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15338_ACEOF 15339 15340fi 15341done 15342 15343case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 15344 true+yes ) 15345$as_echo "#define USE_MMAP 1" >>confdefs.h 15346 ;; 15347esac 15348 15349ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" 15350 15351 15352ac_config_commands="$ac_config_commands default" 15353 15354 15355 15356 15357 15358 15359 15360cat >confcache <<\_ACEOF 15361# This file is a shell script that caches the results of configure 15362# tests run on this system so they can be shared between configure 15363# scripts and configure runs, see configure's option --config-cache. 15364# It is not useful on other systems. If it contains results you don't 15365# want to keep, you may remove or edit it. 15366# 15367# config.status only pays attention to the cache file if you give it 15368# the --recheck option to rerun configure. 15369# 15370# `ac_cv_env_foo' variables (set or unset) will be overridden when 15371# loading this file, other *unset* `ac_cv_foo' will be assigned the 15372# following values. 15373 15374_ACEOF 15375 15376# The following way of writing the cache mishandles newlines in values, 15377# but we know of no workaround that is simple, portable, and efficient. 15378# So, we kill variables containing newlines. 15379# Ultrix sh set writes to stderr and can't be redirected directly, 15380# and sets the high bit in the cache file unless we assign to the vars. 15381( 15382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15383 eval ac_val=\$$ac_var 15384 case $ac_val in #( 15385 *${as_nl}*) 15386 case $ac_var in #( 15387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15389 esac 15390 case $ac_var in #( 15391 _ | IFS | as_nl) ;; #( 15392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15393 *) { eval $ac_var=; unset $ac_var;} ;; 15394 esac ;; 15395 esac 15396 done 15397 15398 (set) 2>&1 | 15399 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15400 *${as_nl}ac_space=\ *) 15401 # `set' does not quote correctly, so add quotes: double-quote 15402 # substitution turns \\\\ into \\, and sed turns \\ into \. 15403 sed -n \ 15404 "s/'/'\\\\''/g; 15405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15406 ;; #( 15407 *) 15408 # `set' quotes correctly as required by POSIX, so do not add quotes. 15409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15410 ;; 15411 esac | 15412 sort 15413) | 15414 sed ' 15415 /^ac_cv_env_/b end 15416 t clear 15417 :clear 15418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15419 t end 15420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15421 :end' >>confcache 15422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15423 if test -w "$cache_file"; then 15424 if test "x$cache_file" != "x/dev/null"; then 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15426$as_echo "$as_me: updating cache $cache_file" >&6;} 15427 if test ! -f "$cache_file" || test -h "$cache_file"; then 15428 cat confcache >"$cache_file" 15429 else 15430 case $cache_file in #( 15431 */* | ?:*) 15432 mv -f confcache "$cache_file"$$ && 15433 mv -f "$cache_file"$$ "$cache_file" ;; #( 15434 *) 15435 mv -f confcache "$cache_file" ;; 15436 esac 15437 fi 15438 fi 15439 else 15440 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15441$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15442 fi 15443fi 15444rm -f confcache 15445 15446test "x$prefix" = xNONE && prefix=$ac_default_prefix 15447# Let make expand exec_prefix. 15448test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15449 15450DEFS=-DHAVE_CONFIG_H 15451 15452ac_libobjs= 15453ac_ltlibobjs= 15454U= 15455for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15456 # 1. Remove the extension, and $U if already installed. 15457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15460 # will be set to the directory where LIBOBJS objects are built. 15461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15463done 15464LIBOBJS=$ac_libobjs 15465 15466LTLIBOBJS=$ac_ltlibobjs 15467 15468 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15470$as_echo_n "checking that generated files are newer than configure... " >&6; } 15471 if test -n "$am_sleep_pid"; then 15472 # Hide warnings about reused PIDs. 15473 wait $am_sleep_pid 2>/dev/null 15474 fi 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15476$as_echo "done" >&6; } 15477 if test -n "$EXEEXT"; then 15478 am__EXEEXT_TRUE= 15479 am__EXEEXT_FALSE='#' 15480else 15481 am__EXEEXT_TRUE='#' 15482 am__EXEEXT_FALSE= 15483fi 15484 15485if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15486 as_fn_error $? "conditional \"AMDEP\" was never defined. 15487Usually this means the macro was only invoked conditionally." "$LINENO" 5 15488fi 15489if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15490 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15491Usually this means the macro was only invoked conditionally." "$LINENO" 5 15492fi 15493if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then 15494 as_fn_error $? "conditional \"PLUGINS\" was never defined. 15495Usually this means the macro was only invoked conditionally." "$LINENO" 5 15496fi 15497if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then 15498 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined. 15499Usually this means the macro was only invoked conditionally." "$LINENO" 5 15500fi 15501if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15502 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15503Usually this means the macro was only invoked conditionally." "$LINENO" 5 15504fi 15505if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 15506 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. 15507Usually this means the macro was only invoked conditionally." "$LINENO" 5 15508fi 15509if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 15510 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 15511Usually this means the macro was only invoked conditionally." "$LINENO" 5 15512fi 15513 15514: "${CONFIG_STATUS=./config.status}" 15515ac_write_fail=0 15516ac_clean_files_save=$ac_clean_files 15517ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15518{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15519$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15520as_write_fail=0 15521cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15522#! $SHELL 15523# Generated by $as_me. 15524# Run this file to recreate the current configuration. 15525# Compiler output produced by configure, useful for debugging 15526# configure, is in config.log if it exists. 15527 15528debug=false 15529ac_cs_recheck=false 15530ac_cs_silent=false 15531 15532SHELL=\${CONFIG_SHELL-$SHELL} 15533export SHELL 15534_ASEOF 15535cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15536## -------------------- ## 15537## M4sh Initialization. ## 15538## -------------------- ## 15539 15540# Be more Bourne compatible 15541DUALCASE=1; export DUALCASE # for MKS sh 15542if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15543 emulate sh 15544 NULLCMD=: 15545 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15546 # is contrary to our usage. Disable this feature. 15547 alias -g '${1+"$@"}'='"$@"' 15548 setopt NO_GLOB_SUBST 15549else 15550 case `(set -o) 2>/dev/null` in #( 15551 *posix*) : 15552 set -o posix ;; #( 15553 *) : 15554 ;; 15555esac 15556fi 15557 15558 15559as_nl=' 15560' 15561export as_nl 15562# Printing a long string crashes Solaris 7 /usr/bin/printf. 15563as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15564as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15565as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15566# Prefer a ksh shell builtin over an external printf program on Solaris, 15567# but without wasting forks for bash or zsh. 15568if test -z "$BASH_VERSION$ZSH_VERSION" \ 15569 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15570 as_echo='print -r --' 15571 as_echo_n='print -rn --' 15572elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15573 as_echo='printf %s\n' 15574 as_echo_n='printf %s' 15575else 15576 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15577 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15578 as_echo_n='/usr/ucb/echo -n' 15579 else 15580 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15581 as_echo_n_body='eval 15582 arg=$1; 15583 case $arg in #( 15584 *"$as_nl"*) 15585 expr "X$arg" : "X\\(.*\\)$as_nl"; 15586 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15587 esac; 15588 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15589 ' 15590 export as_echo_n_body 15591 as_echo_n='sh -c $as_echo_n_body as_echo' 15592 fi 15593 export as_echo_body 15594 as_echo='sh -c $as_echo_body as_echo' 15595fi 15596 15597# The user is always right. 15598if test "${PATH_SEPARATOR+set}" != set; then 15599 PATH_SEPARATOR=: 15600 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15601 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15602 PATH_SEPARATOR=';' 15603 } 15604fi 15605 15606 15607# IFS 15608# We need space, tab and new line, in precisely that order. Quoting is 15609# there to prevent editors from complaining about space-tab. 15610# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15611# splitting by setting IFS to empty value.) 15612IFS=" "" $as_nl" 15613 15614# Find who we are. Look in the path if we contain no directory separator. 15615as_myself= 15616case $0 in #(( 15617 *[\\/]* ) as_myself=$0 ;; 15618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15619for as_dir in $PATH 15620do 15621 IFS=$as_save_IFS 15622 test -z "$as_dir" && as_dir=. 15623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15624 done 15625IFS=$as_save_IFS 15626 15627 ;; 15628esac 15629# We did not find ourselves, most probably we were run as `sh COMMAND' 15630# in which case we are not to be found in the path. 15631if test "x$as_myself" = x; then 15632 as_myself=$0 15633fi 15634if test ! -f "$as_myself"; then 15635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15636 exit 1 15637fi 15638 15639# Unset variables that we do not need and which cause bugs (e.g. in 15640# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15641# suppresses any "Segmentation fault" message there. '((' could 15642# trigger a bug in pdksh 5.2.14. 15643for as_var in BASH_ENV ENV MAIL MAILPATH 15644do eval test x\${$as_var+set} = xset \ 15645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15646done 15647PS1='$ ' 15648PS2='> ' 15649PS4='+ ' 15650 15651# NLS nuisances. 15652LC_ALL=C 15653export LC_ALL 15654LANGUAGE=C 15655export LANGUAGE 15656 15657# CDPATH. 15658(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15659 15660 15661# as_fn_error STATUS ERROR [LINENO LOG_FD] 15662# ---------------------------------------- 15663# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15664# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15665# script with STATUS, using 1 if that was 0. 15666as_fn_error () 15667{ 15668 as_status=$1; test $as_status -eq 0 && as_status=1 15669 if test "$4"; then 15670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15672 fi 15673 $as_echo "$as_me: error: $2" >&2 15674 as_fn_exit $as_status 15675} # as_fn_error 15676 15677 15678# as_fn_set_status STATUS 15679# ----------------------- 15680# Set $? to STATUS, without forking. 15681as_fn_set_status () 15682{ 15683 return $1 15684} # as_fn_set_status 15685 15686# as_fn_exit STATUS 15687# ----------------- 15688# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15689as_fn_exit () 15690{ 15691 set +e 15692 as_fn_set_status $1 15693 exit $1 15694} # as_fn_exit 15695 15696# as_fn_unset VAR 15697# --------------- 15698# Portably unset VAR. 15699as_fn_unset () 15700{ 15701 { eval $1=; unset $1;} 15702} 15703as_unset=as_fn_unset 15704# as_fn_append VAR VALUE 15705# ---------------------- 15706# Append the text in VALUE to the end of the definition contained in VAR. Take 15707# advantage of any shell optimizations that allow amortized linear growth over 15708# repeated appends, instead of the typical quadratic growth present in naive 15709# implementations. 15710if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15711 eval 'as_fn_append () 15712 { 15713 eval $1+=\$2 15714 }' 15715else 15716 as_fn_append () 15717 { 15718 eval $1=\$$1\$2 15719 } 15720fi # as_fn_append 15721 15722# as_fn_arith ARG... 15723# ------------------ 15724# Perform arithmetic evaluation on the ARGs, and store the result in the 15725# global $as_val. Take advantage of shells that can avoid forks. The arguments 15726# must be portable across $(()) and expr. 15727if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15728 eval 'as_fn_arith () 15729 { 15730 as_val=$(( $* )) 15731 }' 15732else 15733 as_fn_arith () 15734 { 15735 as_val=`expr "$@" || test $? -eq 1` 15736 } 15737fi # as_fn_arith 15738 15739 15740if expr a : '\(a\)' >/dev/null 2>&1 && 15741 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15742 as_expr=expr 15743else 15744 as_expr=false 15745fi 15746 15747if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15748 as_basename=basename 15749else 15750 as_basename=false 15751fi 15752 15753if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15754 as_dirname=dirname 15755else 15756 as_dirname=false 15757fi 15758 15759as_me=`$as_basename -- "$0" || 15760$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15761 X"$0" : 'X\(//\)$' \| \ 15762 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15763$as_echo X/"$0" | 15764 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15765 s//\1/ 15766 q 15767 } 15768 /^X\/\(\/\/\)$/{ 15769 s//\1/ 15770 q 15771 } 15772 /^X\/\(\/\).*/{ 15773 s//\1/ 15774 q 15775 } 15776 s/.*/./; q'` 15777 15778# Avoid depending upon Character Ranges. 15779as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15780as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15781as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15782as_cr_digits='0123456789' 15783as_cr_alnum=$as_cr_Letters$as_cr_digits 15784 15785ECHO_C= ECHO_N= ECHO_T= 15786case `echo -n x` in #((((( 15787-n*) 15788 case `echo 'xy\c'` in 15789 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15790 xy) ECHO_C='\c';; 15791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15792 ECHO_T=' ';; 15793 esac;; 15794*) 15795 ECHO_N='-n';; 15796esac 15797 15798rm -f conf$$ conf$$.exe conf$$.file 15799if test -d conf$$.dir; then 15800 rm -f conf$$.dir/conf$$.file 15801else 15802 rm -f conf$$.dir 15803 mkdir conf$$.dir 2>/dev/null 15804fi 15805if (echo >conf$$.file) 2>/dev/null; then 15806 if ln -s conf$$.file conf$$ 2>/dev/null; then 15807 as_ln_s='ln -s' 15808 # ... but there are two gotchas: 15809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15811 # In both cases, we have to default to `cp -pR'. 15812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15813 as_ln_s='cp -pR' 15814 elif ln conf$$.file conf$$ 2>/dev/null; then 15815 as_ln_s=ln 15816 else 15817 as_ln_s='cp -pR' 15818 fi 15819else 15820 as_ln_s='cp -pR' 15821fi 15822rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15823rmdir conf$$.dir 2>/dev/null 15824 15825 15826# as_fn_mkdir_p 15827# ------------- 15828# Create "$as_dir" as a directory, including parents if necessary. 15829as_fn_mkdir_p () 15830{ 15831 15832 case $as_dir in #( 15833 -*) as_dir=./$as_dir;; 15834 esac 15835 test -d "$as_dir" || eval $as_mkdir_p || { 15836 as_dirs= 15837 while :; do 15838 case $as_dir in #( 15839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15840 *) as_qdir=$as_dir;; 15841 esac 15842 as_dirs="'$as_qdir' $as_dirs" 15843 as_dir=`$as_dirname -- "$as_dir" || 15844$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15845 X"$as_dir" : 'X\(//\)[^/]' \| \ 15846 X"$as_dir" : 'X\(//\)$' \| \ 15847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15848$as_echo X"$as_dir" | 15849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15850 s//\1/ 15851 q 15852 } 15853 /^X\(\/\/\)[^/].*/{ 15854 s//\1/ 15855 q 15856 } 15857 /^X\(\/\/\)$/{ 15858 s//\1/ 15859 q 15860 } 15861 /^X\(\/\).*/{ 15862 s//\1/ 15863 q 15864 } 15865 s/.*/./; q'` 15866 test -d "$as_dir" && break 15867 done 15868 test -z "$as_dirs" || eval "mkdir $as_dirs" 15869 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15870 15871 15872} # as_fn_mkdir_p 15873if mkdir -p . 2>/dev/null; then 15874 as_mkdir_p='mkdir -p "$as_dir"' 15875else 15876 test -d ./-p && rmdir ./-p 15877 as_mkdir_p=false 15878fi 15879 15880 15881# as_fn_executable_p FILE 15882# ----------------------- 15883# Test if FILE is an executable regular file. 15884as_fn_executable_p () 15885{ 15886 test -f "$1" && test -x "$1" 15887} # as_fn_executable_p 15888as_test_x='test -x' 15889as_executable_p=as_fn_executable_p 15890 15891# Sed expression to map a string onto a valid CPP name. 15892as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15893 15894# Sed expression to map a string onto a valid variable name. 15895as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15896 15897 15898exec 6>&1 15899## ----------------------------------- ## 15900## Main body of $CONFIG_STATUS script. ## 15901## ----------------------------------- ## 15902_ASEOF 15903test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15904 15905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15906# Save the log message, to keep $0 and so on meaningful, and to 15907# report actual input values of CONFIG_FILES etc. instead of their 15908# values after options handling. 15909ac_log=" 15910This file was extended by bfd $as_me 2.39.50, which was 15911generated by GNU Autoconf 2.69. Invocation command line was 15912 15913 CONFIG_FILES = $CONFIG_FILES 15914 CONFIG_HEADERS = $CONFIG_HEADERS 15915 CONFIG_LINKS = $CONFIG_LINKS 15916 CONFIG_COMMANDS = $CONFIG_COMMANDS 15917 $ $0 $@ 15918 15919on `(hostname || uname -n) 2>/dev/null | sed 1q` 15920" 15921 15922_ACEOF 15923 15924case $ac_config_files in *" 15925"*) set x $ac_config_files; shift; ac_config_files=$*;; 15926esac 15927 15928case $ac_config_headers in *" 15929"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15930esac 15931 15932 15933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15934# Files that config.status was made for. 15935config_files="$ac_config_files" 15936config_headers="$ac_config_headers" 15937config_commands="$ac_config_commands" 15938 15939_ACEOF 15940 15941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15942ac_cs_usage="\ 15943\`$as_me' instantiates files and other configuration actions 15944from templates according to the current configuration. Unless the files 15945and actions are specified as TAGs, all are instantiated by default. 15946 15947Usage: $0 [OPTION]... [TAG]... 15948 15949 -h, --help print this help, then exit 15950 -V, --version print version number and configuration settings, then exit 15951 --config print configuration, then exit 15952 -q, --quiet, --silent 15953 do not print progress messages 15954 -d, --debug don't remove temporary files 15955 --recheck update $as_me by reconfiguring in the same conditions 15956 --file=FILE[:TEMPLATE] 15957 instantiate the configuration file FILE 15958 --header=FILE[:TEMPLATE] 15959 instantiate the configuration header FILE 15960 15961Configuration files: 15962$config_files 15963 15964Configuration headers: 15965$config_headers 15966 15967Configuration commands: 15968$config_commands 15969 15970Report bugs to the package provider." 15971 15972_ACEOF 15973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15974ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15975ac_cs_version="\\ 15976bfd config.status 2.39.50 15977configured by $0, generated by GNU Autoconf 2.69, 15978 with options \\"\$ac_cs_config\\" 15979 15980Copyright (C) 2012 Free Software Foundation, Inc. 15981This config.status script is free software; the Free Software Foundation 15982gives unlimited permission to copy, distribute and modify it." 15983 15984ac_pwd='$ac_pwd' 15985srcdir='$srcdir' 15986INSTALL='$INSTALL' 15987MKDIR_P='$MKDIR_P' 15988AWK='$AWK' 15989test -n "\$AWK" || AWK=awk 15990_ACEOF 15991 15992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15993# The default lists apply if the user does not specify any file. 15994ac_need_defaults=: 15995while test $# != 0 15996do 15997 case $1 in 15998 --*=?*) 15999 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16001 ac_shift=: 16002 ;; 16003 --*=) 16004 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16005 ac_optarg= 16006 ac_shift=: 16007 ;; 16008 *) 16009 ac_option=$1 16010 ac_optarg=$2 16011 ac_shift=shift 16012 ;; 16013 esac 16014 16015 case $ac_option in 16016 # Handling of the options. 16017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16018 ac_cs_recheck=: ;; 16019 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16020 $as_echo "$ac_cs_version"; exit ;; 16021 --config | --confi | --conf | --con | --co | --c ) 16022 $as_echo "$ac_cs_config"; exit ;; 16023 --debug | --debu | --deb | --de | --d | -d ) 16024 debug=: ;; 16025 --file | --fil | --fi | --f ) 16026 $ac_shift 16027 case $ac_optarg in 16028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16029 '') as_fn_error $? "missing file argument" ;; 16030 esac 16031 as_fn_append CONFIG_FILES " '$ac_optarg'" 16032 ac_need_defaults=false;; 16033 --header | --heade | --head | --hea ) 16034 $ac_shift 16035 case $ac_optarg in 16036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16037 esac 16038 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16039 ac_need_defaults=false;; 16040 --he | --h) 16041 # Conflict between --help and --header 16042 as_fn_error $? "ambiguous option: \`$1' 16043Try \`$0 --help' for more information.";; 16044 --help | --hel | -h ) 16045 $as_echo "$ac_cs_usage"; exit ;; 16046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16047 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16048 ac_cs_silent=: ;; 16049 16050 # This is an error. 16051 -*) as_fn_error $? "unrecognized option: \`$1' 16052Try \`$0 --help' for more information." ;; 16053 16054 *) as_fn_append ac_config_targets " $1" 16055 ac_need_defaults=false ;; 16056 16057 esac 16058 shift 16059done 16060 16061ac_configure_extra_args= 16062 16063if $ac_cs_silent; then 16064 exec 6>/dev/null 16065 ac_configure_extra_args="$ac_configure_extra_args --silent" 16066fi 16067 16068_ACEOF 16069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16070if \$ac_cs_recheck; then 16071 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16072 shift 16073 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16074 CONFIG_SHELL='$SHELL' 16075 export CONFIG_SHELL 16076 exec "\$@" 16077fi 16078 16079_ACEOF 16080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16081exec 5>>config.log 16082{ 16083 echo 16084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16085## Running $as_me. ## 16086_ASBOX 16087 $as_echo "$ac_log" 16088} >&5 16089 16090_ACEOF 16091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16092# 16093# INIT-COMMANDS 16094# 16095AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16096 16097 16098# The HP-UX ksh and POSIX shell print the target directory to stdout 16099# if CDPATH is set. 16100(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16101 16102sed_quote_subst='$sed_quote_subst' 16103double_quote_subst='$double_quote_subst' 16104delay_variable_subst='$delay_variable_subst' 16105enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16106macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16107macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16108enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16109pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16110enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16111SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16112ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16113host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16114host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16115host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16116build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16117build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16118build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16119SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16120Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16121GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16122EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16123FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16124LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16125NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16126LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16127max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16128ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16129exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16130lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16131lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16132lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16133reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16134reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16135OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16136deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16137file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16138AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16139AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16140STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16141RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16142old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16143old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16144old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16145lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16146CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16147CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16148compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16149GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16150lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16152lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16154objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16155MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16156lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16157lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16158lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16159lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16160lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16161need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16162DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16163NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16164LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16165OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16166OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16167libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16168shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16169extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16170archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16171enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16172export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16173whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16174compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16175old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16176old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16177archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16178archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16179module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16180module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16181with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16182allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16183no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16184hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16185hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16186hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16187hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16188hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16189hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16190hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16191hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16192inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16193link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16194fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16195always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16196export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16197exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16198include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16199prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16200file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16201variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16202need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16203need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16204version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16205runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16206shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16207shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16208libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16209library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16210soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16211install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16212postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16213postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16214finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16215finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16216hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16217sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16218sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16219hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16220enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16221enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16222enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16223old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16224striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16225 16226LTCC='$LTCC' 16227LTCFLAGS='$LTCFLAGS' 16228compiler='$compiler_DEFAULT' 16229 16230# A function that is used when there is no print builtin or printf. 16231func_fallback_echo () 16232{ 16233 eval 'cat <<_LTECHO_EOF 16234\$1 16235_LTECHO_EOF' 16236} 16237 16238# Quote evaled strings. 16239for var in SHELL \ 16240ECHO \ 16241SED \ 16242GREP \ 16243EGREP \ 16244FGREP \ 16245LD \ 16246NM \ 16247LN_S \ 16248lt_SP2NL \ 16249lt_NL2SP \ 16250reload_flag \ 16251OBJDUMP \ 16252deplibs_check_method \ 16253file_magic_cmd \ 16254AR \ 16255AR_FLAGS \ 16256STRIP \ 16257RANLIB \ 16258CC \ 16259CFLAGS \ 16260compiler \ 16261lt_cv_sys_global_symbol_pipe \ 16262lt_cv_sys_global_symbol_to_cdecl \ 16263lt_cv_sys_global_symbol_to_c_name_address \ 16264lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16265lt_prog_compiler_no_builtin_flag \ 16266lt_prog_compiler_wl \ 16267lt_prog_compiler_pic \ 16268lt_prog_compiler_static \ 16269lt_cv_prog_compiler_c_o \ 16270need_locks \ 16271DSYMUTIL \ 16272NMEDIT \ 16273LIPO \ 16274OTOOL \ 16275OTOOL64 \ 16276shrext_cmds \ 16277export_dynamic_flag_spec \ 16278whole_archive_flag_spec \ 16279compiler_needs_object \ 16280with_gnu_ld \ 16281allow_undefined_flag \ 16282no_undefined_flag \ 16283hardcode_libdir_flag_spec \ 16284hardcode_libdir_flag_spec_ld \ 16285hardcode_libdir_separator \ 16286fix_srcfile_path \ 16287exclude_expsyms \ 16288include_expsyms \ 16289file_list_spec \ 16290variables_saved_for_relink \ 16291libname_spec \ 16292library_names_spec \ 16293soname_spec \ 16294install_override_mode \ 16295finish_eval \ 16296old_striplib \ 16297striplib; do 16298 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16299 *[\\\\\\\`\\"\\\$]*) 16300 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16301 ;; 16302 *) 16303 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16304 ;; 16305 esac 16306done 16307 16308# Double-quote double-evaled strings. 16309for var in reload_cmds \ 16310old_postinstall_cmds \ 16311old_postuninstall_cmds \ 16312old_archive_cmds \ 16313extract_expsyms_cmds \ 16314old_archive_from_new_cmds \ 16315old_archive_from_expsyms_cmds \ 16316archive_cmds \ 16317archive_expsym_cmds \ 16318module_cmds \ 16319module_expsym_cmds \ 16320export_symbols_cmds \ 16321prelink_cmds \ 16322postinstall_cmds \ 16323postuninstall_cmds \ 16324finish_cmds \ 16325sys_lib_search_path_spec \ 16326sys_lib_dlsearch_path_spec; do 16327 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16328 *[\\\\\\\`\\"\\\$]*) 16329 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16330 ;; 16331 *) 16332 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16333 ;; 16334 esac 16335done 16336 16337ac_aux_dir='$ac_aux_dir' 16338xsi_shell='$xsi_shell' 16339lt_shell_append='$lt_shell_append' 16340 16341# See if we are running on zsh, and set the options which allow our 16342# commands through without removal of \ escapes INIT. 16343if test -n "\${ZSH_VERSION+set}" ; then 16344 setopt NO_GLOB_SUBST 16345fi 16346 16347 16348 PACKAGE='$PACKAGE' 16349 VERSION='$VERSION' 16350 TIMESTAMP='$TIMESTAMP' 16351 RM='$RM' 16352 ofile='$ofile' 16353 16354 16355 16356# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16357 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 16358 # from automake. 16359 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 16360 # Capture the value of LINGUAS because we need it to compute CATALOGS. 16361 LINGUAS="${LINGUAS-%UNSET%}" 16362 16363 16364 16365_ACEOF 16366 16367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16368 16369# Handling of arguments. 16370for ac_config_target in $ac_config_targets 16371do 16372 case $ac_config_target in 16373 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16374 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16375 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 16376 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16377 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16378 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; 16379 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 16380 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 16381 16382 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16383 esac 16384done 16385 16386 16387# If the user did not use the arguments to specify the items to instantiate, 16388# then the envvar interface is used. Set only those that are not. 16389# We use the long form for the default assignment because of an extremely 16390# bizarre bug on SunOS 4.1.3. 16391if $ac_need_defaults; then 16392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16395fi 16396 16397# Have a temporary directory for convenience. Make it in the build tree 16398# simply because there is no reason against having it here, and in addition, 16399# creating and moving files from /tmp can sometimes cause problems. 16400# Hook for its removal unless debugging. 16401# Note that there is a small window in which the directory will not be cleaned: 16402# after its creation but before its name has been assigned to `$tmp'. 16403$debug || 16404{ 16405 tmp= ac_tmp= 16406 trap 'exit_status=$? 16407 : "${ac_tmp:=$tmp}" 16408 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16409' 0 16410 trap 'as_fn_exit 1' 1 2 13 15 16411} 16412# Create a (secure) tmp directory for tmp files. 16413 16414{ 16415 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16416 test -d "$tmp" 16417} || 16418{ 16419 tmp=./conf$$-$RANDOM 16420 (umask 077 && mkdir "$tmp") 16421} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16422ac_tmp=$tmp 16423 16424# Set up the scripts for CONFIG_FILES section. 16425# No need to generate them if there are no CONFIG_FILES. 16426# This happens for instance with `./config.status config.h'. 16427if test -n "$CONFIG_FILES"; then 16428 16429 16430ac_cr=`echo X | tr X '\015'` 16431# On cygwin, bash can eat \r inside `` if the user requested igncr. 16432# But we know of no other shell where ac_cr would be empty at this 16433# point, so we can use a bashism as a fallback. 16434if test "x$ac_cr" = x; then 16435 eval ac_cr=\$\'\\r\' 16436fi 16437ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16438if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16439 ac_cs_awk_cr='\\r' 16440else 16441 ac_cs_awk_cr=$ac_cr 16442fi 16443 16444echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16445_ACEOF 16446 16447 16448{ 16449 echo "cat >conf$$subs.awk <<_ACEOF" && 16450 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16451 echo "_ACEOF" 16452} >conf$$subs.sh || 16453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16454ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16455ac_delim='%!_!# ' 16456for ac_last_try in false false false false false :; do 16457 . ./conf$$subs.sh || 16458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16459 16460 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16461 if test $ac_delim_n = $ac_delim_num; then 16462 break 16463 elif $ac_last_try; then 16464 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16465 else 16466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16467 fi 16468done 16469rm -f conf$$subs.sh 16470 16471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16472cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16473_ACEOF 16474sed -n ' 16475h 16476s/^/S["/; s/!.*/"]=/ 16477p 16478g 16479s/^[^!]*!// 16480:repl 16481t repl 16482s/'"$ac_delim"'$// 16483t delim 16484:nl 16485h 16486s/\(.\{148\}\)..*/\1/ 16487t more1 16488s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16489p 16490n 16491b repl 16492:more1 16493s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16494p 16495g 16496s/.\{148\}// 16497t nl 16498:delim 16499h 16500s/\(.\{148\}\)..*/\1/ 16501t more2 16502s/["\\]/\\&/g; s/^/"/; s/$/"/ 16503p 16504b 16505:more2 16506s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16507p 16508g 16509s/.\{148\}// 16510t delim 16511' <conf$$subs.awk | sed ' 16512/^[^""]/{ 16513 N 16514 s/\n// 16515} 16516' >>$CONFIG_STATUS || ac_write_fail=1 16517rm -f conf$$subs.awk 16518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16519_ACAWK 16520cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16521 for (key in S) S_is_set[key] = 1 16522 FS = "" 16523 16524} 16525{ 16526 line = $ 0 16527 nfields = split(line, field, "@") 16528 substed = 0 16529 len = length(field[1]) 16530 for (i = 2; i < nfields; i++) { 16531 key = field[i] 16532 keylen = length(key) 16533 if (S_is_set[key]) { 16534 value = S[key] 16535 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16536 len += length(value) + length(field[++i]) 16537 substed = 1 16538 } else 16539 len += 1 + keylen 16540 } 16541 16542 print line 16543} 16544 16545_ACAWK 16546_ACEOF 16547cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16548if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16549 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16550else 16551 cat 16552fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16553 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16554_ACEOF 16555 16556# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16557# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16558# trailing colons and then remove the whole line if VPATH becomes empty 16559# (actually we leave an empty line to preserve line numbers). 16560if test "x$srcdir" = x.; then 16561 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16562h 16563s/// 16564s/^/:/ 16565s/[ ]*$/:/ 16566s/:\$(srcdir):/:/g 16567s/:\${srcdir}:/:/g 16568s/:@srcdir@:/:/g 16569s/^:*// 16570s/:*$// 16571x 16572s/\(=[ ]*\).*/\1/ 16573G 16574s/\n// 16575s/^[^=]*=[ ]*$// 16576}' 16577fi 16578 16579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16580fi # test -n "$CONFIG_FILES" 16581 16582# Set up the scripts for CONFIG_HEADERS section. 16583# No need to generate them if there are no CONFIG_HEADERS. 16584# This happens for instance with `./config.status Makefile'. 16585if test -n "$CONFIG_HEADERS"; then 16586cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16587BEGIN { 16588_ACEOF 16589 16590# Transform confdefs.h into an awk script `defines.awk', embedded as 16591# here-document in config.status, that substitutes the proper values into 16592# config.h.in to produce config.h. 16593 16594# Create a delimiter string that does not exist in confdefs.h, to ease 16595# handling of long lines. 16596ac_delim='%!_!# ' 16597for ac_last_try in false false :; do 16598 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16599 if test -z "$ac_tt"; then 16600 break 16601 elif $ac_last_try; then 16602 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16603 else 16604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16605 fi 16606done 16607 16608# For the awk script, D is an array of macro values keyed by name, 16609# likewise P contains macro parameters if any. Preserve backslash 16610# newline sequences. 16611 16612ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16613sed -n ' 16614s/.\{148\}/&'"$ac_delim"'/g 16615t rset 16616:rset 16617s/^[ ]*#[ ]*define[ ][ ]*/ / 16618t def 16619d 16620:def 16621s/\\$// 16622t bsnl 16623s/["\\]/\\&/g 16624s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16625D["\1"]=" \3"/p 16626s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16627d 16628:bsnl 16629s/["\\]/\\&/g 16630s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16631D["\1"]=" \3\\\\\\n"\\/p 16632t cont 16633s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16634t cont 16635d 16636:cont 16637n 16638s/.\{148\}/&'"$ac_delim"'/g 16639t clear 16640:clear 16641s/\\$// 16642t bsnlc 16643s/["\\]/\\&/g; s/^/"/; s/$/"/p 16644d 16645:bsnlc 16646s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16647b cont 16648' <confdefs.h | sed ' 16649s/'"$ac_delim"'/"\\\ 16650"/g' >>$CONFIG_STATUS || ac_write_fail=1 16651 16652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16653 for (key in D) D_is_set[key] = 1 16654 FS = "" 16655} 16656/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16657 line = \$ 0 16658 split(line, arg, " ") 16659 if (arg[1] == "#") { 16660 defundef = arg[2] 16661 mac1 = arg[3] 16662 } else { 16663 defundef = substr(arg[1], 2) 16664 mac1 = arg[2] 16665 } 16666 split(mac1, mac2, "(") #) 16667 macro = mac2[1] 16668 prefix = substr(line, 1, index(line, defundef) - 1) 16669 if (D_is_set[macro]) { 16670 # Preserve the white space surrounding the "#". 16671 print prefix "define", macro P[macro] D[macro] 16672 next 16673 } else { 16674 # Replace #undef with comments. This is necessary, for example, 16675 # in the case of _POSIX_SOURCE, which is predefined and required 16676 # on some systems where configure will not decide to define it. 16677 if (defundef == "undef") { 16678 print "/*", prefix defundef, macro, "*/" 16679 next 16680 } 16681 } 16682} 16683{ print } 16684_ACAWK 16685_ACEOF 16686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16687 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16688fi # test -n "$CONFIG_HEADERS" 16689 16690 16691eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16692shift 16693for ac_tag 16694do 16695 case $ac_tag in 16696 :[FHLC]) ac_mode=$ac_tag; continue;; 16697 esac 16698 case $ac_mode$ac_tag in 16699 :[FHL]*:*);; 16700 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16701 :[FH]-) ac_tag=-:-;; 16702 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16703 esac 16704 ac_save_IFS=$IFS 16705 IFS=: 16706 set x $ac_tag 16707 IFS=$ac_save_IFS 16708 shift 16709 ac_file=$1 16710 shift 16711 16712 case $ac_mode in 16713 :L) ac_source=$1;; 16714 :[FH]) 16715 ac_file_inputs= 16716 for ac_f 16717 do 16718 case $ac_f in 16719 -) ac_f="$ac_tmp/stdin";; 16720 *) # Look for the file first in the build tree, then in the source tree 16721 # (if the path is not absolute). The absolute path cannot be DOS-style, 16722 # because $ac_f cannot contain `:'. 16723 test -f "$ac_f" || 16724 case $ac_f in 16725 [\\/$]*) false;; 16726 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16727 esac || 16728 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16729 esac 16730 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16731 as_fn_append ac_file_inputs " '$ac_f'" 16732 done 16733 16734 # Let's still pretend it is `configure' which instantiates (i.e., don't 16735 # use $as_me), people would be surprised to read: 16736 # /* config.h. Generated by config.status. */ 16737 configure_input='Generated from '` 16738 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16739 `' by configure.' 16740 if test x"$ac_file" != x-; then 16741 configure_input="$ac_file. $configure_input" 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16743$as_echo "$as_me: creating $ac_file" >&6;} 16744 fi 16745 # Neutralize special characters interpreted by sed in replacement strings. 16746 case $configure_input in #( 16747 *\&* | *\|* | *\\* ) 16748 ac_sed_conf_input=`$as_echo "$configure_input" | 16749 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16750 *) ac_sed_conf_input=$configure_input;; 16751 esac 16752 16753 case $ac_tag in 16754 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16756 esac 16757 ;; 16758 esac 16759 16760 ac_dir=`$as_dirname -- "$ac_file" || 16761$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16762 X"$ac_file" : 'X\(//\)[^/]' \| \ 16763 X"$ac_file" : 'X\(//\)$' \| \ 16764 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16765$as_echo X"$ac_file" | 16766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16767 s//\1/ 16768 q 16769 } 16770 /^X\(\/\/\)[^/].*/{ 16771 s//\1/ 16772 q 16773 } 16774 /^X\(\/\/\)$/{ 16775 s//\1/ 16776 q 16777 } 16778 /^X\(\/\).*/{ 16779 s//\1/ 16780 q 16781 } 16782 s/.*/./; q'` 16783 as_dir="$ac_dir"; as_fn_mkdir_p 16784 ac_builddir=. 16785 16786case "$ac_dir" in 16787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16788*) 16789 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16790 # A ".." for each directory in $ac_dir_suffix. 16791 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16792 case $ac_top_builddir_sub in 16793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16795 esac ;; 16796esac 16797ac_abs_top_builddir=$ac_pwd 16798ac_abs_builddir=$ac_pwd$ac_dir_suffix 16799# for backward compatibility: 16800ac_top_builddir=$ac_top_build_prefix 16801 16802case $srcdir in 16803 .) # We are building in place. 16804 ac_srcdir=. 16805 ac_top_srcdir=$ac_top_builddir_sub 16806 ac_abs_top_srcdir=$ac_pwd ;; 16807 [\\/]* | ?:[\\/]* ) # Absolute name. 16808 ac_srcdir=$srcdir$ac_dir_suffix; 16809 ac_top_srcdir=$srcdir 16810 ac_abs_top_srcdir=$srcdir ;; 16811 *) # Relative name. 16812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16813 ac_top_srcdir=$ac_top_build_prefix$srcdir 16814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16815esac 16816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16817 16818 16819 case $ac_mode in 16820 :F) 16821 # 16822 # CONFIG_FILE 16823 # 16824 16825 case $INSTALL in 16826 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16827 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16828 esac 16829 ac_MKDIR_P=$MKDIR_P 16830 case $MKDIR_P in 16831 [\\/$]* | ?:[\\/]* ) ;; 16832 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16833 esac 16834_ACEOF 16835 16836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16837# If the template does not know about datarootdir, expand it. 16838# FIXME: This hack should be removed a few years after 2.60. 16839ac_datarootdir_hack=; ac_datarootdir_seen= 16840ac_sed_dataroot=' 16841/datarootdir/ { 16842 p 16843 q 16844} 16845/@datadir@/p 16846/@docdir@/p 16847/@infodir@/p 16848/@localedir@/p 16849/@mandir@/p' 16850case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16851*datarootdir*) ac_datarootdir_seen=yes;; 16852*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16854$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16855_ACEOF 16856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16857 ac_datarootdir_hack=' 16858 s&@datadir@&$datadir&g 16859 s&@docdir@&$docdir&g 16860 s&@infodir@&$infodir&g 16861 s&@localedir@&$localedir&g 16862 s&@mandir@&$mandir&g 16863 s&\\\${datarootdir}&$datarootdir&g' ;; 16864esac 16865_ACEOF 16866 16867# Neutralize VPATH when `$srcdir' = `.'. 16868# Shell code in configure.ac might set extrasub. 16869# FIXME: do we really want to maintain this feature? 16870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16871ac_sed_extra="$ac_vpsub 16872$extrasub 16873_ACEOF 16874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16875:t 16876/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16877s|@configure_input@|$ac_sed_conf_input|;t t 16878s&@top_builddir@&$ac_top_builddir_sub&;t t 16879s&@top_build_prefix@&$ac_top_build_prefix&;t t 16880s&@srcdir@&$ac_srcdir&;t t 16881s&@abs_srcdir@&$ac_abs_srcdir&;t t 16882s&@top_srcdir@&$ac_top_srcdir&;t t 16883s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16884s&@builddir@&$ac_builddir&;t t 16885s&@abs_builddir@&$ac_abs_builddir&;t t 16886s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16887s&@INSTALL@&$ac_INSTALL&;t t 16888s&@MKDIR_P@&$ac_MKDIR_P&;t t 16889$ac_datarootdir_hack 16890" 16891eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16892 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16893 16894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16895 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16897 "$ac_tmp/out"`; test -z "$ac_out"; } && 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16899which seems to be undefined. Please make sure it is defined" >&5 16900$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16901which seems to be undefined. Please make sure it is defined" >&2;} 16902 16903 rm -f "$ac_tmp/stdin" 16904 case $ac_file in 16905 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16906 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16907 esac \ 16908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16909 ;; 16910 :H) 16911 # 16912 # CONFIG_HEADER 16913 # 16914 if test x"$ac_file" != x-; then 16915 { 16916 $as_echo "/* $configure_input */" \ 16917 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16918 } >"$ac_tmp/config.h" \ 16919 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16920 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16922$as_echo "$as_me: $ac_file is unchanged" >&6;} 16923 else 16924 rm -f "$ac_file" 16925 mv "$ac_tmp/config.h" "$ac_file" \ 16926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16927 fi 16928 else 16929 $as_echo "/* $configure_input */" \ 16930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16931 || as_fn_error $? "could not create -" "$LINENO" 5 16932 fi 16933# Compute "$ac_file"'s index in $config_headers. 16934_am_arg="$ac_file" 16935_am_stamp_count=1 16936for _am_header in $config_headers :; do 16937 case $_am_header in 16938 $_am_arg | $_am_arg:* ) 16939 break ;; 16940 * ) 16941 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16942 esac 16943done 16944echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16945$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16946 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16947 X"$_am_arg" : 'X\(//\)$' \| \ 16948 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16949$as_echo X"$_am_arg" | 16950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16951 s//\1/ 16952 q 16953 } 16954 /^X\(\/\/\)[^/].*/{ 16955 s//\1/ 16956 q 16957 } 16958 /^X\(\/\/\)$/{ 16959 s//\1/ 16960 q 16961 } 16962 /^X\(\/\).*/{ 16963 s//\1/ 16964 q 16965 } 16966 s/.*/./; q'`/stamp-h$_am_stamp_count 16967 ;; 16968 16969 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16970$as_echo "$as_me: executing $ac_file commands" >&6;} 16971 ;; 16972 esac 16973 16974 16975 case $ac_file$ac_mode in 16976 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16977 # Older Autoconf quotes --file arguments for eval, but not when files 16978 # are listed without --file. Let's play safe and only enable the eval 16979 # if we detect the quoting. 16980 case $CONFIG_FILES in 16981 *\'*) eval set x "$CONFIG_FILES" ;; 16982 *) set x $CONFIG_FILES ;; 16983 esac 16984 shift 16985 for mf 16986 do 16987 # Strip MF so we end up with the name of the file. 16988 mf=`echo "$mf" | sed -e 's/:.*$//'` 16989 # Check whether this is an Automake generated Makefile or not. 16990 # We used to match only the files named 'Makefile.in', but 16991 # some people rename them; so instead we look at the file content. 16992 # Grep'ing the first line is not enough: some people post-process 16993 # each Makefile.in and add a new line on top of each file to say so. 16994 # Grep'ing the whole file is not good either: AIX grep has a line 16995 # limit of 2048, but all sed's we know have understand at least 4000. 16996 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16997 dirpart=`$as_dirname -- "$mf" || 16998$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16999 X"$mf" : 'X\(//\)[^/]' \| \ 17000 X"$mf" : 'X\(//\)$' \| \ 17001 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17002$as_echo X"$mf" | 17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17004 s//\1/ 17005 q 17006 } 17007 /^X\(\/\/\)[^/].*/{ 17008 s//\1/ 17009 q 17010 } 17011 /^X\(\/\/\)$/{ 17012 s//\1/ 17013 q 17014 } 17015 /^X\(\/\).*/{ 17016 s//\1/ 17017 q 17018 } 17019 s/.*/./; q'` 17020 else 17021 continue 17022 fi 17023 # Extract the definition of DEPDIR, am__include, and am__quote 17024 # from the Makefile without running 'make'. 17025 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17026 test -z "$DEPDIR" && continue 17027 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17028 test -z "$am__include" && continue 17029 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17030 # Find all dependency output files, they are included files with 17031 # $(DEPDIR) in their names. We invoke sed twice because it is the 17032 # simplest approach to changing $(DEPDIR) to its actual value in the 17033 # expansion. 17034 for file in `sed -n " 17035 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17036 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17037 # Make sure the directory exists. 17038 test -f "$dirpart/$file" && continue 17039 fdir=`$as_dirname -- "$file" || 17040$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17041 X"$file" : 'X\(//\)[^/]' \| \ 17042 X"$file" : 'X\(//\)$' \| \ 17043 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17044$as_echo X"$file" | 17045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17046 s//\1/ 17047 q 17048 } 17049 /^X\(\/\/\)[^/].*/{ 17050 s//\1/ 17051 q 17052 } 17053 /^X\(\/\/\)$/{ 17054 s//\1/ 17055 q 17056 } 17057 /^X\(\/\).*/{ 17058 s//\1/ 17059 q 17060 } 17061 s/.*/./; q'` 17062 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17063 # echo "creating $dirpart/$file" 17064 echo '# dummy' > "$dirpart/$file" 17065 done 17066 done 17067} 17068 ;; 17069 "libtool":C) 17070 17071 # See if we are running on zsh, and set the options which allow our 17072 # commands through without removal of \ escapes. 17073 if test -n "${ZSH_VERSION+set}" ; then 17074 setopt NO_GLOB_SUBST 17075 fi 17076 17077 cfgfile="${ofile}T" 17078 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17079 $RM "$cfgfile" 17080 17081 cat <<_LT_EOF >> "$cfgfile" 17082#! $SHELL 17083 17084# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17085# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17086# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17087# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17088# 17089# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17090# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17091# Written by Gordon Matzigkeit, 1996 17092# 17093# This file is part of GNU Libtool. 17094# 17095# GNU Libtool is free software; you can redistribute it and/or 17096# modify it under the terms of the GNU General Public License as 17097# published by the Free Software Foundation; either version 2 of 17098# the License, or (at your option) any later version. 17099# 17100# As a special exception to the GNU General Public License, 17101# if you distribute this file as part of a program or library that 17102# is built using GNU Libtool, you may include this file under the 17103# same distribution terms that you use for the rest of that program. 17104# 17105# GNU Libtool is distributed in the hope that it will be useful, 17106# but WITHOUT ANY WARRANTY; without even the implied warranty of 17107# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17108# GNU General Public License for more details. 17109# 17110# You should have received a copy of the GNU General Public License 17111# along with GNU Libtool; see the file COPYING. If not, a copy 17112# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17113# obtained by writing to the Free Software Foundation, Inc., 17114# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17115 17116 17117# The names of the tagged configurations supported by this script. 17118available_tags="" 17119 17120# ### BEGIN LIBTOOL CONFIG 17121 17122# Whether or not to build shared libraries. 17123build_libtool_libs=$enable_shared 17124 17125# Which release of libtool.m4 was used? 17126macro_version=$macro_version 17127macro_revision=$macro_revision 17128 17129# Whether or not to build static libraries. 17130build_old_libs=$enable_static 17131 17132# What type of objects to build. 17133pic_mode=$pic_mode 17134 17135# Whether or not to optimize for fast installation. 17136fast_install=$enable_fast_install 17137 17138# Shell to use when invoking shell scripts. 17139SHELL=$lt_SHELL 17140 17141# An echo program that protects backslashes. 17142ECHO=$lt_ECHO 17143 17144# The host system. 17145host_alias=$host_alias 17146host=$host 17147host_os=$host_os 17148 17149# The build system. 17150build_alias=$build_alias 17151build=$build 17152build_os=$build_os 17153 17154# A sed program that does not truncate output. 17155SED=$lt_SED 17156 17157# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17158Xsed="\$SED -e 1s/^X//" 17159 17160# A grep program that handles long lines. 17161GREP=$lt_GREP 17162 17163# An ERE matcher. 17164EGREP=$lt_EGREP 17165 17166# A literal string matcher. 17167FGREP=$lt_FGREP 17168 17169# A BSD- or MS-compatible name lister. 17170NM=$lt_NM 17171 17172# Whether we need soft or hard links. 17173LN_S=$lt_LN_S 17174 17175# What is the maximum length of a command? 17176max_cmd_len=$max_cmd_len 17177 17178# Object file suffix (normally "o"). 17179objext=$ac_objext 17180 17181# Executable file suffix (normally ""). 17182exeext=$exeext 17183 17184# whether the shell understands "unset". 17185lt_unset=$lt_unset 17186 17187# turn spaces into newlines. 17188SP2NL=$lt_lt_SP2NL 17189 17190# turn newlines into spaces. 17191NL2SP=$lt_lt_NL2SP 17192 17193# An object symbol dumper. 17194OBJDUMP=$lt_OBJDUMP 17195 17196# Method to check whether dependent libraries are shared objects. 17197deplibs_check_method=$lt_deplibs_check_method 17198 17199# Command to use when deplibs_check_method == "file_magic". 17200file_magic_cmd=$lt_file_magic_cmd 17201 17202# The archiver. 17203AR=$lt_AR 17204AR_FLAGS=$lt_AR_FLAGS 17205 17206# A symbol stripping program. 17207STRIP=$lt_STRIP 17208 17209# Commands used to install an old-style archive. 17210RANLIB=$lt_RANLIB 17211old_postinstall_cmds=$lt_old_postinstall_cmds 17212old_postuninstall_cmds=$lt_old_postuninstall_cmds 17213 17214# Whether to use a lock for old archive extraction. 17215lock_old_archive_extraction=$lock_old_archive_extraction 17216 17217# A C compiler. 17218LTCC=$lt_CC 17219 17220# LTCC compiler flags. 17221LTCFLAGS=$lt_CFLAGS 17222 17223# Take the output of nm and produce a listing of raw symbols and C names. 17224global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17225 17226# Transform the output of nm in a proper C declaration. 17227global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17228 17229# Transform the output of nm in a C name address pair. 17230global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17231 17232# Transform the output of nm in a C name address pair when lib prefix is needed. 17233global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17234 17235# The name of the directory that contains temporary libtool files. 17236objdir=$objdir 17237 17238# Used to examine libraries when file_magic_cmd begins with "file". 17239MAGIC_CMD=$MAGIC_CMD 17240 17241# Must we lock files when doing compilation? 17242need_locks=$lt_need_locks 17243 17244# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17245DSYMUTIL=$lt_DSYMUTIL 17246 17247# Tool to change global to local symbols on Mac OS X. 17248NMEDIT=$lt_NMEDIT 17249 17250# Tool to manipulate fat objects and archives on Mac OS X. 17251LIPO=$lt_LIPO 17252 17253# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17254OTOOL=$lt_OTOOL 17255 17256# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17257OTOOL64=$lt_OTOOL64 17258 17259# Old archive suffix (normally "a"). 17260libext=$libext 17261 17262# Shared library suffix (normally ".so"). 17263shrext_cmds=$lt_shrext_cmds 17264 17265# The commands to extract the exported symbol list from a shared archive. 17266extract_expsyms_cmds=$lt_extract_expsyms_cmds 17267 17268# Variables whose values should be saved in libtool wrapper scripts and 17269# restored at link time. 17270variables_saved_for_relink=$lt_variables_saved_for_relink 17271 17272# Do we need the "lib" prefix for modules? 17273need_lib_prefix=$need_lib_prefix 17274 17275# Do we need a version for libraries? 17276need_version=$need_version 17277 17278# Library versioning type. 17279version_type=$version_type 17280 17281# Shared library runtime path variable. 17282runpath_var=$runpath_var 17283 17284# Shared library path variable. 17285shlibpath_var=$shlibpath_var 17286 17287# Is shlibpath searched before the hard-coded library search path? 17288shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17289 17290# Format of library name prefix. 17291libname_spec=$lt_libname_spec 17292 17293# List of archive names. First name is the real one, the rest are links. 17294# The last name is the one that the linker finds with -lNAME 17295library_names_spec=$lt_library_names_spec 17296 17297# The coded name of the library, if different from the real name. 17298soname_spec=$lt_soname_spec 17299 17300# Permission mode override for installation of shared libraries. 17301install_override_mode=$lt_install_override_mode 17302 17303# Command to use after installation of a shared archive. 17304postinstall_cmds=$lt_postinstall_cmds 17305 17306# Command to use after uninstallation of a shared archive. 17307postuninstall_cmds=$lt_postuninstall_cmds 17308 17309# Commands used to finish a libtool library installation in a directory. 17310finish_cmds=$lt_finish_cmds 17311 17312# As "finish_cmds", except a single script fragment to be evaled but 17313# not shown. 17314finish_eval=$lt_finish_eval 17315 17316# Whether we should hardcode library paths into libraries. 17317hardcode_into_libs=$hardcode_into_libs 17318 17319# Compile-time system search path for libraries. 17320sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17321 17322# Run-time system search path for libraries. 17323sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17324 17325# Whether dlopen is supported. 17326dlopen_support=$enable_dlopen 17327 17328# Whether dlopen of programs is supported. 17329dlopen_self=$enable_dlopen_self 17330 17331# Whether dlopen of statically linked programs is supported. 17332dlopen_self_static=$enable_dlopen_self_static 17333 17334# Commands to strip libraries. 17335old_striplib=$lt_old_striplib 17336striplib=$lt_striplib 17337 17338 17339# The linker used to build libraries. 17340LD=$lt_LD 17341 17342# How to create reloadable object files. 17343reload_flag=$lt_reload_flag 17344reload_cmds=$lt_reload_cmds 17345 17346# Commands used to build an old-style archive. 17347old_archive_cmds=$lt_old_archive_cmds 17348 17349# A language specific compiler. 17350CC=$lt_compiler 17351 17352# Is the compiler the GNU compiler? 17353with_gcc=$GCC 17354 17355# Compiler flag to turn off builtin functions. 17356no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17357 17358# How to pass a linker flag through the compiler. 17359wl=$lt_lt_prog_compiler_wl 17360 17361# Additional compiler flags for building library objects. 17362pic_flag=$lt_lt_prog_compiler_pic 17363 17364# Compiler flag to prevent dynamic linking. 17365link_static_flag=$lt_lt_prog_compiler_static 17366 17367# Does compiler simultaneously support -c and -o options? 17368compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17369 17370# Whether or not to add -lc for building shared libraries. 17371build_libtool_need_lc=$archive_cmds_need_lc 17372 17373# Whether or not to disallow shared libs when runtime libs are static. 17374allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17375 17376# Compiler flag to allow reflexive dlopens. 17377export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17378 17379# Compiler flag to generate shared objects directly from archives. 17380whole_archive_flag_spec=$lt_whole_archive_flag_spec 17381 17382# Whether the compiler copes with passing no objects directly. 17383compiler_needs_object=$lt_compiler_needs_object 17384 17385# Create an old-style archive from a shared archive. 17386old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17387 17388# Create a temporary old-style archive to link instead of a shared archive. 17389old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17390 17391# Commands used to build a shared archive. 17392archive_cmds=$lt_archive_cmds 17393archive_expsym_cmds=$lt_archive_expsym_cmds 17394 17395# Commands used to build a loadable module if different from building 17396# a shared archive. 17397module_cmds=$lt_module_cmds 17398module_expsym_cmds=$lt_module_expsym_cmds 17399 17400# Whether we are building with GNU ld or not. 17401with_gnu_ld=$lt_with_gnu_ld 17402 17403# Flag that allows shared libraries with undefined symbols to be built. 17404allow_undefined_flag=$lt_allow_undefined_flag 17405 17406# Flag that enforces no undefined symbols. 17407no_undefined_flag=$lt_no_undefined_flag 17408 17409# Flag to hardcode \$libdir into a binary during linking. 17410# This must work even if \$libdir does not exist 17411hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17412 17413# If ld is used when linking, flag to hardcode \$libdir into a binary 17414# during linking. This must work even if \$libdir does not exist. 17415hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17416 17417# Whether we need a single "-rpath" flag with a separated argument. 17418hardcode_libdir_separator=$lt_hardcode_libdir_separator 17419 17420# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17421# DIR into the resulting binary. 17422hardcode_direct=$hardcode_direct 17423 17424# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17425# DIR into the resulting binary and the resulting library dependency is 17426# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17427# library is relocated. 17428hardcode_direct_absolute=$hardcode_direct_absolute 17429 17430# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17431# into the resulting binary. 17432hardcode_minus_L=$hardcode_minus_L 17433 17434# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17435# into the resulting binary. 17436hardcode_shlibpath_var=$hardcode_shlibpath_var 17437 17438# Set to "yes" if building a shared library automatically hardcodes DIR 17439# into the library and all subsequent libraries and executables linked 17440# against it. 17441hardcode_automatic=$hardcode_automatic 17442 17443# Set to yes if linker adds runtime paths of dependent libraries 17444# to runtime path list. 17445inherit_rpath=$inherit_rpath 17446 17447# Whether libtool must link a program against all its dependency libraries. 17448link_all_deplibs=$link_all_deplibs 17449 17450# Fix the shell variable \$srcfile for the compiler. 17451fix_srcfile_path=$lt_fix_srcfile_path 17452 17453# Set to "yes" if exported symbols are required. 17454always_export_symbols=$always_export_symbols 17455 17456# The commands to list exported symbols. 17457export_symbols_cmds=$lt_export_symbols_cmds 17458 17459# Symbols that should not be listed in the preloaded symbols. 17460exclude_expsyms=$lt_exclude_expsyms 17461 17462# Symbols that must always be exported. 17463include_expsyms=$lt_include_expsyms 17464 17465# Commands necessary for linking programs (against libraries) with templates. 17466prelink_cmds=$lt_prelink_cmds 17467 17468# Specify filename containing input files. 17469file_list_spec=$lt_file_list_spec 17470 17471# How to hardcode a shared library path into an executable. 17472hardcode_action=$hardcode_action 17473 17474# ### END LIBTOOL CONFIG 17475 17476_LT_EOF 17477 17478 case $host_os in 17479 aix3*) 17480 cat <<\_LT_EOF >> "$cfgfile" 17481# AIX sometimes has problems with the GCC collect2 program. For some 17482# reason, if we set the COLLECT_NAMES environment variable, the problems 17483# vanish in a puff of smoke. 17484if test "X${COLLECT_NAMES+set}" != Xset; then 17485 COLLECT_NAMES= 17486 export COLLECT_NAMES 17487fi 17488_LT_EOF 17489 ;; 17490 esac 17491 17492 17493ltmain="$ac_aux_dir/ltmain.sh" 17494 17495 17496 # We use sed instead of cat because bash on DJGPP gets confused if 17497 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17498 # text mode, it properly converts lines to CR/LF. This bash problem 17499 # is reportedly fixed, but why not run on old versions too? 17500 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17501 || (rm -f "$cfgfile"; exit 1) 17502 17503 case $xsi_shell in 17504 yes) 17505 cat << \_LT_EOF >> "$cfgfile" 17506 17507# func_dirname file append nondir_replacement 17508# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17509# otherwise set result to NONDIR_REPLACEMENT. 17510func_dirname () 17511{ 17512 case ${1} in 17513 */*) func_dirname_result="${1%/*}${2}" ;; 17514 * ) func_dirname_result="${3}" ;; 17515 esac 17516} 17517 17518# func_basename file 17519func_basename () 17520{ 17521 func_basename_result="${1##*/}" 17522} 17523 17524# func_dirname_and_basename file append nondir_replacement 17525# perform func_basename and func_dirname in a single function 17526# call: 17527# dirname: Compute the dirname of FILE. If nonempty, 17528# add APPEND to the result, otherwise set result 17529# to NONDIR_REPLACEMENT. 17530# value returned in "$func_dirname_result" 17531# basename: Compute filename of FILE. 17532# value retuned in "$func_basename_result" 17533# Implementation must be kept synchronized with func_dirname 17534# and func_basename. For efficiency, we do not delegate to 17535# those functions but instead duplicate the functionality here. 17536func_dirname_and_basename () 17537{ 17538 case ${1} in 17539 */*) func_dirname_result="${1%/*}${2}" ;; 17540 * ) func_dirname_result="${3}" ;; 17541 esac 17542 func_basename_result="${1##*/}" 17543} 17544 17545# func_stripname prefix suffix name 17546# strip PREFIX and SUFFIX off of NAME. 17547# PREFIX and SUFFIX must not contain globbing or regex special 17548# characters, hashes, percent signs, but SUFFIX may contain a leading 17549# dot (in which case that matches only a dot). 17550func_stripname () 17551{ 17552 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17553 # positional parameters, so assign one to ordinary parameter first. 17554 func_stripname_result=${3} 17555 func_stripname_result=${func_stripname_result#"${1}"} 17556 func_stripname_result=${func_stripname_result%"${2}"} 17557} 17558 17559# func_opt_split 17560func_opt_split () 17561{ 17562 func_opt_split_opt=${1%%=*} 17563 func_opt_split_arg=${1#*=} 17564} 17565 17566# func_lo2o object 17567func_lo2o () 17568{ 17569 case ${1} in 17570 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17571 *) func_lo2o_result=${1} ;; 17572 esac 17573} 17574 17575# func_xform libobj-or-source 17576func_xform () 17577{ 17578 func_xform_result=${1%.*}.lo 17579} 17580 17581# func_arith arithmetic-term... 17582func_arith () 17583{ 17584 func_arith_result=$(( $* )) 17585} 17586 17587# func_len string 17588# STRING may not start with a hyphen. 17589func_len () 17590{ 17591 func_len_result=${#1} 17592} 17593 17594_LT_EOF 17595 ;; 17596 *) # Bourne compatible functions. 17597 cat << \_LT_EOF >> "$cfgfile" 17598 17599# func_dirname file append nondir_replacement 17600# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17601# otherwise set result to NONDIR_REPLACEMENT. 17602func_dirname () 17603{ 17604 # Extract subdirectory from the argument. 17605 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17606 if test "X$func_dirname_result" = "X${1}"; then 17607 func_dirname_result="${3}" 17608 else 17609 func_dirname_result="$func_dirname_result${2}" 17610 fi 17611} 17612 17613# func_basename file 17614func_basename () 17615{ 17616 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17617} 17618 17619 17620# func_stripname prefix suffix name 17621# strip PREFIX and SUFFIX off of NAME. 17622# PREFIX and SUFFIX must not contain globbing or regex special 17623# characters, hashes, percent signs, but SUFFIX may contain a leading 17624# dot (in which case that matches only a dot). 17625# func_strip_suffix prefix name 17626func_stripname () 17627{ 17628 case ${2} in 17629 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17630 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17631 esac 17632} 17633 17634# sed scripts: 17635my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17636my_sed_long_arg='1s/^-[^=]*=//' 17637 17638# func_opt_split 17639func_opt_split () 17640{ 17641 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17642 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17643} 17644 17645# func_lo2o object 17646func_lo2o () 17647{ 17648 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17649} 17650 17651# func_xform libobj-or-source 17652func_xform () 17653{ 17654 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17655} 17656 17657# func_arith arithmetic-term... 17658func_arith () 17659{ 17660 func_arith_result=`expr "$@"` 17661} 17662 17663# func_len string 17664# STRING may not start with a hyphen. 17665func_len () 17666{ 17667 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17668} 17669 17670_LT_EOF 17671esac 17672 17673case $lt_shell_append in 17674 yes) 17675 cat << \_LT_EOF >> "$cfgfile" 17676 17677# func_append var value 17678# Append VALUE to the end of shell variable VAR. 17679func_append () 17680{ 17681 eval "$1+=\$2" 17682} 17683_LT_EOF 17684 ;; 17685 *) 17686 cat << \_LT_EOF >> "$cfgfile" 17687 17688# func_append var value 17689# Append VALUE to the end of shell variable VAR. 17690func_append () 17691{ 17692 eval "$1=\$$1\$2" 17693} 17694 17695_LT_EOF 17696 ;; 17697 esac 17698 17699 17700 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17701 || (rm -f "$cfgfile"; exit 1) 17702 17703 mv -f "$cfgfile" "$ofile" || 17704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17705 chmod +x "$ofile" 17706 17707 ;; 17708 "default-1":C) 17709 for ac_file in $CONFIG_FILES; do 17710 # Support "outfile[:infile[:infile...]]" 17711 case "$ac_file" in 17712 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17713 esac 17714 # PO directories have a Makefile.in generated from Makefile.in.in. 17715 case "$ac_file" in */Makefile.in) 17716 # Adjust a relative srcdir. 17717 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 17718 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 17719 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 17720 # In autoconf-2.13 it is called $ac_given_srcdir. 17721 # In autoconf-2.50 it is called $srcdir. 17722 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 17723 case "$ac_given_srcdir" in 17724 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 17725 /*) top_srcdir="$ac_given_srcdir" ;; 17726 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 17727 esac 17728 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 17729 rm -f "$ac_dir/POTFILES" 17730 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 17731 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 17732 POMAKEFILEDEPS="POTFILES.in" 17733 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 17734 # on $ac_dir but don't depend on user-specified configuration 17735 # parameters. 17736 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 17737 # The LINGUAS file contains the set of available languages. 17738 if test -n "$OBSOLETE_ALL_LINGUAS"; then 17739 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 17740 fi 17741 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 17742 # Hide the ALL_LINGUAS assigment from automake. 17743 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 17744 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 17745 else 17746 # The set of available languages was given in configure.ac. 17747 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 17748 fi 17749 case "$ac_given_srcdir" in 17750 .) srcdirpre= ;; 17751 *) srcdirpre='$(srcdir)/' ;; 17752 esac 17753 POFILES= 17754 GMOFILES= 17755 UPDATEPOFILES= 17756 DUMMYPOFILES= 17757 for lang in $ALL_LINGUAS; do 17758 POFILES="$POFILES $srcdirpre$lang.po" 17759 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17760 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17761 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17762 done 17763 # CATALOGS depends on both $ac_dir and the user's LINGUAS 17764 # environment variable. 17765 INST_LINGUAS= 17766 if test -n "$ALL_LINGUAS"; then 17767 for presentlang in $ALL_LINGUAS; do 17768 useit=no 17769 if test "%UNSET%" != "$LINGUAS"; then 17770 desiredlanguages="$LINGUAS" 17771 else 17772 desiredlanguages="$ALL_LINGUAS" 17773 fi 17774 for desiredlang in $desiredlanguages; do 17775 # Use the presentlang catalog if desiredlang is 17776 # a. equal to presentlang, or 17777 # b. a variant of presentlang (because in this case, 17778 # presentlang can be used as a fallback for messages 17779 # which are not translated in the desiredlang catalog). 17780 case "$desiredlang" in 17781 "$presentlang"*) useit=yes;; 17782 esac 17783 done 17784 if test $useit = yes; then 17785 INST_LINGUAS="$INST_LINGUAS $presentlang" 17786 fi 17787 done 17788 fi 17789 CATALOGS= 17790 if test -n "$INST_LINGUAS"; then 17791 for lang in $INST_LINGUAS; do 17792 CATALOGS="$CATALOGS $lang.gmo" 17793 done 17794 fi 17795 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 17796 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" 17797 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 17798 if test -f "$f"; then 17799 case "$f" in 17800 *.orig | *.bak | *~) ;; 17801 *) cat "$f" >> "$ac_dir/Makefile" ;; 17802 esac 17803 fi 17804 done 17805 fi 17806 ;; 17807 esac 17808 done ;; 17809 "default":C) 17810case "$srcdir" in 17811 .) srcdirpre= ;; 17812 *) srcdirpre='$(srcdir)/' ;; 17813esac 17814POFILES= 17815GMOFILES= 17816for lang in dummy $OBSOLETE_ALL_LINGUAS; do 17817 if test $lang != dummy; then 17818 POFILES="$POFILES $srcdirpre$lang.po" 17819 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17820 fi 17821done 17822sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ 17823 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ 17824 -e "s,@POFILES@,$POFILES," \ 17825 -e "s,@GMOFILES@,$GMOFILES," \ 17826 po/Makefile.in > po/Makefile ;; 17827 17828 esac 17829done # for ac_tag 17830 17831 17832as_fn_exit 0 17833_ACEOF 17834ac_clean_files=$ac_clean_files_save 17835 17836test $ac_write_fail = 0 || 17837 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17838 17839 17840# configure is writing to config.log, and then calls config.status. 17841# config.status does its own redirection, appending to config.log. 17842# Unfortunately, on DOS this fails, as config.log is still kept open 17843# by configure, so config.status won't be able to write to it; its 17844# output is simply discarded. So we exec the FD to /dev/null, 17845# effectively closing config.log, so it can be properly (re)opened and 17846# appended to by config.status. When coming back to configure, we 17847# need to make the FD available again. 17848if test "$no_create" != yes; then 17849 ac_cs_success=: 17850 ac_config_status_args= 17851 test "$silent" = yes && 17852 ac_config_status_args="$ac_config_status_args --quiet" 17853 exec 5>/dev/null 17854 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17855 exec 5>>config.log 17856 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17857 # would make configure fail if this is the last instruction. 17858 $ac_cs_success || as_fn_exit 1 17859fi 17860if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17862$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17863fi 17864 17865 17866 17867touch config.status.tmp 17868if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 17869 sed '/as_fn_exit 0/i \ 17870sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 17871touch --reference=Makefile Makefile.tmp \ 17872mv Makefile.tmp Makefile \ 17873' config.status > config.status.tmp 17874 touch --reference=config.status config.status.tmp 17875 mv config.status.tmp config.status 17876 chmod +x config.status 17877 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 17878 touch --reference=Makefile Makefile.tmp 17879 mv Makefile.tmp Makefile 17880else 17881 rm -f config.status.tmp 17882fi 17883