1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for binutils 2.34. 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 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='binutils' 589PACKAGE_TARNAME='binutils' 590PACKAGE_VERSION='2.34' 591PACKAGE_STRING='binutils 2.34' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="ar.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637EMULATION_VECTOR 638EMULATION 639OBJDUMP_PRIVATE_OFILES 640OBJDUMP_DEFS 641BUILD_INSTALL_MISC 642BUILD_MISC 643BUILD_DLLWRAP 644BUILD_WINDMC 645BUILD_WINDRES 646DLLTOOL_DEFS 647BUILD_DLLTOOL 648BUILD_SRCONV 649LTLIBICONV 650LIBICONV 651zlibinc 652zlibdir 653ALLOCA 654DEMANGLER_NAME 655EXEEXT_FOR_BUILD 656CC_FOR_BUILD 657HDEFINES 658GENINSRC_NEVER_FALSE 659GENINSRC_NEVER_TRUE 660MAINT 661MAINTAINER_MODE_FALSE 662MAINTAINER_MODE_TRUE 663MSGMERGE 664MSGFMT 665MKINSTALLDIRS 666CATOBJEXT 667GENCAT 668INSTOBJEXT 669DATADIRNAME 670CATALOGS 671POSUB 672GMSGFMT 673XGETTEXT 674INCINTL 675LIBINTL_DEP 676LIBINTL 677USE_NLS 678LEXLIB 679LEX_OUTPUT_ROOT 680LEX 681YFLAGS 682YACC 683WARN_WRITE_STRINGS 684NO_WERROR 685WARN_CFLAGS_FOR_BUILD 686WARN_CFLAGS 687LIBDEBUGINFOD 688OTOOL64 689OTOOL 690LIPO 691NMEDIT 692DSYMUTIL 693RANLIB 694AR 695OBJDUMP 696LN_S 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702SED 703LIBTOOL 704EGREP 705GREP 706CPP 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711am__fastdepCC_FALSE 712am__fastdepCC_TRUE 713CCDEPMODE 714am__nodep 715AMDEPBACKSLASH 716AMDEP_FALSE 717AMDEP_TRUE 718am__quote 719am__include 720DEPDIR 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744OBJEXT 745EXEEXT 746ac_ct_CC 747CPPFLAGS 748LDFLAGS 749CFLAGS 750CC 751target_os 752target_vendor 753target_cpu 754target 755host_os 756host_vendor 757host_cpu 758host 759build_os 760build_vendor 761build_cpu 762build 763target_alias 764host_alias 765build_alias 766LIBS 767ECHO_T 768ECHO_N 769ECHO_C 770DEFS 771mandir 772localedir 773libdir 774psdir 775pdfdir 776dvidir 777htmldir 778infodir 779docdir 780oldincludedir 781includedir 782localstatedir 783sharedstatedir 784sysconfdir 785datadir 786datarootdir 787libexecdir 788sbindir 789bindir 790program_transform_name 791prefix 792exec_prefix 793PACKAGE_URL 794PACKAGE_BUGREPORT 795PACKAGE_STRING 796PACKAGE_VERSION 797PACKAGE_TARNAME 798PACKAGE_NAME 799PATH_SEPARATOR 800SHELL' 801ac_subst_files='' 802ac_user_opts=' 803enable_option_checking 804enable_dependency_tracking 805enable_silent_rules 806enable_shared 807enable_static 808with_pic 809enable_fast_install 810with_gnu_ld 811enable_libtool_lock 812enable_plugins 813enable_largefile 814enable_targets 815enable_deterministic_archives 816enable_default_strings_all 817with_debuginfod 818enable_werror 819enable_build_warnings 820enable_nls 821enable_maintainer_mode 822with_system_zlib 823enable_rpath 824with_libiconv_prefix 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834CPP 835YACC 836YFLAGS' 837 838 839# Initialize some variables set by options. 840ac_init_help= 841ac_init_version=false 842ac_unrecognized_opts= 843ac_unrecognized_sep= 844# The variables have the same names as the options, with 845# dashes changed to underlines. 846cache_file=/dev/null 847exec_prefix=NONE 848no_create= 849no_recursion= 850prefix=NONE 851program_prefix=NONE 852program_suffix=NONE 853program_transform_name=s,x,x, 854silent= 855site= 856srcdir= 857verbose= 858x_includes=NONE 859x_libraries=NONE 860 861# Installation directory options. 862# These are left unexpanded so users can "make install exec_prefix=/foo" 863# and all the variables that are supposed to be based on exec_prefix 864# by default will actually change. 865# Use braces instead of parens because sh, perl, etc. also accept them. 866# (The list follows the same order as the GNU Coding Standards.) 867bindir='${exec_prefix}/bin' 868sbindir='${exec_prefix}/sbin' 869libexecdir='${exec_prefix}/libexec' 870datarootdir='${prefix}/share' 871datadir='${datarootdir}' 872sysconfdir='${prefix}/etc' 873sharedstatedir='${prefix}/com' 874localstatedir='${prefix}/var' 875includedir='${prefix}/include' 876oldincludedir='/usr/include' 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 878infodir='${datarootdir}/info' 879htmldir='${docdir}' 880dvidir='${docdir}' 881pdfdir='${docdir}' 882psdir='${docdir}' 883libdir='${exec_prefix}/lib' 884localedir='${datarootdir}/locale' 885mandir='${datarootdir}/man' 886 887ac_prev= 888ac_dashdash= 889for ac_option 890do 891 # If the previous option needs an argument, assign it. 892 if test -n "$ac_prev"; then 893 eval $ac_prev=\$ac_option 894 ac_prev= 895 continue 896 fi 897 898 case $ac_option in 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 900 *=) ac_optarg= ;; 901 *) ac_optarg=yes ;; 902 esac 903 904 # Accept the important Cygnus configure options, so we can diagnose typos. 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures binutils 2.34 to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442 --target=TARGET configure for building compilers for TARGET [HOST] 1443_ACEOF 1444fi 1445 1446if test -n "$ac_init_help"; then 1447 case $ac_init_help in 1448 short | recursive ) echo "Configuration of binutils 2.34:";; 1449 esac 1450 cat <<\_ACEOF 1451 1452Optional Features: 1453 --disable-option-checking ignore unrecognized --enable/--with options 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1456 --enable-dependency-tracking 1457 do not reject slow dependency extractors 1458 --disable-dependency-tracking 1459 speeds up one-time build 1460 --enable-silent-rules less verbose build output (undo: "make V=1") 1461 --disable-silent-rules verbose build output (undo: "make V=0") 1462 --enable-shared[=PKGS] build shared libraries [default=yes] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --enable-plugins Enable support for plugins 1468 --disable-largefile omit support for large files 1469 --enable-targets alternative target configurations 1470 --enable-deterministic-archives 1471 ar and ranlib default to -D behavior 1472 --disable-default-strings-all 1473 strings defaults to --data behavior 1474 --enable-werror treat compile warnings as errors 1475 --enable-build-warnings enable build-time compiler warnings 1476 --disable-nls do not use Native Language Support 1477 --enable-maintainer-mode 1478 enable make rules and dependencies not useful (and 1479 sometimes confusing) to the casual installer 1480 --disable-rpath do not hardcode runtime library paths 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-pic try to use only PIC/non-PIC objects [default=use 1486 both] 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-debuginfod Enable debuginfo lookups with debuginfod 1489 (auto/yes/no) 1490 --with-system-zlib use installed libz 1491 --with-gnu-ld assume the C compiler uses GNU ld default=no 1492 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1493 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1494 1495Some influential environment variables: 1496 CC C compiler command 1497 CFLAGS C compiler flags 1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1499 nonstandard directory <lib dir> 1500 LIBS libraries to pass to the linker, e.g. -l<library> 1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1502 you have headers in a nonstandard directory <include dir> 1503 CPP C preprocessor 1504 YACC The `Yet Another Compiler Compiler' implementation to use. 1505 Defaults to the first program found out of: `bison -y', `byacc', 1506 `yacc'. 1507 YFLAGS The list of arguments that will be passed by default to $YACC. 1508 This script will default YFLAGS to the empty string to avoid a 1509 default value of `-d' given by some make applications. 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514Report bugs to the package provider. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577binutils configure 2.34 1578generated by GNU Autoconf 2.69 1579 1580Copyright (C) 2012 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583_ACEOF 1584 exit 1585fi 1586 1587## ------------------------ ## 1588## Autoconf initialization. ## 1589## ------------------------ ## 1590 1591# ac_fn_c_try_compile LINENO 1592# -------------------------- 1593# Try to compile conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_compile () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 rm -f conftest.$ac_objext 1598 if { { ac_try="$ac_compile" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_compile") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } && { 1614 test -z "$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 } && test -s conftest.$ac_objext; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_compile 1628 1629# ac_fn_c_try_link LINENO 1630# ----------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. 1632ac_fn_c_try_link () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 rm -f conftest.$ac_objext conftest$ac_exeext 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { 1652 test -z "$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 } && test -s conftest$ac_exeext && { 1655 test "$cross_compiling" = yes || 1656 test -x conftest$ac_exeext 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1667 # interfere with the next link command; also delete a directory that is 1668 # left behind by Apple's compiler. We do this before executing the actions. 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_link 1674 1675# ac_fn_c_try_cpp LINENO 1676# ---------------------- 1677# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1678ac_fn_c_try_cpp () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_cpp conftest.$ac_ext" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } > conftest.i && { 1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_cpp 1711 1712# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1715# the include files in INCLUDES and setting the cache variable VAR 1716# accordingly. 1717ac_fn_c_check_header_mongrel () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if eval \${$3+:} false; then : 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722$as_echo_n "checking for $2... " >&6; } 1723if eval \${$3+:} false; then : 1724 $as_echo_n "(cached) " >&6 1725fi 1726eval ac_res=\$$3 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1728$as_echo "$ac_res" >&6; } 1729else 1730 # Is the header compilable? 1731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1732$as_echo_n "checking $2 usability... " >&6; } 1733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735$4 1736#include <$2> 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO"; then : 1739 ac_header_compiler=yes 1740else 1741 ac_header_compiler=no 1742fi 1743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1745$as_echo "$ac_header_compiler" >&6; } 1746 1747# Is the header present? 1748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1749$as_echo_n "checking $2 presence... " >&6; } 1750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1751/* end confdefs.h. */ 1752#include <$2> 1753_ACEOF 1754if ac_fn_c_try_cpp "$LINENO"; then : 1755 ac_header_preproc=yes 1756else 1757 ac_header_preproc=no 1758fi 1759rm -f conftest.err conftest.i conftest.$ac_ext 1760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1761$as_echo "$ac_header_preproc" >&6; } 1762 1763# So? What about this header? 1764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1765 yes:no: ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1767$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1769$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1770 ;; 1771 no:yes:* ) 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1773$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1775$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1777$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1779$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1781$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1782 ;; 1783esac 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1785$as_echo_n "checking for $2... " >&6; } 1786if eval \${$3+:} false; then : 1787 $as_echo_n "(cached) " >&6 1788else 1789 eval "$3=\$ac_header_compiler" 1790fi 1791eval ac_res=\$$3 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793$as_echo "$ac_res" >&6; } 1794fi 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_header_mongrel 1798 1799# ac_fn_c_try_run LINENO 1800# ---------------------- 1801# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1802# that executables *can* be run. 1803ac_fn_c_try_run () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 if { { ac_try="$ac_link" 1807case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_link") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1817 { { case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_try") 2>&5 1824 ac_status=$? 1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1826 test $ac_status = 0; }; }; then : 1827 ac_retval=0 1828else 1829 $as_echo "$as_me: program exited with status $ac_status" >&5 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=$ac_status 1834fi 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_c_try_run 1840 1841# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1842# ------------------------------------------------------- 1843# Tests whether HEADER exists and can be compiled using the include files in 1844# INCLUDES, setting the cache variable VAR accordingly. 1845ac_fn_c_check_header_compile () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1849$as_echo_n "checking for $2... " >&6; } 1850if eval \${$3+:} false; then : 1851 $as_echo_n "(cached) " >&6 1852else 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854/* end confdefs.h. */ 1855$4 1856#include <$2> 1857_ACEOF 1858if ac_fn_c_try_compile "$LINENO"; then : 1859 eval "$3=yes" 1860else 1861 eval "$3=no" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865eval ac_res=\$$3 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1867$as_echo "$ac_res" >&6; } 1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1869 1870} # ac_fn_c_check_header_compile 1871 1872# ac_fn_c_check_func LINENO FUNC VAR 1873# ---------------------------------- 1874# Tests whether FUNC exists, setting the cache variable VAR accordingly 1875ac_fn_c_check_func () 1876{ 1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1879$as_echo_n "checking for $2... " >&6; } 1880if eval \${$3+:} false; then : 1881 $as_echo_n "(cached) " >&6 1882else 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1887#define $2 innocuous_$2 1888 1889/* System header to define __stub macros and hopefully few prototypes, 1890 which can conflict with char $2 (); below. 1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1892 <limits.h> exists even on freestanding compilers. */ 1893 1894#ifdef __STDC__ 1895# include <limits.h> 1896#else 1897# include <assert.h> 1898#endif 1899 1900#undef $2 1901 1902/* Override any GCC internal prototype to avoid an error. 1903 Use char because int might match the return type of a GCC 1904 builtin and then its argument prototype would still apply. */ 1905#ifdef __cplusplus 1906extern "C" 1907#endif 1908char $2 (); 1909/* The GNU C library defines this for functions which it implements 1910 to always fail with ENOSYS. Some functions are actually named 1911 something starting with __ and the normal name is an alias. */ 1912#if defined __stub_$2 || defined __stub___$2 1913choke me 1914#endif 1915 1916int 1917main () 1918{ 1919return $2 (); 1920 ; 1921 return 0; 1922} 1923_ACEOF 1924if ac_fn_c_try_link "$LINENO"; then : 1925 eval "$3=yes" 1926else 1927 eval "$3=no" 1928fi 1929rm -f core conftest.err conftest.$ac_objext \ 1930 conftest$ac_exeext conftest.$ac_ext 1931fi 1932eval ac_res=\$$3 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1934$as_echo "$ac_res" >&6; } 1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1936 1937} # ac_fn_c_check_func 1938 1939# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1940# --------------------------------------------- 1941# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1942# accordingly. 1943ac_fn_c_check_decl () 1944{ 1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1946 as_decl_name=`echo $2|sed 's/ *(.*//'` 1947 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1949$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1950if eval \${$3+:} false; then : 1951 $as_echo_n "(cached) " >&6 1952else 1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955$4 1956int 1957main () 1958{ 1959#ifndef $as_decl_name 1960#ifdef __cplusplus 1961 (void) $as_decl_use; 1962#else 1963 (void) $as_decl_name; 1964#endif 1965#endif 1966 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 eval "$3=yes" 1973else 1974 eval "$3=no" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977fi 1978eval ac_res=\$$3 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1980$as_echo "$ac_res" >&6; } 1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1982 1983} # ac_fn_c_check_decl 1984 1985# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1986# -------------------------------------------- 1987# Tries to find the compile-time value of EXPR in a program that includes 1988# INCLUDES, setting VAR accordingly. Returns whether the value could be 1989# computed 1990ac_fn_c_compute_int () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 if test "$cross_compiling" = yes; then 1994 # Depending upon the size, compute the lo and hi bounds. 1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1996/* end confdefs.h. */ 1997$4 1998int 1999main () 2000{ 2001static int test_array [1 - 2 * !(($2) >= 0)]; 2002test_array [0] = 0; 2003return test_array [0]; 2004 2005 ; 2006 return 0; 2007} 2008_ACEOF 2009if ac_fn_c_try_compile "$LINENO"; then : 2010 ac_lo=0 ac_mid=0 2011 while :; do 2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2013/* end confdefs.h. */ 2014$4 2015int 2016main () 2017{ 2018static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2019test_array [0] = 0; 2020return test_array [0]; 2021 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_compile "$LINENO"; then : 2027 ac_hi=$ac_mid; break 2028else 2029 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2030 if test $ac_lo -le $ac_mid; then 2031 ac_lo= ac_hi= 2032 break 2033 fi 2034 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037 done 2038else 2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2040/* end confdefs.h. */ 2041$4 2042int 2043main () 2044{ 2045static int test_array [1 - 2 * !(($2) < 0)]; 2046test_array [0] = 0; 2047return test_array [0]; 2048 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 ac_hi=-1 ac_mid=-1 2055 while :; do 2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2057/* end confdefs.h. */ 2058$4 2059int 2060main () 2061{ 2062static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2063test_array [0] = 0; 2064return test_array [0]; 2065 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO"; then : 2071 ac_lo=$ac_mid; break 2072else 2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2074 if test $ac_mid -le $ac_hi; then 2075 ac_lo= ac_hi= 2076 break 2077 fi 2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081 done 2082else 2083 ac_lo= ac_hi= 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088# Binary search between lo and hi bounds. 2089while test "x$ac_lo" != "x$ac_hi"; do 2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main () 2096{ 2097static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2098test_array [0] = 0; 2099return test_array [0]; 2100 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 ac_hi=$ac_mid 2107else 2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2109fi 2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2111done 2112case $ac_lo in #(( 2113?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2114'') ac_retval=1 ;; 2115esac 2116 else 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120static long int longval () { return $2; } 2121static unsigned long int ulongval () { return $2; } 2122#include <stdio.h> 2123#include <stdlib.h> 2124int 2125main () 2126{ 2127 2128 FILE *f = fopen ("conftest.val", "w"); 2129 if (! f) 2130 return 1; 2131 if (($2) < 0) 2132 { 2133 long int i = longval (); 2134 if (i != ($2)) 2135 return 1; 2136 fprintf (f, "%ld", i); 2137 } 2138 else 2139 { 2140 unsigned long int i = ulongval (); 2141 if (i != ($2)) 2142 return 1; 2143 fprintf (f, "%lu", i); 2144 } 2145 /* Do not output a trailing newline, as this causes \r\n confusion 2146 on some platforms. */ 2147 return ferror (f) || fclose (f) != 0; 2148 2149 ; 2150 return 0; 2151} 2152_ACEOF 2153if ac_fn_c_try_run "$LINENO"; then : 2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2155else 2156 ac_retval=1 2157fi 2158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2159 conftest.$ac_objext conftest.beam conftest.$ac_ext 2160rm -f conftest.val 2161 2162 fi 2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2164 as_fn_set_status $ac_retval 2165 2166} # ac_fn_c_compute_int 2167 2168# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2169# ------------------------------------------- 2170# Tests whether TYPE exists after having included INCLUDES, setting cache 2171# variable VAR accordingly. 2172ac_fn_c_check_type () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2176$as_echo_n "checking for $2... " >&6; } 2177if eval \${$3+:} false; then : 2178 $as_echo_n "(cached) " >&6 2179else 2180 eval "$3=no" 2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2182/* end confdefs.h. */ 2183$4 2184int 2185main () 2186{ 2187if (sizeof ($2)) 2188 return 0; 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2195/* end confdefs.h. */ 2196$4 2197int 2198main () 2199{ 2200if (sizeof (($2))) 2201 return 0; 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO"; then : 2207 2208else 2209 eval "$3=yes" 2210fi 2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214fi 2215eval ac_res=\$$3 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2217$as_echo "$ac_res" >&6; } 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 2220} # ac_fn_c_check_type 2221cat >config.log <<_ACEOF 2222This file contains any messages produced by compilers while 2223running configure, to aid debugging if configure makes a mistake. 2224 2225It was created by binutils $as_me 2.34, which was 2226generated by GNU Autoconf 2.69. Invocation command line was 2227 2228 $ $0 $@ 2229 2230_ACEOF 2231exec 5>>config.log 2232{ 2233cat <<_ASUNAME 2234## --------- ## 2235## Platform. ## 2236## --------- ## 2237 2238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2239uname -m = `(uname -m) 2>/dev/null || echo unknown` 2240uname -r = `(uname -r) 2>/dev/null || echo unknown` 2241uname -s = `(uname -s) 2>/dev/null || echo unknown` 2242uname -v = `(uname -v) 2>/dev/null || echo unknown` 2243 2244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2245/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2246 2247/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2248/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2250/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2251/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2252/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2253/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2254 2255_ASUNAME 2256 2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2258for as_dir in $PATH 2259do 2260 IFS=$as_save_IFS 2261 test -z "$as_dir" && as_dir=. 2262 $as_echo "PATH: $as_dir" 2263 done 2264IFS=$as_save_IFS 2265 2266} >&5 2267 2268cat >&5 <<_ACEOF 2269 2270 2271## ----------- ## 2272## Core tests. ## 2273## ----------- ## 2274 2275_ACEOF 2276 2277 2278# Keep a trace of the command line. 2279# Strip out --no-create and --no-recursion so they do not pile up. 2280# Strip out --silent because we don't want to record it for future runs. 2281# Also quote any args containing shell meta-characters. 2282# Make two passes to allow for proper duplicate-argument suppression. 2283ac_configure_args= 2284ac_configure_args0= 2285ac_configure_args1= 2286ac_must_keep_next=false 2287for ac_pass in 1 2 2288do 2289 for ac_arg 2290 do 2291 case $ac_arg in 2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2294 | -silent | --silent | --silen | --sile | --sil) 2295 continue ;; 2296 *\'*) 2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 esac 2299 case $ac_pass in 2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2301 2) 2302 as_fn_append ac_configure_args1 " '$ac_arg'" 2303 if test $ac_must_keep_next = true; then 2304 ac_must_keep_next=false # Got value, back to normal. 2305 else 2306 case $ac_arg in 2307 *=* | --config-cache | -C | -disable-* | --disable-* \ 2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2310 | -with-* | --with-* | -without-* | --without-* | --x) 2311 case "$ac_configure_args0 " in 2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2313 esac 2314 ;; 2315 -* ) ac_must_keep_next=true ;; 2316 esac 2317 fi 2318 as_fn_append ac_configure_args " '$ac_arg'" 2319 ;; 2320 esac 2321 done 2322done 2323{ ac_configure_args0=; unset ac_configure_args0;} 2324{ ac_configure_args1=; unset ac_configure_args1;} 2325 2326# When interrupted or exit'd, cleanup temporary files, and complete 2327# config.log. We remove comments because anyway the quotes in there 2328# would cause problems or look ugly. 2329# WARNING: Use '\'' to represent an apostrophe within the trap. 2330# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2331trap 'exit_status=$? 2332 # Save into config.log some information that might help in debugging. 2333 { 2334 echo 2335 2336 $as_echo "## ---------------- ## 2337## Cache variables. ## 2338## ---------------- ##" 2339 echo 2340 # The following way of writing the cache mishandles newlines in values, 2341( 2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in #( 2345 *${as_nl}*) 2346 case $ac_var in #( 2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2349 esac 2350 case $ac_var in #( 2351 _ | IFS | as_nl) ;; #( 2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2353 *) { eval $ac_var=; unset $ac_var;} ;; 2354 esac ;; 2355 esac 2356 done 2357 (set) 2>&1 | 2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2359 *${as_nl}ac_space=\ *) 2360 sed -n \ 2361 "s/'\''/'\''\\\\'\'''\''/g; 2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2363 ;; #( 2364 *) 2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2366 ;; 2367 esac | 2368 sort 2369) 2370 echo 2371 2372 $as_echo "## ----------------- ## 2373## Output variables. ## 2374## ----------------- ##" 2375 echo 2376 for ac_var in $ac_subst_vars 2377 do 2378 eval ac_val=\$$ac_var 2379 case $ac_val in 2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2381 esac 2382 $as_echo "$ac_var='\''$ac_val'\''" 2383 done | sort 2384 echo 2385 2386 if test -n "$ac_subst_files"; then 2387 $as_echo "## ------------------- ## 2388## File substitutions. ## 2389## ------------------- ##" 2390 echo 2391 for ac_var in $ac_subst_files 2392 do 2393 eval ac_val=\$$ac_var 2394 case $ac_val in 2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2396 esac 2397 $as_echo "$ac_var='\''$ac_val'\''" 2398 done | sort 2399 echo 2400 fi 2401 2402 if test -s confdefs.h; then 2403 $as_echo "## ----------- ## 2404## confdefs.h. ## 2405## ----------- ##" 2406 echo 2407 cat confdefs.h 2408 echo 2409 fi 2410 test "$ac_signal" != 0 && 2411 $as_echo "$as_me: caught signal $ac_signal" 2412 $as_echo "$as_me: exit $exit_status" 2413 } >&5 2414 rm -f core *.core core.conftest.* && 2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2416 exit $exit_status 2417' 0 2418for ac_signal in 1 2 13 15; do 2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2420done 2421ac_signal=0 2422 2423# confdefs.h avoids OS command line length limits that DEFS can exceed. 2424rm -f -r conftest* confdefs.h 2425 2426$as_echo "/* confdefs.h */" > confdefs.h 2427 2428# Predefined preprocessor variables. 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_NAME "$PACKAGE_NAME" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2436_ACEOF 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE_VERSION "$PACKAGE_VERSION" 2440_ACEOF 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE_STRING "$PACKAGE_STRING" 2444_ACEOF 2445 2446cat >>confdefs.h <<_ACEOF 2447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2448_ACEOF 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE_URL "$PACKAGE_URL" 2452_ACEOF 2453 2454 2455# Let the site file select an alternate cache file if it wants to. 2456# Prefer an explicitly selected file to automatically selected ones. 2457ac_site_file1=NONE 2458ac_site_file2=NONE 2459if test -n "$CONFIG_SITE"; then 2460 # We do not want a PATH search for config.site. 2461 case $CONFIG_SITE in #(( 2462 -*) ac_site_file1=./$CONFIG_SITE;; 2463 */*) ac_site_file1=$CONFIG_SITE;; 2464 *) ac_site_file1=./$CONFIG_SITE;; 2465 esac 2466elif test "x$prefix" != xNONE; then 2467 ac_site_file1=$prefix/share/config.site 2468 ac_site_file2=$prefix/etc/config.site 2469else 2470 ac_site_file1=$ac_default_prefix/share/config.site 2471 ac_site_file2=$ac_default_prefix/etc/config.site 2472fi 2473for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2474do 2475 test "x$ac_site_file" = xNONE && continue 2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2478$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2479 sed 's/^/| /' "$ac_site_file" >&5 2480 . "$ac_site_file" \ 2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2483as_fn_error $? "failed to load site script $ac_site_file 2484See \`config.log' for more details" "$LINENO" 5; } 2485 fi 2486done 2487 2488if test -r "$cache_file"; then 2489 # Some versions of bash will fail to source /dev/null (special files 2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2493$as_echo "$as_me: loading cache $cache_file" >&6;} 2494 case $cache_file in 2495 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2496 *) . "./$cache_file";; 2497 esac 2498 fi 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2501$as_echo "$as_me: creating cache $cache_file" >&6;} 2502 >$cache_file 2503fi 2504 2505as_fn_append ac_header_list " stdlib.h" 2506as_fn_append ac_header_list " unistd.h" 2507as_fn_append ac_header_list " sys/param.h" 2508# Check that the precious variables saved in the cache have kept the same 2509# value. 2510ac_cache_corrupted=false 2511for ac_var in $ac_precious_vars; do 2512 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2513 eval ac_new_set=\$ac_env_${ac_var}_set 2514 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2515 eval ac_new_val=\$ac_env_${ac_var}_value 2516 case $ac_old_set,$ac_new_set in 2517 set,) 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2519$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2520 ac_cache_corrupted=: ;; 2521 ,set) 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2523$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2524 ac_cache_corrupted=: ;; 2525 ,);; 2526 *) 2527 if test "x$ac_old_val" != "x$ac_new_val"; then 2528 # differences in whitespace do not lead to failure. 2529 ac_old_val_w=`echo x $ac_old_val` 2530 ac_new_val_w=`echo x $ac_new_val` 2531 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2533$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2534 ac_cache_corrupted=: 2535 else 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2537$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2538 eval $ac_var=\$ac_old_val 2539 fi 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2541$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2543$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2544 fi;; 2545 esac 2546 # Pass precious variables to config.status. 2547 if test "$ac_new_set" = set; then 2548 case $ac_new_val in 2549 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2550 *) ac_arg=$ac_var=$ac_new_val ;; 2551 esac 2552 case " $ac_configure_args " in 2553 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2554 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2555 esac 2556 fi 2557done 2558if $ac_cache_corrupted; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2562$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2563 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2564fi 2565## -------------------- ## 2566## Main body of script. ## 2567## -------------------- ## 2568 2569ac_ext=c 2570ac_cpp='$CPP $CPPFLAGS' 2571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2573ac_compiler_gnu=$ac_cv_c_compiler_gnu 2574 2575 2576 2577 2578 2579 2580 2581ac_aux_dir= 2582for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2583 if test -f "$ac_dir/install-sh"; then 2584 ac_aux_dir=$ac_dir 2585 ac_install_sh="$ac_aux_dir/install-sh -c" 2586 break 2587 elif test -f "$ac_dir/install.sh"; then 2588 ac_aux_dir=$ac_dir 2589 ac_install_sh="$ac_aux_dir/install.sh -c" 2590 break 2591 elif test -f "$ac_dir/shtool"; then 2592 ac_aux_dir=$ac_dir 2593 ac_install_sh="$ac_aux_dir/shtool install -c" 2594 break 2595 fi 2596done 2597if test -z "$ac_aux_dir"; then 2598 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2599fi 2600 2601# These three variables are undocumented and unsupported, 2602# and are intended to be withdrawn in a future Autoconf release. 2603# They can cause serious problems if a builder's source tree is in a directory 2604# whose full name contains unusual characters. 2605ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2606ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2607ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2608 2609 2610# Make sure we can run config.sub. 2611$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2612 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2613 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2615$as_echo_n "checking build system type... " >&6; } 2616if ${ac_cv_build+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 ac_build_alias=$build_alias 2620test "x$ac_build_alias" = x && 2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2622test "x$ac_build_alias" = x && 2623 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2624ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2626 2627fi 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2629$as_echo "$ac_cv_build" >&6; } 2630case $ac_cv_build in 2631*-*-*) ;; 2632*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2633esac 2634build=$ac_cv_build 2635ac_save_IFS=$IFS; IFS='-' 2636set x $ac_cv_build 2637shift 2638build_cpu=$1 2639build_vendor=$2 2640shift; shift 2641# Remember, the first character of IFS is used to create $*, 2642# except with old shells: 2643build_os=$* 2644IFS=$ac_save_IFS 2645case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2646 2647 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2649$as_echo_n "checking host system type... " >&6; } 2650if ${ac_cv_host+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test "x$host_alias" = x; then 2654 ac_cv_host=$ac_cv_build 2655else 2656 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2658fi 2659 2660fi 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2662$as_echo "$ac_cv_host" >&6; } 2663case $ac_cv_host in 2664*-*-*) ;; 2665*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2666esac 2667host=$ac_cv_host 2668ac_save_IFS=$IFS; IFS='-' 2669set x $ac_cv_host 2670shift 2671host_cpu=$1 2672host_vendor=$2 2673shift; shift 2674# Remember, the first character of IFS is used to create $*, 2675# except with old shells: 2676host_os=$* 2677IFS=$ac_save_IFS 2678case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2679 2680 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2682$as_echo_n "checking target system type... " >&6; } 2683if ${ac_cv_target+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 if test "x$target_alias" = x; then 2687 ac_cv_target=$ac_cv_host 2688else 2689 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2690 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2691fi 2692 2693fi 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2695$as_echo "$ac_cv_target" >&6; } 2696case $ac_cv_target in 2697*-*-*) ;; 2698*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2699esac 2700target=$ac_cv_target 2701ac_save_IFS=$IFS; IFS='-' 2702set x $ac_cv_target 2703shift 2704target_cpu=$1 2705target_vendor=$2 2706shift; shift 2707# Remember, the first character of IFS is used to create $*, 2708# except with old shells: 2709target_os=$* 2710IFS=$ac_save_IFS 2711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2712 2713 2714# The aliases save the names the user supplied, while $host etc. 2715# will get canonicalized. 2716test -n "$target_alias" && 2717 test "$program_prefix$program_suffix$program_transform_name" = \ 2718 NONENONEs,x,x, && 2719 program_prefix=${target_alias}- 2720# Expand $ac_aux_dir to an absolute path. 2721am_aux_dir=`cd "$ac_aux_dir" && pwd` 2722 2723ac_ext=c 2724ac_cpp='$CPP $CPPFLAGS' 2725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2727ac_compiler_gnu=$ac_cv_c_compiler_gnu 2728if test -n "$ac_tool_prefix"; then 2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2730set dummy ${ac_tool_prefix}gcc; ac_word=$2 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732$as_echo_n "checking for $ac_word... " >&6; } 2733if ${ac_cv_prog_CC+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test -n "$CC"; then 2737 ac_cv_prog_CC="$CC" # Let the user override the test. 2738else 2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754fi 2755fi 2756CC=$ac_cv_prog_CC 2757if test -n "$CC"; then 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2759$as_echo "$CC" >&6; } 2760else 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762$as_echo "no" >&6; } 2763fi 2764 2765 2766fi 2767if test -z "$ac_cv_prog_CC"; then 2768 ac_ct_CC=$CC 2769 # Extract the first word of "gcc", so it can be a program name with args. 2770set dummy gcc; ac_word=$2 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772$as_echo_n "checking for $ac_word... " >&6; } 2773if ${ac_cv_prog_ac_ct_CC+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 if test -n "$ac_ct_CC"; then 2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2778else 2779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2780for as_dir in $PATH 2781do 2782 IFS=$as_save_IFS 2783 test -z "$as_dir" && as_dir=. 2784 for ac_exec_ext in '' $ac_executable_extensions; do 2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2786 ac_cv_prog_ac_ct_CC="gcc" 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2788 break 2 2789 fi 2790done 2791 done 2792IFS=$as_save_IFS 2793 2794fi 2795fi 2796ac_ct_CC=$ac_cv_prog_ac_ct_CC 2797if test -n "$ac_ct_CC"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2799$as_echo "$ac_ct_CC" >&6; } 2800else 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2802$as_echo "no" >&6; } 2803fi 2804 2805 if test "x$ac_ct_CC" = x; then 2806 CC="" 2807 else 2808 case $cross_compiling:$ac_tool_warned in 2809yes:) 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2812ac_tool_warned=yes ;; 2813esac 2814 CC=$ac_ct_CC 2815 fi 2816else 2817 CC="$ac_cv_prog_CC" 2818fi 2819 2820if test -z "$CC"; then 2821 if test -n "$ac_tool_prefix"; then 2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2823set dummy ${ac_tool_prefix}cc; ac_word=$2 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if ${ac_cv_prog_CC+:} false; then : 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$CC"; then 2830 ac_cv_prog_CC="$CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2839 ac_cv_prog_CC="${ac_tool_prefix}cc" 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844 done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849CC=$ac_cv_prog_CC 2850if test -n "$CC"; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2852$as_echo "$CC" >&6; } 2853else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 2859 fi 2860fi 2861if test -z "$CC"; then 2862 # Extract the first word of "cc", so it can be a program name with args. 2863set dummy cc; ac_word=$2 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2865$as_echo_n "checking for $ac_word... " >&6; } 2866if ${ac_cv_prog_CC+:} false; then : 2867 $as_echo_n "(cached) " >&6 2868else 2869 if test -n "$CC"; then 2870 ac_cv_prog_CC="$CC" # Let the user override the test. 2871else 2872 ac_prog_rejected=no 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_exec_ext in '' $ac_executable_extensions; do 2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2881 ac_prog_rejected=yes 2882 continue 2883 fi 2884 ac_cv_prog_CC="cc" 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892if test $ac_prog_rejected = yes; then 2893 # We found a bogon in the path, so make sure we never use it. 2894 set dummy $ac_cv_prog_CC 2895 shift 2896 if test $# != 0; then 2897 # We chose a different compiler from the bogus one. 2898 # However, it has the same basename, so the bogon will be chosen 2899 # first if we set CC to just the basename; use the full file name. 2900 shift 2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2902 fi 2903fi 2904fi 2905fi 2906CC=$ac_cv_prog_CC 2907if test -n "$CC"; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2909$as_echo "$CC" >&6; } 2910else 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916fi 2917if test -z "$CC"; then 2918 if test -n "$ac_tool_prefix"; then 2919 for ac_prog in cl.exe 2920 do 2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2922set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2924$as_echo_n "checking for $ac_word... " >&6; } 2925if ${ac_cv_prog_CC+:} false; then : 2926 $as_echo_n "(cached) " >&6 2927else 2928 if test -n "$CC"; then 2929 ac_cv_prog_CC="$CC" # Let the user override the test. 2930else 2931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2932for as_dir in $PATH 2933do 2934 IFS=$as_save_IFS 2935 test -z "$as_dir" && as_dir=. 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2940 break 2 2941 fi 2942done 2943 done 2944IFS=$as_save_IFS 2945 2946fi 2947fi 2948CC=$ac_cv_prog_CC 2949if test -n "$CC"; then 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2951$as_echo "$CC" >&6; } 2952else 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2954$as_echo "no" >&6; } 2955fi 2956 2957 2958 test -n "$CC" && break 2959 done 2960fi 2961if test -z "$CC"; then 2962 ac_ct_CC=$CC 2963 for ac_prog in cl.exe 2964do 2965 # Extract the first word of "$ac_prog", so it can be a program name with args. 2966set dummy $ac_prog; ac_word=$2 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968$as_echo_n "checking for $ac_word... " >&6; } 2969if ${ac_cv_prog_ac_ct_CC+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971else 2972 if test -n "$ac_ct_CC"; then 2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2974else 2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976for as_dir in $PATH 2977do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2982 ac_cv_prog_ac_ct_CC="$ac_prog" 2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2984 break 2 2985 fi 2986done 2987 done 2988IFS=$as_save_IFS 2989 2990fi 2991fi 2992ac_ct_CC=$ac_cv_prog_ac_ct_CC 2993if test -n "$ac_ct_CC"; then 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2995$as_echo "$ac_ct_CC" >&6; } 2996else 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2998$as_echo "no" >&6; } 2999fi 3000 3001 3002 test -n "$ac_ct_CC" && break 3003done 3004 3005 if test "x$ac_ct_CC" = x; then 3006 CC="" 3007 else 3008 case $cross_compiling:$ac_tool_warned in 3009yes:) 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3012ac_tool_warned=yes ;; 3013esac 3014 CC=$ac_ct_CC 3015 fi 3016fi 3017 3018fi 3019 3020 3021test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3023as_fn_error $? "no acceptable C compiler found in \$PATH 3024See \`config.log' for more details" "$LINENO" 5; } 3025 3026# Provide some information about the compiler. 3027$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3028set X $ac_compile 3029ac_compiler=$2 3030for ac_option in --version -v -V -qversion; do 3031 { { ac_try="$ac_compiler $ac_option >&5" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3037$as_echo "$ac_try_echo"; } >&5 3038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3039 ac_status=$? 3040 if test -s conftest.err; then 3041 sed '10a\ 3042... rest of stderr output deleted ... 3043 10q' conftest.err >conftest.er1 3044 cat conftest.er1 >&5 3045 fi 3046 rm -f conftest.er1 conftest.err 3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3048 test $ac_status = 0; } 3049done 3050 3051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3052/* end confdefs.h. */ 3053 3054int 3055main () 3056{ 3057 3058 ; 3059 return 0; 3060} 3061_ACEOF 3062ac_clean_files_save=$ac_clean_files 3063ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3064# Try to create an executable without -o first, disregard a.out. 3065# It will help us diagnose broken compilers, and finding out an intuition 3066# of exeext. 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3068$as_echo_n "checking whether the C compiler works... " >&6; } 3069ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3070 3071# The possible output files: 3072ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3073 3074ac_rmfiles= 3075for ac_file in $ac_files 3076do 3077 case $ac_file in 3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3079 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3080 esac 3081done 3082rm -f $ac_rmfiles 3083 3084if { { ac_try="$ac_link_default" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3090$as_echo "$ac_try_echo"; } >&5 3091 (eval "$ac_link_default") 2>&5 3092 ac_status=$? 3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3094 test $ac_status = 0; }; then : 3095 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3096# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3097# in a Makefile. We should not override ac_cv_exeext if it was cached, 3098# so that the user can short-circuit this test for compilers unknown to 3099# Autoconf. 3100for ac_file in $ac_files '' 3101do 3102 test -f "$ac_file" || continue 3103 case $ac_file in 3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3105 ;; 3106 [ab].out ) 3107 # We found the default executable, but exeext='' is most 3108 # certainly right. 3109 break;; 3110 *.* ) 3111 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3112 then :; else 3113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3114 fi 3115 # We set ac_cv_exeext here because the later test for it is not 3116 # safe: cross compilers may not add the suffix if given an `-o' 3117 # argument, so we may need to know it at that point already. 3118 # Even if this section looks crufty: it has the advantage of 3119 # actually working. 3120 break;; 3121 * ) 3122 break;; 3123 esac 3124done 3125test "$ac_cv_exeext" = no && ac_cv_exeext= 3126 3127else 3128 ac_file='' 3129fi 3130if test -z "$ac_file"; then : 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3132$as_echo "no" >&6; } 3133$as_echo "$as_me: failed program was:" >&5 3134sed 's/^/| /' conftest.$ac_ext >&5 3135 3136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3138as_fn_error 77 "C compiler cannot create executables 3139See \`config.log' for more details" "$LINENO" 5; } 3140else 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3142$as_echo "yes" >&6; } 3143fi 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3145$as_echo_n "checking for C compiler default output file name... " >&6; } 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3147$as_echo "$ac_file" >&6; } 3148ac_exeext=$ac_cv_exeext 3149 3150rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3151ac_clean_files=$ac_clean_files_save 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3153$as_echo_n "checking for suffix of executables... " >&6; } 3154if { { ac_try="$ac_link" 3155case "(($ac_try" in 3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3157 *) ac_try_echo=$ac_try;; 3158esac 3159eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3160$as_echo "$ac_try_echo"; } >&5 3161 (eval "$ac_link") 2>&5 3162 ac_status=$? 3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3164 test $ac_status = 0; }; then : 3165 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3166# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3167# work properly (i.e., refer to `conftest.exe'), while it won't with 3168# `rm'. 3169for ac_file in conftest.exe conftest conftest.*; do 3170 test -f "$ac_file" || continue 3171 case $ac_file in 3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3174 break;; 3175 * ) break;; 3176 esac 3177done 3178else 3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3181as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3182See \`config.log' for more details" "$LINENO" 5; } 3183fi 3184rm -f conftest conftest$ac_cv_exeext 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3186$as_echo "$ac_cv_exeext" >&6; } 3187 3188rm -f conftest.$ac_ext 3189EXEEXT=$ac_cv_exeext 3190ac_exeext=$EXEEXT 3191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193#include <stdio.h> 3194int 3195main () 3196{ 3197FILE *f = fopen ("conftest.out", "w"); 3198 return ferror (f) || fclose (f) != 0; 3199 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204ac_clean_files="$ac_clean_files conftest.out" 3205# Check that the compiler produces executables we can run. If not, either 3206# the compiler is broken, or we cross compile. 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3208$as_echo_n "checking whether we are cross compiling... " >&6; } 3209if test "$cross_compiling" != yes; then 3210 { { ac_try="$ac_link" 3211case "(($ac_try" in 3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3213 *) ac_try_echo=$ac_try;; 3214esac 3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3216$as_echo "$ac_try_echo"; } >&5 3217 (eval "$ac_link") 2>&5 3218 ac_status=$? 3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3220 test $ac_status = 0; } 3221 if { ac_try='./conftest$ac_cv_exeext' 3222 { { case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3227$as_echo "$ac_try_echo"; } >&5 3228 (eval "$ac_try") 2>&5 3229 ac_status=$? 3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3231 test $ac_status = 0; }; }; then 3232 cross_compiling=no 3233 else 3234 if test "$cross_compiling" = maybe; then 3235 cross_compiling=yes 3236 else 3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "cannot run C compiled programs. 3240If you meant to cross compile, use \`--host'. 3241See \`config.log' for more details" "$LINENO" 5; } 3242 fi 3243 fi 3244fi 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3246$as_echo "$cross_compiling" >&6; } 3247 3248rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3249ac_clean_files=$ac_clean_files_save 3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3251$as_echo_n "checking for suffix of object files... " >&6; } 3252if ${ac_cv_objext+:} false; then : 3253 $as_echo_n "(cached) " >&6 3254else 3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257 3258int 3259main () 3260{ 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266rm -f conftest.o conftest.obj 3267if { { ac_try="$ac_compile" 3268case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271esac 3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273$as_echo "$ac_try_echo"; } >&5 3274 (eval "$ac_compile") 2>&5 3275 ac_status=$? 3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277 test $ac_status = 0; }; then : 3278 for ac_file in conftest.o conftest.obj conftest.*; do 3279 test -f "$ac_file" || continue; 3280 case $ac_file in 3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3283 break;; 3284 esac 3285done 3286else 3287 $as_echo "$as_me: failed program was:" >&5 3288sed 's/^/| /' conftest.$ac_ext >&5 3289 3290{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292as_fn_error $? "cannot compute suffix of object files: cannot compile 3293See \`config.log' for more details" "$LINENO" 5; } 3294fi 3295rm -f conftest.$ac_cv_objext conftest.$ac_ext 3296fi 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3298$as_echo "$ac_cv_objext" >&6; } 3299OBJEXT=$ac_cv_objext 3300ac_objext=$OBJEXT 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3302$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3303if ${ac_cv_c_compiler_gnu+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3307/* end confdefs.h. */ 3308 3309int 3310main () 3311{ 3312#ifndef __GNUC__ 3313 choke me 3314#endif 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320if ac_fn_c_try_compile "$LINENO"; then : 3321 ac_compiler_gnu=yes 3322else 3323 ac_compiler_gnu=no 3324fi 3325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3326ac_cv_c_compiler_gnu=$ac_compiler_gnu 3327 3328fi 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3330$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3331if test $ac_compiler_gnu = yes; then 3332 GCC=yes 3333else 3334 GCC= 3335fi 3336ac_test_CFLAGS=${CFLAGS+set} 3337ac_save_CFLAGS=$CFLAGS 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3339$as_echo_n "checking whether $CC accepts -g... " >&6; } 3340if ${ac_cv_prog_cc_g+:} false; then : 3341 $as_echo_n "(cached) " >&6 3342else 3343 ac_save_c_werror_flag=$ac_c_werror_flag 3344 ac_c_werror_flag=yes 3345 ac_cv_prog_cc_g=no 3346 CFLAGS="-g" 3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3348/* end confdefs.h. */ 3349 3350int 3351main () 3352{ 3353 3354 ; 3355 return 0; 3356} 3357_ACEOF 3358if ac_fn_c_try_compile "$LINENO"; then : 3359 ac_cv_prog_cc_g=yes 3360else 3361 CFLAGS="" 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3363/* end confdefs.h. */ 3364 3365int 3366main () 3367{ 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO"; then : 3374 3375else 3376 ac_c_werror_flag=$ac_save_c_werror_flag 3377 CFLAGS="-g" 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389if ac_fn_c_try_compile "$LINENO"; then : 3390 ac_cv_prog_cc_g=yes 3391fi 3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3393fi 3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3395fi 3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3397 ac_c_werror_flag=$ac_save_c_werror_flag 3398fi 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3400$as_echo "$ac_cv_prog_cc_g" >&6; } 3401if test "$ac_test_CFLAGS" = set; then 3402 CFLAGS=$ac_save_CFLAGS 3403elif test $ac_cv_prog_cc_g = yes; then 3404 if test "$GCC" = yes; then 3405 CFLAGS="-g -O2" 3406 else 3407 CFLAGS="-g" 3408 fi 3409else 3410 if test "$GCC" = yes; then 3411 CFLAGS="-O2" 3412 else 3413 CFLAGS= 3414 fi 3415fi 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3417$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3418if ${ac_cv_prog_cc_c89+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 ac_cv_prog_cc_c89=no 3422ac_save_CC=$CC 3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425#include <stdarg.h> 3426#include <stdio.h> 3427struct stat; 3428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3429struct buf { int x; }; 3430FILE * (*rcsopen) (struct buf *, struct stat *, int); 3431static char *e (p, i) 3432 char **p; 3433 int i; 3434{ 3435 return p[i]; 3436} 3437static char *f (char * (*g) (char **, int), char **p, ...) 3438{ 3439 char *s; 3440 va_list v; 3441 va_start (v,p); 3442 s = g (p, va_arg (v,int)); 3443 va_end (v); 3444 return s; 3445} 3446 3447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3448 function prototypes and stuff, but not '\xHH' hex character constants. 3449 These don't provoke an error unfortunately, instead are silently treated 3450 as 'x'. The following induces an error, until -std is added to get 3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3452 array size at least. It's necessary to write '\x00'==0 to get something 3453 that's true only with -std. */ 3454int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3455 3456/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3457 inside strings and character constants. */ 3458#define FOO(x) 'x' 3459int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3460 3461int test (int i, double x); 3462struct s1 {int (*f) (int a);}; 3463struct s2 {int (*f) (double a);}; 3464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3465int argc; 3466char **argv; 3467int 3468main () 3469{ 3470return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3471 ; 3472 return 0; 3473} 3474_ACEOF 3475for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3477do 3478 CC="$ac_save_CC $ac_arg" 3479 if ac_fn_c_try_compile "$LINENO"; then : 3480 ac_cv_prog_cc_c89=$ac_arg 3481fi 3482rm -f core conftest.err conftest.$ac_objext 3483 test "x$ac_cv_prog_cc_c89" != "xno" && break 3484done 3485rm -f conftest.$ac_ext 3486CC=$ac_save_CC 3487 3488fi 3489# AC_CACHE_VAL 3490case "x$ac_cv_prog_cc_c89" in 3491 x) 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3493$as_echo "none needed" >&6; } ;; 3494 xno) 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3496$as_echo "unsupported" >&6; } ;; 3497 *) 3498 CC="$CC $ac_cv_prog_cc_c89" 3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3500$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3501esac 3502if test "x$ac_cv_prog_cc_c89" != xno; then : 3503 3504fi 3505 3506ac_ext=c 3507ac_cpp='$CPP $CPPFLAGS' 3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3510ac_compiler_gnu=$ac_cv_c_compiler_gnu 3511 3512ac_ext=c 3513ac_cpp='$CPP $CPPFLAGS' 3514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3516ac_compiler_gnu=$ac_cv_c_compiler_gnu 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3518$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3519if ${am_cv_prog_cc_c_o+:} false; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524 3525int 3526main () 3527{ 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533 # Make sure it works both with $CC and with simple cc. 3534 # Following AC_PROG_CC_C_O, we do the test twice because some 3535 # compilers refuse to overwrite an existing .o file with -o, 3536 # though they will create one. 3537 am_cv_prog_cc_c_o=yes 3538 for am_i in 1 2; do 3539 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3540 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } \ 3544 && test -f conftest2.$ac_objext; then 3545 : OK 3546 else 3547 am_cv_prog_cc_c_o=no 3548 break 3549 fi 3550 done 3551 rm -f core conftest* 3552 unset am_i 3553fi 3554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3555$as_echo "$am_cv_prog_cc_c_o" >&6; } 3556if test "$am_cv_prog_cc_c_o" != yes; then 3557 # Losing compiler, so override with the script. 3558 # FIXME: It is wrong to rewrite CC. 3559 # But if we don't then we get into trouble of one sort or another. 3560 # A longer-term fix would be to have automake use am__CC in this case, 3561 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3562 CC="$am_aux_dir/compile $CC" 3563fi 3564ac_ext=c 3565ac_cpp='$CPP $CPPFLAGS' 3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3568ac_compiler_gnu=$ac_cv_c_compiler_gnu 3569 3570 3571 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3573$as_echo_n "checking for library containing strerror... " >&6; } 3574if ${ac_cv_search_strerror+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 ac_func_search_save_LIBS=$LIBS 3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581/* Override any GCC internal prototype to avoid an error. 3582 Use char because int might match the return type of a GCC 3583 builtin and then its argument prototype would still apply. */ 3584#ifdef __cplusplus 3585extern "C" 3586#endif 3587char strerror (); 3588int 3589main () 3590{ 3591return strerror (); 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596for ac_lib in '' cposix; do 3597 if test -z "$ac_lib"; then 3598 ac_res="none required" 3599 else 3600 ac_res=-l$ac_lib 3601 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3602 fi 3603 if ac_fn_c_try_link "$LINENO"; then : 3604 ac_cv_search_strerror=$ac_res 3605fi 3606rm -f core conftest.err conftest.$ac_objext \ 3607 conftest$ac_exeext 3608 if ${ac_cv_search_strerror+:} false; then : 3609 break 3610fi 3611done 3612if ${ac_cv_search_strerror+:} false; then : 3613 3614else 3615 ac_cv_search_strerror=no 3616fi 3617rm conftest.$ac_ext 3618LIBS=$ac_func_search_save_LIBS 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3621$as_echo "$ac_cv_search_strerror" >&6; } 3622ac_res=$ac_cv_search_strerror 3623if test "$ac_res" != no; then : 3624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3625 3626fi 3627 3628 3629am__api_version='1.15' 3630 3631# Find a good install program. We prefer a C program (faster), 3632# so one script is as good as another. But avoid the broken or 3633# incompatible versions: 3634# SysV /etc/install, /usr/sbin/install 3635# SunOS /usr/etc/install 3636# IRIX /sbin/install 3637# AIX /bin/install 3638# AmigaOS /C/install, which installs bootblocks on floppy discs 3639# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3640# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3641# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3642# OS/2's system install, which has a completely different semantic 3643# ./install, which can be erroneously created by make from ./install.sh. 3644# Reject install programs that cannot install multiple files. 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3646$as_echo_n "checking for a BSD-compatible install... " >&6; } 3647if test -z "$INSTALL"; then 3648if ${ac_cv_path_install+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3652for as_dir in $PATH 3653do 3654 IFS=$as_save_IFS 3655 test -z "$as_dir" && as_dir=. 3656 # Account for people who put trailing slashes in PATH elements. 3657case $as_dir/ in #(( 3658 ./ | .// | /[cC]/* | \ 3659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3660 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3661 /usr/ucb/* ) ;; 3662 *) 3663 # OSF1 and SCO ODT 3.0 have their own names for install. 3664 # Don't use installbsd from OSF since it installs stuff as root 3665 # by default. 3666 for ac_prog in ginstall scoinst install; do 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3669 if test $ac_prog = install && 3670 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3671 # AIX install. It has an incompatible calling convention. 3672 : 3673 elif test $ac_prog = install && 3674 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3675 # program-specific install script used by HP pwplus--don't use. 3676 : 3677 else 3678 rm -rf conftest.one conftest.two conftest.dir 3679 echo one > conftest.one 3680 echo two > conftest.two 3681 mkdir conftest.dir 3682 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3683 test -s conftest.one && test -s conftest.two && 3684 test -s conftest.dir/conftest.one && 3685 test -s conftest.dir/conftest.two 3686 then 3687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3688 break 3 3689 fi 3690 fi 3691 fi 3692 done 3693 done 3694 ;; 3695esac 3696 3697 done 3698IFS=$as_save_IFS 3699 3700rm -rf conftest.one conftest.two conftest.dir 3701 3702fi 3703 if test "${ac_cv_path_install+set}" = set; then 3704 INSTALL=$ac_cv_path_install 3705 else 3706 # As a last resort, use the slow shell script. Don't cache a 3707 # value for INSTALL within a source directory, because that will 3708 # break other packages using the cache if that directory is 3709 # removed, or if the value is a relative name. 3710 INSTALL=$ac_install_sh 3711 fi 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3714$as_echo "$INSTALL" >&6; } 3715 3716# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3717# It thinks the first close brace ends the variable substitution. 3718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3719 3720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3721 3722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3723 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3725$as_echo_n "checking whether build environment is sane... " >&6; } 3726# Reject unsafe characters in $srcdir or the absolute working directory 3727# name. Accept space and tab only in the latter. 3728am_lf=' 3729' 3730case `pwd` in 3731 *[\\\"\#\$\&\'\`$am_lf]*) 3732 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3733esac 3734case $srcdir in 3735 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3736 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3737esac 3738 3739# Do 'set' in a subshell so we don't clobber the current shell's 3740# arguments. Must try -L first in case configure is actually a 3741# symlink; some systems play weird games with the mod time of symlinks 3742# (eg FreeBSD returns the mod time of the symlink's containing 3743# directory). 3744if ( 3745 am_has_slept=no 3746 for am_try in 1 2; do 3747 echo "timestamp, slept: $am_has_slept" > conftest.file 3748 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3749 if test "$*" = "X"; then 3750 # -L didn't work. 3751 set X `ls -t "$srcdir/configure" conftest.file` 3752 fi 3753 if test "$*" != "X $srcdir/configure conftest.file" \ 3754 && test "$*" != "X conftest.file $srcdir/configure"; then 3755 3756 # If neither matched, then we have a broken ls. This can happen 3757 # if, for instance, CONFIG_SHELL is bash and it inherits a 3758 # broken ls alias from the environment. This has actually 3759 # happened. Such a system could not be considered "sane". 3760 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3761 alias in your environment" "$LINENO" 5 3762 fi 3763 if test "$2" = conftest.file || test $am_try -eq 2; then 3764 break 3765 fi 3766 # Just in case. 3767 sleep 1 3768 am_has_slept=yes 3769 done 3770 test "$2" = conftest.file 3771 ) 3772then 3773 # Ok. 3774 : 3775else 3776 as_fn_error $? "newly created file is older than distributed files! 3777Check your system clock" "$LINENO" 5 3778fi 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3780$as_echo "yes" >&6; } 3781# If we didn't sleep, we still need to ensure time stamps of config.status and 3782# generated files are strictly newer. 3783am_sleep_pid= 3784if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3785 ( sleep 1 ) & 3786 am_sleep_pid=$! 3787fi 3788 3789rm -f conftest.file 3790 3791test "$program_prefix" != NONE && 3792 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3793# Use a double $ so make ignores it. 3794test "$program_suffix" != NONE && 3795 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3796# Double any \ or $. 3797# By default was `s,x,x', remove it if useless. 3798ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3799program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3800 3801if test x"${MISSING+set}" != xset; then 3802 case $am_aux_dir in 3803 *\ * | *\ *) 3804 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3805 *) 3806 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3807 esac 3808fi 3809# Use eval to expand $SHELL 3810if eval "$MISSING --is-lightweight"; then 3811 am_missing_run="$MISSING " 3812else 3813 am_missing_run= 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3815$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3816fi 3817 3818if test x"${install_sh+set}" != xset; then 3819 case $am_aux_dir in 3820 *\ * | *\ *) 3821 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3822 *) 3823 install_sh="\${SHELL} $am_aux_dir/install-sh" 3824 esac 3825fi 3826 3827# Installed binaries are usually stripped using 'strip' when the user 3828# run "make install-strip". However 'strip' might not be the right 3829# tool to use in cross-compilation environments, therefore Automake 3830# will honor the 'STRIP' environment variable to overrule this program. 3831if test "$cross_compiling" != no; then 3832 if test -n "$ac_tool_prefix"; then 3833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3834set dummy ${ac_tool_prefix}strip; ac_word=$2 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3836$as_echo_n "checking for $ac_word... " >&6; } 3837if ${ac_cv_prog_STRIP+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839else 3840 if test -n "$STRIP"; then 3841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3842else 3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3844for as_dir in $PATH 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3850 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858fi 3859fi 3860STRIP=$ac_cv_prog_STRIP 3861if test -n "$STRIP"; then 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3863$as_echo "$STRIP" >&6; } 3864else 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866$as_echo "no" >&6; } 3867fi 3868 3869 3870fi 3871if test -z "$ac_cv_prog_STRIP"; then 3872 ac_ct_STRIP=$STRIP 3873 # Extract the first word of "strip", so it can be a program name with args. 3874set dummy strip; ac_word=$2 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3876$as_echo_n "checking for $ac_word... " >&6; } 3877if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3878 $as_echo_n "(cached) " >&6 3879else 3880 if test -n "$ac_ct_STRIP"; then 3881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3882else 3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884for as_dir in $PATH 3885do 3886 IFS=$as_save_IFS 3887 test -z "$as_dir" && as_dir=. 3888 for ac_exec_ext in '' $ac_executable_extensions; do 3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3890 ac_cv_prog_ac_ct_STRIP="strip" 3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3892 break 2 3893 fi 3894done 3895 done 3896IFS=$as_save_IFS 3897 3898fi 3899fi 3900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3901if test -n "$ac_ct_STRIP"; then 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3903$as_echo "$ac_ct_STRIP" >&6; } 3904else 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3906$as_echo "no" >&6; } 3907fi 3908 3909 if test "x$ac_ct_STRIP" = x; then 3910 STRIP=":" 3911 else 3912 case $cross_compiling:$ac_tool_warned in 3913yes:) 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3916ac_tool_warned=yes ;; 3917esac 3918 STRIP=$ac_ct_STRIP 3919 fi 3920else 3921 STRIP="$ac_cv_prog_STRIP" 3922fi 3923 3924fi 3925INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3926 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3928$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3929if test -z "$MKDIR_P"; then 3930 if ${ac_cv_path_mkdir+:} false; then : 3931 $as_echo_n "(cached) " >&6 3932else 3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3934for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3935do 3936 IFS=$as_save_IFS 3937 test -z "$as_dir" && as_dir=. 3938 for ac_prog in mkdir gmkdir; do 3939 for ac_exec_ext in '' $ac_executable_extensions; do 3940 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3941 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3942 'mkdir (GNU coreutils) '* | \ 3943 'mkdir (coreutils) '* | \ 3944 'mkdir (fileutils) '4.1*) 3945 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3946 break 3;; 3947 esac 3948 done 3949 done 3950 done 3951IFS=$as_save_IFS 3952 3953fi 3954 3955 test -d ./--version && rmdir ./--version 3956 if test "${ac_cv_path_mkdir+set}" = set; then 3957 MKDIR_P="$ac_cv_path_mkdir -p" 3958 else 3959 # As a last resort, use the slow shell script. Don't cache a 3960 # value for MKDIR_P within a source directory, because that will 3961 # break other packages using the cache if that directory is 3962 # removed, or if the value is a relative name. 3963 MKDIR_P="$ac_install_sh -d" 3964 fi 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3967$as_echo "$MKDIR_P" >&6; } 3968 3969for ac_prog in gawk mawk nawk awk 3970do 3971 # Extract the first word of "$ac_prog", so it can be a program name with args. 3972set dummy $ac_prog; ac_word=$2 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3974$as_echo_n "checking for $ac_word... " >&6; } 3975if ${ac_cv_prog_AWK+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -n "$AWK"; then 3979 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3980else 3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3982for as_dir in $PATH 3983do 3984 IFS=$as_save_IFS 3985 test -z "$as_dir" && as_dir=. 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3988 ac_cv_prog_AWK="$ac_prog" 3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996fi 3997fi 3998AWK=$ac_cv_prog_AWK 3999if test -n "$AWK"; then 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4001$as_echo "$AWK" >&6; } 4002else 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4004$as_echo "no" >&6; } 4005fi 4006 4007 4008 test -n "$AWK" && break 4009done 4010 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4012$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4013set x ${MAKE-make} 4014ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4015if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 cat >conftest.make <<\_ACEOF 4019SHELL = /bin/sh 4020all: 4021 @echo '@@@%%%=$(MAKE)=@@@%%%' 4022_ACEOF 4023# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4024case `${MAKE-make} -f conftest.make 2>/dev/null` in 4025 *@@@%%%=?*=@@@%%%*) 4026 eval ac_cv_prog_make_${ac_make}_set=yes;; 4027 *) 4028 eval ac_cv_prog_make_${ac_make}_set=no;; 4029esac 4030rm -f conftest.make 4031fi 4032if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4034$as_echo "yes" >&6; } 4035 SET_MAKE= 4036else 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4038$as_echo "no" >&6; } 4039 SET_MAKE="MAKE=${MAKE-make}" 4040fi 4041 4042rm -rf .tst 2>/dev/null 4043mkdir .tst 2>/dev/null 4044if test -d .tst; then 4045 am__leading_dot=. 4046else 4047 am__leading_dot=_ 4048fi 4049rmdir .tst 2>/dev/null 4050 4051DEPDIR="${am__leading_dot}deps" 4052 4053ac_config_commands="$ac_config_commands depfiles" 4054 4055 4056am_make=${MAKE-make} 4057cat > confinc << 'END' 4058am__doit: 4059 @echo this is the am__doit target 4060.PHONY: am__doit 4061END 4062# If we don't find an include directive, just comment out the code. 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4064$as_echo_n "checking for style of include used by $am_make... " >&6; } 4065am__include="#" 4066am__quote= 4067_am_result=none 4068# First try GNU make style include. 4069echo "include confinc" > confmf 4070# Ignore all kinds of additional output from 'make'. 4071case `$am_make -s -f confmf 2> /dev/null` in #( 4072*the\ am__doit\ target*) 4073 am__include=include 4074 am__quote= 4075 _am_result=GNU 4076 ;; 4077esac 4078# Now try BSD make style include. 4079if test "$am__include" = "#"; then 4080 echo '.include "confinc"' > confmf 4081 case `$am_make -s -f confmf 2> /dev/null` in #( 4082 *the\ am__doit\ target*) 4083 am__include=.include 4084 am__quote="\"" 4085 _am_result=BSD 4086 ;; 4087 esac 4088fi 4089 4090 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4092$as_echo "$_am_result" >&6; } 4093rm -f confinc confmf 4094 4095# Check whether --enable-dependency-tracking was given. 4096if test "${enable_dependency_tracking+set}" = set; then : 4097 enableval=$enable_dependency_tracking; 4098fi 4099 4100if test "x$enable_dependency_tracking" != xno; then 4101 am_depcomp="$ac_aux_dir/depcomp" 4102 AMDEPBACKSLASH='\' 4103 am__nodep='_no' 4104fi 4105 if test "x$enable_dependency_tracking" != xno; then 4106 AMDEP_TRUE= 4107 AMDEP_FALSE='#' 4108else 4109 AMDEP_TRUE='#' 4110 AMDEP_FALSE= 4111fi 4112 4113 4114# Check whether --enable-silent-rules was given. 4115if test "${enable_silent_rules+set}" = set; then : 4116 enableval=$enable_silent_rules; 4117fi 4118 4119case $enable_silent_rules in # ((( 4120 yes) AM_DEFAULT_VERBOSITY=0;; 4121 no) AM_DEFAULT_VERBOSITY=1;; 4122 *) AM_DEFAULT_VERBOSITY=1;; 4123esac 4124am_make=${MAKE-make} 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4126$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4127if ${am_cv_make_support_nested_variables+:} false; then : 4128 $as_echo_n "(cached) " >&6 4129else 4130 if $as_echo 'TRUE=$(BAR$(V)) 4131BAR0=false 4132BAR1=true 4133V=1 4134am__doit: 4135 @$(TRUE) 4136.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4137 am_cv_make_support_nested_variables=yes 4138else 4139 am_cv_make_support_nested_variables=no 4140fi 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4143$as_echo "$am_cv_make_support_nested_variables" >&6; } 4144if test $am_cv_make_support_nested_variables = yes; then 4145 AM_V='$(V)' 4146 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4147else 4148 AM_V=$AM_DEFAULT_VERBOSITY 4149 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4150fi 4151AM_BACKSLASH='\' 4152 4153if test "`cd $srcdir && pwd`" != "`pwd`"; then 4154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4155 # is not polluted with repeated "-I." 4156 am__isrc=' -I$(srcdir)' 4157 # test to see if srcdir already configured 4158 if test -f $srcdir/config.status; then 4159 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4160 fi 4161fi 4162 4163# test whether we have cygpath 4164if test -z "$CYGPATH_W"; then 4165 if (cygpath --version) >/dev/null 2>/dev/null; then 4166 CYGPATH_W='cygpath -w' 4167 else 4168 CYGPATH_W=echo 4169 fi 4170fi 4171 4172 4173# Define the identity of the package. 4174 PACKAGE='binutils' 4175 VERSION='2.34' 4176 4177 4178cat >>confdefs.h <<_ACEOF 4179#define PACKAGE "$PACKAGE" 4180_ACEOF 4181 4182 4183cat >>confdefs.h <<_ACEOF 4184#define VERSION "$VERSION" 4185_ACEOF 4186 4187# Some tools Automake needs. 4188 4189ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4190 4191 4192AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4193 4194 4195AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4196 4197 4198AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4199 4200 4201MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4202 4203# For better backward compatibility. To be removed once Automake 1.9.x 4204# dies out for good. For more background, see: 4205# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4206# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4207mkdir_p='$(MKDIR_P)' 4208 4209# We need awk for the "check" target (and possibly the TAP driver). The 4210# system "awk" is bad on some platforms. 4211# Always define AMTAR for backward compatibility. Yes, it's still used 4212# in the wild :-( We should find a proper way to deprecate it ... 4213AMTAR='$${TAR-tar}' 4214 4215 4216# We'll loop over all known methods to create a tar archive until one works. 4217_am_tools='gnutar pax cpio none' 4218 4219am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4220 4221 4222 4223 4224 4225depcc="$CC" am_compiler_list= 4226 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4228$as_echo_n "checking dependency style of $depcc... " >&6; } 4229if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4233 # We make a subdir and do the tests there. Otherwise we can end up 4234 # making bogus files that we don't know about and never remove. For 4235 # instance it was reported that on HP-UX the gcc test will end up 4236 # making a dummy file named 'D' -- because '-MD' means "put the output 4237 # in D". 4238 rm -rf conftest.dir 4239 mkdir conftest.dir 4240 # Copy depcomp to subdir because otherwise we won't find it if we're 4241 # using a relative directory. 4242 cp "$am_depcomp" conftest.dir 4243 cd conftest.dir 4244 # We will build objects and dependencies in a subdirectory because 4245 # it helps to detect inapplicable dependency modes. For instance 4246 # both Tru64's cc and ICC support -MD to output dependencies as a 4247 # side effect of compilation, but ICC will put the dependencies in 4248 # the current directory while Tru64 will put them in the object 4249 # directory. 4250 mkdir sub 4251 4252 am_cv_CC_dependencies_compiler_type=none 4253 if test "$am_compiler_list" = ""; then 4254 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4255 fi 4256 am__universal=false 4257 case " $depcc " in #( 4258 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4259 esac 4260 4261 for depmode in $am_compiler_list; do 4262 # Setup a source with many dependencies, because some compilers 4263 # like to wrap large dependency lists on column 80 (with \), and 4264 # we should not choose a depcomp mode which is confused by this. 4265 # 4266 # We need to recreate these files for each test, as the compiler may 4267 # overwrite some of them when testing with obscure command lines. 4268 # This happens at least with the AIX C compiler. 4269 : > sub/conftest.c 4270 for i in 1 2 3 4 5 6; do 4271 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4272 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4273 # Solaris 10 /bin/sh. 4274 echo '/* dummy */' > sub/conftst$i.h 4275 done 4276 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4277 4278 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4279 # mode. It turns out that the SunPro C++ compiler does not properly 4280 # handle '-M -o', and we need to detect this. Also, some Intel 4281 # versions had trouble with output in subdirs. 4282 am__obj=sub/conftest.${OBJEXT-o} 4283 am__minus_obj="-o $am__obj" 4284 case $depmode in 4285 gcc) 4286 # This depmode causes a compiler race in universal mode. 4287 test "$am__universal" = false || continue 4288 ;; 4289 nosideeffect) 4290 # After this tag, mechanisms are not by side-effect, so they'll 4291 # only be used when explicitly requested. 4292 if test "x$enable_dependency_tracking" = xyes; then 4293 continue 4294 else 4295 break 4296 fi 4297 ;; 4298 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4299 # This compiler won't grok '-c -o', but also, the minuso test has 4300 # not run yet. These depmodes are late enough in the game, and 4301 # so weak that their functioning should not be impacted. 4302 am__obj=conftest.${OBJEXT-o} 4303 am__minus_obj= 4304 ;; 4305 none) break ;; 4306 esac 4307 if depmode=$depmode \ 4308 source=sub/conftest.c object=$am__obj \ 4309 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4310 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4311 >/dev/null 2>conftest.err && 4312 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4313 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4314 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4315 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4316 # icc doesn't choke on unknown options, it will just issue warnings 4317 # or remarks (even with -Werror). So we grep stderr for any message 4318 # that says an option was ignored or not supported. 4319 # When given -MP, icc 7.0 and 7.1 complain thusly: 4320 # icc: Command line warning: ignoring option '-M'; no argument required 4321 # The diagnosis changed in icc 8.0: 4322 # icc: Command line remark: option '-MP' not supported 4323 if (grep 'ignoring option' conftest.err || 4324 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4325 am_cv_CC_dependencies_compiler_type=$depmode 4326 break 4327 fi 4328 fi 4329 done 4330 4331 cd .. 4332 rm -rf conftest.dir 4333else 4334 am_cv_CC_dependencies_compiler_type=none 4335fi 4336 4337fi 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4339$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4340CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4341 4342 if 4343 test "x$enable_dependency_tracking" != xno \ 4344 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4345 am__fastdepCC_TRUE= 4346 am__fastdepCC_FALSE='#' 4347else 4348 am__fastdepCC_TRUE='#' 4349 am__fastdepCC_FALSE= 4350fi 4351 4352 4353 4354# POSIX will say in a future version that running "rm -f" with no argument 4355# is OK; and we want to be able to make that assumption in our Makefile 4356# recipes. So use an aggressive probe to check that the usage we want is 4357# actually supported "in the wild" to an acceptable degree. 4358# See automake bug#10828. 4359# To make any issue more visible, cause the running configure to be aborted 4360# by default if the 'rm' program in use doesn't match our expectations; the 4361# user can still override this though. 4362if rm -f && rm -fr && rm -rf; then : OK; else 4363 cat >&2 <<'END' 4364Oops! 4365 4366Your 'rm' program seems unable to run without file operands specified 4367on the command line, even when the '-f' option is present. This is contrary 4368to the behaviour of most rm programs out there, and not conforming with 4369the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4370 4371Please tell bug-automake@gnu.org about your system, including the value 4372of your $PATH and any error possibly output before this message. This 4373can help us improve future automake versions. 4374 4375END 4376 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4377 echo 'Configuration will proceed anyway, since you have set the' >&2 4378 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4379 echo >&2 4380 else 4381 cat >&2 <<'END' 4382Aborting the configuration process, to ensure you take notice of the issue. 4383 4384You can download and install GNU coreutils to get an 'rm' implementation 4385that behaves properly: <http://www.gnu.org/software/coreutils/>. 4386 4387If you want to complete the configuration process using your problematic 4388'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4389to "yes", and re-run configure. 4390 4391END 4392 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4393 fi 4394fi 4395 4396 4397ac_ext=c 4398ac_cpp='$CPP $CPPFLAGS' 4399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4401ac_compiler_gnu=$ac_cv_c_compiler_gnu 4402if test -n "$ac_tool_prefix"; then 4403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4404set dummy ${ac_tool_prefix}gcc; ac_word=$2 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4406$as_echo_n "checking for $ac_word... " >&6; } 4407if ${ac_cv_prog_CC+:} false; then : 4408 $as_echo_n "(cached) " >&6 4409else 4410 if test -n "$CC"; then 4411 ac_cv_prog_CC="$CC" # Let the user override the test. 4412else 4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 test -z "$as_dir" && as_dir=. 4418 for ac_exec_ext in '' $ac_executable_extensions; do 4419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4420 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4422 break 2 4423 fi 4424done 4425 done 4426IFS=$as_save_IFS 4427 4428fi 4429fi 4430CC=$ac_cv_prog_CC 4431if test -n "$CC"; then 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4433$as_echo "$CC" >&6; } 4434else 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4436$as_echo "no" >&6; } 4437fi 4438 4439 4440fi 4441if test -z "$ac_cv_prog_CC"; then 4442 ac_ct_CC=$CC 4443 # Extract the first word of "gcc", so it can be a program name with args. 4444set dummy gcc; ac_word=$2 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4446$as_echo_n "checking for $ac_word... " >&6; } 4447if ${ac_cv_prog_ac_ct_CC+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 if test -n "$ac_ct_CC"; then 4451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4452else 4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4454for as_dir in $PATH 4455do 4456 IFS=$as_save_IFS 4457 test -z "$as_dir" && as_dir=. 4458 for ac_exec_ext in '' $ac_executable_extensions; do 4459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4460 ac_cv_prog_ac_ct_CC="gcc" 4461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4462 break 2 4463 fi 4464done 4465 done 4466IFS=$as_save_IFS 4467 4468fi 4469fi 4470ac_ct_CC=$ac_cv_prog_ac_ct_CC 4471if test -n "$ac_ct_CC"; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4473$as_echo "$ac_ct_CC" >&6; } 4474else 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4476$as_echo "no" >&6; } 4477fi 4478 4479 if test "x$ac_ct_CC" = x; then 4480 CC="" 4481 else 4482 case $cross_compiling:$ac_tool_warned in 4483yes:) 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4486ac_tool_warned=yes ;; 4487esac 4488 CC=$ac_ct_CC 4489 fi 4490else 4491 CC="$ac_cv_prog_CC" 4492fi 4493 4494if test -z "$CC"; then 4495 if test -n "$ac_tool_prefix"; then 4496 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4497set dummy ${ac_tool_prefix}cc; ac_word=$2 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4499$as_echo_n "checking for $ac_word... " >&6; } 4500if ${ac_cv_prog_CC+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -n "$CC"; then 4504 ac_cv_prog_CC="$CC" # Let the user override the test. 4505else 4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_exec_ext in '' $ac_executable_extensions; do 4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4513 ac_cv_prog_CC="${ac_tool_prefix}cc" 4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4515 break 2 4516 fi 4517done 4518 done 4519IFS=$as_save_IFS 4520 4521fi 4522fi 4523CC=$ac_cv_prog_CC 4524if test -n "$CC"; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4526$as_echo "$CC" >&6; } 4527else 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4529$as_echo "no" >&6; } 4530fi 4531 4532 4533 fi 4534fi 4535if test -z "$CC"; then 4536 # Extract the first word of "cc", so it can be a program name with args. 4537set dummy cc; ac_word=$2 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4539$as_echo_n "checking for $ac_word... " >&6; } 4540if ${ac_cv_prog_CC+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 if test -n "$CC"; then 4544 ac_cv_prog_CC="$CC" # Let the user override the test. 4545else 4546 ac_prog_rejected=no 4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4548for as_dir in $PATH 4549do 4550 IFS=$as_save_IFS 4551 test -z "$as_dir" && as_dir=. 4552 for ac_exec_ext in '' $ac_executable_extensions; do 4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4555 ac_prog_rejected=yes 4556 continue 4557 fi 4558 ac_cv_prog_CC="cc" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566if test $ac_prog_rejected = yes; then 4567 # We found a bogon in the path, so make sure we never use it. 4568 set dummy $ac_cv_prog_CC 4569 shift 4570 if test $# != 0; then 4571 # We chose a different compiler from the bogus one. 4572 # However, it has the same basename, so the bogon will be chosen 4573 # first if we set CC to just the basename; use the full file name. 4574 shift 4575 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4576 fi 4577fi 4578fi 4579fi 4580CC=$ac_cv_prog_CC 4581if test -n "$CC"; then 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4583$as_echo "$CC" >&6; } 4584else 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4586$as_echo "no" >&6; } 4587fi 4588 4589 4590fi 4591if test -z "$CC"; then 4592 if test -n "$ac_tool_prefix"; then 4593 for ac_prog in cl.exe 4594 do 4595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4596set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4598$as_echo_n "checking for $ac_word... " >&6; } 4599if ${ac_cv_prog_CC+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601else 4602 if test -n "$CC"; then 4603 ac_cv_prog_CC="$CC" # Let the user override the test. 4604else 4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606for as_dir in $PATH 4607do 4608 IFS=$as_save_IFS 4609 test -z "$as_dir" && as_dir=. 4610 for ac_exec_ext in '' $ac_executable_extensions; do 4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4614 break 2 4615 fi 4616done 4617 done 4618IFS=$as_save_IFS 4619 4620fi 4621fi 4622CC=$ac_cv_prog_CC 4623if test -n "$CC"; then 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4625$as_echo "$CC" >&6; } 4626else 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628$as_echo "no" >&6; } 4629fi 4630 4631 4632 test -n "$CC" && break 4633 done 4634fi 4635if test -z "$CC"; then 4636 ac_ct_CC=$CC 4637 for ac_prog in cl.exe 4638do 4639 # Extract the first word of "$ac_prog", so it can be a program name with args. 4640set dummy $ac_prog; ac_word=$2 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4642$as_echo_n "checking for $ac_word... " >&6; } 4643if ${ac_cv_prog_ac_ct_CC+:} false; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 if test -n "$ac_ct_CC"; then 4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4648else 4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4650for as_dir in $PATH 4651do 4652 IFS=$as_save_IFS 4653 test -z "$as_dir" && as_dir=. 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4656 ac_cv_prog_ac_ct_CC="$ac_prog" 4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661 done 4662IFS=$as_save_IFS 4663 4664fi 4665fi 4666ac_ct_CC=$ac_cv_prog_ac_ct_CC 4667if test -n "$ac_ct_CC"; then 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4669$as_echo "$ac_ct_CC" >&6; } 4670else 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4672$as_echo "no" >&6; } 4673fi 4674 4675 4676 test -n "$ac_ct_CC" && break 4677done 4678 4679 if test "x$ac_ct_CC" = x; then 4680 CC="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 CC=$ac_ct_CC 4689 fi 4690fi 4691 4692fi 4693 4694 4695test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4697as_fn_error $? "no acceptable C compiler found in \$PATH 4698See \`config.log' for more details" "$LINENO" 5; } 4699 4700# Provide some information about the compiler. 4701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4702set X $ac_compile 4703ac_compiler=$2 4704for ac_option in --version -v -V -qversion; do 4705 { { ac_try="$ac_compiler $ac_option >&5" 4706case "(($ac_try" in 4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4708 *) ac_try_echo=$ac_try;; 4709esac 4710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4711$as_echo "$ac_try_echo"; } >&5 4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4713 ac_status=$? 4714 if test -s conftest.err; then 4715 sed '10a\ 4716... rest of stderr output deleted ... 4717 10q' conftest.err >conftest.er1 4718 cat conftest.er1 >&5 4719 fi 4720 rm -f conftest.er1 conftest.err 4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4722 test $ac_status = 0; } 4723done 4724 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4726$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4727if ${ac_cv_c_compiler_gnu+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732 4733int 4734main () 4735{ 4736#ifndef __GNUC__ 4737 choke me 4738#endif 4739 4740 ; 4741 return 0; 4742} 4743_ACEOF 4744if ac_fn_c_try_compile "$LINENO"; then : 4745 ac_compiler_gnu=yes 4746else 4747 ac_compiler_gnu=no 4748fi 4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4750ac_cv_c_compiler_gnu=$ac_compiler_gnu 4751 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4754$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4755if test $ac_compiler_gnu = yes; then 4756 GCC=yes 4757else 4758 GCC= 4759fi 4760ac_test_CFLAGS=${CFLAGS+set} 4761ac_save_CFLAGS=$CFLAGS 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4763$as_echo_n "checking whether $CC accepts -g... " >&6; } 4764if ${ac_cv_prog_cc_g+:} false; then : 4765 $as_echo_n "(cached) " >&6 4766else 4767 ac_save_c_werror_flag=$ac_c_werror_flag 4768 ac_c_werror_flag=yes 4769 ac_cv_prog_cc_g=no 4770 CFLAGS="-g" 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4772/* end confdefs.h. */ 4773 4774int 4775main () 4776{ 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO"; then : 4783 ac_cv_prog_cc_g=yes 4784else 4785 CFLAGS="" 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787/* end confdefs.h. */ 4788 4789int 4790main () 4791{ 4792 4793 ; 4794 return 0; 4795} 4796_ACEOF 4797if ac_fn_c_try_compile "$LINENO"; then : 4798 4799else 4800 ac_c_werror_flag=$ac_save_c_werror_flag 4801 CFLAGS="-g" 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804 4805int 4806main () 4807{ 4808 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813if ac_fn_c_try_compile "$LINENO"; then : 4814 ac_cv_prog_cc_g=yes 4815fi 4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4817fi 4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4819fi 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4821 ac_c_werror_flag=$ac_save_c_werror_flag 4822fi 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4824$as_echo "$ac_cv_prog_cc_g" >&6; } 4825if test "$ac_test_CFLAGS" = set; then 4826 CFLAGS=$ac_save_CFLAGS 4827elif test $ac_cv_prog_cc_g = yes; then 4828 if test "$GCC" = yes; then 4829 CFLAGS="-g -O2" 4830 else 4831 CFLAGS="-g" 4832 fi 4833else 4834 if test "$GCC" = yes; then 4835 CFLAGS="-O2" 4836 else 4837 CFLAGS= 4838 fi 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4841$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4842if ${ac_cv_prog_cc_c89+:} false; then : 4843 $as_echo_n "(cached) " >&6 4844else 4845 ac_cv_prog_cc_c89=no 4846ac_save_CC=$CC 4847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849#include <stdarg.h> 4850#include <stdio.h> 4851struct stat; 4852/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4853struct buf { int x; }; 4854FILE * (*rcsopen) (struct buf *, struct stat *, int); 4855static char *e (p, i) 4856 char **p; 4857 int i; 4858{ 4859 return p[i]; 4860} 4861static char *f (char * (*g) (char **, int), char **p, ...) 4862{ 4863 char *s; 4864 va_list v; 4865 va_start (v,p); 4866 s = g (p, va_arg (v,int)); 4867 va_end (v); 4868 return s; 4869} 4870 4871/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4872 function prototypes and stuff, but not '\xHH' hex character constants. 4873 These don't provoke an error unfortunately, instead are silently treated 4874 as 'x'. The following induces an error, until -std is added to get 4875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4876 array size at least. It's necessary to write '\x00'==0 to get something 4877 that's true only with -std. */ 4878int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4879 4880/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4881 inside strings and character constants. */ 4882#define FOO(x) 'x' 4883int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4884 4885int test (int i, double x); 4886struct s1 {int (*f) (int a);}; 4887struct s2 {int (*f) (double a);}; 4888int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4889int argc; 4890char **argv; 4891int 4892main () 4893{ 4894return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4895 ; 4896 return 0; 4897} 4898_ACEOF 4899for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4901do 4902 CC="$ac_save_CC $ac_arg" 4903 if ac_fn_c_try_compile "$LINENO"; then : 4904 ac_cv_prog_cc_c89=$ac_arg 4905fi 4906rm -f core conftest.err conftest.$ac_objext 4907 test "x$ac_cv_prog_cc_c89" != "xno" && break 4908done 4909rm -f conftest.$ac_ext 4910CC=$ac_save_CC 4911 4912fi 4913# AC_CACHE_VAL 4914case "x$ac_cv_prog_cc_c89" in 4915 x) 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4917$as_echo "none needed" >&6; } ;; 4918 xno) 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4920$as_echo "unsupported" >&6; } ;; 4921 *) 4922 CC="$CC $ac_cv_prog_cc_c89" 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4924$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4925esac 4926if test "x$ac_cv_prog_cc_c89" != xno; then : 4927 4928fi 4929 4930ac_ext=c 4931ac_cpp='$CPP $CPPFLAGS' 4932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4934ac_compiler_gnu=$ac_cv_c_compiler_gnu 4935 4936ac_ext=c 4937ac_cpp='$CPP $CPPFLAGS' 4938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4940ac_compiler_gnu=$ac_cv_c_compiler_gnu 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4942$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4943if ${am_cv_prog_cc_c_o+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948 4949int 4950main () 4951{ 4952 4953 ; 4954 return 0; 4955} 4956_ACEOF 4957 # Make sure it works both with $CC and with simple cc. 4958 # Following AC_PROG_CC_C_O, we do the test twice because some 4959 # compilers refuse to overwrite an existing .o file with -o, 4960 # though they will create one. 4961 am_cv_prog_cc_c_o=yes 4962 for am_i in 1 2; do 4963 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4964 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4965 ac_status=$? 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4967 (exit $ac_status); } \ 4968 && test -f conftest2.$ac_objext; then 4969 : OK 4970 else 4971 am_cv_prog_cc_c_o=no 4972 break 4973 fi 4974 done 4975 rm -f core conftest* 4976 unset am_i 4977fi 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4979$as_echo "$am_cv_prog_cc_c_o" >&6; } 4980if test "$am_cv_prog_cc_c_o" != yes; then 4981 # Losing compiler, so override with the script. 4982 # FIXME: It is wrong to rewrite CC. 4983 # But if we don't then we get into trouble of one sort or another. 4984 # A longer-term fix would be to have automake use am__CC in this case, 4985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4986 CC="$am_aux_dir/compile $CC" 4987fi 4988ac_ext=c 4989ac_cpp='$CPP $CPPFLAGS' 4990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4992ac_compiler_gnu=$ac_cv_c_compiler_gnu 4993 4994 4995ac_ext=c 4996ac_cpp='$CPP $CPPFLAGS' 4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4999ac_compiler_gnu=$ac_cv_c_compiler_gnu 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5001$as_echo_n "checking how to run the C preprocessor... " >&6; } 5002# On Suns, sometimes $CPP names a directory. 5003if test -n "$CPP" && test -d "$CPP"; then 5004 CPP= 5005fi 5006if test -z "$CPP"; then 5007 if ${ac_cv_prog_CPP+:} false; then : 5008 $as_echo_n "(cached) " >&6 5009else 5010 # Double quotes because CPP needs to be expanded 5011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5012 do 5013 ac_preproc_ok=false 5014for ac_c_preproc_warn_flag in '' yes 5015do 5016 # Use a header file that comes with gcc, so configuring glibc 5017 # with a fresh cross-compiler works. 5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5019 # <limits.h> exists even on freestanding compilers. 5020 # On the NeXT, cc -E runs the code through the compiler's parser, 5021 # not just through cpp. "Syntax error" is here to catch this case. 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024#ifdef __STDC__ 5025# include <limits.h> 5026#else 5027# include <assert.h> 5028#endif 5029 Syntax error 5030_ACEOF 5031if ac_fn_c_try_cpp "$LINENO"; then : 5032 5033else 5034 # Broken: fails on valid input. 5035continue 5036fi 5037rm -f conftest.err conftest.i conftest.$ac_ext 5038 5039 # OK, works on sane cases. Now check whether nonexistent headers 5040 # can be detected and how. 5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042/* end confdefs.h. */ 5043#include <ac_nonexistent.h> 5044_ACEOF 5045if ac_fn_c_try_cpp "$LINENO"; then : 5046 # Broken: success on invalid input. 5047continue 5048else 5049 # Passes both tests. 5050ac_preproc_ok=: 5051break 5052fi 5053rm -f conftest.err conftest.i conftest.$ac_ext 5054 5055done 5056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5057rm -f conftest.i conftest.err conftest.$ac_ext 5058if $ac_preproc_ok; then : 5059 break 5060fi 5061 5062 done 5063 ac_cv_prog_CPP=$CPP 5064 5065fi 5066 CPP=$ac_cv_prog_CPP 5067else 5068 ac_cv_prog_CPP=$CPP 5069fi 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5071$as_echo "$CPP" >&6; } 5072ac_preproc_ok=false 5073for ac_c_preproc_warn_flag in '' yes 5074do 5075 # Use a header file that comes with gcc, so configuring glibc 5076 # with a fresh cross-compiler works. 5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5078 # <limits.h> exists even on freestanding compilers. 5079 # On the NeXT, cc -E runs the code through the compiler's parser, 5080 # not just through cpp. "Syntax error" is here to catch this case. 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082/* end confdefs.h. */ 5083#ifdef __STDC__ 5084# include <limits.h> 5085#else 5086# include <assert.h> 5087#endif 5088 Syntax error 5089_ACEOF 5090if ac_fn_c_try_cpp "$LINENO"; then : 5091 5092else 5093 # Broken: fails on valid input. 5094continue 5095fi 5096rm -f conftest.err conftest.i conftest.$ac_ext 5097 5098 # OK, works on sane cases. Now check whether nonexistent headers 5099 # can be detected and how. 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102#include <ac_nonexistent.h> 5103_ACEOF 5104if ac_fn_c_try_cpp "$LINENO"; then : 5105 # Broken: success on invalid input. 5106continue 5107else 5108 # Passes both tests. 5109ac_preproc_ok=: 5110break 5111fi 5112rm -f conftest.err conftest.i conftest.$ac_ext 5113 5114done 5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5116rm -f conftest.i conftest.err conftest.$ac_ext 5117if $ac_preproc_ok; then : 5118 5119else 5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5122as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5123See \`config.log' for more details" "$LINENO" 5; } 5124fi 5125 5126ac_ext=c 5127ac_cpp='$CPP $CPPFLAGS' 5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5130ac_compiler_gnu=$ac_cv_c_compiler_gnu 5131 5132 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5134$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5135if ${ac_cv_path_GREP+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -z "$GREP"; then 5139 ac_path_GREP_found=false 5140 # Loop through the user's path and test for each of PROGNAME-LIST 5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_prog in grep ggrep; do 5147 for ac_exec_ext in '' $ac_executable_extensions; do 5148 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5149 as_fn_executable_p "$ac_path_GREP" || continue 5150# Check for GNU ac_path_GREP and select it if it is found. 5151 # Check for GNU $ac_path_GREP 5152case `"$ac_path_GREP" --version 2>&1` in 5153*GNU*) 5154 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5155*) 5156 ac_count=0 5157 $as_echo_n 0123456789 >"conftest.in" 5158 while : 5159 do 5160 cat "conftest.in" "conftest.in" >"conftest.tmp" 5161 mv "conftest.tmp" "conftest.in" 5162 cp "conftest.in" "conftest.nl" 5163 $as_echo 'GREP' >> "conftest.nl" 5164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5166 as_fn_arith $ac_count + 1 && ac_count=$as_val 5167 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5168 # Best one so far, save it but keep looking for a better one 5169 ac_cv_path_GREP="$ac_path_GREP" 5170 ac_path_GREP_max=$ac_count 5171 fi 5172 # 10*(2^10) chars as input seems more than enough 5173 test $ac_count -gt 10 && break 5174 done 5175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5176esac 5177 5178 $ac_path_GREP_found && break 3 5179 done 5180 done 5181 done 5182IFS=$as_save_IFS 5183 if test -z "$ac_cv_path_GREP"; then 5184 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5185 fi 5186else 5187 ac_cv_path_GREP=$GREP 5188fi 5189 5190fi 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5192$as_echo "$ac_cv_path_GREP" >&6; } 5193 GREP="$ac_cv_path_GREP" 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5197$as_echo_n "checking for egrep... " >&6; } 5198if ${ac_cv_path_EGREP+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5202 then ac_cv_path_EGREP="$GREP -E" 5203 else 5204 if test -z "$EGREP"; then 5205 ac_path_EGREP_found=false 5206 # Loop through the user's path and test for each of PROGNAME-LIST 5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5209do 5210 IFS=$as_save_IFS 5211 test -z "$as_dir" && as_dir=. 5212 for ac_prog in egrep; do 5213 for ac_exec_ext in '' $ac_executable_extensions; do 5214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5215 as_fn_executable_p "$ac_path_EGREP" || continue 5216# Check for GNU ac_path_EGREP and select it if it is found. 5217 # Check for GNU $ac_path_EGREP 5218case `"$ac_path_EGREP" --version 2>&1` in 5219*GNU*) 5220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5221*) 5222 ac_count=0 5223 $as_echo_n 0123456789 >"conftest.in" 5224 while : 5225 do 5226 cat "conftest.in" "conftest.in" >"conftest.tmp" 5227 mv "conftest.tmp" "conftest.in" 5228 cp "conftest.in" "conftest.nl" 5229 $as_echo 'EGREP' >> "conftest.nl" 5230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5232 as_fn_arith $ac_count + 1 && ac_count=$as_val 5233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5234 # Best one so far, save it but keep looking for a better one 5235 ac_cv_path_EGREP="$ac_path_EGREP" 5236 ac_path_EGREP_max=$ac_count 5237 fi 5238 # 10*(2^10) chars as input seems more than enough 5239 test $ac_count -gt 10 && break 5240 done 5241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5242esac 5243 5244 $ac_path_EGREP_found && break 3 5245 done 5246 done 5247 done 5248IFS=$as_save_IFS 5249 if test -z "$ac_cv_path_EGREP"; then 5250 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5251 fi 5252else 5253 ac_cv_path_EGREP=$EGREP 5254fi 5255 5256 fi 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5259$as_echo "$ac_cv_path_EGREP" >&6; } 5260 EGREP="$ac_cv_path_EGREP" 5261 5262 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5264$as_echo_n "checking for ANSI C header files... " >&6; } 5265if ${ac_cv_header_stdc+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267else 5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269/* end confdefs.h. */ 5270#include <stdlib.h> 5271#include <stdarg.h> 5272#include <string.h> 5273#include <float.h> 5274 5275int 5276main () 5277{ 5278 5279 ; 5280 return 0; 5281} 5282_ACEOF 5283if ac_fn_c_try_compile "$LINENO"; then : 5284 ac_cv_header_stdc=yes 5285else 5286 ac_cv_header_stdc=no 5287fi 5288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5289 5290if test $ac_cv_header_stdc = yes; then 5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5293/* end confdefs.h. */ 5294#include <string.h> 5295 5296_ACEOF 5297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5298 $EGREP "memchr" >/dev/null 2>&1; then : 5299 5300else 5301 ac_cv_header_stdc=no 5302fi 5303rm -f conftest* 5304 5305fi 5306 5307if test $ac_cv_header_stdc = yes; then 5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5310/* end confdefs.h. */ 5311#include <stdlib.h> 5312 5313_ACEOF 5314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5315 $EGREP "free" >/dev/null 2>&1; then : 5316 5317else 5318 ac_cv_header_stdc=no 5319fi 5320rm -f conftest* 5321 5322fi 5323 5324if test $ac_cv_header_stdc = yes; then 5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5326 if test "$cross_compiling" = yes; then : 5327 : 5328else 5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5330/* end confdefs.h. */ 5331#include <ctype.h> 5332#include <stdlib.h> 5333#if ((' ' & 0x0FF) == 0x020) 5334# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5335# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5336#else 5337# define ISLOWER(c) \ 5338 (('a' <= (c) && (c) <= 'i') \ 5339 || ('j' <= (c) && (c) <= 'r') \ 5340 || ('s' <= (c) && (c) <= 'z')) 5341# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5342#endif 5343 5344#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5345int 5346main () 5347{ 5348 int i; 5349 for (i = 0; i < 256; i++) 5350 if (XOR (islower (i), ISLOWER (i)) 5351 || toupper (i) != TOUPPER (i)) 5352 return 2; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_c_try_run "$LINENO"; then : 5357 5358else 5359 ac_cv_header_stdc=no 5360fi 5361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5362 conftest.$ac_objext conftest.beam conftest.$ac_ext 5363fi 5364 5365fi 5366fi 5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5368$as_echo "$ac_cv_header_stdc" >&6; } 5369if test $ac_cv_header_stdc = yes; then 5370 5371$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5372 5373fi 5374 5375# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5376for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5377 inttypes.h stdint.h unistd.h 5378do : 5379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5380ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5381" 5382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5383 cat >>confdefs.h <<_ACEOF 5384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5385_ACEOF 5386 5387fi 5388 5389done 5390 5391 5392 5393 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5394if test "x$ac_cv_header_minix_config_h" = xyes; then : 5395 MINIX=yes 5396else 5397 MINIX= 5398fi 5399 5400 5401 if test "$MINIX" = yes; then 5402 5403$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5404 5405 5406$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5407 5408 5409$as_echo "#define _MINIX 1" >>confdefs.h 5410 5411 fi 5412 5413 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5415$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5416if ${ac_cv_safe_to_define___extensions__+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420/* end confdefs.h. */ 5421 5422# define __EXTENSIONS__ 1 5423 $ac_includes_default 5424int 5425main () 5426{ 5427 5428 ; 5429 return 0; 5430} 5431_ACEOF 5432if ac_fn_c_try_compile "$LINENO"; then : 5433 ac_cv_safe_to_define___extensions__=yes 5434else 5435 ac_cv_safe_to_define___extensions__=no 5436fi 5437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5438fi 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5440$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5441 test $ac_cv_safe_to_define___extensions__ = yes && 5442 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5443 5444 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5445 5446 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5447 5448 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5449 5450 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5451 5452 5453 5454 5455 5456case `pwd` in 5457 *\ * | *\ *) 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5459$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5460esac 5461 5462 5463 5464macro_version='2.2.7a' 5465macro_revision='1.3134' 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479ltmain="$ac_aux_dir/ltmain.sh" 5480 5481# Backslashify metacharacters that are still active within 5482# double-quoted strings. 5483sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5484 5485# Same as above, but do not quote variable references. 5486double_quote_subst='s/\(["`\\]\)/\\\1/g' 5487 5488# Sed substitution to delay expansion of an escaped shell variable in a 5489# double_quote_subst'ed string. 5490delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5491 5492# Sed substitution to delay expansion of an escaped single quote. 5493delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5494 5495# Sed substitution to avoid accidental globbing in evaled expressions 5496no_glob_subst='s/\*/\\\*/g' 5497 5498ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5499ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5500ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5501 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5503$as_echo_n "checking how to print strings... " >&6; } 5504# Test print first, because it will be a builtin if present. 5505if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5506 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5507 ECHO='print -r --' 5508elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5509 ECHO='printf %s\n' 5510else 5511 # Use this function as a fallback that always works. 5512 func_fallback_echo () 5513 { 5514 eval 'cat <<_LTECHO_EOF 5515$1 5516_LTECHO_EOF' 5517 } 5518 ECHO='func_fallback_echo' 5519fi 5520 5521# func_echo_all arg... 5522# Invoke $ECHO with all args, space-separated. 5523func_echo_all () 5524{ 5525 $ECHO "" 5526} 5527 5528case "$ECHO" in 5529 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5530$as_echo "printf" >&6; } ;; 5531 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5532$as_echo "print -r" >&6; } ;; 5533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5534$as_echo "cat" >&6; } ;; 5535esac 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5551$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5552if ${ac_cv_path_SED+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5556 for ac_i in 1 2 3 4 5 6 7; do 5557 ac_script="$ac_script$as_nl$ac_script" 5558 done 5559 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5560 { ac_script=; unset ac_script;} 5561 if test -z "$SED"; then 5562 ac_path_SED_found=false 5563 # Loop through the user's path and test for each of PROGNAME-LIST 5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5565for as_dir in $PATH 5566do 5567 IFS=$as_save_IFS 5568 test -z "$as_dir" && as_dir=. 5569 for ac_prog in sed gsed; do 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5572 as_fn_executable_p "$ac_path_SED" || continue 5573# Check for GNU ac_path_SED and select it if it is found. 5574 # Check for GNU $ac_path_SED 5575case `"$ac_path_SED" --version 2>&1` in 5576*GNU*) 5577 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5578*) 5579 ac_count=0 5580 $as_echo_n 0123456789 >"conftest.in" 5581 while : 5582 do 5583 cat "conftest.in" "conftest.in" >"conftest.tmp" 5584 mv "conftest.tmp" "conftest.in" 5585 cp "conftest.in" "conftest.nl" 5586 $as_echo '' >> "conftest.nl" 5587 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5589 as_fn_arith $ac_count + 1 && ac_count=$as_val 5590 if test $ac_count -gt ${ac_path_SED_max-0}; then 5591 # Best one so far, save it but keep looking for a better one 5592 ac_cv_path_SED="$ac_path_SED" 5593 ac_path_SED_max=$ac_count 5594 fi 5595 # 10*(2^10) chars as input seems more than enough 5596 test $ac_count -gt 10 && break 5597 done 5598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5599esac 5600 5601 $ac_path_SED_found && break 3 5602 done 5603 done 5604 done 5605IFS=$as_save_IFS 5606 if test -z "$ac_cv_path_SED"; then 5607 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5608 fi 5609else 5610 ac_cv_path_SED=$SED 5611fi 5612 5613fi 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5615$as_echo "$ac_cv_path_SED" >&6; } 5616 SED="$ac_cv_path_SED" 5617 rm -f conftest.sed 5618 5619test -z "$SED" && SED=sed 5620Xsed="$SED -e 1s/^X//" 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5633$as_echo_n "checking for fgrep... " >&6; } 5634if ${ac_cv_path_FGREP+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5638 then ac_cv_path_FGREP="$GREP -F" 5639 else 5640 if test -z "$FGREP"; then 5641 ac_path_FGREP_found=false 5642 # Loop through the user's path and test for each of PROGNAME-LIST 5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5645do 5646 IFS=$as_save_IFS 5647 test -z "$as_dir" && as_dir=. 5648 for ac_prog in fgrep; do 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5651 as_fn_executable_p "$ac_path_FGREP" || continue 5652# Check for GNU ac_path_FGREP and select it if it is found. 5653 # Check for GNU $ac_path_FGREP 5654case `"$ac_path_FGREP" --version 2>&1` in 5655*GNU*) 5656 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5657*) 5658 ac_count=0 5659 $as_echo_n 0123456789 >"conftest.in" 5660 while : 5661 do 5662 cat "conftest.in" "conftest.in" >"conftest.tmp" 5663 mv "conftest.tmp" "conftest.in" 5664 cp "conftest.in" "conftest.nl" 5665 $as_echo 'FGREP' >> "conftest.nl" 5666 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5668 as_fn_arith $ac_count + 1 && ac_count=$as_val 5669 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5670 # Best one so far, save it but keep looking for a better one 5671 ac_cv_path_FGREP="$ac_path_FGREP" 5672 ac_path_FGREP_max=$ac_count 5673 fi 5674 # 10*(2^10) chars as input seems more than enough 5675 test $ac_count -gt 10 && break 5676 done 5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5678esac 5679 5680 $ac_path_FGREP_found && break 3 5681 done 5682 done 5683 done 5684IFS=$as_save_IFS 5685 if test -z "$ac_cv_path_FGREP"; then 5686 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5687 fi 5688else 5689 ac_cv_path_FGREP=$FGREP 5690fi 5691 5692 fi 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5695$as_echo "$ac_cv_path_FGREP" >&6; } 5696 FGREP="$ac_cv_path_FGREP" 5697 5698 5699test -z "$GREP" && GREP=grep 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719# Check whether --with-gnu-ld was given. 5720if test "${with_gnu_ld+set}" = set; then : 5721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5722else 5723 with_gnu_ld=no 5724fi 5725 5726ac_prog=ld 5727if test "$GCC" = yes; then 5728 # Check if gcc -print-prog-name=ld gives a path. 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5730$as_echo_n "checking for ld used by $CC... " >&6; } 5731 case $host in 5732 *-*-mingw*) 5733 # gcc leaves a trailing carriage return which upsets mingw 5734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5735 *) 5736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5737 esac 5738 case $ac_prog in 5739 # Accept absolute paths. 5740 [\\/]* | ?:[\\/]*) 5741 re_direlt='/[^/][^/]*/\.\./' 5742 # Canonicalize the pathname of ld 5743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5746 done 5747 test -z "$LD" && LD="$ac_prog" 5748 ;; 5749 "") 5750 # If it fails, then pretend we aren't using GCC. 5751 ac_prog=ld 5752 ;; 5753 *) 5754 # If it is relative, then search for the first ld in PATH. 5755 with_gnu_ld=unknown 5756 ;; 5757 esac 5758elif test "$with_gnu_ld" = yes; then 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5760$as_echo_n "checking for GNU ld... " >&6; } 5761else 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5763$as_echo_n "checking for non-GNU ld... " >&6; } 5764fi 5765if ${lt_cv_path_LD+:} false; then : 5766 $as_echo_n "(cached) " >&6 5767else 5768 if test -z "$LD"; then 5769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5770 for ac_dir in $PATH; do 5771 IFS="$lt_save_ifs" 5772 test -z "$ac_dir" && ac_dir=. 5773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5774 lt_cv_path_LD="$ac_dir/$ac_prog" 5775 # Check to see if the program is GNU ld. I'd rather use --version, 5776 # but apparently some variants of GNU ld only accept -v. 5777 # Break only if it was the GNU/non-GNU ld that we prefer. 5778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5779 *GNU* | *'with BFD'*) 5780 test "$with_gnu_ld" != no && break 5781 ;; 5782 *) 5783 test "$with_gnu_ld" != yes && break 5784 ;; 5785 esac 5786 fi 5787 done 5788 IFS="$lt_save_ifs" 5789else 5790 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5791fi 5792fi 5793 5794LD="$lt_cv_path_LD" 5795if test -n "$LD"; then 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5797$as_echo "$LD" >&6; } 5798else 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800$as_echo "no" >&6; } 5801fi 5802test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5804$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5805if ${lt_cv_prog_gnu_ld+:} false; then : 5806 $as_echo_n "(cached) " >&6 5807else 5808 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5809case `$LD -v 2>&1 </dev/null` in 5810*GNU* | *'with BFD'*) 5811 lt_cv_prog_gnu_ld=yes 5812 ;; 5813*) 5814 lt_cv_prog_gnu_ld=no 5815 ;; 5816esac 5817fi 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5819$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5820with_gnu_ld=$lt_cv_prog_gnu_ld 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5831$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5832if ${lt_cv_path_NM+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 if test -n "$NM"; then 5836 # Let the user override the test. 5837 lt_cv_path_NM="$NM" 5838else 5839 lt_nm_to_check="${ac_tool_prefix}nm" 5840 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5841 lt_nm_to_check="$lt_nm_to_check nm" 5842 fi 5843 for lt_tmp_nm in $lt_nm_to_check; do 5844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5845 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5846 IFS="$lt_save_ifs" 5847 test -z "$ac_dir" && ac_dir=. 5848 tmp_nm="$ac_dir/$lt_tmp_nm" 5849 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5850 # Check to see if the nm accepts a BSD-compat flag. 5851 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5852 # nm: unknown option "B" ignored 5853 # Tru64's nm complains that /dev/null is an invalid object file 5854 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5855 */dev/null* | *'Invalid file or object type'*) 5856 lt_cv_path_NM="$tmp_nm -B" 5857 break 5858 ;; 5859 *) 5860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5861 */dev/null*) 5862 lt_cv_path_NM="$tmp_nm -p" 5863 break 5864 ;; 5865 *) 5866 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5867 continue # so that we can try to find one that supports BSD flags 5868 ;; 5869 esac 5870 ;; 5871 esac 5872 fi 5873 done 5874 IFS="$lt_save_ifs" 5875 done 5876 : ${lt_cv_path_NM=no} 5877fi 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5880$as_echo "$lt_cv_path_NM" >&6; } 5881if test "$lt_cv_path_NM" != "no"; then 5882 NM="$lt_cv_path_NM" 5883else 5884 # Didn't find any BSD compatible name lister, look for dumpbin. 5885 if test -n "$DUMPBIN"; then : 5886 # Let the user override the test. 5887 else 5888 if test -n "$ac_tool_prefix"; then 5889 for ac_prog in dumpbin "link -dump" 5890 do 5891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5892set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5894$as_echo_n "checking for $ac_word... " >&6; } 5895if ${ac_cv_prog_DUMPBIN+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 if test -n "$DUMPBIN"; then 5899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5900else 5901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5902for as_dir in $PATH 5903do 5904 IFS=$as_save_IFS 5905 test -z "$as_dir" && as_dir=. 5906 for ac_exec_ext in '' $ac_executable_extensions; do 5907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5910 break 2 5911 fi 5912done 5913 done 5914IFS=$as_save_IFS 5915 5916fi 5917fi 5918DUMPBIN=$ac_cv_prog_DUMPBIN 5919if test -n "$DUMPBIN"; then 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5921$as_echo "$DUMPBIN" >&6; } 5922else 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924$as_echo "no" >&6; } 5925fi 5926 5927 5928 test -n "$DUMPBIN" && break 5929 done 5930fi 5931if test -z "$DUMPBIN"; then 5932 ac_ct_DUMPBIN=$DUMPBIN 5933 for ac_prog in dumpbin "link -dump" 5934do 5935 # Extract the first word of "$ac_prog", so it can be a program name with args. 5936set dummy $ac_prog; ac_word=$2 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5938$as_echo_n "checking for $ac_word... " >&6; } 5939if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 if test -n "$ac_ct_DUMPBIN"; then 5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5944else 5945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946for as_dir in $PATH 5947do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956done 5957 done 5958IFS=$as_save_IFS 5959 5960fi 5961fi 5962ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5963if test -n "$ac_ct_DUMPBIN"; then 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5965$as_echo "$ac_ct_DUMPBIN" >&6; } 5966else 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5968$as_echo "no" >&6; } 5969fi 5970 5971 5972 test -n "$ac_ct_DUMPBIN" && break 5973done 5974 5975 if test "x$ac_ct_DUMPBIN" = x; then 5976 DUMPBIN=":" 5977 else 5978 case $cross_compiling:$ac_tool_warned in 5979yes:) 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 DUMPBIN=$ac_ct_DUMPBIN 5985 fi 5986fi 5987 5988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5989 *COFF*) 5990 DUMPBIN="$DUMPBIN -symbols" 5991 ;; 5992 *) 5993 DUMPBIN=: 5994 ;; 5995 esac 5996 fi 5997 5998 if test "$DUMPBIN" != ":"; then 5999 NM="$DUMPBIN" 6000 fi 6001fi 6002test -z "$NM" && NM=nm 6003 6004 6005 6006 6007 6008 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6010$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6011if ${lt_cv_nm_interface+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 lt_cv_nm_interface="BSD nm" 6015 echo "int some_variable = 0;" > conftest.$ac_ext 6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6017 (eval "$ac_compile" 2>conftest.err) 6018 cat conftest.err >&5 6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6021 cat conftest.err >&5 6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6023 cat conftest.out >&5 6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6025 lt_cv_nm_interface="MS dumpbin" 6026 fi 6027 rm -f conftest* 6028fi 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6030$as_echo "$lt_cv_nm_interface" >&6; } 6031 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6033$as_echo_n "checking whether ln -s works... " >&6; } 6034LN_S=$as_ln_s 6035if test "$LN_S" = "ln -s"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6037$as_echo "yes" >&6; } 6038else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6040$as_echo "no, using $LN_S" >&6; } 6041fi 6042 6043# find the maximum length of command line arguments 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6045$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6046if ${lt_cv_sys_max_cmd_len+:} false; then : 6047 $as_echo_n "(cached) " >&6 6048else 6049 i=0 6050 teststring="ABCD" 6051 6052 case $build_os in 6053 msdosdjgpp*) 6054 # On DJGPP, this test can blow up pretty badly due to problems in libc 6055 # (any single argument exceeding 2000 bytes causes a buffer overrun 6056 # during glob expansion). Even if it were fixed, the result of this 6057 # check would be larger than it should be. 6058 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6059 ;; 6060 6061 gnu*) 6062 # Under GNU Hurd, this test is not required because there is 6063 # no limit to the length of command line arguments. 6064 # Libtool will interpret -1 as no limit whatsoever 6065 lt_cv_sys_max_cmd_len=-1; 6066 ;; 6067 6068 cygwin* | mingw* | cegcc*) 6069 # On Win9x/ME, this test blows up -- it succeeds, but takes 6070 # about 5 minutes as the teststring grows exponentially. 6071 # Worse, since 9x/ME are not pre-emptively multitasking, 6072 # you end up with a "frozen" computer, even though with patience 6073 # the test eventually succeeds (with a max line length of 256k). 6074 # Instead, let's just punt: use the minimum linelength reported by 6075 # all of the supported platforms: 8192 (on NT/2K/XP). 6076 lt_cv_sys_max_cmd_len=8192; 6077 ;; 6078 6079 mint*) 6080 # On MiNT this can take a long time and run out of memory. 6081 lt_cv_sys_max_cmd_len=8192; 6082 ;; 6083 6084 amigaos*) 6085 # On AmigaOS with pdksh, this test takes hours, literally. 6086 # So we just punt and use a minimum line length of 8192. 6087 lt_cv_sys_max_cmd_len=8192; 6088 ;; 6089 6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6091 # This has been around since 386BSD, at least. Likely further. 6092 if test -x /sbin/sysctl; then 6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6094 elif test -x /usr/sbin/sysctl; then 6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6096 else 6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6098 fi 6099 # And add a safety zone 6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6102 ;; 6103 6104 interix*) 6105 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6106 lt_cv_sys_max_cmd_len=196608 6107 ;; 6108 6109 osf*) 6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6112 # nice to cause kernel panics so lets avoid the loop below. 6113 # First set a reasonable default. 6114 lt_cv_sys_max_cmd_len=16384 6115 # 6116 if test -x /sbin/sysconfig; then 6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6118 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6119 esac 6120 fi 6121 ;; 6122 sco3.2v5*) 6123 lt_cv_sys_max_cmd_len=102400 6124 ;; 6125 sysv5* | sco5v6* | sysv4.2uw2*) 6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6127 if test -n "$kargmax"; then 6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6129 else 6130 lt_cv_sys_max_cmd_len=32768 6131 fi 6132 ;; 6133 *) 6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6135 if test -n "$lt_cv_sys_max_cmd_len"; then 6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6138 else 6139 # Make teststring a little bigger before we do anything with it. 6140 # a 1K string should be a reasonable start. 6141 for i in 1 2 3 4 5 6 7 8 ; do 6142 teststring=$teststring$teststring 6143 done 6144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6145 # If test is not a shell built-in, we'll probably end up computing a 6146 # maximum length that is only half of the actual maximum length, but 6147 # we can't tell. 6148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6149 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6150 test $i != 17 # 1/2 MB should be enough 6151 do 6152 i=`expr $i + 1` 6153 teststring=$teststring$teststring 6154 done 6155 # Only check the string length outside the loop. 6156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6157 teststring= 6158 # Add a significant safety factor because C++ compilers can tack on 6159 # massive amounts of additional arguments before passing them to the 6160 # linker. It appears as though 1/2 is a usable value. 6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6162 fi 6163 ;; 6164 esac 6165 6166fi 6167 6168if test -n $lt_cv_sys_max_cmd_len ; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6170$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6173$as_echo "none" >&6; } 6174fi 6175max_cmd_len=$lt_cv_sys_max_cmd_len 6176 6177 6178 6179 6180 6181 6182: ${CP="cp -f"} 6183: ${MV="mv -f"} 6184: ${RM="rm -f"} 6185 6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6187$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6188# Try some XSI features 6189xsi_shell=no 6190( _lt_dummy="a/b/c" 6191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6192 = c,a/b,, \ 6193 && eval 'test $(( 1 + 1 )) -eq 2 \ 6194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6195 && xsi_shell=yes 6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6197$as_echo "$xsi_shell" >&6; } 6198 6199 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6201$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6202lt_shell_append=no 6203( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6204 >/dev/null 2>&1 \ 6205 && lt_shell_append=yes 6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6207$as_echo "$lt_shell_append" >&6; } 6208 6209 6210if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6211 lt_unset=unset 6212else 6213 lt_unset=false 6214fi 6215 6216 6217 6218 6219 6220# test EBCDIC or ASCII 6221case `echo X|tr X '\101'` in 6222 A) # ASCII based system 6223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6224 lt_SP2NL='tr \040 \012' 6225 lt_NL2SP='tr \015\012 \040\040' 6226 ;; 6227 *) # EBCDIC based system 6228 lt_SP2NL='tr \100 \n' 6229 lt_NL2SP='tr \r\n \100\100' 6230 ;; 6231esac 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6242$as_echo_n "checking for $LD option to reload object files... " >&6; } 6243if ${lt_cv_ld_reload_flag+:} false; then : 6244 $as_echo_n "(cached) " >&6 6245else 6246 lt_cv_ld_reload_flag='-r' 6247fi 6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6249$as_echo "$lt_cv_ld_reload_flag" >&6; } 6250reload_flag=$lt_cv_ld_reload_flag 6251case $reload_flag in 6252"" | " "*) ;; 6253*) reload_flag=" $reload_flag" ;; 6254esac 6255reload_cmds='$LD$reload_flag -o $output$reload_objs' 6256case $host_os in 6257 darwin*) 6258 if test "$GCC" = yes; then 6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6260 else 6261 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6262 fi 6263 ;; 6264esac 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274if test -n "$ac_tool_prefix"; then 6275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6276set dummy ${ac_tool_prefix}objdump; ac_word=$2 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278$as_echo_n "checking for $ac_word... " >&6; } 6279if ${ac_cv_prog_OBJDUMP+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 if test -n "$OBJDUMP"; then 6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6284else 6285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286for as_dir in $PATH 6287do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296done 6297 done 6298IFS=$as_save_IFS 6299 6300fi 6301fi 6302OBJDUMP=$ac_cv_prog_OBJDUMP 6303if test -n "$OBJDUMP"; then 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6305$as_echo "$OBJDUMP" >&6; } 6306else 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6308$as_echo "no" >&6; } 6309fi 6310 6311 6312fi 6313if test -z "$ac_cv_prog_OBJDUMP"; then 6314 ac_ct_OBJDUMP=$OBJDUMP 6315 # Extract the first word of "objdump", so it can be a program name with args. 6316set dummy objdump; ac_word=$2 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6318$as_echo_n "checking for $ac_word... " >&6; } 6319if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 if test -n "$ac_ct_OBJDUMP"; then 6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6324else 6325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326for as_dir in $PATH 6327do 6328 IFS=$as_save_IFS 6329 test -z "$as_dir" && as_dir=. 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6332 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336done 6337 done 6338IFS=$as_save_IFS 6339 6340fi 6341fi 6342ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6343if test -n "$ac_ct_OBJDUMP"; then 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6345$as_echo "$ac_ct_OBJDUMP" >&6; } 6346else 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6348$as_echo "no" >&6; } 6349fi 6350 6351 if test "x$ac_ct_OBJDUMP" = x; then 6352 OBJDUMP="false" 6353 else 6354 case $cross_compiling:$ac_tool_warned in 6355yes:) 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6358ac_tool_warned=yes ;; 6359esac 6360 OBJDUMP=$ac_ct_OBJDUMP 6361 fi 6362else 6363 OBJDUMP="$ac_cv_prog_OBJDUMP" 6364fi 6365 6366test -z "$OBJDUMP" && OBJDUMP=objdump 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6377$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6378if ${lt_cv_deplibs_check_method+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 lt_cv_file_magic_cmd='$MAGIC_CMD' 6382lt_cv_file_magic_test_file= 6383lt_cv_deplibs_check_method='unknown' 6384# Need to set the preceding variable on all platforms that support 6385# interlibrary dependencies. 6386# 'none' -- dependencies not supported. 6387# `unknown' -- same as none, but documents that we really don't know. 6388# 'pass_all' -- all dependencies passed with no checks. 6389# 'test_compile' -- check by making test program. 6390# 'file_magic [[regex]]' -- check by looking for files in library path 6391# which responds to the $file_magic_cmd with a given extended regex. 6392# If you have `file' or equivalent on your system and you're not sure 6393# whether `pass_all' will *always* work, you probably want this one. 6394 6395case $host_os in 6396aix[4-9]*) 6397 lt_cv_deplibs_check_method=pass_all 6398 ;; 6399 6400beos*) 6401 lt_cv_deplibs_check_method=pass_all 6402 ;; 6403 6404bsdi[45]*) 6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6406 lt_cv_file_magic_cmd='/usr/bin/file -L' 6407 lt_cv_file_magic_test_file=/shlib/libc.so 6408 ;; 6409 6410cygwin*) 6411 # func_win32_libid is a shell function defined in ltmain.sh 6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6413 lt_cv_file_magic_cmd='func_win32_libid' 6414 ;; 6415 6416mingw* | pw32*) 6417 # Base MSYS/MinGW do not provide the 'file' command needed by 6418 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6419 # unless we find 'file', for example because we are cross-compiling. 6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6423 lt_cv_file_magic_cmd='func_win32_libid' 6424 else 6425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6426 lt_cv_file_magic_cmd='$OBJDUMP -f' 6427 fi 6428 ;; 6429 6430cegcc*) 6431 # use the weaker test based on 'objdump'. See mingw*. 6432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6433 lt_cv_file_magic_cmd='$OBJDUMP -f' 6434 ;; 6435 6436darwin* | rhapsody*) 6437 lt_cv_deplibs_check_method=pass_all 6438 ;; 6439 6440freebsd* | dragonfly*) 6441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6442 case $host_cpu in 6443 i*86 ) 6444 # Not sure whether the presence of OpenBSD here was a mistake. 6445 # Let's accept both of them until this is cleared up. 6446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6447 lt_cv_file_magic_cmd=/usr/bin/file 6448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6449 ;; 6450 esac 6451 else 6452 lt_cv_deplibs_check_method=pass_all 6453 fi 6454 ;; 6455 6456gnu*) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459 6460haiku*) 6461 lt_cv_deplibs_check_method=pass_all 6462 ;; 6463 6464hpux10.20* | hpux11*) 6465 lt_cv_file_magic_cmd=/usr/bin/file 6466 case $host_cpu in 6467 ia64*) 6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6470 ;; 6471 hppa*64*) 6472 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]' 6473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6474 ;; 6475 *) 6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6477 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6478 ;; 6479 esac 6480 ;; 6481 6482interix[3-9]*) 6483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6485 ;; 6486 6487irix5* | irix6* | nonstopux*) 6488 case $LD in 6489 *-32|*"-32 ") libmagic=32-bit;; 6490 *-n32|*"-n32 ") libmagic=N32;; 6491 *-64|*"-64 ") libmagic=64-bit;; 6492 *) libmagic=never-match;; 6493 esac 6494 lt_cv_deplibs_check_method=pass_all 6495 ;; 6496 6497# This must be Linux ELF. 6498linux* | k*bsd*-gnu | kopensolaris*-gnu) 6499 lt_cv_deplibs_check_method=pass_all 6500 ;; 6501 6502netbsd*) 6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6505 else 6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6507 fi 6508 ;; 6509 6510newos6*) 6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6512 lt_cv_file_magic_cmd=/usr/bin/file 6513 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6514 ;; 6515 6516*nto* | *qnx*) 6517 lt_cv_deplibs_check_method=pass_all 6518 ;; 6519 6520openbsd*) 6521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6523 else 6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6525 fi 6526 ;; 6527 6528osf3* | osf4* | osf5*) 6529 lt_cv_deplibs_check_method=pass_all 6530 ;; 6531 6532rdos*) 6533 lt_cv_deplibs_check_method=pass_all 6534 ;; 6535 6536solaris*) 6537 lt_cv_deplibs_check_method=pass_all 6538 ;; 6539 6540sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6541 lt_cv_deplibs_check_method=pass_all 6542 ;; 6543 6544sysv4 | sysv4.3*) 6545 case $host_vendor in 6546 motorola) 6547 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]' 6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6549 ;; 6550 ncr) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 sequent) 6554 lt_cv_file_magic_cmd='/bin/file' 6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6556 ;; 6557 sni) 6558 lt_cv_file_magic_cmd='/bin/file' 6559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6560 lt_cv_file_magic_test_file=/lib/libc.so 6561 ;; 6562 siemens) 6563 lt_cv_deplibs_check_method=pass_all 6564 ;; 6565 pc) 6566 lt_cv_deplibs_check_method=pass_all 6567 ;; 6568 esac 6569 ;; 6570 6571tpf*) 6572 lt_cv_deplibs_check_method=pass_all 6573 ;; 6574esac 6575 6576fi 6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6578$as_echo "$lt_cv_deplibs_check_method" >&6; } 6579file_magic_cmd=$lt_cv_file_magic_cmd 6580deplibs_check_method=$lt_cv_deplibs_check_method 6581test -z "$deplibs_check_method" && deplibs_check_method=unknown 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594if test -n "$ac_tool_prefix"; then 6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6596set dummy ${ac_tool_prefix}ar; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if ${ac_cv_prog_AR+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$AR"; then 6603 ac_cv_prog_AR="$AR" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_AR="${ac_tool_prefix}ar" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622AR=$ac_cv_prog_AR 6623if test -n "$AR"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6625$as_echo "$AR" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 6632fi 6633if test -z "$ac_cv_prog_AR"; then 6634 ac_ct_AR=$AR 6635 # Extract the first word of "ar", so it can be a program name with args. 6636set dummy ar; ac_word=$2 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6638$as_echo_n "checking for $ac_word... " >&6; } 6639if ${ac_cv_prog_ac_ct_AR+:} false; then : 6640 $as_echo_n "(cached) " >&6 6641else 6642 if test -n "$ac_ct_AR"; then 6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6644else 6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6646for as_dir in $PATH 6647do 6648 IFS=$as_save_IFS 6649 test -z "$as_dir" && as_dir=. 6650 for ac_exec_ext in '' $ac_executable_extensions; do 6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6652 ac_cv_prog_ac_ct_AR="ar" 6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6654 break 2 6655 fi 6656done 6657 done 6658IFS=$as_save_IFS 6659 6660fi 6661fi 6662ac_ct_AR=$ac_cv_prog_ac_ct_AR 6663if test -n "$ac_ct_AR"; then 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6665$as_echo "$ac_ct_AR" >&6; } 6666else 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6668$as_echo "no" >&6; } 6669fi 6670 6671 if test "x$ac_ct_AR" = x; then 6672 AR="false" 6673 else 6674 case $cross_compiling:$ac_tool_warned in 6675yes:) 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6678ac_tool_warned=yes ;; 6679esac 6680 AR=$ac_ct_AR 6681 fi 6682else 6683 AR="$ac_cv_prog_AR" 6684fi 6685 6686test -z "$AR" && AR=ar 6687test -z "$AR_FLAGS" && AR_FLAGS=cru 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699if test -n "$ac_tool_prefix"; then 6700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6701set dummy ${ac_tool_prefix}strip; ac_word=$2 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703$as_echo_n "checking for $ac_word... " >&6; } 6704if ${ac_cv_prog_STRIP+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 if test -n "$STRIP"; then 6708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 test -z "$as_dir" && as_dir=. 6715 for ac_exec_ext in '' $ac_executable_extensions; do 6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6717 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6719 break 2 6720 fi 6721done 6722 done 6723IFS=$as_save_IFS 6724 6725fi 6726fi 6727STRIP=$ac_cv_prog_STRIP 6728if test -n "$STRIP"; then 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6730$as_echo "$STRIP" >&6; } 6731else 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6733$as_echo "no" >&6; } 6734fi 6735 6736 6737fi 6738if test -z "$ac_cv_prog_STRIP"; then 6739 ac_ct_STRIP=$STRIP 6740 # Extract the first word of "strip", so it can be a program name with args. 6741set dummy strip; ac_word=$2 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6743$as_echo_n "checking for $ac_word... " >&6; } 6744if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6745 $as_echo_n "(cached) " >&6 6746else 6747 if test -n "$ac_ct_STRIP"; then 6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6749else 6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6751for as_dir in $PATH 6752do 6753 IFS=$as_save_IFS 6754 test -z "$as_dir" && as_dir=. 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6757 ac_cv_prog_ac_ct_STRIP="strip" 6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6768if test -n "$ac_ct_STRIP"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6770$as_echo "$ac_ct_STRIP" >&6; } 6771else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773$as_echo "no" >&6; } 6774fi 6775 6776 if test "x$ac_ct_STRIP" = x; then 6777 STRIP=":" 6778 else 6779 case $cross_compiling:$ac_tool_warned in 6780yes:) 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6783ac_tool_warned=yes ;; 6784esac 6785 STRIP=$ac_ct_STRIP 6786 fi 6787else 6788 STRIP="$ac_cv_prog_STRIP" 6789fi 6790 6791test -z "$STRIP" && STRIP=: 6792 6793 6794 6795 6796 6797 6798if test -n "$ac_tool_prefix"; then 6799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6800set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6802$as_echo_n "checking for $ac_word... " >&6; } 6803if ${ac_cv_prog_RANLIB+:} false; then : 6804 $as_echo_n "(cached) " >&6 6805else 6806 if test -n "$RANLIB"; then 6807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6808else 6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6810for as_dir in $PATH 6811do 6812 IFS=$as_save_IFS 6813 test -z "$as_dir" && as_dir=. 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826RANLIB=$ac_cv_prog_RANLIB 6827if test -n "$RANLIB"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6829$as_echo "$RANLIB" >&6; } 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832$as_echo "no" >&6; } 6833fi 6834 6835 6836fi 6837if test -z "$ac_cv_prog_RANLIB"; then 6838 ac_ct_RANLIB=$RANLIB 6839 # Extract the first word of "ranlib", so it can be a program name with args. 6840set dummy ranlib; ac_word=$2 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6842$as_echo_n "checking for $ac_word... " >&6; } 6843if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 if test -n "$ac_ct_RANLIB"; then 6847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6848else 6849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850for as_dir in $PATH 6851do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6856 ac_cv_prog_ac_ct_RANLIB="ranlib" 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860done 6861 done 6862IFS=$as_save_IFS 6863 6864fi 6865fi 6866ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6867if test -n "$ac_ct_RANLIB"; then 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6869$as_echo "$ac_ct_RANLIB" >&6; } 6870else 6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6872$as_echo "no" >&6; } 6873fi 6874 6875 if test "x$ac_ct_RANLIB" = x; then 6876 RANLIB=":" 6877 else 6878 case $cross_compiling:$ac_tool_warned in 6879yes:) 6880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6882ac_tool_warned=yes ;; 6883esac 6884 RANLIB=$ac_ct_RANLIB 6885 fi 6886else 6887 RANLIB="$ac_cv_prog_RANLIB" 6888fi 6889 6890test -z "$RANLIB" && RANLIB=: 6891 6892 6893 6894 6895 6896 6897# Determine commands to create old-style static archives. 6898old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6899old_postinstall_cmds='chmod 644 $oldlib' 6900old_postuninstall_cmds= 6901 6902if test -n "$RANLIB"; then 6903 case $host_os in 6904 openbsd*) 6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6906 ;; 6907 *) 6908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6909 ;; 6910 esac 6911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6912fi 6913 6914case $host_os in 6915 darwin*) 6916 lock_old_archive_extraction=yes ;; 6917 *) 6918 lock_old_archive_extraction=no ;; 6919esac 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959# If no C compiler was specified, use CC. 6960LTCC=${LTCC-"$CC"} 6961 6962# If no C compiler flags were specified, use CFLAGS. 6963LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6964 6965# Allow CC to be a program name with arguments. 6966compiler=$CC 6967 6968 6969# Check for command to grab the raw symbol name followed by C symbol from nm. 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6971$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6972if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 6976# These are sane defaults that work on at least a few old systems. 6977# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6978 6979# Character class describing NM global symbol codes. 6980symcode='[BCDEGRST]' 6981 6982# Regexp to match symbols that can be accessed directly from C. 6983sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6984 6985# Define system-specific variables. 6986case $host_os in 6987aix*) 6988 symcode='[BCDT]' 6989 ;; 6990cygwin* | mingw* | pw32* | cegcc*) 6991 symcode='[ABCDGISTW]' 6992 ;; 6993hpux*) 6994 if test "$host_cpu" = ia64; then 6995 symcode='[ABCDEGRST]' 6996 fi 6997 ;; 6998irix* | nonstopux*) 6999 symcode='[BCDEGRST]' 7000 ;; 7001osf*) 7002 symcode='[BCDEGQRST]' 7003 ;; 7004solaris*) 7005 symcode='[BDRT]' 7006 ;; 7007sco3.2v5*) 7008 symcode='[DT]' 7009 ;; 7010sysv4.2uw2*) 7011 symcode='[DT]' 7012 ;; 7013sysv5* | sco5v6* | unixware* | OpenUNIX*) 7014 symcode='[ABDT]' 7015 ;; 7016sysv4) 7017 symcode='[DFNSTU]' 7018 ;; 7019esac 7020 7021# If we're using GNU nm, then use its standard symbol codes. 7022case `$NM -V 2>&1` in 7023*GNU* | *'with BFD'*) 7024 symcode='[ABCDGIRSTW]' ;; 7025esac 7026 7027# Transform an extracted symbol line into a proper C declaration. 7028# Some systems (esp. on ia64) link data and code symbols differently, 7029# so use this general approach. 7030lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7031 7032# Transform an extracted symbol line into symbol name and symbol address 7033lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7034lt_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'" 7035 7036# Handle CRLF in mingw tool chain 7037opt_cr= 7038case $build_os in 7039mingw*) 7040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7041 ;; 7042esac 7043 7044# Try without a prefix underscore, then with it. 7045for ac_symprfx in "" "_"; do 7046 7047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7048 symxfrm="\\1 $ac_symprfx\\2 \\2" 7049 7050 # Write the raw and C identifiers. 7051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7052 # Fake it for dumpbin and say T for any non-static function 7053 # and D for any global variable. 7054 # Also find C++ and __fastcall symbols from MSVC++, 7055 # which start with @ or ?. 7056 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7057" {last_section=section; section=\$ 3};"\ 7058" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7059" \$ 0!~/External *\|/{next};"\ 7060" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7061" {if(hide[section]) next};"\ 7062" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7063" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7064" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7065" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7066" ' prfx=^$ac_symprfx" 7067 else 7068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7069 fi 7070 7071 # Check to see that the pipe works correctly. 7072 pipe_works=no 7073 7074 rm -f conftest* 7075 cat > conftest.$ac_ext <<_LT_EOF 7076#ifdef __cplusplus 7077extern "C" { 7078#endif 7079char nm_test_var; 7080void nm_test_func(void); 7081void nm_test_func(void){} 7082#ifdef __cplusplus 7083} 7084#endif 7085int main(){nm_test_var='a';nm_test_func();return(0);} 7086_LT_EOF 7087 7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7089 (eval $ac_compile) 2>&5 7090 ac_status=$? 7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7092 test $ac_status = 0; }; then 7093 # Now try to grab the symbols. 7094 nlist=conftest.nm 7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7097 ac_status=$? 7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7099 test $ac_status = 0; } && test -s "$nlist"; then 7100 # Try sorting and uniquifying the output. 7101 if sort "$nlist" | uniq > "$nlist"T; then 7102 mv -f "$nlist"T "$nlist" 7103 else 7104 rm -f "$nlist"T 7105 fi 7106 7107 # Make sure that we snagged all the symbols we need. 7108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7110 cat <<_LT_EOF > conftest.$ac_ext 7111#ifdef __cplusplus 7112extern "C" { 7113#endif 7114 7115_LT_EOF 7116 # Now generate the symbol file. 7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7118 7119 cat <<_LT_EOF >> conftest.$ac_ext 7120 7121/* The mapping between symbol names and symbols. */ 7122const struct { 7123 const char *name; 7124 void *address; 7125} 7126lt__PROGRAM__LTX_preloaded_symbols[] = 7127{ 7128 { "@PROGRAM@", (void *) 0 }, 7129_LT_EOF 7130 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7131 cat <<\_LT_EOF >> conftest.$ac_ext 7132 {0, (void *) 0} 7133}; 7134 7135/* This works around a problem in FreeBSD linker */ 7136#ifdef FREEBSD_WORKAROUND 7137static const void *lt_preloaded_setup() { 7138 return lt__PROGRAM__LTX_preloaded_symbols; 7139} 7140#endif 7141 7142#ifdef __cplusplus 7143} 7144#endif 7145_LT_EOF 7146 # Now try linking the two files. 7147 mv conftest.$ac_objext conftstm.$ac_objext 7148 lt_save_LIBS="$LIBS" 7149 lt_save_CFLAGS="$CFLAGS" 7150 LIBS="conftstm.$ac_objext" 7151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7153 (eval $ac_link) 2>&5 7154 ac_status=$? 7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7156 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7157 pipe_works=yes 7158 fi 7159 LIBS="$lt_save_LIBS" 7160 CFLAGS="$lt_save_CFLAGS" 7161 else 7162 echo "cannot find nm_test_func in $nlist" >&5 7163 fi 7164 else 7165 echo "cannot find nm_test_var in $nlist" >&5 7166 fi 7167 else 7168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7169 fi 7170 else 7171 echo "$progname: failed program was:" >&5 7172 cat conftest.$ac_ext >&5 7173 fi 7174 rm -rf conftest* conftst* 7175 7176 # Do not use the global_symbol_pipe unless it works. 7177 if test "$pipe_works" = yes; then 7178 break 7179 else 7180 lt_cv_sys_global_symbol_pipe= 7181 fi 7182done 7183 7184fi 7185 7186if test -z "$lt_cv_sys_global_symbol_pipe"; then 7187 lt_cv_sys_global_symbol_to_cdecl= 7188fi 7189if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7191$as_echo "failed" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7194$as_echo "ok" >&6; } 7195fi 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218# Check whether --enable-libtool-lock was given. 7219if test "${enable_libtool_lock+set}" = set; then : 7220 enableval=$enable_libtool_lock; 7221fi 7222 7223test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7224 7225# Some flags need to be propagated to the compiler or linker for good 7226# libtool support. 7227case $host in 7228ia64-*-hpux*) 7229 # Find out which ABI we are using. 7230 echo 'int i;' > conftest.$ac_ext 7231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7232 (eval $ac_compile) 2>&5 7233 ac_status=$? 7234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7235 test $ac_status = 0; }; then 7236 case `/usr/bin/file conftest.$ac_objext` in 7237 *ELF-32*) 7238 HPUX_IA64_MODE="32" 7239 ;; 7240 *ELF-64*) 7241 HPUX_IA64_MODE="64" 7242 ;; 7243 esac 7244 fi 7245 rm -rf conftest* 7246 ;; 7247*-*-irix6*) 7248 # Find out which ABI we are using. 7249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7251 (eval $ac_compile) 2>&5 7252 ac_status=$? 7253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7254 test $ac_status = 0; }; then 7255 if test "$lt_cv_prog_gnu_ld" = yes; then 7256 case `/usr/bin/file conftest.$ac_objext` in 7257 *32-bit*) 7258 LD="${LD-ld} -melf32bsmip" 7259 ;; 7260 *N32*) 7261 LD="${LD-ld} -melf32bmipn32" 7262 ;; 7263 *64-bit*) 7264 LD="${LD-ld} -melf64bmip" 7265 ;; 7266 esac 7267 else 7268 case `/usr/bin/file conftest.$ac_objext` in 7269 *32-bit*) 7270 LD="${LD-ld} -32" 7271 ;; 7272 *N32*) 7273 LD="${LD-ld} -n32" 7274 ;; 7275 *64-bit*) 7276 LD="${LD-ld} -64" 7277 ;; 7278 esac 7279 fi 7280 fi 7281 rm -rf conftest* 7282 ;; 7283 7284x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7285s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7286 # Find out which ABI we are using. 7287 echo 'int i;' > conftest.$ac_ext 7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7289 (eval $ac_compile) 2>&5 7290 ac_status=$? 7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7292 test $ac_status = 0; }; then 7293 case `/usr/bin/file conftest.o` in 7294 *32-bit*) 7295 case $host in 7296 x86_64-*kfreebsd*-gnu) 7297 LD="${LD-ld} -m elf_i386_fbsd" 7298 ;; 7299 x86_64-*linux*) 7300 case `/usr/bin/file conftest.o` in 7301 *x86-64*) 7302 LD="${LD-ld} -m elf32_x86_64" 7303 ;; 7304 *) 7305 LD="${LD-ld} -m elf_i386" 7306 ;; 7307 esac 7308 ;; 7309 powerpc64le-*linux*) 7310 LD="${LD-ld} -m elf32lppclinux" 7311 ;; 7312 powerpc64-*linux*) 7313 LD="${LD-ld} -m elf32ppclinux" 7314 ;; 7315 s390x-*linux*) 7316 LD="${LD-ld} -m elf_s390" 7317 ;; 7318 sparc64-*linux*) 7319 LD="${LD-ld} -m elf32_sparc" 7320 ;; 7321 esac 7322 ;; 7323 *64-bit*) 7324 case $host in 7325 x86_64-*kfreebsd*-gnu) 7326 LD="${LD-ld} -m elf_x86_64_fbsd" 7327 ;; 7328 x86_64-*linux*) 7329 LD="${LD-ld} -m elf_x86_64" 7330 ;; 7331 powerpcle-*linux*) 7332 LD="${LD-ld} -m elf64lppc" 7333 ;; 7334 powerpc-*linux*) 7335 LD="${LD-ld} -m elf64ppc" 7336 ;; 7337 s390*-*linux*|s390*-*tpf*) 7338 LD="${LD-ld} -m elf64_s390" 7339 ;; 7340 sparc*-*linux*) 7341 LD="${LD-ld} -m elf64_sparc" 7342 ;; 7343 esac 7344 ;; 7345 esac 7346 fi 7347 rm -rf conftest* 7348 ;; 7349 7350*-*-sco3.2v5*) 7351 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7352 SAVE_CFLAGS="$CFLAGS" 7353 CFLAGS="$CFLAGS -belf" 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7355$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7356if ${lt_cv_cc_needs_belf+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 ac_ext=c 7360ac_cpp='$CPP $CPPFLAGS' 7361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7363ac_compiler_gnu=$ac_cv_c_compiler_gnu 7364 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_link "$LINENO"; then : 7377 lt_cv_cc_needs_belf=yes 7378else 7379 lt_cv_cc_needs_belf=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext \ 7382 conftest$ac_exeext conftest.$ac_ext 7383 ac_ext=c 7384ac_cpp='$CPP $CPPFLAGS' 7385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7387ac_compiler_gnu=$ac_cv_c_compiler_gnu 7388 7389fi 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7391$as_echo "$lt_cv_cc_needs_belf" >&6; } 7392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7394 CFLAGS="$SAVE_CFLAGS" 7395 fi 7396 ;; 7397sparc*-*solaris*) 7398 # Find out which ABI we are using. 7399 echo 'int i;' > conftest.$ac_ext 7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7401 (eval $ac_compile) 2>&5 7402 ac_status=$? 7403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7404 test $ac_status = 0; }; then 7405 case `/usr/bin/file conftest.o` in 7406 *64-bit*) 7407 case $lt_cv_prog_gnu_ld in 7408 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7409 *) 7410 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7411 LD="${LD-ld} -64" 7412 fi 7413 ;; 7414 esac 7415 ;; 7416 esac 7417 fi 7418 rm -rf conftest* 7419 ;; 7420esac 7421 7422need_locks="$enable_libtool_lock" 7423 7424 7425 case $host_os in 7426 rhapsody* | darwin*) 7427 if test -n "$ac_tool_prefix"; then 7428 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7429set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7431$as_echo_n "checking for $ac_word... " >&6; } 7432if ${ac_cv_prog_DSYMUTIL+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 if test -n "$DSYMUTIL"; then 7436 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7437else 7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439for as_dir in $PATH 7440do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449done 7450 done 7451IFS=$as_save_IFS 7452 7453fi 7454fi 7455DSYMUTIL=$ac_cv_prog_DSYMUTIL 7456if test -n "$DSYMUTIL"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7458$as_echo "$DSYMUTIL" >&6; } 7459else 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7461$as_echo "no" >&6; } 7462fi 7463 7464 7465fi 7466if test -z "$ac_cv_prog_DSYMUTIL"; then 7467 ac_ct_DSYMUTIL=$DSYMUTIL 7468 # Extract the first word of "dsymutil", so it can be a program name with args. 7469set dummy dsymutil; ac_word=$2 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471$as_echo_n "checking for $ac_word... " >&6; } 7472if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474else 7475 if test -n "$ac_ct_DSYMUTIL"; then 7476 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7477else 7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479for as_dir in $PATH 7480do 7481 IFS=$as_save_IFS 7482 test -z "$as_dir" && as_dir=. 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489done 7490 done 7491IFS=$as_save_IFS 7492 7493fi 7494fi 7495ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7496if test -n "$ac_ct_DSYMUTIL"; then 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7498$as_echo "$ac_ct_DSYMUTIL" >&6; } 7499else 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7501$as_echo "no" >&6; } 7502fi 7503 7504 if test "x$ac_ct_DSYMUTIL" = x; then 7505 DSYMUTIL=":" 7506 else 7507 case $cross_compiling:$ac_tool_warned in 7508yes:) 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7511ac_tool_warned=yes ;; 7512esac 7513 DSYMUTIL=$ac_ct_DSYMUTIL 7514 fi 7515else 7516 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7517fi 7518 7519 if test -n "$ac_tool_prefix"; then 7520 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7521set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7523$as_echo_n "checking for $ac_word... " >&6; } 7524if ${ac_cv_prog_NMEDIT+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 if test -n "$NMEDIT"; then 7528 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7529else 7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7531for as_dir in $PATH 7532do 7533 IFS=$as_save_IFS 7534 test -z "$as_dir" && as_dir=. 7535 for ac_exec_ext in '' $ac_executable_extensions; do 7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7539 break 2 7540 fi 7541done 7542 done 7543IFS=$as_save_IFS 7544 7545fi 7546fi 7547NMEDIT=$ac_cv_prog_NMEDIT 7548if test -n "$NMEDIT"; then 7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7550$as_echo "$NMEDIT" >&6; } 7551else 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7553$as_echo "no" >&6; } 7554fi 7555 7556 7557fi 7558if test -z "$ac_cv_prog_NMEDIT"; then 7559 ac_ct_NMEDIT=$NMEDIT 7560 # Extract the first word of "nmedit", so it can be a program name with args. 7561set dummy nmedit; ac_word=$2 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7563$as_echo_n "checking for $ac_word... " >&6; } 7564if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7565 $as_echo_n "(cached) " >&6 7566else 7567 if test -n "$ac_ct_NMEDIT"; then 7568 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7569else 7570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571for as_dir in $PATH 7572do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7577 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581done 7582 done 7583IFS=$as_save_IFS 7584 7585fi 7586fi 7587ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7588if test -n "$ac_ct_NMEDIT"; then 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7590$as_echo "$ac_ct_NMEDIT" >&6; } 7591else 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7593$as_echo "no" >&6; } 7594fi 7595 7596 if test "x$ac_ct_NMEDIT" = x; then 7597 NMEDIT=":" 7598 else 7599 case $cross_compiling:$ac_tool_warned in 7600yes:) 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7603ac_tool_warned=yes ;; 7604esac 7605 NMEDIT=$ac_ct_NMEDIT 7606 fi 7607else 7608 NMEDIT="$ac_cv_prog_NMEDIT" 7609fi 7610 7611 if test -n "$ac_tool_prefix"; then 7612 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7613set dummy ${ac_tool_prefix}lipo; ac_word=$2 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7615$as_echo_n "checking for $ac_word... " >&6; } 7616if ${ac_cv_prog_LIPO+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 if test -n "$LIPO"; then 7620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7621else 7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7623for as_dir in $PATH 7624do 7625 IFS=$as_save_IFS 7626 test -z "$as_dir" && as_dir=. 7627 for ac_exec_ext in '' $ac_executable_extensions; do 7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7631 break 2 7632 fi 7633done 7634 done 7635IFS=$as_save_IFS 7636 7637fi 7638fi 7639LIPO=$ac_cv_prog_LIPO 7640if test -n "$LIPO"; then 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7642$as_echo "$LIPO" >&6; } 7643else 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7645$as_echo "no" >&6; } 7646fi 7647 7648 7649fi 7650if test -z "$ac_cv_prog_LIPO"; then 7651 ac_ct_LIPO=$LIPO 7652 # Extract the first word of "lipo", so it can be a program name with args. 7653set dummy lipo; ac_word=$2 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7655$as_echo_n "checking for $ac_word... " >&6; } 7656if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 if test -n "$ac_ct_LIPO"; then 7660 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7661else 7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7663for as_dir in $PATH 7664do 7665 IFS=$as_save_IFS 7666 test -z "$as_dir" && as_dir=. 7667 for ac_exec_ext in '' $ac_executable_extensions; do 7668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7669 ac_cv_prog_ac_ct_LIPO="lipo" 7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7671 break 2 7672 fi 7673done 7674 done 7675IFS=$as_save_IFS 7676 7677fi 7678fi 7679ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7680if test -n "$ac_ct_LIPO"; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7682$as_echo "$ac_ct_LIPO" >&6; } 7683else 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7685$as_echo "no" >&6; } 7686fi 7687 7688 if test "x$ac_ct_LIPO" = x; then 7689 LIPO=":" 7690 else 7691 case $cross_compiling:$ac_tool_warned in 7692yes:) 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7695ac_tool_warned=yes ;; 7696esac 7697 LIPO=$ac_ct_LIPO 7698 fi 7699else 7700 LIPO="$ac_cv_prog_LIPO" 7701fi 7702 7703 if test -n "$ac_tool_prefix"; then 7704 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7705set dummy ${ac_tool_prefix}otool; ac_word=$2 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7707$as_echo_n "checking for $ac_word... " >&6; } 7708if ${ac_cv_prog_OTOOL+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710else 7711 if test -n "$OTOOL"; then 7712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7713else 7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7715for as_dir in $PATH 7716do 7717 IFS=$as_save_IFS 7718 test -z "$as_dir" && as_dir=. 7719 for ac_exec_ext in '' $ac_executable_extensions; do 7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7723 break 2 7724 fi 7725done 7726 done 7727IFS=$as_save_IFS 7728 7729fi 7730fi 7731OTOOL=$ac_cv_prog_OTOOL 7732if test -n "$OTOOL"; then 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7734$as_echo "$OTOOL" >&6; } 7735else 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7737$as_echo "no" >&6; } 7738fi 7739 7740 7741fi 7742if test -z "$ac_cv_prog_OTOOL"; then 7743 ac_ct_OTOOL=$OTOOL 7744 # Extract the first word of "otool", so it can be a program name with args. 7745set dummy otool; ac_word=$2 7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7747$as_echo_n "checking for $ac_word... " >&6; } 7748if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 if test -n "$ac_ct_OTOOL"; then 7752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7753else 7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7755for as_dir in $PATH 7756do 7757 IFS=$as_save_IFS 7758 test -z "$as_dir" && as_dir=. 7759 for ac_exec_ext in '' $ac_executable_extensions; do 7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7761 ac_cv_prog_ac_ct_OTOOL="otool" 7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7763 break 2 7764 fi 7765done 7766 done 7767IFS=$as_save_IFS 7768 7769fi 7770fi 7771ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7772if test -n "$ac_ct_OTOOL"; then 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7774$as_echo "$ac_ct_OTOOL" >&6; } 7775else 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7777$as_echo "no" >&6; } 7778fi 7779 7780 if test "x$ac_ct_OTOOL" = x; then 7781 OTOOL=":" 7782 else 7783 case $cross_compiling:$ac_tool_warned in 7784yes:) 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7787ac_tool_warned=yes ;; 7788esac 7789 OTOOL=$ac_ct_OTOOL 7790 fi 7791else 7792 OTOOL="$ac_cv_prog_OTOOL" 7793fi 7794 7795 if test -n "$ac_tool_prefix"; then 7796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7797set dummy ${ac_tool_prefix}otool64; ac_word=$2 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7799$as_echo_n "checking for $ac_word... " >&6; } 7800if ${ac_cv_prog_OTOOL64+:} false; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 if test -n "$OTOOL64"; then 7804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7805else 7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7807for as_dir in $PATH 7808do 7809 IFS=$as_save_IFS 7810 test -z "$as_dir" && as_dir=. 7811 for ac_exec_ext in '' $ac_executable_extensions; do 7812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7815 break 2 7816 fi 7817done 7818 done 7819IFS=$as_save_IFS 7820 7821fi 7822fi 7823OTOOL64=$ac_cv_prog_OTOOL64 7824if test -n "$OTOOL64"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7826$as_echo "$OTOOL64" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829$as_echo "no" >&6; } 7830fi 7831 7832 7833fi 7834if test -z "$ac_cv_prog_OTOOL64"; then 7835 ac_ct_OTOOL64=$OTOOL64 7836 # Extract the first word of "otool64", so it can be a program name with args. 7837set dummy otool64; ac_word=$2 7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7839$as_echo_n "checking for $ac_word... " >&6; } 7840if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842else 7843 if test -n "$ac_ct_OTOOL64"; then 7844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7845else 7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7847for as_dir in $PATH 7848do 7849 IFS=$as_save_IFS 7850 test -z "$as_dir" && as_dir=. 7851 for ac_exec_ext in '' $ac_executable_extensions; do 7852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7853 ac_cv_prog_ac_ct_OTOOL64="otool64" 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7855 break 2 7856 fi 7857done 7858 done 7859IFS=$as_save_IFS 7860 7861fi 7862fi 7863ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7864if test -n "$ac_ct_OTOOL64"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7866$as_echo "$ac_ct_OTOOL64" >&6; } 7867else 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7869$as_echo "no" >&6; } 7870fi 7871 7872 if test "x$ac_ct_OTOOL64" = x; then 7873 OTOOL64=":" 7874 else 7875 case $cross_compiling:$ac_tool_warned in 7876yes:) 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7879ac_tool_warned=yes ;; 7880esac 7881 OTOOL64=$ac_ct_OTOOL64 7882 fi 7883else 7884 OTOOL64="$ac_cv_prog_OTOOL64" 7885fi 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7914$as_echo_n "checking for -single_module linker flag... " >&6; } 7915if ${lt_cv_apple_cc_single_mod+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917else 7918 lt_cv_apple_cc_single_mod=no 7919 if test -z "${LT_MULTI_MODULE}"; then 7920 # By default we will add the -single_module flag. You can override 7921 # by either setting the environment variable LT_MULTI_MODULE 7922 # non-empty at configure time, or by adding -multi_module to the 7923 # link flags. 7924 rm -rf libconftest.dylib* 7925 echo "int foo(void){return 1;}" > conftest.c 7926 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7927-dynamiclib -Wl,-single_module conftest.c" >&5 7928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7930 _lt_result=$? 7931 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7932 lt_cv_apple_cc_single_mod=yes 7933 else 7934 cat conftest.err >&5 7935 fi 7936 rm -rf libconftest.dylib* 7937 rm -f conftest.* 7938 fi 7939fi 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7941$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7943$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7944if ${lt_cv_ld_exported_symbols_list+:} false; then : 7945 $as_echo_n "(cached) " >&6 7946else 7947 lt_cv_ld_exported_symbols_list=no 7948 save_LDFLAGS=$LDFLAGS 7949 echo "_main" > conftest.sym 7950 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953 7954int 7955main () 7956{ 7957 7958 ; 7959 return 0; 7960} 7961_ACEOF 7962if ac_fn_c_try_link "$LINENO"; then : 7963 lt_cv_ld_exported_symbols_list=yes 7964else 7965 lt_cv_ld_exported_symbols_list=no 7966fi 7967rm -f core conftest.err conftest.$ac_objext \ 7968 conftest$ac_exeext conftest.$ac_ext 7969 LDFLAGS="$save_LDFLAGS" 7970 7971fi 7972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7973$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7975$as_echo_n "checking for -force_load linker flag... " >&6; } 7976if ${lt_cv_ld_force_load+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 lt_cv_ld_force_load=no 7980 cat > conftest.c << _LT_EOF 7981int forced_loaded() { return 2;} 7982_LT_EOF 7983 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7984 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7985 echo "$AR cru libconftest.a conftest.o" >&5 7986 $AR cru libconftest.a conftest.o 2>&5 7987 cat > conftest.c << _LT_EOF 7988int main() { return 0;} 7989_LT_EOF 7990 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7991 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7992 _lt_result=$? 7993 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7994 lt_cv_ld_force_load=yes 7995 else 7996 cat conftest.err >&5 7997 fi 7998 rm -f conftest.err libconftest.a conftest conftest.c 7999 rm -rf conftest.dSYM 8000 8001fi 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8003$as_echo "$lt_cv_ld_force_load" >&6; } 8004 case $host_os in 8005 rhapsody* | darwin1.[012]) 8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8007 darwin1.*) 8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8009 darwin*) # darwin 5.x on 8010 # if running on 10.5 or later, the deployment target defaults 8011 # to the OS version, if on x86, and 10.4, the deployment 8012 # target defaults to 10.4. Don't you love it? 8013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8014 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8016 10.[012][,.]*) 8017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8018 10.*) 8019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8020 esac 8021 ;; 8022 esac 8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8024 _lt_dar_single_mod='$single_module' 8025 fi 8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8028 else 8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8030 fi 8031 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8032 _lt_dsymutil='~$DSYMUTIL $lib || :' 8033 else 8034 _lt_dsymutil= 8035 fi 8036 ;; 8037 esac 8038 8039for ac_header in dlfcn.h 8040do : 8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8042" 8043if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8044 cat >>confdefs.h <<_ACEOF 8045#define HAVE_DLFCN_H 1 8046_ACEOF 8047 8048fi 8049 8050done 8051 8052 8053 8054 8055 8056# Set options 8057 8058 8059 8060 enable_dlopen=no 8061 8062 8063 enable_win32_dll=no 8064 8065 8066 # Check whether --enable-shared was given. 8067if test "${enable_shared+set}" = set; then : 8068 enableval=$enable_shared; p=${PACKAGE-default} 8069 case $enableval in 8070 yes) enable_shared=yes ;; 8071 no) enable_shared=no ;; 8072 *) 8073 enable_shared=no 8074 # Look at the argument we got. We use all the common list separators. 8075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8076 for pkg in $enableval; do 8077 IFS="$lt_save_ifs" 8078 if test "X$pkg" = "X$p"; then 8079 enable_shared=yes 8080 fi 8081 done 8082 IFS="$lt_save_ifs" 8083 ;; 8084 esac 8085else 8086 enable_shared=yes 8087fi 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 # Check whether --enable-static was given. 8098if test "${enable_static+set}" = set; then : 8099 enableval=$enable_static; p=${PACKAGE-default} 8100 case $enableval in 8101 yes) enable_static=yes ;; 8102 no) enable_static=no ;; 8103 *) 8104 enable_static=no 8105 # Look at the argument we got. We use all the common list separators. 8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8107 for pkg in $enableval; do 8108 IFS="$lt_save_ifs" 8109 if test "X$pkg" = "X$p"; then 8110 enable_static=yes 8111 fi 8112 done 8113 IFS="$lt_save_ifs" 8114 ;; 8115 esac 8116else 8117 enable_static=yes 8118fi 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129# Check whether --with-pic was given. 8130if test "${with_pic+set}" = set; then : 8131 withval=$with_pic; pic_mode="$withval" 8132else 8133 pic_mode=default 8134fi 8135 8136 8137test -z "$pic_mode" && pic_mode=default 8138 8139 8140 8141 8142 8143 8144 8145 # Check whether --enable-fast-install was given. 8146if test "${enable_fast_install+set}" = set; then : 8147 enableval=$enable_fast_install; p=${PACKAGE-default} 8148 case $enableval in 8149 yes) enable_fast_install=yes ;; 8150 no) enable_fast_install=no ;; 8151 *) 8152 enable_fast_install=no 8153 # Look at the argument we got. We use all the common list separators. 8154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8155 for pkg in $enableval; do 8156 IFS="$lt_save_ifs" 8157 if test "X$pkg" = "X$p"; then 8158 enable_fast_install=yes 8159 fi 8160 done 8161 IFS="$lt_save_ifs" 8162 ;; 8163 esac 8164else 8165 enable_fast_install=yes 8166fi 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178# This can be used to rebuild libtool when needed 8179LIBTOOL_DEPS="$ltmain" 8180 8181# Always use our own libtool. 8182LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209test -z "$LN_S" && LN_S="ln -s" 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224if test -n "${ZSH_VERSION+set}" ; then 8225 setopt NO_GLOB_SUBST 8226fi 8227 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8229$as_echo_n "checking for objdir... " >&6; } 8230if ${lt_cv_objdir+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 rm -f .libs 2>/dev/null 8234mkdir .libs 2>/dev/null 8235if test -d .libs; then 8236 lt_cv_objdir=.libs 8237else 8238 # MS-DOS does not allow filenames that begin with a dot. 8239 lt_cv_objdir=_libs 8240fi 8241rmdir .libs 2>/dev/null 8242fi 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8244$as_echo "$lt_cv_objdir" >&6; } 8245objdir=$lt_cv_objdir 8246 8247 8248 8249 8250 8251cat >>confdefs.h <<_ACEOF 8252#define LT_OBJDIR "$lt_cv_objdir/" 8253_ACEOF 8254 8255 8256 8257 8258case $host_os in 8259aix3*) 8260 # AIX sometimes has problems with the GCC collect2 program. For some 8261 # reason, if we set the COLLECT_NAMES environment variable, the problems 8262 # vanish in a puff of smoke. 8263 if test "X${COLLECT_NAMES+set}" != Xset; then 8264 COLLECT_NAMES= 8265 export COLLECT_NAMES 8266 fi 8267 ;; 8268esac 8269 8270# Global variables: 8271ofile=libtool 8272can_build_shared=yes 8273 8274# All known linkers require a `.a' archive for static linking (except MSVC, 8275# which needs '.lib'). 8276libext=a 8277 8278with_gnu_ld="$lt_cv_prog_gnu_ld" 8279 8280old_CC="$CC" 8281old_CFLAGS="$CFLAGS" 8282 8283# Set sane defaults for various variables 8284test -z "$CC" && CC=cc 8285test -z "$LTCC" && LTCC=$CC 8286test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8287test -z "$LD" && LD=ld 8288test -z "$ac_objext" && ac_objext=o 8289 8290for cc_temp in $compiler""; do 8291 case $cc_temp in 8292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8294 \-*) ;; 8295 *) break;; 8296 esac 8297done 8298cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8299 8300 8301# Only perform the check for file, if the check method requires it 8302test -z "$MAGIC_CMD" && MAGIC_CMD=file 8303case $deplibs_check_method in 8304file_magic*) 8305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8307$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8308if ${lt_cv_path_MAGIC_CMD+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 case $MAGIC_CMD in 8312[\\/*] | ?:[\\/]*) 8313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8314 ;; 8315*) 8316 lt_save_MAGIC_CMD="$MAGIC_CMD" 8317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8319 for ac_dir in $ac_dummy; do 8320 IFS="$lt_save_ifs" 8321 test -z "$ac_dir" && ac_dir=. 8322 if test -f $ac_dir/${ac_tool_prefix}file; then 8323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8324 if test -n "$file_magic_test_file"; then 8325 case $deplibs_check_method in 8326 "file_magic "*) 8327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8330 $EGREP "$file_magic_regex" > /dev/null; then 8331 : 8332 else 8333 cat <<_LT_EOF 1>&2 8334 8335*** Warning: the command libtool uses to detect shared libraries, 8336*** $file_magic_cmd, produces output that libtool cannot recognize. 8337*** The result is that libtool may fail to recognize shared libraries 8338*** as such. This will affect the creation of libtool libraries that 8339*** depend on shared libraries, but programs linked with such libtool 8340*** libraries will work regardless of this problem. Nevertheless, you 8341*** may want to report the problem to your system manager and/or to 8342*** bug-libtool@gnu.org 8343 8344_LT_EOF 8345 fi ;; 8346 esac 8347 fi 8348 break 8349 fi 8350 done 8351 IFS="$lt_save_ifs" 8352 MAGIC_CMD="$lt_save_MAGIC_CMD" 8353 ;; 8354esac 8355fi 8356 8357MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8358if test -n "$MAGIC_CMD"; then 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8360$as_echo "$MAGIC_CMD" >&6; } 8361else 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8363$as_echo "no" >&6; } 8364fi 8365 8366 8367 8368 8369 8370if test -z "$lt_cv_path_MAGIC_CMD"; then 8371 if test -n "$ac_tool_prefix"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8373$as_echo_n "checking for file... " >&6; } 8374if ${lt_cv_path_MAGIC_CMD+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 case $MAGIC_CMD in 8378[\\/*] | ?:[\\/]*) 8379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8380 ;; 8381*) 8382 lt_save_MAGIC_CMD="$MAGIC_CMD" 8383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8385 for ac_dir in $ac_dummy; do 8386 IFS="$lt_save_ifs" 8387 test -z "$ac_dir" && ac_dir=. 8388 if test -f $ac_dir/file; then 8389 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8390 if test -n "$file_magic_test_file"; then 8391 case $deplibs_check_method in 8392 "file_magic "*) 8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8396 $EGREP "$file_magic_regex" > /dev/null; then 8397 : 8398 else 8399 cat <<_LT_EOF 1>&2 8400 8401*** Warning: the command libtool uses to detect shared libraries, 8402*** $file_magic_cmd, produces output that libtool cannot recognize. 8403*** The result is that libtool may fail to recognize shared libraries 8404*** as such. This will affect the creation of libtool libraries that 8405*** depend on shared libraries, but programs linked with such libtool 8406*** libraries will work regardless of this problem. Nevertheless, you 8407*** may want to report the problem to your system manager and/or to 8408*** bug-libtool@gnu.org 8409 8410_LT_EOF 8411 fi ;; 8412 esac 8413 fi 8414 break 8415 fi 8416 done 8417 IFS="$lt_save_ifs" 8418 MAGIC_CMD="$lt_save_MAGIC_CMD" 8419 ;; 8420esac 8421fi 8422 8423MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8424if test -n "$MAGIC_CMD"; then 8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8426$as_echo "$MAGIC_CMD" >&6; } 8427else 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8429$as_echo "no" >&6; } 8430fi 8431 8432 8433 else 8434 MAGIC_CMD=: 8435 fi 8436fi 8437 8438 fi 8439 ;; 8440esac 8441 8442# Use C for the default configuration in the libtool script 8443 8444lt_save_CC="$CC" 8445ac_ext=c 8446ac_cpp='$CPP $CPPFLAGS' 8447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8449ac_compiler_gnu=$ac_cv_c_compiler_gnu 8450 8451 8452# Source file extension for C test sources. 8453ac_ext=c 8454 8455# Object file extension for compiled C test sources. 8456objext=o 8457objext=$objext 8458 8459# Code to be used in simple compile tests 8460lt_simple_compile_test_code="int some_variable = 0;" 8461 8462# Code to be used in simple link tests 8463lt_simple_link_test_code='int main(){return(0);}' 8464 8465 8466 8467 8468 8469 8470 8471# If no C compiler was specified, use CC. 8472LTCC=${LTCC-"$CC"} 8473 8474# If no C compiler flags were specified, use CFLAGS. 8475LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8476 8477# Allow CC to be a program name with arguments. 8478compiler=$CC 8479 8480# Save the default compiler, since it gets overwritten when the other 8481# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8482compiler_DEFAULT=$CC 8483 8484# save warnings/boilerplate of simple test code 8485ac_outfile=conftest.$ac_objext 8486echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8487eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8488_lt_compiler_boilerplate=`cat conftest.err` 8489$RM conftest* 8490 8491ac_outfile=conftest.$ac_objext 8492echo "$lt_simple_link_test_code" >conftest.$ac_ext 8493eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8494_lt_linker_boilerplate=`cat conftest.err` 8495$RM -r conftest* 8496 8497 8498## CAVEAT EMPTOR: 8499## There is no encapsulation within the following macros, do not change 8500## the running order or otherwise move them around unless you know exactly 8501## what you are doing... 8502if test -n "$compiler"; then 8503 8504lt_prog_compiler_no_builtin_flag= 8505 8506if test "$GCC" = yes; then 8507 case $cc_basename in 8508 nvcc*) 8509 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8510 *) 8511 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8512 esac 8513 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8515$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8516if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 lt_cv_prog_compiler_rtti_exceptions=no 8520 ac_outfile=conftest.$ac_objext 8521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8522 lt_compiler_flag="-fno-rtti -fno-exceptions" 8523 # Insert the option either (1) after the last *FLAGS variable, or 8524 # (2) before a word containing "conftest.", or (3) at the end. 8525 # Note that $ac_compile itself does not contain backslashes and begins 8526 # with a dollar sign (not a hyphen), so the echo should work correctly. 8527 # The option is referenced via a variable to avoid confusing sed. 8528 lt_compile=`echo "$ac_compile" | $SED \ 8529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8531 -e 's:$: $lt_compiler_flag:'` 8532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8533 (eval "$lt_compile" 2>conftest.err) 8534 ac_status=$? 8535 cat conftest.err >&5 8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8537 if (exit $ac_status) && test -s "$ac_outfile"; then 8538 # The compiler can only warn and ignore the option if not recognized 8539 # So say no if there are warnings other than the usual output. 8540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8543 lt_cv_prog_compiler_rtti_exceptions=yes 8544 fi 8545 fi 8546 $RM conftest* 8547 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8550$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8551 8552if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8553 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8554else 8555 : 8556fi 8557 8558fi 8559 8560 8561 8562 8563 8564 8565 lt_prog_compiler_wl= 8566lt_prog_compiler_pic= 8567lt_prog_compiler_static= 8568 8569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8570$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8571 8572 if test "$GCC" = yes; then 8573 lt_prog_compiler_wl='-Wl,' 8574 lt_prog_compiler_static='-static' 8575 8576 case $host_os in 8577 aix*) 8578 # All AIX code is PIC. 8579 if test "$host_cpu" = ia64; then 8580 # AIX 5 now supports IA64 processor 8581 lt_prog_compiler_static='-Bstatic' 8582 fi 8583 lt_prog_compiler_pic='-fPIC' 8584 ;; 8585 8586 amigaos*) 8587 case $host_cpu in 8588 powerpc) 8589 # see comment about AmigaOS4 .so support 8590 lt_prog_compiler_pic='-fPIC' 8591 ;; 8592 m68k) 8593 # FIXME: we need at least 68020 code to build shared libraries, but 8594 # adding the `-m68020' flag to GCC prevents building anything better, 8595 # like `-m68040'. 8596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8597 ;; 8598 esac 8599 ;; 8600 8601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8602 # PIC is the default for these OSes. 8603 ;; 8604 8605 mingw* | cygwin* | pw32* | os2* | cegcc*) 8606 # This hack is so that the source file can tell whether it is being 8607 # built for inclusion in a dll (and should export symbols for example). 8608 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8609 # (--disable-auto-import) libraries 8610 lt_prog_compiler_pic='-DDLL_EXPORT' 8611 ;; 8612 8613 darwin* | rhapsody*) 8614 # PIC is the default on this platform 8615 # Common symbols not allowed in MH_DYLIB files 8616 lt_prog_compiler_pic='-fno-common' 8617 ;; 8618 8619 haiku*) 8620 # PIC is the default for Haiku. 8621 # The "-static" flag exists, but is broken. 8622 lt_prog_compiler_static= 8623 ;; 8624 8625 hpux*) 8626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8628 # sets the default TLS model and affects inlining. 8629 case $host_cpu in 8630 hppa*64*) 8631 # +Z the default 8632 ;; 8633 *) 8634 lt_prog_compiler_pic='-fPIC' 8635 ;; 8636 esac 8637 ;; 8638 8639 interix[3-9]*) 8640 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8641 # Instead, we relocate shared libraries at runtime. 8642 ;; 8643 8644 msdosdjgpp*) 8645 # Just because we use GCC doesn't mean we suddenly get shared libraries 8646 # on systems that don't support them. 8647 lt_prog_compiler_can_build_shared=no 8648 enable_shared=no 8649 ;; 8650 8651 *nto* | *qnx*) 8652 # QNX uses GNU C++, but need to define -shared option too, otherwise 8653 # it will coredump. 8654 lt_prog_compiler_pic='-fPIC -shared' 8655 ;; 8656 8657 sysv4*MP*) 8658 if test -d /usr/nec; then 8659 lt_prog_compiler_pic=-Kconform_pic 8660 fi 8661 ;; 8662 8663 *) 8664 lt_prog_compiler_pic='-fPIC' 8665 ;; 8666 esac 8667 8668 case $cc_basename in 8669 nvcc*) # Cuda Compiler Driver 2.2 8670 lt_prog_compiler_wl='-Xlinker ' 8671 lt_prog_compiler_pic='-Xcompiler -fPIC' 8672 ;; 8673 esac 8674 else 8675 # PORTME Check for flag to pass linker flags through the system compiler. 8676 case $host_os in 8677 aix*) 8678 lt_prog_compiler_wl='-Wl,' 8679 if test "$host_cpu" = ia64; then 8680 # AIX 5 now supports IA64 processor 8681 lt_prog_compiler_static='-Bstatic' 8682 else 8683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8684 fi 8685 ;; 8686 8687 mingw* | cygwin* | pw32* | os2* | cegcc*) 8688 # This hack is so that the source file can tell whether it is being 8689 # built for inclusion in a dll (and should export symbols for example). 8690 lt_prog_compiler_pic='-DDLL_EXPORT' 8691 ;; 8692 8693 hpux9* | hpux10* | hpux11*) 8694 lt_prog_compiler_wl='-Wl,' 8695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8696 # not for PA HP-UX. 8697 case $host_cpu in 8698 hppa*64*|ia64*) 8699 # +Z the default 8700 ;; 8701 *) 8702 lt_prog_compiler_pic='+Z' 8703 ;; 8704 esac 8705 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8706 lt_prog_compiler_static='${wl}-a ${wl}archive' 8707 ;; 8708 8709 irix5* | irix6* | nonstopux*) 8710 lt_prog_compiler_wl='-Wl,' 8711 # PIC (with -KPIC) is the default. 8712 lt_prog_compiler_static='-non_shared' 8713 ;; 8714 8715 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8716 case $cc_basename in 8717 # old Intel for x86_64 which still supported -KPIC. 8718 ecc*) 8719 lt_prog_compiler_wl='-Wl,' 8720 lt_prog_compiler_pic='-KPIC' 8721 lt_prog_compiler_static='-static' 8722 ;; 8723 # icc used to be incompatible with GCC. 8724 # ICC 10 doesn't accept -KPIC any more. 8725 icc* | ifort*) 8726 lt_prog_compiler_wl='-Wl,' 8727 lt_prog_compiler_pic='-fPIC' 8728 lt_prog_compiler_static='-static' 8729 ;; 8730 # Lahey Fortran 8.1. 8731 lf95*) 8732 lt_prog_compiler_wl='-Wl,' 8733 lt_prog_compiler_pic='--shared' 8734 lt_prog_compiler_static='--static' 8735 ;; 8736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8737 # Portland Group compilers (*not* the Pentium gcc compiler, 8738 # which looks to be a dead project) 8739 lt_prog_compiler_wl='-Wl,' 8740 lt_prog_compiler_pic='-fpic' 8741 lt_prog_compiler_static='-Bstatic' 8742 ;; 8743 ccc*) 8744 lt_prog_compiler_wl='-Wl,' 8745 # All Alpha code is PIC. 8746 lt_prog_compiler_static='-non_shared' 8747 ;; 8748 xl* | bgxl* | bgf* | mpixl*) 8749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8750 lt_prog_compiler_wl='-Wl,' 8751 lt_prog_compiler_pic='-qpic' 8752 lt_prog_compiler_static='-qstaticlink' 8753 ;; 8754 *) 8755 case `$CC -V 2>&1 | sed 5q` in 8756 *Sun\ F* | *Sun*Fortran*) 8757 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8758 lt_prog_compiler_pic='-KPIC' 8759 lt_prog_compiler_static='-Bstatic' 8760 lt_prog_compiler_wl='' 8761 ;; 8762 *Sun\ C*) 8763 # Sun C 5.9 8764 lt_prog_compiler_pic='-KPIC' 8765 lt_prog_compiler_static='-Bstatic' 8766 lt_prog_compiler_wl='-Wl,' 8767 ;; 8768 esac 8769 ;; 8770 esac 8771 ;; 8772 8773 newsos6) 8774 lt_prog_compiler_pic='-KPIC' 8775 lt_prog_compiler_static='-Bstatic' 8776 ;; 8777 8778 *nto* | *qnx*) 8779 # QNX uses GNU C++, but need to define -shared option too, otherwise 8780 # it will coredump. 8781 lt_prog_compiler_pic='-fPIC -shared' 8782 ;; 8783 8784 osf3* | osf4* | osf5*) 8785 lt_prog_compiler_wl='-Wl,' 8786 # All OSF/1 code is PIC. 8787 lt_prog_compiler_static='-non_shared' 8788 ;; 8789 8790 rdos*) 8791 lt_prog_compiler_static='-non_shared' 8792 ;; 8793 8794 solaris*) 8795 lt_prog_compiler_pic='-KPIC' 8796 lt_prog_compiler_static='-Bstatic' 8797 case $cc_basename in 8798 f77* | f90* | f95*) 8799 lt_prog_compiler_wl='-Qoption ld ';; 8800 *) 8801 lt_prog_compiler_wl='-Wl,';; 8802 esac 8803 ;; 8804 8805 sunos4*) 8806 lt_prog_compiler_wl='-Qoption ld ' 8807 lt_prog_compiler_pic='-PIC' 8808 lt_prog_compiler_static='-Bstatic' 8809 ;; 8810 8811 sysv4 | sysv4.2uw2* | sysv4.3*) 8812 lt_prog_compiler_wl='-Wl,' 8813 lt_prog_compiler_pic='-KPIC' 8814 lt_prog_compiler_static='-Bstatic' 8815 ;; 8816 8817 sysv4*MP*) 8818 if test -d /usr/nec ;then 8819 lt_prog_compiler_pic='-Kconform_pic' 8820 lt_prog_compiler_static='-Bstatic' 8821 fi 8822 ;; 8823 8824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8825 lt_prog_compiler_wl='-Wl,' 8826 lt_prog_compiler_pic='-KPIC' 8827 lt_prog_compiler_static='-Bstatic' 8828 ;; 8829 8830 unicos*) 8831 lt_prog_compiler_wl='-Wl,' 8832 lt_prog_compiler_can_build_shared=no 8833 ;; 8834 8835 uts4*) 8836 lt_prog_compiler_pic='-pic' 8837 lt_prog_compiler_static='-Bstatic' 8838 ;; 8839 8840 *) 8841 lt_prog_compiler_can_build_shared=no 8842 ;; 8843 esac 8844 fi 8845 8846case $host_os in 8847 # For platforms which do not support PIC, -DPIC is meaningless: 8848 *djgpp*) 8849 lt_prog_compiler_pic= 8850 ;; 8851 *) 8852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8853 ;; 8854esac 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8856$as_echo "$lt_prog_compiler_pic" >&6; } 8857 8858 8859 8860 8861 8862 8863# 8864# Check to make sure the PIC flag actually works. 8865# 8866if test -n "$lt_prog_compiler_pic"; then 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8868$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8869if ${lt_cv_prog_compiler_pic_works+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 lt_cv_prog_compiler_pic_works=no 8873 ac_outfile=conftest.$ac_objext 8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8875 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8876 # Insert the option either (1) after the last *FLAGS variable, or 8877 # (2) before a word containing "conftest.", or (3) at the end. 8878 # Note that $ac_compile itself does not contain backslashes and begins 8879 # with a dollar sign (not a hyphen), so the echo should work correctly. 8880 # The option is referenced via a variable to avoid confusing sed. 8881 lt_compile=`echo "$ac_compile" | $SED \ 8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8884 -e 's:$: $lt_compiler_flag:'` 8885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8886 (eval "$lt_compile" 2>conftest.err) 8887 ac_status=$? 8888 cat conftest.err >&5 8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8890 if (exit $ac_status) && test -s "$ac_outfile"; then 8891 # The compiler can only warn and ignore the option if not recognized 8892 # So say no if there are warnings other than the usual output. 8893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8896 lt_cv_prog_compiler_pic_works=yes 8897 fi 8898 fi 8899 $RM conftest* 8900 8901fi 8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8903$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8904 8905if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8906 case $lt_prog_compiler_pic in 8907 "" | " "*) ;; 8908 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8909 esac 8910else 8911 lt_prog_compiler_pic= 8912 lt_prog_compiler_can_build_shared=no 8913fi 8914 8915fi 8916 8917 8918 8919 8920 8921 8922# 8923# Check to make sure the static flag actually works. 8924# 8925wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8927$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8928if ${lt_cv_prog_compiler_static_works+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 lt_cv_prog_compiler_static_works=no 8932 save_LDFLAGS="$LDFLAGS" 8933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8934 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8936 # The linker can only warn and ignore the option if not recognized 8937 # So say no if there are warnings 8938 if test -s conftest.err; then 8939 # Append any errors to the config.log. 8940 cat conftest.err 1>&5 8941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8943 if diff conftest.exp conftest.er2 >/dev/null; then 8944 lt_cv_prog_compiler_static_works=yes 8945 fi 8946 else 8947 lt_cv_prog_compiler_static_works=yes 8948 fi 8949 fi 8950 $RM -r conftest* 8951 LDFLAGS="$save_LDFLAGS" 8952 8953fi 8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8955$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8956 8957if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8958 : 8959else 8960 lt_prog_compiler_static= 8961fi 8962 8963 8964 8965 8966 8967 8968 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8970$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8971if ${lt_cv_prog_compiler_c_o+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 lt_cv_prog_compiler_c_o=no 8975 $RM -r conftest 2>/dev/null 8976 mkdir conftest 8977 cd conftest 8978 mkdir out 8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8980 8981 lt_compiler_flag="-o out/conftest2.$ac_objext" 8982 # Insert the option either (1) after the last *FLAGS variable, or 8983 # (2) before a word containing "conftest.", or (3) at the end. 8984 # Note that $ac_compile itself does not contain backslashes and begins 8985 # with a dollar sign (not a hyphen), so the echo should work correctly. 8986 lt_compile=`echo "$ac_compile" | $SED \ 8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8989 -e 's:$: $lt_compiler_flag:'` 8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8991 (eval "$lt_compile" 2>out/conftest.err) 8992 ac_status=$? 8993 cat out/conftest.err >&5 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8996 then 8997 # The compiler can only warn and ignore the option if not recognized 8998 # So say no if there are warnings 8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9002 lt_cv_prog_compiler_c_o=yes 9003 fi 9004 fi 9005 chmod u+w . 2>&5 9006 $RM conftest* 9007 # SGI C++ compiler will create directory out/ii_files/ for 9008 # template instantiation 9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9010 $RM out/* && rmdir out 9011 cd .. 9012 $RM -r conftest 9013 $RM conftest* 9014 9015fi 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9017$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9018 9019 9020 9021 9022 9023 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9025$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9026if ${lt_cv_prog_compiler_c_o+:} false; then : 9027 $as_echo_n "(cached) " >&6 9028else 9029 lt_cv_prog_compiler_c_o=no 9030 $RM -r conftest 2>/dev/null 9031 mkdir conftest 9032 cd conftest 9033 mkdir out 9034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9035 9036 lt_compiler_flag="-o out/conftest2.$ac_objext" 9037 # Insert the option either (1) after the last *FLAGS variable, or 9038 # (2) before a word containing "conftest.", or (3) at the end. 9039 # Note that $ac_compile itself does not contain backslashes and begins 9040 # with a dollar sign (not a hyphen), so the echo should work correctly. 9041 lt_compile=`echo "$ac_compile" | $SED \ 9042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9044 -e 's:$: $lt_compiler_flag:'` 9045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9046 (eval "$lt_compile" 2>out/conftest.err) 9047 ac_status=$? 9048 cat out/conftest.err >&5 9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9050 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9051 then 9052 # The compiler can only warn and ignore the option if not recognized 9053 # So say no if there are warnings 9054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9057 lt_cv_prog_compiler_c_o=yes 9058 fi 9059 fi 9060 chmod u+w . 2>&5 9061 $RM conftest* 9062 # SGI C++ compiler will create directory out/ii_files/ for 9063 # template instantiation 9064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9065 $RM out/* && rmdir out 9066 cd .. 9067 $RM -r conftest 9068 $RM conftest* 9069 9070fi 9071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9072$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9073 9074 9075 9076 9077hard_links="nottested" 9078if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9079 # do not overwrite the value of need_locks provided by the user 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9081$as_echo_n "checking if we can lock with hard links... " >&6; } 9082 hard_links=yes 9083 $RM conftest* 9084 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9085 touch conftest.a 9086 ln conftest.a conftest.b 2>&5 || hard_links=no 9087 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9089$as_echo "$hard_links" >&6; } 9090 if test "$hard_links" = no; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9092$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9093 need_locks=warn 9094 fi 9095else 9096 need_locks=no 9097fi 9098 9099 9100 9101 9102 9103 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9105$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9106 9107 runpath_var= 9108 allow_undefined_flag= 9109 always_export_symbols=no 9110 archive_cmds= 9111 archive_expsym_cmds= 9112 compiler_needs_object=no 9113 enable_shared_with_static_runtimes=no 9114 export_dynamic_flag_spec= 9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9116 hardcode_automatic=no 9117 hardcode_direct=no 9118 hardcode_direct_absolute=no 9119 hardcode_libdir_flag_spec= 9120 hardcode_libdir_flag_spec_ld= 9121 hardcode_libdir_separator= 9122 hardcode_minus_L=no 9123 hardcode_shlibpath_var=unsupported 9124 inherit_rpath=no 9125 link_all_deplibs=unknown 9126 module_cmds= 9127 module_expsym_cmds= 9128 old_archive_from_new_cmds= 9129 old_archive_from_expsyms_cmds= 9130 thread_safe_flag_spec= 9131 whole_archive_flag_spec= 9132 # include_expsyms should be a list of space-separated symbols to be *always* 9133 # included in the symbol list 9134 include_expsyms= 9135 # exclude_expsyms can be an extended regexp of symbols to exclude 9136 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9138 # as well as any symbol that contains `d'. 9139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9141 # platforms (ab)use it in PIC code, but their linkers get confused if 9142 # the symbol is explicitly referenced. Since portable code cannot 9143 # rely on this symbol name, it's probably fine to never include it in 9144 # preloaded symbol tables. 9145 # Exclude shared library initialization/finalization symbols. 9146 extract_expsyms_cmds= 9147 9148 case $host_os in 9149 cygwin* | mingw* | pw32* | cegcc*) 9150 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9151 # When not using gcc, we currently assume that we are using 9152 # Microsoft Visual C++. 9153 if test "$GCC" != yes; then 9154 with_gnu_ld=no 9155 fi 9156 ;; 9157 interix*) 9158 # we just hope/assume this is gcc and not c89 (= MSVC++) 9159 with_gnu_ld=yes 9160 ;; 9161 openbsd*) 9162 with_gnu_ld=no 9163 ;; 9164 esac 9165 9166 ld_shlibs=yes 9167 9168 # On some targets, GNU ld is compatible enough with the native linker 9169 # that we're better off using the native interface for both. 9170 lt_use_gnu_ld_interface=no 9171 if test "$with_gnu_ld" = yes; then 9172 case $host_os in 9173 aix*) 9174 # The AIX port of GNU ld has always aspired to compatibility 9175 # with the native linker. However, as the warning in the GNU ld 9176 # block says, versions before 2.19.5* couldn't really create working 9177 # shared libraries, regardless of the interface used. 9178 case `$LD -v 2>&1` in 9179 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9180 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9181 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9182 *) 9183 lt_use_gnu_ld_interface=yes 9184 ;; 9185 esac 9186 ;; 9187 *) 9188 lt_use_gnu_ld_interface=yes 9189 ;; 9190 esac 9191 fi 9192 9193 if test "$lt_use_gnu_ld_interface" = yes; then 9194 # If archive_cmds runs LD, not CC, wlarc should be empty 9195 wlarc='${wl}' 9196 9197 # Set some defaults for GNU ld with shared library support. These 9198 # are reset later if shared libraries are not supported. Putting them 9199 # here allows them to be overridden if necessary. 9200 runpath_var=LD_RUN_PATH 9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9202 export_dynamic_flag_spec='${wl}--export-dynamic' 9203 # ancient GNU ld didn't support --whole-archive et. al. 9204 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9206 else 9207 whole_archive_flag_spec= 9208 fi 9209 supports_anon_versioning=no 9210 case `$LD -v 2>&1` in 9211 *GNU\ gold*) supports_anon_versioning=yes ;; 9212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9215 *\ 2.11.*) ;; # other 2.11 versions 9216 *) supports_anon_versioning=yes ;; 9217 esac 9218 9219 # See if GNU ld supports shared libraries. 9220 case $host_os in 9221 aix[3-9]*) 9222 # On AIX/PPC, the GNU linker is very broken 9223 if test "$host_cpu" != ia64; then 9224 ld_shlibs=no 9225 cat <<_LT_EOF 1>&2 9226 9227*** Warning: the GNU linker, at least up to release 2.19, is reported 9228*** to be unable to reliably create shared libraries on AIX. 9229*** Therefore, libtool is disabling shared libraries support. If you 9230*** really care for shared libraries, you may want to install binutils 9231*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9232*** You will then need to restart the configuration process. 9233 9234_LT_EOF 9235 fi 9236 ;; 9237 9238 amigaos*) 9239 case $host_cpu in 9240 powerpc) 9241 # see comment about AmigaOS4 .so support 9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9243 archive_expsym_cmds='' 9244 ;; 9245 m68k) 9246 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)' 9247 hardcode_libdir_flag_spec='-L$libdir' 9248 hardcode_minus_L=yes 9249 ;; 9250 esac 9251 ;; 9252 9253 beos*) 9254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9255 allow_undefined_flag=unsupported 9256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9257 # support --undefined. This deserves some investigation. FIXME 9258 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9259 else 9260 ld_shlibs=no 9261 fi 9262 ;; 9263 9264 cygwin* | mingw* | pw32* | cegcc*) 9265 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9266 # as there is no search path for DLLs. 9267 hardcode_libdir_flag_spec='-L$libdir' 9268 export_dynamic_flag_spec='${wl}--export-all-symbols' 9269 allow_undefined_flag=unsupported 9270 always_export_symbols=no 9271 enable_shared_with_static_runtimes=yes 9272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9273 9274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9276 # If the export-symbols file already is a .def file (1st line 9277 # is EXPORTS), use it as is; otherwise, prepend... 9278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9279 cp $export_symbols $output_objdir/$soname.def; 9280 else 9281 echo EXPORTS > $output_objdir/$soname.def; 9282 cat $export_symbols >> $output_objdir/$soname.def; 9283 fi~ 9284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9285 else 9286 ld_shlibs=no 9287 fi 9288 ;; 9289 9290 haiku*) 9291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9292 link_all_deplibs=yes 9293 ;; 9294 9295 interix[3-9]*) 9296 hardcode_direct=no 9297 hardcode_shlibpath_var=no 9298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9299 export_dynamic_flag_spec='${wl}-E' 9300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9301 # Instead, shared libraries are loaded at an image base (0x10000000 by 9302 # default) and relocated if they conflict, which is a slow very memory 9303 # consuming and fragmenting process. To avoid this, we pick a random, 9304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9305 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9307 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' 9308 ;; 9309 9310 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9311 tmp_diet=no 9312 if test "$host_os" = linux-dietlibc; then 9313 case $cc_basename in 9314 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9315 esac 9316 fi 9317 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9318 && test "$tmp_diet" = no 9319 then 9320 tmp_addflag=' $pic_flag' 9321 tmp_sharedflag='-shared' 9322 case $cc_basename,$host_cpu in 9323 pgcc*) # Portland Group C compiler 9324 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' 9325 tmp_addflag=' $pic_flag' 9326 ;; 9327 pgf77* | pgf90* | pgf95* | pgfortran*) 9328 # Portland Group f77 and f90 compilers 9329 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' 9330 tmp_addflag=' $pic_flag -Mnomain' ;; 9331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9332 tmp_addflag=' -i_dynamic' ;; 9333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9334 tmp_addflag=' -i_dynamic -nofor_main' ;; 9335 ifc* | ifort*) # Intel Fortran compiler 9336 tmp_addflag=' -nofor_main' ;; 9337 lf95*) # Lahey Fortran 8.1 9338 whole_archive_flag_spec= 9339 tmp_sharedflag='--shared' ;; 9340 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9341 tmp_sharedflag='-qmkshrobj' 9342 tmp_addflag= ;; 9343 nvcc*) # Cuda Compiler Driver 2.2 9344 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' 9345 compiler_needs_object=yes 9346 ;; 9347 esac 9348 case `$CC -V 2>&1 | sed 5q` in 9349 *Sun\ C*) # Sun C 5.9 9350 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' 9351 compiler_needs_object=yes 9352 tmp_sharedflag='-G' ;; 9353 *Sun\ F*) # Sun Fortran 8.3 9354 tmp_sharedflag='-G' ;; 9355 esac 9356 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9357 9358 if test "x$supports_anon_versioning" = xyes; then 9359 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9361 echo "local: *; };" >> $output_objdir/$libname.ver~ 9362 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9363 fi 9364 9365 case $cc_basename in 9366 xlf* | bgf* | bgxlf* | mpixlf*) 9367 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9368 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9369 hardcode_libdir_flag_spec= 9370 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9371 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9372 if test "x$supports_anon_versioning" = xyes; then 9373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9375 echo "local: *; };" >> $output_objdir/$libname.ver~ 9376 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9377 fi 9378 ;; 9379 esac 9380 else 9381 ld_shlibs=no 9382 fi 9383 ;; 9384 9385 netbsd*) 9386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9387 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9388 wlarc= 9389 else 9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9392 fi 9393 ;; 9394 9395 solaris*) 9396 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9397 ld_shlibs=no 9398 cat <<_LT_EOF 1>&2 9399 9400*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9401*** create shared libraries on Solaris systems. Therefore, libtool 9402*** is disabling shared libraries support. We urge you to upgrade GNU 9403*** binutils to release 2.9.1 or newer. Another option is to modify 9404*** your PATH or compiler configuration so that the native linker is 9405*** used, and then restart. 9406 9407_LT_EOF 9408 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9411 else 9412 ld_shlibs=no 9413 fi 9414 ;; 9415 9416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9417 case `$LD -v 2>&1` in 9418 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9419 ld_shlibs=no 9420 cat <<_LT_EOF 1>&2 9421 9422*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9423*** reliably create shared libraries on SCO systems. Therefore, libtool 9424*** is disabling shared libraries support. We urge you to upgrade GNU 9425*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9426*** your PATH or compiler configuration so that the native linker is 9427*** used, and then restart. 9428 9429_LT_EOF 9430 ;; 9431 *) 9432 # For security reasons, it is highly recommended that you always 9433 # use absolute paths for naming shared libraries, and exclude the 9434 # DT_RUNPATH tag from executables and libraries. But doing so 9435 # requires that you compile everything twice, which is a pain. 9436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9440 else 9441 ld_shlibs=no 9442 fi 9443 ;; 9444 esac 9445 ;; 9446 9447 sunos4*) 9448 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9449 wlarc= 9450 hardcode_direct=yes 9451 hardcode_shlibpath_var=no 9452 ;; 9453 9454 *) 9455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9458 else 9459 ld_shlibs=no 9460 fi 9461 ;; 9462 esac 9463 9464 if test "$ld_shlibs" = no; then 9465 runpath_var= 9466 hardcode_libdir_flag_spec= 9467 export_dynamic_flag_spec= 9468 whole_archive_flag_spec= 9469 fi 9470 else 9471 # PORTME fill in a description of your system's linker (not GNU ld) 9472 case $host_os in 9473 aix3*) 9474 allow_undefined_flag=unsupported 9475 always_export_symbols=yes 9476 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' 9477 # Note: this linker hardcodes the directories in LIBPATH if there 9478 # are no directories specified by -L. 9479 hardcode_minus_L=yes 9480 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9481 # Neither direct hardcoding nor static linking is supported with a 9482 # broken collect2. 9483 hardcode_direct=unsupported 9484 fi 9485 ;; 9486 9487 aix[4-9]*) 9488 if test "$host_cpu" = ia64; then 9489 # On IA64, the linker does run time linking by default, so we don't 9490 # have to do anything special. 9491 aix_use_runtimelinking=no 9492 exp_sym_flag='-Bexport' 9493 no_entry_flag="" 9494 else 9495 # If we're using GNU nm, then we don't want the "-C" option. 9496 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9497 # Also, AIX nm treats weak defined symbols like other global 9498 # defined symbols, whereas GNU nm marks them as "W". 9499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9500 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' 9501 else 9502 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' 9503 fi 9504 aix_use_runtimelinking=no 9505 9506 # Test if we are trying to use run time linking or normal 9507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9508 # need to do runtime linking. 9509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9510 for ld_flag in $LDFLAGS; do 9511 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9512 aix_use_runtimelinking=yes 9513 break 9514 fi 9515 done 9516 ;; 9517 esac 9518 9519 exp_sym_flag='-bexport' 9520 no_entry_flag='-bnoentry' 9521 fi 9522 9523 # When large executables or shared objects are built, AIX ld can 9524 # have problems creating the table of contents. If linking a library 9525 # or program results in "error TOC overflow" add -mminimal-toc to 9526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9528 9529 archive_cmds='' 9530 hardcode_direct=yes 9531 hardcode_direct_absolute=yes 9532 hardcode_libdir_separator=':' 9533 link_all_deplibs=yes 9534 file_list_spec='${wl}-f,' 9535 9536 if test "$GCC" = yes; then 9537 case $host_os in aix4.[012]|aix4.[012].*) 9538 # We only want to do this on AIX 4.2 and lower, the check 9539 # below for broken collect2 doesn't work under 4.3+ 9540 collect2name=`${CC} -print-prog-name=collect2` 9541 if test -f "$collect2name" && 9542 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9543 then 9544 # We have reworked collect2 9545 : 9546 else 9547 # We have old collect2 9548 hardcode_direct=unsupported 9549 # It fails to find uninstalled libraries when the uninstalled 9550 # path is not listed in the libpath. Setting hardcode_minus_L 9551 # to unsupported forces relinking 9552 hardcode_minus_L=yes 9553 hardcode_libdir_flag_spec='-L$libdir' 9554 hardcode_libdir_separator= 9555 fi 9556 ;; 9557 esac 9558 shared_flag='-shared' 9559 if test "$aix_use_runtimelinking" = yes; then 9560 shared_flag="$shared_flag "'${wl}-G' 9561 fi 9562 else 9563 # not using gcc 9564 if test "$host_cpu" = ia64; then 9565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9566 # chokes on -Wl,-G. The following line is correct: 9567 shared_flag='-G' 9568 else 9569 if test "$aix_use_runtimelinking" = yes; then 9570 shared_flag='${wl}-G' 9571 else 9572 shared_flag='${wl}-bM:SRE' 9573 fi 9574 fi 9575 fi 9576 9577 export_dynamic_flag_spec='${wl}-bexpall' 9578 # It seems that -bexpall does not export symbols beginning with 9579 # underscore (_), so it is better to generate a list of symbols to export. 9580 always_export_symbols=yes 9581 if test "$aix_use_runtimelinking" = yes; then 9582 # Warning - without using the other runtime loading flags (-brtl), 9583 # -berok will link without error, but may produce a broken library. 9584 allow_undefined_flag='-berok' 9585 # Determine the default libpath from the value encoded in an 9586 # empty executable. 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9588/* end confdefs.h. */ 9589 9590int 9591main () 9592{ 9593 9594 ; 9595 return 0; 9596} 9597_ACEOF 9598if ac_fn_c_try_link "$LINENO"; then : 9599 9600lt_aix_libpath_sed=' 9601 /Import File Strings/,/^$/ { 9602 /^0/ { 9603 s/^0 *\(.*\)$/\1/ 9604 p 9605 } 9606 }' 9607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9608# Check for a 64-bit object if we didn't find anything. 9609if test -z "$aix_libpath"; then 9610 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9611fi 9612fi 9613rm -f core conftest.err conftest.$ac_objext \ 9614 conftest$ac_exeext conftest.$ac_ext 9615if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9616 9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9618 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" 9619 else 9620 if test "$host_cpu" = ia64; then 9621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9622 allow_undefined_flag="-z nodefs" 9623 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" 9624 else 9625 # Determine the default libpath from the value encoded in an 9626 # empty executable. 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629 9630int 9631main () 9632{ 9633 9634 ; 9635 return 0; 9636} 9637_ACEOF 9638if ac_fn_c_try_link "$LINENO"; then : 9639 9640lt_aix_libpath_sed=' 9641 /Import File Strings/,/^$/ { 9642 /^0/ { 9643 s/^0 *\(.*\)$/\1/ 9644 p 9645 } 9646 }' 9647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9648# Check for a 64-bit object if we didn't find anything. 9649if test -z "$aix_libpath"; then 9650 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9651fi 9652fi 9653rm -f core conftest.err conftest.$ac_objext \ 9654 conftest$ac_exeext conftest.$ac_ext 9655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9656 9657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9658 # Warning - without using the other run time loading flags, 9659 # -berok will link without error, but may produce a broken library. 9660 no_undefined_flag=' ${wl}-bernotok' 9661 allow_undefined_flag=' ${wl}-berok' 9662 if test "$with_gnu_ld" = yes; then 9663 # We only use this code for GNU lds that support --whole-archive. 9664 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9665 else 9666 # Exported symbols can be pulled into shared objects from archives 9667 whole_archive_flag_spec='$convenience' 9668 fi 9669 archive_cmds_need_lc=yes 9670 # This is similar to how AIX traditionally builds its shared libraries. 9671 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' 9672 fi 9673 fi 9674 ;; 9675 9676 amigaos*) 9677 case $host_cpu in 9678 powerpc) 9679 # see comment about AmigaOS4 .so support 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9681 archive_expsym_cmds='' 9682 ;; 9683 m68k) 9684 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)' 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 hardcode_minus_L=yes 9687 ;; 9688 esac 9689 ;; 9690 9691 bsdi[45]*) 9692 export_dynamic_flag_spec=-rdynamic 9693 ;; 9694 9695 cygwin* | mingw* | pw32* | cegcc*) 9696 # When not using gcc, we currently assume that we are using 9697 # Microsoft Visual C++. 9698 # hardcode_libdir_flag_spec is actually meaningless, as there is 9699 # no search path for DLLs. 9700 hardcode_libdir_flag_spec=' ' 9701 allow_undefined_flag=unsupported 9702 # Tell ltmain to make .lib files, not .a files. 9703 libext=lib 9704 # Tell ltmain to make .dll files, not .so files. 9705 shrext_cmds=".dll" 9706 # FIXME: Setting linknames here is a bad hack. 9707 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9708 # The linker will automatically build a .lib file if we build a DLL. 9709 old_archive_from_new_cmds='true' 9710 # FIXME: Should let the user specify the lib program. 9711 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9712 fix_srcfile_path='`cygpath -w "$srcfile"`' 9713 enable_shared_with_static_runtimes=yes 9714 ;; 9715 9716 darwin* | rhapsody*) 9717 9718 9719 archive_cmds_need_lc=no 9720 hardcode_direct=no 9721 hardcode_automatic=yes 9722 hardcode_shlibpath_var=unsupported 9723 if test "$lt_cv_ld_force_load" = "yes"; then 9724 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\"`' 9725 else 9726 whole_archive_flag_spec='' 9727 fi 9728 link_all_deplibs=yes 9729 allow_undefined_flag="$_lt_dar_allow_undefined" 9730 case $cc_basename in 9731 ifort*) _lt_dar_can_shared=yes ;; 9732 *) _lt_dar_can_shared=$GCC ;; 9733 esac 9734 if test "$_lt_dar_can_shared" = "yes"; then 9735 output_verbose_link_cmd=func_echo_all 9736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9738 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}" 9739 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}" 9740 9741 else 9742 ld_shlibs=no 9743 fi 9744 9745 ;; 9746 9747 dgux*) 9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9749 hardcode_libdir_flag_spec='-L$libdir' 9750 hardcode_shlibpath_var=no 9751 ;; 9752 9753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9754 # support. Future versions do this automatically, but an explicit c++rt0.o 9755 # does not break anything, and helps significantly (at the cost of a little 9756 # extra space). 9757 freebsd2.2*) 9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9759 hardcode_libdir_flag_spec='-R$libdir' 9760 hardcode_direct=yes 9761 hardcode_shlibpath_var=no 9762 ;; 9763 9764 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9765 freebsd2.*) 9766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9767 hardcode_direct=yes 9768 hardcode_minus_L=yes 9769 hardcode_shlibpath_var=no 9770 ;; 9771 9772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9773 freebsd* | dragonfly*) 9774 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9775 hardcode_libdir_flag_spec='-R$libdir' 9776 hardcode_direct=yes 9777 hardcode_shlibpath_var=no 9778 ;; 9779 9780 hpux9*) 9781 if test "$GCC" = yes; then 9782 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' 9783 else 9784 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' 9785 fi 9786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9787 hardcode_libdir_separator=: 9788 hardcode_direct=yes 9789 9790 # hardcode_minus_L: Not really in the search PATH, 9791 # but as the default location of the library. 9792 hardcode_minus_L=yes 9793 export_dynamic_flag_spec='${wl}-E' 9794 ;; 9795 9796 hpux10*) 9797 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9799 else 9800 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9801 fi 9802 if test "$with_gnu_ld" = no; then 9803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9804 hardcode_libdir_flag_spec_ld='+b $libdir' 9805 hardcode_libdir_separator=: 9806 hardcode_direct=yes 9807 hardcode_direct_absolute=yes 9808 export_dynamic_flag_spec='${wl}-E' 9809 # hardcode_minus_L: Not really in the search PATH, 9810 # but as the default location of the library. 9811 hardcode_minus_L=yes 9812 fi 9813 ;; 9814 9815 hpux11*) 9816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9817 case $host_cpu in 9818 hppa*64*) 9819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9820 ;; 9821 ia64*) 9822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9823 ;; 9824 *) 9825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9826 ;; 9827 esac 9828 else 9829 case $host_cpu in 9830 hppa*64*) 9831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9832 ;; 9833 ia64*) 9834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9835 ;; 9836 *) 9837 9838 # Older versions of the 11.00 compiler do not understand -b yet 9839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9841$as_echo_n "checking if $CC understands -b... " >&6; } 9842if ${lt_cv_prog_compiler__b+:} false; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 lt_cv_prog_compiler__b=no 9846 save_LDFLAGS="$LDFLAGS" 9847 LDFLAGS="$LDFLAGS -b" 9848 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9850 # The linker can only warn and ignore the option if not recognized 9851 # So say no if there are warnings 9852 if test -s conftest.err; then 9853 # Append any errors to the config.log. 9854 cat conftest.err 1>&5 9855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9857 if diff conftest.exp conftest.er2 >/dev/null; then 9858 lt_cv_prog_compiler__b=yes 9859 fi 9860 else 9861 lt_cv_prog_compiler__b=yes 9862 fi 9863 fi 9864 $RM -r conftest* 9865 LDFLAGS="$save_LDFLAGS" 9866 9867fi 9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9869$as_echo "$lt_cv_prog_compiler__b" >&6; } 9870 9871if test x"$lt_cv_prog_compiler__b" = xyes; then 9872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9873else 9874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9875fi 9876 9877 ;; 9878 esac 9879 fi 9880 if test "$with_gnu_ld" = no; then 9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9882 hardcode_libdir_separator=: 9883 9884 case $host_cpu in 9885 hppa*64*|ia64*) 9886 hardcode_direct=no 9887 hardcode_shlibpath_var=no 9888 ;; 9889 *) 9890 hardcode_direct=yes 9891 hardcode_direct_absolute=yes 9892 export_dynamic_flag_spec='${wl}-E' 9893 9894 # hardcode_minus_L: Not really in the search PATH, 9895 # but as the default location of the library. 9896 hardcode_minus_L=yes 9897 ;; 9898 esac 9899 fi 9900 ;; 9901 9902 irix5* | irix6* | nonstopux*) 9903 if test "$GCC" = yes; then 9904 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' 9905 # Try to use the -exported_symbol ld option, if it does not 9906 # work, assume that -exports_file does not work either and 9907 # implicitly export all symbols. 9908 save_LDFLAGS="$LDFLAGS" 9909 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912int foo(void) {} 9913_ACEOF 9914if ac_fn_c_try_link "$LINENO"; then : 9915 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' 9916 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext conftest.$ac_ext 9920 LDFLAGS="$save_LDFLAGS" 9921 else 9922 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' 9923 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' 9924 fi 9925 archive_cmds_need_lc='no' 9926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9927 hardcode_libdir_separator=: 9928 inherit_rpath=yes 9929 link_all_deplibs=yes 9930 ;; 9931 9932 netbsd*) 9933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9935 else 9936 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9937 fi 9938 hardcode_libdir_flag_spec='-R$libdir' 9939 hardcode_direct=yes 9940 hardcode_shlibpath_var=no 9941 ;; 9942 9943 newsos6) 9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9945 hardcode_direct=yes 9946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9947 hardcode_libdir_separator=: 9948 hardcode_shlibpath_var=no 9949 ;; 9950 9951 *nto* | *qnx*) 9952 ;; 9953 9954 openbsd*) 9955 if test -f /usr/libexec/ld.so; then 9956 hardcode_direct=yes 9957 hardcode_shlibpath_var=no 9958 hardcode_direct_absolute=yes 9959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9961 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9962 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9963 export_dynamic_flag_spec='${wl}-E' 9964 else 9965 case $host_os in 9966 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9968 hardcode_libdir_flag_spec='-R$libdir' 9969 ;; 9970 *) 9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9973 ;; 9974 esac 9975 fi 9976 else 9977 ld_shlibs=no 9978 fi 9979 ;; 9980 9981 os2*) 9982 hardcode_libdir_flag_spec='-L$libdir' 9983 hardcode_minus_L=yes 9984 allow_undefined_flag=unsupported 9985 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' 9986 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9987 ;; 9988 9989 osf3*) 9990 if test "$GCC" = yes; then 9991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9992 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' 9993 else 9994 allow_undefined_flag=' -expect_unresolved \*' 9995 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' 9996 fi 9997 archive_cmds_need_lc='no' 9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9999 hardcode_libdir_separator=: 10000 ;; 10001 10002 osf4* | osf5*) # as osf3* with the addition of -msym flag 10003 if test "$GCC" = yes; then 10004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10005 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' 10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10007 else 10008 allow_undefined_flag=' -expect_unresolved \*' 10009 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' 10010 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~ 10011 $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' 10012 10013 # Both c and cxx compiler support -rpath directly 10014 hardcode_libdir_flag_spec='-rpath $libdir' 10015 fi 10016 archive_cmds_need_lc='no' 10017 hardcode_libdir_separator=: 10018 ;; 10019 10020 solaris*) 10021 no_undefined_flag=' -z defs' 10022 if test "$GCC" = yes; then 10023 wlarc='${wl}' 10024 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10026 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10027 else 10028 case `$CC -V 2>&1` in 10029 *"Compilers 5.0"*) 10030 wlarc='' 10031 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10034 ;; 10035 *) 10036 wlarc='${wl}' 10037 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10039 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10040 ;; 10041 esac 10042 fi 10043 hardcode_libdir_flag_spec='-R$libdir' 10044 hardcode_shlibpath_var=no 10045 case $host_os in 10046 solaris2.[0-5] | solaris2.[0-5].*) ;; 10047 *) 10048 # The compiler driver will combine and reorder linker options, 10049 # but understands `-z linker_flag'. GCC discards it without `$wl', 10050 # but is careful enough not to reorder. 10051 # Supported since Solaris 2.6 (maybe 2.5.1?) 10052 if test "$GCC" = yes; then 10053 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10054 else 10055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10056 fi 10057 ;; 10058 esac 10059 link_all_deplibs=yes 10060 ;; 10061 10062 sunos4*) 10063 if test "x$host_vendor" = xsequent; then 10064 # Use $CC to link under sequent, because it throws in some extra .o 10065 # files that make .init and .fini sections work. 10066 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10067 else 10068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10069 fi 10070 hardcode_libdir_flag_spec='-L$libdir' 10071 hardcode_direct=yes 10072 hardcode_minus_L=yes 10073 hardcode_shlibpath_var=no 10074 ;; 10075 10076 sysv4) 10077 case $host_vendor in 10078 sni) 10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10080 hardcode_direct=yes # is this really true??? 10081 ;; 10082 siemens) 10083 ## LD is ld it makes a PLAMLIB 10084 ## CC just makes a GrossModule. 10085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10086 reload_cmds='$CC -r -o $output$reload_objs' 10087 hardcode_direct=no 10088 ;; 10089 motorola) 10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10092 ;; 10093 esac 10094 runpath_var='LD_RUN_PATH' 10095 hardcode_shlibpath_var=no 10096 ;; 10097 10098 sysv4.3*) 10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10100 hardcode_shlibpath_var=no 10101 export_dynamic_flag_spec='-Bexport' 10102 ;; 10103 10104 sysv4*MP*) 10105 if test -d /usr/nec; then 10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10107 hardcode_shlibpath_var=no 10108 runpath_var=LD_RUN_PATH 10109 hardcode_runpath_var=yes 10110 ld_shlibs=yes 10111 fi 10112 ;; 10113 10114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10115 no_undefined_flag='${wl}-z,text' 10116 archive_cmds_need_lc=no 10117 hardcode_shlibpath_var=no 10118 runpath_var='LD_RUN_PATH' 10119 10120 if test "$GCC" = yes; then 10121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10123 else 10124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10126 fi 10127 ;; 10128 10129 sysv5* | sco3.2v5* | sco5v6*) 10130 # Note: We can NOT use -z defs as we might desire, because we do not 10131 # link with -lc, and that would cause any symbols used from libc to 10132 # always be unresolved, which means just about no library would 10133 # ever link correctly. If we're not using GNU ld we use -z text 10134 # though, which does catch some bad symbols but isn't as heavy-handed 10135 # as -z defs. 10136 no_undefined_flag='${wl}-z,text' 10137 allow_undefined_flag='${wl}-z,nodefs' 10138 archive_cmds_need_lc=no 10139 hardcode_shlibpath_var=no 10140 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10141 hardcode_libdir_separator=':' 10142 link_all_deplibs=yes 10143 export_dynamic_flag_spec='${wl}-Bexport' 10144 runpath_var='LD_RUN_PATH' 10145 10146 if test "$GCC" = yes; then 10147 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10148 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10149 else 10150 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10151 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10152 fi 10153 ;; 10154 10155 uts4*) 10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10157 hardcode_libdir_flag_spec='-L$libdir' 10158 hardcode_shlibpath_var=no 10159 ;; 10160 10161 *) 10162 ld_shlibs=no 10163 ;; 10164 esac 10165 10166 if test x$host_vendor = xsni; then 10167 case $host in 10168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10169 export_dynamic_flag_spec='${wl}-Blargedynsym' 10170 ;; 10171 esac 10172 fi 10173 fi 10174 10175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10176$as_echo "$ld_shlibs" >&6; } 10177test "$ld_shlibs" = no && can_build_shared=no 10178 10179with_gnu_ld=$with_gnu_ld 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195# 10196# Do we need to explicitly link libc? 10197# 10198case "x$archive_cmds_need_lc" in 10199x|xyes) 10200 # Assume -lc should be added 10201 archive_cmds_need_lc=yes 10202 10203 if test "$enable_shared" = yes && test "$GCC" = yes; then 10204 case $archive_cmds in 10205 *'~'*) 10206 # FIXME: we may have to deal with multi-command sequences. 10207 ;; 10208 '$CC '*) 10209 # Test whether the compiler implicitly links with -lc since on some 10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10211 # to ld, don't add -lc before -lgcc. 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10213$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10214if ${lt_cv_archive_cmds_need_lc+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 $RM conftest* 10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10219 10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10221 (eval $ac_compile) 2>&5 10222 ac_status=$? 10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10224 test $ac_status = 0; } 2>conftest.err; then 10225 soname=conftest 10226 lib=conftest 10227 libobjs=conftest.$ac_objext 10228 deplibs= 10229 wl=$lt_prog_compiler_wl 10230 pic_flag=$lt_prog_compiler_pic 10231 compiler_flags=-v 10232 linker_flags=-v 10233 verstring= 10234 output_objdir=. 10235 libname=conftest 10236 lt_save_allow_undefined_flag=$allow_undefined_flag 10237 allow_undefined_flag= 10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10239 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10240 ac_status=$? 10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10242 test $ac_status = 0; } 10243 then 10244 lt_cv_archive_cmds_need_lc=no 10245 else 10246 lt_cv_archive_cmds_need_lc=yes 10247 fi 10248 allow_undefined_flag=$lt_save_allow_undefined_flag 10249 else 10250 cat conftest.err 1>&5 10251 fi 10252 $RM conftest* 10253 10254fi 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10256$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10257 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10258 ;; 10259 esac 10260 fi 10261 ;; 10262esac 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10421$as_echo_n "checking dynamic linker characteristics... " >&6; } 10422 10423if test "$GCC" = yes; then 10424 case $host_os in 10425 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10426 *) lt_awk_arg="/^libraries:/" ;; 10427 esac 10428 case $host_os in 10429 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10430 *) lt_sed_strip_eq="s,=/,/,g" ;; 10431 esac 10432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10433 case $lt_search_path_spec in 10434 *\;*) 10435 # if the path contains ";" then we assume it to be the separator 10436 # otherwise default to the standard path separator (i.e. ":") - it is 10437 # assumed that no part of a normal pathname contains ";" but that should 10438 # okay in the real world where ";" in dirpaths is itself problematic. 10439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10440 ;; 10441 *) 10442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10443 ;; 10444 esac 10445 # Ok, now we have the path, separated by spaces, we can step through it 10446 # and add multilib dir if necessary. 10447 lt_tmp_lt_search_path_spec= 10448 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10449 for lt_sys_path in $lt_search_path_spec; do 10450 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10452 else 10453 test -d "$lt_sys_path" && \ 10454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10455 fi 10456 done 10457 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10458BEGIN {RS=" "; FS="/|\n";} { 10459 lt_foo=""; 10460 lt_count=0; 10461 for (lt_i = NF; lt_i > 0; lt_i--) { 10462 if ($lt_i != "" && $lt_i != ".") { 10463 if ($lt_i == "..") { 10464 lt_count++; 10465 } else { 10466 if (lt_count == 0) { 10467 lt_foo="/" $lt_i lt_foo; 10468 } else { 10469 lt_count--; 10470 } 10471 } 10472 } 10473 } 10474 if (lt_foo != "") { lt_freq[lt_foo]++; } 10475 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10476}'` 10477 # AWK program above erroneously prepends '/' to C:/dos/paths 10478 # for these hosts. 10479 case $host_os in 10480 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10481 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10482 esac 10483 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10484else 10485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10486fi 10487library_names_spec= 10488libname_spec='lib$name' 10489soname_spec= 10490shrext_cmds=".so" 10491postinstall_cmds= 10492postuninstall_cmds= 10493finish_cmds= 10494finish_eval= 10495shlibpath_var= 10496shlibpath_overrides_runpath=unknown 10497version_type=none 10498dynamic_linker="$host_os ld.so" 10499sys_lib_dlsearch_path_spec="/lib /usr/lib" 10500need_lib_prefix=unknown 10501hardcode_into_libs=no 10502 10503# when you set need_version to no, make sure it does not cause -set_version 10504# flags to be left without arguments 10505need_version=unknown 10506 10507case $host_os in 10508aix3*) 10509 version_type=linux 10510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10511 shlibpath_var=LIBPATH 10512 10513 # AIX 3 has no versioning support, so we append a major version to the name. 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 ;; 10516 10517aix[4-9]*) 10518 version_type=linux 10519 need_lib_prefix=no 10520 need_version=no 10521 hardcode_into_libs=yes 10522 if test "$host_cpu" = ia64; then 10523 # AIX 5 supports IA64 10524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10525 shlibpath_var=LD_LIBRARY_PATH 10526 else 10527 # With GCC up to 2.95.x, collect2 would create an import file 10528 # for dependence libraries. The import file would start with 10529 # the line `#! .'. This would cause the generated library to 10530 # depend on `.', always an invalid library. This was fixed in 10531 # development snapshots of GCC prior to 3.0. 10532 case $host_os in 10533 aix4 | aix4.[01] | aix4.[01].*) 10534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10535 echo ' yes ' 10536 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10537 : 10538 else 10539 can_build_shared=no 10540 fi 10541 ;; 10542 esac 10543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10544 # soname into executable. Probably we can add versioning support to 10545 # collect2, so additional links can be useful in future. 10546 if test "$aix_use_runtimelinking" = yes; then 10547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10548 # instead of lib<name>.a to let people know that these are not 10549 # typical AIX shared libraries. 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10551 else 10552 # We preserve .a as extension for shared libraries through AIX4.2 10553 # and later when we are not doing run time linking. 10554 library_names_spec='${libname}${release}.a $libname.a' 10555 soname_spec='${libname}${release}${shared_ext}$major' 10556 fi 10557 shlibpath_var=LIBPATH 10558 fi 10559 ;; 10560 10561amigaos*) 10562 case $host_cpu in 10563 powerpc) 10564 # Since July 2007 AmigaOS4 officially supports .so libraries. 10565 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 ;; 10568 m68k) 10569 library_names_spec='$libname.ixlibrary $libname.a' 10570 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10571 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' 10572 ;; 10573 esac 10574 ;; 10575 10576beos*) 10577 library_names_spec='${libname}${shared_ext}' 10578 dynamic_linker="$host_os ld.so" 10579 shlibpath_var=LIBRARY_PATH 10580 ;; 10581 10582bsdi[45]*) 10583 version_type=linux 10584 need_version=no 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10586 soname_spec='${libname}${release}${shared_ext}$major' 10587 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10588 shlibpath_var=LD_LIBRARY_PATH 10589 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10590 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10591 # the default ld.so.conf also contains /usr/contrib/lib and 10592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10593 # libtool to hard-code these into programs 10594 ;; 10595 10596cygwin* | mingw* | pw32* | cegcc*) 10597 version_type=windows 10598 shrext_cmds=".dll" 10599 need_version=no 10600 need_lib_prefix=no 10601 10602 case $GCC,$host_os in 10603 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10604 library_names_spec='$libname.dll.a' 10605 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10606 postinstall_cmds='base_file=`basename \${file}`~ 10607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10608 dldir=$destdir/`dirname \$dlpath`~ 10609 test -d \$dldir || mkdir -p \$dldir~ 10610 $install_prog $dir/$dlname \$dldir/$dlname~ 10611 chmod a+x \$dldir/$dlname~ 10612 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10613 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10614 fi' 10615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10616 dlpath=$dir/\$dldll~ 10617 $RM \$dlpath' 10618 shlibpath_overrides_runpath=yes 10619 10620 case $host_os in 10621 cygwin*) 10622 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10623 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10624 10625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10626 ;; 10627 mingw* | cegcc*) 10628 # MinGW DLLs use traditional 'lib' prefix 10629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10630 ;; 10631 pw32*) 10632 # pw32 DLLs use 'pw' prefix rather than 'lib' 10633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10634 ;; 10635 esac 10636 ;; 10637 10638 *) 10639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10640 ;; 10641 esac 10642 dynamic_linker='Win32 ld.exe' 10643 # FIXME: first we should search . and the directory the executable is in 10644 shlibpath_var=PATH 10645 ;; 10646 10647darwin* | rhapsody*) 10648 dynamic_linker="$host_os dyld" 10649 version_type=darwin 10650 need_lib_prefix=no 10651 need_version=no 10652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10653 soname_spec='${libname}${release}${major}$shared_ext' 10654 shlibpath_overrides_runpath=yes 10655 shlibpath_var=DYLD_LIBRARY_PATH 10656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10657 10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10660 ;; 10661 10662dgux*) 10663 version_type=linux 10664 need_lib_prefix=no 10665 need_version=no 10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10667 soname_spec='${libname}${release}${shared_ext}$major' 10668 shlibpath_var=LD_LIBRARY_PATH 10669 ;; 10670 10671freebsd* | dragonfly*) 10672 # DragonFly does not have aout. When/if they implement a new 10673 # versioning mechanism, adjust this. 10674 if test -x /usr/bin/objformat; then 10675 objformat=`/usr/bin/objformat` 10676 else 10677 case $host_os in 10678 freebsd[23].*) objformat=aout ;; 10679 *) objformat=elf ;; 10680 esac 10681 fi 10682 version_type=freebsd-$objformat 10683 case $version_type in 10684 freebsd-elf*) 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10686 need_version=no 10687 need_lib_prefix=no 10688 ;; 10689 freebsd-*) 10690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10691 need_version=yes 10692 ;; 10693 esac 10694 shlibpath_var=LD_LIBRARY_PATH 10695 case $host_os in 10696 freebsd2.*) 10697 shlibpath_overrides_runpath=yes 10698 ;; 10699 freebsd3.[01]* | freebsdelf3.[01]*) 10700 shlibpath_overrides_runpath=yes 10701 hardcode_into_libs=yes 10702 ;; 10703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10705 shlibpath_overrides_runpath=no 10706 hardcode_into_libs=yes 10707 ;; 10708 *) # from 4.6 on, and DragonFly 10709 shlibpath_overrides_runpath=yes 10710 hardcode_into_libs=yes 10711 ;; 10712 esac 10713 ;; 10714 10715gnu*) 10716 version_type=linux 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10720 soname_spec='${libname}${release}${shared_ext}$major' 10721 shlibpath_var=LD_LIBRARY_PATH 10722 hardcode_into_libs=yes 10723 ;; 10724 10725haiku*) 10726 version_type=linux 10727 need_lib_prefix=no 10728 need_version=no 10729 dynamic_linker="$host_os runtime_loader" 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10731 soname_spec='${libname}${release}${shared_ext}$major' 10732 shlibpath_var=LIBRARY_PATH 10733 shlibpath_overrides_runpath=yes 10734 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10735 hardcode_into_libs=yes 10736 ;; 10737 10738hpux9* | hpux10* | hpux11*) 10739 # Give a soname corresponding to the major version so that dld.sl refuses to 10740 # link against other versions. 10741 version_type=sunos 10742 need_lib_prefix=no 10743 need_version=no 10744 case $host_cpu in 10745 ia64*) 10746 shrext_cmds='.so' 10747 hardcode_into_libs=yes 10748 dynamic_linker="$host_os dld.so" 10749 shlibpath_var=LD_LIBRARY_PATH 10750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10752 soname_spec='${libname}${release}${shared_ext}$major' 10753 if test "X$HPUX_IA64_MODE" = X32; then 10754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10755 else 10756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10757 fi 10758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10759 ;; 10760 hppa*64*) 10761 shrext_cmds='.sl' 10762 hardcode_into_libs=yes 10763 dynamic_linker="$host_os dld.sl" 10764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10767 soname_spec='${libname}${release}${shared_ext}$major' 10768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10770 ;; 10771 *) 10772 shrext_cmds='.sl' 10773 dynamic_linker="$host_os dld.sl" 10774 shlibpath_var=SHLIB_PATH 10775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10777 soname_spec='${libname}${release}${shared_ext}$major' 10778 ;; 10779 esac 10780 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10781 postinstall_cmds='chmod 555 $lib' 10782 # or fails outright, so override atomically: 10783 install_override_mode=555 10784 ;; 10785 10786interix[3-9]*) 10787 version_type=linux 10788 need_lib_prefix=no 10789 need_version=no 10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10793 shlibpath_var=LD_LIBRARY_PATH 10794 shlibpath_overrides_runpath=no 10795 hardcode_into_libs=yes 10796 ;; 10797 10798irix5* | irix6* | nonstopux*) 10799 case $host_os in 10800 nonstopux*) version_type=nonstopux ;; 10801 *) 10802 if test "$lt_cv_prog_gnu_ld" = yes; then 10803 version_type=linux 10804 else 10805 version_type=irix 10806 fi ;; 10807 esac 10808 need_lib_prefix=no 10809 need_version=no 10810 soname_spec='${libname}${release}${shared_ext}$major' 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10812 case $host_os in 10813 irix5* | nonstopux*) 10814 libsuff= shlibsuff= 10815 ;; 10816 *) 10817 case $LD in # libtool.m4 will add one of these switches to LD 10818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10819 libsuff= shlibsuff= libmagic=32-bit;; 10820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10821 libsuff=32 shlibsuff=N32 libmagic=N32;; 10822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10823 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10824 *) libsuff= shlibsuff= libmagic=never-match;; 10825 esac 10826 ;; 10827 esac 10828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10829 shlibpath_overrides_runpath=no 10830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10832 hardcode_into_libs=yes 10833 ;; 10834 10835# No shared lib support for Linux oldld, aout, or coff. 10836linux*oldld* | linux*aout* | linux*coff*) 10837 dynamic_linker=no 10838 ;; 10839 10840# This must be Linux ELF. 10841linux* | k*bsd*-gnu | kopensolaris*-gnu) 10842 version_type=linux 10843 need_lib_prefix=no 10844 need_version=no 10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10846 soname_spec='${libname}${release}${shared_ext}$major' 10847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 shlibpath_overrides_runpath=no 10850 10851 # Some binutils ld are patched to set DT_RUNPATH 10852 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10853 $as_echo_n "(cached) " >&6 10854else 10855 lt_cv_shlibpath_overrides_runpath=no 10856 save_LDFLAGS=$LDFLAGS 10857 save_libdir=$libdir 10858 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10859 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862 10863int 10864main () 10865{ 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_link "$LINENO"; then : 10872 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10873 lt_cv_shlibpath_overrides_runpath=yes 10874fi 10875fi 10876rm -f core conftest.err conftest.$ac_objext \ 10877 conftest$ac_exeext conftest.$ac_ext 10878 LDFLAGS=$save_LDFLAGS 10879 libdir=$save_libdir 10880 10881fi 10882 10883 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10884 10885 # This implies no fast_install, which is unacceptable. 10886 # Some rework will be needed to allow for fast_install 10887 # before this can be enabled. 10888 hardcode_into_libs=yes 10889 10890 # Append ld.so.conf contents to the search path 10891 if test -f /etc/ld.so.conf; then 10892 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' ' '` 10893 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10894 fi 10895 10896 # We used to test for /lib/ld.so.1 and disable shared libraries on 10897 # powerpc, because MkLinux only supported shared libraries with the 10898 # GNU dynamic linker. Since this was broken with cross compilers, 10899 # most powerpc-linux boxes support dynamic linking these days and 10900 # people can always --disable-shared, the test was removed, and we 10901 # assume the GNU/Linux dynamic linker is in use. 10902 dynamic_linker='GNU/Linux ld.so' 10903 ;; 10904 10905netbsd*) 10906 version_type=sunos 10907 need_lib_prefix=no 10908 need_version=no 10909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10912 dynamic_linker='NetBSD (a.out) ld.so' 10913 else 10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10915 soname_spec='${libname}${release}${shared_ext}$major' 10916 dynamic_linker='NetBSD ld.elf_so' 10917 fi 10918 shlibpath_var=LD_LIBRARY_PATH 10919 shlibpath_overrides_runpath=yes 10920 hardcode_into_libs=yes 10921 ;; 10922 10923newsos6) 10924 version_type=linux 10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10926 shlibpath_var=LD_LIBRARY_PATH 10927 shlibpath_overrides_runpath=yes 10928 ;; 10929 10930*nto* | *qnx*) 10931 version_type=qnx 10932 need_lib_prefix=no 10933 need_version=no 10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10935 soname_spec='${libname}${release}${shared_ext}$major' 10936 shlibpath_var=LD_LIBRARY_PATH 10937 shlibpath_overrides_runpath=no 10938 hardcode_into_libs=yes 10939 dynamic_linker='ldqnx.so' 10940 ;; 10941 10942openbsd*) 10943 version_type=sunos 10944 sys_lib_dlsearch_path_spec="/usr/lib" 10945 need_lib_prefix=no 10946 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10947 case $host_os in 10948 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10949 *) need_version=no ;; 10950 esac 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10953 shlibpath_var=LD_LIBRARY_PATH 10954 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10955 case $host_os in 10956 openbsd2.[89] | openbsd2.[89].*) 10957 shlibpath_overrides_runpath=no 10958 ;; 10959 *) 10960 shlibpath_overrides_runpath=yes 10961 ;; 10962 esac 10963 else 10964 shlibpath_overrides_runpath=yes 10965 fi 10966 ;; 10967 10968os2*) 10969 libname_spec='$name' 10970 shrext_cmds=".dll" 10971 need_lib_prefix=no 10972 library_names_spec='$libname${shared_ext} $libname.a' 10973 dynamic_linker='OS/2 ld.exe' 10974 shlibpath_var=LIBPATH 10975 ;; 10976 10977osf3* | osf4* | osf5*) 10978 version_type=osf 10979 need_lib_prefix=no 10980 need_version=no 10981 soname_spec='${libname}${release}${shared_ext}$major' 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10985 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10986 ;; 10987 10988rdos*) 10989 dynamic_linker=no 10990 ;; 10991 10992solaris*) 10993 version_type=linux 10994 need_lib_prefix=no 10995 need_version=no 10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10997 soname_spec='${libname}${release}${shared_ext}$major' 10998 shlibpath_var=LD_LIBRARY_PATH 10999 shlibpath_overrides_runpath=yes 11000 hardcode_into_libs=yes 11001 # ldd complains unless libraries are executable 11002 postinstall_cmds='chmod +x $lib' 11003 ;; 11004 11005sunos4*) 11006 version_type=sunos 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 shlibpath_overrides_runpath=yes 11011 if test "$with_gnu_ld" = yes; then 11012 need_lib_prefix=no 11013 fi 11014 need_version=yes 11015 ;; 11016 11017sysv4 | sysv4.3*) 11018 version_type=linux 11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11020 soname_spec='${libname}${release}${shared_ext}$major' 11021 shlibpath_var=LD_LIBRARY_PATH 11022 case $host_vendor in 11023 sni) 11024 shlibpath_overrides_runpath=no 11025 need_lib_prefix=no 11026 runpath_var=LD_RUN_PATH 11027 ;; 11028 siemens) 11029 need_lib_prefix=no 11030 ;; 11031 motorola) 11032 need_lib_prefix=no 11033 need_version=no 11034 shlibpath_overrides_runpath=no 11035 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11036 ;; 11037 esac 11038 ;; 11039 11040sysv4*MP*) 11041 if test -d /usr/nec ;then 11042 version_type=linux 11043 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11044 soname_spec='$libname${shared_ext}.$major' 11045 shlibpath_var=LD_LIBRARY_PATH 11046 fi 11047 ;; 11048 11049sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11050 version_type=freebsd-elf 11051 need_lib_prefix=no 11052 need_version=no 11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11054 soname_spec='${libname}${release}${shared_ext}$major' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=yes 11057 hardcode_into_libs=yes 11058 if test "$with_gnu_ld" = yes; then 11059 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11060 else 11061 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11062 case $host_os in 11063 sco3.2v5*) 11064 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11065 ;; 11066 esac 11067 fi 11068 sys_lib_dlsearch_path_spec='/usr/lib' 11069 ;; 11070 11071tpf*) 11072 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11073 version_type=linux 11074 need_lib_prefix=no 11075 need_version=no 11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11077 shlibpath_var=LD_LIBRARY_PATH 11078 shlibpath_overrides_runpath=no 11079 hardcode_into_libs=yes 11080 ;; 11081 11082uts4*) 11083 version_type=linux 11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11085 soname_spec='${libname}${release}${shared_ext}$major' 11086 shlibpath_var=LD_LIBRARY_PATH 11087 ;; 11088 11089*) 11090 dynamic_linker=no 11091 ;; 11092esac 11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11094$as_echo "$dynamic_linker" >&6; } 11095test "$dynamic_linker" = no && can_build_shared=no 11096 11097variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11098if test "$GCC" = yes; then 11099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11100fi 11101 11102if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11103 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11104fi 11105if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11106 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11107fi 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11201$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11202hardcode_action= 11203if test -n "$hardcode_libdir_flag_spec" || 11204 test -n "$runpath_var" || 11205 test "X$hardcode_automatic" = "Xyes" ; then 11206 11207 # We can hardcode non-existent directories. 11208 if test "$hardcode_direct" != no && 11209 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11210 # have to relink, otherwise we might link with an installed library 11211 # when we should be linking with a yet-to-be-installed one 11212 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11213 test "$hardcode_minus_L" != no; then 11214 # Linking always hardcodes the temporary library directory. 11215 hardcode_action=relink 11216 else 11217 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11218 hardcode_action=immediate 11219 fi 11220else 11221 # We cannot hardcode anything, or else we can only hardcode existing 11222 # directories. 11223 hardcode_action=unsupported 11224fi 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11226$as_echo "$hardcode_action" >&6; } 11227 11228if test "$hardcode_action" = relink || 11229 test "$inherit_rpath" = yes; then 11230 # Fast installation is not supported 11231 enable_fast_install=no 11232elif test "$shlibpath_overrides_runpath" = yes || 11233 test "$enable_shared" = no; then 11234 # Fast installation is not necessary 11235 enable_fast_install=needless 11236fi 11237 11238 11239 11240 11241 11242 11243 if test "x$enable_dlopen" != xyes; then 11244 enable_dlopen=unknown 11245 enable_dlopen_self=unknown 11246 enable_dlopen_self_static=unknown 11247else 11248 lt_cv_dlopen=no 11249 lt_cv_dlopen_libs= 11250 11251 case $host_os in 11252 beos*) 11253 lt_cv_dlopen="load_add_on" 11254 lt_cv_dlopen_libs= 11255 lt_cv_dlopen_self=yes 11256 ;; 11257 11258 mingw* | pw32* | cegcc*) 11259 lt_cv_dlopen="LoadLibrary" 11260 lt_cv_dlopen_libs= 11261 ;; 11262 11263 cygwin*) 11264 lt_cv_dlopen="dlopen" 11265 lt_cv_dlopen_libs= 11266 ;; 11267 11268 darwin*) 11269 # if libdl is installed we need to link against it 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11271$as_echo_n "checking for dlopen in -ldl... " >&6; } 11272if ${ac_cv_lib_dl_dlopen+:} false; then : 11273 $as_echo_n "(cached) " >&6 11274else 11275 ac_check_lib_save_LIBS=$LIBS 11276LIBS="-ldl $LIBS" 11277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11278/* end confdefs.h. */ 11279 11280/* Override any GCC internal prototype to avoid an error. 11281 Use char because int might match the return type of a GCC 11282 builtin and then its argument prototype would still apply. */ 11283#ifdef __cplusplus 11284extern "C" 11285#endif 11286char dlopen (); 11287int 11288main () 11289{ 11290return dlopen (); 11291 ; 11292 return 0; 11293} 11294_ACEOF 11295if ac_fn_c_try_link "$LINENO"; then : 11296 ac_cv_lib_dl_dlopen=yes 11297else 11298 ac_cv_lib_dl_dlopen=no 11299fi 11300rm -f core conftest.err conftest.$ac_objext \ 11301 conftest$ac_exeext conftest.$ac_ext 11302LIBS=$ac_check_lib_save_LIBS 11303fi 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11305$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11306if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11308else 11309 11310 lt_cv_dlopen="dyld" 11311 lt_cv_dlopen_libs= 11312 lt_cv_dlopen_self=yes 11313 11314fi 11315 11316 ;; 11317 11318 *) 11319 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11320if test "x$ac_cv_func_shl_load" = xyes; then : 11321 lt_cv_dlopen="shl_load" 11322else 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11324$as_echo_n "checking for shl_load in -ldld... " >&6; } 11325if ${ac_cv_lib_dld_shl_load+:} false; then : 11326 $as_echo_n "(cached) " >&6 11327else 11328 ac_check_lib_save_LIBS=$LIBS 11329LIBS="-ldld $LIBS" 11330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332 11333/* Override any GCC internal prototype to avoid an error. 11334 Use char because int might match the return type of a GCC 11335 builtin and then its argument prototype would still apply. */ 11336#ifdef __cplusplus 11337extern "C" 11338#endif 11339char shl_load (); 11340int 11341main () 11342{ 11343return shl_load (); 11344 ; 11345 return 0; 11346} 11347_ACEOF 11348if ac_fn_c_try_link "$LINENO"; then : 11349 ac_cv_lib_dld_shl_load=yes 11350else 11351 ac_cv_lib_dld_shl_load=no 11352fi 11353rm -f core conftest.err conftest.$ac_objext \ 11354 conftest$ac_exeext conftest.$ac_ext 11355LIBS=$ac_check_lib_save_LIBS 11356fi 11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11358$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11359if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11360 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11361else 11362 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11363if test "x$ac_cv_func_dlopen" = xyes; then : 11364 lt_cv_dlopen="dlopen" 11365else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11367$as_echo_n "checking for dlopen in -ldl... " >&6; } 11368if ${ac_cv_lib_dl_dlopen+:} false; then : 11369 $as_echo_n "(cached) " >&6 11370else 11371 ac_check_lib_save_LIBS=$LIBS 11372LIBS="-ldl $LIBS" 11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11374/* end confdefs.h. */ 11375 11376/* Override any GCC internal prototype to avoid an error. 11377 Use char because int might match the return type of a GCC 11378 builtin and then its argument prototype would still apply. */ 11379#ifdef __cplusplus 11380extern "C" 11381#endif 11382char dlopen (); 11383int 11384main () 11385{ 11386return dlopen (); 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391if ac_fn_c_try_link "$LINENO"; then : 11392 ac_cv_lib_dl_dlopen=yes 11393else 11394 ac_cv_lib_dl_dlopen=no 11395fi 11396rm -f core conftest.err conftest.$ac_objext \ 11397 conftest$ac_exeext conftest.$ac_ext 11398LIBS=$ac_check_lib_save_LIBS 11399fi 11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11401$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11402if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11404else 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11406$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11407if ${ac_cv_lib_svld_dlopen+:} false; then : 11408 $as_echo_n "(cached) " >&6 11409else 11410 ac_check_lib_save_LIBS=$LIBS 11411LIBS="-lsvld $LIBS" 11412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414 11415/* Override any GCC internal prototype to avoid an error. 11416 Use char because int might match the return type of a GCC 11417 builtin and then its argument prototype would still apply. */ 11418#ifdef __cplusplus 11419extern "C" 11420#endif 11421char dlopen (); 11422int 11423main () 11424{ 11425return dlopen (); 11426 ; 11427 return 0; 11428} 11429_ACEOF 11430if ac_fn_c_try_link "$LINENO"; then : 11431 ac_cv_lib_svld_dlopen=yes 11432else 11433 ac_cv_lib_svld_dlopen=no 11434fi 11435rm -f core conftest.err conftest.$ac_objext \ 11436 conftest$ac_exeext conftest.$ac_ext 11437LIBS=$ac_check_lib_save_LIBS 11438fi 11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11440$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11441if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11443else 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11445$as_echo_n "checking for dld_link in -ldld... " >&6; } 11446if ${ac_cv_lib_dld_dld_link+:} false; then : 11447 $as_echo_n "(cached) " >&6 11448else 11449 ac_check_lib_save_LIBS=$LIBS 11450LIBS="-ldld $LIBS" 11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452/* end confdefs.h. */ 11453 11454/* Override any GCC internal prototype to avoid an error. 11455 Use char because int might match the return type of a GCC 11456 builtin and then its argument prototype would still apply. */ 11457#ifdef __cplusplus 11458extern "C" 11459#endif 11460char dld_link (); 11461int 11462main () 11463{ 11464return dld_link (); 11465 ; 11466 return 0; 11467} 11468_ACEOF 11469if ac_fn_c_try_link "$LINENO"; then : 11470 ac_cv_lib_dld_dld_link=yes 11471else 11472 ac_cv_lib_dld_dld_link=no 11473fi 11474rm -f core conftest.err conftest.$ac_objext \ 11475 conftest$ac_exeext conftest.$ac_ext 11476LIBS=$ac_check_lib_save_LIBS 11477fi 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11479$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11480if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11481 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11482fi 11483 11484 11485fi 11486 11487 11488fi 11489 11490 11491fi 11492 11493 11494fi 11495 11496 11497fi 11498 11499 ;; 11500 esac 11501 11502 if test "x$lt_cv_dlopen" != xno; then 11503 enable_dlopen=yes 11504 else 11505 enable_dlopen=no 11506 fi 11507 11508 case $lt_cv_dlopen in 11509 dlopen) 11510 save_CPPFLAGS="$CPPFLAGS" 11511 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11512 11513 save_LDFLAGS="$LDFLAGS" 11514 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11515 11516 save_LIBS="$LIBS" 11517 LIBS="$lt_cv_dlopen_libs $LIBS" 11518 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11520$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11521if ${lt_cv_dlopen_self+:} false; then : 11522 $as_echo_n "(cached) " >&6 11523else 11524 if test "$cross_compiling" = yes; then : 11525 lt_cv_dlopen_self=cross 11526else 11527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11528 lt_status=$lt_dlunknown 11529 cat > conftest.$ac_ext <<_LT_EOF 11530#line 11530 "configure" 11531#include "confdefs.h" 11532 11533#if HAVE_DLFCN_H 11534#include <dlfcn.h> 11535#endif 11536 11537#include <stdio.h> 11538 11539#ifdef RTLD_GLOBAL 11540# define LT_DLGLOBAL RTLD_GLOBAL 11541#else 11542# ifdef DL_GLOBAL 11543# define LT_DLGLOBAL DL_GLOBAL 11544# else 11545# define LT_DLGLOBAL 0 11546# endif 11547#endif 11548 11549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11550 find out it does not work in some platform. */ 11551#ifndef LT_DLLAZY_OR_NOW 11552# ifdef RTLD_LAZY 11553# define LT_DLLAZY_OR_NOW RTLD_LAZY 11554# else 11555# ifdef DL_LAZY 11556# define LT_DLLAZY_OR_NOW DL_LAZY 11557# else 11558# ifdef RTLD_NOW 11559# define LT_DLLAZY_OR_NOW RTLD_NOW 11560# else 11561# ifdef DL_NOW 11562# define LT_DLLAZY_OR_NOW DL_NOW 11563# else 11564# define LT_DLLAZY_OR_NOW 0 11565# endif 11566# endif 11567# endif 11568# endif 11569#endif 11570 11571/* When -fvisbility=hidden is used, assume the code has been annotated 11572 correspondingly for the symbols needed. */ 11573#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11574void fnord () __attribute__((visibility("default"))); 11575#endif 11576 11577void fnord () { int i=42; } 11578int main () 11579{ 11580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11581 int status = $lt_dlunknown; 11582 11583 if (self) 11584 { 11585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11586 else 11587 { 11588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11589 else puts (dlerror ()); 11590 } 11591 /* dlclose (self); */ 11592 } 11593 else 11594 puts (dlerror ()); 11595 11596 return status; 11597} 11598_LT_EOF 11599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11600 (eval $ac_link) 2>&5 11601 ac_status=$? 11602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11603 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11604 (./conftest; exit; ) >&5 2>/dev/null 11605 lt_status=$? 11606 case x$lt_status in 11607 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11608 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11609 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11610 esac 11611 else : 11612 # compilation failed 11613 lt_cv_dlopen_self=no 11614 fi 11615fi 11616rm -fr conftest* 11617 11618 11619fi 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11621$as_echo "$lt_cv_dlopen_self" >&6; } 11622 11623 if test "x$lt_cv_dlopen_self" = xyes; then 11624 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11626$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11627if ${lt_cv_dlopen_self_static+:} false; then : 11628 $as_echo_n "(cached) " >&6 11629else 11630 if test "$cross_compiling" = yes; then : 11631 lt_cv_dlopen_self_static=cross 11632else 11633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11634 lt_status=$lt_dlunknown 11635 cat > conftest.$ac_ext <<_LT_EOF 11636#line 11636 "configure" 11637#include "confdefs.h" 11638 11639#if HAVE_DLFCN_H 11640#include <dlfcn.h> 11641#endif 11642 11643#include <stdio.h> 11644 11645#ifdef RTLD_GLOBAL 11646# define LT_DLGLOBAL RTLD_GLOBAL 11647#else 11648# ifdef DL_GLOBAL 11649# define LT_DLGLOBAL DL_GLOBAL 11650# else 11651# define LT_DLGLOBAL 0 11652# endif 11653#endif 11654 11655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11656 find out it does not work in some platform. */ 11657#ifndef LT_DLLAZY_OR_NOW 11658# ifdef RTLD_LAZY 11659# define LT_DLLAZY_OR_NOW RTLD_LAZY 11660# else 11661# ifdef DL_LAZY 11662# define LT_DLLAZY_OR_NOW DL_LAZY 11663# else 11664# ifdef RTLD_NOW 11665# define LT_DLLAZY_OR_NOW RTLD_NOW 11666# else 11667# ifdef DL_NOW 11668# define LT_DLLAZY_OR_NOW DL_NOW 11669# else 11670# define LT_DLLAZY_OR_NOW 0 11671# endif 11672# endif 11673# endif 11674# endif 11675#endif 11676 11677/* When -fvisbility=hidden is used, assume the code has been annotated 11678 correspondingly for the symbols needed. */ 11679#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11680void fnord () __attribute__((visibility("default"))); 11681#endif 11682 11683void fnord () { int i=42; } 11684int main () 11685{ 11686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11687 int status = $lt_dlunknown; 11688 11689 if (self) 11690 { 11691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11692 else 11693 { 11694 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11695 else puts (dlerror ()); 11696 } 11697 /* dlclose (self); */ 11698 } 11699 else 11700 puts (dlerror ()); 11701 11702 return status; 11703} 11704_LT_EOF 11705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11706 (eval $ac_link) 2>&5 11707 ac_status=$? 11708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11709 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11710 (./conftest; exit; ) >&5 2>/dev/null 11711 lt_status=$? 11712 case x$lt_status in 11713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11715 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11716 esac 11717 else : 11718 # compilation failed 11719 lt_cv_dlopen_self_static=no 11720 fi 11721fi 11722rm -fr conftest* 11723 11724 11725fi 11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11727$as_echo "$lt_cv_dlopen_self_static" >&6; } 11728 fi 11729 11730 CPPFLAGS="$save_CPPFLAGS" 11731 LDFLAGS="$save_LDFLAGS" 11732 LIBS="$save_LIBS" 11733 ;; 11734 esac 11735 11736 case $lt_cv_dlopen_self in 11737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11738 *) enable_dlopen_self=unknown ;; 11739 esac 11740 11741 case $lt_cv_dlopen_self_static in 11742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11743 *) enable_dlopen_self_static=unknown ;; 11744 esac 11745fi 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763striplib= 11764old_striplib= 11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11766$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11767if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11769 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11771$as_echo "yes" >&6; } 11772else 11773# FIXME - insert some real tests, host_os isn't really good enough 11774 case $host_os in 11775 darwin*) 11776 if test -n "$STRIP" ; then 11777 striplib="$STRIP -x" 11778 old_striplib="$STRIP -S" 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11780$as_echo "yes" >&6; } 11781 else 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11783$as_echo "no" >&6; } 11784 fi 11785 ;; 11786 *) 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788$as_echo "no" >&6; } 11789 ;; 11790 esac 11791fi 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 # Report which library types will actually be built 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11806$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11808$as_echo "$can_build_shared" >&6; } 11809 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11811$as_echo_n "checking whether to build shared libraries... " >&6; } 11812 test "$can_build_shared" = "no" && enable_shared=no 11813 11814 # On AIX, shared libraries and static libraries use the same namespace, and 11815 # are all built from PIC. 11816 case $host_os in 11817 aix3*) 11818 test "$enable_shared" = yes && enable_static=no 11819 if test -n "$RANLIB"; then 11820 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11821 postinstall_cmds='$RANLIB $lib' 11822 fi 11823 ;; 11824 11825 aix[4-9]*) 11826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11827 test "$enable_shared" = yes && enable_static=no 11828 fi 11829 ;; 11830 esac 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11832$as_echo "$enable_shared" >&6; } 11833 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11835$as_echo_n "checking whether to build static libraries... " >&6; } 11836 # Make sure either enable_shared or enable_static is yes. 11837 test "$enable_shared" = yes || enable_static=yes 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11839$as_echo "$enable_static" >&6; } 11840 11841 11842 11843 11844fi 11845ac_ext=c 11846ac_cpp='$CPP $CPPFLAGS' 11847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11849ac_compiler_gnu=$ac_cv_c_compiler_gnu 11850 11851CC="$lt_save_CC" 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 ac_config_commands="$ac_config_commands libtool" 11866 11867 11868 11869 11870# Only expand once: 11871 11872 11873 11874# The tests for host and target for $enable_largefile require 11875# canonical names. 11876 11877 11878 11879# As the $enable_largefile decision depends on --enable-plugins we must set it 11880# even in directories otherwise not depending on the $plugins option. 11881 11882 11883 maybe_plugins=no 11884 for ac_header in dlfcn.h 11885do : 11886 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11887" 11888if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11889 cat >>confdefs.h <<_ACEOF 11890#define HAVE_DLFCN_H 1 11891_ACEOF 11892 maybe_plugins=yes 11893fi 11894 11895done 11896 11897 for ac_header in windows.h 11898do : 11899 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 11900" 11901if test "x$ac_cv_header_windows_h" = xyes; then : 11902 cat >>confdefs.h <<_ACEOF 11903#define HAVE_WINDOWS_H 1 11904_ACEOF 11905 maybe_plugins=yes 11906fi 11907 11908done 11909 11910 11911 # Check whether --enable-plugins was given. 11912if test "${enable_plugins+set}" = set; then : 11913 enableval=$enable_plugins; case "${enableval}" in 11914 no) plugins=no ;; 11915 *) plugins=yes 11916 if test "$maybe_plugins" != "yes" ; then 11917 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 11918 fi ;; 11919 esac 11920else 11921 plugins=$maybe_plugins 11922 11923fi 11924 11925 if test "$plugins" = "yes"; then 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 11927$as_echo_n "checking for library containing dlsym... " >&6; } 11928if ${ac_cv_search_dlsym+:} false; then : 11929 $as_echo_n "(cached) " >&6 11930else 11931 ac_func_search_save_LIBS=$LIBS 11932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11933/* end confdefs.h. */ 11934 11935/* Override any GCC internal prototype to avoid an error. 11936 Use char because int might match the return type of a GCC 11937 builtin and then its argument prototype would still apply. */ 11938#ifdef __cplusplus 11939extern "C" 11940#endif 11941char dlsym (); 11942int 11943main () 11944{ 11945return dlsym (); 11946 ; 11947 return 0; 11948} 11949_ACEOF 11950for ac_lib in '' dl; do 11951 if test -z "$ac_lib"; then 11952 ac_res="none required" 11953 else 11954 ac_res=-l$ac_lib 11955 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11956 fi 11957 if ac_fn_c_try_link "$LINENO"; then : 11958 ac_cv_search_dlsym=$ac_res 11959fi 11960rm -f core conftest.err conftest.$ac_objext \ 11961 conftest$ac_exeext 11962 if ${ac_cv_search_dlsym+:} false; then : 11963 break 11964fi 11965done 11966if ${ac_cv_search_dlsym+:} false; then : 11967 11968else 11969 ac_cv_search_dlsym=no 11970fi 11971rm conftest.$ac_ext 11972LIBS=$ac_func_search_save_LIBS 11973fi 11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 11975$as_echo "$ac_cv_search_dlsym" >&6; } 11976ac_res=$ac_cv_search_dlsym 11977if test "$ac_res" != no; then : 11978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11979 11980fi 11981 11982 fi 11983 11984 11985case "${host}" in 11986 sparc-*-solaris*|i[3-7]86-*-solaris*) 11987 # On native 32bit sparc and ia32 solaris, large-file and procfs support 11988 # are mutually exclusive; and without procfs support, the bfd/ elf module 11989 # cannot provide certain routines such as elfcore_write_prpsinfo 11990 # or elfcore_write_prstatus. So unless the user explicitly requested 11991 # large-file support through the --enable-largefile switch, disable 11992 # large-file support in favor of procfs support. 11993 test "${target}" = "${host}" -a "x$plugins" = xno \ 11994 && : ${enable_largefile="no"} 11995 ;; 11996esac 11997 11998# Check whether --enable-largefile was given. 11999if test "${enable_largefile+set}" = set; then : 12000 enableval=$enable_largefile; 12001fi 12002 12003if test "$enable_largefile" != no; then 12004 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12006$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12007if ${ac_cv_sys_largefile_CC+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 ac_cv_sys_largefile_CC=no 12011 if test "$GCC" != yes; then 12012 ac_save_CC=$CC 12013 while :; do 12014 # IRIX 6.2 and later do not support large files by default, 12015 # so use the C compiler's -n32 option if that helps. 12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12017/* end confdefs.h. */ 12018#include <sys/types.h> 12019 /* Check that off_t can represent 2**63 - 1 correctly. 12020 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12021 since some C++ compilers masquerading as C compilers 12022 incorrectly reject 9223372036854775807. */ 12023#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12025 && LARGE_OFF_T % 2147483647 == 1) 12026 ? 1 : -1]; 12027int 12028main () 12029{ 12030 12031 ; 12032 return 0; 12033} 12034_ACEOF 12035 if ac_fn_c_try_compile "$LINENO"; then : 12036 break 12037fi 12038rm -f core conftest.err conftest.$ac_objext 12039 CC="$CC -n32" 12040 if ac_fn_c_try_compile "$LINENO"; then : 12041 ac_cv_sys_largefile_CC=' -n32'; break 12042fi 12043rm -f core conftest.err conftest.$ac_objext 12044 break 12045 done 12046 CC=$ac_save_CC 12047 rm -f conftest.$ac_ext 12048 fi 12049fi 12050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12051$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12052 if test "$ac_cv_sys_largefile_CC" != no; then 12053 CC=$CC$ac_cv_sys_largefile_CC 12054 fi 12055 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12057$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12058if ${ac_cv_sys_file_offset_bits+:} false; then : 12059 $as_echo_n "(cached) " >&6 12060else 12061 while :; do 12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12063/* end confdefs.h. */ 12064#include <sys/types.h> 12065 /* Check that off_t can represent 2**63 - 1 correctly. 12066 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12067 since some C++ compilers masquerading as C compilers 12068 incorrectly reject 9223372036854775807. */ 12069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12071 && LARGE_OFF_T % 2147483647 == 1) 12072 ? 1 : -1]; 12073int 12074main () 12075{ 12076 12077 ; 12078 return 0; 12079} 12080_ACEOF 12081if ac_fn_c_try_compile "$LINENO"; then : 12082 ac_cv_sys_file_offset_bits=no; break 12083fi 12084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12086/* end confdefs.h. */ 12087#define _FILE_OFFSET_BITS 64 12088#include <sys/types.h> 12089 /* Check that off_t can represent 2**63 - 1 correctly. 12090 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12091 since some C++ compilers masquerading as C compilers 12092 incorrectly reject 9223372036854775807. */ 12093#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12095 && LARGE_OFF_T % 2147483647 == 1) 12096 ? 1 : -1]; 12097int 12098main () 12099{ 12100 12101 ; 12102 return 0; 12103} 12104_ACEOF 12105if ac_fn_c_try_compile "$LINENO"; then : 12106 ac_cv_sys_file_offset_bits=64; break 12107fi 12108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12109 ac_cv_sys_file_offset_bits=unknown 12110 break 12111done 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12114$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12115case $ac_cv_sys_file_offset_bits in #( 12116 no | unknown) ;; 12117 *) 12118cat >>confdefs.h <<_ACEOF 12119#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12120_ACEOF 12121;; 12122esac 12123rm -rf conftest* 12124 if test $ac_cv_sys_file_offset_bits = unknown; then 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12126$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12127if ${ac_cv_sys_large_files+:} false; then : 12128 $as_echo_n "(cached) " >&6 12129else 12130 while :; do 12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12132/* end confdefs.h. */ 12133#include <sys/types.h> 12134 /* Check that off_t can represent 2**63 - 1 correctly. 12135 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12136 since some C++ compilers masquerading as C compilers 12137 incorrectly reject 9223372036854775807. */ 12138#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12140 && LARGE_OFF_T % 2147483647 == 1) 12141 ? 1 : -1]; 12142int 12143main () 12144{ 12145 12146 ; 12147 return 0; 12148} 12149_ACEOF 12150if ac_fn_c_try_compile "$LINENO"; then : 12151 ac_cv_sys_large_files=no; break 12152fi 12153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12155/* end confdefs.h. */ 12156#define _LARGE_FILES 1 12157#include <sys/types.h> 12158 /* Check that off_t can represent 2**63 - 1 correctly. 12159 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12160 since some C++ compilers masquerading as C compilers 12161 incorrectly reject 9223372036854775807. */ 12162#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12163 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12164 && LARGE_OFF_T % 2147483647 == 1) 12165 ? 1 : -1]; 12166int 12167main () 12168{ 12169 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_c_try_compile "$LINENO"; then : 12175 ac_cv_sys_large_files=1; break 12176fi 12177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12178 ac_cv_sys_large_files=unknown 12179 break 12180done 12181fi 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12183$as_echo "$ac_cv_sys_large_files" >&6; } 12184case $ac_cv_sys_large_files in #( 12185 no | unknown) ;; 12186 *) 12187cat >>confdefs.h <<_ACEOF 12188#define _LARGE_FILES $ac_cv_sys_large_files 12189_ACEOF 12190;; 12191esac 12192rm -rf conftest* 12193 fi 12194 12195 12196fi 12197 12198 12199 12200# Check whether --enable-targets was given. 12201if test "${enable_targets+set}" = set; then : 12202 enableval=$enable_targets; case "${enableval}" in 12203 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 12204 ;; 12205 no) enable_targets= ;; 12206 *) enable_targets=$enableval ;; 12207esac 12208fi 12209 12210# Check whether --enable-deterministic-archives was given. 12211if test "${enable_deterministic_archives+set}" = set; then : 12212 enableval=$enable_deterministic_archives; 12213if test "${enableval}" = no; then 12214 default_ar_deterministic=0 12215else 12216 default_ar_deterministic=1 12217fi 12218else 12219 default_ar_deterministic=0 12220fi 12221 12222 12223 12224cat >>confdefs.h <<_ACEOF 12225#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic 12226_ACEOF 12227 12228 12229# Check whether --enable-default-strings-all was given. 12230if test "${enable_default_strings_all+set}" = set; then : 12231 enableval=$enable_default_strings_all; 12232if test "${enableval}" = no; then 12233 default_strings_all=0 12234else 12235 default_strings_all=1 12236fi 12237else 12238 default_strings_all=1 12239fi 12240 12241 12242 12243# Enable debuginfod 12244 12245# Check whether --with-debuginfod was given. 12246if test "${with_debuginfod+set}" = set; then : 12247 withval=$with_debuginfod; 12248else 12249 with_debuginfod=auto 12250fi 12251 12252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5 12253$as_echo_n "checking whether to use debuginfod... " >&6; } 12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5 12255$as_echo "$with_debuginfod" >&6; } 12256 12257if test "${with_debuginfod}" = no; then 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5 12259$as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;} 12260else 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for debuginfod_begin in -ldebuginfod" >&5 12262$as_echo_n "checking for debuginfod_begin in -ldebuginfod... " >&6; } 12263if ${ac_cv_lib_debuginfod_debuginfod_begin+:} false; then : 12264 $as_echo_n "(cached) " >&6 12265else 12266 ac_check_lib_save_LIBS=$LIBS 12267LIBS="-ldebuginfod $LIBS" 12268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12269/* end confdefs.h. */ 12270 12271/* Override any GCC internal prototype to avoid an error. 12272 Use char because int might match the return type of a GCC 12273 builtin and then its argument prototype would still apply. */ 12274#ifdef __cplusplus 12275extern "C" 12276#endif 12277char debuginfod_begin (); 12278int 12279main () 12280{ 12281return debuginfod_begin (); 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO"; then : 12287 ac_cv_lib_debuginfod_debuginfod_begin=yes 12288else 12289 ac_cv_lib_debuginfod_debuginfod_begin=no 12290fi 12291rm -f core conftest.err conftest.$ac_objext \ 12292 conftest$ac_exeext conftest.$ac_ext 12293LIBS=$ac_check_lib_save_LIBS 12294fi 12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_debuginfod_debuginfod_begin" >&5 12296$as_echo "$ac_cv_lib_debuginfod_debuginfod_begin" >&6; } 12297if test "x$ac_cv_lib_debuginfod_debuginfod_begin" = xyes; then : 12298 have_debuginfod_lib=yes 12299fi 12300 12301 ac_fn_c_check_decl "$LINENO" "debuginfod_begin" "ac_cv_have_decl_debuginfod_begin" "#include <elfutils/debuginfod.h> 12302" 12303if test "x$ac_cv_have_decl_debuginfod_begin" = xyes; then : 12304 have_debuginfod_h=yes 12305fi 12306 12307 if test "x$have_debuginfod_lib" = "xyes" -a \ 12308 "x$have_debuginfod_h" = "xyes"; then 12309 12310$as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h 12311 12312 LIBDEBUGINFOD="-ldebuginfod" 12313 12314 else 12315 12316 if test "$with_debuginfod" = yes; then 12317 as_fn_error $? "debuginfod is missing or unusable" "$LINENO" 5 12318 else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&5 12320$as_echo "$as_me: WARNING: debuginfod is missing or unusable; some features may be unavailable." >&2;} 12321 fi 12322 fi 12323fi 12324 12325 12326 12327cat >>confdefs.h <<_ACEOF 12328#define DEFAULT_STRINGS_ALL $default_strings_all 12329_ACEOF 12330 12331 12332 12333# Set the 'development' global. 12334. $srcdir/../bfd/development.sh 12335 12336# Set acp_cpp_for_build variable 12337ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 12338 12339# Default set of GCC warnings to enable. 12340GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12341GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 12342 12343# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12345/* end confdefs.h. */ 12346__GNUC__ 12347_ACEOF 12348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12349 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12350 12351else 12352 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 12353fi 12354rm -f conftest* 12355 12356 12357# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12359/* end confdefs.h. */ 12360__GNUC__ 12361_ACEOF 12362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12363 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12364 12365else 12366 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 12367fi 12368rm -f conftest* 12369 12370 12371# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 12372WARN_WRITE_STRINGS="" 12373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12374/* end confdefs.h. */ 12375__GNUC__ 12376_ACEOF 12377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12378 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12379 12380else 12381 WARN_WRITE_STRINGS="-Wwrite-strings" 12382fi 12383rm -f conftest* 12384 12385 12386# Verify CC_FOR_BUILD to be compatible with warning flags 12387 12388# Add -Wshadow if the compiler is a sufficiently recent version of GCC. 12389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12390/* end confdefs.h. */ 12391__GNUC__ 12392_ACEOF 12393if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12394 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 12395 12396else 12397 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 12398fi 12399rm -f conftest* 12400 12401 12402# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 12403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405__GNUC__ 12406_ACEOF 12407if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 12408 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 12409 12410else 12411 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 12412fi 12413rm -f conftest* 12414 12415 12416# Check whether --enable-werror was given. 12417if test "${enable_werror+set}" = set; then : 12418 enableval=$enable_werror; case "${enableval}" in 12419 yes | y) ERROR_ON_WARNING="yes" ;; 12420 no | n) ERROR_ON_WARNING="no" ;; 12421 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 12422 esac 12423fi 12424 12425 12426# Disable -Wformat by default when using gcc on mingw 12427case "${host}" in 12428 *-*-mingw32*) 12429 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 12430 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 12431 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 12432 fi 12433 ;; 12434 *) ;; 12435esac 12436 12437# Enable -Werror by default when using gcc. Turn it off for releases. 12438if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 12439 ERROR_ON_WARNING=yes 12440fi 12441 12442NO_WERROR= 12443if test "${ERROR_ON_WARNING}" = yes ; then 12444 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 12445 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 12446 NO_WERROR="-Wno-error" 12447fi 12448 12449if test "${GCC}" = yes ; then 12450 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12451 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 12452fi 12453 12454# Check whether --enable-build-warnings was given. 12455if test "${enable_build_warnings+set}" = set; then : 12456 enableval=$enable_build_warnings; case "${enableval}" in 12457 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 12458 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 12459 no) if test "${GCC}" = yes ; then 12460 WARN_CFLAGS="-w" 12461 WARN_CFLAGS_FOR_BUILD="-w" 12462 fi;; 12463 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12464 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 12465 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 12466 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 12467 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 12468 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 12469 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 12470 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 12471esac 12472fi 12473 12474 12475if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 12476 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 12477fi 12478 12479 12480 12481 12482 12483 12484 12485ac_config_headers="$ac_config_headers config.h:config.in" 12486 12487 12488 12489 12490if test -z "$target" ; then 12491 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 12492fi 12493if test -z "$host" ; then 12494 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5 12495fi 12496 12497for ac_prog in 'bison -y' byacc 12498do 12499 # Extract the first word of "$ac_prog", so it can be a program name with args. 12500set dummy $ac_prog; ac_word=$2 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12502$as_echo_n "checking for $ac_word... " >&6; } 12503if ${ac_cv_prog_YACC+:} false; then : 12504 $as_echo_n "(cached) " >&6 12505else 12506 if test -n "$YACC"; then 12507 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12508else 12509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12510for as_dir in $PATH 12511do 12512 IFS=$as_save_IFS 12513 test -z "$as_dir" && as_dir=. 12514 for ac_exec_ext in '' $ac_executable_extensions; do 12515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12516 ac_cv_prog_YACC="$ac_prog" 12517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12518 break 2 12519 fi 12520done 12521 done 12522IFS=$as_save_IFS 12523 12524fi 12525fi 12526YACC=$ac_cv_prog_YACC 12527if test -n "$YACC"; then 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12529$as_echo "$YACC" >&6; } 12530else 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12532$as_echo "no" >&6; } 12533fi 12534 12535 12536 test -n "$YACC" && break 12537done 12538test -n "$YACC" || YACC="yacc" 12539 12540for ac_prog in flex lex 12541do 12542 # Extract the first word of "$ac_prog", so it can be a program name with args. 12543set dummy $ac_prog; ac_word=$2 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12545$as_echo_n "checking for $ac_word... " >&6; } 12546if ${ac_cv_prog_LEX+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 if test -n "$LEX"; then 12550 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12551else 12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12553for as_dir in $PATH 12554do 12555 IFS=$as_save_IFS 12556 test -z "$as_dir" && as_dir=. 12557 for ac_exec_ext in '' $ac_executable_extensions; do 12558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12559 ac_cv_prog_LEX="$ac_prog" 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12561 break 2 12562 fi 12563done 12564 done 12565IFS=$as_save_IFS 12566 12567fi 12568fi 12569LEX=$ac_cv_prog_LEX 12570if test -n "$LEX"; then 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12572$as_echo "$LEX" >&6; } 12573else 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12575$as_echo "no" >&6; } 12576fi 12577 12578 12579 test -n "$LEX" && break 12580done 12581test -n "$LEX" || LEX=":" 12582 12583case "$LEX" in 12584 :|*"missing "*) ;; 12585 *) cat >conftest.l <<_ACEOF 12586%% 12587a { ECHO; } 12588b { REJECT; } 12589c { yymore (); } 12590d { yyless (1); } 12591e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12592 yyless ((input () != 0)); } 12593f { unput (yytext[0]); } 12594. { BEGIN INITIAL; } 12595%% 12596#ifdef YYTEXT_POINTER 12597extern char *yytext; 12598#endif 12599int 12600main (void) 12601{ 12602 return ! yylex () + ! yywrap (); 12603} 12604_ACEOF 12605{ { ac_try="$LEX conftest.l" 12606case "(($ac_try" in 12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12608 *) ac_try_echo=$ac_try;; 12609esac 12610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12611$as_echo "$ac_try_echo"; } >&5 12612 (eval "$LEX conftest.l") 2>&5 12613 ac_status=$? 12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12615 test $ac_status = 0; } 12616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12617$as_echo_n "checking lex output file root... " >&6; } 12618if ${ac_cv_prog_lex_root+:} false; then : 12619 $as_echo_n "(cached) " >&6 12620else 12621 12622if test -f lex.yy.c; then 12623 ac_cv_prog_lex_root=lex.yy 12624elif test -f lexyy.c; then 12625 ac_cv_prog_lex_root=lexyy 12626else 12627 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 12628fi 12629fi 12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12631$as_echo "$ac_cv_prog_lex_root" >&6; } 12632LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12633 12634if test -z "${LEXLIB+set}"; then 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12636$as_echo_n "checking lex library... " >&6; } 12637if ${ac_cv_lib_lex+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 12641 ac_save_LIBS=$LIBS 12642 ac_cv_lib_lex='none needed' 12643 for ac_lib in '' -lfl -ll; do 12644 LIBS="$ac_lib $ac_save_LIBS" 12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647`cat $LEX_OUTPUT_ROOT.c` 12648_ACEOF 12649if ac_fn_c_try_link "$LINENO"; then : 12650 ac_cv_lib_lex=$ac_lib 12651fi 12652rm -f core conftest.err conftest.$ac_objext \ 12653 conftest$ac_exeext conftest.$ac_ext 12654 test "$ac_cv_lib_lex" != 'none needed' && break 12655 done 12656 LIBS=$ac_save_LIBS 12657 12658fi 12659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12660$as_echo "$ac_cv_lib_lex" >&6; } 12661 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12662fi 12663 12664 12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12666$as_echo_n "checking whether yytext is a pointer... " >&6; } 12667if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 12668 $as_echo_n "(cached) " >&6 12669else 12670 # POSIX says lex can declare yytext either as a pointer or an array; the 12671# default is implementation-dependent. Figure out which it is, since 12672# not all implementations provide the %pointer and %array declarations. 12673ac_cv_prog_lex_yytext_pointer=no 12674ac_save_LIBS=$LIBS 12675LIBS="$LEXLIB $ac_save_LIBS" 12676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12677/* end confdefs.h. */ 12678 12679 #define YYTEXT_POINTER 1 12680`cat $LEX_OUTPUT_ROOT.c` 12681_ACEOF 12682if ac_fn_c_try_link "$LINENO"; then : 12683 ac_cv_prog_lex_yytext_pointer=yes 12684fi 12685rm -f core conftest.err conftest.$ac_objext \ 12686 conftest$ac_exeext conftest.$ac_ext 12687LIBS=$ac_save_LIBS 12688 12689fi 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12691$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12692if test $ac_cv_prog_lex_yytext_pointer = yes; then 12693 12694$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12695 12696fi 12697rm -f conftest.l $LEX_OUTPUT_ROOT.c 12698 ;; 12699esac 12700if test "$LEX" = :; then 12701 LEX=${am_missing_run}flex 12702fi 12703 12704ALL_LINGUAS="bg ca da es fi fr hr id it ja pt ro ru rw sk sr sv tr uk vi zh_CN zh_TW" 12705# If we haven't got the data from the intl directory, 12706# assume NLS is disabled. 12707USE_NLS=no 12708LIBINTL= 12709LIBINTL_DEP= 12710INCINTL= 12711XGETTEXT= 12712GMSGFMT= 12713POSUB= 12714 12715if test -f ../intl/config.intl; then 12716 . ../intl/config.intl 12717fi 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12719$as_echo_n "checking whether NLS is requested... " >&6; } 12720if test x"$USE_NLS" != xyes; then 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12722$as_echo "no" >&6; } 12723else 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12725$as_echo "yes" >&6; } 12726 12727$as_echo "#define ENABLE_NLS 1" >>confdefs.h 12728 12729 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 12731$as_echo_n "checking for catalogs to be installed... " >&6; } 12732 # Look for .po and .gmo files in the source directory. 12733 CATALOGS= 12734 XLINGUAS= 12735 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 12736 # If there aren't any .gmo files the shell will give us the 12737 # literal string "../path/to/srcdir/po/*.gmo" which has to be 12738 # weeded out. 12739 case "$cat" in *\**) 12740 continue;; 12741 esac 12742 # The quadruple backslash is collapsed to a double backslash 12743 # by the backticks, then collapsed again by the double quotes, 12744 # leaving us with one backslash in the sed expression (right 12745 # before the dot that mustn't act as a wildcard). 12746 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 12747 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 12748 # The user is allowed to set LINGUAS to a list of languages to 12749 # install catalogs for. If it's empty that means "all of them." 12750 if test "x$LINGUAS" = x; then 12751 CATALOGS="$CATALOGS $cat" 12752 XLINGUAS="$XLINGUAS $lang" 12753 else 12754 case "$LINGUAS" in *$lang*) 12755 CATALOGS="$CATALOGS $cat" 12756 XLINGUAS="$XLINGUAS $lang" 12757 ;; 12758 esac 12759 fi 12760 done 12761 LINGUAS="$XLINGUAS" 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 12763$as_echo "$LINGUAS" >&6; } 12764 12765 12766 DATADIRNAME=share 12767 12768 INSTOBJEXT=.mo 12769 12770 GENCAT=gencat 12771 12772 CATOBJEXT=.gmo 12773 12774fi 12775 12776 MKINSTALLDIRS= 12777 if test -n "$ac_aux_dir"; then 12778 case "$ac_aux_dir" in 12779 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 12780 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 12781 esac 12782 fi 12783 if test -z "$MKINSTALLDIRS"; then 12784 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 12785 fi 12786 12787 12788 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12790$as_echo_n "checking whether NLS is requested... " >&6; } 12791 # Check whether --enable-nls was given. 12792if test "${enable_nls+set}" = set; then : 12793 enableval=$enable_nls; USE_NLS=$enableval 12794else 12795 USE_NLS=yes 12796fi 12797 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12799$as_echo "$USE_NLS" >&6; } 12800 12801 12802 12803 12804 12805 12806# Prepare PATH_SEPARATOR. 12807# The user is always right. 12808if test "${PATH_SEPARATOR+set}" != set; then 12809 echo "#! /bin/sh" >conf$$.sh 12810 echo "exit 0" >>conf$$.sh 12811 chmod +x conf$$.sh 12812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12813 PATH_SEPARATOR=';' 12814 else 12815 PATH_SEPARATOR=: 12816 fi 12817 rm -f conf$$.sh 12818fi 12819 12820# Find out how to test for executable files. Don't use a zero-byte file, 12821# as systems may use methods other than mode bits to determine executability. 12822cat >conf$$.file <<_ASEOF 12823#! /bin/sh 12824exit 0 12825_ASEOF 12826chmod +x conf$$.file 12827if test -x conf$$.file >/dev/null 2>&1; then 12828 ac_executable_p="test -x" 12829else 12830 ac_executable_p="test -f" 12831fi 12832rm -f conf$$.file 12833 12834# Extract the first word of "msgfmt", so it can be a program name with args. 12835set dummy msgfmt; ac_word=$2 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12837$as_echo_n "checking for $ac_word... " >&6; } 12838if ${ac_cv_path_MSGFMT+:} false; then : 12839 $as_echo_n "(cached) " >&6 12840else 12841 case "$MSGFMT" in 12842 [\\/]* | ?:[\\/]*) 12843 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12844 ;; 12845 *) 12846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12847 for ac_dir in $PATH; do 12848 IFS="$ac_save_IFS" 12849 test -z "$ac_dir" && ac_dir=. 12850 for ac_exec_ext in '' $ac_executable_extensions; do 12851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12852 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 12853 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12854 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12855 break 2 12856 fi 12857 fi 12858 done 12859 done 12860 IFS="$ac_save_IFS" 12861 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12862 ;; 12863esac 12864fi 12865MSGFMT="$ac_cv_path_MSGFMT" 12866if test "$MSGFMT" != ":"; then 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12868$as_echo "$MSGFMT" >&6; } 12869else 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12871$as_echo "no" >&6; } 12872fi 12873 12874 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12875set dummy gmsgfmt; ac_word=$2 12876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12877$as_echo_n "checking for $ac_word... " >&6; } 12878if ${ac_cv_path_GMSGFMT+:} false; then : 12879 $as_echo_n "(cached) " >&6 12880else 12881 case $GMSGFMT in 12882 [\\/]* | ?:[\\/]*) 12883 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12884 ;; 12885 *) 12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12887for as_dir in $PATH 12888do 12889 IFS=$as_save_IFS 12890 test -z "$as_dir" && as_dir=. 12891 for ac_exec_ext in '' $ac_executable_extensions; do 12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12893 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12895 break 2 12896 fi 12897done 12898 done 12899IFS=$as_save_IFS 12900 12901 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12902 ;; 12903esac 12904fi 12905GMSGFMT=$ac_cv_path_GMSGFMT 12906if test -n "$GMSGFMT"; then 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12908$as_echo "$GMSGFMT" >&6; } 12909else 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12911$as_echo "no" >&6; } 12912fi 12913 12914 12915 12916 12917# Prepare PATH_SEPARATOR. 12918# The user is always right. 12919if test "${PATH_SEPARATOR+set}" != set; then 12920 echo "#! /bin/sh" >conf$$.sh 12921 echo "exit 0" >>conf$$.sh 12922 chmod +x conf$$.sh 12923 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12924 PATH_SEPARATOR=';' 12925 else 12926 PATH_SEPARATOR=: 12927 fi 12928 rm -f conf$$.sh 12929fi 12930 12931# Find out how to test for executable files. Don't use a zero-byte file, 12932# as systems may use methods other than mode bits to determine executability. 12933cat >conf$$.file <<_ASEOF 12934#! /bin/sh 12935exit 0 12936_ASEOF 12937chmod +x conf$$.file 12938if test -x conf$$.file >/dev/null 2>&1; then 12939 ac_executable_p="test -x" 12940else 12941 ac_executable_p="test -f" 12942fi 12943rm -f conf$$.file 12944 12945# Extract the first word of "xgettext", so it can be a program name with args. 12946set dummy xgettext; ac_word=$2 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12948$as_echo_n "checking for $ac_word... " >&6; } 12949if ${ac_cv_path_XGETTEXT+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 case "$XGETTEXT" in 12953 [\\/]* | ?:[\\/]*) 12954 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12955 ;; 12956 *) 12957 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12958 for ac_dir in $PATH; do 12959 IFS="$ac_save_IFS" 12960 test -z "$ac_dir" && ac_dir=. 12961 for ac_exec_ext in '' $ac_executable_extensions; do 12962 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12963 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 12964 (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 12965 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12966 break 2 12967 fi 12968 fi 12969 done 12970 done 12971 IFS="$ac_save_IFS" 12972 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12973 ;; 12974esac 12975fi 12976XGETTEXT="$ac_cv_path_XGETTEXT" 12977if test "$XGETTEXT" != ":"; then 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12979$as_echo "$XGETTEXT" >&6; } 12980else 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12982$as_echo "no" >&6; } 12983fi 12984 12985 rm -f messages.po 12986 12987 12988# Prepare PATH_SEPARATOR. 12989# The user is always right. 12990if test "${PATH_SEPARATOR+set}" != set; then 12991 echo "#! /bin/sh" >conf$$.sh 12992 echo "exit 0" >>conf$$.sh 12993 chmod +x conf$$.sh 12994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12995 PATH_SEPARATOR=';' 12996 else 12997 PATH_SEPARATOR=: 12998 fi 12999 rm -f conf$$.sh 13000fi 13001 13002# Find out how to test for executable files. Don't use a zero-byte file, 13003# as systems may use methods other than mode bits to determine executability. 13004cat >conf$$.file <<_ASEOF 13005#! /bin/sh 13006exit 0 13007_ASEOF 13008chmod +x conf$$.file 13009if test -x conf$$.file >/dev/null 2>&1; then 13010 ac_executable_p="test -x" 13011else 13012 ac_executable_p="test -f" 13013fi 13014rm -f conf$$.file 13015 13016# Extract the first word of "msgmerge", so it can be a program name with args. 13017set dummy msgmerge; ac_word=$2 13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13019$as_echo_n "checking for $ac_word... " >&6; } 13020if ${ac_cv_path_MSGMERGE+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 case "$MSGMERGE" in 13024 [\\/]* | ?:[\\/]*) 13025 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13026 ;; 13027 *) 13028 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13029 for ac_dir in $PATH; do 13030 IFS="$ac_save_IFS" 13031 test -z "$ac_dir" && ac_dir=. 13032 for ac_exec_ext in '' $ac_executable_extensions; do 13033 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13034 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 13035 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13036 break 2 13037 fi 13038 fi 13039 done 13040 done 13041 IFS="$ac_save_IFS" 13042 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13043 ;; 13044esac 13045fi 13046MSGMERGE="$ac_cv_path_MSGMERGE" 13047if test "$MSGMERGE" != ":"; then 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13049$as_echo "$MSGMERGE" >&6; } 13050else 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13052$as_echo "no" >&6; } 13053fi 13054 13055 13056 if test "$GMSGFMT" != ":"; then 13057 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 13058 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13059 : ; 13060 else 13061 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 13063$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 13064 GMSGFMT=":" 13065 fi 13066 fi 13067 13068 if test "$XGETTEXT" != ":"; then 13069 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 13070 (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 13071 : ; 13072 else 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 13074$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 13075 XGETTEXT=":" 13076 fi 13077 rm -f messages.po 13078 fi 13079 13080 ac_config_commands="$ac_config_commands default-1" 13081 13082 13083 13084 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 13086$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 13087 # Check whether --enable-maintainer-mode was given. 13088if test "${enable_maintainer_mode+set}" = set; then : 13089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 13090else 13091 USE_MAINTAINER_MODE=no 13092fi 13093 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 13095$as_echo "$USE_MAINTAINER_MODE" >&6; } 13096 if test $USE_MAINTAINER_MODE = yes; then 13097 MAINTAINER_MODE_TRUE= 13098 MAINTAINER_MODE_FALSE='#' 13099else 13100 MAINTAINER_MODE_TRUE='#' 13101 MAINTAINER_MODE_FALSE= 13102fi 13103 13104 MAINT=$MAINTAINER_MODE_TRUE 13105 13106 13107 if false; then 13108 GENINSRC_NEVER_TRUE= 13109 GENINSRC_NEVER_FALSE='#' 13110else 13111 GENINSRC_NEVER_TRUE='#' 13112 GENINSRC_NEVER_FALSE= 13113fi 13114 13115 13116if test -n "$EXEEXT"; then 13117 13118$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h 13119 13120fi 13121 13122cat >>confdefs.h <<_ACEOF 13123#define EXECUTABLE_SUFFIX "${EXEEXT}" 13124_ACEOF 13125 13126 13127# host-specific stuff: 13128 13129HDEFINES= 13130 13131. ${srcdir}/../bfd/configure.host 13132 13133 13134AR=${AR-ar} 13135 13136if test -n "$ac_tool_prefix"; then 13137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13138set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13140$as_echo_n "checking for $ac_word... " >&6; } 13141if ${ac_cv_prog_RANLIB+:} false; then : 13142 $as_echo_n "(cached) " >&6 13143else 13144 if test -n "$RANLIB"; then 13145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13146else 13147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13148for as_dir in $PATH 13149do 13150 IFS=$as_save_IFS 13151 test -z "$as_dir" && as_dir=. 13152 for ac_exec_ext in '' $ac_executable_extensions; do 13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13156 break 2 13157 fi 13158done 13159 done 13160IFS=$as_save_IFS 13161 13162fi 13163fi 13164RANLIB=$ac_cv_prog_RANLIB 13165if test -n "$RANLIB"; then 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13167$as_echo "$RANLIB" >&6; } 13168else 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13170$as_echo "no" >&6; } 13171fi 13172 13173 13174fi 13175if test -z "$ac_cv_prog_RANLIB"; then 13176 ac_ct_RANLIB=$RANLIB 13177 # Extract the first word of "ranlib", so it can be a program name with args. 13178set dummy ranlib; ac_word=$2 13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13180$as_echo_n "checking for $ac_word... " >&6; } 13181if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13182 $as_echo_n "(cached) " >&6 13183else 13184 if test -n "$ac_ct_RANLIB"; then 13185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13186else 13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13188for as_dir in $PATH 13189do 13190 IFS=$as_save_IFS 13191 test -z "$as_dir" && as_dir=. 13192 for ac_exec_ext in '' $ac_executable_extensions; do 13193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13194 ac_cv_prog_ac_ct_RANLIB="ranlib" 13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13196 break 2 13197 fi 13198done 13199 done 13200IFS=$as_save_IFS 13201 13202fi 13203fi 13204ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13205if test -n "$ac_ct_RANLIB"; then 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13207$as_echo "$ac_ct_RANLIB" >&6; } 13208else 13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13210$as_echo "no" >&6; } 13211fi 13212 13213 if test "x$ac_ct_RANLIB" = x; then 13214 RANLIB=":" 13215 else 13216 case $cross_compiling:$ac_tool_warned in 13217yes:) 13218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13220ac_tool_warned=yes ;; 13221esac 13222 RANLIB=$ac_ct_RANLIB 13223 fi 13224else 13225 RANLIB="$ac_cv_prog_RANLIB" 13226fi 13227 13228 13229 13230# Put a plausible default for CC_FOR_BUILD in Makefile. 13231if test -z "$CC_FOR_BUILD"; then 13232 if test "x$cross_compiling" = "xno"; then 13233 CC_FOR_BUILD='$(CC)' 13234 else 13235 CC_FOR_BUILD=gcc 13236 fi 13237fi 13238 13239# Also set EXEEXT_FOR_BUILD. 13240if test "x$cross_compiling" = "xno"; then 13241 EXEEXT_FOR_BUILD='$(EXEEXT)' 13242else 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 13244$as_echo_n "checking for build system executable suffix... " >&6; } 13245if ${bfd_cv_build_exeext+:} false; then : 13246 $as_echo_n "(cached) " >&6 13247else 13248 rm -f conftest* 13249 echo 'int main () { return 0; }' > conftest.c 13250 bfd_cv_build_exeext= 13251 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 13252 for file in conftest.*; do 13253 case $file in 13254 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 13255 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 13256 esac 13257 done 13258 rm -f conftest* 13259 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 13260fi 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 13262$as_echo "$bfd_cv_build_exeext" >&6; } 13263 EXEEXT_FOR_BUILD="" 13264 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 13265fi 13266 13267 13268DEMANGLER_NAME=c++filt 13269case "${host}" in 13270 *-*-go32* | *-*-msdos*) 13271 DEMANGLER_NAME=cxxfilt 13272esac 13273 13274 13275# The cast to long int works around a bug in the HP C Compiler 13276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13278# This bug is HP SR number 8606223364. 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13280$as_echo_n "checking size of long... " >&6; } 13281if ${ac_cv_sizeof_long+:} false; then : 13282 $as_echo_n "(cached) " >&6 13283else 13284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13285 13286else 13287 if test "$ac_cv_type_long" = yes; then 13288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13290as_fn_error 77 "cannot compute sizeof (long) 13291See \`config.log' for more details" "$LINENO" 5; } 13292 else 13293 ac_cv_sizeof_long=0 13294 fi 13295fi 13296 13297fi 13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13299$as_echo "$ac_cv_sizeof_long" >&6; } 13300 13301 13302 13303cat >>confdefs.h <<_ACEOF 13304#define SIZEOF_LONG $ac_cv_sizeof_long 13305_ACEOF 13306 13307 13308ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 13309if test "x$ac_cv_type_long_long" = xyes; then : 13310 13311cat >>confdefs.h <<_ACEOF 13312#define HAVE_LONG_LONG 1 13313_ACEOF 13314 13315# The cast to long int works around a bug in the HP C Compiler 13316# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13317# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13318# This bug is HP SR number 8606223364. 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 13320$as_echo_n "checking size of long long... " >&6; } 13321if ${ac_cv_sizeof_long_long+:} false; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 13325 13326else 13327 if test "$ac_cv_type_long_long" = yes; then 13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13330as_fn_error 77 "cannot compute sizeof (long long) 13331See \`config.log' for more details" "$LINENO" 5; } 13332 else 13333 ac_cv_sizeof_long_long=0 13334 fi 13335fi 13336 13337fi 13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 13339$as_echo "$ac_cv_sizeof_long_long" >&6; } 13340 13341 13342 13343cat >>confdefs.h <<_ACEOF 13344#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 13345_ACEOF 13346 13347 13348fi 13349 13350 13351for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h 13352do : 13353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13354ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13355if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13356 cat >>confdefs.h <<_ACEOF 13357#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13358_ACEOF 13359 13360fi 13361 13362done 13363 13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13365$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13366if ${ac_cv_header_sys_wait_h+:} false; then : 13367 $as_echo_n "(cached) " >&6 13368else 13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13370/* end confdefs.h. */ 13371#include <sys/types.h> 13372#include <sys/wait.h> 13373#ifndef WEXITSTATUS 13374# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13375#endif 13376#ifndef WIFEXITED 13377# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13378#endif 13379 13380int 13381main () 13382{ 13383 int s; 13384 wait (&s); 13385 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13386 ; 13387 return 0; 13388} 13389_ACEOF 13390if ac_fn_c_try_compile "$LINENO"; then : 13391 ac_cv_header_sys_wait_h=yes 13392else 13393 ac_cv_header_sys_wait_h=no 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13396fi 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13398$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13399if test $ac_cv_header_sys_wait_h = yes; then 13400 13401$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13402 13403fi 13404 13405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 13406$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 13407if ${gcc_cv_header_string+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412#include <string.h> 13413#include <strings.h> 13414int 13415main () 13416{ 13417 13418 ; 13419 return 0; 13420} 13421_ACEOF 13422if ac_fn_c_try_compile "$LINENO"; then : 13423 gcc_cv_header_string=yes 13424else 13425 gcc_cv_header_string=no 13426fi 13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13428fi 13429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 13430$as_echo "$gcc_cv_header_string" >&6; } 13431if test $gcc_cv_header_string = yes; then 13432 13433$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 13434 13435fi 13436 13437ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 13438if test "x$ac_cv_type_size_t" = xyes; then : 13439 13440else 13441 13442cat >>confdefs.h <<_ACEOF 13443#define size_t unsigned int 13444_ACEOF 13445 13446fi 13447 13448# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13449# for constant arguments. Useless! 13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 13451$as_echo_n "checking for working alloca.h... " >&6; } 13452if ${ac_cv_working_alloca_h+:} false; then : 13453 $as_echo_n "(cached) " >&6 13454else 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456/* end confdefs.h. */ 13457#include <alloca.h> 13458int 13459main () 13460{ 13461char *p = (char *) alloca (2 * sizeof (int)); 13462 if (p) return 0; 13463 ; 13464 return 0; 13465} 13466_ACEOF 13467if ac_fn_c_try_link "$LINENO"; then : 13468 ac_cv_working_alloca_h=yes 13469else 13470 ac_cv_working_alloca_h=no 13471fi 13472rm -f core conftest.err conftest.$ac_objext \ 13473 conftest$ac_exeext conftest.$ac_ext 13474fi 13475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 13476$as_echo "$ac_cv_working_alloca_h" >&6; } 13477if test $ac_cv_working_alloca_h = yes; then 13478 13479$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 13480 13481fi 13482 13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 13484$as_echo_n "checking for alloca... " >&6; } 13485if ${ac_cv_func_alloca_works+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487else 13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489/* end confdefs.h. */ 13490#ifdef __GNUC__ 13491# define alloca __builtin_alloca 13492#else 13493# ifdef _MSC_VER 13494# include <malloc.h> 13495# define alloca _alloca 13496# else 13497# ifdef HAVE_ALLOCA_H 13498# include <alloca.h> 13499# else 13500# ifdef _AIX 13501 #pragma alloca 13502# else 13503# ifndef alloca /* predefined by HP cc +Olibcalls */ 13504void *alloca (size_t); 13505# endif 13506# endif 13507# endif 13508# endif 13509#endif 13510 13511int 13512main () 13513{ 13514char *p = (char *) alloca (1); 13515 if (p) return 0; 13516 ; 13517 return 0; 13518} 13519_ACEOF 13520if ac_fn_c_try_link "$LINENO"; then : 13521 ac_cv_func_alloca_works=yes 13522else 13523 ac_cv_func_alloca_works=no 13524fi 13525rm -f core conftest.err conftest.$ac_objext \ 13526 conftest$ac_exeext conftest.$ac_ext 13527fi 13528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 13529$as_echo "$ac_cv_func_alloca_works" >&6; } 13530 13531if test $ac_cv_func_alloca_works = yes; then 13532 13533$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 13534 13535else 13536 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 13537# that cause trouble. Some versions do not even contain alloca or 13538# contain a buggy version. If you still want to use their alloca, 13539# use ar to extract alloca.o from them instead of compiling alloca.c. 13540 13541ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 13542 13543$as_echo "#define C_ALLOCA 1" >>confdefs.h 13544 13545 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 13547$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 13548if ${ac_cv_os_cray+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553#if defined CRAY && ! defined CRAY2 13554webecray 13555#else 13556wenotbecray 13557#endif 13558 13559_ACEOF 13560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13561 $EGREP "webecray" >/dev/null 2>&1; then : 13562 ac_cv_os_cray=yes 13563else 13564 ac_cv_os_cray=no 13565fi 13566rm -f conftest* 13567 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 13570$as_echo "$ac_cv_os_cray" >&6; } 13571if test $ac_cv_os_cray = yes; then 13572 for ac_func in _getb67 GETB67 getb67; do 13573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13575if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13576 13577cat >>confdefs.h <<_ACEOF 13578#define CRAY_STACKSEG_END $ac_func 13579_ACEOF 13580 13581 break 13582fi 13583 13584 done 13585fi 13586 13587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 13588$as_echo_n "checking stack direction for C alloca... " >&6; } 13589if ${ac_cv_c_stack_direction+:} false; then : 13590 $as_echo_n "(cached) " >&6 13591else 13592 if test "$cross_compiling" = yes; then : 13593 ac_cv_c_stack_direction=0 13594else 13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13596/* end confdefs.h. */ 13597$ac_includes_default 13598int 13599find_stack_direction (int *addr, int depth) 13600{ 13601 int dir, dummy = 0; 13602 if (! addr) 13603 addr = &dummy; 13604 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 13605 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 13606 return dir + dummy; 13607} 13608 13609int 13610main (int argc, char **argv) 13611{ 13612 return find_stack_direction (0, argc + !argv + 20) < 0; 13613} 13614_ACEOF 13615if ac_fn_c_try_run "$LINENO"; then : 13616 ac_cv_c_stack_direction=1 13617else 13618 ac_cv_c_stack_direction=-1 13619fi 13620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13621 conftest.$ac_objext conftest.beam conftest.$ac_ext 13622fi 13623 13624fi 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 13626$as_echo "$ac_cv_c_stack_direction" >&6; } 13627cat >>confdefs.h <<_ACEOF 13628#define STACK_DIRECTION $ac_cv_c_stack_direction 13629_ACEOF 13630 13631 13632fi 13633 13634 13635 13636 13637 for ac_header in $ac_header_list 13638do : 13639 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13640ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 13641" 13642if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13643 cat >>confdefs.h <<_ACEOF 13644#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13645_ACEOF 13646 13647fi 13648 13649done 13650 13651 13652 13653 13654 13655 13656 13657 13658for ac_func in getpagesize 13659do : 13660 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 13661if test "x$ac_cv_func_getpagesize" = xyes; then : 13662 cat >>confdefs.h <<_ACEOF 13663#define HAVE_GETPAGESIZE 1 13664_ACEOF 13665 13666fi 13667done 13668 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 13670$as_echo_n "checking for working mmap... " >&6; } 13671if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 if test "$cross_compiling" = yes; then : 13675 ac_cv_func_mmap_fixed_mapped=no 13676else 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678/* end confdefs.h. */ 13679$ac_includes_default 13680/* malloc might have been renamed as rpl_malloc. */ 13681#undef malloc 13682 13683/* Thanks to Mike Haertel and Jim Avera for this test. 13684 Here is a matrix of mmap possibilities: 13685 mmap private not fixed 13686 mmap private fixed at somewhere currently unmapped 13687 mmap private fixed at somewhere already mapped 13688 mmap shared not fixed 13689 mmap shared fixed at somewhere currently unmapped 13690 mmap shared fixed at somewhere already mapped 13691 For private mappings, we should verify that changes cannot be read() 13692 back from the file, nor mmap's back from the file at a different 13693 address. (There have been systems where private was not correctly 13694 implemented like the infamous i386 svr4.0, and systems where the 13695 VM page cache was not coherent with the file system buffer cache 13696 like early versions of FreeBSD and possibly contemporary NetBSD.) 13697 For shared mappings, we should conversely verify that changes get 13698 propagated back to all the places they're supposed to be. 13699 13700 Grep wants private fixed already mapped. 13701 The main things grep needs to know about mmap are: 13702 * does it exist and is it safe to write into the mmap'd area 13703 * how to use it (BSD variants) */ 13704 13705#include <fcntl.h> 13706#include <sys/mman.h> 13707 13708#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 13709char *malloc (); 13710#endif 13711 13712/* This mess was copied from the GNU getpagesize.h. */ 13713#ifndef HAVE_GETPAGESIZE 13714# ifdef _SC_PAGESIZE 13715# define getpagesize() sysconf(_SC_PAGESIZE) 13716# else /* no _SC_PAGESIZE */ 13717# ifdef HAVE_SYS_PARAM_H 13718# include <sys/param.h> 13719# ifdef EXEC_PAGESIZE 13720# define getpagesize() EXEC_PAGESIZE 13721# else /* no EXEC_PAGESIZE */ 13722# ifdef NBPG 13723# define getpagesize() NBPG * CLSIZE 13724# ifndef CLSIZE 13725# define CLSIZE 1 13726# endif /* no CLSIZE */ 13727# else /* no NBPG */ 13728# ifdef NBPC 13729# define getpagesize() NBPC 13730# else /* no NBPC */ 13731# ifdef PAGESIZE 13732# define getpagesize() PAGESIZE 13733# endif /* PAGESIZE */ 13734# endif /* no NBPC */ 13735# endif /* no NBPG */ 13736# endif /* no EXEC_PAGESIZE */ 13737# else /* no HAVE_SYS_PARAM_H */ 13738# define getpagesize() 8192 /* punt totally */ 13739# endif /* no HAVE_SYS_PARAM_H */ 13740# endif /* no _SC_PAGESIZE */ 13741 13742#endif /* no HAVE_GETPAGESIZE */ 13743 13744int 13745main () 13746{ 13747 char *data, *data2, *data3; 13748 const char *cdata2; 13749 int i, pagesize; 13750 int fd, fd2; 13751 13752 pagesize = getpagesize (); 13753 13754 /* First, make a file with some known garbage in it. */ 13755 data = (char *) malloc (pagesize); 13756 if (!data) 13757 return 1; 13758 for (i = 0; i < pagesize; ++i) 13759 *(data + i) = rand (); 13760 umask (0); 13761 fd = creat ("conftest.mmap", 0600); 13762 if (fd < 0) 13763 return 2; 13764 if (write (fd, data, pagesize) != pagesize) 13765 return 3; 13766 close (fd); 13767 13768 /* Next, check that the tail of a page is zero-filled. File must have 13769 non-zero length, otherwise we risk SIGBUS for entire page. */ 13770 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 13771 if (fd2 < 0) 13772 return 4; 13773 cdata2 = ""; 13774 if (write (fd2, cdata2, 1) != 1) 13775 return 5; 13776 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 13777 if (data2 == MAP_FAILED) 13778 return 6; 13779 for (i = 0; i < pagesize; ++i) 13780 if (*(data2 + i)) 13781 return 7; 13782 close (fd2); 13783 if (munmap (data2, pagesize)) 13784 return 8; 13785 13786 /* Next, try to mmap the file at a fixed address which already has 13787 something else allocated at it. If we can, also make sure that 13788 we see the same garbage. */ 13789 fd = open ("conftest.mmap", O_RDWR); 13790 if (fd < 0) 13791 return 9; 13792 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13793 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13794 return 10; 13795 for (i = 0; i < pagesize; ++i) 13796 if (*(data + i) != *(data2 + i)) 13797 return 11; 13798 13799 /* Finally, make sure that changes to the mapped area do not 13800 percolate back to the file as seen by read(). (This is a bug on 13801 some variants of i386 svr4.0.) */ 13802 for (i = 0; i < pagesize; ++i) 13803 *(data2 + i) = *(data2 + i) + 1; 13804 data3 = (char *) malloc (pagesize); 13805 if (!data3) 13806 return 12; 13807 if (read (fd, data3, pagesize) != pagesize) 13808 return 13; 13809 for (i = 0; i < pagesize; ++i) 13810 if (*(data + i) != *(data3 + i)) 13811 return 14; 13812 close (fd); 13813 return 0; 13814} 13815_ACEOF 13816if ac_fn_c_try_run "$LINENO"; then : 13817 ac_cv_func_mmap_fixed_mapped=yes 13818else 13819 ac_cv_func_mmap_fixed_mapped=no 13820fi 13821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13822 conftest.$ac_objext conftest.beam conftest.$ac_ext 13823fi 13824 13825fi 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 13827$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 13828if test $ac_cv_func_mmap_fixed_mapped = yes; then 13829 13830$as_echo "#define HAVE_MMAP 1" >>confdefs.h 13831 13832fi 13833rm -f conftest.mmap conftest.txt 13834 13835for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale 13836do : 13837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13838ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13839if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13840 cat >>confdefs.h <<_ACEOF 13841#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13842_ACEOF 13843 13844fi 13845done 13846 13847ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 13848if test "x$ac_cv_func_mkstemp" = xyes; then : 13849 13850$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h 13851 13852fi 13853 13854ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 13855if test "x$ac_cv_func_mkdtemp" = xyes; then : 13856 13857$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 13858 13859fi 13860 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 13862$as_echo_n "checking for mbstate_t... " >&6; } 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865#include <wchar.h> 13866int 13867main () 13868{ 13869mbstate_t teststate; 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874if ac_fn_c_try_compile "$LINENO"; then : 13875 have_mbstate_t=yes 13876else 13877 have_mbstate_t=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5 13881$as_echo "$have_mbstate_t" >&6; } 13882 if test x"$have_mbstate_t" = xyes; then 13883 13884$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 13885 13886 fi 13887 13888# Some systems have frexp only in -lm, not in -lc. 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5 13890$as_echo_n "checking for library containing frexp... " >&6; } 13891if ${ac_cv_search_frexp+:} false; then : 13892 $as_echo_n "(cached) " >&6 13893else 13894 ac_func_search_save_LIBS=$LIBS 13895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13896/* end confdefs.h. */ 13897 13898/* Override any GCC internal prototype to avoid an error. 13899 Use char because int might match the return type of a GCC 13900 builtin and then its argument prototype would still apply. */ 13901#ifdef __cplusplus 13902extern "C" 13903#endif 13904char frexp (); 13905int 13906main () 13907{ 13908return frexp (); 13909 ; 13910 return 0; 13911} 13912_ACEOF 13913for ac_lib in '' m; do 13914 if test -z "$ac_lib"; then 13915 ac_res="none required" 13916 else 13917 ac_res=-l$ac_lib 13918 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13919 fi 13920 if ac_fn_c_try_link "$LINENO"; then : 13921 ac_cv_search_frexp=$ac_res 13922fi 13923rm -f core conftest.err conftest.$ac_objext \ 13924 conftest$ac_exeext 13925 if ${ac_cv_search_frexp+:} false; then : 13926 break 13927fi 13928done 13929if ${ac_cv_search_frexp+:} false; then : 13930 13931else 13932 ac_cv_search_frexp=no 13933fi 13934rm conftest.$ac_ext 13935LIBS=$ac_func_search_save_LIBS 13936fi 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5 13938$as_echo "$ac_cv_search_frexp" >&6; } 13939ac_res=$ac_cv_search_frexp 13940if test "$ac_res" != no; then : 13941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13942 13943fi 13944 13945 13946 13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 13948$as_echo_n "checking for LC_MESSAGES... " >&6; } 13949if ${am_cv_val_LC_MESSAGES+:} false; then : 13950 $as_echo_n "(cached) " >&6 13951else 13952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13953/* end confdefs.h. */ 13954#include <locale.h> 13955int 13956main () 13957{ 13958return LC_MESSAGES 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963if ac_fn_c_try_link "$LINENO"; then : 13964 am_cv_val_LC_MESSAGES=yes 13965else 13966 am_cv_val_LC_MESSAGES=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext \ 13969 conftest$ac_exeext conftest.$ac_ext 13970fi 13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 13972$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 13973 if test $am_cv_val_LC_MESSAGES = yes; then 13974 13975$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 13976 13977 fi 13978 13979 13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5 13981$as_echo_n "checking for time_t in time.h... " >&6; } 13982if ${bu_cv_decl_time_t_time_h+:} false; then : 13983 $as_echo_n "(cached) " >&6 13984else 13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987#include <time.h> 13988int 13989main () 13990{ 13991time_t i; 13992 ; 13993 return 0; 13994} 13995_ACEOF 13996if ac_fn_c_try_compile "$LINENO"; then : 13997 bu_cv_decl_time_t_time_h=yes 13998else 13999 bu_cv_decl_time_t_time_h=no 14000fi 14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14002fi 14003 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5 14005$as_echo "$bu_cv_decl_time_t_time_h" >&6; } 14006if test $bu_cv_decl_time_t_time_h = yes; then 14007 14008$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h 14009 14010fi 14011 14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5 14013$as_echo_n "checking for time_t in sys/types.h... " >&6; } 14014if ${bu_cv_decl_time_t_types_h+:} false; then : 14015 $as_echo_n "(cached) " >&6 14016else 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14018/* end confdefs.h. */ 14019#include <sys/types.h> 14020int 14021main () 14022{ 14023time_t i; 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028if ac_fn_c_try_compile "$LINENO"; then : 14029 bu_cv_decl_time_t_types_h=yes 14030else 14031 bu_cv_decl_time_t_types_h=no 14032fi 14033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14034fi 14035 14036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5 14037$as_echo "$bu_cv_decl_time_t_types_h" >&6; } 14038if test $bu_cv_decl_time_t_types_h = yes; then 14039 14040$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h 14041 14042fi 14043 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 14045$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } 14046if ${bu_cv_decl_getopt_unistd_h+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14050/* end confdefs.h. */ 14051#include <unistd.h> 14052int 14053main () 14054{ 14055extern int getopt (int, char *const*, const char *); 14056 ; 14057 return 0; 14058} 14059_ACEOF 14060if ac_fn_c_try_compile "$LINENO"; then : 14061 bu_cv_decl_getopt_unistd_h=yes 14062else 14063 bu_cv_decl_getopt_unistd_h=no 14064fi 14065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14066fi 14067 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5 14069$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; } 14070if test $bu_cv_decl_getopt_unistd_h = yes; then 14071 14072$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h 14073 14074fi 14075 14076# Under Next 3.2 <utime.h> apparently does not define struct utimbuf 14077# by default. 14078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5 14079$as_echo_n "checking for utime.h... " >&6; } 14080if ${bu_cv_header_utime_h+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085#include <sys/types.h> 14086#ifdef HAVE_TIME_H 14087#include <time.h> 14088#endif 14089#include <utime.h> 14090int 14091main () 14092{ 14093struct utimbuf s; 14094 ; 14095 return 0; 14096} 14097_ACEOF 14098if ac_fn_c_try_compile "$LINENO"; then : 14099 bu_cv_header_utime_h=yes 14100else 14101 bu_cv_header_utime_h=no 14102fi 14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14104fi 14105 14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5 14107$as_echo "$bu_cv_header_utime_h" >&6; } 14108if test $bu_cv_header_utime_h = yes; then 14109 14110$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h 14111 14112fi 14113 14114ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 14115if test "x$ac_cv_have_decl_asprintf" = xyes; then : 14116 ac_have_decl=1 14117else 14118 ac_have_decl=0 14119fi 14120 14121cat >>confdefs.h <<_ACEOF 14122#define HAVE_DECL_ASPRINTF $ac_have_decl 14123_ACEOF 14124ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" 14125if test "x$ac_cv_have_decl_environ" = xyes; then : 14126 ac_have_decl=1 14127else 14128 ac_have_decl=0 14129fi 14130 14131cat >>confdefs.h <<_ACEOF 14132#define HAVE_DECL_ENVIRON $ac_have_decl 14133_ACEOF 14134ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default" 14135if test "x$ac_cv_have_decl_fprintf" = xyes; then : 14136 ac_have_decl=1 14137else 14138 ac_have_decl=0 14139fi 14140 14141cat >>confdefs.h <<_ACEOF 14142#define HAVE_DECL_FPRINTF $ac_have_decl 14143_ACEOF 14144ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 14145if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 14146 ac_have_decl=1 14147else 14148 ac_have_decl=0 14149fi 14150 14151cat >>confdefs.h <<_ACEOF 14152#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 14153_ACEOF 14154ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 14155if test "x$ac_cv_have_decl_getenv" = xyes; then : 14156 ac_have_decl=1 14157else 14158 ac_have_decl=0 14159fi 14160 14161cat >>confdefs.h <<_ACEOF 14162#define HAVE_DECL_GETENV $ac_have_decl 14163_ACEOF 14164ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" 14165if test "x$ac_cv_have_decl_sbrk" = xyes; then : 14166 ac_have_decl=1 14167else 14168 ac_have_decl=0 14169fi 14170 14171cat >>confdefs.h <<_ACEOF 14172#define HAVE_DECL_SBRK $ac_have_decl 14173_ACEOF 14174ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 14175if test "x$ac_cv_have_decl_snprintf" = xyes; then : 14176 ac_have_decl=1 14177else 14178 ac_have_decl=0 14179fi 14180 14181cat >>confdefs.h <<_ACEOF 14182#define HAVE_DECL_SNPRINTF $ac_have_decl 14183_ACEOF 14184ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 14185if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 14186 ac_have_decl=1 14187else 14188 ac_have_decl=0 14189fi 14190 14191cat >>confdefs.h <<_ACEOF 14192#define HAVE_DECL_STPCPY $ac_have_decl 14193_ACEOF 14194ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 14195if test "x$ac_cv_have_decl_strnlen" = xyes; then : 14196 ac_have_decl=1 14197else 14198 ac_have_decl=0 14199fi 14200 14201cat >>confdefs.h <<_ACEOF 14202#define HAVE_DECL_STRNLEN $ac_have_decl 14203_ACEOF 14204ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 14205if test "x$ac_cv_have_decl_strstr" = xyes; then : 14206 ac_have_decl=1 14207else 14208 ac_have_decl=0 14209fi 14210 14211cat >>confdefs.h <<_ACEOF 14212#define HAVE_DECL_STRSTR $ac_have_decl 14213_ACEOF 14214ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" 14215if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : 14216 ac_have_decl=1 14217else 14218 ac_have_decl=0 14219fi 14220 14221cat >>confdefs.h <<_ACEOF 14222#define HAVE_DECL_VSNPRINTF $ac_have_decl 14223_ACEOF 14224 14225 14226# Link in zlib if we can. This allows us to read compressed debug 14227# sections. This is used only by readelf.c (objdump uses bfd for 14228# reading compressed sections). 14229 14230 # Use the system's zlib library. 14231 zlibdir="-L\$(top_builddir)/../zlib" 14232 zlibinc="-I\$(top_srcdir)/../zlib" 14233 14234# Check whether --with-system-zlib was given. 14235if test "${with_system_zlib+set}" = set; then : 14236 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 14237 zlibdir= 14238 zlibinc= 14239 fi 14240 14241fi 14242 14243 14244 14245 14246 14247 14248case "${host}" in 14249*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 14250 14251$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 14252 ;; 14253esac 14254 14255# target-specific stuff: 14256 14257# Canonicalize the secondary target names. 14258if test -n "$enable_targets"; then 14259 for targ in `echo $enable_targets | sed 's/,/ /g'` 14260 do 14261 result=`$ac_config_sub $targ 2>/dev/null` 14262 if test -n "$result"; then 14263 canon_targets="$canon_targets $result" 14264 else 14265 # Allow targets that config.sub doesn't recognize, like "all". 14266 canon_targets="$canon_targets $targ" 14267 fi 14268 done 14269fi 14270 14271ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 14272if test "x$ac_cv_header_iconv_h" = xyes; then : 14273 14274fi 14275 14276 14277 14278 if test "X$prefix" = "XNONE"; then 14279 acl_final_prefix="$ac_default_prefix" 14280 else 14281 acl_final_prefix="$prefix" 14282 fi 14283 if test "X$exec_prefix" = "XNONE"; then 14284 acl_final_exec_prefix='${prefix}' 14285 else 14286 acl_final_exec_prefix="$exec_prefix" 14287 fi 14288 acl_save_prefix="$prefix" 14289 prefix="$acl_final_prefix" 14290 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 14291 prefix="$acl_save_prefix" 14292 14293 14294# Check whether --with-gnu-ld was given. 14295if test "${with_gnu_ld+set}" = set; then : 14296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14297else 14298 with_gnu_ld=no 14299fi 14300 14301# Prepare PATH_SEPARATOR. 14302# The user is always right. 14303if test "${PATH_SEPARATOR+set}" != set; then 14304 echo "#! /bin/sh" >conf$$.sh 14305 echo "exit 0" >>conf$$.sh 14306 chmod +x conf$$.sh 14307 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14308 PATH_SEPARATOR=';' 14309 else 14310 PATH_SEPARATOR=: 14311 fi 14312 rm -f conf$$.sh 14313fi 14314ac_prog=ld 14315if test "$GCC" = yes; then 14316 # Check if gcc -print-prog-name=ld gives a path. 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 14318$as_echo_n "checking for ld used by GCC... " >&6; } 14319 case $host in 14320 *-*-mingw*) 14321 # gcc leaves a trailing carriage return which upsets mingw 14322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14323 *) 14324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14325 esac 14326 case $ac_prog in 14327 # Accept absolute paths. 14328 [\\/]* | [A-Za-z]:[\\/]*) 14329 re_direlt='/[^/][^/]*/\.\./' 14330 # Canonicalize the path of ld 14331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 14332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 14333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 14334 done 14335 test -z "$LD" && LD="$ac_prog" 14336 ;; 14337 "") 14338 # If it fails, then pretend we aren't using GCC. 14339 ac_prog=ld 14340 ;; 14341 *) 14342 # If it is relative, then search for the first ld in PATH. 14343 with_gnu_ld=unknown 14344 ;; 14345 esac 14346elif test "$with_gnu_ld" = yes; then 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14348$as_echo_n "checking for GNU ld... " >&6; } 14349else 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14351$as_echo_n "checking for non-GNU ld... " >&6; } 14352fi 14353if ${acl_cv_path_LD+:} false; then : 14354 $as_echo_n "(cached) " >&6 14355else 14356 if test -z "$LD"; then 14357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 14358 for ac_dir in $PATH; do 14359 test -z "$ac_dir" && ac_dir=. 14360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14361 acl_cv_path_LD="$ac_dir/$ac_prog" 14362 # Check to see if the program is GNU ld. I'd rather use --version, 14363 # but apparently some GNU ld's only accept -v. 14364 # Break only if it was the GNU/non-GNU ld that we prefer. 14365 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 14366 test "$with_gnu_ld" != no && break 14367 else 14368 test "$with_gnu_ld" != yes && break 14369 fi 14370 fi 14371 done 14372 IFS="$ac_save_ifs" 14373else 14374 acl_cv_path_LD="$LD" # Let the user override the test with a path. 14375fi 14376fi 14377 14378LD="$acl_cv_path_LD" 14379if test -n "$LD"; then 14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14381$as_echo "$LD" >&6; } 14382else 14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14384$as_echo "no" >&6; } 14385fi 14386test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14388$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14389if ${acl_cv_prog_gnu_ld+:} false; then : 14390 $as_echo_n "(cached) " >&6 14391else 14392 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14393if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14394 acl_cv_prog_gnu_ld=yes 14395else 14396 acl_cv_prog_gnu_ld=no 14397fi 14398fi 14399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 14400$as_echo "$acl_cv_prog_gnu_ld" >&6; } 14401with_gnu_ld=$acl_cv_prog_gnu_ld 14402 14403 14404 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 14406$as_echo_n "checking for shared library run path origin... " >&6; } 14407if ${acl_cv_rpath+:} false; then : 14408 $as_echo_n "(cached) " >&6 14409else 14410 14411 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 14412 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 14413 . ./conftest.sh 14414 rm -f ./conftest.sh 14415 acl_cv_rpath=done 14416 14417fi 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 14419$as_echo "$acl_cv_rpath" >&6; } 14420 wl="$acl_cv_wl" 14421 libext="$acl_cv_libext" 14422 shlibext="$acl_cv_shlibext" 14423 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 14424 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 14425 hardcode_direct="$acl_cv_hardcode_direct" 14426 hardcode_minus_L="$acl_cv_hardcode_minus_L" 14427 # Check whether --enable-rpath was given. 14428if test "${enable_rpath+set}" = set; then : 14429 enableval=$enable_rpath; : 14430else 14431 enable_rpath=yes 14432fi 14433 14434 14435 14436 14437 14438 14439 14440 14441 use_additional=yes 14442 14443 acl_save_prefix="$prefix" 14444 prefix="$acl_final_prefix" 14445 acl_save_exec_prefix="$exec_prefix" 14446 exec_prefix="$acl_final_exec_prefix" 14447 14448 eval additional_includedir=\"$includedir\" 14449 eval additional_libdir=\"$libdir\" 14450 14451 exec_prefix="$acl_save_exec_prefix" 14452 prefix="$acl_save_prefix" 14453 14454 14455# Check whether --with-libiconv-prefix was given. 14456if test "${with_libiconv_prefix+set}" = set; then : 14457 withval=$with_libiconv_prefix; 14458 if test "X$withval" = "Xno"; then 14459 use_additional=no 14460 else 14461 if test "X$withval" = "X"; then 14462 14463 acl_save_prefix="$prefix" 14464 prefix="$acl_final_prefix" 14465 acl_save_exec_prefix="$exec_prefix" 14466 exec_prefix="$acl_final_exec_prefix" 14467 14468 eval additional_includedir=\"$includedir\" 14469 eval additional_libdir=\"$libdir\" 14470 14471 exec_prefix="$acl_save_exec_prefix" 14472 prefix="$acl_save_prefix" 14473 14474 else 14475 additional_includedir="$withval/include" 14476 additional_libdir="$withval/lib" 14477 fi 14478 fi 14479 14480fi 14481 14482 LIBICONV= 14483 LTLIBICONV= 14484 INCICONV= 14485 rpathdirs= 14486 ltrpathdirs= 14487 names_already_handled= 14488 names_next_round='iconv ' 14489 while test -n "$names_next_round"; do 14490 names_this_round="$names_next_round" 14491 names_next_round= 14492 for name in $names_this_round; do 14493 already_handled= 14494 for n in $names_already_handled; do 14495 if test "$n" = "$name"; then 14496 already_handled=yes 14497 break 14498 fi 14499 done 14500 if test -z "$already_handled"; then 14501 names_already_handled="$names_already_handled $name" 14502 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14503 eval value=\"\$HAVE_LIB$uppername\" 14504 if test -n "$value"; then 14505 if test "$value" = yes; then 14506 eval value=\"\$LIB$uppername\" 14507 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 14508 eval value=\"\$LTLIB$uppername\" 14509 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 14510 else 14511 : 14512 fi 14513 else 14514 found_dir= 14515 found_la= 14516 found_so= 14517 found_a= 14518 if test $use_additional = yes; then 14519 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 14520 found_dir="$additional_libdir" 14521 found_so="$additional_libdir/lib$name.$shlibext" 14522 if test -f "$additional_libdir/lib$name.la"; then 14523 found_la="$additional_libdir/lib$name.la" 14524 fi 14525 else 14526 if test -f "$additional_libdir/lib$name.$libext"; then 14527 found_dir="$additional_libdir" 14528 found_a="$additional_libdir/lib$name.$libext" 14529 if test -f "$additional_libdir/lib$name.la"; then 14530 found_la="$additional_libdir/lib$name.la" 14531 fi 14532 fi 14533 fi 14534 fi 14535 if test "X$found_dir" = "X"; then 14536 for x in $LDFLAGS $LTLIBICONV; do 14537 14538 acl_save_prefix="$prefix" 14539 prefix="$acl_final_prefix" 14540 acl_save_exec_prefix="$exec_prefix" 14541 exec_prefix="$acl_final_exec_prefix" 14542 eval x=\"$x\" 14543 exec_prefix="$acl_save_exec_prefix" 14544 prefix="$acl_save_prefix" 14545 14546 case "$x" in 14547 -L*) 14548 dir=`echo "X$x" | sed -e 's/^X-L//'` 14549 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 14550 found_dir="$dir" 14551 found_so="$dir/lib$name.$shlibext" 14552 if test -f "$dir/lib$name.la"; then 14553 found_la="$dir/lib$name.la" 14554 fi 14555 else 14556 if test -f "$dir/lib$name.$libext"; then 14557 found_dir="$dir" 14558 found_a="$dir/lib$name.$libext" 14559 if test -f "$dir/lib$name.la"; then 14560 found_la="$dir/lib$name.la" 14561 fi 14562 fi 14563 fi 14564 ;; 14565 esac 14566 if test "X$found_dir" != "X"; then 14567 break 14568 fi 14569 done 14570 fi 14571 if test "X$found_dir" != "X"; then 14572 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 14573 if test "X$found_so" != "X"; then 14574 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 14575 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14576 else 14577 haveit= 14578 for x in $ltrpathdirs; do 14579 if test "X$x" = "X$found_dir"; then 14580 haveit=yes 14581 break 14582 fi 14583 done 14584 if test -z "$haveit"; then 14585 ltrpathdirs="$ltrpathdirs $found_dir" 14586 fi 14587 if test "$hardcode_direct" = yes; then 14588 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14589 else 14590 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 14591 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14592 haveit= 14593 for x in $rpathdirs; do 14594 if test "X$x" = "X$found_dir"; then 14595 haveit=yes 14596 break 14597 fi 14598 done 14599 if test -z "$haveit"; then 14600 rpathdirs="$rpathdirs $found_dir" 14601 fi 14602 else 14603 haveit= 14604 for x in $LDFLAGS $LIBICONV; do 14605 14606 acl_save_prefix="$prefix" 14607 prefix="$acl_final_prefix" 14608 acl_save_exec_prefix="$exec_prefix" 14609 exec_prefix="$acl_final_exec_prefix" 14610 eval x=\"$x\" 14611 exec_prefix="$acl_save_exec_prefix" 14612 prefix="$acl_save_prefix" 14613 14614 if test "X$x" = "X-L$found_dir"; then 14615 haveit=yes 14616 break 14617 fi 14618 done 14619 if test -z "$haveit"; then 14620 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 14621 fi 14622 if test "$hardcode_minus_L" != no; then 14623 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14624 else 14625 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14626 fi 14627 fi 14628 fi 14629 fi 14630 else 14631 if test "X$found_a" != "X"; then 14632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 14633 else 14634 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 14635 fi 14636 fi 14637 additional_includedir= 14638 case "$found_dir" in 14639 */lib | */lib/) 14640 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 14641 additional_includedir="$basedir/include" 14642 ;; 14643 esac 14644 if test "X$additional_includedir" != "X"; then 14645 if test "X$additional_includedir" != "X/usr/include"; then 14646 haveit= 14647 if test "X$additional_includedir" = "X/usr/local/include"; then 14648 if test -n "$GCC"; then 14649 case $host_os in 14650 linux*) haveit=yes;; 14651 esac 14652 fi 14653 fi 14654 if test -z "$haveit"; then 14655 for x in $CPPFLAGS $INCICONV; do 14656 14657 acl_save_prefix="$prefix" 14658 prefix="$acl_final_prefix" 14659 acl_save_exec_prefix="$exec_prefix" 14660 exec_prefix="$acl_final_exec_prefix" 14661 eval x=\"$x\" 14662 exec_prefix="$acl_save_exec_prefix" 14663 prefix="$acl_save_prefix" 14664 14665 if test "X$x" = "X-I$additional_includedir"; then 14666 haveit=yes 14667 break 14668 fi 14669 done 14670 if test -z "$haveit"; then 14671 if test -d "$additional_includedir"; then 14672 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 14673 fi 14674 fi 14675 fi 14676 fi 14677 fi 14678 if test -n "$found_la"; then 14679 save_libdir="$libdir" 14680 case "$found_la" in 14681 */* | *\\*) . "$found_la" ;; 14682 *) . "./$found_la" ;; 14683 esac 14684 libdir="$save_libdir" 14685 for dep in $dependency_libs; do 14686 case "$dep" in 14687 -L*) 14688 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14689 if test "X$additional_libdir" != "X/usr/lib"; then 14690 haveit= 14691 if test "X$additional_libdir" = "X/usr/local/lib"; then 14692 if test -n "$GCC"; then 14693 case $host_os in 14694 linux*) haveit=yes;; 14695 esac 14696 fi 14697 fi 14698 if test -z "$haveit"; then 14699 haveit= 14700 for x in $LDFLAGS $LIBICONV; do 14701 14702 acl_save_prefix="$prefix" 14703 prefix="$acl_final_prefix" 14704 acl_save_exec_prefix="$exec_prefix" 14705 exec_prefix="$acl_final_exec_prefix" 14706 eval x=\"$x\" 14707 exec_prefix="$acl_save_exec_prefix" 14708 prefix="$acl_save_prefix" 14709 14710 if test "X$x" = "X-L$additional_libdir"; then 14711 haveit=yes 14712 break 14713 fi 14714 done 14715 if test -z "$haveit"; then 14716 if test -d "$additional_libdir"; then 14717 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 14718 fi 14719 fi 14720 haveit= 14721 for x in $LDFLAGS $LTLIBICONV; do 14722 14723 acl_save_prefix="$prefix" 14724 prefix="$acl_final_prefix" 14725 acl_save_exec_prefix="$exec_prefix" 14726 exec_prefix="$acl_final_exec_prefix" 14727 eval x=\"$x\" 14728 exec_prefix="$acl_save_exec_prefix" 14729 prefix="$acl_save_prefix" 14730 14731 if test "X$x" = "X-L$additional_libdir"; then 14732 haveit=yes 14733 break 14734 fi 14735 done 14736 if test -z "$haveit"; then 14737 if test -d "$additional_libdir"; then 14738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14739 fi 14740 fi 14741 fi 14742 fi 14743 ;; 14744 -R*) 14745 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14746 if test "$enable_rpath" != no; then 14747 haveit= 14748 for x in $rpathdirs; do 14749 if test "X$x" = "X$dir"; then 14750 haveit=yes 14751 break 14752 fi 14753 done 14754 if test -z "$haveit"; then 14755 rpathdirs="$rpathdirs $dir" 14756 fi 14757 haveit= 14758 for x in $ltrpathdirs; do 14759 if test "X$x" = "X$dir"; then 14760 haveit=yes 14761 break 14762 fi 14763 done 14764 if test -z "$haveit"; then 14765 ltrpathdirs="$ltrpathdirs $dir" 14766 fi 14767 fi 14768 ;; 14769 -l*) 14770 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14771 ;; 14772 *.la) 14773 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14774 ;; 14775 *) 14776 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14777 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14778 ;; 14779 esac 14780 done 14781 fi 14782 else 14783 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14784 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14785 fi 14786 fi 14787 fi 14788 done 14789 done 14790 if test "X$rpathdirs" != "X"; then 14791 if test -n "$hardcode_libdir_separator"; then 14792 alldirs= 14793 for found_dir in $rpathdirs; do 14794 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 14795 done 14796 acl_save_libdir="$libdir" 14797 libdir="$alldirs" 14798 eval flag=\"$hardcode_libdir_flag_spec\" 14799 libdir="$acl_save_libdir" 14800 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14801 else 14802 for found_dir in $rpathdirs; do 14803 acl_save_libdir="$libdir" 14804 libdir="$found_dir" 14805 eval flag=\"$hardcode_libdir_flag_spec\" 14806 libdir="$acl_save_libdir" 14807 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14808 done 14809 fi 14810 fi 14811 if test "X$ltrpathdirs" != "X"; then 14812 for found_dir in $ltrpathdirs; do 14813 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14814 done 14815 fi 14816 14817 14818 14819 14820 14821 14822 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14824$as_echo_n "checking for iconv... " >&6; } 14825if ${am_cv_func_iconv+:} false; then : 14826 $as_echo_n "(cached) " >&6 14827else 14828 14829 am_cv_func_iconv="no, consider installing GNU libiconv" 14830 am_cv_lib_iconv=no 14831 am_save_CPPFLAGS="$CPPFLAGS" 14832 CPPFLAGS="$CPPFLAGS $INCICONV" 14833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14834/* end confdefs.h. */ 14835#include <stdlib.h> 14836#include <iconv.h> 14837int 14838main () 14839{ 14840iconv_t cd = iconv_open("",""); 14841 iconv(cd,NULL,NULL,NULL,NULL); 14842 iconv_close(cd); 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_link "$LINENO"; then : 14848 am_cv_func_iconv=yes 14849fi 14850rm -f core conftest.err conftest.$ac_objext \ 14851 conftest$ac_exeext conftest.$ac_ext 14852 CPPFLAGS="$am_save_CPPFLAGS" 14853 14854 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then 14855 for _libs in .libs _libs; do 14856 am_save_CPPFLAGS="$CPPFLAGS" 14857 am_save_LIBS="$LIBS" 14858 CPPFLAGS="$CPPFLAGS -I../libiconv/include" 14859 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a" 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14861/* end confdefs.h. */ 14862#include <stdlib.h> 14863#include <iconv.h> 14864int 14865main () 14866{ 14867iconv_t cd = iconv_open("",""); 14868 iconv(cd,NULL,NULL,NULL,NULL); 14869 iconv_close(cd); 14870 ; 14871 return 0; 14872} 14873_ACEOF 14874if ac_fn_c_try_link "$LINENO"; then : 14875 INCICONV="-I../libiconv/include" 14876 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a 14877 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la 14878 am_cv_lib_iconv=yes 14879 am_cv_func_iconv=yes 14880fi 14881rm -f core conftest.err conftest.$ac_objext \ 14882 conftest$ac_exeext conftest.$ac_ext 14883 CPPFLAGS="$am_save_CPPFLAGS" 14884 LIBS="$am_save_LIBS" 14885 if test "$am_cv_func_iconv" = "yes"; then 14886 break 14887 fi 14888 done 14889 fi 14890 14891 if test "$am_cv_func_iconv" != yes; then 14892 am_save_CPPFLAGS="$CPPFLAGS" 14893 am_save_LIBS="$LIBS" 14894 CPPFLAGS="$CPPFLAGS $INCICONV" 14895 LIBS="$LIBS $LIBICONV" 14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14897/* end confdefs.h. */ 14898#include <stdlib.h> 14899#include <iconv.h> 14900int 14901main () 14902{ 14903iconv_t cd = iconv_open("",""); 14904 iconv(cd,NULL,NULL,NULL,NULL); 14905 iconv_close(cd); 14906 ; 14907 return 0; 14908} 14909_ACEOF 14910if ac_fn_c_try_link "$LINENO"; then : 14911 am_cv_lib_iconv=yes 14912 am_cv_func_iconv=yes 14913fi 14914rm -f core conftest.err conftest.$ac_objext \ 14915 conftest$ac_exeext conftest.$ac_ext 14916 CPPFLAGS="$am_save_CPPFLAGS" 14917 LIBS="$am_save_LIBS" 14918 fi 14919 14920fi 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14922$as_echo "$am_cv_func_iconv" >&6; } 14923 if test "$am_cv_func_iconv" = yes; then 14924 14925$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14926 14927 fi 14928 if test "$am_cv_lib_iconv" = yes; then 14929 14930 for element in $INCICONV; do 14931 haveit= 14932 for x in $CPPFLAGS; do 14933 14934 acl_save_prefix="$prefix" 14935 prefix="$acl_final_prefix" 14936 acl_save_exec_prefix="$exec_prefix" 14937 exec_prefix="$acl_final_exec_prefix" 14938 eval x=\"$x\" 14939 exec_prefix="$acl_save_exec_prefix" 14940 prefix="$acl_save_prefix" 14941 14942 if test "X$x" = "X$element"; then 14943 haveit=yes 14944 break 14945 fi 14946 done 14947 if test -z "$haveit"; then 14948 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14949 fi 14950 done 14951 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14953$as_echo_n "checking how to link with libiconv... " >&6; } 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14955$as_echo "$LIBICONV" >&6; } 14956 else 14957 LIBICONV= 14958 LTLIBICONV= 14959 fi 14960 14961 14962 14963 if test "$am_cv_func_iconv" = yes; then 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 14965$as_echo_n "checking for iconv declaration... " >&6; } 14966 if ${am_cv_proto_iconv+:} false; then : 14967 $as_echo_n "(cached) " >&6 14968else 14969 14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14971/* end confdefs.h. */ 14972 14973#include <stdlib.h> 14974#include <iconv.h> 14975extern 14976#ifdef __cplusplus 14977"C" 14978#endif 14979#if defined(__STDC__) || defined(__cplusplus) 14980size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 14981#else 14982size_t iconv(); 14983#endif 14984 14985int 14986main () 14987{ 14988 14989 ; 14990 return 0; 14991} 14992_ACEOF 14993if ac_fn_c_try_compile "$LINENO"; then : 14994 am_cv_proto_iconv_arg1="" 14995else 14996 am_cv_proto_iconv_arg1="const" 14997fi 14998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14999 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 15000fi 15001 15002 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 15004 }$am_cv_proto_iconv" >&5 15005$as_echo "${ac_t:- 15006 }$am_cv_proto_iconv" >&6; } 15007 15008cat >>confdefs.h <<_ACEOF 15009#define ICONV_CONST $am_cv_proto_iconv_arg1 15010_ACEOF 15011 15012 fi 15013 15014 15015all_targets=false 15016BUILD_SRCONV= 15017BUILD_DLLTOOL= 15018DLLTOOL_DEFS= 15019DLLTOOL_DEFAULT= 15020BUILD_WINDRES= 15021BUILD_WINDMC= 15022BUILD_DLLWRAP= 15023BUILD_MISC= 15024BUILD_INSTALL_MISC= 15025OBJDUMP_DEFS= 15026OBJDUMP_PRIVATE_VECTORS= 15027OBJDUMP_PRIVATE_OFILES= 15028od_vectors= 15029 15030for targ in $target $canon_targets 15031do 15032 if test "x$targ" = "xall"; then 15033 all_targets=true 15034 BUILD_SRCONV='$(SRCONV_PROG)' 15035 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' 15036 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15037 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15038 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15039 if test -z "$DLLTOOL_DEFAULT"; then 15040 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" 15041 fi 15042 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" 15043 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' 15044 od_vectors="$od_vectors objdump_private_desc_xcoff" 15045 else 15046 case $targ in 15047 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; 15048 esac 15049 15050 case $targ in 15051 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*) 15052 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15053 if test -z "$DLLTOOL_DEFAULT"; then 15054 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE" 15055 fi 15056 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM" 15057 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15058 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15059 ;; 15060 arm-*-pe*) 15061 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15062 if test -z "$DLLTOOL_DEFAULT"; then 15063 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM" 15064 fi 15065 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM" 15066 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15067 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15068 ;; 15069 x86_64-*-mingw* | x86_64-*-cygwin*) 15070 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15071 if test -z "$DLLTOOL_DEFAULT"; then 15072 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64" 15073 fi 15074 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64" 15075 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15076 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15077 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' 15078 ;; 15079 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*) 15080 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15081 if test -z "$DLLTOOL_DEFAULT"; then 15082 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" 15083 fi 15084 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" 15085 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15086 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15087 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' 15088 ;; 15089 i[3-7]86-*-interix) 15090 BUILD_DLLTOOL='$(DLLTOOL_PROG)' 15091 if test -z "$DLLTOOL_DEFAULT"; then 15092 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386" 15093 fi 15094 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" 15095 ;; 15096 powerpc*-aix5.[01]) 15097 ;; 15098 powerpc*-aix[5-9].*) 15099 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT" 15100 ;; 15101 powerpc*-*-pe* | powerpc*-*-cygwin*) 15102 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15103 if test -z "$DLLTOOL_DEFAULT"; then 15104 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC" 15105 fi 15106 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC" 15107 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15108 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15109 ;; 15110 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*) 15111 case "$BUILD_INSTALL_MISC" in 15112 *embedspu*) ;; 15113 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu" 15114 esac 15115 ;; 15116 sh*-*-pe) 15117 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15118 if test -z "$DLLTOOL_DEFAULT"; then 15119 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH" 15120 fi 15121 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH" 15122 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15123 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15124 ;; 15125 spu-*-*) 15126 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)' 15127 ;; 15128 mips*-*-pe) 15129 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15130 if test -z "$DLLTOOL_DEFAULT"; then 15131 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS" 15132 fi 15133 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS" 15134 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15135 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15136 ;; 15137 mcore-*-pe) 15138 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15139 if test -z "$DLLTOOL_DEFAULT"; then 15140 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE" 15141 fi 15142 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE" 15143 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15144 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15145 ;; 15146 mcore-*-elf) 15147 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)' 15148 if test -z "$DLLTOOL_DEFAULT"; then 15149 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF" 15150 fi 15151 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF" 15152 ;; 15153 mep-*) 15154 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0" 15155 ;; 15156 esac 15157 15158 # Add objdump private vectors. 15159 case $targ in 15160 avr-*-*) 15161 od_vectors="$od_vectors objdump_private_desc_elf32_avr" 15162 ;; 15163 powerpc*-*-aix* | rs6000-*-aix*) 15164 od_vectors="$od_vectors objdump_private_desc_xcoff" 15165 ;; 15166 *-*-darwin*) 15167 od_vectors="$od_vectors objdump_private_desc_mach_o" 15168 ;; 15169 esac 15170 fi 15171done 15172 15173# Uniq objdump private vector, build objdump target ofiles. 15174od_files= 15175f="" 15176for i in $od_vectors ; do 15177 case " $f " in 15178 *" $i "*) ;; 15179 *) 15180 f="$f $i" 15181 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i," 15182 case $i in 15183 objdump_private_desc_elf32_avr) 15184 od_files="$od_files od-elf32_avr" ;; 15185 objdump_private_desc_xcoff) 15186 od_files="$od_files od-xcoff" ;; 15187 objdump_private_desc_mach_o) 15188 od_files="$od_files od-macho" ;; 15189 *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;; 15190 esac 15191 ;; 15192 esac 15193done 15194 15195# Uniq objdump target ofiles 15196f="" 15197for i in $od_files ; do 15198 case " $f " in 15199 *" $i "*) ;; 15200 *) 15201 f="$f $i" 15202 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext" 15203 ;; 15204 esac 15205done 15206 15207DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT" 15208 15209if test "${with_windres+set}" = set; then 15210 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)' 15211fi 15212 15213if test "${with_windmc+set}" = set; then 15214 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)' 15215fi 15216 15217OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\"" 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231cat >>confdefs.h <<_ACEOF 15232#define TARGET "${target}" 15233_ACEOF 15234 15235 15236targ=$target 15237. $srcdir/../bfd/config.bfd 15238if test "x$targ_underscore" = "xyes"; then 15239 UNDERSCORE=1 15240else 15241 UNDERSCORE=0 15242fi 15243 15244cat >>confdefs.h <<_ACEOF 15245#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE 15246_ACEOF 15247 15248 15249# Emulation 15250targ=$target 15251. ${srcdir}/configure.tgt 15252EMULATION=$targ_emul 15253EMULATION_VECTOR=$targ_emul_vector 15254 15255 15256 15257 15258# Required for html and install-html 15259 15260 15261 15262 15263 15264ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in" 15265 15266cat >confcache <<\_ACEOF 15267# This file is a shell script that caches the results of configure 15268# tests run on this system so they can be shared between configure 15269# scripts and configure runs, see configure's option --config-cache. 15270# It is not useful on other systems. If it contains results you don't 15271# want to keep, you may remove or edit it. 15272# 15273# config.status only pays attention to the cache file if you give it 15274# the --recheck option to rerun configure. 15275# 15276# `ac_cv_env_foo' variables (set or unset) will be overridden when 15277# loading this file, other *unset* `ac_cv_foo' will be assigned the 15278# following values. 15279 15280_ACEOF 15281 15282# The following way of writing the cache mishandles newlines in values, 15283# but we know of no workaround that is simple, portable, and efficient. 15284# So, we kill variables containing newlines. 15285# Ultrix sh set writes to stderr and can't be redirected directly, 15286# and sets the high bit in the cache file unless we assign to the vars. 15287( 15288 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15289 eval ac_val=\$$ac_var 15290 case $ac_val in #( 15291 *${as_nl}*) 15292 case $ac_var in #( 15293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15294$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15295 esac 15296 case $ac_var in #( 15297 _ | IFS | as_nl) ;; #( 15298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15299 *) { eval $ac_var=; unset $ac_var;} ;; 15300 esac ;; 15301 esac 15302 done 15303 15304 (set) 2>&1 | 15305 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15306 *${as_nl}ac_space=\ *) 15307 # `set' does not quote correctly, so add quotes: double-quote 15308 # substitution turns \\\\ into \\, and sed turns \\ into \. 15309 sed -n \ 15310 "s/'/'\\\\''/g; 15311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15312 ;; #( 15313 *) 15314 # `set' quotes correctly as required by POSIX, so do not add quotes. 15315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15316 ;; 15317 esac | 15318 sort 15319) | 15320 sed ' 15321 /^ac_cv_env_/b end 15322 t clear 15323 :clear 15324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15325 t end 15326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15327 :end' >>confcache 15328if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15329 if test -w "$cache_file"; then 15330 if test "x$cache_file" != "x/dev/null"; then 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15332$as_echo "$as_me: updating cache $cache_file" >&6;} 15333 if test ! -f "$cache_file" || test -h "$cache_file"; then 15334 cat confcache >"$cache_file" 15335 else 15336 case $cache_file in #( 15337 */* | ?:*) 15338 mv -f confcache "$cache_file"$$ && 15339 mv -f "$cache_file"$$ "$cache_file" ;; #( 15340 *) 15341 mv -f confcache "$cache_file" ;; 15342 esac 15343 fi 15344 fi 15345 else 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15347$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15348 fi 15349fi 15350rm -f confcache 15351 15352test "x$prefix" = xNONE && prefix=$ac_default_prefix 15353# Let make expand exec_prefix. 15354test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15355 15356DEFS=-DHAVE_CONFIG_H 15357 15358ac_libobjs= 15359ac_ltlibobjs= 15360U= 15361for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15362 # 1. Remove the extension, and $U if already installed. 15363 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15364 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15365 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15366 # will be set to the directory where LIBOBJS objects are built. 15367 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15368 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15369done 15370LIBOBJS=$ac_libobjs 15371 15372LTLIBOBJS=$ac_ltlibobjs 15373 15374 15375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15376$as_echo_n "checking that generated files are newer than configure... " >&6; } 15377 if test -n "$am_sleep_pid"; then 15378 # Hide warnings about reused PIDs. 15379 wait $am_sleep_pid 2>/dev/null 15380 fi 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15382$as_echo "done" >&6; } 15383if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15384 as_fn_error $? "conditional \"AMDEP\" was never defined. 15385Usually this means the macro was only invoked conditionally." "$LINENO" 5 15386fi 15387if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15388 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15389Usually this means the macro was only invoked conditionally." "$LINENO" 5 15390fi 15391 if test -n "$EXEEXT"; then 15392 am__EXEEXT_TRUE= 15393 am__EXEEXT_FALSE='#' 15394else 15395 am__EXEEXT_TRUE='#' 15396 am__EXEEXT_FALSE= 15397fi 15398 15399if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15400 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15401Usually this means the macro was only invoked conditionally." "$LINENO" 5 15402fi 15403if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 15404 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. 15405Usually this means the macro was only invoked conditionally." "$LINENO" 5 15406fi 15407 15408: "${CONFIG_STATUS=./config.status}" 15409ac_write_fail=0 15410ac_clean_files_save=$ac_clean_files 15411ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15413$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15414as_write_fail=0 15415cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15416#! $SHELL 15417# Generated by $as_me. 15418# Run this file to recreate the current configuration. 15419# Compiler output produced by configure, useful for debugging 15420# configure, is in config.log if it exists. 15421 15422debug=false 15423ac_cs_recheck=false 15424ac_cs_silent=false 15425 15426SHELL=\${CONFIG_SHELL-$SHELL} 15427export SHELL 15428_ASEOF 15429cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15430## -------------------- ## 15431## M4sh Initialization. ## 15432## -------------------- ## 15433 15434# Be more Bourne compatible 15435DUALCASE=1; export DUALCASE # for MKS sh 15436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15437 emulate sh 15438 NULLCMD=: 15439 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15440 # is contrary to our usage. Disable this feature. 15441 alias -g '${1+"$@"}'='"$@"' 15442 setopt NO_GLOB_SUBST 15443else 15444 case `(set -o) 2>/dev/null` in #( 15445 *posix*) : 15446 set -o posix ;; #( 15447 *) : 15448 ;; 15449esac 15450fi 15451 15452 15453as_nl=' 15454' 15455export as_nl 15456# Printing a long string crashes Solaris 7 /usr/bin/printf. 15457as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15458as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15460# Prefer a ksh shell builtin over an external printf program on Solaris, 15461# but without wasting forks for bash or zsh. 15462if test -z "$BASH_VERSION$ZSH_VERSION" \ 15463 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15464 as_echo='print -r --' 15465 as_echo_n='print -rn --' 15466elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15467 as_echo='printf %s\n' 15468 as_echo_n='printf %s' 15469else 15470 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15472 as_echo_n='/usr/ucb/echo -n' 15473 else 15474 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15475 as_echo_n_body='eval 15476 arg=$1; 15477 case $arg in #( 15478 *"$as_nl"*) 15479 expr "X$arg" : "X\\(.*\\)$as_nl"; 15480 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15481 esac; 15482 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15483 ' 15484 export as_echo_n_body 15485 as_echo_n='sh -c $as_echo_n_body as_echo' 15486 fi 15487 export as_echo_body 15488 as_echo='sh -c $as_echo_body as_echo' 15489fi 15490 15491# The user is always right. 15492if test "${PATH_SEPARATOR+set}" != set; then 15493 PATH_SEPARATOR=: 15494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15496 PATH_SEPARATOR=';' 15497 } 15498fi 15499 15500 15501# IFS 15502# We need space, tab and new line, in precisely that order. Quoting is 15503# there to prevent editors from complaining about space-tab. 15504# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15505# splitting by setting IFS to empty value.) 15506IFS=" "" $as_nl" 15507 15508# Find who we are. Look in the path if we contain no directory separator. 15509as_myself= 15510case $0 in #(( 15511 *[\\/]* ) as_myself=$0 ;; 15512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15513for as_dir in $PATH 15514do 15515 IFS=$as_save_IFS 15516 test -z "$as_dir" && as_dir=. 15517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15518 done 15519IFS=$as_save_IFS 15520 15521 ;; 15522esac 15523# We did not find ourselves, most probably we were run as `sh COMMAND' 15524# in which case we are not to be found in the path. 15525if test "x$as_myself" = x; then 15526 as_myself=$0 15527fi 15528if test ! -f "$as_myself"; then 15529 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15530 exit 1 15531fi 15532 15533# Unset variables that we do not need and which cause bugs (e.g. in 15534# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15535# suppresses any "Segmentation fault" message there. '((' could 15536# trigger a bug in pdksh 5.2.14. 15537for as_var in BASH_ENV ENV MAIL MAILPATH 15538do eval test x\${$as_var+set} = xset \ 15539 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15540done 15541PS1='$ ' 15542PS2='> ' 15543PS4='+ ' 15544 15545# NLS nuisances. 15546LC_ALL=C 15547export LC_ALL 15548LANGUAGE=C 15549export LANGUAGE 15550 15551# CDPATH. 15552(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15553 15554 15555# as_fn_error STATUS ERROR [LINENO LOG_FD] 15556# ---------------------------------------- 15557# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15558# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15559# script with STATUS, using 1 if that was 0. 15560as_fn_error () 15561{ 15562 as_status=$1; test $as_status -eq 0 && as_status=1 15563 if test "$4"; then 15564 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15565 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15566 fi 15567 $as_echo "$as_me: error: $2" >&2 15568 as_fn_exit $as_status 15569} # as_fn_error 15570 15571 15572# as_fn_set_status STATUS 15573# ----------------------- 15574# Set $? to STATUS, without forking. 15575as_fn_set_status () 15576{ 15577 return $1 15578} # as_fn_set_status 15579 15580# as_fn_exit STATUS 15581# ----------------- 15582# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15583as_fn_exit () 15584{ 15585 set +e 15586 as_fn_set_status $1 15587 exit $1 15588} # as_fn_exit 15589 15590# as_fn_unset VAR 15591# --------------- 15592# Portably unset VAR. 15593as_fn_unset () 15594{ 15595 { eval $1=; unset $1;} 15596} 15597as_unset=as_fn_unset 15598# as_fn_append VAR VALUE 15599# ---------------------- 15600# Append the text in VALUE to the end of the definition contained in VAR. Take 15601# advantage of any shell optimizations that allow amortized linear growth over 15602# repeated appends, instead of the typical quadratic growth present in naive 15603# implementations. 15604if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15605 eval 'as_fn_append () 15606 { 15607 eval $1+=\$2 15608 }' 15609else 15610 as_fn_append () 15611 { 15612 eval $1=\$$1\$2 15613 } 15614fi # as_fn_append 15615 15616# as_fn_arith ARG... 15617# ------------------ 15618# Perform arithmetic evaluation on the ARGs, and store the result in the 15619# global $as_val. Take advantage of shells that can avoid forks. The arguments 15620# must be portable across $(()) and expr. 15621if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15622 eval 'as_fn_arith () 15623 { 15624 as_val=$(( $* )) 15625 }' 15626else 15627 as_fn_arith () 15628 { 15629 as_val=`expr "$@" || test $? -eq 1` 15630 } 15631fi # as_fn_arith 15632 15633 15634if expr a : '\(a\)' >/dev/null 2>&1 && 15635 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15636 as_expr=expr 15637else 15638 as_expr=false 15639fi 15640 15641if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15642 as_basename=basename 15643else 15644 as_basename=false 15645fi 15646 15647if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15648 as_dirname=dirname 15649else 15650 as_dirname=false 15651fi 15652 15653as_me=`$as_basename -- "$0" || 15654$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15655 X"$0" : 'X\(//\)$' \| \ 15656 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15657$as_echo X/"$0" | 15658 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15659 s//\1/ 15660 q 15661 } 15662 /^X\/\(\/\/\)$/{ 15663 s//\1/ 15664 q 15665 } 15666 /^X\/\(\/\).*/{ 15667 s//\1/ 15668 q 15669 } 15670 s/.*/./; q'` 15671 15672# Avoid depending upon Character Ranges. 15673as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15674as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15675as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15676as_cr_digits='0123456789' 15677as_cr_alnum=$as_cr_Letters$as_cr_digits 15678 15679ECHO_C= ECHO_N= ECHO_T= 15680case `echo -n x` in #((((( 15681-n*) 15682 case `echo 'xy\c'` in 15683 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15684 xy) ECHO_C='\c';; 15685 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15686 ECHO_T=' ';; 15687 esac;; 15688*) 15689 ECHO_N='-n';; 15690esac 15691 15692rm -f conf$$ conf$$.exe conf$$.file 15693if test -d conf$$.dir; then 15694 rm -f conf$$.dir/conf$$.file 15695else 15696 rm -f conf$$.dir 15697 mkdir conf$$.dir 2>/dev/null 15698fi 15699if (echo >conf$$.file) 2>/dev/null; then 15700 if ln -s conf$$.file conf$$ 2>/dev/null; then 15701 as_ln_s='ln -s' 15702 # ... but there are two gotchas: 15703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15705 # In both cases, we have to default to `cp -pR'. 15706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15707 as_ln_s='cp -pR' 15708 elif ln conf$$.file conf$$ 2>/dev/null; then 15709 as_ln_s=ln 15710 else 15711 as_ln_s='cp -pR' 15712 fi 15713else 15714 as_ln_s='cp -pR' 15715fi 15716rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15717rmdir conf$$.dir 2>/dev/null 15718 15719 15720# as_fn_mkdir_p 15721# ------------- 15722# Create "$as_dir" as a directory, including parents if necessary. 15723as_fn_mkdir_p () 15724{ 15725 15726 case $as_dir in #( 15727 -*) as_dir=./$as_dir;; 15728 esac 15729 test -d "$as_dir" || eval $as_mkdir_p || { 15730 as_dirs= 15731 while :; do 15732 case $as_dir in #( 15733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15734 *) as_qdir=$as_dir;; 15735 esac 15736 as_dirs="'$as_qdir' $as_dirs" 15737 as_dir=`$as_dirname -- "$as_dir" || 15738$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15739 X"$as_dir" : 'X\(//\)[^/]' \| \ 15740 X"$as_dir" : 'X\(//\)$' \| \ 15741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15742$as_echo X"$as_dir" | 15743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15744 s//\1/ 15745 q 15746 } 15747 /^X\(\/\/\)[^/].*/{ 15748 s//\1/ 15749 q 15750 } 15751 /^X\(\/\/\)$/{ 15752 s//\1/ 15753 q 15754 } 15755 /^X\(\/\).*/{ 15756 s//\1/ 15757 q 15758 } 15759 s/.*/./; q'` 15760 test -d "$as_dir" && break 15761 done 15762 test -z "$as_dirs" || eval "mkdir $as_dirs" 15763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15764 15765 15766} # as_fn_mkdir_p 15767if mkdir -p . 2>/dev/null; then 15768 as_mkdir_p='mkdir -p "$as_dir"' 15769else 15770 test -d ./-p && rmdir ./-p 15771 as_mkdir_p=false 15772fi 15773 15774 15775# as_fn_executable_p FILE 15776# ----------------------- 15777# Test if FILE is an executable regular file. 15778as_fn_executable_p () 15779{ 15780 test -f "$1" && test -x "$1" 15781} # as_fn_executable_p 15782as_test_x='test -x' 15783as_executable_p=as_fn_executable_p 15784 15785# Sed expression to map a string onto a valid CPP name. 15786as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15787 15788# Sed expression to map a string onto a valid variable name. 15789as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15790 15791 15792exec 6>&1 15793## ----------------------------------- ## 15794## Main body of $CONFIG_STATUS script. ## 15795## ----------------------------------- ## 15796_ASEOF 15797test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15798 15799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15800# Save the log message, to keep $0 and so on meaningful, and to 15801# report actual input values of CONFIG_FILES etc. instead of their 15802# values after options handling. 15803ac_log=" 15804This file was extended by binutils $as_me 2.34, which was 15805generated by GNU Autoconf 2.69. Invocation command line was 15806 15807 CONFIG_FILES = $CONFIG_FILES 15808 CONFIG_HEADERS = $CONFIG_HEADERS 15809 CONFIG_LINKS = $CONFIG_LINKS 15810 CONFIG_COMMANDS = $CONFIG_COMMANDS 15811 $ $0 $@ 15812 15813on `(hostname || uname -n) 2>/dev/null | sed 1q` 15814" 15815 15816_ACEOF 15817 15818case $ac_config_files in *" 15819"*) set x $ac_config_files; shift; ac_config_files=$*;; 15820esac 15821 15822case $ac_config_headers in *" 15823"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15824esac 15825 15826 15827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15828# Files that config.status was made for. 15829config_files="$ac_config_files" 15830config_headers="$ac_config_headers" 15831config_commands="$ac_config_commands" 15832 15833_ACEOF 15834 15835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15836ac_cs_usage="\ 15837\`$as_me' instantiates files and other configuration actions 15838from templates according to the current configuration. Unless the files 15839and actions are specified as TAGs, all are instantiated by default. 15840 15841Usage: $0 [OPTION]... [TAG]... 15842 15843 -h, --help print this help, then exit 15844 -V, --version print version number and configuration settings, then exit 15845 --config print configuration, then exit 15846 -q, --quiet, --silent 15847 do not print progress messages 15848 -d, --debug don't remove temporary files 15849 --recheck update $as_me by reconfiguring in the same conditions 15850 --file=FILE[:TEMPLATE] 15851 instantiate the configuration file FILE 15852 --header=FILE[:TEMPLATE] 15853 instantiate the configuration header FILE 15854 15855Configuration files: 15856$config_files 15857 15858Configuration headers: 15859$config_headers 15860 15861Configuration commands: 15862$config_commands 15863 15864Report bugs to the package provider." 15865 15866_ACEOF 15867cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15868ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15869ac_cs_version="\\ 15870binutils config.status 2.34 15871configured by $0, generated by GNU Autoconf 2.69, 15872 with options \\"\$ac_cs_config\\" 15873 15874Copyright (C) 2012 Free Software Foundation, Inc. 15875This config.status script is free software; the Free Software Foundation 15876gives unlimited permission to copy, distribute and modify it." 15877 15878ac_pwd='$ac_pwd' 15879srcdir='$srcdir' 15880INSTALL='$INSTALL' 15881MKDIR_P='$MKDIR_P' 15882AWK='$AWK' 15883test -n "\$AWK" || AWK=awk 15884_ACEOF 15885 15886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15887# The default lists apply if the user does not specify any file. 15888ac_need_defaults=: 15889while test $# != 0 15890do 15891 case $1 in 15892 --*=?*) 15893 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15895 ac_shift=: 15896 ;; 15897 --*=) 15898 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15899 ac_optarg= 15900 ac_shift=: 15901 ;; 15902 *) 15903 ac_option=$1 15904 ac_optarg=$2 15905 ac_shift=shift 15906 ;; 15907 esac 15908 15909 case $ac_option in 15910 # Handling of the options. 15911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15912 ac_cs_recheck=: ;; 15913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15914 $as_echo "$ac_cs_version"; exit ;; 15915 --config | --confi | --conf | --con | --co | --c ) 15916 $as_echo "$ac_cs_config"; exit ;; 15917 --debug | --debu | --deb | --de | --d | -d ) 15918 debug=: ;; 15919 --file | --fil | --fi | --f ) 15920 $ac_shift 15921 case $ac_optarg in 15922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15923 '') as_fn_error $? "missing file argument" ;; 15924 esac 15925 as_fn_append CONFIG_FILES " '$ac_optarg'" 15926 ac_need_defaults=false;; 15927 --header | --heade | --head | --hea ) 15928 $ac_shift 15929 case $ac_optarg in 15930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15931 esac 15932 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15933 ac_need_defaults=false;; 15934 --he | --h) 15935 # Conflict between --help and --header 15936 as_fn_error $? "ambiguous option: \`$1' 15937Try \`$0 --help' for more information.";; 15938 --help | --hel | -h ) 15939 $as_echo "$ac_cs_usage"; exit ;; 15940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15941 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15942 ac_cs_silent=: ;; 15943 15944 # This is an error. 15945 -*) as_fn_error $? "unrecognized option: \`$1' 15946Try \`$0 --help' for more information." ;; 15947 15948 *) as_fn_append ac_config_targets " $1" 15949 ac_need_defaults=false ;; 15950 15951 esac 15952 shift 15953done 15954 15955ac_configure_extra_args= 15956 15957if $ac_cs_silent; then 15958 exec 6>/dev/null 15959 ac_configure_extra_args="$ac_configure_extra_args --silent" 15960fi 15961 15962_ACEOF 15963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15964if \$ac_cs_recheck; then 15965 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15966 shift 15967 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15968 CONFIG_SHELL='$SHELL' 15969 export CONFIG_SHELL 15970 exec "\$@" 15971fi 15972 15973_ACEOF 15974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15975exec 5>>config.log 15976{ 15977 echo 15978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15979## Running $as_me. ## 15980_ASBOX 15981 $as_echo "$ac_log" 15982} >&5 15983 15984_ACEOF 15985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15986# 15987# INIT-COMMANDS 15988# 15989AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15990 15991 15992# The HP-UX ksh and POSIX shell print the target directory to stdout 15993# if CDPATH is set. 15994(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15995 15996sed_quote_subst='$sed_quote_subst' 15997double_quote_subst='$double_quote_subst' 15998delay_variable_subst='$delay_variable_subst' 15999macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16000macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16001enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16002enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16003pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16004enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16005SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16006ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16007host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16008host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16009host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16010build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16011build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16012build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16013SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16014Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16015GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16016EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16017FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16018LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16019NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16020LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16021max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16022ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16023exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16024lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16025lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16026lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16027reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16028reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16029OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16030deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16031file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16032AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16033AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16034STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16035RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16036old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16037old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16038old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16039lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16040CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16041CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16042compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16043GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16044lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16045lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16046lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16047lt_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"`' 16048objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16049MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16050lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16051lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16052lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16053lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16054lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16055need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16056DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16057NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16058LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16059OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16060OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16061libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16062shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16063extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16064archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16065enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16066export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16067whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16068compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16069old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16070old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16071archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16072archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16073module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16074module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16075with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16076allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16077no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16078hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16079hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16080hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16081hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16082hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16083hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16084hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16085hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16086inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16087link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16088fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16089always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16090export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16091exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16092include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16093prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16094file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16095variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16096need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16097need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16098version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16099runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16100shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16101shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16102libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16103library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16104soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16105install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16106postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16107postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16108finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16109finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16110hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16111sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16112sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16113hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16114enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16115enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16116enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16117old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16118striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16119 16120LTCC='$LTCC' 16121LTCFLAGS='$LTCFLAGS' 16122compiler='$compiler_DEFAULT' 16123 16124# A function that is used when there is no print builtin or printf. 16125func_fallback_echo () 16126{ 16127 eval 'cat <<_LTECHO_EOF 16128\$1 16129_LTECHO_EOF' 16130} 16131 16132# Quote evaled strings. 16133for var in SHELL \ 16134ECHO \ 16135SED \ 16136GREP \ 16137EGREP \ 16138FGREP \ 16139LD \ 16140NM \ 16141LN_S \ 16142lt_SP2NL \ 16143lt_NL2SP \ 16144reload_flag \ 16145OBJDUMP \ 16146deplibs_check_method \ 16147file_magic_cmd \ 16148AR \ 16149AR_FLAGS \ 16150STRIP \ 16151RANLIB \ 16152CC \ 16153CFLAGS \ 16154compiler \ 16155lt_cv_sys_global_symbol_pipe \ 16156lt_cv_sys_global_symbol_to_cdecl \ 16157lt_cv_sys_global_symbol_to_c_name_address \ 16158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16159lt_prog_compiler_no_builtin_flag \ 16160lt_prog_compiler_wl \ 16161lt_prog_compiler_pic \ 16162lt_prog_compiler_static \ 16163lt_cv_prog_compiler_c_o \ 16164need_locks \ 16165DSYMUTIL \ 16166NMEDIT \ 16167LIPO \ 16168OTOOL \ 16169OTOOL64 \ 16170shrext_cmds \ 16171export_dynamic_flag_spec \ 16172whole_archive_flag_spec \ 16173compiler_needs_object \ 16174with_gnu_ld \ 16175allow_undefined_flag \ 16176no_undefined_flag \ 16177hardcode_libdir_flag_spec \ 16178hardcode_libdir_flag_spec_ld \ 16179hardcode_libdir_separator \ 16180fix_srcfile_path \ 16181exclude_expsyms \ 16182include_expsyms \ 16183file_list_spec \ 16184variables_saved_for_relink \ 16185libname_spec \ 16186library_names_spec \ 16187soname_spec \ 16188install_override_mode \ 16189finish_eval \ 16190old_striplib \ 16191striplib; do 16192 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16193 *[\\\\\\\`\\"\\\$]*) 16194 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16195 ;; 16196 *) 16197 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16198 ;; 16199 esac 16200done 16201 16202# Double-quote double-evaled strings. 16203for var in reload_cmds \ 16204old_postinstall_cmds \ 16205old_postuninstall_cmds \ 16206old_archive_cmds \ 16207extract_expsyms_cmds \ 16208old_archive_from_new_cmds \ 16209old_archive_from_expsyms_cmds \ 16210archive_cmds \ 16211archive_expsym_cmds \ 16212module_cmds \ 16213module_expsym_cmds \ 16214export_symbols_cmds \ 16215prelink_cmds \ 16216postinstall_cmds \ 16217postuninstall_cmds \ 16218finish_cmds \ 16219sys_lib_search_path_spec \ 16220sys_lib_dlsearch_path_spec; do 16221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16222 *[\\\\\\\`\\"\\\$]*) 16223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16224 ;; 16225 *) 16226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16227 ;; 16228 esac 16229done 16230 16231ac_aux_dir='$ac_aux_dir' 16232xsi_shell='$xsi_shell' 16233lt_shell_append='$lt_shell_append' 16234 16235# See if we are running on zsh, and set the options which allow our 16236# commands through without removal of \ escapes INIT. 16237if test -n "\${ZSH_VERSION+set}" ; then 16238 setopt NO_GLOB_SUBST 16239fi 16240 16241 16242 PACKAGE='$PACKAGE' 16243 VERSION='$VERSION' 16244 TIMESTAMP='$TIMESTAMP' 16245 RM='$RM' 16246 ofile='$ofile' 16247 16248 16249 16250# Capture the value of obsolete ALL_LINGUAS because we need it to compute 16251 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 16252 # from automake. 16253 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 16254 # Capture the value of LINGUAS because we need it to compute CATALOGS. 16255 LINGUAS="${LINGUAS-%UNSET%}" 16256 16257 16258_ACEOF 16259 16260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16261 16262# Handling of arguments. 16263for ac_config_target in $ac_config_targets 16264do 16265 case $ac_config_target in 16266 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16267 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16268 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 16269 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16270 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16271 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16272 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 16273 16274 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16275 esac 16276done 16277 16278 16279# If the user did not use the arguments to specify the items to instantiate, 16280# then the envvar interface is used. Set only those that are not. 16281# We use the long form for the default assignment because of an extremely 16282# bizarre bug on SunOS 4.1.3. 16283if $ac_need_defaults; then 16284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16287fi 16288 16289# Have a temporary directory for convenience. Make it in the build tree 16290# simply because there is no reason against having it here, and in addition, 16291# creating and moving files from /tmp can sometimes cause problems. 16292# Hook for its removal unless debugging. 16293# Note that there is a small window in which the directory will not be cleaned: 16294# after its creation but before its name has been assigned to `$tmp'. 16295$debug || 16296{ 16297 tmp= ac_tmp= 16298 trap 'exit_status=$? 16299 : "${ac_tmp:=$tmp}" 16300 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16301' 0 16302 trap 'as_fn_exit 1' 1 2 13 15 16303} 16304# Create a (secure) tmp directory for tmp files. 16305 16306{ 16307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16308 test -d "$tmp" 16309} || 16310{ 16311 tmp=./conf$$-$RANDOM 16312 (umask 077 && mkdir "$tmp") 16313} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16314ac_tmp=$tmp 16315 16316# Set up the scripts for CONFIG_FILES section. 16317# No need to generate them if there are no CONFIG_FILES. 16318# This happens for instance with `./config.status config.h'. 16319if test -n "$CONFIG_FILES"; then 16320 16321 16322ac_cr=`echo X | tr X '\015'` 16323# On cygwin, bash can eat \r inside `` if the user requested igncr. 16324# But we know of no other shell where ac_cr would be empty at this 16325# point, so we can use a bashism as a fallback. 16326if test "x$ac_cr" = x; then 16327 eval ac_cr=\$\'\\r\' 16328fi 16329ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16330if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16331 ac_cs_awk_cr='\\r' 16332else 16333 ac_cs_awk_cr=$ac_cr 16334fi 16335 16336echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16337_ACEOF 16338 16339 16340{ 16341 echo "cat >conf$$subs.awk <<_ACEOF" && 16342 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16343 echo "_ACEOF" 16344} >conf$$subs.sh || 16345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16346ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16347ac_delim='%!_!# ' 16348for ac_last_try in false false false false false :; do 16349 . ./conf$$subs.sh || 16350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16351 16352 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16353 if test $ac_delim_n = $ac_delim_num; then 16354 break 16355 elif $ac_last_try; then 16356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16357 else 16358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16359 fi 16360done 16361rm -f conf$$subs.sh 16362 16363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16364cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16365_ACEOF 16366sed -n ' 16367h 16368s/^/S["/; s/!.*/"]=/ 16369p 16370g 16371s/^[^!]*!// 16372:repl 16373t repl 16374s/'"$ac_delim"'$// 16375t delim 16376:nl 16377h 16378s/\(.\{148\}\)..*/\1/ 16379t more1 16380s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16381p 16382n 16383b repl 16384:more1 16385s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16386p 16387g 16388s/.\{148\}// 16389t nl 16390:delim 16391h 16392s/\(.\{148\}\)..*/\1/ 16393t more2 16394s/["\\]/\\&/g; s/^/"/; s/$/"/ 16395p 16396b 16397:more2 16398s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16399p 16400g 16401s/.\{148\}// 16402t delim 16403' <conf$$subs.awk | sed ' 16404/^[^""]/{ 16405 N 16406 s/\n// 16407} 16408' >>$CONFIG_STATUS || ac_write_fail=1 16409rm -f conf$$subs.awk 16410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16411_ACAWK 16412cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16413 for (key in S) S_is_set[key] = 1 16414 FS = "" 16415 16416} 16417{ 16418 line = $ 0 16419 nfields = split(line, field, "@") 16420 substed = 0 16421 len = length(field[1]) 16422 for (i = 2; i < nfields; i++) { 16423 key = field[i] 16424 keylen = length(key) 16425 if (S_is_set[key]) { 16426 value = S[key] 16427 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16428 len += length(value) + length(field[++i]) 16429 substed = 1 16430 } else 16431 len += 1 + keylen 16432 } 16433 16434 print line 16435} 16436 16437_ACAWK 16438_ACEOF 16439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16440if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16441 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16442else 16443 cat 16444fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16445 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16446_ACEOF 16447 16448# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16449# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16450# trailing colons and then remove the whole line if VPATH becomes empty 16451# (actually we leave an empty line to preserve line numbers). 16452if test "x$srcdir" = x.; then 16453 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16454h 16455s/// 16456s/^/:/ 16457s/[ ]*$/:/ 16458s/:\$(srcdir):/:/g 16459s/:\${srcdir}:/:/g 16460s/:@srcdir@:/:/g 16461s/^:*// 16462s/:*$// 16463x 16464s/\(=[ ]*\).*/\1/ 16465G 16466s/\n// 16467s/^[^=]*=[ ]*$// 16468}' 16469fi 16470 16471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16472fi # test -n "$CONFIG_FILES" 16473 16474# Set up the scripts for CONFIG_HEADERS section. 16475# No need to generate them if there are no CONFIG_HEADERS. 16476# This happens for instance with `./config.status Makefile'. 16477if test -n "$CONFIG_HEADERS"; then 16478cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16479BEGIN { 16480_ACEOF 16481 16482# Transform confdefs.h into an awk script `defines.awk', embedded as 16483# here-document in config.status, that substitutes the proper values into 16484# config.h.in to produce config.h. 16485 16486# Create a delimiter string that does not exist in confdefs.h, to ease 16487# handling of long lines. 16488ac_delim='%!_!# ' 16489for ac_last_try in false false :; do 16490 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16491 if test -z "$ac_tt"; then 16492 break 16493 elif $ac_last_try; then 16494 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16495 else 16496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16497 fi 16498done 16499 16500# For the awk script, D is an array of macro values keyed by name, 16501# likewise P contains macro parameters if any. Preserve backslash 16502# newline sequences. 16503 16504ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16505sed -n ' 16506s/.\{148\}/&'"$ac_delim"'/g 16507t rset 16508:rset 16509s/^[ ]*#[ ]*define[ ][ ]*/ / 16510t def 16511d 16512:def 16513s/\\$// 16514t bsnl 16515s/["\\]/\\&/g 16516s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16517D["\1"]=" \3"/p 16518s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16519d 16520:bsnl 16521s/["\\]/\\&/g 16522s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16523D["\1"]=" \3\\\\\\n"\\/p 16524t cont 16525s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16526t cont 16527d 16528:cont 16529n 16530s/.\{148\}/&'"$ac_delim"'/g 16531t clear 16532:clear 16533s/\\$// 16534t bsnlc 16535s/["\\]/\\&/g; s/^/"/; s/$/"/p 16536d 16537:bsnlc 16538s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16539b cont 16540' <confdefs.h | sed ' 16541s/'"$ac_delim"'/"\\\ 16542"/g' >>$CONFIG_STATUS || ac_write_fail=1 16543 16544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16545 for (key in D) D_is_set[key] = 1 16546 FS = "" 16547} 16548/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16549 line = \$ 0 16550 split(line, arg, " ") 16551 if (arg[1] == "#") { 16552 defundef = arg[2] 16553 mac1 = arg[3] 16554 } else { 16555 defundef = substr(arg[1], 2) 16556 mac1 = arg[2] 16557 } 16558 split(mac1, mac2, "(") #) 16559 macro = mac2[1] 16560 prefix = substr(line, 1, index(line, defundef) - 1) 16561 if (D_is_set[macro]) { 16562 # Preserve the white space surrounding the "#". 16563 print prefix "define", macro P[macro] D[macro] 16564 next 16565 } else { 16566 # Replace #undef with comments. This is necessary, for example, 16567 # in the case of _POSIX_SOURCE, which is predefined and required 16568 # on some systems where configure will not decide to define it. 16569 if (defundef == "undef") { 16570 print "/*", prefix defundef, macro, "*/" 16571 next 16572 } 16573 } 16574} 16575{ print } 16576_ACAWK 16577_ACEOF 16578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16579 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16580fi # test -n "$CONFIG_HEADERS" 16581 16582 16583eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16584shift 16585for ac_tag 16586do 16587 case $ac_tag in 16588 :[FHLC]) ac_mode=$ac_tag; continue;; 16589 esac 16590 case $ac_mode$ac_tag in 16591 :[FHL]*:*);; 16592 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16593 :[FH]-) ac_tag=-:-;; 16594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16595 esac 16596 ac_save_IFS=$IFS 16597 IFS=: 16598 set x $ac_tag 16599 IFS=$ac_save_IFS 16600 shift 16601 ac_file=$1 16602 shift 16603 16604 case $ac_mode in 16605 :L) ac_source=$1;; 16606 :[FH]) 16607 ac_file_inputs= 16608 for ac_f 16609 do 16610 case $ac_f in 16611 -) ac_f="$ac_tmp/stdin";; 16612 *) # Look for the file first in the build tree, then in the source tree 16613 # (if the path is not absolute). The absolute path cannot be DOS-style, 16614 # because $ac_f cannot contain `:'. 16615 test -f "$ac_f" || 16616 case $ac_f in 16617 [\\/$]*) false;; 16618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16619 esac || 16620 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16621 esac 16622 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16623 as_fn_append ac_file_inputs " '$ac_f'" 16624 done 16625 16626 # Let's still pretend it is `configure' which instantiates (i.e., don't 16627 # use $as_me), people would be surprised to read: 16628 # /* config.h. Generated by config.status. */ 16629 configure_input='Generated from '` 16630 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16631 `' by configure.' 16632 if test x"$ac_file" != x-; then 16633 configure_input="$ac_file. $configure_input" 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16635$as_echo "$as_me: creating $ac_file" >&6;} 16636 fi 16637 # Neutralize special characters interpreted by sed in replacement strings. 16638 case $configure_input in #( 16639 *\&* | *\|* | *\\* ) 16640 ac_sed_conf_input=`$as_echo "$configure_input" | 16641 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16642 *) ac_sed_conf_input=$configure_input;; 16643 esac 16644 16645 case $ac_tag in 16646 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16648 esac 16649 ;; 16650 esac 16651 16652 ac_dir=`$as_dirname -- "$ac_file" || 16653$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16654 X"$ac_file" : 'X\(//\)[^/]' \| \ 16655 X"$ac_file" : 'X\(//\)$' \| \ 16656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16657$as_echo X"$ac_file" | 16658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16659 s//\1/ 16660 q 16661 } 16662 /^X\(\/\/\)[^/].*/{ 16663 s//\1/ 16664 q 16665 } 16666 /^X\(\/\/\)$/{ 16667 s//\1/ 16668 q 16669 } 16670 /^X\(\/\).*/{ 16671 s//\1/ 16672 q 16673 } 16674 s/.*/./; q'` 16675 as_dir="$ac_dir"; as_fn_mkdir_p 16676 ac_builddir=. 16677 16678case "$ac_dir" in 16679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16680*) 16681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16682 # A ".." for each directory in $ac_dir_suffix. 16683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16684 case $ac_top_builddir_sub in 16685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16687 esac ;; 16688esac 16689ac_abs_top_builddir=$ac_pwd 16690ac_abs_builddir=$ac_pwd$ac_dir_suffix 16691# for backward compatibility: 16692ac_top_builddir=$ac_top_build_prefix 16693 16694case $srcdir in 16695 .) # We are building in place. 16696 ac_srcdir=. 16697 ac_top_srcdir=$ac_top_builddir_sub 16698 ac_abs_top_srcdir=$ac_pwd ;; 16699 [\\/]* | ?:[\\/]* ) # Absolute name. 16700 ac_srcdir=$srcdir$ac_dir_suffix; 16701 ac_top_srcdir=$srcdir 16702 ac_abs_top_srcdir=$srcdir ;; 16703 *) # Relative name. 16704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16705 ac_top_srcdir=$ac_top_build_prefix$srcdir 16706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16707esac 16708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16709 16710 16711 case $ac_mode in 16712 :F) 16713 # 16714 # CONFIG_FILE 16715 # 16716 16717 case $INSTALL in 16718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16720 esac 16721 ac_MKDIR_P=$MKDIR_P 16722 case $MKDIR_P in 16723 [\\/$]* | ?:[\\/]* ) ;; 16724 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16725 esac 16726_ACEOF 16727 16728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16729# If the template does not know about datarootdir, expand it. 16730# FIXME: This hack should be removed a few years after 2.60. 16731ac_datarootdir_hack=; ac_datarootdir_seen= 16732ac_sed_dataroot=' 16733/datarootdir/ { 16734 p 16735 q 16736} 16737/@datadir@/p 16738/@docdir@/p 16739/@infodir@/p 16740/@localedir@/p 16741/@mandir@/p' 16742case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16743*datarootdir*) ac_datarootdir_seen=yes;; 16744*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16746$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16747_ACEOF 16748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16749 ac_datarootdir_hack=' 16750 s&@datadir@&$datadir&g 16751 s&@docdir@&$docdir&g 16752 s&@infodir@&$infodir&g 16753 s&@localedir@&$localedir&g 16754 s&@mandir@&$mandir&g 16755 s&\\\${datarootdir}&$datarootdir&g' ;; 16756esac 16757_ACEOF 16758 16759# Neutralize VPATH when `$srcdir' = `.'. 16760# Shell code in configure.ac might set extrasub. 16761# FIXME: do we really want to maintain this feature? 16762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16763ac_sed_extra="$ac_vpsub 16764$extrasub 16765_ACEOF 16766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16767:t 16768/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16769s|@configure_input@|$ac_sed_conf_input|;t t 16770s&@top_builddir@&$ac_top_builddir_sub&;t t 16771s&@top_build_prefix@&$ac_top_build_prefix&;t t 16772s&@srcdir@&$ac_srcdir&;t t 16773s&@abs_srcdir@&$ac_abs_srcdir&;t t 16774s&@top_srcdir@&$ac_top_srcdir&;t t 16775s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16776s&@builddir@&$ac_builddir&;t t 16777s&@abs_builddir@&$ac_abs_builddir&;t t 16778s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16779s&@INSTALL@&$ac_INSTALL&;t t 16780s&@MKDIR_P@&$ac_MKDIR_P&;t t 16781$ac_datarootdir_hack 16782" 16783eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16784 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16785 16786test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16787 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16788 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16789 "$ac_tmp/out"`; test -z "$ac_out"; } && 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16791which seems to be undefined. Please make sure it is defined" >&5 16792$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16793which seems to be undefined. Please make sure it is defined" >&2;} 16794 16795 rm -f "$ac_tmp/stdin" 16796 case $ac_file in 16797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16799 esac \ 16800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16801 ;; 16802 :H) 16803 # 16804 # CONFIG_HEADER 16805 # 16806 if test x"$ac_file" != x-; then 16807 { 16808 $as_echo "/* $configure_input */" \ 16809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16810 } >"$ac_tmp/config.h" \ 16811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16812 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16814$as_echo "$as_me: $ac_file is unchanged" >&6;} 16815 else 16816 rm -f "$ac_file" 16817 mv "$ac_tmp/config.h" "$ac_file" \ 16818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16819 fi 16820 else 16821 $as_echo "/* $configure_input */" \ 16822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16823 || as_fn_error $? "could not create -" "$LINENO" 5 16824 fi 16825# Compute "$ac_file"'s index in $config_headers. 16826_am_arg="$ac_file" 16827_am_stamp_count=1 16828for _am_header in $config_headers :; do 16829 case $_am_header in 16830 $_am_arg | $_am_arg:* ) 16831 break ;; 16832 * ) 16833 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16834 esac 16835done 16836echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16837$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16838 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16839 X"$_am_arg" : 'X\(//\)$' \| \ 16840 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16841$as_echo X"$_am_arg" | 16842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16843 s//\1/ 16844 q 16845 } 16846 /^X\(\/\/\)[^/].*/{ 16847 s//\1/ 16848 q 16849 } 16850 /^X\(\/\/\)$/{ 16851 s//\1/ 16852 q 16853 } 16854 /^X\(\/\).*/{ 16855 s//\1/ 16856 q 16857 } 16858 s/.*/./; q'`/stamp-h$_am_stamp_count 16859 ;; 16860 16861 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16862$as_echo "$as_me: executing $ac_file commands" >&6;} 16863 ;; 16864 esac 16865 16866 16867 case $ac_file$ac_mode in 16868 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16869 # Older Autoconf quotes --file arguments for eval, but not when files 16870 # are listed without --file. Let's play safe and only enable the eval 16871 # if we detect the quoting. 16872 case $CONFIG_FILES in 16873 *\'*) eval set x "$CONFIG_FILES" ;; 16874 *) set x $CONFIG_FILES ;; 16875 esac 16876 shift 16877 for mf 16878 do 16879 # Strip MF so we end up with the name of the file. 16880 mf=`echo "$mf" | sed -e 's/:.*$//'` 16881 # Check whether this is an Automake generated Makefile or not. 16882 # We used to match only the files named 'Makefile.in', but 16883 # some people rename them; so instead we look at the file content. 16884 # Grep'ing the first line is not enough: some people post-process 16885 # each Makefile.in and add a new line on top of each file to say so. 16886 # Grep'ing the whole file is not good either: AIX grep has a line 16887 # limit of 2048, but all sed's we know have understand at least 4000. 16888 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16889 dirpart=`$as_dirname -- "$mf" || 16890$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16891 X"$mf" : 'X\(//\)[^/]' \| \ 16892 X"$mf" : 'X\(//\)$' \| \ 16893 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16894$as_echo X"$mf" | 16895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16896 s//\1/ 16897 q 16898 } 16899 /^X\(\/\/\)[^/].*/{ 16900 s//\1/ 16901 q 16902 } 16903 /^X\(\/\/\)$/{ 16904 s//\1/ 16905 q 16906 } 16907 /^X\(\/\).*/{ 16908 s//\1/ 16909 q 16910 } 16911 s/.*/./; q'` 16912 else 16913 continue 16914 fi 16915 # Extract the definition of DEPDIR, am__include, and am__quote 16916 # from the Makefile without running 'make'. 16917 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16918 test -z "$DEPDIR" && continue 16919 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16920 test -z "$am__include" && continue 16921 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16922 # Find all dependency output files, they are included files with 16923 # $(DEPDIR) in their names. We invoke sed twice because it is the 16924 # simplest approach to changing $(DEPDIR) to its actual value in the 16925 # expansion. 16926 for file in `sed -n " 16927 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16928 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16929 # Make sure the directory exists. 16930 test -f "$dirpart/$file" && continue 16931 fdir=`$as_dirname -- "$file" || 16932$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16933 X"$file" : 'X\(//\)[^/]' \| \ 16934 X"$file" : 'X\(//\)$' \| \ 16935 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16936$as_echo X"$file" | 16937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16938 s//\1/ 16939 q 16940 } 16941 /^X\(\/\/\)[^/].*/{ 16942 s//\1/ 16943 q 16944 } 16945 /^X\(\/\/\)$/{ 16946 s//\1/ 16947 q 16948 } 16949 /^X\(\/\).*/{ 16950 s//\1/ 16951 q 16952 } 16953 s/.*/./; q'` 16954 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16955 # echo "creating $dirpart/$file" 16956 echo '# dummy' > "$dirpart/$file" 16957 done 16958 done 16959} 16960 ;; 16961 "libtool":C) 16962 16963 # See if we are running on zsh, and set the options which allow our 16964 # commands through without removal of \ escapes. 16965 if test -n "${ZSH_VERSION+set}" ; then 16966 setopt NO_GLOB_SUBST 16967 fi 16968 16969 cfgfile="${ofile}T" 16970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16971 $RM "$cfgfile" 16972 16973 cat <<_LT_EOF >> "$cfgfile" 16974#! $SHELL 16975 16976# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16977# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16979# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16980# 16981# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16982# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16983# Written by Gordon Matzigkeit, 1996 16984# 16985# This file is part of GNU Libtool. 16986# 16987# GNU Libtool is free software; you can redistribute it and/or 16988# modify it under the terms of the GNU General Public License as 16989# published by the Free Software Foundation; either version 2 of 16990# the License, or (at your option) any later version. 16991# 16992# As a special exception to the GNU General Public License, 16993# if you distribute this file as part of a program or library that 16994# is built using GNU Libtool, you may include this file under the 16995# same distribution terms that you use for the rest of that program. 16996# 16997# GNU Libtool is distributed in the hope that it will be useful, 16998# but WITHOUT ANY WARRANTY; without even the implied warranty of 16999# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17000# GNU General Public License for more details. 17001# 17002# You should have received a copy of the GNU General Public License 17003# along with GNU Libtool; see the file COPYING. If not, a copy 17004# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17005# obtained by writing to the Free Software Foundation, Inc., 17006# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17007 17008 17009# The names of the tagged configurations supported by this script. 17010available_tags="" 17011 17012# ### BEGIN LIBTOOL CONFIG 17013 17014# Which release of libtool.m4 was used? 17015macro_version=$macro_version 17016macro_revision=$macro_revision 17017 17018# Whether or not to build shared libraries. 17019build_libtool_libs=$enable_shared 17020 17021# Whether or not to build static libraries. 17022build_old_libs=$enable_static 17023 17024# What type of objects to build. 17025pic_mode=$pic_mode 17026 17027# Whether or not to optimize for fast installation. 17028fast_install=$enable_fast_install 17029 17030# Shell to use when invoking shell scripts. 17031SHELL=$lt_SHELL 17032 17033# An echo program that protects backslashes. 17034ECHO=$lt_ECHO 17035 17036# The host system. 17037host_alias=$host_alias 17038host=$host 17039host_os=$host_os 17040 17041# The build system. 17042build_alias=$build_alias 17043build=$build 17044build_os=$build_os 17045 17046# A sed program that does not truncate output. 17047SED=$lt_SED 17048 17049# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17050Xsed="\$SED -e 1s/^X//" 17051 17052# A grep program that handles long lines. 17053GREP=$lt_GREP 17054 17055# An ERE matcher. 17056EGREP=$lt_EGREP 17057 17058# A literal string matcher. 17059FGREP=$lt_FGREP 17060 17061# A BSD- or MS-compatible name lister. 17062NM=$lt_NM 17063 17064# Whether we need soft or hard links. 17065LN_S=$lt_LN_S 17066 17067# What is the maximum length of a command? 17068max_cmd_len=$max_cmd_len 17069 17070# Object file suffix (normally "o"). 17071objext=$ac_objext 17072 17073# Executable file suffix (normally ""). 17074exeext=$exeext 17075 17076# whether the shell understands "unset". 17077lt_unset=$lt_unset 17078 17079# turn spaces into newlines. 17080SP2NL=$lt_lt_SP2NL 17081 17082# turn newlines into spaces. 17083NL2SP=$lt_lt_NL2SP 17084 17085# An object symbol dumper. 17086OBJDUMP=$lt_OBJDUMP 17087 17088# Method to check whether dependent libraries are shared objects. 17089deplibs_check_method=$lt_deplibs_check_method 17090 17091# Command to use when deplibs_check_method == "file_magic". 17092file_magic_cmd=$lt_file_magic_cmd 17093 17094# The archiver. 17095AR=$lt_AR 17096AR_FLAGS=$lt_AR_FLAGS 17097 17098# A symbol stripping program. 17099STRIP=$lt_STRIP 17100 17101# Commands used to install an old-style archive. 17102RANLIB=$lt_RANLIB 17103old_postinstall_cmds=$lt_old_postinstall_cmds 17104old_postuninstall_cmds=$lt_old_postuninstall_cmds 17105 17106# Whether to use a lock for old archive extraction. 17107lock_old_archive_extraction=$lock_old_archive_extraction 17108 17109# A C compiler. 17110LTCC=$lt_CC 17111 17112# LTCC compiler flags. 17113LTCFLAGS=$lt_CFLAGS 17114 17115# Take the output of nm and produce a listing of raw symbols and C names. 17116global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17117 17118# Transform the output of nm in a proper C declaration. 17119global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17120 17121# Transform the output of nm in a C name address pair. 17122global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17123 17124# Transform the output of nm in a C name address pair when lib prefix is needed. 17125global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17126 17127# The name of the directory that contains temporary libtool files. 17128objdir=$objdir 17129 17130# Used to examine libraries when file_magic_cmd begins with "file". 17131MAGIC_CMD=$MAGIC_CMD 17132 17133# Must we lock files when doing compilation? 17134need_locks=$lt_need_locks 17135 17136# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17137DSYMUTIL=$lt_DSYMUTIL 17138 17139# Tool to change global to local symbols on Mac OS X. 17140NMEDIT=$lt_NMEDIT 17141 17142# Tool to manipulate fat objects and archives on Mac OS X. 17143LIPO=$lt_LIPO 17144 17145# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17146OTOOL=$lt_OTOOL 17147 17148# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17149OTOOL64=$lt_OTOOL64 17150 17151# Old archive suffix (normally "a"). 17152libext=$libext 17153 17154# Shared library suffix (normally ".so"). 17155shrext_cmds=$lt_shrext_cmds 17156 17157# The commands to extract the exported symbol list from a shared archive. 17158extract_expsyms_cmds=$lt_extract_expsyms_cmds 17159 17160# Variables whose values should be saved in libtool wrapper scripts and 17161# restored at link time. 17162variables_saved_for_relink=$lt_variables_saved_for_relink 17163 17164# Do we need the "lib" prefix for modules? 17165need_lib_prefix=$need_lib_prefix 17166 17167# Do we need a version for libraries? 17168need_version=$need_version 17169 17170# Library versioning type. 17171version_type=$version_type 17172 17173# Shared library runtime path variable. 17174runpath_var=$runpath_var 17175 17176# Shared library path variable. 17177shlibpath_var=$shlibpath_var 17178 17179# Is shlibpath searched before the hard-coded library search path? 17180shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17181 17182# Format of library name prefix. 17183libname_spec=$lt_libname_spec 17184 17185# List of archive names. First name is the real one, the rest are links. 17186# The last name is the one that the linker finds with -lNAME 17187library_names_spec=$lt_library_names_spec 17188 17189# The coded name of the library, if different from the real name. 17190soname_spec=$lt_soname_spec 17191 17192# Permission mode override for installation of shared libraries. 17193install_override_mode=$lt_install_override_mode 17194 17195# Command to use after installation of a shared archive. 17196postinstall_cmds=$lt_postinstall_cmds 17197 17198# Command to use after uninstallation of a shared archive. 17199postuninstall_cmds=$lt_postuninstall_cmds 17200 17201# Commands used to finish a libtool library installation in a directory. 17202finish_cmds=$lt_finish_cmds 17203 17204# As "finish_cmds", except a single script fragment to be evaled but 17205# not shown. 17206finish_eval=$lt_finish_eval 17207 17208# Whether we should hardcode library paths into libraries. 17209hardcode_into_libs=$hardcode_into_libs 17210 17211# Compile-time system search path for libraries. 17212sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17213 17214# Run-time system search path for libraries. 17215sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17216 17217# Whether dlopen is supported. 17218dlopen_support=$enable_dlopen 17219 17220# Whether dlopen of programs is supported. 17221dlopen_self=$enable_dlopen_self 17222 17223# Whether dlopen of statically linked programs is supported. 17224dlopen_self_static=$enable_dlopen_self_static 17225 17226# Commands to strip libraries. 17227old_striplib=$lt_old_striplib 17228striplib=$lt_striplib 17229 17230 17231# The linker used to build libraries. 17232LD=$lt_LD 17233 17234# How to create reloadable object files. 17235reload_flag=$lt_reload_flag 17236reload_cmds=$lt_reload_cmds 17237 17238# Commands used to build an old-style archive. 17239old_archive_cmds=$lt_old_archive_cmds 17240 17241# A language specific compiler. 17242CC=$lt_compiler 17243 17244# Is the compiler the GNU compiler? 17245with_gcc=$GCC 17246 17247# Compiler flag to turn off builtin functions. 17248no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17249 17250# How to pass a linker flag through the compiler. 17251wl=$lt_lt_prog_compiler_wl 17252 17253# Additional compiler flags for building library objects. 17254pic_flag=$lt_lt_prog_compiler_pic 17255 17256# Compiler flag to prevent dynamic linking. 17257link_static_flag=$lt_lt_prog_compiler_static 17258 17259# Does compiler simultaneously support -c and -o options? 17260compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17261 17262# Whether or not to add -lc for building shared libraries. 17263build_libtool_need_lc=$archive_cmds_need_lc 17264 17265# Whether or not to disallow shared libs when runtime libs are static. 17266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17267 17268# Compiler flag to allow reflexive dlopens. 17269export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17270 17271# Compiler flag to generate shared objects directly from archives. 17272whole_archive_flag_spec=$lt_whole_archive_flag_spec 17273 17274# Whether the compiler copes with passing no objects directly. 17275compiler_needs_object=$lt_compiler_needs_object 17276 17277# Create an old-style archive from a shared archive. 17278old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17279 17280# Create a temporary old-style archive to link instead of a shared archive. 17281old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17282 17283# Commands used to build a shared archive. 17284archive_cmds=$lt_archive_cmds 17285archive_expsym_cmds=$lt_archive_expsym_cmds 17286 17287# Commands used to build a loadable module if different from building 17288# a shared archive. 17289module_cmds=$lt_module_cmds 17290module_expsym_cmds=$lt_module_expsym_cmds 17291 17292# Whether we are building with GNU ld or not. 17293with_gnu_ld=$lt_with_gnu_ld 17294 17295# Flag that allows shared libraries with undefined symbols to be built. 17296allow_undefined_flag=$lt_allow_undefined_flag 17297 17298# Flag that enforces no undefined symbols. 17299no_undefined_flag=$lt_no_undefined_flag 17300 17301# Flag to hardcode \$libdir into a binary during linking. 17302# This must work even if \$libdir does not exist 17303hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17304 17305# If ld is used when linking, flag to hardcode \$libdir into a binary 17306# during linking. This must work even if \$libdir does not exist. 17307hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17308 17309# Whether we need a single "-rpath" flag with a separated argument. 17310hardcode_libdir_separator=$lt_hardcode_libdir_separator 17311 17312# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17313# DIR into the resulting binary. 17314hardcode_direct=$hardcode_direct 17315 17316# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17317# DIR into the resulting binary and the resulting library dependency is 17318# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17319# library is relocated. 17320hardcode_direct_absolute=$hardcode_direct_absolute 17321 17322# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17323# into the resulting binary. 17324hardcode_minus_L=$hardcode_minus_L 17325 17326# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17327# into the resulting binary. 17328hardcode_shlibpath_var=$hardcode_shlibpath_var 17329 17330# Set to "yes" if building a shared library automatically hardcodes DIR 17331# into the library and all subsequent libraries and executables linked 17332# against it. 17333hardcode_automatic=$hardcode_automatic 17334 17335# Set to yes if linker adds runtime paths of dependent libraries 17336# to runtime path list. 17337inherit_rpath=$inherit_rpath 17338 17339# Whether libtool must link a program against all its dependency libraries. 17340link_all_deplibs=$link_all_deplibs 17341 17342# Fix the shell variable \$srcfile for the compiler. 17343fix_srcfile_path=$lt_fix_srcfile_path 17344 17345# Set to "yes" if exported symbols are required. 17346always_export_symbols=$always_export_symbols 17347 17348# The commands to list exported symbols. 17349export_symbols_cmds=$lt_export_symbols_cmds 17350 17351# Symbols that should not be listed in the preloaded symbols. 17352exclude_expsyms=$lt_exclude_expsyms 17353 17354# Symbols that must always be exported. 17355include_expsyms=$lt_include_expsyms 17356 17357# Commands necessary for linking programs (against libraries) with templates. 17358prelink_cmds=$lt_prelink_cmds 17359 17360# Specify filename containing input files. 17361file_list_spec=$lt_file_list_spec 17362 17363# How to hardcode a shared library path into an executable. 17364hardcode_action=$hardcode_action 17365 17366# ### END LIBTOOL CONFIG 17367 17368_LT_EOF 17369 17370 case $host_os in 17371 aix3*) 17372 cat <<\_LT_EOF >> "$cfgfile" 17373# AIX sometimes has problems with the GCC collect2 program. For some 17374# reason, if we set the COLLECT_NAMES environment variable, the problems 17375# vanish in a puff of smoke. 17376if test "X${COLLECT_NAMES+set}" != Xset; then 17377 COLLECT_NAMES= 17378 export COLLECT_NAMES 17379fi 17380_LT_EOF 17381 ;; 17382 esac 17383 17384 17385ltmain="$ac_aux_dir/ltmain.sh" 17386 17387 17388 # We use sed instead of cat because bash on DJGPP gets confused if 17389 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17390 # text mode, it properly converts lines to CR/LF. This bash problem 17391 # is reportedly fixed, but why not run on old versions too? 17392 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17393 || (rm -f "$cfgfile"; exit 1) 17394 17395 case $xsi_shell in 17396 yes) 17397 cat << \_LT_EOF >> "$cfgfile" 17398 17399# func_dirname file append nondir_replacement 17400# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17401# otherwise set result to NONDIR_REPLACEMENT. 17402func_dirname () 17403{ 17404 case ${1} in 17405 */*) func_dirname_result="${1%/*}${2}" ;; 17406 * ) func_dirname_result="${3}" ;; 17407 esac 17408} 17409 17410# func_basename file 17411func_basename () 17412{ 17413 func_basename_result="${1##*/}" 17414} 17415 17416# func_dirname_and_basename file append nondir_replacement 17417# perform func_basename and func_dirname in a single function 17418# call: 17419# dirname: Compute the dirname of FILE. If nonempty, 17420# add APPEND to the result, otherwise set result 17421# to NONDIR_REPLACEMENT. 17422# value returned in "$func_dirname_result" 17423# basename: Compute filename of FILE. 17424# value retuned in "$func_basename_result" 17425# Implementation must be kept synchronized with func_dirname 17426# and func_basename. For efficiency, we do not delegate to 17427# those functions but instead duplicate the functionality here. 17428func_dirname_and_basename () 17429{ 17430 case ${1} in 17431 */*) func_dirname_result="${1%/*}${2}" ;; 17432 * ) func_dirname_result="${3}" ;; 17433 esac 17434 func_basename_result="${1##*/}" 17435} 17436 17437# func_stripname prefix suffix name 17438# strip PREFIX and SUFFIX off of NAME. 17439# PREFIX and SUFFIX must not contain globbing or regex special 17440# characters, hashes, percent signs, but SUFFIX may contain a leading 17441# dot (in which case that matches only a dot). 17442func_stripname () 17443{ 17444 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17445 # positional parameters, so assign one to ordinary parameter first. 17446 func_stripname_result=${3} 17447 func_stripname_result=${func_stripname_result#"${1}"} 17448 func_stripname_result=${func_stripname_result%"${2}"} 17449} 17450 17451# func_opt_split 17452func_opt_split () 17453{ 17454 func_opt_split_opt=${1%%=*} 17455 func_opt_split_arg=${1#*=} 17456} 17457 17458# func_lo2o object 17459func_lo2o () 17460{ 17461 case ${1} in 17462 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17463 *) func_lo2o_result=${1} ;; 17464 esac 17465} 17466 17467# func_xform libobj-or-source 17468func_xform () 17469{ 17470 func_xform_result=${1%.*}.lo 17471} 17472 17473# func_arith arithmetic-term... 17474func_arith () 17475{ 17476 func_arith_result=$(( $* )) 17477} 17478 17479# func_len string 17480# STRING may not start with a hyphen. 17481func_len () 17482{ 17483 func_len_result=${#1} 17484} 17485 17486_LT_EOF 17487 ;; 17488 *) # Bourne compatible functions. 17489 cat << \_LT_EOF >> "$cfgfile" 17490 17491# func_dirname file append nondir_replacement 17492# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17493# otherwise set result to NONDIR_REPLACEMENT. 17494func_dirname () 17495{ 17496 # Extract subdirectory from the argument. 17497 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17498 if test "X$func_dirname_result" = "X${1}"; then 17499 func_dirname_result="${3}" 17500 else 17501 func_dirname_result="$func_dirname_result${2}" 17502 fi 17503} 17504 17505# func_basename file 17506func_basename () 17507{ 17508 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17509} 17510 17511 17512# func_stripname prefix suffix name 17513# strip PREFIX and SUFFIX off of NAME. 17514# PREFIX and SUFFIX must not contain globbing or regex special 17515# characters, hashes, percent signs, but SUFFIX may contain a leading 17516# dot (in which case that matches only a dot). 17517# func_strip_suffix prefix name 17518func_stripname () 17519{ 17520 case ${2} in 17521 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17522 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17523 esac 17524} 17525 17526# sed scripts: 17527my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17528my_sed_long_arg='1s/^-[^=]*=//' 17529 17530# func_opt_split 17531func_opt_split () 17532{ 17533 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17534 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17535} 17536 17537# func_lo2o object 17538func_lo2o () 17539{ 17540 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17541} 17542 17543# func_xform libobj-or-source 17544func_xform () 17545{ 17546 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17547} 17548 17549# func_arith arithmetic-term... 17550func_arith () 17551{ 17552 func_arith_result=`expr "$@"` 17553} 17554 17555# func_len string 17556# STRING may not start with a hyphen. 17557func_len () 17558{ 17559 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17560} 17561 17562_LT_EOF 17563esac 17564 17565case $lt_shell_append in 17566 yes) 17567 cat << \_LT_EOF >> "$cfgfile" 17568 17569# func_append var value 17570# Append VALUE to the end of shell variable VAR. 17571func_append () 17572{ 17573 eval "$1+=\$2" 17574} 17575_LT_EOF 17576 ;; 17577 *) 17578 cat << \_LT_EOF >> "$cfgfile" 17579 17580# func_append var value 17581# Append VALUE to the end of shell variable VAR. 17582func_append () 17583{ 17584 eval "$1=\$$1\$2" 17585} 17586 17587_LT_EOF 17588 ;; 17589 esac 17590 17591 17592 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17593 || (rm -f "$cfgfile"; exit 1) 17594 17595 mv -f "$cfgfile" "$ofile" || 17596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17597 chmod +x "$ofile" 17598 17599 ;; 17600 "default-1":C) 17601 for ac_file in $CONFIG_FILES; do 17602 # Support "outfile[:infile[:infile...]]" 17603 case "$ac_file" in 17604 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 17605 esac 17606 # PO directories have a Makefile.in generated from Makefile.in.in. 17607 case "$ac_file" in */Makefile.in) 17608 # Adjust a relative srcdir. 17609 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 17610 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 17611 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 17612 # In autoconf-2.13 it is called $ac_given_srcdir. 17613 # In autoconf-2.50 it is called $srcdir. 17614 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 17615 case "$ac_given_srcdir" in 17616 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 17617 /*) top_srcdir="$ac_given_srcdir" ;; 17618 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 17619 esac 17620 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 17621 rm -f "$ac_dir/POTFILES" 17622 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 17623 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 17624 POMAKEFILEDEPS="POTFILES.in" 17625 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 17626 # on $ac_dir but don't depend on user-specified configuration 17627 # parameters. 17628 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 17629 # The LINGUAS file contains the set of available languages. 17630 if test -n "$OBSOLETE_ALL_LINGUAS"; then 17631 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 17632 fi 17633 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 17634 # Hide the ALL_LINGUAS assigment from automake. 17635 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 17636 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 17637 else 17638 # The set of available languages was given in configure.ac. 17639 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 17640 fi 17641 case "$ac_given_srcdir" in 17642 .) srcdirpre= ;; 17643 *) srcdirpre='$(srcdir)/' ;; 17644 esac 17645 POFILES= 17646 GMOFILES= 17647 UPDATEPOFILES= 17648 DUMMYPOFILES= 17649 for lang in $ALL_LINGUAS; do 17650 POFILES="$POFILES $srcdirpre$lang.po" 17651 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 17652 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 17653 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 17654 done 17655 # CATALOGS depends on both $ac_dir and the user's LINGUAS 17656 # environment variable. 17657 INST_LINGUAS= 17658 if test -n "$ALL_LINGUAS"; then 17659 for presentlang in $ALL_LINGUAS; do 17660 useit=no 17661 if test "%UNSET%" != "$LINGUAS"; then 17662 desiredlanguages="$LINGUAS" 17663 else 17664 desiredlanguages="$ALL_LINGUAS" 17665 fi 17666 for desiredlang in $desiredlanguages; do 17667 # Use the presentlang catalog if desiredlang is 17668 # a. equal to presentlang, or 17669 # b. a variant of presentlang (because in this case, 17670 # presentlang can be used as a fallback for messages 17671 # which are not translated in the desiredlang catalog). 17672 case "$desiredlang" in 17673 "$presentlang"*) useit=yes;; 17674 esac 17675 done 17676 if test $useit = yes; then 17677 INST_LINGUAS="$INST_LINGUAS $presentlang" 17678 fi 17679 done 17680 fi 17681 CATALOGS= 17682 if test -n "$INST_LINGUAS"; then 17683 for lang in $INST_LINGUAS; do 17684 CATALOGS="$CATALOGS $lang.gmo" 17685 done 17686 fi 17687 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 17688 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" 17689 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 17690 if test -f "$f"; then 17691 case "$f" in 17692 *.orig | *.bak | *~) ;; 17693 *) cat "$f" >> "$ac_dir/Makefile" ;; 17694 esac 17695 fi 17696 done 17697 fi 17698 ;; 17699 esac 17700 done ;; 17701 17702 esac 17703done # for ac_tag 17704 17705 17706as_fn_exit 0 17707_ACEOF 17708ac_clean_files=$ac_clean_files_save 17709 17710test $ac_write_fail = 0 || 17711 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17712 17713 17714# configure is writing to config.log, and then calls config.status. 17715# config.status does its own redirection, appending to config.log. 17716# Unfortunately, on DOS this fails, as config.log is still kept open 17717# by configure, so config.status won't be able to write to it; its 17718# output is simply discarded. So we exec the FD to /dev/null, 17719# effectively closing config.log, so it can be properly (re)opened and 17720# appended to by config.status. When coming back to configure, we 17721# need to make the FD available again. 17722if test "$no_create" != yes; then 17723 ac_cs_success=: 17724 ac_config_status_args= 17725 test "$silent" = yes && 17726 ac_config_status_args="$ac_config_status_args --quiet" 17727 exec 5>/dev/null 17728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17729 exec 5>>config.log 17730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17731 # would make configure fail if this is the last instruction. 17732 $ac_cs_success || as_fn_exit 1 17733fi 17734if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17736$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17737fi 17738 17739