1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for iperf 3.0.1. 4# 5# Report bugs to <https://github.com/esnet/iperf>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell [email protected] and 278$0: https://github.com/esnet/iperf about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='iperf' 592PACKAGE_TARNAME='iperf' 593PACKAGE_VERSION='3.0.1' 594PACKAGE_STRING='iperf 3.0.1' 595PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638LINUX_FALSE 639LINUX_TRUE 640CPP 641OTOOL64 642OTOOL 643LIPO 644NMEDIT 645DSYMUTIL 646MANIFEST_TOOL 647ac_ct_AR 648AR 649DLLTOOL 650OBJDUMP 651NM 652ac_ct_DUMPBIN 653DUMPBIN 654LD 655FGREP 656EGREP 657GREP 658SED 659LIBTOOL 660LN_S 661RANLIB 662am__fastdepCC_FALSE 663am__fastdepCC_TRUE 664CCDEPMODE 665am__nodep 666AMDEPBACKSLASH 667AMDEP_FALSE 668AMDEP_TRUE 669am__quote 670am__include 671DEPDIR 672OBJEXT 673EXEEXT 674ac_ct_CC 675CPPFLAGS 676LDFLAGS 677CFLAGS 678CC 679host_os 680host_vendor 681host_cpu 682host 683build_os 684build_vendor 685build_cpu 686build 687AM_BACKSLASH 688AM_DEFAULT_VERBOSITY 689AM_DEFAULT_V 690AM_V 691am__untar 692am__tar 693AMTAR 694am__leading_dot 695SET_MAKE 696AWK 697mkdir_p 698MKDIR_P 699INSTALL_STRIP_PROGRAM 700STRIP 701install_sh 702MAKEINFO 703AUTOHEADER 704AUTOMAKE 705AUTOCONF 706ACLOCAL 707VERSION 708PACKAGE 709CYGPATH_W 710am__isrc 711INSTALL_DATA 712INSTALL_SCRIPT 713INSTALL_PROGRAM 714target_alias 715host_alias 716build_alias 717LIBS 718ECHO_T 719ECHO_N 720ECHO_C 721DEFS 722mandir 723localedir 724libdir 725psdir 726pdfdir 727dvidir 728htmldir 729infodir 730docdir 731oldincludedir 732includedir 733localstatedir 734sharedstatedir 735sysconfdir 736datadir 737datarootdir 738libexecdir 739sbindir 740bindir 741program_transform_name 742prefix 743exec_prefix 744PACKAGE_URL 745PACKAGE_BUGREPORT 746PACKAGE_STRING 747PACKAGE_VERSION 748PACKAGE_TARNAME 749PACKAGE_NAME 750PATH_SEPARATOR 751SHELL' 752ac_subst_files='' 753ac_user_opts=' 754enable_option_checking 755enable_silent_rules 756enable_dependency_tracking 757enable_shared 758enable_static 759with_pic 760enable_fast_install 761with_gnu_ld 762with_sysroot 763enable_libtool_lock 764' 765 ac_precious_vars='build_alias 766host_alias 767target_alias 768CC 769CFLAGS 770LDFLAGS 771LIBS 772CPPFLAGS 773CPP' 774 775 776# Initialize some variables set by options. 777ac_init_help= 778ac_init_version=false 779ac_unrecognized_opts= 780ac_unrecognized_sep= 781# The variables have the same names as the options, with 782# dashes changed to underlines. 783cache_file=/dev/null 784exec_prefix=NONE 785no_create= 786no_recursion= 787prefix=NONE 788program_prefix=NONE 789program_suffix=NONE 790program_transform_name=s,x,x, 791silent= 792site= 793srcdir= 794verbose= 795x_includes=NONE 796x_libraries=NONE 797 798# Installation directory options. 799# These are left unexpanded so users can "make install exec_prefix=/foo" 800# and all the variables that are supposed to be based on exec_prefix 801# by default will actually change. 802# Use braces instead of parens because sh, perl, etc. also accept them. 803# (The list follows the same order as the GNU Coding Standards.) 804bindir='${exec_prefix}/bin' 805sbindir='${exec_prefix}/sbin' 806libexecdir='${exec_prefix}/libexec' 807datarootdir='${prefix}/share' 808datadir='${datarootdir}' 809sysconfdir='${prefix}/etc' 810sharedstatedir='${prefix}/com' 811localstatedir='${prefix}/var' 812includedir='${prefix}/include' 813oldincludedir='/usr/include' 814docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 815infodir='${datarootdir}/info' 816htmldir='${docdir}' 817dvidir='${docdir}' 818pdfdir='${docdir}' 819psdir='${docdir}' 820libdir='${exec_prefix}/lib' 821localedir='${datarootdir}/locale' 822mandir='${datarootdir}/man' 823 824ac_prev= 825ac_dashdash= 826for ac_option 827do 828 # If the previous option needs an argument, assign it. 829 if test -n "$ac_prev"; then 830 eval $ac_prev=\$ac_option 831 ac_prev= 832 continue 833 fi 834 835 case $ac_option in 836 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 837 *=) ac_optarg= ;; 838 *) ac_optarg=yes ;; 839 esac 840 841 # Accept the important Cygnus configure options, so we can diagnose typos. 842 843 case $ac_dashdash$ac_option in 844 --) 845 ac_dashdash=yes ;; 846 847 -bindir | --bindir | --bindi | --bind | --bin | --bi) 848 ac_prev=bindir ;; 849 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 850 bindir=$ac_optarg ;; 851 852 -build | --build | --buil | --bui | --bu) 853 ac_prev=build_alias ;; 854 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 855 build_alias=$ac_optarg ;; 856 857 -cache-file | --cache-file | --cache-fil | --cache-fi \ 858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 859 ac_prev=cache_file ;; 860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 862 cache_file=$ac_optarg ;; 863 864 --config-cache | -C) 865 cache_file=config.cache ;; 866 867 -datadir | --datadir | --datadi | --datad) 868 ac_prev=datadir ;; 869 -datadir=* | --datadir=* | --datadi=* | --datad=*) 870 datadir=$ac_optarg ;; 871 872 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 873 | --dataroo | --dataro | --datar) 874 ac_prev=datarootdir ;; 875 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 876 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 877 datarootdir=$ac_optarg ;; 878 879 -disable-* | --disable-*) 880 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 881 # Reject names that are not valid shell variable names. 882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 883 as_fn_error $? "invalid feature name: $ac_useropt" 884 ac_useropt_orig=$ac_useropt 885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 886 case $ac_user_opts in 887 *" 888"enable_$ac_useropt" 889"*) ;; 890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 891 ac_unrecognized_sep=', ';; 892 esac 893 eval enable_$ac_useropt=no ;; 894 895 -docdir | --docdir | --docdi | --doc | --do) 896 ac_prev=docdir ;; 897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 898 docdir=$ac_optarg ;; 899 900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 901 ac_prev=dvidir ;; 902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 903 dvidir=$ac_optarg ;; 904 905 -enable-* | --enable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=\$ac_optarg ;; 920 921 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 922 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 923 | --exec | --exe | --ex) 924 ac_prev=exec_prefix ;; 925 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 926 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 927 | --exec=* | --exe=* | --ex=*) 928 exec_prefix=$ac_optarg ;; 929 930 -gas | --gas | --ga | --g) 931 # Obsolete; use --with-gas. 932 with_gas=yes ;; 933 934 -help | --help | --hel | --he | -h) 935 ac_init_help=long ;; 936 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 937 ac_init_help=recursive ;; 938 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 939 ac_init_help=short ;; 940 941 -host | --host | --hos | --ho) 942 ac_prev=host_alias ;; 943 -host=* | --host=* | --hos=* | --ho=*) 944 host_alias=$ac_optarg ;; 945 946 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 947 ac_prev=htmldir ;; 948 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 949 | --ht=*) 950 htmldir=$ac_optarg ;; 951 952 -includedir | --includedir | --includedi | --included | --include \ 953 | --includ | --inclu | --incl | --inc) 954 ac_prev=includedir ;; 955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 956 | --includ=* | --inclu=* | --incl=* | --inc=*) 957 includedir=$ac_optarg ;; 958 959 -infodir | --infodir | --infodi | --infod | --info | --inf) 960 ac_prev=infodir ;; 961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 962 infodir=$ac_optarg ;; 963 964 -libdir | --libdir | --libdi | --libd) 965 ac_prev=libdir ;; 966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 967 libdir=$ac_optarg ;; 968 969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 970 | --libexe | --libex | --libe) 971 ac_prev=libexecdir ;; 972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 973 | --libexe=* | --libex=* | --libe=*) 974 libexecdir=$ac_optarg ;; 975 976 -localedir | --localedir | --localedi | --localed | --locale) 977 ac_prev=localedir ;; 978 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 979 localedir=$ac_optarg ;; 980 981 -localstatedir | --localstatedir | --localstatedi | --localstated \ 982 | --localstate | --localstat | --localsta | --localst | --locals) 983 ac_prev=localstatedir ;; 984 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 985 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 986 localstatedir=$ac_optarg ;; 987 988 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 989 ac_prev=mandir ;; 990 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 991 mandir=$ac_optarg ;; 992 993 -nfp | --nfp | --nf) 994 # Obsolete; use --without-fp. 995 with_fp=no ;; 996 997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 998 | --no-cr | --no-c | -n) 999 no_create=yes ;; 1000 1001 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1002 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1003 no_recursion=yes ;; 1004 1005 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1006 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1007 | --oldin | --oldi | --old | --ol | --o) 1008 ac_prev=oldincludedir ;; 1009 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1010 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1011 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1012 oldincludedir=$ac_optarg ;; 1013 1014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1015 ac_prev=prefix ;; 1016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1017 prefix=$ac_optarg ;; 1018 1019 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1020 | --program-pre | --program-pr | --program-p) 1021 ac_prev=program_prefix ;; 1022 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1023 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1024 program_prefix=$ac_optarg ;; 1025 1026 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1027 | --program-suf | --program-su | --program-s) 1028 ac_prev=program_suffix ;; 1029 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1030 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1031 program_suffix=$ac_optarg ;; 1032 1033 -program-transform-name | --program-transform-name \ 1034 | --program-transform-nam | --program-transform-na \ 1035 | --program-transform-n | --program-transform- \ 1036 | --program-transform | --program-transfor \ 1037 | --program-transfo | --program-transf \ 1038 | --program-trans | --program-tran \ 1039 | --progr-tra | --program-tr | --program-t) 1040 ac_prev=program_transform_name ;; 1041 -program-transform-name=* | --program-transform-name=* \ 1042 | --program-transform-nam=* | --program-transform-na=* \ 1043 | --program-transform-n=* | --program-transform-=* \ 1044 | --program-transform=* | --program-transfor=* \ 1045 | --program-transfo=* | --program-transf=* \ 1046 | --program-trans=* | --program-tran=* \ 1047 | --progr-tra=* | --program-tr=* | --program-t=*) 1048 program_transform_name=$ac_optarg ;; 1049 1050 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1051 ac_prev=pdfdir ;; 1052 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1053 pdfdir=$ac_optarg ;; 1054 1055 -psdir | --psdir | --psdi | --psd | --ps) 1056 ac_prev=psdir ;; 1057 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1058 psdir=$ac_optarg ;; 1059 1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1061 | -silent | --silent | --silen | --sile | --sil) 1062 silent=yes ;; 1063 1064 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1065 ac_prev=sbindir ;; 1066 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1067 | --sbi=* | --sb=*) 1068 sbindir=$ac_optarg ;; 1069 1070 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1071 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1072 | --sharedst | --shareds | --shared | --share | --shar \ 1073 | --sha | --sh) 1074 ac_prev=sharedstatedir ;; 1075 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1076 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1077 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1078 | --sha=* | --sh=*) 1079 sharedstatedir=$ac_optarg ;; 1080 1081 -site | --site | --sit) 1082 ac_prev=site ;; 1083 -site=* | --site=* | --sit=*) 1084 site=$ac_optarg ;; 1085 1086 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1087 ac_prev=srcdir ;; 1088 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1089 srcdir=$ac_optarg ;; 1090 1091 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1092 | --syscon | --sysco | --sysc | --sys | --sy) 1093 ac_prev=sysconfdir ;; 1094 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1095 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1096 sysconfdir=$ac_optarg ;; 1097 1098 -target | --target | --targe | --targ | --tar | --ta | --t) 1099 ac_prev=target_alias ;; 1100 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1101 target_alias=$ac_optarg ;; 1102 1103 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1104 verbose=yes ;; 1105 1106 -version | --version | --versio | --versi | --vers | -V) 1107 ac_init_version=: ;; 1108 1109 -with-* | --with-*) 1110 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1111 # Reject names that are not valid shell variable names. 1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1113 as_fn_error $? "invalid package name: $ac_useropt" 1114 ac_useropt_orig=$ac_useropt 1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1116 case $ac_user_opts in 1117 *" 1118"with_$ac_useropt" 1119"*) ;; 1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1121 ac_unrecognized_sep=', ';; 1122 esac 1123 eval with_$ac_useropt=\$ac_optarg ;; 1124 1125 -without-* | --without-*) 1126 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1127 # Reject names that are not valid shell variable names. 1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1129 as_fn_error $? "invalid package name: $ac_useropt" 1130 ac_useropt_orig=$ac_useropt 1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1132 case $ac_user_opts in 1133 *" 1134"with_$ac_useropt" 1135"*) ;; 1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1137 ac_unrecognized_sep=', ';; 1138 esac 1139 eval with_$ac_useropt=no ;; 1140 1141 --x) 1142 # Obsolete; use --with-x. 1143 with_x=yes ;; 1144 1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1146 | --x-incl | --x-inc | --x-in | --x-i) 1147 ac_prev=x_includes ;; 1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1150 x_includes=$ac_optarg ;; 1151 1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1154 ac_prev=x_libraries ;; 1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1157 x_libraries=$ac_optarg ;; 1158 1159 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1160Try \`$0 --help' for more information" 1161 ;; 1162 1163 *=*) 1164 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1165 # Reject names that are not valid shell variable names. 1166 case $ac_envvar in #( 1167 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1168 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1169 esac 1170 eval $ac_envvar=\$ac_optarg 1171 export $ac_envvar ;; 1172 1173 *) 1174 # FIXME: should be removed in autoconf 3.0. 1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1178 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1179 ;; 1180 1181 esac 1182done 1183 1184if test -n "$ac_prev"; then 1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1186 as_fn_error $? "missing argument to $ac_option" 1187fi 1188 1189if test -n "$ac_unrecognized_opts"; then 1190 case $enable_option_checking in 1191 no) ;; 1192 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1193 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1194 esac 1195fi 1196 1197# Check all directory arguments for consistency. 1198for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1199 datadir sysconfdir sharedstatedir localstatedir includedir \ 1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1201 libdir localedir mandir 1202do 1203 eval ac_val=\$$ac_var 1204 # Remove trailing slashes. 1205 case $ac_val in 1206 */ ) 1207 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1208 eval $ac_var=\$ac_val;; 1209 esac 1210 # Be sure to have absolute directory names. 1211 case $ac_val in 1212 [\\/$]* | ?:[\\/]* ) continue;; 1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1214 esac 1215 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1216done 1217 1218# There might be people who depend on the old broken behavior: `$host' 1219# used to hold the argument of --host etc. 1220# FIXME: To remove some day. 1221build=$build_alias 1222host=$host_alias 1223target=$target_alias 1224 1225# FIXME: To remove some day. 1226if test "x$host_alias" != x; then 1227 if test "x$build_alias" = x; then 1228 cross_compiling=maybe 1229 elif test "x$build_alias" != "x$host_alias"; then 1230 cross_compiling=yes 1231 fi 1232fi 1233 1234ac_tool_prefix= 1235test -n "$host_alias" && ac_tool_prefix=$host_alias- 1236 1237test "$silent" = yes && exec 6>/dev/null 1238 1239 1240ac_pwd=`pwd` && test -n "$ac_pwd" && 1241ac_ls_di=`ls -di .` && 1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243 as_fn_error $? "working directory cannot be determined" 1244test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1245 as_fn_error $? "pwd does not report name of working directory" 1246 1247 1248# Find the source files, if location was not specified. 1249if test -z "$srcdir"; then 1250 ac_srcdir_defaulted=yes 1251 # Try the directory containing this script, then the parent directory. 1252 ac_confdir=`$as_dirname -- "$as_myself" || 1253$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1254 X"$as_myself" : 'X\(//\)[^/]' \| \ 1255 X"$as_myself" : 'X\(//\)$' \| \ 1256 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1257$as_echo X"$as_myself" | 1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)[^/].*/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\).*/{ 1271 s//\1/ 1272 q 1273 } 1274 s/.*/./; q'` 1275 srcdir=$ac_confdir 1276 if test ! -r "$srcdir/$ac_unique_file"; then 1277 srcdir=.. 1278 fi 1279else 1280 ac_srcdir_defaulted=no 1281fi 1282if test ! -r "$srcdir/$ac_unique_file"; then 1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1284 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1285fi 1286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1287ac_abs_confdir=`( 1288 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1289 pwd)` 1290# When building in place, set srcdir=. 1291if test "$ac_abs_confdir" = "$ac_pwd"; then 1292 srcdir=. 1293fi 1294# Remove unnecessary trailing slashes from srcdir. 1295# Double slashes in file names in object file debugging info 1296# mess up M-x gdb in Emacs. 1297case $srcdir in 1298*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1299esac 1300for ac_var in $ac_precious_vars; do 1301 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_env_${ac_var}_value=\$${ac_var} 1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1304 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1305done 1306 1307# 1308# Report the --help message. 1309# 1310if test "$ac_init_help" = "long"; then 1311 # Omit some internal or obsolete options to make the list less imposing. 1312 # This message is too long to be a string in the A/UX 3.1 sh. 1313 cat <<_ACEOF 1314\`configure' configures iperf 3.0.1 to adapt to many kinds of systems. 1315 1316Usage: $0 [OPTION]... [VAR=VALUE]... 1317 1318To assign environment variables (e.g., CC, CFLAGS...), specify them as 1319VAR=VALUE. See below for descriptions of some of the useful variables. 1320 1321Defaults for the options are specified in brackets. 1322 1323Configuration: 1324 -h, --help display this help and exit 1325 --help=short display options specific to this package 1326 --help=recursive display the short help of all the included packages 1327 -V, --version display version information and exit 1328 -q, --quiet, --silent do not print \`checking ...' messages 1329 --cache-file=FILE cache test results in FILE [disabled] 1330 -C, --config-cache alias for \`--cache-file=config.cache' 1331 -n, --no-create do not create output files 1332 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1333 1334Installation directories: 1335 --prefix=PREFIX install architecture-independent files in PREFIX 1336 [$ac_default_prefix] 1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1338 [PREFIX] 1339 1340By default, \`make install' will install all the files in 1341\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1342an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1343for instance \`--prefix=\$HOME'. 1344 1345For better control, use the options below. 1346 1347Fine tuning of the installation directories: 1348 --bindir=DIR user executables [EPREFIX/bin] 1349 --sbindir=DIR system admin executables [EPREFIX/sbin] 1350 --libexecdir=DIR program executables [EPREFIX/libexec] 1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1354 --libdir=DIR object code libraries [EPREFIX/lib] 1355 --includedir=DIR C header files [PREFIX/include] 1356 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1359 --infodir=DIR info documentation [DATAROOTDIR/info] 1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1361 --mandir=DIR man documentation [DATAROOTDIR/man] 1362 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1363 --htmldir=DIR html documentation [DOCDIR] 1364 --dvidir=DIR dvi documentation [DOCDIR] 1365 --pdfdir=DIR pdf documentation [DOCDIR] 1366 --psdir=DIR ps documentation [DOCDIR] 1367_ACEOF 1368 1369 cat <<\_ACEOF 1370 1371Program names: 1372 --program-prefix=PREFIX prepend PREFIX to installed program names 1373 --program-suffix=SUFFIX append SUFFIX to installed program names 1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1375 1376System types: 1377 --build=BUILD configure for building on BUILD [guessed] 1378 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of iperf 3.0.1:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-option-checking ignore unrecognized --enable/--with options 1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392 --enable-silent-rules less verbose build output (undo: "make V=1") 1393 --disable-silent-rules verbose build output (undo: "make V=0") 1394 --enable-dependency-tracking 1395 do not reject slow dependency extractors 1396 --disable-dependency-tracking 1397 speeds up one-time build 1398 --enable-shared[=PKGS] build shared libraries [default=yes] 1399 --enable-static[=PKGS] build static libraries [default=yes] 1400 --enable-fast-install[=PKGS] 1401 optimize for fast installation [default=yes] 1402 --disable-libtool-lock avoid locking (might break parallel builds) 1403 1404Optional Packages: 1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1407 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1408 both] 1409 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1410 --with-sysroot=DIR Search for dependent libraries within DIR 1411 (or the compiler's sysroot if not specified). 1412 1413Some influential environment variables: 1414 CC C compiler command 1415 CFLAGS C compiler flags 1416 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1417 nonstandard directory <lib dir> 1418 LIBS libraries to pass to the linker, e.g. -l<library> 1419 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1420 you have headers in a nonstandard directory <include dir> 1421 CPP C preprocessor 1422 1423Use these variables to override the choices made by `configure' or to help 1424it to find libraries and programs with nonstandard names/locations. 1425 1426Report bugs to <https://github.com/esnet/iperf>. 1427_ACEOF 1428ac_status=$? 1429fi 1430 1431if test "$ac_init_help" = "recursive"; then 1432 # If there are subdirs, report their specific --help. 1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1434 test -d "$ac_dir" || 1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1436 continue 1437 ac_builddir=. 1438 1439case "$ac_dir" in 1440.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441*) 1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1443 # A ".." for each directory in $ac_dir_suffix. 1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1445 case $ac_top_builddir_sub in 1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1448 esac ;; 1449esac 1450ac_abs_top_builddir=$ac_pwd 1451ac_abs_builddir=$ac_pwd$ac_dir_suffix 1452# for backward compatibility: 1453ac_top_builddir=$ac_top_build_prefix 1454 1455case $srcdir in 1456 .) # We are building in place. 1457 ac_srcdir=. 1458 ac_top_srcdir=$ac_top_builddir_sub 1459 ac_abs_top_srcdir=$ac_pwd ;; 1460 [\\/]* | ?:[\\/]* ) # Absolute name. 1461 ac_srcdir=$srcdir$ac_dir_suffix; 1462 ac_top_srcdir=$srcdir 1463 ac_abs_top_srcdir=$srcdir ;; 1464 *) # Relative name. 1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1466 ac_top_srcdir=$ac_top_build_prefix$srcdir 1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1468esac 1469ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1470 1471 cd "$ac_dir" || { ac_status=$?; continue; } 1472 # Check for guested configure. 1473 if test -f "$ac_srcdir/configure.gnu"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1476 elif test -f "$ac_srcdir/configure"; then 1477 echo && 1478 $SHELL "$ac_srcdir/configure" --help=recursive 1479 else 1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1481 fi || ac_status=$? 1482 cd "$ac_pwd" || { ac_status=$?; break; } 1483 done 1484fi 1485 1486test -n "$ac_init_help" && exit $ac_status 1487if $ac_init_version; then 1488 cat <<\_ACEOF 1489iperf configure 3.0.1 1490generated by GNU Autoconf 2.69 1491 1492Copyright (C) 2012 Free Software Foundation, Inc. 1493This configure script is free software; the Free Software Foundation 1494gives unlimited permission to copy, distribute and modify it. 1495_ACEOF 1496 exit 1497fi 1498 1499## ------------------------ ## 1500## Autoconf initialization. ## 1501## ------------------------ ## 1502 1503# ac_fn_c_try_compile LINENO 1504# -------------------------- 1505# Try to compile conftest.$ac_ext, and return whether this succeeded. 1506ac_fn_c_try_compile () 1507{ 1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1509 rm -f conftest.$ac_objext 1510 if { { ac_try="$ac_compile" 1511case "(($ac_try" in 1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1513 *) ac_try_echo=$ac_try;; 1514esac 1515eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1516$as_echo "$ac_try_echo"; } >&5 1517 (eval "$ac_compile") 2>conftest.err 1518 ac_status=$? 1519 if test -s conftest.err; then 1520 grep -v '^ *+' conftest.err >conftest.er1 1521 cat conftest.er1 >&5 1522 mv -f conftest.er1 conftest.err 1523 fi 1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1525 test $ac_status = 0; } && { 1526 test -z "$ac_c_werror_flag" || 1527 test ! -s conftest.err 1528 } && test -s conftest.$ac_objext; then : 1529 ac_retval=0 1530else 1531 $as_echo "$as_me: failed program was:" >&5 1532sed 's/^/| /' conftest.$ac_ext >&5 1533 1534 ac_retval=1 1535fi 1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1537 as_fn_set_status $ac_retval 1538 1539} # ac_fn_c_try_compile 1540 1541# ac_fn_c_try_link LINENO 1542# ----------------------- 1543# Try to link conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_link () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest$ac_exeext 1548 if { { ac_try="$ac_link" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_link") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest$ac_exeext && { 1567 test "$cross_compiling" = yes || 1568 test -x conftest$ac_exeext 1569 }; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1578 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1579 # interfere with the next link command; also delete a directory that is 1580 # left behind by Apple's compiler. We do this before executing the actions. 1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1583 as_fn_set_status $ac_retval 1584 1585} # ac_fn_c_try_link 1586 1587# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1588# ------------------------------------------------------- 1589# Tests whether HEADER exists and can be compiled using the include files in 1590# INCLUDES, setting the cache variable VAR accordingly. 1591ac_fn_c_check_header_compile () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1595$as_echo_n "checking for $2... " >&6; } 1596if eval \${$3+:} false; then : 1597 $as_echo_n "(cached) " >&6 1598else 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600/* end confdefs.h. */ 1601$4 1602#include <$2> 1603_ACEOF 1604if ac_fn_c_try_compile "$LINENO"; then : 1605 eval "$3=yes" 1606else 1607 eval "$3=no" 1608fi 1609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1610fi 1611eval ac_res=\$$3 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1613$as_echo "$ac_res" >&6; } 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 1616} # ac_fn_c_check_header_compile 1617 1618# ac_fn_c_try_cpp LINENO 1619# ---------------------- 1620# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1621ac_fn_c_try_cpp () 1622{ 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 if { { ac_try="$ac_cpp conftest.$ac_ext" 1625case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628esac 1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630$as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } > conftest.i && { 1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 }; then : 1643 ac_retval=0 1644else 1645 $as_echo "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_cpp 1654 1655# ac_fn_c_try_run LINENO 1656# ---------------------- 1657# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1658# that executables *can* be run. 1659ac_fn_c_try_run () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_link" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_link") 2>&5 1670 ac_status=$? 1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1673 { { case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678$as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_try") 2>&5 1680 ac_status=$? 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; }; }; then : 1683 ac_retval=0 1684else 1685 $as_echo "$as_me: program exited with status $ac_status" >&5 1686 $as_echo "$as_me: failed program was:" >&5 1687sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=$ac_status 1690fi 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_run 1696 1697# ac_fn_c_check_func LINENO FUNC VAR 1698# ---------------------------------- 1699# Tests whether FUNC exists, setting the cache variable VAR accordingly 1700ac_fn_c_check_func () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1704$as_echo_n "checking for $2... " >&6; } 1705if eval \${$3+:} false; then : 1706 $as_echo_n "(cached) " >&6 1707else 1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1709/* end confdefs.h. */ 1710/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1712#define $2 innocuous_$2 1713 1714/* System header to define __stub macros and hopefully few prototypes, 1715 which can conflict with char $2 (); below. 1716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1717 <limits.h> exists even on freestanding compilers. */ 1718 1719#ifdef __STDC__ 1720# include <limits.h> 1721#else 1722# include <assert.h> 1723#endif 1724 1725#undef $2 1726 1727/* Override any GCC internal prototype to avoid an error. 1728 Use char because int might match the return type of a GCC 1729 builtin and then its argument prototype would still apply. */ 1730#ifdef __cplusplus 1731extern "C" 1732#endif 1733char $2 (); 1734/* The GNU C library defines this for functions which it implements 1735 to always fail with ENOSYS. Some functions are actually named 1736 something starting with __ and the normal name is an alias. */ 1737#if defined __stub_$2 || defined __stub___$2 1738choke me 1739#endif 1740 1741int 1742main () 1743{ 1744return $2 (); 1745 ; 1746 return 0; 1747} 1748_ACEOF 1749if ac_fn_c_try_link "$LINENO"; then : 1750 eval "$3=yes" 1751else 1752 eval "$3=no" 1753fi 1754rm -f core conftest.err conftest.$ac_objext \ 1755 conftest$ac_exeext conftest.$ac_ext 1756fi 1757eval ac_res=\$$3 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759$as_echo "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762} # ac_fn_c_check_func 1763cat >config.log <<_ACEOF 1764This file contains any messages produced by compilers while 1765running configure, to aid debugging if configure makes a mistake. 1766 1767It was created by iperf $as_me 3.0.1, which was 1768generated by GNU Autoconf 2.69. Invocation command line was 1769 1770 $ $0 $@ 1771 1772_ACEOF 1773exec 5>>config.log 1774{ 1775cat <<_ASUNAME 1776## --------- ## 1777## Platform. ## 1778## --------- ## 1779 1780hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1781uname -m = `(uname -m) 2>/dev/null || echo unknown` 1782uname -r = `(uname -r) 2>/dev/null || echo unknown` 1783uname -s = `(uname -s) 2>/dev/null || echo unknown` 1784uname -v = `(uname -v) 2>/dev/null || echo unknown` 1785 1786/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1787/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1788 1789/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1790/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1791/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1792/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1793/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1794/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1795/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1796 1797_ASUNAME 1798 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 $as_echo "PATH: $as_dir" 1805 done 1806IFS=$as_save_IFS 1807 1808} >&5 1809 1810cat >&5 <<_ACEOF 1811 1812 1813## ----------- ## 1814## Core tests. ## 1815## ----------- ## 1816 1817_ACEOF 1818 1819 1820# Keep a trace of the command line. 1821# Strip out --no-create and --no-recursion so they do not pile up. 1822# Strip out --silent because we don't want to record it for future runs. 1823# Also quote any args containing shell meta-characters. 1824# Make two passes to allow for proper duplicate-argument suppression. 1825ac_configure_args= 1826ac_configure_args0= 1827ac_configure_args1= 1828ac_must_keep_next=false 1829for ac_pass in 1 2 1830do 1831 for ac_arg 1832 do 1833 case $ac_arg in 1834 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1836 | -silent | --silent | --silen | --sile | --sil) 1837 continue ;; 1838 *\'*) 1839 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1840 esac 1841 case $ac_pass in 1842 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1843 2) 1844 as_fn_append ac_configure_args1 " '$ac_arg'" 1845 if test $ac_must_keep_next = true; then 1846 ac_must_keep_next=false # Got value, back to normal. 1847 else 1848 case $ac_arg in 1849 *=* | --config-cache | -C | -disable-* | --disable-* \ 1850 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1851 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1852 | -with-* | --with-* | -without-* | --without-* | --x) 1853 case "$ac_configure_args0 " in 1854 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1855 esac 1856 ;; 1857 -* ) ac_must_keep_next=true ;; 1858 esac 1859 fi 1860 as_fn_append ac_configure_args " '$ac_arg'" 1861 ;; 1862 esac 1863 done 1864done 1865{ ac_configure_args0=; unset ac_configure_args0;} 1866{ ac_configure_args1=; unset ac_configure_args1;} 1867 1868# When interrupted or exit'd, cleanup temporary files, and complete 1869# config.log. We remove comments because anyway the quotes in there 1870# would cause problems or look ugly. 1871# WARNING: Use '\'' to represent an apostrophe within the trap. 1872# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1873trap 'exit_status=$? 1874 # Save into config.log some information that might help in debugging. 1875 { 1876 echo 1877 1878 $as_echo "## ---------------- ## 1879## Cache variables. ## 1880## ---------------- ##" 1881 echo 1882 # The following way of writing the cache mishandles newlines in values, 1883( 1884 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1885 eval ac_val=\$$ac_var 1886 case $ac_val in #( 1887 *${as_nl}*) 1888 case $ac_var in #( 1889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1890$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1891 esac 1892 case $ac_var in #( 1893 _ | IFS | as_nl) ;; #( 1894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1895 *) { eval $ac_var=; unset $ac_var;} ;; 1896 esac ;; 1897 esac 1898 done 1899 (set) 2>&1 | 1900 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1901 *${as_nl}ac_space=\ *) 1902 sed -n \ 1903 "s/'\''/'\''\\\\'\'''\''/g; 1904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1905 ;; #( 1906 *) 1907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1908 ;; 1909 esac | 1910 sort 1911) 1912 echo 1913 1914 $as_echo "## ----------------- ## 1915## Output variables. ## 1916## ----------------- ##" 1917 echo 1918 for ac_var in $ac_subst_vars 1919 do 1920 eval ac_val=\$$ac_var 1921 case $ac_val in 1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1923 esac 1924 $as_echo "$ac_var='\''$ac_val'\''" 1925 done | sort 1926 echo 1927 1928 if test -n "$ac_subst_files"; then 1929 $as_echo "## ------------------- ## 1930## File substitutions. ## 1931## ------------------- ##" 1932 echo 1933 for ac_var in $ac_subst_files 1934 do 1935 eval ac_val=\$$ac_var 1936 case $ac_val in 1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1938 esac 1939 $as_echo "$ac_var='\''$ac_val'\''" 1940 done | sort 1941 echo 1942 fi 1943 1944 if test -s confdefs.h; then 1945 $as_echo "## ----------- ## 1946## confdefs.h. ## 1947## ----------- ##" 1948 echo 1949 cat confdefs.h 1950 echo 1951 fi 1952 test "$ac_signal" != 0 && 1953 $as_echo "$as_me: caught signal $ac_signal" 1954 $as_echo "$as_me: exit $exit_status" 1955 } >&5 1956 rm -f core *.core core.conftest.* && 1957 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1958 exit $exit_status 1959' 0 1960for ac_signal in 1 2 13 15; do 1961 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1962done 1963ac_signal=0 1964 1965# confdefs.h avoids OS command line length limits that DEFS can exceed. 1966rm -f -r conftest* confdefs.h 1967 1968$as_echo "/* confdefs.h */" > confdefs.h 1969 1970# Predefined preprocessor variables. 1971 1972cat >>confdefs.h <<_ACEOF 1973#define PACKAGE_NAME "$PACKAGE_NAME" 1974_ACEOF 1975 1976cat >>confdefs.h <<_ACEOF 1977#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1978_ACEOF 1979 1980cat >>confdefs.h <<_ACEOF 1981#define PACKAGE_VERSION "$PACKAGE_VERSION" 1982_ACEOF 1983 1984cat >>confdefs.h <<_ACEOF 1985#define PACKAGE_STRING "$PACKAGE_STRING" 1986_ACEOF 1987 1988cat >>confdefs.h <<_ACEOF 1989#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1990_ACEOF 1991 1992cat >>confdefs.h <<_ACEOF 1993#define PACKAGE_URL "$PACKAGE_URL" 1994_ACEOF 1995 1996 1997# Let the site file select an alternate cache file if it wants to. 1998# Prefer an explicitly selected file to automatically selected ones. 1999ac_site_file1=NONE 2000ac_site_file2=NONE 2001if test -n "$CONFIG_SITE"; then 2002 # We do not want a PATH search for config.site. 2003 case $CONFIG_SITE in #(( 2004 -*) ac_site_file1=./$CONFIG_SITE;; 2005 */*) ac_site_file1=$CONFIG_SITE;; 2006 *) ac_site_file1=./$CONFIG_SITE;; 2007 esac 2008elif test "x$prefix" != xNONE; then 2009 ac_site_file1=$prefix/share/config.site 2010 ac_site_file2=$prefix/etc/config.site 2011else 2012 ac_site_file1=$ac_default_prefix/share/config.site 2013 ac_site_file2=$ac_default_prefix/etc/config.site 2014fi 2015for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2016do 2017 test "x$ac_site_file" = xNONE && continue 2018 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2020$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2021 sed 's/^/| /' "$ac_site_file" >&5 2022 . "$ac_site_file" \ 2023 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2025as_fn_error $? "failed to load site script $ac_site_file 2026See \`config.log' for more details" "$LINENO" 5; } 2027 fi 2028done 2029 2030if test -r "$cache_file"; then 2031 # Some versions of bash will fail to source /dev/null (special files 2032 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2033 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2035$as_echo "$as_me: loading cache $cache_file" >&6;} 2036 case $cache_file in 2037 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2038 *) . "./$cache_file";; 2039 esac 2040 fi 2041else 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2043$as_echo "$as_me: creating cache $cache_file" >&6;} 2044 >$cache_file 2045fi 2046 2047# Check that the precious variables saved in the cache have kept the same 2048# value. 2049ac_cache_corrupted=false 2050for ac_var in $ac_precious_vars; do 2051 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2052 eval ac_new_set=\$ac_env_${ac_var}_set 2053 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2054 eval ac_new_val=\$ac_env_${ac_var}_value 2055 case $ac_old_set,$ac_new_set in 2056 set,) 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2059 ac_cache_corrupted=: ;; 2060 ,set) 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2063 ac_cache_corrupted=: ;; 2064 ,);; 2065 *) 2066 if test "x$ac_old_val" != "x$ac_new_val"; then 2067 # differences in whitespace do not lead to failure. 2068 ac_old_val_w=`echo x $ac_old_val` 2069 ac_new_val_w=`echo x $ac_new_val` 2070 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2073 ac_cache_corrupted=: 2074 else 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2077 eval $ac_var=\$ac_old_val 2078 fi 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2080$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2082$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2083 fi;; 2084 esac 2085 # Pass precious variables to config.status. 2086 if test "$ac_new_set" = set; then 2087 case $ac_new_val in 2088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2089 *) ac_arg=$ac_var=$ac_new_val ;; 2090 esac 2091 case " $ac_configure_args " in 2092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2093 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2094 esac 2095 fi 2096done 2097if $ac_cache_corrupted; then 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2102 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2103fi 2104## -------------------- ## 2105## Main body of script. ## 2106## -------------------- ## 2107 2108ac_ext=c 2109ac_cpp='$CPP $CPPFLAGS' 2110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2112ac_compiler_gnu=$ac_cv_c_compiler_gnu 2113 2114 2115 2116# Specify where the auxiliary files created by configure should go. The config 2117# directory is picked so that they don't clutter up more useful directories. 2118ac_aux_dir= 2119for ac_dir in config "$srcdir"/config; do 2120 if test -f "$ac_dir/install-sh"; then 2121 ac_aux_dir=$ac_dir 2122 ac_install_sh="$ac_aux_dir/install-sh -c" 2123 break 2124 elif test -f "$ac_dir/install.sh"; then 2125 ac_aux_dir=$ac_dir 2126 ac_install_sh="$ac_aux_dir/install.sh -c" 2127 break 2128 elif test -f "$ac_dir/shtool"; then 2129 ac_aux_dir=$ac_dir 2130 ac_install_sh="$ac_aux_dir/shtool install -c" 2131 break 2132 fi 2133done 2134if test -z "$ac_aux_dir"; then 2135 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2136fi 2137 2138# These three variables are undocumented and unsupported, 2139# and are intended to be withdrawn in a future Autoconf release. 2140# They can cause serious problems if a builder's source tree is in a directory 2141# whose full name contains unusual characters. 2142ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2143ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2144ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2145 2146 2147 2148 2149# Initialize the automake system 2150am__api_version='1.14' 2151 2152# Find a good install program. We prefer a C program (faster), 2153# so one script is as good as another. But avoid the broken or 2154# incompatible versions: 2155# SysV /etc/install, /usr/sbin/install 2156# SunOS /usr/etc/install 2157# IRIX /sbin/install 2158# AIX /bin/install 2159# AmigaOS /C/install, which installs bootblocks on floppy discs 2160# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2161# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2162# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2163# OS/2's system install, which has a completely different semantic 2164# ./install, which can be erroneously created by make from ./install.sh. 2165# Reject install programs that cannot install multiple files. 2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2167$as_echo_n "checking for a BSD-compatible install... " >&6; } 2168if test -z "$INSTALL"; then 2169if ${ac_cv_path_install+:} false; then : 2170 $as_echo_n "(cached) " >&6 2171else 2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2173for as_dir in $PATH 2174do 2175 IFS=$as_save_IFS 2176 test -z "$as_dir" && as_dir=. 2177 # Account for people who put trailing slashes in PATH elements. 2178case $as_dir/ in #(( 2179 ./ | .// | /[cC]/* | \ 2180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2181 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2182 /usr/ucb/* ) ;; 2183 *) 2184 # OSF1 and SCO ODT 3.0 have their own names for install. 2185 # Don't use installbsd from OSF since it installs stuff as root 2186 # by default. 2187 for ac_prog in ginstall scoinst install; do 2188 for ac_exec_ext in '' $ac_executable_extensions; do 2189 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2190 if test $ac_prog = install && 2191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2192 # AIX install. It has an incompatible calling convention. 2193 : 2194 elif test $ac_prog = install && 2195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2196 # program-specific install script used by HP pwplus--don't use. 2197 : 2198 else 2199 rm -rf conftest.one conftest.two conftest.dir 2200 echo one > conftest.one 2201 echo two > conftest.two 2202 mkdir conftest.dir 2203 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2204 test -s conftest.one && test -s conftest.two && 2205 test -s conftest.dir/conftest.one && 2206 test -s conftest.dir/conftest.two 2207 then 2208 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2209 break 3 2210 fi 2211 fi 2212 fi 2213 done 2214 done 2215 ;; 2216esac 2217 2218 done 2219IFS=$as_save_IFS 2220 2221rm -rf conftest.one conftest.two conftest.dir 2222 2223fi 2224 if test "${ac_cv_path_install+set}" = set; then 2225 INSTALL=$ac_cv_path_install 2226 else 2227 # As a last resort, use the slow shell script. Don't cache a 2228 # value for INSTALL within a source directory, because that will 2229 # break other packages using the cache if that directory is 2230 # removed, or if the value is a relative name. 2231 INSTALL=$ac_install_sh 2232 fi 2233fi 2234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2235$as_echo "$INSTALL" >&6; } 2236 2237# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2238# It thinks the first close brace ends the variable substitution. 2239test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2240 2241test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2242 2243test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2244 2245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2246$as_echo_n "checking whether build environment is sane... " >&6; } 2247# Reject unsafe characters in $srcdir or the absolute working directory 2248# name. Accept space and tab only in the latter. 2249am_lf=' 2250' 2251case `pwd` in 2252 *[\\\"\#\$\&\'\`$am_lf]*) 2253 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2254esac 2255case $srcdir in 2256 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2257 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2258esac 2259 2260# Do 'set' in a subshell so we don't clobber the current shell's 2261# arguments. Must try -L first in case configure is actually a 2262# symlink; some systems play weird games with the mod time of symlinks 2263# (eg FreeBSD returns the mod time of the symlink's containing 2264# directory). 2265if ( 2266 am_has_slept=no 2267 for am_try in 1 2; do 2268 echo "timestamp, slept: $am_has_slept" > conftest.file 2269 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2270 if test "$*" = "X"; then 2271 # -L didn't work. 2272 set X `ls -t "$srcdir/configure" conftest.file` 2273 fi 2274 if test "$*" != "X $srcdir/configure conftest.file" \ 2275 && test "$*" != "X conftest.file $srcdir/configure"; then 2276 2277 # If neither matched, then we have a broken ls. This can happen 2278 # if, for instance, CONFIG_SHELL is bash and it inherits a 2279 # broken ls alias from the environment. This has actually 2280 # happened. Such a system could not be considered "sane". 2281 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2282 alias in your environment" "$LINENO" 5 2283 fi 2284 if test "$2" = conftest.file || test $am_try -eq 2; then 2285 break 2286 fi 2287 # Just in case. 2288 sleep 1 2289 am_has_slept=yes 2290 done 2291 test "$2" = conftest.file 2292 ) 2293then 2294 # Ok. 2295 : 2296else 2297 as_fn_error $? "newly created file is older than distributed files! 2298Check your system clock" "$LINENO" 5 2299fi 2300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2301$as_echo "yes" >&6; } 2302# If we didn't sleep, we still need to ensure time stamps of config.status and 2303# generated files are strictly newer. 2304am_sleep_pid= 2305if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2306 ( sleep 1 ) & 2307 am_sleep_pid=$! 2308fi 2309 2310rm -f conftest.file 2311 2312test "$program_prefix" != NONE && 2313 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2314# Use a double $ so make ignores it. 2315test "$program_suffix" != NONE && 2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2317# Double any \ or $. 2318# By default was `s,x,x', remove it if useless. 2319ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2320program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2321 2322# expand $ac_aux_dir to an absolute path 2323am_aux_dir=`cd $ac_aux_dir && pwd` 2324 2325if test x"${MISSING+set}" != xset; then 2326 case $am_aux_dir in 2327 *\ * | *\ *) 2328 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2329 *) 2330 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2331 esac 2332fi 2333# Use eval to expand $SHELL 2334if eval "$MISSING --is-lightweight"; then 2335 am_missing_run="$MISSING " 2336else 2337 am_missing_run= 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2339$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2340fi 2341 2342if test x"${install_sh}" != xset; then 2343 case $am_aux_dir in 2344 *\ * | *\ *) 2345 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2346 *) 2347 install_sh="\${SHELL} $am_aux_dir/install-sh" 2348 esac 2349fi 2350 2351# Installed binaries are usually stripped using 'strip' when the user 2352# run "make install-strip". However 'strip' might not be the right 2353# tool to use in cross-compilation environments, therefore Automake 2354# will honor the 'STRIP' environment variable to overrule this program. 2355if test "$cross_compiling" != no; then 2356 if test -n "$ac_tool_prefix"; then 2357 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2358set dummy ${ac_tool_prefix}strip; ac_word=$2 2359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2360$as_echo_n "checking for $ac_word... " >&6; } 2361if ${ac_cv_prog_STRIP+:} false; then : 2362 $as_echo_n "(cached) " >&6 2363else 2364 if test -n "$STRIP"; then 2365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2366else 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2374 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2376 break 2 2377 fi 2378done 2379 done 2380IFS=$as_save_IFS 2381 2382fi 2383fi 2384STRIP=$ac_cv_prog_STRIP 2385if test -n "$STRIP"; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2387$as_echo "$STRIP" >&6; } 2388else 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2390$as_echo "no" >&6; } 2391fi 2392 2393 2394fi 2395if test -z "$ac_cv_prog_STRIP"; then 2396 ac_ct_STRIP=$STRIP 2397 # Extract the first word of "strip", so it can be a program name with args. 2398set dummy strip; ac_word=$2 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2400$as_echo_n "checking for $ac_word... " >&6; } 2401if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2402 $as_echo_n "(cached) " >&6 2403else 2404 if test -n "$ac_ct_STRIP"; then 2405 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2406else 2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2408for as_dir in $PATH 2409do 2410 IFS=$as_save_IFS 2411 test -z "$as_dir" && as_dir=. 2412 for ac_exec_ext in '' $ac_executable_extensions; do 2413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2414 ac_cv_prog_ac_ct_STRIP="strip" 2415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2416 break 2 2417 fi 2418done 2419 done 2420IFS=$as_save_IFS 2421 2422fi 2423fi 2424ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2425if test -n "$ac_ct_STRIP"; then 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2427$as_echo "$ac_ct_STRIP" >&6; } 2428else 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2430$as_echo "no" >&6; } 2431fi 2432 2433 if test "x$ac_ct_STRIP" = x; then 2434 STRIP=":" 2435 else 2436 case $cross_compiling:$ac_tool_warned in 2437yes:) 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2440ac_tool_warned=yes ;; 2441esac 2442 STRIP=$ac_ct_STRIP 2443 fi 2444else 2445 STRIP="$ac_cv_prog_STRIP" 2446fi 2447 2448fi 2449INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2450 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2452$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2453if test -z "$MKDIR_P"; then 2454 if ${ac_cv_path_mkdir+:} false; then : 2455 $as_echo_n "(cached) " >&6 2456else 2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2458for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2459do 2460 IFS=$as_save_IFS 2461 test -z "$as_dir" && as_dir=. 2462 for ac_prog in mkdir gmkdir; do 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2465 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2466 'mkdir (GNU coreutils) '* | \ 2467 'mkdir (coreutils) '* | \ 2468 'mkdir (fileutils) '4.1*) 2469 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2470 break 3;; 2471 esac 2472 done 2473 done 2474 done 2475IFS=$as_save_IFS 2476 2477fi 2478 2479 test -d ./--version && rmdir ./--version 2480 if test "${ac_cv_path_mkdir+set}" = set; then 2481 MKDIR_P="$ac_cv_path_mkdir -p" 2482 else 2483 # As a last resort, use the slow shell script. Don't cache a 2484 # value for MKDIR_P within a source directory, because that will 2485 # break other packages using the cache if that directory is 2486 # removed, or if the value is a relative name. 2487 MKDIR_P="$ac_install_sh -d" 2488 fi 2489fi 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2491$as_echo "$MKDIR_P" >&6; } 2492 2493for ac_prog in gawk mawk nawk awk 2494do 2495 # Extract the first word of "$ac_prog", so it can be a program name with args. 2496set dummy $ac_prog; ac_word=$2 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2498$as_echo_n "checking for $ac_word... " >&6; } 2499if ${ac_cv_prog_AWK+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501else 2502 if test -n "$AWK"; then 2503 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2512 ac_cv_prog_AWK="$ac_prog" 2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517 done 2518IFS=$as_save_IFS 2519 2520fi 2521fi 2522AWK=$ac_cv_prog_AWK 2523if test -n "$AWK"; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2525$as_echo "$AWK" >&6; } 2526else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2528$as_echo "no" >&6; } 2529fi 2530 2531 2532 test -n "$AWK" && break 2533done 2534 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2536$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2537set x ${MAKE-make} 2538ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2539if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2540 $as_echo_n "(cached) " >&6 2541else 2542 cat >conftest.make <<\_ACEOF 2543SHELL = /bin/sh 2544all: 2545 @echo '@@@%%%=$(MAKE)=@@@%%%' 2546_ACEOF 2547# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2548case `${MAKE-make} -f conftest.make 2>/dev/null` in 2549 *@@@%%%=?*=@@@%%%*) 2550 eval ac_cv_prog_make_${ac_make}_set=yes;; 2551 *) 2552 eval ac_cv_prog_make_${ac_make}_set=no;; 2553esac 2554rm -f conftest.make 2555fi 2556if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2558$as_echo "yes" >&6; } 2559 SET_MAKE= 2560else 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2562$as_echo "no" >&6; } 2563 SET_MAKE="MAKE=${MAKE-make}" 2564fi 2565 2566rm -rf .tst 2>/dev/null 2567mkdir .tst 2>/dev/null 2568if test -d .tst; then 2569 am__leading_dot=. 2570else 2571 am__leading_dot=_ 2572fi 2573rmdir .tst 2>/dev/null 2574 2575# Check whether --enable-silent-rules was given. 2576if test "${enable_silent_rules+set}" = set; then : 2577 enableval=$enable_silent_rules; 2578fi 2579 2580case $enable_silent_rules in # ((( 2581 yes) AM_DEFAULT_VERBOSITY=0;; 2582 no) AM_DEFAULT_VERBOSITY=1;; 2583 *) AM_DEFAULT_VERBOSITY=1;; 2584esac 2585am_make=${MAKE-make} 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2587$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2588if ${am_cv_make_support_nested_variables+:} false; then : 2589 $as_echo_n "(cached) " >&6 2590else 2591 if $as_echo 'TRUE=$(BAR$(V)) 2592BAR0=false 2593BAR1=true 2594V=1 2595am__doit: 2596 @$(TRUE) 2597.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2598 am_cv_make_support_nested_variables=yes 2599else 2600 am_cv_make_support_nested_variables=no 2601fi 2602fi 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2604$as_echo "$am_cv_make_support_nested_variables" >&6; } 2605if test $am_cv_make_support_nested_variables = yes; then 2606 AM_V='$(V)' 2607 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2608else 2609 AM_V=$AM_DEFAULT_VERBOSITY 2610 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2611fi 2612AM_BACKSLASH='\' 2613 2614if test "`cd $srcdir && pwd`" != "`pwd`"; then 2615 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2616 # is not polluted with repeated "-I." 2617 am__isrc=' -I$(srcdir)' 2618 # test to see if srcdir already configured 2619 if test -f $srcdir/config.status; then 2620 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2621 fi 2622fi 2623 2624# test whether we have cygpath 2625if test -z "$CYGPATH_W"; then 2626 if (cygpath --version) >/dev/null 2>/dev/null; then 2627 CYGPATH_W='cygpath -w' 2628 else 2629 CYGPATH_W=echo 2630 fi 2631fi 2632 2633 2634# Define the identity of the package. 2635 PACKAGE='iperf' 2636 VERSION='3.0.1' 2637 2638 2639cat >>confdefs.h <<_ACEOF 2640#define PACKAGE "$PACKAGE" 2641_ACEOF 2642 2643 2644cat >>confdefs.h <<_ACEOF 2645#define VERSION "$VERSION" 2646_ACEOF 2647 2648# Some tools Automake needs. 2649 2650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2651 2652 2653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2654 2655 2656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2657 2658 2659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2660 2661 2662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2663 2664# For better backward compatibility. To be removed once Automake 1.9.x 2665# dies out for good. For more background, see: 2666# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2667# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2668mkdir_p='$(MKDIR_P)' 2669 2670# We need awk for the "check" target. The system "awk" is bad on 2671# some platforms. 2672# Always define AMTAR for backward compatibility. Yes, it's still used 2673# in the wild :-( We should find a proper way to deprecate it ... 2674AMTAR='$${TAR-tar}' 2675 2676 2677# We'll loop over all known methods to create a tar archive until one works. 2678_am_tools='gnutar pax cpio none' 2679 2680am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2681 2682 2683 2684 2685 2686 2687# POSIX will say in a future version that running "rm -f" with no argument 2688# is OK; and we want to be able to make that assumption in our Makefile 2689# recipes. So use an aggressive probe to check that the usage we want is 2690# actually supported "in the wild" to an acceptable degree. 2691# See automake bug#10828. 2692# To make any issue more visible, cause the running configure to be aborted 2693# by default if the 'rm' program in use doesn't match our expectations; the 2694# user can still override this though. 2695if rm -f && rm -fr && rm -rf; then : OK; else 2696 cat >&2 <<'END' 2697Oops! 2698 2699Your 'rm' program seems unable to run without file operands specified 2700on the command line, even when the '-f' option is present. This is contrary 2701to the behaviour of most rm programs out there, and not conforming with 2702the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2703 2704Please tell bug-automake@gnu.org about your system, including the value 2705of your $PATH and any error possibly output before this message. This 2706can help us improve future automake versions. 2707 2708END 2709 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2710 echo 'Configuration will proceed anyway, since you have set the' >&2 2711 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2712 echo >&2 2713 else 2714 cat >&2 <<'END' 2715Aborting the configuration process, to ensure you take notice of the issue. 2716 2717You can download and install GNU coreutils to get an 'rm' implementation 2718that behaves properly: <http://www.gnu.org/software/coreutils/>. 2719 2720If you want to complete the configuration process using your problematic 2721'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2722to "yes", and re-run configure. 2723 2724END 2725 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2726 fi 2727fi 2728 2729ac_config_headers="$ac_config_headers src/config.h" 2730 2731 2732# Make sure we can run config.sub. 2733$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2734 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2735 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2737$as_echo_n "checking build system type... " >&6; } 2738if ${ac_cv_build+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 ac_build_alias=$build_alias 2742test "x$ac_build_alias" = x && 2743 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2744test "x$ac_build_alias" = x && 2745 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2747 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2748 2749fi 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2751$as_echo "$ac_cv_build" >&6; } 2752case $ac_cv_build in 2753*-*-*) ;; 2754*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2755esac 2756build=$ac_cv_build 2757ac_save_IFS=$IFS; IFS='-' 2758set x $ac_cv_build 2759shift 2760build_cpu=$1 2761build_vendor=$2 2762shift; shift 2763# Remember, the first character of IFS is used to create $*, 2764# except with old shells: 2765build_os=$* 2766IFS=$ac_save_IFS 2767case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2768 2769 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2771$as_echo_n "checking host system type... " >&6; } 2772if ${ac_cv_host+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 if test "x$host_alias" = x; then 2776 ac_cv_host=$ac_cv_build 2777else 2778 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2780fi 2781 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2784$as_echo "$ac_cv_host" >&6; } 2785case $ac_cv_host in 2786*-*-*) ;; 2787*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2788esac 2789host=$ac_cv_host 2790ac_save_IFS=$IFS; IFS='-' 2791set x $ac_cv_host 2792shift 2793host_cpu=$1 2794host_vendor=$2 2795shift; shift 2796# Remember, the first character of IFS is used to create $*, 2797# except with old shells: 2798host_os=$* 2799IFS=$ac_save_IFS 2800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2801 2802 2803 2804# Checks for tools: c compiler, ranlib (used for creating static libraries), 2805# symlinks and libtool 2806ac_ext=c 2807ac_cpp='$CPP $CPPFLAGS' 2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2810ac_compiler_gnu=$ac_cv_c_compiler_gnu 2811if test -n "$ac_tool_prefix"; then 2812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2813set dummy ${ac_tool_prefix}gcc; ac_word=$2 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2815$as_echo_n "checking for $ac_word... " >&6; } 2816if ${ac_cv_prog_CC+:} false; then : 2817 $as_echo_n "(cached) " >&6 2818else 2819 if test -n "$CC"; then 2820 ac_cv_prog_CC="$CC" # Let the user override the test. 2821else 2822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2823for as_dir in $PATH 2824do 2825 IFS=$as_save_IFS 2826 test -z "$as_dir" && as_dir=. 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838fi 2839CC=$ac_cv_prog_CC 2840if test -n "$CC"; then 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2842$as_echo "$CC" >&6; } 2843else 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2845$as_echo "no" >&6; } 2846fi 2847 2848 2849fi 2850if test -z "$ac_cv_prog_CC"; then 2851 ac_ct_CC=$CC 2852 # Extract the first word of "gcc", so it can be a program name with args. 2853set dummy gcc; ac_word=$2 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855$as_echo_n "checking for $ac_word... " >&6; } 2856if ${ac_cv_prog_ac_ct_CC+:} false; then : 2857 $as_echo_n "(cached) " >&6 2858else 2859 if test -n "$ac_ct_CC"; then 2860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2861else 2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2863for as_dir in $PATH 2864do 2865 IFS=$as_save_IFS 2866 test -z "$as_dir" && as_dir=. 2867 for ac_exec_ext in '' $ac_executable_extensions; do 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2869 ac_cv_prog_ac_ct_CC="gcc" 2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2871 break 2 2872 fi 2873done 2874 done 2875IFS=$as_save_IFS 2876 2877fi 2878fi 2879ac_ct_CC=$ac_cv_prog_ac_ct_CC 2880if test -n "$ac_ct_CC"; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2882$as_echo "$ac_ct_CC" >&6; } 2883else 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885$as_echo "no" >&6; } 2886fi 2887 2888 if test "x$ac_ct_CC" = x; then 2889 CC="" 2890 else 2891 case $cross_compiling:$ac_tool_warned in 2892yes:) 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2895ac_tool_warned=yes ;; 2896esac 2897 CC=$ac_ct_CC 2898 fi 2899else 2900 CC="$ac_cv_prog_CC" 2901fi 2902 2903if test -z "$CC"; then 2904 if test -n "$ac_tool_prefix"; then 2905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2906set dummy ${ac_tool_prefix}cc; ac_word=$2 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908$as_echo_n "checking for $ac_word... " >&6; } 2909if ${ac_cv_prog_CC+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 if test -n "$CC"; then 2913 ac_cv_prog_CC="$CC" # Let the user override the test. 2914else 2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916for as_dir in $PATH 2917do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_CC="${ac_tool_prefix}cc" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931fi 2932CC=$ac_cv_prog_CC 2933if test -n "$CC"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2935$as_echo "$CC" >&6; } 2936else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938$as_echo "no" >&6; } 2939fi 2940 2941 2942 fi 2943fi 2944if test -z "$CC"; then 2945 # Extract the first word of "cc", so it can be a program name with args. 2946set dummy cc; ac_word=$2 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2948$as_echo_n "checking for $ac_word... " >&6; } 2949if ${ac_cv_prog_CC+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954else 2955 ac_prog_rejected=no 2956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH 2958do 2959 IFS=$as_save_IFS 2960 test -z "$as_dir" && as_dir=. 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2964 ac_prog_rejected=yes 2965 continue 2966 fi 2967 ac_cv_prog_CC="cc" 2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2969 break 2 2970 fi 2971done 2972 done 2973IFS=$as_save_IFS 2974 2975if test $ac_prog_rejected = yes; then 2976 # We found a bogon in the path, so make sure we never use it. 2977 set dummy $ac_cv_prog_CC 2978 shift 2979 if test $# != 0; then 2980 # We chose a different compiler from the bogus one. 2981 # However, it has the same basename, so the bogon will be chosen 2982 # first if we set CC to just the basename; use the full file name. 2983 shift 2984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2985 fi 2986fi 2987fi 2988fi 2989CC=$ac_cv_prog_CC 2990if test -n "$CC"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2992$as_echo "$CC" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 2999fi 3000if test -z "$CC"; then 3001 if test -n "$ac_tool_prefix"; then 3002 for ac_prog in cl.exe 3003 do 3004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3005set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if ${ac_cv_prog_CC+:} false; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$CC"; then 3012 ac_cv_prog_CC="$CC" # Let the user override the test. 3013else 3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015for as_dir in $PATH 3016do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030fi 3031CC=$ac_cv_prog_CC 3032if test -n "$CC"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3034$as_echo "$CC" >&6; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 3041 test -n "$CC" && break 3042 done 3043fi 3044if test -z "$CC"; then 3045 ac_ct_CC=$CC 3046 for ac_prog in cl.exe 3047do 3048 # Extract the first word of "$ac_prog", so it can be a program name with args. 3049set dummy $ac_prog; ac_word=$2 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3051$as_echo_n "checking for $ac_word... " >&6; } 3052if ${ac_cv_prog_ac_ct_CC+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054else 3055 if test -n "$ac_ct_CC"; then 3056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3057else 3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3059for as_dir in $PATH 3060do 3061 IFS=$as_save_IFS 3062 test -z "$as_dir" && as_dir=. 3063 for ac_exec_ext in '' $ac_executable_extensions; do 3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3065 ac_cv_prog_ac_ct_CC="$ac_prog" 3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3067 break 2 3068 fi 3069done 3070 done 3071IFS=$as_save_IFS 3072 3073fi 3074fi 3075ac_ct_CC=$ac_cv_prog_ac_ct_CC 3076if test -n "$ac_ct_CC"; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3078$as_echo "$ac_ct_CC" >&6; } 3079else 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3081$as_echo "no" >&6; } 3082fi 3083 3084 3085 test -n "$ac_ct_CC" && break 3086done 3087 3088 if test "x$ac_ct_CC" = x; then 3089 CC="" 3090 else 3091 case $cross_compiling:$ac_tool_warned in 3092yes:) 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3095ac_tool_warned=yes ;; 3096esac 3097 CC=$ac_ct_CC 3098 fi 3099fi 3100 3101fi 3102 3103 3104test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3106as_fn_error $? "no acceptable C compiler found in \$PATH 3107See \`config.log' for more details" "$LINENO" 5; } 3108 3109# Provide some information about the compiler. 3110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3111set X $ac_compile 3112ac_compiler=$2 3113for ac_option in --version -v -V -qversion; do 3114 { { ac_try="$ac_compiler $ac_option >&5" 3115case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3120$as_echo "$ac_try_echo"; } >&5 3121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3122 ac_status=$? 3123 if test -s conftest.err; then 3124 sed '10a\ 3125... rest of stderr output deleted ... 3126 10q' conftest.err >conftest.er1 3127 cat conftest.er1 >&5 3128 fi 3129 rm -f conftest.er1 conftest.err 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3131 test $ac_status = 0; } 3132done 3133 3134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3135/* end confdefs.h. */ 3136 3137int 3138main () 3139{ 3140 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145ac_clean_files_save=$ac_clean_files 3146ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3147# Try to create an executable without -o first, disregard a.out. 3148# It will help us diagnose broken compilers, and finding out an intuition 3149# of exeext. 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3151$as_echo_n "checking whether the C compiler works... " >&6; } 3152ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3153 3154# The possible output files: 3155ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3156 3157ac_rmfiles= 3158for ac_file in $ac_files 3159do 3160 case $ac_file in 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3162 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3163 esac 3164done 3165rm -f $ac_rmfiles 3166 3167if { { ac_try="$ac_link_default" 3168case "(($ac_try" in 3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3170 *) ac_try_echo=$ac_try;; 3171esac 3172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3173$as_echo "$ac_try_echo"; } >&5 3174 (eval "$ac_link_default") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; then : 3178 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3179# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3180# in a Makefile. We should not override ac_cv_exeext if it was cached, 3181# so that the user can short-circuit this test for compilers unknown to 3182# Autoconf. 3183for ac_file in $ac_files '' 3184do 3185 test -f "$ac_file" || continue 3186 case $ac_file in 3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3188 ;; 3189 [ab].out ) 3190 # We found the default executable, but exeext='' is most 3191 # certainly right. 3192 break;; 3193 *.* ) 3194 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3195 then :; else 3196 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3197 fi 3198 # We set ac_cv_exeext here because the later test for it is not 3199 # safe: cross compilers may not add the suffix if given an `-o' 3200 # argument, so we may need to know it at that point already. 3201 # Even if this section looks crufty: it has the advantage of 3202 # actually working. 3203 break;; 3204 * ) 3205 break;; 3206 esac 3207done 3208test "$ac_cv_exeext" = no && ac_cv_exeext= 3209 3210else 3211 ac_file='' 3212fi 3213if test -z "$ac_file"; then : 3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3215$as_echo "no" >&6; } 3216$as_echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error 77 "C compiler cannot create executables 3222See \`config.log' for more details" "$LINENO" 5; } 3223else 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3225$as_echo "yes" >&6; } 3226fi 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3228$as_echo_n "checking for C compiler default output file name... " >&6; } 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3230$as_echo "$ac_file" >&6; } 3231ac_exeext=$ac_cv_exeext 3232 3233rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3234ac_clean_files=$ac_clean_files_save 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3236$as_echo_n "checking for suffix of executables... " >&6; } 3237if { { ac_try="$ac_link" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_link") 2>&5 3245 ac_status=$? 3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3247 test $ac_status = 0; }; then : 3248 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3250# work properly (i.e., refer to `conftest.exe'), while it won't with 3251# `rm'. 3252for ac_file in conftest.exe conftest conftest.*; do 3253 test -f "$ac_file" || continue 3254 case $ac_file in 3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3257 break;; 3258 * ) break;; 3259 esac 3260done 3261else 3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3264as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3265See \`config.log' for more details" "$LINENO" 5; } 3266fi 3267rm -f conftest conftest$ac_cv_exeext 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3269$as_echo "$ac_cv_exeext" >&6; } 3270 3271rm -f conftest.$ac_ext 3272EXEEXT=$ac_cv_exeext 3273ac_exeext=$EXEEXT 3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3275/* end confdefs.h. */ 3276#include <stdio.h> 3277int 3278main () 3279{ 3280FILE *f = fopen ("conftest.out", "w"); 3281 return ferror (f) || fclose (f) != 0; 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287ac_clean_files="$ac_clean_files conftest.out" 3288# Check that the compiler produces executables we can run. If not, either 3289# the compiler is broken, or we cross compile. 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3291$as_echo_n "checking whether we are cross compiling... " >&6; } 3292if test "$cross_compiling" != yes; then 3293 { { ac_try="$ac_link" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3299$as_echo "$ac_try_echo"; } >&5 3300 (eval "$ac_link") 2>&5 3301 ac_status=$? 3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3303 test $ac_status = 0; } 3304 if { ac_try='./conftest$ac_cv_exeext' 3305 { { case "(($ac_try" in 3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3307 *) ac_try_echo=$ac_try;; 3308esac 3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3310$as_echo "$ac_try_echo"; } >&5 3311 (eval "$ac_try") 2>&5 3312 ac_status=$? 3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3314 test $ac_status = 0; }; }; then 3315 cross_compiling=no 3316 else 3317 if test "$cross_compiling" = maybe; then 3318 cross_compiling=yes 3319 else 3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3322as_fn_error $? "cannot run C compiled programs. 3323If you meant to cross compile, use \`--host'. 3324See \`config.log' for more details" "$LINENO" 5; } 3325 fi 3326 fi 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3329$as_echo "$cross_compiling" >&6; } 3330 3331rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3332ac_clean_files=$ac_clean_files_save 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3334$as_echo_n "checking for suffix of object files... " >&6; } 3335if ${ac_cv_objext+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main () 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349rm -f conftest.o conftest.obj 3350if { { ac_try="$ac_compile" 3351case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_compile") 2>&5 3358 ac_status=$? 3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3360 test $ac_status = 0; }; then : 3361 for ac_file in conftest.o conftest.obj conftest.*; do 3362 test -f "$ac_file" || continue; 3363 case $ac_file in 3364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3365 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3366 break;; 3367 esac 3368done 3369else 3370 $as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error $? "cannot compute suffix of object files: cannot compile 3376See \`config.log' for more details" "$LINENO" 5; } 3377fi 3378rm -f conftest.$ac_cv_objext conftest.$ac_ext 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3381$as_echo "$ac_cv_objext" >&6; } 3382OBJEXT=$ac_cv_objext 3383ac_objext=$OBJEXT 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3385$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3386if ${ac_cv_c_compiler_gnu+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3390/* end confdefs.h. */ 3391 3392int 3393main () 3394{ 3395#ifndef __GNUC__ 3396 choke me 3397#endif 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403if ac_fn_c_try_compile "$LINENO"; then : 3404 ac_compiler_gnu=yes 3405else 3406 ac_compiler_gnu=no 3407fi 3408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3409ac_cv_c_compiler_gnu=$ac_compiler_gnu 3410 3411fi 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3413$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3414if test $ac_compiler_gnu = yes; then 3415 GCC=yes 3416else 3417 GCC= 3418fi 3419ac_test_CFLAGS=${CFLAGS+set} 3420ac_save_CFLAGS=$CFLAGS 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3422$as_echo_n "checking whether $CC accepts -g... " >&6; } 3423if ${ac_cv_prog_cc_g+:} false; then : 3424 $as_echo_n "(cached) " >&6 3425else 3426 ac_save_c_werror_flag=$ac_c_werror_flag 3427 ac_c_werror_flag=yes 3428 ac_cv_prog_cc_g=no 3429 CFLAGS="-g" 3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3431/* end confdefs.h. */ 3432 3433int 3434main () 3435{ 3436 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441if ac_fn_c_try_compile "$LINENO"; then : 3442 ac_cv_prog_cc_g=yes 3443else 3444 CFLAGS="" 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main () 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456if ac_fn_c_try_compile "$LINENO"; then : 3457 3458else 3459 ac_c_werror_flag=$ac_save_c_werror_flag 3460 CFLAGS="-g" 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463 3464int 3465main () 3466{ 3467 3468 ; 3469 return 0; 3470} 3471_ACEOF 3472if ac_fn_c_try_compile "$LINENO"; then : 3473 ac_cv_prog_cc_g=yes 3474fi 3475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3476fi 3477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3478fi 3479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3480 ac_c_werror_flag=$ac_save_c_werror_flag 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3483$as_echo "$ac_cv_prog_cc_g" >&6; } 3484if test "$ac_test_CFLAGS" = set; then 3485 CFLAGS=$ac_save_CFLAGS 3486elif test $ac_cv_prog_cc_g = yes; then 3487 if test "$GCC" = yes; then 3488 CFLAGS="-g -O2" 3489 else 3490 CFLAGS="-g" 3491 fi 3492else 3493 if test "$GCC" = yes; then 3494 CFLAGS="-O2" 3495 else 3496 CFLAGS= 3497 fi 3498fi 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3500$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3501if ${ac_cv_prog_cc_c89+:} false; then : 3502 $as_echo_n "(cached) " >&6 3503else 3504 ac_cv_prog_cc_c89=no 3505ac_save_CC=$CC 3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508#include <stdarg.h> 3509#include <stdio.h> 3510struct stat; 3511/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3512struct buf { int x; }; 3513FILE * (*rcsopen) (struct buf *, struct stat *, int); 3514static char *e (p, i) 3515 char **p; 3516 int i; 3517{ 3518 return p[i]; 3519} 3520static char *f (char * (*g) (char **, int), char **p, ...) 3521{ 3522 char *s; 3523 va_list v; 3524 va_start (v,p); 3525 s = g (p, va_arg (v,int)); 3526 va_end (v); 3527 return s; 3528} 3529 3530/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3531 function prototypes and stuff, but not '\xHH' hex character constants. 3532 These don't provoke an error unfortunately, instead are silently treated 3533 as 'x'. The following induces an error, until -std is added to get 3534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3535 array size at least. It's necessary to write '\x00'==0 to get something 3536 that's true only with -std. */ 3537int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3538 3539/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3540 inside strings and character constants. */ 3541#define FOO(x) 'x' 3542int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3543 3544int test (int i, double x); 3545struct s1 {int (*f) (int a);}; 3546struct s2 {int (*f) (double a);}; 3547int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3548int argc; 3549char **argv; 3550int 3551main () 3552{ 3553return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3559 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560do 3561 CC="$ac_save_CC $ac_arg" 3562 if ac_fn_c_try_compile "$LINENO"; then : 3563 ac_cv_prog_cc_c89=$ac_arg 3564fi 3565rm -f core conftest.err conftest.$ac_objext 3566 test "x$ac_cv_prog_cc_c89" != "xno" && break 3567done 3568rm -f conftest.$ac_ext 3569CC=$ac_save_CC 3570 3571fi 3572# AC_CACHE_VAL 3573case "x$ac_cv_prog_cc_c89" in 3574 x) 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3576$as_echo "none needed" >&6; } ;; 3577 xno) 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3579$as_echo "unsupported" >&6; } ;; 3580 *) 3581 CC="$CC $ac_cv_prog_cc_c89" 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3583$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3584esac 3585if test "x$ac_cv_prog_cc_c89" != xno; then : 3586 3587fi 3588 3589ac_ext=c 3590ac_cpp='$CPP $CPPFLAGS' 3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3593ac_compiler_gnu=$ac_cv_c_compiler_gnu 3594 3595ac_ext=c 3596ac_cpp='$CPP $CPPFLAGS' 3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3599ac_compiler_gnu=$ac_cv_c_compiler_gnu 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3601$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3602if ${am_cv_prog_cc_c_o+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607 3608int 3609main () 3610{ 3611 3612 ; 3613 return 0; 3614} 3615_ACEOF 3616 # Make sure it works both with $CC and with simple cc. 3617 # Following AC_PROG_CC_C_O, we do the test twice because some 3618 # compilers refuse to overwrite an existing .o file with -o, 3619 # though they will create one. 3620 am_cv_prog_cc_c_o=yes 3621 for am_i in 1 2; do 3622 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3623 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3624 ac_status=$? 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } \ 3627 && test -f conftest2.$ac_objext; then 3628 : OK 3629 else 3630 am_cv_prog_cc_c_o=no 3631 break 3632 fi 3633 done 3634 rm -f core conftest* 3635 unset am_i 3636fi 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3638$as_echo "$am_cv_prog_cc_c_o" >&6; } 3639if test "$am_cv_prog_cc_c_o" != yes; then 3640 # Losing compiler, so override with the script. 3641 # FIXME: It is wrong to rewrite CC. 3642 # But if we don't then we get into trouble of one sort or another. 3643 # A longer-term fix would be to have automake use am__CC in this case, 3644 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3645 CC="$am_aux_dir/compile $CC" 3646fi 3647ac_ext=c 3648ac_cpp='$CPP $CPPFLAGS' 3649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3651ac_compiler_gnu=$ac_cv_c_compiler_gnu 3652 3653DEPDIR="${am__leading_dot}deps" 3654 3655ac_config_commands="$ac_config_commands depfiles" 3656 3657 3658am_make=${MAKE-make} 3659cat > confinc << 'END' 3660am__doit: 3661 @echo this is the am__doit target 3662.PHONY: am__doit 3663END 3664# If we don't find an include directive, just comment out the code. 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3666$as_echo_n "checking for style of include used by $am_make... " >&6; } 3667am__include="#" 3668am__quote= 3669_am_result=none 3670# First try GNU make style include. 3671echo "include confinc" > confmf 3672# Ignore all kinds of additional output from 'make'. 3673case `$am_make -s -f confmf 2> /dev/null` in #( 3674*the\ am__doit\ target*) 3675 am__include=include 3676 am__quote= 3677 _am_result=GNU 3678 ;; 3679esac 3680# Now try BSD make style include. 3681if test "$am__include" = "#"; then 3682 echo '.include "confinc"' > confmf 3683 case `$am_make -s -f confmf 2> /dev/null` in #( 3684 *the\ am__doit\ target*) 3685 am__include=.include 3686 am__quote="\"" 3687 _am_result=BSD 3688 ;; 3689 esac 3690fi 3691 3692 3693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3694$as_echo "$_am_result" >&6; } 3695rm -f confinc confmf 3696 3697# Check whether --enable-dependency-tracking was given. 3698if test "${enable_dependency_tracking+set}" = set; then : 3699 enableval=$enable_dependency_tracking; 3700fi 3701 3702if test "x$enable_dependency_tracking" != xno; then 3703 am_depcomp="$ac_aux_dir/depcomp" 3704 AMDEPBACKSLASH='\' 3705 am__nodep='_no' 3706fi 3707 if test "x$enable_dependency_tracking" != xno; then 3708 AMDEP_TRUE= 3709 AMDEP_FALSE='#' 3710else 3711 AMDEP_TRUE='#' 3712 AMDEP_FALSE= 3713fi 3714 3715 3716 3717depcc="$CC" am_compiler_list= 3718 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3720$as_echo_n "checking dependency style of $depcc... " >&6; } 3721if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3722 $as_echo_n "(cached) " >&6 3723else 3724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3725 # We make a subdir and do the tests there. Otherwise we can end up 3726 # making bogus files that we don't know about and never remove. For 3727 # instance it was reported that on HP-UX the gcc test will end up 3728 # making a dummy file named 'D' -- because '-MD' means "put the output 3729 # in D". 3730 rm -rf conftest.dir 3731 mkdir conftest.dir 3732 # Copy depcomp to subdir because otherwise we won't find it if we're 3733 # using a relative directory. 3734 cp "$am_depcomp" conftest.dir 3735 cd conftest.dir 3736 # We will build objects and dependencies in a subdirectory because 3737 # it helps to detect inapplicable dependency modes. For instance 3738 # both Tru64's cc and ICC support -MD to output dependencies as a 3739 # side effect of compilation, but ICC will put the dependencies in 3740 # the current directory while Tru64 will put them in the object 3741 # directory. 3742 mkdir sub 3743 3744 am_cv_CC_dependencies_compiler_type=none 3745 if test "$am_compiler_list" = ""; then 3746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3747 fi 3748 am__universal=false 3749 case " $depcc " in #( 3750 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3751 esac 3752 3753 for depmode in $am_compiler_list; do 3754 # Setup a source with many dependencies, because some compilers 3755 # like to wrap large dependency lists on column 80 (with \), and 3756 # we should not choose a depcomp mode which is confused by this. 3757 # 3758 # We need to recreate these files for each test, as the compiler may 3759 # overwrite some of them when testing with obscure command lines. 3760 # This happens at least with the AIX C compiler. 3761 : > sub/conftest.c 3762 for i in 1 2 3 4 5 6; do 3763 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3764 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3765 # Solaris 10 /bin/sh. 3766 echo '/* dummy */' > sub/conftst$i.h 3767 done 3768 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3769 3770 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3771 # mode. It turns out that the SunPro C++ compiler does not properly 3772 # handle '-M -o', and we need to detect this. Also, some Intel 3773 # versions had trouble with output in subdirs. 3774 am__obj=sub/conftest.${OBJEXT-o} 3775 am__minus_obj="-o $am__obj" 3776 case $depmode in 3777 gcc) 3778 # This depmode causes a compiler race in universal mode. 3779 test "$am__universal" = false || continue 3780 ;; 3781 nosideeffect) 3782 # After this tag, mechanisms are not by side-effect, so they'll 3783 # only be used when explicitly requested. 3784 if test "x$enable_dependency_tracking" = xyes; then 3785 continue 3786 else 3787 break 3788 fi 3789 ;; 3790 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3791 # This compiler won't grok '-c -o', but also, the minuso test has 3792 # not run yet. These depmodes are late enough in the game, and 3793 # so weak that their functioning should not be impacted. 3794 am__obj=conftest.${OBJEXT-o} 3795 am__minus_obj= 3796 ;; 3797 none) break ;; 3798 esac 3799 if depmode=$depmode \ 3800 source=sub/conftest.c object=$am__obj \ 3801 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3802 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3803 >/dev/null 2>conftest.err && 3804 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3805 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3806 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3807 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3808 # icc doesn't choke on unknown options, it will just issue warnings 3809 # or remarks (even with -Werror). So we grep stderr for any message 3810 # that says an option was ignored or not supported. 3811 # When given -MP, icc 7.0 and 7.1 complain thusly: 3812 # icc: Command line warning: ignoring option '-M'; no argument required 3813 # The diagnosis changed in icc 8.0: 3814 # icc: Command line remark: option '-MP' not supported 3815 if (grep 'ignoring option' conftest.err || 3816 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3817 am_cv_CC_dependencies_compiler_type=$depmode 3818 break 3819 fi 3820 fi 3821 done 3822 3823 cd .. 3824 rm -rf conftest.dir 3825else 3826 am_cv_CC_dependencies_compiler_type=none 3827fi 3828 3829fi 3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3831$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3832CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3833 3834 if 3835 test "x$enable_dependency_tracking" != xno \ 3836 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3837 am__fastdepCC_TRUE= 3838 am__fastdepCC_FALSE='#' 3839else 3840 am__fastdepCC_TRUE='#' 3841 am__fastdepCC_FALSE= 3842fi 3843 3844 3845if test -n "$ac_tool_prefix"; then 3846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3847set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3849$as_echo_n "checking for $ac_word... " >&6; } 3850if ${ac_cv_prog_RANLIB+:} false; then : 3851 $as_echo_n "(cached) " >&6 3852else 3853 if test -n "$RANLIB"; then 3854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3855else 3856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3857for as_dir in $PATH 3858do 3859 IFS=$as_save_IFS 3860 test -z "$as_dir" && as_dir=. 3861 for ac_exec_ext in '' $ac_executable_extensions; do 3862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3865 break 2 3866 fi 3867done 3868 done 3869IFS=$as_save_IFS 3870 3871fi 3872fi 3873RANLIB=$ac_cv_prog_RANLIB 3874if test -n "$RANLIB"; then 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3876$as_echo "$RANLIB" >&6; } 3877else 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3879$as_echo "no" >&6; } 3880fi 3881 3882 3883fi 3884if test -z "$ac_cv_prog_RANLIB"; then 3885 ac_ct_RANLIB=$RANLIB 3886 # Extract the first word of "ranlib", so it can be a program name with args. 3887set dummy ranlib; ac_word=$2 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3889$as_echo_n "checking for $ac_word... " >&6; } 3890if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 if test -n "$ac_ct_RANLIB"; then 3894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3895else 3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH 3898do 3899 IFS=$as_save_IFS 3900 test -z "$as_dir" && as_dir=. 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3903 ac_cv_prog_ac_ct_RANLIB="ranlib" 3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3905 break 2 3906 fi 3907done 3908 done 3909IFS=$as_save_IFS 3910 3911fi 3912fi 3913ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3914if test -n "$ac_ct_RANLIB"; then 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3916$as_echo "$ac_ct_RANLIB" >&6; } 3917else 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919$as_echo "no" >&6; } 3920fi 3921 3922 if test "x$ac_ct_RANLIB" = x; then 3923 RANLIB=":" 3924 else 3925 case $cross_compiling:$ac_tool_warned in 3926yes:) 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3929ac_tool_warned=yes ;; 3930esac 3931 RANLIB=$ac_ct_RANLIB 3932 fi 3933else 3934 RANLIB="$ac_cv_prog_RANLIB" 3935fi 3936 3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3938$as_echo_n "checking whether ln -s works... " >&6; } 3939LN_S=$as_ln_s 3940if test "$LN_S" = "ln -s"; then 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3942$as_echo "yes" >&6; } 3943else 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3945$as_echo "no, using $LN_S" >&6; } 3946fi 3947 3948case `pwd` in 3949 *\ * | *\ *) 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3951$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3952esac 3953 3954 3955 3956macro_version='2.4.2' 3957macro_revision='1.3337' 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971ltmain="$ac_aux_dir/ltmain.sh" 3972 3973# Backslashify metacharacters that are still active within 3974# double-quoted strings. 3975sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3976 3977# Same as above, but do not quote variable references. 3978double_quote_subst='s/\(["`\\]\)/\\\1/g' 3979 3980# Sed substitution to delay expansion of an escaped shell variable in a 3981# double_quote_subst'ed string. 3982delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3983 3984# Sed substitution to delay expansion of an escaped single quote. 3985delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3986 3987# Sed substitution to avoid accidental globbing in evaled expressions 3988no_glob_subst='s/\*/\\\*/g' 3989 3990ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3991ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3992ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3993 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3995$as_echo_n "checking how to print strings... " >&6; } 3996# Test print first, because it will be a builtin if present. 3997if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3998 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3999 ECHO='print -r --' 4000elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4001 ECHO='printf %s\n' 4002else 4003 # Use this function as a fallback that always works. 4004 func_fallback_echo () 4005 { 4006 eval 'cat <<_LTECHO_EOF 4007$1 4008_LTECHO_EOF' 4009 } 4010 ECHO='func_fallback_echo' 4011fi 4012 4013# func_echo_all arg... 4014# Invoke $ECHO with all args, space-separated. 4015func_echo_all () 4016{ 4017 $ECHO "" 4018} 4019 4020case "$ECHO" in 4021 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4022$as_echo "printf" >&6; } ;; 4023 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4024$as_echo "print -r" >&6; } ;; 4025 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4026$as_echo "cat" >&6; } ;; 4027esac 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4043$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4044if ${ac_cv_path_SED+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4048 for ac_i in 1 2 3 4 5 6 7; do 4049 ac_script="$ac_script$as_nl$ac_script" 4050 done 4051 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4052 { ac_script=; unset ac_script;} 4053 if test -z "$SED"; then 4054 ac_path_SED_found=false 4055 # Loop through the user's path and test for each of PROGNAME-LIST 4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057for as_dir in $PATH 4058do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_prog in sed gsed; do 4062 for ac_exec_ext in '' $ac_executable_extensions; do 4063 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4064 as_fn_executable_p "$ac_path_SED" || continue 4065# Check for GNU ac_path_SED and select it if it is found. 4066 # Check for GNU $ac_path_SED 4067case `"$ac_path_SED" --version 2>&1` in 4068*GNU*) 4069 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4070*) 4071 ac_count=0 4072 $as_echo_n 0123456789 >"conftest.in" 4073 while : 4074 do 4075 cat "conftest.in" "conftest.in" >"conftest.tmp" 4076 mv "conftest.tmp" "conftest.in" 4077 cp "conftest.in" "conftest.nl" 4078 $as_echo '' >> "conftest.nl" 4079 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4081 as_fn_arith $ac_count + 1 && ac_count=$as_val 4082 if test $ac_count -gt ${ac_path_SED_max-0}; then 4083 # Best one so far, save it but keep looking for a better one 4084 ac_cv_path_SED="$ac_path_SED" 4085 ac_path_SED_max=$ac_count 4086 fi 4087 # 10*(2^10) chars as input seems more than enough 4088 test $ac_count -gt 10 && break 4089 done 4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4091esac 4092 4093 $ac_path_SED_found && break 3 4094 done 4095 done 4096 done 4097IFS=$as_save_IFS 4098 if test -z "$ac_cv_path_SED"; then 4099 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4100 fi 4101else 4102 ac_cv_path_SED=$SED 4103fi 4104 4105fi 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4107$as_echo "$ac_cv_path_SED" >&6; } 4108 SED="$ac_cv_path_SED" 4109 rm -f conftest.sed 4110 4111test -z "$SED" && SED=sed 4112Xsed="$SED -e 1s/^X//" 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4125$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4126if ${ac_cv_path_GREP+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128else 4129 if test -z "$GREP"; then 4130 ac_path_GREP_found=false 4131 # Loop through the user's path and test for each of PROGNAME-LIST 4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4134do 4135 IFS=$as_save_IFS 4136 test -z "$as_dir" && as_dir=. 4137 for ac_prog in grep ggrep; do 4138 for ac_exec_ext in '' $ac_executable_extensions; do 4139 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4140 as_fn_executable_p "$ac_path_GREP" || continue 4141# Check for GNU ac_path_GREP and select it if it is found. 4142 # Check for GNU $ac_path_GREP 4143case `"$ac_path_GREP" --version 2>&1` in 4144*GNU*) 4145 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4146*) 4147 ac_count=0 4148 $as_echo_n 0123456789 >"conftest.in" 4149 while : 4150 do 4151 cat "conftest.in" "conftest.in" >"conftest.tmp" 4152 mv "conftest.tmp" "conftest.in" 4153 cp "conftest.in" "conftest.nl" 4154 $as_echo 'GREP' >> "conftest.nl" 4155 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4157 as_fn_arith $ac_count + 1 && ac_count=$as_val 4158 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4159 # Best one so far, save it but keep looking for a better one 4160 ac_cv_path_GREP="$ac_path_GREP" 4161 ac_path_GREP_max=$ac_count 4162 fi 4163 # 10*(2^10) chars as input seems more than enough 4164 test $ac_count -gt 10 && break 4165 done 4166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4167esac 4168 4169 $ac_path_GREP_found && break 3 4170 done 4171 done 4172 done 4173IFS=$as_save_IFS 4174 if test -z "$ac_cv_path_GREP"; then 4175 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4176 fi 4177else 4178 ac_cv_path_GREP=$GREP 4179fi 4180 4181fi 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4183$as_echo "$ac_cv_path_GREP" >&6; } 4184 GREP="$ac_cv_path_GREP" 4185 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4188$as_echo_n "checking for egrep... " >&6; } 4189if ${ac_cv_path_EGREP+:} false; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4193 then ac_cv_path_EGREP="$GREP -E" 4194 else 4195 if test -z "$EGREP"; then 4196 ac_path_EGREP_found=false 4197 # Loop through the user's path and test for each of PROGNAME-LIST 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_prog in egrep; do 4204 for ac_exec_ext in '' $ac_executable_extensions; do 4205 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4206 as_fn_executable_p "$ac_path_EGREP" || continue 4207# Check for GNU ac_path_EGREP and select it if it is found. 4208 # Check for GNU $ac_path_EGREP 4209case `"$ac_path_EGREP" --version 2>&1` in 4210*GNU*) 4211 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4212*) 4213 ac_count=0 4214 $as_echo_n 0123456789 >"conftest.in" 4215 while : 4216 do 4217 cat "conftest.in" "conftest.in" >"conftest.tmp" 4218 mv "conftest.tmp" "conftest.in" 4219 cp "conftest.in" "conftest.nl" 4220 $as_echo 'EGREP' >> "conftest.nl" 4221 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4223 as_fn_arith $ac_count + 1 && ac_count=$as_val 4224 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4225 # Best one so far, save it but keep looking for a better one 4226 ac_cv_path_EGREP="$ac_path_EGREP" 4227 ac_path_EGREP_max=$ac_count 4228 fi 4229 # 10*(2^10) chars as input seems more than enough 4230 test $ac_count -gt 10 && break 4231 done 4232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4233esac 4234 4235 $ac_path_EGREP_found && break 3 4236 done 4237 done 4238 done 4239IFS=$as_save_IFS 4240 if test -z "$ac_cv_path_EGREP"; then 4241 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4242 fi 4243else 4244 ac_cv_path_EGREP=$EGREP 4245fi 4246 4247 fi 4248fi 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4250$as_echo "$ac_cv_path_EGREP" >&6; } 4251 EGREP="$ac_cv_path_EGREP" 4252 4253 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4255$as_echo_n "checking for fgrep... " >&6; } 4256if ${ac_cv_path_FGREP+:} false; then : 4257 $as_echo_n "(cached) " >&6 4258else 4259 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4260 then ac_cv_path_FGREP="$GREP -F" 4261 else 4262 if test -z "$FGREP"; then 4263 ac_path_FGREP_found=false 4264 # Loop through the user's path and test for each of PROGNAME-LIST 4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4267do 4268 IFS=$as_save_IFS 4269 test -z "$as_dir" && as_dir=. 4270 for ac_prog in fgrep; do 4271 for ac_exec_ext in '' $ac_executable_extensions; do 4272 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4273 as_fn_executable_p "$ac_path_FGREP" || continue 4274# Check for GNU ac_path_FGREP and select it if it is found. 4275 # Check for GNU $ac_path_FGREP 4276case `"$ac_path_FGREP" --version 2>&1` in 4277*GNU*) 4278 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4279*) 4280 ac_count=0 4281 $as_echo_n 0123456789 >"conftest.in" 4282 while : 4283 do 4284 cat "conftest.in" "conftest.in" >"conftest.tmp" 4285 mv "conftest.tmp" "conftest.in" 4286 cp "conftest.in" "conftest.nl" 4287 $as_echo 'FGREP' >> "conftest.nl" 4288 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4290 as_fn_arith $ac_count + 1 && ac_count=$as_val 4291 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4292 # Best one so far, save it but keep looking for a better one 4293 ac_cv_path_FGREP="$ac_path_FGREP" 4294 ac_path_FGREP_max=$ac_count 4295 fi 4296 # 10*(2^10) chars as input seems more than enough 4297 test $ac_count -gt 10 && break 4298 done 4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4300esac 4301 4302 $ac_path_FGREP_found && break 3 4303 done 4304 done 4305 done 4306IFS=$as_save_IFS 4307 if test -z "$ac_cv_path_FGREP"; then 4308 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4309 fi 4310else 4311 ac_cv_path_FGREP=$FGREP 4312fi 4313 4314 fi 4315fi 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4317$as_echo "$ac_cv_path_FGREP" >&6; } 4318 FGREP="$ac_cv_path_FGREP" 4319 4320 4321test -z "$GREP" && GREP=grep 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341# Check whether --with-gnu-ld was given. 4342if test "${with_gnu_ld+set}" = set; then : 4343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4344else 4345 with_gnu_ld=no 4346fi 4347 4348ac_prog=ld 4349if test "$GCC" = yes; then 4350 # Check if gcc -print-prog-name=ld gives a path. 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4352$as_echo_n "checking for ld used by $CC... " >&6; } 4353 case $host in 4354 *-*-mingw*) 4355 # gcc leaves a trailing carriage return which upsets mingw 4356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4357 *) 4358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4359 esac 4360 case $ac_prog in 4361 # Accept absolute paths. 4362 [\\/]* | ?:[\\/]*) 4363 re_direlt='/[^/][^/]*/\.\./' 4364 # Canonicalize the pathname of ld 4365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4368 done 4369 test -z "$LD" && LD="$ac_prog" 4370 ;; 4371 "") 4372 # If it fails, then pretend we aren't using GCC. 4373 ac_prog=ld 4374 ;; 4375 *) 4376 # If it is relative, then search for the first ld in PATH. 4377 with_gnu_ld=unknown 4378 ;; 4379 esac 4380elif test "$with_gnu_ld" = yes; then 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4382$as_echo_n "checking for GNU ld... " >&6; } 4383else 4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4385$as_echo_n "checking for non-GNU ld... " >&6; } 4386fi 4387if ${lt_cv_path_LD+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 if test -z "$LD"; then 4391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4392 for ac_dir in $PATH; do 4393 IFS="$lt_save_ifs" 4394 test -z "$ac_dir" && ac_dir=. 4395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4396 lt_cv_path_LD="$ac_dir/$ac_prog" 4397 # Check to see if the program is GNU ld. I'd rather use --version, 4398 # but apparently some variants of GNU ld only accept -v. 4399 # Break only if it was the GNU/non-GNU ld that we prefer. 4400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4401 *GNU* | *'with BFD'*) 4402 test "$with_gnu_ld" != no && break 4403 ;; 4404 *) 4405 test "$with_gnu_ld" != yes && break 4406 ;; 4407 esac 4408 fi 4409 done 4410 IFS="$lt_save_ifs" 4411else 4412 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4413fi 4414fi 4415 4416LD="$lt_cv_path_LD" 4417if test -n "$LD"; then 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4419$as_echo "$LD" >&6; } 4420else 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4422$as_echo "no" >&6; } 4423fi 4424test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4427if ${lt_cv_prog_gnu_ld+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429else 4430 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4431case `$LD -v 2>&1 </dev/null` in 4432*GNU* | *'with BFD'*) 4433 lt_cv_prog_gnu_ld=yes 4434 ;; 4435*) 4436 lt_cv_prog_gnu_ld=no 4437 ;; 4438esac 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4441$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4442with_gnu_ld=$lt_cv_prog_gnu_ld 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4453$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4454if ${lt_cv_path_NM+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -n "$NM"; then 4458 # Let the user override the test. 4459 lt_cv_path_NM="$NM" 4460else 4461 lt_nm_to_check="${ac_tool_prefix}nm" 4462 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4463 lt_nm_to_check="$lt_nm_to_check nm" 4464 fi 4465 for lt_tmp_nm in $lt_nm_to_check; do 4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4467 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4468 IFS="$lt_save_ifs" 4469 test -z "$ac_dir" && ac_dir=. 4470 tmp_nm="$ac_dir/$lt_tmp_nm" 4471 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4472 # Check to see if the nm accepts a BSD-compat flag. 4473 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4474 # nm: unknown option "B" ignored 4475 # Tru64's nm complains that /dev/null is an invalid object file 4476 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4477 */dev/null* | *'Invalid file or object type'*) 4478 lt_cv_path_NM="$tmp_nm -B" 4479 break 4480 ;; 4481 *) 4482 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4483 */dev/null*) 4484 lt_cv_path_NM="$tmp_nm -p" 4485 break 4486 ;; 4487 *) 4488 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4489 continue # so that we can try to find one that supports BSD flags 4490 ;; 4491 esac 4492 ;; 4493 esac 4494 fi 4495 done 4496 IFS="$lt_save_ifs" 4497 done 4498 : ${lt_cv_path_NM=no} 4499fi 4500fi 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4502$as_echo "$lt_cv_path_NM" >&6; } 4503if test "$lt_cv_path_NM" != "no"; then 4504 NM="$lt_cv_path_NM" 4505else 4506 # Didn't find any BSD compatible name lister, look for dumpbin. 4507 if test -n "$DUMPBIN"; then : 4508 # Let the user override the test. 4509 else 4510 if test -n "$ac_tool_prefix"; then 4511 for ac_prog in dumpbin "link -dump" 4512 do 4513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4514set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4516$as_echo_n "checking for $ac_word... " >&6; } 4517if ${ac_cv_prog_DUMPBIN+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 if test -n "$DUMPBIN"; then 4521 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4522else 4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524for as_dir in $PATH 4525do 4526 IFS=$as_save_IFS 4527 test -z "$as_dir" && as_dir=. 4528 for ac_exec_ext in '' $ac_executable_extensions; do 4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4530 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4532 break 2 4533 fi 4534done 4535 done 4536IFS=$as_save_IFS 4537 4538fi 4539fi 4540DUMPBIN=$ac_cv_prog_DUMPBIN 4541if test -n "$DUMPBIN"; then 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4543$as_echo "$DUMPBIN" >&6; } 4544else 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4546$as_echo "no" >&6; } 4547fi 4548 4549 4550 test -n "$DUMPBIN" && break 4551 done 4552fi 4553if test -z "$DUMPBIN"; then 4554 ac_ct_DUMPBIN=$DUMPBIN 4555 for ac_prog in dumpbin "link -dump" 4556do 4557 # Extract the first word of "$ac_prog", so it can be a program name with args. 4558set dummy $ac_prog; ac_word=$2 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4560$as_echo_n "checking for $ac_word... " >&6; } 4561if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4562 $as_echo_n "(cached) " >&6 4563else 4564 if test -n "$ac_ct_DUMPBIN"; then 4565 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4566else 4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4568for as_dir in $PATH 4569do 4570 IFS=$as_save_IFS 4571 test -z "$as_dir" && as_dir=. 4572 for ac_exec_ext in '' $ac_executable_extensions; do 4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4574 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4576 break 2 4577 fi 4578done 4579 done 4580IFS=$as_save_IFS 4581 4582fi 4583fi 4584ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4585if test -n "$ac_ct_DUMPBIN"; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4587$as_echo "$ac_ct_DUMPBIN" >&6; } 4588else 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590$as_echo "no" >&6; } 4591fi 4592 4593 4594 test -n "$ac_ct_DUMPBIN" && break 4595done 4596 4597 if test "x$ac_ct_DUMPBIN" = x; then 4598 DUMPBIN=":" 4599 else 4600 case $cross_compiling:$ac_tool_warned in 4601yes:) 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4604ac_tool_warned=yes ;; 4605esac 4606 DUMPBIN=$ac_ct_DUMPBIN 4607 fi 4608fi 4609 4610 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4611 *COFF*) 4612 DUMPBIN="$DUMPBIN -symbols" 4613 ;; 4614 *) 4615 DUMPBIN=: 4616 ;; 4617 esac 4618 fi 4619 4620 if test "$DUMPBIN" != ":"; then 4621 NM="$DUMPBIN" 4622 fi 4623fi 4624test -z "$NM" && NM=nm 4625 4626 4627 4628 4629 4630 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4632$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4633if ${lt_cv_nm_interface+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 lt_cv_nm_interface="BSD nm" 4637 echo "int some_variable = 0;" > conftest.$ac_ext 4638 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4639 (eval "$ac_compile" 2>conftest.err) 4640 cat conftest.err >&5 4641 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4642 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4643 cat conftest.err >&5 4644 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4645 cat conftest.out >&5 4646 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4647 lt_cv_nm_interface="MS dumpbin" 4648 fi 4649 rm -f conftest* 4650fi 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4652$as_echo "$lt_cv_nm_interface" >&6; } 4653 4654# find the maximum length of command line arguments 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4656$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4657if ${lt_cv_sys_max_cmd_len+:} false; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 i=0 4661 teststring="ABCD" 4662 4663 case $build_os in 4664 msdosdjgpp*) 4665 # On DJGPP, this test can blow up pretty badly due to problems in libc 4666 # (any single argument exceeding 2000 bytes causes a buffer overrun 4667 # during glob expansion). Even if it were fixed, the result of this 4668 # check would be larger than it should be. 4669 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4670 ;; 4671 4672 gnu*) 4673 # Under GNU Hurd, this test is not required because there is 4674 # no limit to the length of command line arguments. 4675 # Libtool will interpret -1 as no limit whatsoever 4676 lt_cv_sys_max_cmd_len=-1; 4677 ;; 4678 4679 cygwin* | mingw* | cegcc*) 4680 # On Win9x/ME, this test blows up -- it succeeds, but takes 4681 # about 5 minutes as the teststring grows exponentially. 4682 # Worse, since 9x/ME are not pre-emptively multitasking, 4683 # you end up with a "frozen" computer, even though with patience 4684 # the test eventually succeeds (with a max line length of 256k). 4685 # Instead, let's just punt: use the minimum linelength reported by 4686 # all of the supported platforms: 8192 (on NT/2K/XP). 4687 lt_cv_sys_max_cmd_len=8192; 4688 ;; 4689 4690 mint*) 4691 # On MiNT this can take a long time and run out of memory. 4692 lt_cv_sys_max_cmd_len=8192; 4693 ;; 4694 4695 amigaos*) 4696 # On AmigaOS with pdksh, this test takes hours, literally. 4697 # So we just punt and use a minimum line length of 8192. 4698 lt_cv_sys_max_cmd_len=8192; 4699 ;; 4700 4701 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4702 # This has been around since 386BSD, at least. Likely further. 4703 if test -x /sbin/sysctl; then 4704 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4705 elif test -x /usr/sbin/sysctl; then 4706 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4707 else 4708 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4709 fi 4710 # And add a safety zone 4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4713 ;; 4714 4715 interix*) 4716 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4717 lt_cv_sys_max_cmd_len=196608 4718 ;; 4719 4720 os2*) 4721 # The test takes a long time on OS/2. 4722 lt_cv_sys_max_cmd_len=8192 4723 ;; 4724 4725 osf*) 4726 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4727 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4728 # nice to cause kernel panics so lets avoid the loop below. 4729 # First set a reasonable default. 4730 lt_cv_sys_max_cmd_len=16384 4731 # 4732 if test -x /sbin/sysconfig; then 4733 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4734 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4735 esac 4736 fi 4737 ;; 4738 sco3.2v5*) 4739 lt_cv_sys_max_cmd_len=102400 4740 ;; 4741 sysv5* | sco5v6* | sysv4.2uw2*) 4742 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4743 if test -n "$kargmax"; then 4744 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4745 else 4746 lt_cv_sys_max_cmd_len=32768 4747 fi 4748 ;; 4749 *) 4750 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4751 if test -n "$lt_cv_sys_max_cmd_len"; then 4752 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4753 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4754 else 4755 # Make teststring a little bigger before we do anything with it. 4756 # a 1K string should be a reasonable start. 4757 for i in 1 2 3 4 5 6 7 8 ; do 4758 teststring=$teststring$teststring 4759 done 4760 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4761 # If test is not a shell built-in, we'll probably end up computing a 4762 # maximum length that is only half of the actual maximum length, but 4763 # we can't tell. 4764 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4765 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4766 test $i != 17 # 1/2 MB should be enough 4767 do 4768 i=`expr $i + 1` 4769 teststring=$teststring$teststring 4770 done 4771 # Only check the string length outside the loop. 4772 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4773 teststring= 4774 # Add a significant safety factor because C++ compilers can tack on 4775 # massive amounts of additional arguments before passing them to the 4776 # linker. It appears as though 1/2 is a usable value. 4777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4778 fi 4779 ;; 4780 esac 4781 4782fi 4783 4784if test -n $lt_cv_sys_max_cmd_len ; then 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4786$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4787else 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4789$as_echo "none" >&6; } 4790fi 4791max_cmd_len=$lt_cv_sys_max_cmd_len 4792 4793 4794 4795 4796 4797 4798: ${CP="cp -f"} 4799: ${MV="mv -f"} 4800: ${RM="rm -f"} 4801 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4803$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4804# Try some XSI features 4805xsi_shell=no 4806( _lt_dummy="a/b/c" 4807 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4808 = c,a/b,b/c, \ 4809 && eval 'test $(( 1 + 1 )) -eq 2 \ 4810 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4811 && xsi_shell=yes 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4813$as_echo "$xsi_shell" >&6; } 4814 4815 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4817$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4818lt_shell_append=no 4819( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4820 >/dev/null 2>&1 \ 4821 && lt_shell_append=yes 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4823$as_echo "$lt_shell_append" >&6; } 4824 4825 4826if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4827 lt_unset=unset 4828else 4829 lt_unset=false 4830fi 4831 4832 4833 4834 4835 4836# test EBCDIC or ASCII 4837case `echo X|tr X '\101'` in 4838 A) # ASCII based system 4839 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4840 lt_SP2NL='tr \040 \012' 4841 lt_NL2SP='tr \015\012 \040\040' 4842 ;; 4843 *) # EBCDIC based system 4844 lt_SP2NL='tr \100 \n' 4845 lt_NL2SP='tr \r\n \100\100' 4846 ;; 4847esac 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4858$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4859if ${lt_cv_to_host_file_cmd+:} false; then : 4860 $as_echo_n "(cached) " >&6 4861else 4862 case $host in 4863 *-*-mingw* ) 4864 case $build in 4865 *-*-mingw* ) # actually msys 4866 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4867 ;; 4868 *-*-cygwin* ) 4869 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4870 ;; 4871 * ) # otherwise, assume *nix 4872 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4873 ;; 4874 esac 4875 ;; 4876 *-*-cygwin* ) 4877 case $build in 4878 *-*-mingw* ) # actually msys 4879 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4880 ;; 4881 *-*-cygwin* ) 4882 lt_cv_to_host_file_cmd=func_convert_file_noop 4883 ;; 4884 * ) # otherwise, assume *nix 4885 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4886 ;; 4887 esac 4888 ;; 4889 * ) # unhandled hosts (and "normal" native builds) 4890 lt_cv_to_host_file_cmd=func_convert_file_noop 4891 ;; 4892esac 4893 4894fi 4895 4896to_host_file_cmd=$lt_cv_to_host_file_cmd 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4898$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4899 4900 4901 4902 4903 4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4905$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4906if ${lt_cv_to_tool_file_cmd+:} false; then : 4907 $as_echo_n "(cached) " >&6 4908else 4909 #assume ordinary cross tools, or native build. 4910lt_cv_to_tool_file_cmd=func_convert_file_noop 4911case $host in 4912 *-*-mingw* ) 4913 case $build in 4914 *-*-mingw* ) # actually msys 4915 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4916 ;; 4917 esac 4918 ;; 4919esac 4920 4921fi 4922 4923to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4925$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4926 4927 4928 4929 4930 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4932$as_echo_n "checking for $LD option to reload object files... " >&6; } 4933if ${lt_cv_ld_reload_flag+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 lt_cv_ld_reload_flag='-r' 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4939$as_echo "$lt_cv_ld_reload_flag" >&6; } 4940reload_flag=$lt_cv_ld_reload_flag 4941case $reload_flag in 4942"" | " "*) ;; 4943*) reload_flag=" $reload_flag" ;; 4944esac 4945reload_cmds='$LD$reload_flag -o $output$reload_objs' 4946case $host_os in 4947 cygwin* | mingw* | pw32* | cegcc*) 4948 if test "$GCC" != yes; then 4949 reload_cmds=false 4950 fi 4951 ;; 4952 darwin*) 4953 if test "$GCC" = yes; then 4954 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4955 else 4956 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4957 fi 4958 ;; 4959esac 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969if test -n "$ac_tool_prefix"; then 4970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4971set dummy ${ac_tool_prefix}objdump; ac_word=$2 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4973$as_echo_n "checking for $ac_word... " >&6; } 4974if ${ac_cv_prog_OBJDUMP+:} false; then : 4975 $as_echo_n "(cached) " >&6 4976else 4977 if test -n "$OBJDUMP"; then 4978 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4979else 4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4981for as_dir in $PATH 4982do 4983 IFS=$as_save_IFS 4984 test -z "$as_dir" && as_dir=. 4985 for ac_exec_ext in '' $ac_executable_extensions; do 4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4987 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4989 break 2 4990 fi 4991done 4992 done 4993IFS=$as_save_IFS 4994 4995fi 4996fi 4997OBJDUMP=$ac_cv_prog_OBJDUMP 4998if test -n "$OBJDUMP"; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5000$as_echo "$OBJDUMP" >&6; } 5001else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003$as_echo "no" >&6; } 5004fi 5005 5006 5007fi 5008if test -z "$ac_cv_prog_OBJDUMP"; then 5009 ac_ct_OBJDUMP=$OBJDUMP 5010 # Extract the first word of "objdump", so it can be a program name with args. 5011set dummy objdump; ac_word=$2 5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5013$as_echo_n "checking for $ac_word... " >&6; } 5014if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016else 5017 if test -n "$ac_ct_OBJDUMP"; then 5018 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5019else 5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5021for as_dir in $PATH 5022do 5023 IFS=$as_save_IFS 5024 test -z "$as_dir" && as_dir=. 5025 for ac_exec_ext in '' $ac_executable_extensions; do 5026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5027 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5029 break 2 5030 fi 5031done 5032 done 5033IFS=$as_save_IFS 5034 5035fi 5036fi 5037ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5038if test -n "$ac_ct_OBJDUMP"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5040$as_echo "$ac_ct_OBJDUMP" >&6; } 5041else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5043$as_echo "no" >&6; } 5044fi 5045 5046 if test "x$ac_ct_OBJDUMP" = x; then 5047 OBJDUMP="false" 5048 else 5049 case $cross_compiling:$ac_tool_warned in 5050yes:) 5051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5053ac_tool_warned=yes ;; 5054esac 5055 OBJDUMP=$ac_ct_OBJDUMP 5056 fi 5057else 5058 OBJDUMP="$ac_cv_prog_OBJDUMP" 5059fi 5060 5061test -z "$OBJDUMP" && OBJDUMP=objdump 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5072$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5073if ${lt_cv_deplibs_check_method+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 lt_cv_file_magic_cmd='$MAGIC_CMD' 5077lt_cv_file_magic_test_file= 5078lt_cv_deplibs_check_method='unknown' 5079# Need to set the preceding variable on all platforms that support 5080# interlibrary dependencies. 5081# 'none' -- dependencies not supported. 5082# `unknown' -- same as none, but documents that we really don't know. 5083# 'pass_all' -- all dependencies passed with no checks. 5084# 'test_compile' -- check by making test program. 5085# 'file_magic [[regex]]' -- check by looking for files in library path 5086# which responds to the $file_magic_cmd with a given extended regex. 5087# If you have `file' or equivalent on your system and you're not sure 5088# whether `pass_all' will *always* work, you probably want this one. 5089 5090case $host_os in 5091aix[4-9]*) 5092 lt_cv_deplibs_check_method=pass_all 5093 ;; 5094 5095beos*) 5096 lt_cv_deplibs_check_method=pass_all 5097 ;; 5098 5099bsdi[45]*) 5100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5101 lt_cv_file_magic_cmd='/usr/bin/file -L' 5102 lt_cv_file_magic_test_file=/shlib/libc.so 5103 ;; 5104 5105cygwin*) 5106 # func_win32_libid is a shell function defined in ltmain.sh 5107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5108 lt_cv_file_magic_cmd='func_win32_libid' 5109 ;; 5110 5111mingw* | pw32*) 5112 # Base MSYS/MinGW do not provide the 'file' command needed by 5113 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5114 # unless we find 'file', for example because we are cross-compiling. 5115 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5116 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5118 lt_cv_file_magic_cmd='func_win32_libid' 5119 else 5120 # Keep this pattern in sync with the one in func_win32_libid. 5121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5122 lt_cv_file_magic_cmd='$OBJDUMP -f' 5123 fi 5124 ;; 5125 5126cegcc*) 5127 # use the weaker test based on 'objdump'. See mingw*. 5128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5129 lt_cv_file_magic_cmd='$OBJDUMP -f' 5130 ;; 5131 5132darwin* | rhapsody*) 5133 lt_cv_deplibs_check_method=pass_all 5134 ;; 5135 5136freebsd* | dragonfly*) 5137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5138 case $host_cpu in 5139 i*86 ) 5140 # Not sure whether the presence of OpenBSD here was a mistake. 5141 # Let's accept both of them until this is cleared up. 5142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5143 lt_cv_file_magic_cmd=/usr/bin/file 5144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5145 ;; 5146 esac 5147 else 5148 lt_cv_deplibs_check_method=pass_all 5149 fi 5150 ;; 5151 5152gnu*) 5153 lt_cv_deplibs_check_method=pass_all 5154 ;; 5155 5156haiku*) 5157 lt_cv_deplibs_check_method=pass_all 5158 ;; 5159 5160hpux10.20* | hpux11*) 5161 lt_cv_file_magic_cmd=/usr/bin/file 5162 case $host_cpu in 5163 ia64*) 5164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5165 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5166 ;; 5167 hppa*64*) 5168 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]' 5169 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5170 ;; 5171 *) 5172 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5173 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5174 ;; 5175 esac 5176 ;; 5177 5178interix[3-9]*) 5179 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5181 ;; 5182 5183irix5* | irix6* | nonstopux*) 5184 case $LD in 5185 *-32|*"-32 ") libmagic=32-bit;; 5186 *-n32|*"-n32 ") libmagic=N32;; 5187 *-64|*"-64 ") libmagic=64-bit;; 5188 *) libmagic=never-match;; 5189 esac 5190 lt_cv_deplibs_check_method=pass_all 5191 ;; 5192 5193# This must be glibc/ELF. 5194linux* | k*bsd*-gnu | kopensolaris*-gnu) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197 5198netbsd*) 5199 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5200 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5201 else 5202 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5203 fi 5204 ;; 5205 5206newos6*) 5207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5208 lt_cv_file_magic_cmd=/usr/bin/file 5209 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5210 ;; 5211 5212*nto* | *qnx*) 5213 lt_cv_deplibs_check_method=pass_all 5214 ;; 5215 5216openbsd*) 5217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5219 else 5220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5221 fi 5222 ;; 5223 5224osf3* | osf4* | osf5*) 5225 lt_cv_deplibs_check_method=pass_all 5226 ;; 5227 5228rdos*) 5229 lt_cv_deplibs_check_method=pass_all 5230 ;; 5231 5232solaris*) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 5236sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5237 lt_cv_deplibs_check_method=pass_all 5238 ;; 5239 5240sysv4 | sysv4.3*) 5241 case $host_vendor in 5242 motorola) 5243 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]' 5244 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5245 ;; 5246 ncr) 5247 lt_cv_deplibs_check_method=pass_all 5248 ;; 5249 sequent) 5250 lt_cv_file_magic_cmd='/bin/file' 5251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5252 ;; 5253 sni) 5254 lt_cv_file_magic_cmd='/bin/file' 5255 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5256 lt_cv_file_magic_test_file=/lib/libc.so 5257 ;; 5258 siemens) 5259 lt_cv_deplibs_check_method=pass_all 5260 ;; 5261 pc) 5262 lt_cv_deplibs_check_method=pass_all 5263 ;; 5264 esac 5265 ;; 5266 5267tpf*) 5268 lt_cv_deplibs_check_method=pass_all 5269 ;; 5270esac 5271 5272fi 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5274$as_echo "$lt_cv_deplibs_check_method" >&6; } 5275 5276file_magic_glob= 5277want_nocaseglob=no 5278if test "$build" = "$host"; then 5279 case $host_os in 5280 mingw* | pw32*) 5281 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5282 want_nocaseglob=yes 5283 else 5284 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5285 fi 5286 ;; 5287 esac 5288fi 5289 5290file_magic_cmd=$lt_cv_file_magic_cmd 5291deplibs_check_method=$lt_cv_deplibs_check_method 5292test -z "$deplibs_check_method" && deplibs_check_method=unknown 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315if test -n "$ac_tool_prefix"; then 5316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5317set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319$as_echo_n "checking for $ac_word... " >&6; } 5320if ${ac_cv_prog_DLLTOOL+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322else 5323 if test -n "$DLLTOOL"; then 5324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5325else 5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327for as_dir in $PATH 5328do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337done 5338 done 5339IFS=$as_save_IFS 5340 5341fi 5342fi 5343DLLTOOL=$ac_cv_prog_DLLTOOL 5344if test -n "$DLLTOOL"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5346$as_echo "$DLLTOOL" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5349$as_echo "no" >&6; } 5350fi 5351 5352 5353fi 5354if test -z "$ac_cv_prog_DLLTOOL"; then 5355 ac_ct_DLLTOOL=$DLLTOOL 5356 # Extract the first word of "dlltool", so it can be a program name with args. 5357set dummy dlltool; ac_word=$2 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5359$as_echo_n "checking for $ac_word... " >&6; } 5360if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5361 $as_echo_n "(cached) " >&6 5362else 5363 if test -n "$ac_ct_DLLTOOL"; then 5364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5365else 5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_exec_ext in '' $ac_executable_extensions; do 5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5373 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5375 break 2 5376 fi 5377done 5378 done 5379IFS=$as_save_IFS 5380 5381fi 5382fi 5383ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5384if test -n "$ac_ct_DLLTOOL"; then 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5386$as_echo "$ac_ct_DLLTOOL" >&6; } 5387else 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5389$as_echo "no" >&6; } 5390fi 5391 5392 if test "x$ac_ct_DLLTOOL" = x; then 5393 DLLTOOL="false" 5394 else 5395 case $cross_compiling:$ac_tool_warned in 5396yes:) 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5399ac_tool_warned=yes ;; 5400esac 5401 DLLTOOL=$ac_ct_DLLTOOL 5402 fi 5403else 5404 DLLTOOL="$ac_cv_prog_DLLTOOL" 5405fi 5406 5407test -z "$DLLTOOL" && DLLTOOL=dlltool 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5419$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5420if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 lt_cv_sharedlib_from_linklib_cmd='unknown' 5424 5425case $host_os in 5426cygwin* | mingw* | pw32* | cegcc*) 5427 # two different shell functions defined in ltmain.sh 5428 # decide which to use based on capabilities of $DLLTOOL 5429 case `$DLLTOOL --help 2>&1` in 5430 *--identify-strict*) 5431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5432 ;; 5433 *) 5434 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5435 ;; 5436 esac 5437 ;; 5438*) 5439 # fallback: assume linklib IS sharedlib 5440 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5441 ;; 5442esac 5443 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5446$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5447sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5448test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5449 5450 5451 5452 5453 5454 5455 5456 5457if test -n "$ac_tool_prefix"; then 5458 for ac_prog in ar 5459 do 5460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5461set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5463$as_echo_n "checking for $ac_word... " >&6; } 5464if ${ac_cv_prog_AR+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 if test -n "$AR"; then 5468 ac_cv_prog_AR="$AR" # Let the user override the test. 5469else 5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5471for as_dir in $PATH 5472do 5473 IFS=$as_save_IFS 5474 test -z "$as_dir" && as_dir=. 5475 for ac_exec_ext in '' $ac_executable_extensions; do 5476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5477 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5479 break 2 5480 fi 5481done 5482 done 5483IFS=$as_save_IFS 5484 5485fi 5486fi 5487AR=$ac_cv_prog_AR 5488if test -n "$AR"; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5490$as_echo "$AR" >&6; } 5491else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5493$as_echo "no" >&6; } 5494fi 5495 5496 5497 test -n "$AR" && break 5498 done 5499fi 5500if test -z "$AR"; then 5501 ac_ct_AR=$AR 5502 for ac_prog in ar 5503do 5504 # Extract the first word of "$ac_prog", so it can be a program name with args. 5505set dummy $ac_prog; ac_word=$2 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5507$as_echo_n "checking for $ac_word... " >&6; } 5508if ${ac_cv_prog_ac_ct_AR+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$ac_ct_AR"; then 5512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5513else 5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515for as_dir in $PATH 5516do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_prog_ac_ct_AR="$ac_prog" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525done 5526 done 5527IFS=$as_save_IFS 5528 5529fi 5530fi 5531ac_ct_AR=$ac_cv_prog_ac_ct_AR 5532if test -n "$ac_ct_AR"; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5534$as_echo "$ac_ct_AR" >&6; } 5535else 5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5537$as_echo "no" >&6; } 5538fi 5539 5540 5541 test -n "$ac_ct_AR" && break 5542done 5543 5544 if test "x$ac_ct_AR" = x; then 5545 AR="false" 5546 else 5547 case $cross_compiling:$ac_tool_warned in 5548yes:) 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5551ac_tool_warned=yes ;; 5552esac 5553 AR=$ac_ct_AR 5554 fi 5555fi 5556 5557: ${AR=ar} 5558: ${AR_FLAGS=cru} 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5571$as_echo_n "checking for archiver @FILE support... " >&6; } 5572if ${lt_cv_ar_at_file+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 lt_cv_ar_at_file=no 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578 5579int 5580main () 5581{ 5582 5583 ; 5584 return 0; 5585} 5586_ACEOF 5587if ac_fn_c_try_compile "$LINENO"; then : 5588 echo conftest.$ac_objext > conftest.lst 5589 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5591 (eval $lt_ar_try) 2>&5 5592 ac_status=$? 5593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5594 test $ac_status = 0; } 5595 if test "$ac_status" -eq 0; then 5596 # Ensure the archiver fails upon bogus file names. 5597 rm -f conftest.$ac_objext libconftest.a 5598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5599 (eval $lt_ar_try) 2>&5 5600 ac_status=$? 5601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5602 test $ac_status = 0; } 5603 if test "$ac_status" -ne 0; then 5604 lt_cv_ar_at_file=@ 5605 fi 5606 fi 5607 rm -f conftest.* libconftest.a 5608 5609fi 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611 5612fi 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5614$as_echo "$lt_cv_ar_at_file" >&6; } 5615 5616if test "x$lt_cv_ar_at_file" = xno; then 5617 archiver_list_spec= 5618else 5619 archiver_list_spec=$lt_cv_ar_at_file 5620fi 5621 5622 5623 5624 5625 5626 5627 5628if test -n "$ac_tool_prefix"; then 5629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5630set dummy ${ac_tool_prefix}strip; ac_word=$2 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5632$as_echo_n "checking for $ac_word... " >&6; } 5633if ${ac_cv_prog_STRIP+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635else 5636 if test -n "$STRIP"; then 5637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5638else 5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640for as_dir in $PATH 5641do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5646 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650done 5651 done 5652IFS=$as_save_IFS 5653 5654fi 5655fi 5656STRIP=$ac_cv_prog_STRIP 5657if test -n "$STRIP"; then 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5659$as_echo "$STRIP" >&6; } 5660else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662$as_echo "no" >&6; } 5663fi 5664 5665 5666fi 5667if test -z "$ac_cv_prog_STRIP"; then 5668 ac_ct_STRIP=$STRIP 5669 # Extract the first word of "strip", so it can be a program name with args. 5670set dummy strip; ac_word=$2 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5672$as_echo_n "checking for $ac_word... " >&6; } 5673if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675else 5676 if test -n "$ac_ct_STRIP"; then 5677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5678else 5679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5680for as_dir in $PATH 5681do 5682 IFS=$as_save_IFS 5683 test -z "$as_dir" && as_dir=. 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5686 ac_cv_prog_ac_ct_STRIP="strip" 5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690done 5691 done 5692IFS=$as_save_IFS 5693 5694fi 5695fi 5696ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5697if test -n "$ac_ct_STRIP"; then 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5699$as_echo "$ac_ct_STRIP" >&6; } 5700else 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702$as_echo "no" >&6; } 5703fi 5704 5705 if test "x$ac_ct_STRIP" = x; then 5706 STRIP=":" 5707 else 5708 case $cross_compiling:$ac_tool_warned in 5709yes:) 5710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5712ac_tool_warned=yes ;; 5713esac 5714 STRIP=$ac_ct_STRIP 5715 fi 5716else 5717 STRIP="$ac_cv_prog_STRIP" 5718fi 5719 5720test -z "$STRIP" && STRIP=: 5721 5722 5723 5724 5725 5726 5727if test -n "$ac_tool_prefix"; then 5728 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5729set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_RANLIB+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$RANLIB"; then 5736 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755RANLIB=$ac_cv_prog_RANLIB 5756if test -n "$RANLIB"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5758$as_echo "$RANLIB" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765fi 5766if test -z "$ac_cv_prog_RANLIB"; then 5767 ac_ct_RANLIB=$RANLIB 5768 # Extract the first word of "ranlib", so it can be a program name with args. 5769set dummy ranlib; ac_word=$2 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5771$as_echo_n "checking for $ac_word... " >&6; } 5772if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5773 $as_echo_n "(cached) " >&6 5774else 5775 if test -n "$ac_ct_RANLIB"; then 5776 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5777else 5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5779for as_dir in $PATH 5780do 5781 IFS=$as_save_IFS 5782 test -z "$as_dir" && as_dir=. 5783 for ac_exec_ext in '' $ac_executable_extensions; do 5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5785 ac_cv_prog_ac_ct_RANLIB="ranlib" 5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5787 break 2 5788 fi 5789done 5790 done 5791IFS=$as_save_IFS 5792 5793fi 5794fi 5795ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5796if test -n "$ac_ct_RANLIB"; then 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5798$as_echo "$ac_ct_RANLIB" >&6; } 5799else 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5801$as_echo "no" >&6; } 5802fi 5803 5804 if test "x$ac_ct_RANLIB" = x; then 5805 RANLIB=":" 5806 else 5807 case $cross_compiling:$ac_tool_warned in 5808yes:) 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5811ac_tool_warned=yes ;; 5812esac 5813 RANLIB=$ac_ct_RANLIB 5814 fi 5815else 5816 RANLIB="$ac_cv_prog_RANLIB" 5817fi 5818 5819test -z "$RANLIB" && RANLIB=: 5820 5821 5822 5823 5824 5825 5826# Determine commands to create old-style static archives. 5827old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5828old_postinstall_cmds='chmod 644 $oldlib' 5829old_postuninstall_cmds= 5830 5831if test -n "$RANLIB"; then 5832 case $host_os in 5833 openbsd*) 5834 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5835 ;; 5836 *) 5837 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5838 ;; 5839 esac 5840 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5841fi 5842 5843case $host_os in 5844 darwin*) 5845 lock_old_archive_extraction=yes ;; 5846 *) 5847 lock_old_archive_extraction=no ;; 5848esac 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888# If no C compiler was specified, use CC. 5889LTCC=${LTCC-"$CC"} 5890 5891# If no C compiler flags were specified, use CFLAGS. 5892LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5893 5894# Allow CC to be a program name with arguments. 5895compiler=$CC 5896 5897 5898# Check for command to grab the raw symbol name followed by C symbol from nm. 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5900$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5901if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 5905# These are sane defaults that work on at least a few old systems. 5906# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5907 5908# Character class describing NM global symbol codes. 5909symcode='[BCDEGRST]' 5910 5911# Regexp to match symbols that can be accessed directly from C. 5912sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5913 5914# Define system-specific variables. 5915case $host_os in 5916aix*) 5917 symcode='[BCDT]' 5918 ;; 5919cygwin* | mingw* | pw32* | cegcc*) 5920 symcode='[ABCDGISTW]' 5921 ;; 5922hpux*) 5923 if test "$host_cpu" = ia64; then 5924 symcode='[ABCDEGRST]' 5925 fi 5926 ;; 5927irix* | nonstopux*) 5928 symcode='[BCDEGRST]' 5929 ;; 5930osf*) 5931 symcode='[BCDEGQRST]' 5932 ;; 5933solaris*) 5934 symcode='[BDRT]' 5935 ;; 5936sco3.2v5*) 5937 symcode='[DT]' 5938 ;; 5939sysv4.2uw2*) 5940 symcode='[DT]' 5941 ;; 5942sysv5* | sco5v6* | unixware* | OpenUNIX*) 5943 symcode='[ABDT]' 5944 ;; 5945sysv4) 5946 symcode='[DFNSTU]' 5947 ;; 5948esac 5949 5950# If we're using GNU nm, then use its standard symbol codes. 5951case `$NM -V 2>&1` in 5952*GNU* | *'with BFD'*) 5953 symcode='[ABCDGIRSTW]' ;; 5954esac 5955 5956# Transform an extracted symbol line into a proper C declaration. 5957# Some systems (esp. on ia64) link data and code symbols differently, 5958# so use this general approach. 5959lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5960 5961# Transform an extracted symbol line into symbol name and symbol address 5962lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5963lt_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'" 5964 5965# Handle CRLF in mingw tool chain 5966opt_cr= 5967case $build_os in 5968mingw*) 5969 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5970 ;; 5971esac 5972 5973# Try without a prefix underscore, then with it. 5974for ac_symprfx in "" "_"; do 5975 5976 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5977 symxfrm="\\1 $ac_symprfx\\2 \\2" 5978 5979 # Write the raw and C identifiers. 5980 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5981 # Fake it for dumpbin and say T for any non-static function 5982 # and D for any global variable. 5983 # Also find C++ and __fastcall symbols from MSVC++, 5984 # which start with @ or ?. 5985 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5986" {last_section=section; section=\$ 3};"\ 5987" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5988" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5989" \$ 0!~/External *\|/{next};"\ 5990" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5991" {if(hide[section]) next};"\ 5992" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5993" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5994" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5995" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5996" ' prfx=^$ac_symprfx" 5997 else 5998 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5999 fi 6000 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6001 6002 # Check to see that the pipe works correctly. 6003 pipe_works=no 6004 6005 rm -f conftest* 6006 cat > conftest.$ac_ext <<_LT_EOF 6007#ifdef __cplusplus 6008extern "C" { 6009#endif 6010char nm_test_var; 6011void nm_test_func(void); 6012void nm_test_func(void){} 6013#ifdef __cplusplus 6014} 6015#endif 6016int main(){nm_test_var='a';nm_test_func();return(0);} 6017_LT_EOF 6018 6019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6020 (eval $ac_compile) 2>&5 6021 ac_status=$? 6022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6023 test $ac_status = 0; }; then 6024 # Now try to grab the symbols. 6025 nlist=conftest.nm 6026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6027 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6028 ac_status=$? 6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6030 test $ac_status = 0; } && test -s "$nlist"; then 6031 # Try sorting and uniquifying the output. 6032 if sort "$nlist" | uniq > "$nlist"T; then 6033 mv -f "$nlist"T "$nlist" 6034 else 6035 rm -f "$nlist"T 6036 fi 6037 6038 # Make sure that we snagged all the symbols we need. 6039 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6040 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6041 cat <<_LT_EOF > conftest.$ac_ext 6042/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6043#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6044/* DATA imports from DLLs on WIN32 con't be const, because runtime 6045 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6046# define LT_DLSYM_CONST 6047#elif defined(__osf__) 6048/* This system does not cope well with relocations in const data. */ 6049# define LT_DLSYM_CONST 6050#else 6051# define LT_DLSYM_CONST const 6052#endif 6053 6054#ifdef __cplusplus 6055extern "C" { 6056#endif 6057 6058_LT_EOF 6059 # Now generate the symbol file. 6060 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6061 6062 cat <<_LT_EOF >> conftest.$ac_ext 6063 6064/* The mapping between symbol names and symbols. */ 6065LT_DLSYM_CONST struct { 6066 const char *name; 6067 void *address; 6068} 6069lt__PROGRAM__LTX_preloaded_symbols[] = 6070{ 6071 { "@PROGRAM@", (void *) 0 }, 6072_LT_EOF 6073 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6074 cat <<\_LT_EOF >> conftest.$ac_ext 6075 {0, (void *) 0} 6076}; 6077 6078/* This works around a problem in FreeBSD linker */ 6079#ifdef FREEBSD_WORKAROUND 6080static const void *lt_preloaded_setup() { 6081 return lt__PROGRAM__LTX_preloaded_symbols; 6082} 6083#endif 6084 6085#ifdef __cplusplus 6086} 6087#endif 6088_LT_EOF 6089 # Now try linking the two files. 6090 mv conftest.$ac_objext conftstm.$ac_objext 6091 lt_globsym_save_LIBS=$LIBS 6092 lt_globsym_save_CFLAGS=$CFLAGS 6093 LIBS="conftstm.$ac_objext" 6094 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6096 (eval $ac_link) 2>&5 6097 ac_status=$? 6098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6099 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6100 pipe_works=yes 6101 fi 6102 LIBS=$lt_globsym_save_LIBS 6103 CFLAGS=$lt_globsym_save_CFLAGS 6104 else 6105 echo "cannot find nm_test_func in $nlist" >&5 6106 fi 6107 else 6108 echo "cannot find nm_test_var in $nlist" >&5 6109 fi 6110 else 6111 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6112 fi 6113 else 6114 echo "$progname: failed program was:" >&5 6115 cat conftest.$ac_ext >&5 6116 fi 6117 rm -rf conftest* conftst* 6118 6119 # Do not use the global_symbol_pipe unless it works. 6120 if test "$pipe_works" = yes; then 6121 break 6122 else 6123 lt_cv_sys_global_symbol_pipe= 6124 fi 6125done 6126 6127fi 6128 6129if test -z "$lt_cv_sys_global_symbol_pipe"; then 6130 lt_cv_sys_global_symbol_to_cdecl= 6131fi 6132if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6134$as_echo "failed" >&6; } 6135else 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6137$as_echo "ok" >&6; } 6138fi 6139 6140# Response file support. 6141if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6142 nm_file_list_spec='@' 6143elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6144 nm_file_list_spec='@' 6145fi 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6174$as_echo_n "checking for sysroot... " >&6; } 6175 6176# Check whether --with-sysroot was given. 6177if test "${with_sysroot+set}" = set; then : 6178 withval=$with_sysroot; 6179else 6180 with_sysroot=no 6181fi 6182 6183 6184lt_sysroot= 6185case ${with_sysroot} in #( 6186 yes) 6187 if test "$GCC" = yes; then 6188 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6189 fi 6190 ;; #( 6191 /*) 6192 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6193 ;; #( 6194 no|'') 6195 ;; #( 6196 *) 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6198$as_echo "${with_sysroot}" >&6; } 6199 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6200 ;; 6201esac 6202 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6204$as_echo "${lt_sysroot:-no}" >&6; } 6205 6206 6207 6208 6209 6210# Check whether --enable-libtool-lock was given. 6211if test "${enable_libtool_lock+set}" = set; then : 6212 enableval=$enable_libtool_lock; 6213fi 6214 6215test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6216 6217# Some flags need to be propagated to the compiler or linker for good 6218# libtool support. 6219case $host in 6220ia64-*-hpux*) 6221 # Find out which ABI we are using. 6222 echo 'int i;' > conftest.$ac_ext 6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6224 (eval $ac_compile) 2>&5 6225 ac_status=$? 6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6227 test $ac_status = 0; }; then 6228 case `/usr/bin/file conftest.$ac_objext` in 6229 *ELF-32*) 6230 HPUX_IA64_MODE="32" 6231 ;; 6232 *ELF-64*) 6233 HPUX_IA64_MODE="64" 6234 ;; 6235 esac 6236 fi 6237 rm -rf conftest* 6238 ;; 6239*-*-irix6*) 6240 # Find out which ABI we are using. 6241 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6243 (eval $ac_compile) 2>&5 6244 ac_status=$? 6245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6246 test $ac_status = 0; }; then 6247 if test "$lt_cv_prog_gnu_ld" = yes; then 6248 case `/usr/bin/file conftest.$ac_objext` in 6249 *32-bit*) 6250 LD="${LD-ld} -melf32bsmip" 6251 ;; 6252 *N32*) 6253 LD="${LD-ld} -melf32bmipn32" 6254 ;; 6255 *64-bit*) 6256 LD="${LD-ld} -melf64bmip" 6257 ;; 6258 esac 6259 else 6260 case `/usr/bin/file conftest.$ac_objext` in 6261 *32-bit*) 6262 LD="${LD-ld} -32" 6263 ;; 6264 *N32*) 6265 LD="${LD-ld} -n32" 6266 ;; 6267 *64-bit*) 6268 LD="${LD-ld} -64" 6269 ;; 6270 esac 6271 fi 6272 fi 6273 rm -rf conftest* 6274 ;; 6275 6276x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6277s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6278 # Find out which ABI we are using. 6279 echo 'int i;' > conftest.$ac_ext 6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6281 (eval $ac_compile) 2>&5 6282 ac_status=$? 6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6284 test $ac_status = 0; }; then 6285 case `/usr/bin/file conftest.o` in 6286 *32-bit*) 6287 case $host in 6288 x86_64-*kfreebsd*-gnu) 6289 LD="${LD-ld} -m elf_i386_fbsd" 6290 ;; 6291 x86_64-*linux*) 6292 LD="${LD-ld} -m elf_i386" 6293 ;; 6294 ppc64-*linux*|powerpc64-*linux*) 6295 LD="${LD-ld} -m elf32ppclinux" 6296 ;; 6297 s390x-*linux*) 6298 LD="${LD-ld} -m elf_s390" 6299 ;; 6300 sparc64-*linux*) 6301 LD="${LD-ld} -m elf32_sparc" 6302 ;; 6303 esac 6304 ;; 6305 *64-bit*) 6306 case $host in 6307 x86_64-*kfreebsd*-gnu) 6308 LD="${LD-ld} -m elf_x86_64_fbsd" 6309 ;; 6310 x86_64-*linux*) 6311 LD="${LD-ld} -m elf_x86_64" 6312 ;; 6313 ppc*-*linux*|powerpc*-*linux*) 6314 LD="${LD-ld} -m elf64ppc" 6315 ;; 6316 s390*-*linux*|s390*-*tpf*) 6317 LD="${LD-ld} -m elf64_s390" 6318 ;; 6319 sparc*-*linux*) 6320 LD="${LD-ld} -m elf64_sparc" 6321 ;; 6322 esac 6323 ;; 6324 esac 6325 fi 6326 rm -rf conftest* 6327 ;; 6328 6329*-*-sco3.2v5*) 6330 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6331 SAVE_CFLAGS="$CFLAGS" 6332 CFLAGS="$CFLAGS -belf" 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6334$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6335if ${lt_cv_cc_needs_belf+:} false; then : 6336 $as_echo_n "(cached) " >&6 6337else 6338 ac_ext=c 6339ac_cpp='$CPP $CPPFLAGS' 6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6342ac_compiler_gnu=$ac_cv_c_compiler_gnu 6343 6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6345/* end confdefs.h. */ 6346 6347int 6348main () 6349{ 6350 6351 ; 6352 return 0; 6353} 6354_ACEOF 6355if ac_fn_c_try_link "$LINENO"; then : 6356 lt_cv_cc_needs_belf=yes 6357else 6358 lt_cv_cc_needs_belf=no 6359fi 6360rm -f core conftest.err conftest.$ac_objext \ 6361 conftest$ac_exeext conftest.$ac_ext 6362 ac_ext=c 6363ac_cpp='$CPP $CPPFLAGS' 6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6366ac_compiler_gnu=$ac_cv_c_compiler_gnu 6367 6368fi 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6370$as_echo "$lt_cv_cc_needs_belf" >&6; } 6371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6373 CFLAGS="$SAVE_CFLAGS" 6374 fi 6375 ;; 6376*-*solaris*) 6377 # Find out which ABI we are using. 6378 echo 'int i;' > conftest.$ac_ext 6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6380 (eval $ac_compile) 2>&5 6381 ac_status=$? 6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6383 test $ac_status = 0; }; then 6384 case `/usr/bin/file conftest.o` in 6385 *64-bit*) 6386 case $lt_cv_prog_gnu_ld in 6387 yes*) 6388 case $host in 6389 i?86-*-solaris*) 6390 LD="${LD-ld} -m elf_x86_64" 6391 ;; 6392 sparc*-*-solaris*) 6393 LD="${LD-ld} -m elf64_sparc" 6394 ;; 6395 esac 6396 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6397 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6398 LD="${LD-ld}_sol2" 6399 fi 6400 ;; 6401 *) 6402 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6403 LD="${LD-ld} -64" 6404 fi 6405 ;; 6406 esac 6407 ;; 6408 esac 6409 fi 6410 rm -rf conftest* 6411 ;; 6412esac 6413 6414need_locks="$enable_libtool_lock" 6415 6416if test -n "$ac_tool_prefix"; then 6417 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6418set dummy ${ac_tool_prefix}mt; ac_word=$2 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6420$as_echo_n "checking for $ac_word... " >&6; } 6421if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 if test -n "$MANIFEST_TOOL"; then 6425 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6426else 6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6428for as_dir in $PATH 6429do 6430 IFS=$as_save_IFS 6431 test -z "$as_dir" && as_dir=. 6432 for ac_exec_ext in '' $ac_executable_extensions; do 6433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6434 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6436 break 2 6437 fi 6438done 6439 done 6440IFS=$as_save_IFS 6441 6442fi 6443fi 6444MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6445if test -n "$MANIFEST_TOOL"; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6447$as_echo "$MANIFEST_TOOL" >&6; } 6448else 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6450$as_echo "no" >&6; } 6451fi 6452 6453 6454fi 6455if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6456 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6457 # Extract the first word of "mt", so it can be a program name with args. 6458set dummy mt; ac_word=$2 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6460$as_echo_n "checking for $ac_word... " >&6; } 6461if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6462 $as_echo_n "(cached) " >&6 6463else 6464 if test -n "$ac_ct_MANIFEST_TOOL"; then 6465 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6466else 6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6468for as_dir in $PATH 6469do 6470 IFS=$as_save_IFS 6471 test -z "$as_dir" && as_dir=. 6472 for ac_exec_ext in '' $ac_executable_extensions; do 6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6474 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6476 break 2 6477 fi 6478done 6479 done 6480IFS=$as_save_IFS 6481 6482fi 6483fi 6484ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6485if test -n "$ac_ct_MANIFEST_TOOL"; then 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6487$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6488else 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6490$as_echo "no" >&6; } 6491fi 6492 6493 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6494 MANIFEST_TOOL=":" 6495 else 6496 case $cross_compiling:$ac_tool_warned in 6497yes:) 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6500ac_tool_warned=yes ;; 6501esac 6502 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6503 fi 6504else 6505 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6506fi 6507 6508test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6510$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6511if ${lt_cv_path_mainfest_tool+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 lt_cv_path_mainfest_tool=no 6515 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6516 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6517 cat conftest.err >&5 6518 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6519 lt_cv_path_mainfest_tool=yes 6520 fi 6521 rm -f conftest* 6522fi 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6524$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6525if test "x$lt_cv_path_mainfest_tool" != xyes; then 6526 MANIFEST_TOOL=: 6527fi 6528 6529 6530 6531 6532 6533 6534 case $host_os in 6535 rhapsody* | darwin*) 6536 if test -n "$ac_tool_prefix"; then 6537 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6538set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6540$as_echo_n "checking for $ac_word... " >&6; } 6541if ${ac_cv_prog_DSYMUTIL+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 if test -n "$DSYMUTIL"; then 6545 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6546else 6547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548for as_dir in $PATH 6549do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6554 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6556 break 2 6557 fi 6558done 6559 done 6560IFS=$as_save_IFS 6561 6562fi 6563fi 6564DSYMUTIL=$ac_cv_prog_DSYMUTIL 6565if test -n "$DSYMUTIL"; then 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6567$as_echo "$DSYMUTIL" >&6; } 6568else 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570$as_echo "no" >&6; } 6571fi 6572 6573 6574fi 6575if test -z "$ac_cv_prog_DSYMUTIL"; then 6576 ac_ct_DSYMUTIL=$DSYMUTIL 6577 # Extract the first word of "dsymutil", so it can be a program name with args. 6578set dummy dsymutil; ac_word=$2 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6580$as_echo_n "checking for $ac_word... " >&6; } 6581if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 if test -n "$ac_ct_DSYMUTIL"; then 6585 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6586else 6587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588for as_dir in $PATH 6589do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598done 6599 done 6600IFS=$as_save_IFS 6601 6602fi 6603fi 6604ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6605if test -n "$ac_ct_DSYMUTIL"; then 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6607$as_echo "$ac_ct_DSYMUTIL" >&6; } 6608else 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6610$as_echo "no" >&6; } 6611fi 6612 6613 if test "x$ac_ct_DSYMUTIL" = x; then 6614 DSYMUTIL=":" 6615 else 6616 case $cross_compiling:$ac_tool_warned in 6617yes:) 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6620ac_tool_warned=yes ;; 6621esac 6622 DSYMUTIL=$ac_ct_DSYMUTIL 6623 fi 6624else 6625 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6626fi 6627 6628 if test -n "$ac_tool_prefix"; then 6629 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6630set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6632$as_echo_n "checking for $ac_word... " >&6; } 6633if ${ac_cv_prog_NMEDIT+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 if test -n "$NMEDIT"; then 6637 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6638else 6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640for as_dir in $PATH 6641do 6642 IFS=$as_save_IFS 6643 test -z "$as_dir" && as_dir=. 6644 for ac_exec_ext in '' $ac_executable_extensions; do 6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6646 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6648 break 2 6649 fi 6650done 6651 done 6652IFS=$as_save_IFS 6653 6654fi 6655fi 6656NMEDIT=$ac_cv_prog_NMEDIT 6657if test -n "$NMEDIT"; then 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6659$as_echo "$NMEDIT" >&6; } 6660else 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6662$as_echo "no" >&6; } 6663fi 6664 6665 6666fi 6667if test -z "$ac_cv_prog_NMEDIT"; then 6668 ac_ct_NMEDIT=$NMEDIT 6669 # Extract the first word of "nmedit", so it can be a program name with args. 6670set dummy nmedit; ac_word=$2 6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6672$as_echo_n "checking for $ac_word... " >&6; } 6673if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 if test -n "$ac_ct_NMEDIT"; then 6677 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6678else 6679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6686 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690done 6691 done 6692IFS=$as_save_IFS 6693 6694fi 6695fi 6696ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6697if test -n "$ac_ct_NMEDIT"; then 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6699$as_echo "$ac_ct_NMEDIT" >&6; } 6700else 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6702$as_echo "no" >&6; } 6703fi 6704 6705 if test "x$ac_ct_NMEDIT" = x; then 6706 NMEDIT=":" 6707 else 6708 case $cross_compiling:$ac_tool_warned in 6709yes:) 6710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6712ac_tool_warned=yes ;; 6713esac 6714 NMEDIT=$ac_ct_NMEDIT 6715 fi 6716else 6717 NMEDIT="$ac_cv_prog_NMEDIT" 6718fi 6719 6720 if test -n "$ac_tool_prefix"; then 6721 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6722set dummy ${ac_tool_prefix}lipo; ac_word=$2 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6724$as_echo_n "checking for $ac_word... " >&6; } 6725if ${ac_cv_prog_LIPO+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 if test -n "$LIPO"; then 6729 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6730else 6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6732for as_dir in $PATH 6733do 6734 IFS=$as_save_IFS 6735 test -z "$as_dir" && as_dir=. 6736 for ac_exec_ext in '' $ac_executable_extensions; do 6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6738 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6740 break 2 6741 fi 6742done 6743 done 6744IFS=$as_save_IFS 6745 6746fi 6747fi 6748LIPO=$ac_cv_prog_LIPO 6749if test -n "$LIPO"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6751$as_echo "$LIPO" >&6; } 6752else 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6754$as_echo "no" >&6; } 6755fi 6756 6757 6758fi 6759if test -z "$ac_cv_prog_LIPO"; then 6760 ac_ct_LIPO=$LIPO 6761 # Extract the first word of "lipo", so it can be a program name with args. 6762set dummy lipo; ac_word=$2 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6764$as_echo_n "checking for $ac_word... " >&6; } 6765if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 if test -n "$ac_ct_LIPO"; then 6769 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6770else 6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6772for as_dir in $PATH 6773do 6774 IFS=$as_save_IFS 6775 test -z "$as_dir" && as_dir=. 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6778 ac_cv_prog_ac_ct_LIPO="lipo" 6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782done 6783 done 6784IFS=$as_save_IFS 6785 6786fi 6787fi 6788ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6789if test -n "$ac_ct_LIPO"; then 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6791$as_echo "$ac_ct_LIPO" >&6; } 6792else 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6794$as_echo "no" >&6; } 6795fi 6796 6797 if test "x$ac_ct_LIPO" = x; then 6798 LIPO=":" 6799 else 6800 case $cross_compiling:$ac_tool_warned in 6801yes:) 6802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6804ac_tool_warned=yes ;; 6805esac 6806 LIPO=$ac_ct_LIPO 6807 fi 6808else 6809 LIPO="$ac_cv_prog_LIPO" 6810fi 6811 6812 if test -n "$ac_tool_prefix"; then 6813 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6814set dummy ${ac_tool_prefix}otool; ac_word=$2 6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6816$as_echo_n "checking for $ac_word... " >&6; } 6817if ${ac_cv_prog_OTOOL+:} false; then : 6818 $as_echo_n "(cached) " >&6 6819else 6820 if test -n "$OTOOL"; then 6821 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6822else 6823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6830 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835 done 6836IFS=$as_save_IFS 6837 6838fi 6839fi 6840OTOOL=$ac_cv_prog_OTOOL 6841if test -n "$OTOOL"; then 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6843$as_echo "$OTOOL" >&6; } 6844else 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6846$as_echo "no" >&6; } 6847fi 6848 6849 6850fi 6851if test -z "$ac_cv_prog_OTOOL"; then 6852 ac_ct_OTOOL=$OTOOL 6853 # Extract the first word of "otool", so it can be a program name with args. 6854set dummy otool; ac_word=$2 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856$as_echo_n "checking for $ac_word... " >&6; } 6857if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859else 6860 if test -n "$ac_ct_OTOOL"; then 6861 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6862else 6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864for as_dir in $PATH 6865do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6870 ac_cv_prog_ac_ct_OTOOL="otool" 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874done 6875 done 6876IFS=$as_save_IFS 6877 6878fi 6879fi 6880ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6881if test -n "$ac_ct_OTOOL"; then 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6883$as_echo "$ac_ct_OTOOL" >&6; } 6884else 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6886$as_echo "no" >&6; } 6887fi 6888 6889 if test "x$ac_ct_OTOOL" = x; then 6890 OTOOL=":" 6891 else 6892 case $cross_compiling:$ac_tool_warned in 6893yes:) 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6896ac_tool_warned=yes ;; 6897esac 6898 OTOOL=$ac_ct_OTOOL 6899 fi 6900else 6901 OTOOL="$ac_cv_prog_OTOOL" 6902fi 6903 6904 if test -n "$ac_tool_prefix"; then 6905 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6906set dummy ${ac_tool_prefix}otool64; ac_word=$2 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908$as_echo_n "checking for $ac_word... " >&6; } 6909if ${ac_cv_prog_OTOOL64+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$OTOOL64"; then 6913 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6922 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932OTOOL64=$ac_cv_prog_OTOOL64 6933if test -n "$OTOOL64"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6935$as_echo "$OTOOL64" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 6942fi 6943if test -z "$ac_cv_prog_OTOOL64"; then 6944 ac_ct_OTOOL64=$OTOOL64 6945 # Extract the first word of "otool64", so it can be a program name with args. 6946set dummy otool64; ac_word=$2 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6948$as_echo_n "checking for $ac_word... " >&6; } 6949if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 if test -n "$ac_ct_OTOOL64"; then 6953 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6954else 6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6956for as_dir in $PATH 6957do 6958 IFS=$as_save_IFS 6959 test -z "$as_dir" && as_dir=. 6960 for ac_exec_ext in '' $ac_executable_extensions; do 6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6962 ac_cv_prog_ac_ct_OTOOL64="otool64" 6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6964 break 2 6965 fi 6966done 6967 done 6968IFS=$as_save_IFS 6969 6970fi 6971fi 6972ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6973if test -n "$ac_ct_OTOOL64"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6975$as_echo "$ac_ct_OTOOL64" >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978$as_echo "no" >&6; } 6979fi 6980 6981 if test "x$ac_ct_OTOOL64" = x; then 6982 OTOOL64=":" 6983 else 6984 case $cross_compiling:$ac_tool_warned in 6985yes:) 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6988ac_tool_warned=yes ;; 6989esac 6990 OTOOL64=$ac_ct_OTOOL64 6991 fi 6992else 6993 OTOOL64="$ac_cv_prog_OTOOL64" 6994fi 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7023$as_echo_n "checking for -single_module linker flag... " >&6; } 7024if ${lt_cv_apple_cc_single_mod+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 lt_cv_apple_cc_single_mod=no 7028 if test -z "${LT_MULTI_MODULE}"; then 7029 # By default we will add the -single_module flag. You can override 7030 # by either setting the environment variable LT_MULTI_MODULE 7031 # non-empty at configure time, or by adding -multi_module to the 7032 # link flags. 7033 rm -rf libconftest.dylib* 7034 echo "int foo(void){return 1;}" > conftest.c 7035 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7036-dynamiclib -Wl,-single_module conftest.c" >&5 7037 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7038 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7039 _lt_result=$? 7040 # If there is a non-empty error log, and "single_module" 7041 # appears in it, assume the flag caused a linker warning 7042 if test -s conftest.err && $GREP single_module conftest.err; then 7043 cat conftest.err >&5 7044 # Otherwise, if the output was created with a 0 exit code from 7045 # the compiler, it worked. 7046 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7047 lt_cv_apple_cc_single_mod=yes 7048 else 7049 cat conftest.err >&5 7050 fi 7051 rm -rf libconftest.dylib* 7052 rm -f conftest.* 7053 fi 7054fi 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7056$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7057 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7059$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7060if ${lt_cv_ld_exported_symbols_list+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 lt_cv_ld_exported_symbols_list=no 7064 save_LDFLAGS=$LDFLAGS 7065 echo "_main" > conftest.sym 7066 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069 7070int 7071main () 7072{ 7073 7074 ; 7075 return 0; 7076} 7077_ACEOF 7078if ac_fn_c_try_link "$LINENO"; then : 7079 lt_cv_ld_exported_symbols_list=yes 7080else 7081 lt_cv_ld_exported_symbols_list=no 7082fi 7083rm -f core conftest.err conftest.$ac_objext \ 7084 conftest$ac_exeext conftest.$ac_ext 7085 LDFLAGS="$save_LDFLAGS" 7086 7087fi 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7089$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7090 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7092$as_echo_n "checking for -force_load linker flag... " >&6; } 7093if ${lt_cv_ld_force_load+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 lt_cv_ld_force_load=no 7097 cat > conftest.c << _LT_EOF 7098int forced_loaded() { return 2;} 7099_LT_EOF 7100 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7101 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7102 echo "$AR cru libconftest.a conftest.o" >&5 7103 $AR cru libconftest.a conftest.o 2>&5 7104 echo "$RANLIB libconftest.a" >&5 7105 $RANLIB libconftest.a 2>&5 7106 cat > conftest.c << _LT_EOF 7107int main() { return 0;} 7108_LT_EOF 7109 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7110 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7111 _lt_result=$? 7112 if test -s conftest.err && $GREP force_load conftest.err; then 7113 cat conftest.err >&5 7114 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7115 lt_cv_ld_force_load=yes 7116 else 7117 cat conftest.err >&5 7118 fi 7119 rm -f conftest.err libconftest.a conftest conftest.c 7120 rm -rf conftest.dSYM 7121 7122fi 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7124$as_echo "$lt_cv_ld_force_load" >&6; } 7125 case $host_os in 7126 rhapsody* | darwin1.[012]) 7127 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7128 darwin1.*) 7129 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7130 darwin*) # darwin 5.x on 7131 # if running on 10.5 or later, the deployment target defaults 7132 # to the OS version, if on x86, and 10.4, the deployment 7133 # target defaults to 10.4. Don't you love it? 7134 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7135 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7136 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7137 10.[012]*) 7138 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7139 10.*) 7140 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7141 esac 7142 ;; 7143 esac 7144 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7145 _lt_dar_single_mod='$single_module' 7146 fi 7147 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7148 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7149 else 7150 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7151 fi 7152 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7153 _lt_dsymutil='~$DSYMUTIL $lib || :' 7154 else 7155 _lt_dsymutil= 7156 fi 7157 ;; 7158 esac 7159 7160ac_ext=c 7161ac_cpp='$CPP $CPPFLAGS' 7162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7164ac_compiler_gnu=$ac_cv_c_compiler_gnu 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7166$as_echo_n "checking how to run the C preprocessor... " >&6; } 7167# On Suns, sometimes $CPP names a directory. 7168if test -n "$CPP" && test -d "$CPP"; then 7169 CPP= 7170fi 7171if test -z "$CPP"; then 7172 if ${ac_cv_prog_CPP+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 # Double quotes because CPP needs to be expanded 7176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7177 do 7178 ac_preproc_ok=false 7179for ac_c_preproc_warn_flag in '' yes 7180do 7181 # Use a header file that comes with gcc, so configuring glibc 7182 # with a fresh cross-compiler works. 7183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7184 # <limits.h> exists even on freestanding compilers. 7185 # On the NeXT, cc -E runs the code through the compiler's parser, 7186 # not just through cpp. "Syntax error" is here to catch this case. 7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7188/* end confdefs.h. */ 7189#ifdef __STDC__ 7190# include <limits.h> 7191#else 7192# include <assert.h> 7193#endif 7194 Syntax error 7195_ACEOF 7196if ac_fn_c_try_cpp "$LINENO"; then : 7197 7198else 7199 # Broken: fails on valid input. 7200continue 7201fi 7202rm -f conftest.err conftest.i conftest.$ac_ext 7203 7204 # OK, works on sane cases. Now check whether nonexistent headers 7205 # can be detected and how. 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207/* end confdefs.h. */ 7208#include <ac_nonexistent.h> 7209_ACEOF 7210if ac_fn_c_try_cpp "$LINENO"; then : 7211 # Broken: success on invalid input. 7212continue 7213else 7214 # Passes both tests. 7215ac_preproc_ok=: 7216break 7217fi 7218rm -f conftest.err conftest.i conftest.$ac_ext 7219 7220done 7221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7222rm -f conftest.i conftest.err conftest.$ac_ext 7223if $ac_preproc_ok; then : 7224 break 7225fi 7226 7227 done 7228 ac_cv_prog_CPP=$CPP 7229 7230fi 7231 CPP=$ac_cv_prog_CPP 7232else 7233 ac_cv_prog_CPP=$CPP 7234fi 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7236$as_echo "$CPP" >&6; } 7237ac_preproc_ok=false 7238for ac_c_preproc_warn_flag in '' yes 7239do 7240 # Use a header file that comes with gcc, so configuring glibc 7241 # with a fresh cross-compiler works. 7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7243 # <limits.h> exists even on freestanding compilers. 7244 # On the NeXT, cc -E runs the code through the compiler's parser, 7245 # not just through cpp. "Syntax error" is here to catch this case. 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248#ifdef __STDC__ 7249# include <limits.h> 7250#else 7251# include <assert.h> 7252#endif 7253 Syntax error 7254_ACEOF 7255if ac_fn_c_try_cpp "$LINENO"; then : 7256 7257else 7258 # Broken: fails on valid input. 7259continue 7260fi 7261rm -f conftest.err conftest.i conftest.$ac_ext 7262 7263 # OK, works on sane cases. Now check whether nonexistent headers 7264 # can be detected and how. 7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7266/* end confdefs.h. */ 7267#include <ac_nonexistent.h> 7268_ACEOF 7269if ac_fn_c_try_cpp "$LINENO"; then : 7270 # Broken: success on invalid input. 7271continue 7272else 7273 # Passes both tests. 7274ac_preproc_ok=: 7275break 7276fi 7277rm -f conftest.err conftest.i conftest.$ac_ext 7278 7279done 7280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7281rm -f conftest.i conftest.err conftest.$ac_ext 7282if $ac_preproc_ok; then : 7283 7284else 7285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7287as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7288See \`config.log' for more details" "$LINENO" 5; } 7289fi 7290 7291ac_ext=c 7292ac_cpp='$CPP $CPPFLAGS' 7293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7295ac_compiler_gnu=$ac_cv_c_compiler_gnu 7296 7297 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7299$as_echo_n "checking for ANSI C header files... " >&6; } 7300if ${ac_cv_header_stdc+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304/* end confdefs.h. */ 7305#include <stdlib.h> 7306#include <stdarg.h> 7307#include <string.h> 7308#include <float.h> 7309 7310int 7311main () 7312{ 7313 7314 ; 7315 return 0; 7316} 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO"; then : 7319 ac_cv_header_stdc=yes 7320else 7321 ac_cv_header_stdc=no 7322fi 7323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7324 7325if test $ac_cv_header_stdc = yes; then 7326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329#include <string.h> 7330 7331_ACEOF 7332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7333 $EGREP "memchr" >/dev/null 2>&1; then : 7334 7335else 7336 ac_cv_header_stdc=no 7337fi 7338rm -f conftest* 7339 7340fi 7341 7342if test $ac_cv_header_stdc = yes; then 7343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7345/* end confdefs.h. */ 7346#include <stdlib.h> 7347 7348_ACEOF 7349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7350 $EGREP "free" >/dev/null 2>&1; then : 7351 7352else 7353 ac_cv_header_stdc=no 7354fi 7355rm -f conftest* 7356 7357fi 7358 7359if test $ac_cv_header_stdc = yes; then 7360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7361 if test "$cross_compiling" = yes; then : 7362 : 7363else 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366#include <ctype.h> 7367#include <stdlib.h> 7368#if ((' ' & 0x0FF) == 0x020) 7369# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7370# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7371#else 7372# define ISLOWER(c) \ 7373 (('a' <= (c) && (c) <= 'i') \ 7374 || ('j' <= (c) && (c) <= 'r') \ 7375 || ('s' <= (c) && (c) <= 'z')) 7376# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7377#endif 7378 7379#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7380int 7381main () 7382{ 7383 int i; 7384 for (i = 0; i < 256; i++) 7385 if (XOR (islower (i), ISLOWER (i)) 7386 || toupper (i) != TOUPPER (i)) 7387 return 2; 7388 return 0; 7389} 7390_ACEOF 7391if ac_fn_c_try_run "$LINENO"; then : 7392 7393else 7394 ac_cv_header_stdc=no 7395fi 7396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7397 conftest.$ac_objext conftest.beam conftest.$ac_ext 7398fi 7399 7400fi 7401fi 7402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7403$as_echo "$ac_cv_header_stdc" >&6; } 7404if test $ac_cv_header_stdc = yes; then 7405 7406$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7407 7408fi 7409 7410# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7411for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7412 inttypes.h stdint.h unistd.h 7413do : 7414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7415ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7416" 7417if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7418 cat >>confdefs.h <<_ACEOF 7419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7420_ACEOF 7421 7422fi 7423 7424done 7425 7426 7427for ac_header in dlfcn.h 7428do : 7429 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7430" 7431if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7432 cat >>confdefs.h <<_ACEOF 7433#define HAVE_DLFCN_H 1 7434_ACEOF 7435 7436fi 7437 7438done 7439 7440 7441 7442 7443 7444# Set options 7445 7446 7447 7448 enable_dlopen=no 7449 7450 7451 enable_win32_dll=no 7452 7453 7454 # Check whether --enable-shared was given. 7455if test "${enable_shared+set}" = set; then : 7456 enableval=$enable_shared; p=${PACKAGE-default} 7457 case $enableval in 7458 yes) enable_shared=yes ;; 7459 no) enable_shared=no ;; 7460 *) 7461 enable_shared=no 7462 # Look at the argument we got. We use all the common list separators. 7463 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7464 for pkg in $enableval; do 7465 IFS="$lt_save_ifs" 7466 if test "X$pkg" = "X$p"; then 7467 enable_shared=yes 7468 fi 7469 done 7470 IFS="$lt_save_ifs" 7471 ;; 7472 esac 7473else 7474 enable_shared=yes 7475fi 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 # Check whether --enable-static was given. 7486if test "${enable_static+set}" = set; then : 7487 enableval=$enable_static; p=${PACKAGE-default} 7488 case $enableval in 7489 yes) enable_static=yes ;; 7490 no) enable_static=no ;; 7491 *) 7492 enable_static=no 7493 # Look at the argument we got. We use all the common list separators. 7494 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7495 for pkg in $enableval; do 7496 IFS="$lt_save_ifs" 7497 if test "X$pkg" = "X$p"; then 7498 enable_static=yes 7499 fi 7500 done 7501 IFS="$lt_save_ifs" 7502 ;; 7503 esac 7504else 7505 enable_static=yes 7506fi 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517# Check whether --with-pic was given. 7518if test "${with_pic+set}" = set; then : 7519 withval=$with_pic; lt_p=${PACKAGE-default} 7520 case $withval in 7521 yes|no) pic_mode=$withval ;; 7522 *) 7523 pic_mode=default 7524 # Look at the argument we got. We use all the common list separators. 7525 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7526 for lt_pkg in $withval; do 7527 IFS="$lt_save_ifs" 7528 if test "X$lt_pkg" = "X$lt_p"; then 7529 pic_mode=yes 7530 fi 7531 done 7532 IFS="$lt_save_ifs" 7533 ;; 7534 esac 7535else 7536 pic_mode=default 7537fi 7538 7539 7540test -z "$pic_mode" && pic_mode=default 7541 7542 7543 7544 7545 7546 7547 7548 # Check whether --enable-fast-install was given. 7549if test "${enable_fast_install+set}" = set; then : 7550 enableval=$enable_fast_install; p=${PACKAGE-default} 7551 case $enableval in 7552 yes) enable_fast_install=yes ;; 7553 no) enable_fast_install=no ;; 7554 *) 7555 enable_fast_install=no 7556 # Look at the argument we got. We use all the common list separators. 7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7558 for pkg in $enableval; do 7559 IFS="$lt_save_ifs" 7560 if test "X$pkg" = "X$p"; then 7561 enable_fast_install=yes 7562 fi 7563 done 7564 IFS="$lt_save_ifs" 7565 ;; 7566 esac 7567else 7568 enable_fast_install=yes 7569fi 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581# This can be used to rebuild libtool when needed 7582LIBTOOL_DEPS="$ltmain" 7583 7584# Always use our own libtool. 7585LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616test -z "$LN_S" && LN_S="ln -s" 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631if test -n "${ZSH_VERSION+set}" ; then 7632 setopt NO_GLOB_SUBST 7633fi 7634 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7636$as_echo_n "checking for objdir... " >&6; } 7637if ${lt_cv_objdir+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 rm -f .libs 2>/dev/null 7641mkdir .libs 2>/dev/null 7642if test -d .libs; then 7643 lt_cv_objdir=.libs 7644else 7645 # MS-DOS does not allow filenames that begin with a dot. 7646 lt_cv_objdir=_libs 7647fi 7648rmdir .libs 2>/dev/null 7649fi 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7651$as_echo "$lt_cv_objdir" >&6; } 7652objdir=$lt_cv_objdir 7653 7654 7655 7656 7657 7658cat >>confdefs.h <<_ACEOF 7659#define LT_OBJDIR "$lt_cv_objdir/" 7660_ACEOF 7661 7662 7663 7664 7665case $host_os in 7666aix3*) 7667 # AIX sometimes has problems with the GCC collect2 program. For some 7668 # reason, if we set the COLLECT_NAMES environment variable, the problems 7669 # vanish in a puff of smoke. 7670 if test "X${COLLECT_NAMES+set}" != Xset; then 7671 COLLECT_NAMES= 7672 export COLLECT_NAMES 7673 fi 7674 ;; 7675esac 7676 7677# Global variables: 7678ofile=libtool 7679can_build_shared=yes 7680 7681# All known linkers require a `.a' archive for static linking (except MSVC, 7682# which needs '.lib'). 7683libext=a 7684 7685with_gnu_ld="$lt_cv_prog_gnu_ld" 7686 7687old_CC="$CC" 7688old_CFLAGS="$CFLAGS" 7689 7690# Set sane defaults for various variables 7691test -z "$CC" && CC=cc 7692test -z "$LTCC" && LTCC=$CC 7693test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7694test -z "$LD" && LD=ld 7695test -z "$ac_objext" && ac_objext=o 7696 7697for cc_temp in $compiler""; do 7698 case $cc_temp in 7699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7701 \-*) ;; 7702 *) break;; 7703 esac 7704done 7705cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7706 7707 7708# Only perform the check for file, if the check method requires it 7709test -z "$MAGIC_CMD" && MAGIC_CMD=file 7710case $deplibs_check_method in 7711file_magic*) 7712 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7714$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7715if ${lt_cv_path_MAGIC_CMD+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 case $MAGIC_CMD in 7719[\\/*] | ?:[\\/]*) 7720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7721 ;; 7722*) 7723 lt_save_MAGIC_CMD="$MAGIC_CMD" 7724 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7725 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7726 for ac_dir in $ac_dummy; do 7727 IFS="$lt_save_ifs" 7728 test -z "$ac_dir" && ac_dir=. 7729 if test -f $ac_dir/${ac_tool_prefix}file; then 7730 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7731 if test -n "$file_magic_test_file"; then 7732 case $deplibs_check_method in 7733 "file_magic "*) 7734 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7736 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7737 $EGREP "$file_magic_regex" > /dev/null; then 7738 : 7739 else 7740 cat <<_LT_EOF 1>&2 7741 7742*** Warning: the command libtool uses to detect shared libraries, 7743*** $file_magic_cmd, produces output that libtool cannot recognize. 7744*** The result is that libtool may fail to recognize shared libraries 7745*** as such. This will affect the creation of libtool libraries that 7746*** depend on shared libraries, but programs linked with such libtool 7747*** libraries will work regardless of this problem. Nevertheless, you 7748*** may want to report the problem to your system manager and/or to 7749*** [email protected] 7750 7751_LT_EOF 7752 fi ;; 7753 esac 7754 fi 7755 break 7756 fi 7757 done 7758 IFS="$lt_save_ifs" 7759 MAGIC_CMD="$lt_save_MAGIC_CMD" 7760 ;; 7761esac 7762fi 7763 7764MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7765if test -n "$MAGIC_CMD"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7767$as_echo "$MAGIC_CMD" >&6; } 7768else 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7770$as_echo "no" >&6; } 7771fi 7772 7773 7774 7775 7776 7777if test -z "$lt_cv_path_MAGIC_CMD"; then 7778 if test -n "$ac_tool_prefix"; then 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7780$as_echo_n "checking for file... " >&6; } 7781if ${lt_cv_path_MAGIC_CMD+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 case $MAGIC_CMD in 7785[\\/*] | ?:[\\/]*) 7786 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7787 ;; 7788*) 7789 lt_save_MAGIC_CMD="$MAGIC_CMD" 7790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7791 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7792 for ac_dir in $ac_dummy; do 7793 IFS="$lt_save_ifs" 7794 test -z "$ac_dir" && ac_dir=. 7795 if test -f $ac_dir/file; then 7796 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7797 if test -n "$file_magic_test_file"; then 7798 case $deplibs_check_method in 7799 "file_magic "*) 7800 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7802 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7803 $EGREP "$file_magic_regex" > /dev/null; then 7804 : 7805 else 7806 cat <<_LT_EOF 1>&2 7807 7808*** Warning: the command libtool uses to detect shared libraries, 7809*** $file_magic_cmd, produces output that libtool cannot recognize. 7810*** The result is that libtool may fail to recognize shared libraries 7811*** as such. This will affect the creation of libtool libraries that 7812*** depend on shared libraries, but programs linked with such libtool 7813*** libraries will work regardless of this problem. Nevertheless, you 7814*** may want to report the problem to your system manager and/or to 7815*** [email protected] 7816 7817_LT_EOF 7818 fi ;; 7819 esac 7820 fi 7821 break 7822 fi 7823 done 7824 IFS="$lt_save_ifs" 7825 MAGIC_CMD="$lt_save_MAGIC_CMD" 7826 ;; 7827esac 7828fi 7829 7830MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7831if test -n "$MAGIC_CMD"; then 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7833$as_echo "$MAGIC_CMD" >&6; } 7834else 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7836$as_echo "no" >&6; } 7837fi 7838 7839 7840 else 7841 MAGIC_CMD=: 7842 fi 7843fi 7844 7845 fi 7846 ;; 7847esac 7848 7849# Use C for the default configuration in the libtool script 7850 7851lt_save_CC="$CC" 7852ac_ext=c 7853ac_cpp='$CPP $CPPFLAGS' 7854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7856ac_compiler_gnu=$ac_cv_c_compiler_gnu 7857 7858 7859# Source file extension for C test sources. 7860ac_ext=c 7861 7862# Object file extension for compiled C test sources. 7863objext=o 7864objext=$objext 7865 7866# Code to be used in simple compile tests 7867lt_simple_compile_test_code="int some_variable = 0;" 7868 7869# Code to be used in simple link tests 7870lt_simple_link_test_code='int main(){return(0);}' 7871 7872 7873 7874 7875 7876 7877 7878# If no C compiler was specified, use CC. 7879LTCC=${LTCC-"$CC"} 7880 7881# If no C compiler flags were specified, use CFLAGS. 7882LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7883 7884# Allow CC to be a program name with arguments. 7885compiler=$CC 7886 7887# Save the default compiler, since it gets overwritten when the other 7888# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7889compiler_DEFAULT=$CC 7890 7891# save warnings/boilerplate of simple test code 7892ac_outfile=conftest.$ac_objext 7893echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7894eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7895_lt_compiler_boilerplate=`cat conftest.err` 7896$RM conftest* 7897 7898ac_outfile=conftest.$ac_objext 7899echo "$lt_simple_link_test_code" >conftest.$ac_ext 7900eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7901_lt_linker_boilerplate=`cat conftest.err` 7902$RM -r conftest* 7903 7904 7905if test -n "$compiler"; then 7906 7907lt_prog_compiler_no_builtin_flag= 7908 7909if test "$GCC" = yes; then 7910 case $cc_basename in 7911 nvcc*) 7912 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7913 *) 7914 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7915 esac 7916 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7918$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7919if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7920 $as_echo_n "(cached) " >&6 7921else 7922 lt_cv_prog_compiler_rtti_exceptions=no 7923 ac_outfile=conftest.$ac_objext 7924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7925 lt_compiler_flag="-fno-rtti -fno-exceptions" 7926 # Insert the option either (1) after the last *FLAGS variable, or 7927 # (2) before a word containing "conftest.", or (3) at the end. 7928 # Note that $ac_compile itself does not contain backslashes and begins 7929 # with a dollar sign (not a hyphen), so the echo should work correctly. 7930 # The option is referenced via a variable to avoid confusing sed. 7931 lt_compile=`echo "$ac_compile" | $SED \ 7932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7934 -e 's:$: $lt_compiler_flag:'` 7935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7936 (eval "$lt_compile" 2>conftest.err) 7937 ac_status=$? 7938 cat conftest.err >&5 7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7940 if (exit $ac_status) && test -s "$ac_outfile"; then 7941 # The compiler can only warn and ignore the option if not recognized 7942 # So say no if there are warnings other than the usual output. 7943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7946 lt_cv_prog_compiler_rtti_exceptions=yes 7947 fi 7948 fi 7949 $RM conftest* 7950 7951fi 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7953$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7954 7955if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7956 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7957else 7958 : 7959fi 7960 7961fi 7962 7963 7964 7965 7966 7967 7968 lt_prog_compiler_wl= 7969lt_prog_compiler_pic= 7970lt_prog_compiler_static= 7971 7972 7973 if test "$GCC" = yes; then 7974 lt_prog_compiler_wl='-Wl,' 7975 lt_prog_compiler_static='-static' 7976 7977 case $host_os in 7978 aix*) 7979 # All AIX code is PIC. 7980 if test "$host_cpu" = ia64; then 7981 # AIX 5 now supports IA64 processor 7982 lt_prog_compiler_static='-Bstatic' 7983 fi 7984 ;; 7985 7986 amigaos*) 7987 case $host_cpu in 7988 powerpc) 7989 # see comment about AmigaOS4 .so support 7990 lt_prog_compiler_pic='-fPIC' 7991 ;; 7992 m68k) 7993 # FIXME: we need at least 68020 code to build shared libraries, but 7994 # adding the `-m68020' flag to GCC prevents building anything better, 7995 # like `-m68040'. 7996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7997 ;; 7998 esac 7999 ;; 8000 8001 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8002 # PIC is the default for these OSes. 8003 ;; 8004 8005 mingw* | cygwin* | pw32* | os2* | cegcc*) 8006 # This hack is so that the source file can tell whether it is being 8007 # built for inclusion in a dll (and should export symbols for example). 8008 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8009 # (--disable-auto-import) libraries 8010 lt_prog_compiler_pic='-DDLL_EXPORT' 8011 ;; 8012 8013 darwin* | rhapsody*) 8014 # PIC is the default on this platform 8015 # Common symbols not allowed in MH_DYLIB files 8016 lt_prog_compiler_pic='-fno-common' 8017 ;; 8018 8019 haiku*) 8020 # PIC is the default for Haiku. 8021 # The "-static" flag exists, but is broken. 8022 lt_prog_compiler_static= 8023 ;; 8024 8025 hpux*) 8026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8028 # sets the default TLS model and affects inlining. 8029 case $host_cpu in 8030 hppa*64*) 8031 # +Z the default 8032 ;; 8033 *) 8034 lt_prog_compiler_pic='-fPIC' 8035 ;; 8036 esac 8037 ;; 8038 8039 interix[3-9]*) 8040 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8041 # Instead, we relocate shared libraries at runtime. 8042 ;; 8043 8044 msdosdjgpp*) 8045 # Just because we use GCC doesn't mean we suddenly get shared libraries 8046 # on systems that don't support them. 8047 lt_prog_compiler_can_build_shared=no 8048 enable_shared=no 8049 ;; 8050 8051 *nto* | *qnx*) 8052 # QNX uses GNU C++, but need to define -shared option too, otherwise 8053 # it will coredump. 8054 lt_prog_compiler_pic='-fPIC -shared' 8055 ;; 8056 8057 sysv4*MP*) 8058 if test -d /usr/nec; then 8059 lt_prog_compiler_pic=-Kconform_pic 8060 fi 8061 ;; 8062 8063 *) 8064 lt_prog_compiler_pic='-fPIC' 8065 ;; 8066 esac 8067 8068 case $cc_basename in 8069 nvcc*) # Cuda Compiler Driver 2.2 8070 lt_prog_compiler_wl='-Xlinker ' 8071 if test -n "$lt_prog_compiler_pic"; then 8072 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8073 fi 8074 ;; 8075 esac 8076 else 8077 # PORTME Check for flag to pass linker flags through the system compiler. 8078 case $host_os in 8079 aix*) 8080 lt_prog_compiler_wl='-Wl,' 8081 if test "$host_cpu" = ia64; then 8082 # AIX 5 now supports IA64 processor 8083 lt_prog_compiler_static='-Bstatic' 8084 else 8085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8086 fi 8087 ;; 8088 8089 mingw* | cygwin* | pw32* | os2* | cegcc*) 8090 # This hack is so that the source file can tell whether it is being 8091 # built for inclusion in a dll (and should export symbols for example). 8092 lt_prog_compiler_pic='-DDLL_EXPORT' 8093 ;; 8094 8095 hpux9* | hpux10* | hpux11*) 8096 lt_prog_compiler_wl='-Wl,' 8097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8098 # not for PA HP-UX. 8099 case $host_cpu in 8100 hppa*64*|ia64*) 8101 # +Z the default 8102 ;; 8103 *) 8104 lt_prog_compiler_pic='+Z' 8105 ;; 8106 esac 8107 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8108 lt_prog_compiler_static='${wl}-a ${wl}archive' 8109 ;; 8110 8111 irix5* | irix6* | nonstopux*) 8112 lt_prog_compiler_wl='-Wl,' 8113 # PIC (with -KPIC) is the default. 8114 lt_prog_compiler_static='-non_shared' 8115 ;; 8116 8117 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8118 case $cc_basename in 8119 # old Intel for x86_64 which still supported -KPIC. 8120 ecc*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_pic='-KPIC' 8123 lt_prog_compiler_static='-static' 8124 ;; 8125 # icc used to be incompatible with GCC. 8126 # ICC 10 doesn't accept -KPIC any more. 8127 icc* | ifort*) 8128 lt_prog_compiler_wl='-Wl,' 8129 lt_prog_compiler_pic='-fPIC' 8130 lt_prog_compiler_static='-static' 8131 ;; 8132 # Lahey Fortran 8.1. 8133 lf95*) 8134 lt_prog_compiler_wl='-Wl,' 8135 lt_prog_compiler_pic='--shared' 8136 lt_prog_compiler_static='--static' 8137 ;; 8138 nagfor*) 8139 # NAG Fortran compiler 8140 lt_prog_compiler_wl='-Wl,-Wl,,' 8141 lt_prog_compiler_pic='-PIC' 8142 lt_prog_compiler_static='-Bstatic' 8143 ;; 8144 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8145 # Portland Group compilers (*not* the Pentium gcc compiler, 8146 # which looks to be a dead project) 8147 lt_prog_compiler_wl='-Wl,' 8148 lt_prog_compiler_pic='-fpic' 8149 lt_prog_compiler_static='-Bstatic' 8150 ;; 8151 ccc*) 8152 lt_prog_compiler_wl='-Wl,' 8153 # All Alpha code is PIC. 8154 lt_prog_compiler_static='-non_shared' 8155 ;; 8156 xl* | bgxl* | bgf* | mpixl*) 8157 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8158 lt_prog_compiler_wl='-Wl,' 8159 lt_prog_compiler_pic='-qpic' 8160 lt_prog_compiler_static='-qstaticlink' 8161 ;; 8162 *) 8163 case `$CC -V 2>&1 | sed 5q` in 8164 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8165 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8166 lt_prog_compiler_pic='-KPIC' 8167 lt_prog_compiler_static='-Bstatic' 8168 lt_prog_compiler_wl='' 8169 ;; 8170 *Sun\ F* | *Sun*Fortran*) 8171 lt_prog_compiler_pic='-KPIC' 8172 lt_prog_compiler_static='-Bstatic' 8173 lt_prog_compiler_wl='-Qoption ld ' 8174 ;; 8175 *Sun\ C*) 8176 # Sun C 5.9 8177 lt_prog_compiler_pic='-KPIC' 8178 lt_prog_compiler_static='-Bstatic' 8179 lt_prog_compiler_wl='-Wl,' 8180 ;; 8181 *Intel*\ [CF]*Compiler*) 8182 lt_prog_compiler_wl='-Wl,' 8183 lt_prog_compiler_pic='-fPIC' 8184 lt_prog_compiler_static='-static' 8185 ;; 8186 *Portland\ Group*) 8187 lt_prog_compiler_wl='-Wl,' 8188 lt_prog_compiler_pic='-fpic' 8189 lt_prog_compiler_static='-Bstatic' 8190 ;; 8191 esac 8192 ;; 8193 esac 8194 ;; 8195 8196 newsos6) 8197 lt_prog_compiler_pic='-KPIC' 8198 lt_prog_compiler_static='-Bstatic' 8199 ;; 8200 8201 *nto* | *qnx*) 8202 # QNX uses GNU C++, but need to define -shared option too, otherwise 8203 # it will coredump. 8204 lt_prog_compiler_pic='-fPIC -shared' 8205 ;; 8206 8207 osf3* | osf4* | osf5*) 8208 lt_prog_compiler_wl='-Wl,' 8209 # All OSF/1 code is PIC. 8210 lt_prog_compiler_static='-non_shared' 8211 ;; 8212 8213 rdos*) 8214 lt_prog_compiler_static='-non_shared' 8215 ;; 8216 8217 solaris*) 8218 lt_prog_compiler_pic='-KPIC' 8219 lt_prog_compiler_static='-Bstatic' 8220 case $cc_basename in 8221 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8222 lt_prog_compiler_wl='-Qoption ld ';; 8223 *) 8224 lt_prog_compiler_wl='-Wl,';; 8225 esac 8226 ;; 8227 8228 sunos4*) 8229 lt_prog_compiler_wl='-Qoption ld ' 8230 lt_prog_compiler_pic='-PIC' 8231 lt_prog_compiler_static='-Bstatic' 8232 ;; 8233 8234 sysv4 | sysv4.2uw2* | sysv4.3*) 8235 lt_prog_compiler_wl='-Wl,' 8236 lt_prog_compiler_pic='-KPIC' 8237 lt_prog_compiler_static='-Bstatic' 8238 ;; 8239 8240 sysv4*MP*) 8241 if test -d /usr/nec ;then 8242 lt_prog_compiler_pic='-Kconform_pic' 8243 lt_prog_compiler_static='-Bstatic' 8244 fi 8245 ;; 8246 8247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8248 lt_prog_compiler_wl='-Wl,' 8249 lt_prog_compiler_pic='-KPIC' 8250 lt_prog_compiler_static='-Bstatic' 8251 ;; 8252 8253 unicos*) 8254 lt_prog_compiler_wl='-Wl,' 8255 lt_prog_compiler_can_build_shared=no 8256 ;; 8257 8258 uts4*) 8259 lt_prog_compiler_pic='-pic' 8260 lt_prog_compiler_static='-Bstatic' 8261 ;; 8262 8263 *) 8264 lt_prog_compiler_can_build_shared=no 8265 ;; 8266 esac 8267 fi 8268 8269case $host_os in 8270 # For platforms which do not support PIC, -DPIC is meaningless: 8271 *djgpp*) 8272 lt_prog_compiler_pic= 8273 ;; 8274 *) 8275 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8276 ;; 8277esac 8278 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8280$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8281if ${lt_cv_prog_compiler_pic+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8285fi 8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8287$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8288lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8289 8290# 8291# Check to make sure the PIC flag actually works. 8292# 8293if test -n "$lt_prog_compiler_pic"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8295$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8296if ${lt_cv_prog_compiler_pic_works+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 lt_cv_prog_compiler_pic_works=no 8300 ac_outfile=conftest.$ac_objext 8301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8302 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8303 # Insert the option either (1) after the last *FLAGS variable, or 8304 # (2) before a word containing "conftest.", or (3) at the end. 8305 # Note that $ac_compile itself does not contain backslashes and begins 8306 # with a dollar sign (not a hyphen), so the echo should work correctly. 8307 # The option is referenced via a variable to avoid confusing sed. 8308 lt_compile=`echo "$ac_compile" | $SED \ 8309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8311 -e 's:$: $lt_compiler_flag:'` 8312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8313 (eval "$lt_compile" 2>conftest.err) 8314 ac_status=$? 8315 cat conftest.err >&5 8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 if (exit $ac_status) && test -s "$ac_outfile"; then 8318 # The compiler can only warn and ignore the option if not recognized 8319 # So say no if there are warnings other than the usual output. 8320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8323 lt_cv_prog_compiler_pic_works=yes 8324 fi 8325 fi 8326 $RM conftest* 8327 8328fi 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8330$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8331 8332if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8333 case $lt_prog_compiler_pic in 8334 "" | " "*) ;; 8335 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8336 esac 8337else 8338 lt_prog_compiler_pic= 8339 lt_prog_compiler_can_build_shared=no 8340fi 8341 8342fi 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354# 8355# Check to make sure the static flag actually works. 8356# 8357wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8359$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8360if ${lt_cv_prog_compiler_static_works+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 lt_cv_prog_compiler_static_works=no 8364 save_LDFLAGS="$LDFLAGS" 8365 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8366 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8368 # The linker can only warn and ignore the option if not recognized 8369 # So say no if there are warnings 8370 if test -s conftest.err; then 8371 # Append any errors to the config.log. 8372 cat conftest.err 1>&5 8373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8375 if diff conftest.exp conftest.er2 >/dev/null; then 8376 lt_cv_prog_compiler_static_works=yes 8377 fi 8378 else 8379 lt_cv_prog_compiler_static_works=yes 8380 fi 8381 fi 8382 $RM -r conftest* 8383 LDFLAGS="$save_LDFLAGS" 8384 8385fi 8386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8387$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8388 8389if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8390 : 8391else 8392 lt_prog_compiler_static= 8393fi 8394 8395 8396 8397 8398 8399 8400 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8402$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8403if ${lt_cv_prog_compiler_c_o+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 lt_cv_prog_compiler_c_o=no 8407 $RM -r conftest 2>/dev/null 8408 mkdir conftest 8409 cd conftest 8410 mkdir out 8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8412 8413 lt_compiler_flag="-o out/conftest2.$ac_objext" 8414 # Insert the option either (1) after the last *FLAGS variable, or 8415 # (2) before a word containing "conftest.", or (3) at the end. 8416 # Note that $ac_compile itself does not contain backslashes and begins 8417 # with a dollar sign (not a hyphen), so the echo should work correctly. 8418 lt_compile=`echo "$ac_compile" | $SED \ 8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8421 -e 's:$: $lt_compiler_flag:'` 8422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8423 (eval "$lt_compile" 2>out/conftest.err) 8424 ac_status=$? 8425 cat out/conftest.err >&5 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8428 then 8429 # The compiler can only warn and ignore the option if not recognized 8430 # So say no if there are warnings 8431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8434 lt_cv_prog_compiler_c_o=yes 8435 fi 8436 fi 8437 chmod u+w . 2>&5 8438 $RM conftest* 8439 # SGI C++ compiler will create directory out/ii_files/ for 8440 # template instantiation 8441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8442 $RM out/* && rmdir out 8443 cd .. 8444 $RM -r conftest 8445 $RM conftest* 8446 8447fi 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8449$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8450 8451 8452 8453 8454 8455 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8457$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8458if ${lt_cv_prog_compiler_c_o+:} false; then : 8459 $as_echo_n "(cached) " >&6 8460else 8461 lt_cv_prog_compiler_c_o=no 8462 $RM -r conftest 2>/dev/null 8463 mkdir conftest 8464 cd conftest 8465 mkdir out 8466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8467 8468 lt_compiler_flag="-o out/conftest2.$ac_objext" 8469 # Insert the option either (1) after the last *FLAGS variable, or 8470 # (2) before a word containing "conftest.", or (3) at the end. 8471 # Note that $ac_compile itself does not contain backslashes and begins 8472 # with a dollar sign (not a hyphen), so the echo should work correctly. 8473 lt_compile=`echo "$ac_compile" | $SED \ 8474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8476 -e 's:$: $lt_compiler_flag:'` 8477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8478 (eval "$lt_compile" 2>out/conftest.err) 8479 ac_status=$? 8480 cat out/conftest.err >&5 8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8482 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8483 then 8484 # The compiler can only warn and ignore the option if not recognized 8485 # So say no if there are warnings 8486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8489 lt_cv_prog_compiler_c_o=yes 8490 fi 8491 fi 8492 chmod u+w . 2>&5 8493 $RM conftest* 8494 # SGI C++ compiler will create directory out/ii_files/ for 8495 # template instantiation 8496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8497 $RM out/* && rmdir out 8498 cd .. 8499 $RM -r conftest 8500 $RM conftest* 8501 8502fi 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8504$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8505 8506 8507 8508 8509hard_links="nottested" 8510if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8511 # do not overwrite the value of need_locks provided by the user 8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8513$as_echo_n "checking if we can lock with hard links... " >&6; } 8514 hard_links=yes 8515 $RM conftest* 8516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8517 touch conftest.a 8518 ln conftest.a conftest.b 2>&5 || hard_links=no 8519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8521$as_echo "$hard_links" >&6; } 8522 if test "$hard_links" = no; then 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8524$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8525 need_locks=warn 8526 fi 8527else 8528 need_locks=no 8529fi 8530 8531 8532 8533 8534 8535 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8537$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8538 8539 runpath_var= 8540 allow_undefined_flag= 8541 always_export_symbols=no 8542 archive_cmds= 8543 archive_expsym_cmds= 8544 compiler_needs_object=no 8545 enable_shared_with_static_runtimes=no 8546 export_dynamic_flag_spec= 8547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8548 hardcode_automatic=no 8549 hardcode_direct=no 8550 hardcode_direct_absolute=no 8551 hardcode_libdir_flag_spec= 8552 hardcode_libdir_separator= 8553 hardcode_minus_L=no 8554 hardcode_shlibpath_var=unsupported 8555 inherit_rpath=no 8556 link_all_deplibs=unknown 8557 module_cmds= 8558 module_expsym_cmds= 8559 old_archive_from_new_cmds= 8560 old_archive_from_expsyms_cmds= 8561 thread_safe_flag_spec= 8562 whole_archive_flag_spec= 8563 # include_expsyms should be a list of space-separated symbols to be *always* 8564 # included in the symbol list 8565 include_expsyms= 8566 # exclude_expsyms can be an extended regexp of symbols to exclude 8567 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8569 # as well as any symbol that contains `d'. 8570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8572 # platforms (ab)use it in PIC code, but their linkers get confused if 8573 # the symbol is explicitly referenced. Since portable code cannot 8574 # rely on this symbol name, it's probably fine to never include it in 8575 # preloaded symbol tables. 8576 # Exclude shared library initialization/finalization symbols. 8577 extract_expsyms_cmds= 8578 8579 case $host_os in 8580 cygwin* | mingw* | pw32* | cegcc*) 8581 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8582 # When not using gcc, we currently assume that we are using 8583 # Microsoft Visual C++. 8584 if test "$GCC" != yes; then 8585 with_gnu_ld=no 8586 fi 8587 ;; 8588 interix*) 8589 # we just hope/assume this is gcc and not c89 (= MSVC++) 8590 with_gnu_ld=yes 8591 ;; 8592 openbsd*) 8593 with_gnu_ld=no 8594 ;; 8595 esac 8596 8597 ld_shlibs=yes 8598 8599 # On some targets, GNU ld is compatible enough with the native linker 8600 # that we're better off using the native interface for both. 8601 lt_use_gnu_ld_interface=no 8602 if test "$with_gnu_ld" = yes; then 8603 case $host_os in 8604 aix*) 8605 # The AIX port of GNU ld has always aspired to compatibility 8606 # with the native linker. However, as the warning in the GNU ld 8607 # block says, versions before 2.19.5* couldn't really create working 8608 # shared libraries, regardless of the interface used. 8609 case `$LD -v 2>&1` in 8610 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8611 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8612 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8613 *) 8614 lt_use_gnu_ld_interface=yes 8615 ;; 8616 esac 8617 ;; 8618 *) 8619 lt_use_gnu_ld_interface=yes 8620 ;; 8621 esac 8622 fi 8623 8624 if test "$lt_use_gnu_ld_interface" = yes; then 8625 # If archive_cmds runs LD, not CC, wlarc should be empty 8626 wlarc='${wl}' 8627 8628 # Set some defaults for GNU ld with shared library support. These 8629 # are reset later if shared libraries are not supported. Putting them 8630 # here allows them to be overridden if necessary. 8631 runpath_var=LD_RUN_PATH 8632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8633 export_dynamic_flag_spec='${wl}--export-dynamic' 8634 # ancient GNU ld didn't support --whole-archive et. al. 8635 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8636 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8637 else 8638 whole_archive_flag_spec= 8639 fi 8640 supports_anon_versioning=no 8641 case `$LD -v 2>&1` in 8642 *GNU\ gold*) supports_anon_versioning=yes ;; 8643 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8644 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8645 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8646 *\ 2.11.*) ;; # other 2.11 versions 8647 *) supports_anon_versioning=yes ;; 8648 esac 8649 8650 # See if GNU ld supports shared libraries. 8651 case $host_os in 8652 aix[3-9]*) 8653 # On AIX/PPC, the GNU linker is very broken 8654 if test "$host_cpu" != ia64; then 8655 ld_shlibs=no 8656 cat <<_LT_EOF 1>&2 8657 8658*** Warning: the GNU linker, at least up to release 2.19, is reported 8659*** to be unable to reliably create shared libraries on AIX. 8660*** Therefore, libtool is disabling shared libraries support. If you 8661*** really care for shared libraries, you may want to install binutils 8662*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8663*** You will then need to restart the configuration process. 8664 8665_LT_EOF 8666 fi 8667 ;; 8668 8669 amigaos*) 8670 case $host_cpu in 8671 powerpc) 8672 # see comment about AmigaOS4 .so support 8673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8674 archive_expsym_cmds='' 8675 ;; 8676 m68k) 8677 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)' 8678 hardcode_libdir_flag_spec='-L$libdir' 8679 hardcode_minus_L=yes 8680 ;; 8681 esac 8682 ;; 8683 8684 beos*) 8685 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8686 allow_undefined_flag=unsupported 8687 # Joseph Beckenbach <[email protected]> says some releases of gcc 8688 # support --undefined. This deserves some investigation. FIXME 8689 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8690 else 8691 ld_shlibs=no 8692 fi 8693 ;; 8694 8695 cygwin* | mingw* | pw32* | cegcc*) 8696 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8697 # as there is no search path for DLLs. 8698 hardcode_libdir_flag_spec='-L$libdir' 8699 export_dynamic_flag_spec='${wl}--export-all-symbols' 8700 allow_undefined_flag=unsupported 8701 always_export_symbols=no 8702 enable_shared_with_static_runtimes=yes 8703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8704 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8705 8706 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8708 # If the export-symbols file already is a .def file (1st line 8709 # is EXPORTS), use it as is; otherwise, prepend... 8710 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8711 cp $export_symbols $output_objdir/$soname.def; 8712 else 8713 echo EXPORTS > $output_objdir/$soname.def; 8714 cat $export_symbols >> $output_objdir/$soname.def; 8715 fi~ 8716 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8717 else 8718 ld_shlibs=no 8719 fi 8720 ;; 8721 8722 haiku*) 8723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8724 link_all_deplibs=yes 8725 ;; 8726 8727 interix[3-9]*) 8728 hardcode_direct=no 8729 hardcode_shlibpath_var=no 8730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8731 export_dynamic_flag_spec='${wl}-E' 8732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8733 # Instead, shared libraries are loaded at an image base (0x10000000 by 8734 # default) and relocated if they conflict, which is a slow very memory 8735 # consuming and fragmenting process. To avoid this, we pick a random, 8736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8737 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8739 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' 8740 ;; 8741 8742 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8743 tmp_diet=no 8744 if test "$host_os" = linux-dietlibc; then 8745 case $cc_basename in 8746 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8747 esac 8748 fi 8749 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8750 && test "$tmp_diet" = no 8751 then 8752 tmp_addflag=' $pic_flag' 8753 tmp_sharedflag='-shared' 8754 case $cc_basename,$host_cpu in 8755 pgcc*) # Portland Group C compiler 8756 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' 8757 tmp_addflag=' $pic_flag' 8758 ;; 8759 pgf77* | pgf90* | pgf95* | pgfortran*) 8760 # Portland Group f77 and f90 compilers 8761 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' 8762 tmp_addflag=' $pic_flag -Mnomain' ;; 8763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8764 tmp_addflag=' -i_dynamic' ;; 8765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8766 tmp_addflag=' -i_dynamic -nofor_main' ;; 8767 ifc* | ifort*) # Intel Fortran compiler 8768 tmp_addflag=' -nofor_main' ;; 8769 lf95*) # Lahey Fortran 8.1 8770 whole_archive_flag_spec= 8771 tmp_sharedflag='--shared' ;; 8772 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8773 tmp_sharedflag='-qmkshrobj' 8774 tmp_addflag= ;; 8775 nvcc*) # Cuda Compiler Driver 2.2 8776 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' 8777 compiler_needs_object=yes 8778 ;; 8779 esac 8780 case `$CC -V 2>&1 | sed 5q` in 8781 *Sun\ C*) # Sun C 5.9 8782 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' 8783 compiler_needs_object=yes 8784 tmp_sharedflag='-G' ;; 8785 *Sun\ F*) # Sun Fortran 8.3 8786 tmp_sharedflag='-G' ;; 8787 esac 8788 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8789 8790 if test "x$supports_anon_versioning" = xyes; then 8791 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8793 echo "local: *; };" >> $output_objdir/$libname.ver~ 8794 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8795 fi 8796 8797 case $cc_basename in 8798 xlf* | bgf* | bgxlf* | mpixlf*) 8799 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8800 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8801 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8802 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8803 if test "x$supports_anon_versioning" = xyes; then 8804 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8806 echo "local: *; };" >> $output_objdir/$libname.ver~ 8807 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8808 fi 8809 ;; 8810 esac 8811 else 8812 ld_shlibs=no 8813 fi 8814 ;; 8815 8816 netbsd*) 8817 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8818 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8819 wlarc= 8820 else 8821 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8822 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8823 fi 8824 ;; 8825 8826 solaris*) 8827 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8828 ld_shlibs=no 8829 cat <<_LT_EOF 1>&2 8830 8831*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8832*** create shared libraries on Solaris systems. Therefore, libtool 8833*** is disabling shared libraries support. We urge you to upgrade GNU 8834*** binutils to release 2.9.1 or newer. Another option is to modify 8835*** your PATH or compiler configuration so that the native linker is 8836*** used, and then restart. 8837 8838_LT_EOF 8839 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8841 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8842 else 8843 ld_shlibs=no 8844 fi 8845 ;; 8846 8847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8848 case `$LD -v 2>&1` in 8849 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8850 ld_shlibs=no 8851 cat <<_LT_EOF 1>&2 8852 8853*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8854*** reliably create shared libraries on SCO systems. Therefore, libtool 8855*** is disabling shared libraries support. We urge you to upgrade GNU 8856*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8857*** your PATH or compiler configuration so that the native linker is 8858*** used, and then restart. 8859 8860_LT_EOF 8861 ;; 8862 *) 8863 # For security reasons, it is highly recommended that you always 8864 # use absolute paths for naming shared libraries, and exclude the 8865 # DT_RUNPATH tag from executables and libraries. But doing so 8866 # requires that you compile everything twice, which is a pain. 8867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8871 else 8872 ld_shlibs=no 8873 fi 8874 ;; 8875 esac 8876 ;; 8877 8878 sunos4*) 8879 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8880 wlarc= 8881 hardcode_direct=yes 8882 hardcode_shlibpath_var=no 8883 ;; 8884 8885 *) 8886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8888 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8889 else 8890 ld_shlibs=no 8891 fi 8892 ;; 8893 esac 8894 8895 if test "$ld_shlibs" = no; then 8896 runpath_var= 8897 hardcode_libdir_flag_spec= 8898 export_dynamic_flag_spec= 8899 whole_archive_flag_spec= 8900 fi 8901 else 8902 # PORTME fill in a description of your system's linker (not GNU ld) 8903 case $host_os in 8904 aix3*) 8905 allow_undefined_flag=unsupported 8906 always_export_symbols=yes 8907 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' 8908 # Note: this linker hardcodes the directories in LIBPATH if there 8909 # are no directories specified by -L. 8910 hardcode_minus_L=yes 8911 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8912 # Neither direct hardcoding nor static linking is supported with a 8913 # broken collect2. 8914 hardcode_direct=unsupported 8915 fi 8916 ;; 8917 8918 aix[4-9]*) 8919 if test "$host_cpu" = ia64; then 8920 # On IA64, the linker does run time linking by default, so we don't 8921 # have to do anything special. 8922 aix_use_runtimelinking=no 8923 exp_sym_flag='-Bexport' 8924 no_entry_flag="" 8925 else 8926 # If we're using GNU nm, then we don't want the "-C" option. 8927 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8928 # Also, AIX nm treats weak defined symbols like other global 8929 # defined symbols, whereas GNU nm marks them as "W". 8930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8931 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' 8932 else 8933 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8934 fi 8935 aix_use_runtimelinking=no 8936 8937 # Test if we are trying to use run time linking or normal 8938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8939 # need to do runtime linking. 8940 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8941 for ld_flag in $LDFLAGS; do 8942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8943 aix_use_runtimelinking=yes 8944 break 8945 fi 8946 done 8947 ;; 8948 esac 8949 8950 exp_sym_flag='-bexport' 8951 no_entry_flag='-bnoentry' 8952 fi 8953 8954 # When large executables or shared objects are built, AIX ld can 8955 # have problems creating the table of contents. If linking a library 8956 # or program results in "error TOC overflow" add -mminimal-toc to 8957 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8958 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8959 8960 archive_cmds='' 8961 hardcode_direct=yes 8962 hardcode_direct_absolute=yes 8963 hardcode_libdir_separator=':' 8964 link_all_deplibs=yes 8965 file_list_spec='${wl}-f,' 8966 8967 if test "$GCC" = yes; then 8968 case $host_os in aix4.[012]|aix4.[012].*) 8969 # We only want to do this on AIX 4.2 and lower, the check 8970 # below for broken collect2 doesn't work under 4.3+ 8971 collect2name=`${CC} -print-prog-name=collect2` 8972 if test -f "$collect2name" && 8973 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8974 then 8975 # We have reworked collect2 8976 : 8977 else 8978 # We have old collect2 8979 hardcode_direct=unsupported 8980 # It fails to find uninstalled libraries when the uninstalled 8981 # path is not listed in the libpath. Setting hardcode_minus_L 8982 # to unsupported forces relinking 8983 hardcode_minus_L=yes 8984 hardcode_libdir_flag_spec='-L$libdir' 8985 hardcode_libdir_separator= 8986 fi 8987 ;; 8988 esac 8989 shared_flag='-shared' 8990 if test "$aix_use_runtimelinking" = yes; then 8991 shared_flag="$shared_flag "'${wl}-G' 8992 fi 8993 else 8994 # not using gcc 8995 if test "$host_cpu" = ia64; then 8996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8997 # chokes on -Wl,-G. The following line is correct: 8998 shared_flag='-G' 8999 else 9000 if test "$aix_use_runtimelinking" = yes; then 9001 shared_flag='${wl}-G' 9002 else 9003 shared_flag='${wl}-bM:SRE' 9004 fi 9005 fi 9006 fi 9007 9008 export_dynamic_flag_spec='${wl}-bexpall' 9009 # It seems that -bexpall does not export symbols beginning with 9010 # underscore (_), so it is better to generate a list of symbols to export. 9011 always_export_symbols=yes 9012 if test "$aix_use_runtimelinking" = yes; then 9013 # Warning - without using the other runtime loading flags (-brtl), 9014 # -berok will link without error, but may produce a broken library. 9015 allow_undefined_flag='-berok' 9016 # Determine the default libpath from the value encoded in an 9017 # empty executable. 9018 if test "${lt_cv_aix_libpath+set}" = set; then 9019 aix_libpath=$lt_cv_aix_libpath 9020else 9021 if ${lt_cv_aix_libpath_+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026 9027int 9028main () 9029{ 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 9037 lt_aix_libpath_sed=' 9038 /Import File Strings/,/^$/ { 9039 /^0/ { 9040 s/^0 *\([^ ]*\) *$/\1/ 9041 p 9042 } 9043 }' 9044 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9045 # Check for a 64-bit object if we didn't find anything. 9046 if test -z "$lt_cv_aix_libpath_"; then 9047 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9048 fi 9049fi 9050rm -f core conftest.err conftest.$ac_objext \ 9051 conftest$ac_exeext conftest.$ac_ext 9052 if test -z "$lt_cv_aix_libpath_"; then 9053 lt_cv_aix_libpath_="/usr/lib:/lib" 9054 fi 9055 9056fi 9057 9058 aix_libpath=$lt_cv_aix_libpath_ 9059fi 9060 9061 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9062 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" 9063 else 9064 if test "$host_cpu" = ia64; then 9065 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9066 allow_undefined_flag="-z nodefs" 9067 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" 9068 else 9069 # Determine the default libpath from the value encoded in an 9070 # empty executable. 9071 if test "${lt_cv_aix_libpath+set}" = set; then 9072 aix_libpath=$lt_cv_aix_libpath 9073else 9074 if ${lt_cv_aix_libpath_+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078/* end confdefs.h. */ 9079 9080int 9081main () 9082{ 9083 9084 ; 9085 return 0; 9086} 9087_ACEOF 9088if ac_fn_c_try_link "$LINENO"; then : 9089 9090 lt_aix_libpath_sed=' 9091 /Import File Strings/,/^$/ { 9092 /^0/ { 9093 s/^0 *\([^ ]*\) *$/\1/ 9094 p 9095 } 9096 }' 9097 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9098 # Check for a 64-bit object if we didn't find anything. 9099 if test -z "$lt_cv_aix_libpath_"; then 9100 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9101 fi 9102fi 9103rm -f core conftest.err conftest.$ac_objext \ 9104 conftest$ac_exeext conftest.$ac_ext 9105 if test -z "$lt_cv_aix_libpath_"; then 9106 lt_cv_aix_libpath_="/usr/lib:/lib" 9107 fi 9108 9109fi 9110 9111 aix_libpath=$lt_cv_aix_libpath_ 9112fi 9113 9114 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9115 # Warning - without using the other run time loading flags, 9116 # -berok will link without error, but may produce a broken library. 9117 no_undefined_flag=' ${wl}-bernotok' 9118 allow_undefined_flag=' ${wl}-berok' 9119 if test "$with_gnu_ld" = yes; then 9120 # We only use this code for GNU lds that support --whole-archive. 9121 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9122 else 9123 # Exported symbols can be pulled into shared objects from archives 9124 whole_archive_flag_spec='$convenience' 9125 fi 9126 archive_cmds_need_lc=yes 9127 # This is similar to how AIX traditionally builds its shared libraries. 9128 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' 9129 fi 9130 fi 9131 ;; 9132 9133 amigaos*) 9134 case $host_cpu in 9135 powerpc) 9136 # see comment about AmigaOS4 .so support 9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9138 archive_expsym_cmds='' 9139 ;; 9140 m68k) 9141 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)' 9142 hardcode_libdir_flag_spec='-L$libdir' 9143 hardcode_minus_L=yes 9144 ;; 9145 esac 9146 ;; 9147 9148 bsdi[45]*) 9149 export_dynamic_flag_spec=-rdynamic 9150 ;; 9151 9152 cygwin* | mingw* | pw32* | cegcc*) 9153 # When not using gcc, we currently assume that we are using 9154 # Microsoft Visual C++. 9155 # hardcode_libdir_flag_spec is actually meaningless, as there is 9156 # no search path for DLLs. 9157 case $cc_basename in 9158 cl*) 9159 # Native MSVC 9160 hardcode_libdir_flag_spec=' ' 9161 allow_undefined_flag=unsupported 9162 always_export_symbols=yes 9163 file_list_spec='@' 9164 # Tell ltmain to make .lib files, not .a files. 9165 libext=lib 9166 # Tell ltmain to make .dll files, not .so files. 9167 shrext_cmds=".dll" 9168 # FIXME: Setting linknames here is a bad hack. 9169 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9170 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9171 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9172 else 9173 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9174 fi~ 9175 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9176 linknames=' 9177 # The linker will not automatically build a static lib if we build a DLL. 9178 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9179 enable_shared_with_static_runtimes=yes 9180 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9182 # Don't use ranlib 9183 old_postinstall_cmds='chmod 644 $oldlib' 9184 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9185 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9186 case $lt_outputfile in 9187 *.exe|*.EXE) ;; 9188 *) 9189 lt_outputfile="$lt_outputfile.exe" 9190 lt_tool_outputfile="$lt_tool_outputfile.exe" 9191 ;; 9192 esac~ 9193 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9194 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9195 $RM "$lt_outputfile.manifest"; 9196 fi' 9197 ;; 9198 *) 9199 # Assume MSVC wrapper 9200 hardcode_libdir_flag_spec=' ' 9201 allow_undefined_flag=unsupported 9202 # Tell ltmain to make .lib files, not .a files. 9203 libext=lib 9204 # Tell ltmain to make .dll files, not .so files. 9205 shrext_cmds=".dll" 9206 # FIXME: Setting linknames here is a bad hack. 9207 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9208 # The linker will automatically build a .lib file if we build a DLL. 9209 old_archive_from_new_cmds='true' 9210 # FIXME: Should let the user specify the lib program. 9211 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9212 enable_shared_with_static_runtimes=yes 9213 ;; 9214 esac 9215 ;; 9216 9217 darwin* | rhapsody*) 9218 9219 9220 archive_cmds_need_lc=no 9221 hardcode_direct=no 9222 hardcode_automatic=yes 9223 hardcode_shlibpath_var=unsupported 9224 if test "$lt_cv_ld_force_load" = "yes"; then 9225 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\"`' 9226 9227 else 9228 whole_archive_flag_spec='' 9229 fi 9230 link_all_deplibs=yes 9231 allow_undefined_flag="$_lt_dar_allow_undefined" 9232 case $cc_basename in 9233 ifort*) _lt_dar_can_shared=yes ;; 9234 *) _lt_dar_can_shared=$GCC ;; 9235 esac 9236 if test "$_lt_dar_can_shared" = "yes"; then 9237 output_verbose_link_cmd=func_echo_all 9238 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9239 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9240 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}" 9241 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}" 9242 9243 else 9244 ld_shlibs=no 9245 fi 9246 9247 ;; 9248 9249 dgux*) 9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9251 hardcode_libdir_flag_spec='-L$libdir' 9252 hardcode_shlibpath_var=no 9253 ;; 9254 9255 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9256 # support. Future versions do this automatically, but an explicit c++rt0.o 9257 # does not break anything, and helps significantly (at the cost of a little 9258 # extra space). 9259 freebsd2.2*) 9260 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9261 hardcode_libdir_flag_spec='-R$libdir' 9262 hardcode_direct=yes 9263 hardcode_shlibpath_var=no 9264 ;; 9265 9266 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9267 freebsd2.*) 9268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9269 hardcode_direct=yes 9270 hardcode_minus_L=yes 9271 hardcode_shlibpath_var=no 9272 ;; 9273 9274 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9275 freebsd* | dragonfly*) 9276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9277 hardcode_libdir_flag_spec='-R$libdir' 9278 hardcode_direct=yes 9279 hardcode_shlibpath_var=no 9280 ;; 9281 9282 hpux9*) 9283 if test "$GCC" = yes; then 9284 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9285 else 9286 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' 9287 fi 9288 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9289 hardcode_libdir_separator=: 9290 hardcode_direct=yes 9291 9292 # hardcode_minus_L: Not really in the search PATH, 9293 # but as the default location of the library. 9294 hardcode_minus_L=yes 9295 export_dynamic_flag_spec='${wl}-E' 9296 ;; 9297 9298 hpux10*) 9299 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9300 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9301 else 9302 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9303 fi 9304 if test "$with_gnu_ld" = no; then 9305 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9306 hardcode_libdir_separator=: 9307 hardcode_direct=yes 9308 hardcode_direct_absolute=yes 9309 export_dynamic_flag_spec='${wl}-E' 9310 # hardcode_minus_L: Not really in the search PATH, 9311 # but as the default location of the library. 9312 hardcode_minus_L=yes 9313 fi 9314 ;; 9315 9316 hpux11*) 9317 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9318 case $host_cpu in 9319 hppa*64*) 9320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9321 ;; 9322 ia64*) 9323 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9324 ;; 9325 *) 9326 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9327 ;; 9328 esac 9329 else 9330 case $host_cpu in 9331 hppa*64*) 9332 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9333 ;; 9334 ia64*) 9335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9336 ;; 9337 *) 9338 9339 # Older versions of the 11.00 compiler do not understand -b yet 9340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9342$as_echo_n "checking if $CC understands -b... " >&6; } 9343if ${lt_cv_prog_compiler__b+:} false; then : 9344 $as_echo_n "(cached) " >&6 9345else 9346 lt_cv_prog_compiler__b=no 9347 save_LDFLAGS="$LDFLAGS" 9348 LDFLAGS="$LDFLAGS -b" 9349 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9351 # The linker can only warn and ignore the option if not recognized 9352 # So say no if there are warnings 9353 if test -s conftest.err; then 9354 # Append any errors to the config.log. 9355 cat conftest.err 1>&5 9356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9358 if diff conftest.exp conftest.er2 >/dev/null; then 9359 lt_cv_prog_compiler__b=yes 9360 fi 9361 else 9362 lt_cv_prog_compiler__b=yes 9363 fi 9364 fi 9365 $RM -r conftest* 9366 LDFLAGS="$save_LDFLAGS" 9367 9368fi 9369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9370$as_echo "$lt_cv_prog_compiler__b" >&6; } 9371 9372if test x"$lt_cv_prog_compiler__b" = xyes; then 9373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9374else 9375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9376fi 9377 9378 ;; 9379 esac 9380 fi 9381 if test "$with_gnu_ld" = no; then 9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9383 hardcode_libdir_separator=: 9384 9385 case $host_cpu in 9386 hppa*64*|ia64*) 9387 hardcode_direct=no 9388 hardcode_shlibpath_var=no 9389 ;; 9390 *) 9391 hardcode_direct=yes 9392 hardcode_direct_absolute=yes 9393 export_dynamic_flag_spec='${wl}-E' 9394 9395 # hardcode_minus_L: Not really in the search PATH, 9396 # but as the default location of the library. 9397 hardcode_minus_L=yes 9398 ;; 9399 esac 9400 fi 9401 ;; 9402 9403 irix5* | irix6* | nonstopux*) 9404 if test "$GCC" = yes; then 9405 archive_cmds='$CC -shared $pic_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' 9406 # Try to use the -exported_symbol ld option, if it does not 9407 # work, assume that -exports_file does not work either and 9408 # implicitly export all symbols. 9409 # This should be the same for all languages, so no per-tag cache variable. 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9411$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9412if ${lt_cv_irix_exported_symbol+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 save_LDFLAGS="$LDFLAGS" 9416 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419int foo (void) { return 0; } 9420_ACEOF 9421if ac_fn_c_try_link "$LINENO"; then : 9422 lt_cv_irix_exported_symbol=yes 9423else 9424 lt_cv_irix_exported_symbol=no 9425fi 9426rm -f core conftest.err conftest.$ac_objext \ 9427 conftest$ac_exeext conftest.$ac_ext 9428 LDFLAGS="$save_LDFLAGS" 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9431$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9432 if test "$lt_cv_irix_exported_symbol" = yes; then 9433 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' 9434 fi 9435 else 9436 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' 9437 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' 9438 fi 9439 archive_cmds_need_lc='no' 9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9441 hardcode_libdir_separator=: 9442 inherit_rpath=yes 9443 link_all_deplibs=yes 9444 ;; 9445 9446 netbsd*) 9447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9449 else 9450 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9451 fi 9452 hardcode_libdir_flag_spec='-R$libdir' 9453 hardcode_direct=yes 9454 hardcode_shlibpath_var=no 9455 ;; 9456 9457 newsos6) 9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9459 hardcode_direct=yes 9460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9461 hardcode_libdir_separator=: 9462 hardcode_shlibpath_var=no 9463 ;; 9464 9465 *nto* | *qnx*) 9466 ;; 9467 9468 openbsd*) 9469 if test -f /usr/libexec/ld.so; then 9470 hardcode_direct=yes 9471 hardcode_shlibpath_var=no 9472 hardcode_direct_absolute=yes 9473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9475 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9477 export_dynamic_flag_spec='${wl}-E' 9478 else 9479 case $host_os in 9480 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9482 hardcode_libdir_flag_spec='-R$libdir' 9483 ;; 9484 *) 9485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9487 ;; 9488 esac 9489 fi 9490 else 9491 ld_shlibs=no 9492 fi 9493 ;; 9494 9495 os2*) 9496 hardcode_libdir_flag_spec='-L$libdir' 9497 hardcode_minus_L=yes 9498 allow_undefined_flag=unsupported 9499 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' 9500 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9501 ;; 9502 9503 osf3*) 9504 if test "$GCC" = yes; then 9505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9506 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' 9507 else 9508 allow_undefined_flag=' -expect_unresolved \*' 9509 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' 9510 fi 9511 archive_cmds_need_lc='no' 9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9513 hardcode_libdir_separator=: 9514 ;; 9515 9516 osf4* | osf5*) # as osf3* with the addition of -msym flag 9517 if test "$GCC" = yes; then 9518 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9519 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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' 9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9521 else 9522 allow_undefined_flag=' -expect_unresolved \*' 9523 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' 9524 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~ 9525 $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' 9526 9527 # Both c and cxx compiler support -rpath directly 9528 hardcode_libdir_flag_spec='-rpath $libdir' 9529 fi 9530 archive_cmds_need_lc='no' 9531 hardcode_libdir_separator=: 9532 ;; 9533 9534 solaris*) 9535 no_undefined_flag=' -z defs' 9536 if test "$GCC" = yes; then 9537 wlarc='${wl}' 9538 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9540 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9541 else 9542 case `$CC -V 2>&1` in 9543 *"Compilers 5.0"*) 9544 wlarc='' 9545 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9547 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9548 ;; 9549 *) 9550 wlarc='${wl}' 9551 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9553 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9554 ;; 9555 esac 9556 fi 9557 hardcode_libdir_flag_spec='-R$libdir' 9558 hardcode_shlibpath_var=no 9559 case $host_os in 9560 solaris2.[0-5] | solaris2.[0-5].*) ;; 9561 *) 9562 # The compiler driver will combine and reorder linker options, 9563 # but understands `-z linker_flag'. GCC discards it without `$wl', 9564 # but is careful enough not to reorder. 9565 # Supported since Solaris 2.6 (maybe 2.5.1?) 9566 if test "$GCC" = yes; then 9567 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9568 else 9569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9570 fi 9571 ;; 9572 esac 9573 link_all_deplibs=yes 9574 ;; 9575 9576 sunos4*) 9577 if test "x$host_vendor" = xsequent; then 9578 # Use $CC to link under sequent, because it throws in some extra .o 9579 # files that make .init and .fini sections work. 9580 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9581 else 9582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9583 fi 9584 hardcode_libdir_flag_spec='-L$libdir' 9585 hardcode_direct=yes 9586 hardcode_minus_L=yes 9587 hardcode_shlibpath_var=no 9588 ;; 9589 9590 sysv4) 9591 case $host_vendor in 9592 sni) 9593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9594 hardcode_direct=yes # is this really true??? 9595 ;; 9596 siemens) 9597 ## LD is ld it makes a PLAMLIB 9598 ## CC just makes a GrossModule. 9599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9600 reload_cmds='$CC -r -o $output$reload_objs' 9601 hardcode_direct=no 9602 ;; 9603 motorola) 9604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9606 ;; 9607 esac 9608 runpath_var='LD_RUN_PATH' 9609 hardcode_shlibpath_var=no 9610 ;; 9611 9612 sysv4.3*) 9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9614 hardcode_shlibpath_var=no 9615 export_dynamic_flag_spec='-Bexport' 9616 ;; 9617 9618 sysv4*MP*) 9619 if test -d /usr/nec; then 9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9621 hardcode_shlibpath_var=no 9622 runpath_var=LD_RUN_PATH 9623 hardcode_runpath_var=yes 9624 ld_shlibs=yes 9625 fi 9626 ;; 9627 9628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9629 no_undefined_flag='${wl}-z,text' 9630 archive_cmds_need_lc=no 9631 hardcode_shlibpath_var=no 9632 runpath_var='LD_RUN_PATH' 9633 9634 if test "$GCC" = yes; then 9635 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9636 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 else 9638 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9639 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9640 fi 9641 ;; 9642 9643 sysv5* | sco3.2v5* | sco5v6*) 9644 # Note: We can NOT use -z defs as we might desire, because we do not 9645 # link with -lc, and that would cause any symbols used from libc to 9646 # always be unresolved, which means just about no library would 9647 # ever link correctly. If we're not using GNU ld we use -z text 9648 # though, which does catch some bad symbols but isn't as heavy-handed 9649 # as -z defs. 9650 no_undefined_flag='${wl}-z,text' 9651 allow_undefined_flag='${wl}-z,nodefs' 9652 archive_cmds_need_lc=no 9653 hardcode_shlibpath_var=no 9654 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9655 hardcode_libdir_separator=':' 9656 link_all_deplibs=yes 9657 export_dynamic_flag_spec='${wl}-Bexport' 9658 runpath_var='LD_RUN_PATH' 9659 9660 if test "$GCC" = yes; then 9661 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9662 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9663 else 9664 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9665 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9666 fi 9667 ;; 9668 9669 uts4*) 9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9671 hardcode_libdir_flag_spec='-L$libdir' 9672 hardcode_shlibpath_var=no 9673 ;; 9674 9675 *) 9676 ld_shlibs=no 9677 ;; 9678 esac 9679 9680 if test x$host_vendor = xsni; then 9681 case $host in 9682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9683 export_dynamic_flag_spec='${wl}-Blargedynsym' 9684 ;; 9685 esac 9686 fi 9687 fi 9688 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9690$as_echo "$ld_shlibs" >&6; } 9691test "$ld_shlibs" = no && can_build_shared=no 9692 9693with_gnu_ld=$with_gnu_ld 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709# 9710# Do we need to explicitly link libc? 9711# 9712case "x$archive_cmds_need_lc" in 9713x|xyes) 9714 # Assume -lc should be added 9715 archive_cmds_need_lc=yes 9716 9717 if test "$enable_shared" = yes && test "$GCC" = yes; then 9718 case $archive_cmds in 9719 *'~'*) 9720 # FIXME: we may have to deal with multi-command sequences. 9721 ;; 9722 '$CC '*) 9723 # Test whether the compiler implicitly links with -lc since on some 9724 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9725 # to ld, don't add -lc before -lgcc. 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9727$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9728if ${lt_cv_archive_cmds_need_lc+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 $RM conftest* 9732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9733 9734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9735 (eval $ac_compile) 2>&5 9736 ac_status=$? 9737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9738 test $ac_status = 0; } 2>conftest.err; then 9739 soname=conftest 9740 lib=conftest 9741 libobjs=conftest.$ac_objext 9742 deplibs= 9743 wl=$lt_prog_compiler_wl 9744 pic_flag=$lt_prog_compiler_pic 9745 compiler_flags=-v 9746 linker_flags=-v 9747 verstring= 9748 output_objdir=. 9749 libname=conftest 9750 lt_save_allow_undefined_flag=$allow_undefined_flag 9751 allow_undefined_flag= 9752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9753 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9754 ac_status=$? 9755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9756 test $ac_status = 0; } 9757 then 9758 lt_cv_archive_cmds_need_lc=no 9759 else 9760 lt_cv_archive_cmds_need_lc=yes 9761 fi 9762 allow_undefined_flag=$lt_save_allow_undefined_flag 9763 else 9764 cat conftest.err 1>&5 9765 fi 9766 $RM conftest* 9767 9768fi 9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9770$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9771 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9772 ;; 9773 esac 9774 fi 9775 ;; 9776esac 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9930$as_echo_n "checking dynamic linker characteristics... " >&6; } 9931 9932if test "$GCC" = yes; then 9933 case $host_os in 9934 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9935 *) lt_awk_arg="/^libraries:/" ;; 9936 esac 9937 case $host_os in 9938 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9939 *) lt_sed_strip_eq="s,=/,/,g" ;; 9940 esac 9941 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9942 case $lt_search_path_spec in 9943 *\;*) 9944 # if the path contains ";" then we assume it to be the separator 9945 # otherwise default to the standard path separator (i.e. ":") - it is 9946 # assumed that no part of a normal pathname contains ";" but that should 9947 # okay in the real world where ";" in dirpaths is itself problematic. 9948 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9949 ;; 9950 *) 9951 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9952 ;; 9953 esac 9954 # Ok, now we have the path, separated by spaces, we can step through it 9955 # and add multilib dir if necessary. 9956 lt_tmp_lt_search_path_spec= 9957 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9958 for lt_sys_path in $lt_search_path_spec; do 9959 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9960 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9961 else 9962 test -d "$lt_sys_path" && \ 9963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9964 fi 9965 done 9966 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9967BEGIN {RS=" "; FS="/|\n";} { 9968 lt_foo=""; 9969 lt_count=0; 9970 for (lt_i = NF; lt_i > 0; lt_i--) { 9971 if ($lt_i != "" && $lt_i != ".") { 9972 if ($lt_i == "..") { 9973 lt_count++; 9974 } else { 9975 if (lt_count == 0) { 9976 lt_foo="/" $lt_i lt_foo; 9977 } else { 9978 lt_count--; 9979 } 9980 } 9981 } 9982 } 9983 if (lt_foo != "") { lt_freq[lt_foo]++; } 9984 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9985}'` 9986 # AWK program above erroneously prepends '/' to C:/dos/paths 9987 # for these hosts. 9988 case $host_os in 9989 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9990 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9991 esac 9992 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9993else 9994 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9995fi 9996library_names_spec= 9997libname_spec='lib$name' 9998soname_spec= 9999shrext_cmds=".so" 10000postinstall_cmds= 10001postuninstall_cmds= 10002finish_cmds= 10003finish_eval= 10004shlibpath_var= 10005shlibpath_overrides_runpath=unknown 10006version_type=none 10007dynamic_linker="$host_os ld.so" 10008sys_lib_dlsearch_path_spec="/lib /usr/lib" 10009need_lib_prefix=unknown 10010hardcode_into_libs=no 10011 10012# when you set need_version to no, make sure it does not cause -set_version 10013# flags to be left without arguments 10014need_version=unknown 10015 10016case $host_os in 10017aix3*) 10018 version_type=linux # correct to gnu/linux during the next big refactor 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10020 shlibpath_var=LIBPATH 10021 10022 # AIX 3 has no versioning support, so we append a major version to the name. 10023 soname_spec='${libname}${release}${shared_ext}$major' 10024 ;; 10025 10026aix[4-9]*) 10027 version_type=linux # correct to gnu/linux during the next big refactor 10028 need_lib_prefix=no 10029 need_version=no 10030 hardcode_into_libs=yes 10031 if test "$host_cpu" = ia64; then 10032 # AIX 5 supports IA64 10033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10034 shlibpath_var=LD_LIBRARY_PATH 10035 else 10036 # With GCC up to 2.95.x, collect2 would create an import file 10037 # for dependence libraries. The import file would start with 10038 # the line `#! .'. This would cause the generated library to 10039 # depend on `.', always an invalid library. This was fixed in 10040 # development snapshots of GCC prior to 3.0. 10041 case $host_os in 10042 aix4 | aix4.[01] | aix4.[01].*) 10043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10044 echo ' yes ' 10045 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10046 : 10047 else 10048 can_build_shared=no 10049 fi 10050 ;; 10051 esac 10052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10053 # soname into executable. Probably we can add versioning support to 10054 # collect2, so additional links can be useful in future. 10055 if test "$aix_use_runtimelinking" = yes; then 10056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10057 # instead of lib<name>.a to let people know that these are not 10058 # typical AIX shared libraries. 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10060 else 10061 # We preserve .a as extension for shared libraries through AIX4.2 10062 # and later when we are not doing run time linking. 10063 library_names_spec='${libname}${release}.a $libname.a' 10064 soname_spec='${libname}${release}${shared_ext}$major' 10065 fi 10066 shlibpath_var=LIBPATH 10067 fi 10068 ;; 10069 10070amigaos*) 10071 case $host_cpu in 10072 powerpc) 10073 # Since July 2007 AmigaOS4 officially supports .so libraries. 10074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10076 ;; 10077 m68k) 10078 library_names_spec='$libname.ixlibrary $libname.a' 10079 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10080 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' 10081 ;; 10082 esac 10083 ;; 10084 10085beos*) 10086 library_names_spec='${libname}${shared_ext}' 10087 dynamic_linker="$host_os ld.so" 10088 shlibpath_var=LIBRARY_PATH 10089 ;; 10090 10091bsdi[45]*) 10092 version_type=linux # correct to gnu/linux during the next big refactor 10093 need_version=no 10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10095 soname_spec='${libname}${release}${shared_ext}$major' 10096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10097 shlibpath_var=LD_LIBRARY_PATH 10098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10100 # the default ld.so.conf also contains /usr/contrib/lib and 10101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10102 # libtool to hard-code these into programs 10103 ;; 10104 10105cygwin* | mingw* | pw32* | cegcc*) 10106 version_type=windows 10107 shrext_cmds=".dll" 10108 need_version=no 10109 need_lib_prefix=no 10110 10111 case $GCC,$cc_basename in 10112 yes,*) 10113 # gcc 10114 library_names_spec='$libname.dll.a' 10115 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10116 postinstall_cmds='base_file=`basename \${file}`~ 10117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10118 dldir=$destdir/`dirname \$dlpath`~ 10119 test -d \$dldir || mkdir -p \$dldir~ 10120 $install_prog $dir/$dlname \$dldir/$dlname~ 10121 chmod a+x \$dldir/$dlname~ 10122 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10123 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10124 fi' 10125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10126 dlpath=$dir/\$dldll~ 10127 $RM \$dlpath' 10128 shlibpath_overrides_runpath=yes 10129 10130 case $host_os in 10131 cygwin*) 10132 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10133 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10134 10135 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10136 ;; 10137 mingw* | cegcc*) 10138 # MinGW DLLs use traditional 'lib' prefix 10139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10140 ;; 10141 pw32*) 10142 # pw32 DLLs use 'pw' prefix rather than 'lib' 10143 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10144 ;; 10145 esac 10146 dynamic_linker='Win32 ld.exe' 10147 ;; 10148 10149 *,cl*) 10150 # Native MSVC 10151 libname_spec='$name' 10152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10153 library_names_spec='${libname}.dll.lib' 10154 10155 case $build_os in 10156 mingw*) 10157 sys_lib_search_path_spec= 10158 lt_save_ifs=$IFS 10159 IFS=';' 10160 for lt_path in $LIB 10161 do 10162 IFS=$lt_save_ifs 10163 # Let DOS variable expansion print the short 8.3 style file name. 10164 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10165 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10166 done 10167 IFS=$lt_save_ifs 10168 # Convert to MSYS style. 10169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10170 ;; 10171 cygwin*) 10172 # Convert to unix form, then to dos form, then back to unix form 10173 # but this time dos style (no spaces!) so that the unix form looks 10174 # like /cygdrive/c/PROGRA~1:/cygdr... 10175 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10176 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10177 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10178 ;; 10179 *) 10180 sys_lib_search_path_spec="$LIB" 10181 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10182 # It is most probably a Windows format PATH. 10183 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10184 else 10185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10186 fi 10187 # FIXME: find the short name or the path components, as spaces are 10188 # common. (e.g. "Program Files" -> "PROGRA~1") 10189 ;; 10190 esac 10191 10192 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10193 postinstall_cmds='base_file=`basename \${file}`~ 10194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10195 dldir=$destdir/`dirname \$dlpath`~ 10196 test -d \$dldir || mkdir -p \$dldir~ 10197 $install_prog $dir/$dlname \$dldir/$dlname' 10198 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10199 dlpath=$dir/\$dldll~ 10200 $RM \$dlpath' 10201 shlibpath_overrides_runpath=yes 10202 dynamic_linker='Win32 link.exe' 10203 ;; 10204 10205 *) 10206 # Assume MSVC wrapper 10207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10208 dynamic_linker='Win32 ld.exe' 10209 ;; 10210 esac 10211 # FIXME: first we should search . and the directory the executable is in 10212 shlibpath_var=PATH 10213 ;; 10214 10215darwin* | rhapsody*) 10216 dynamic_linker="$host_os dyld" 10217 version_type=darwin 10218 need_lib_prefix=no 10219 need_version=no 10220 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10221 soname_spec='${libname}${release}${major}$shared_ext' 10222 shlibpath_overrides_runpath=yes 10223 shlibpath_var=DYLD_LIBRARY_PATH 10224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10225 10226 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10227 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10228 ;; 10229 10230dgux*) 10231 version_type=linux # correct to gnu/linux during the next big refactor 10232 need_lib_prefix=no 10233 need_version=no 10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10235 soname_spec='${libname}${release}${shared_ext}$major' 10236 shlibpath_var=LD_LIBRARY_PATH 10237 ;; 10238 10239freebsd* | dragonfly*) 10240 # DragonFly does not have aout. When/if they implement a new 10241 # versioning mechanism, adjust this. 10242 if test -x /usr/bin/objformat; then 10243 objformat=`/usr/bin/objformat` 10244 else 10245 case $host_os in 10246 freebsd[23].*) objformat=aout ;; 10247 *) objformat=elf ;; 10248 esac 10249 fi 10250 version_type=freebsd-$objformat 10251 case $version_type in 10252 freebsd-elf*) 10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10254 need_version=no 10255 need_lib_prefix=no 10256 ;; 10257 freebsd-*) 10258 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10259 need_version=yes 10260 ;; 10261 esac 10262 shlibpath_var=LD_LIBRARY_PATH 10263 case $host_os in 10264 freebsd2.*) 10265 shlibpath_overrides_runpath=yes 10266 ;; 10267 freebsd3.[01]* | freebsdelf3.[01]*) 10268 shlibpath_overrides_runpath=yes 10269 hardcode_into_libs=yes 10270 ;; 10271 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10272 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10273 shlibpath_overrides_runpath=no 10274 hardcode_into_libs=yes 10275 ;; 10276 *) # from 4.6 on, and DragonFly 10277 shlibpath_overrides_runpath=yes 10278 hardcode_into_libs=yes 10279 ;; 10280 esac 10281 ;; 10282 10283gnu*) 10284 version_type=linux # correct to gnu/linux during the next big refactor 10285 need_lib_prefix=no 10286 need_version=no 10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10288 soname_spec='${libname}${release}${shared_ext}$major' 10289 shlibpath_var=LD_LIBRARY_PATH 10290 shlibpath_overrides_runpath=no 10291 hardcode_into_libs=yes 10292 ;; 10293 10294haiku*) 10295 version_type=linux # correct to gnu/linux during the next big refactor 10296 need_lib_prefix=no 10297 need_version=no 10298 dynamic_linker="$host_os runtime_loader" 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10300 soname_spec='${libname}${release}${shared_ext}$major' 10301 shlibpath_var=LIBRARY_PATH 10302 shlibpath_overrides_runpath=yes 10303 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10304 hardcode_into_libs=yes 10305 ;; 10306 10307hpux9* | hpux10* | hpux11*) 10308 # Give a soname corresponding to the major version so that dld.sl refuses to 10309 # link against other versions. 10310 version_type=sunos 10311 need_lib_prefix=no 10312 need_version=no 10313 case $host_cpu in 10314 ia64*) 10315 shrext_cmds='.so' 10316 hardcode_into_libs=yes 10317 dynamic_linker="$host_os dld.so" 10318 shlibpath_var=LD_LIBRARY_PATH 10319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10321 soname_spec='${libname}${release}${shared_ext}$major' 10322 if test "X$HPUX_IA64_MODE" = X32; then 10323 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10324 else 10325 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10326 fi 10327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10328 ;; 10329 hppa*64*) 10330 shrext_cmds='.sl' 10331 hardcode_into_libs=yes 10332 dynamic_linker="$host_os dld.sl" 10333 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10339 ;; 10340 *) 10341 shrext_cmds='.sl' 10342 dynamic_linker="$host_os dld.sl" 10343 shlibpath_var=SHLIB_PATH 10344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 soname_spec='${libname}${release}${shared_ext}$major' 10347 ;; 10348 esac 10349 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10350 postinstall_cmds='chmod 555 $lib' 10351 # or fails outright, so override atomically: 10352 install_override_mode=555 10353 ;; 10354 10355interix[3-9]*) 10356 version_type=linux # correct to gnu/linux during the next big refactor 10357 need_lib_prefix=no 10358 need_version=no 10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10360 soname_spec='${libname}${release}${shared_ext}$major' 10361 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10362 shlibpath_var=LD_LIBRARY_PATH 10363 shlibpath_overrides_runpath=no 10364 hardcode_into_libs=yes 10365 ;; 10366 10367irix5* | irix6* | nonstopux*) 10368 case $host_os in 10369 nonstopux*) version_type=nonstopux ;; 10370 *) 10371 if test "$lt_cv_prog_gnu_ld" = yes; then 10372 version_type=linux # correct to gnu/linux during the next big refactor 10373 else 10374 version_type=irix 10375 fi ;; 10376 esac 10377 need_lib_prefix=no 10378 need_version=no 10379 soname_spec='${libname}${release}${shared_ext}$major' 10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10381 case $host_os in 10382 irix5* | nonstopux*) 10383 libsuff= shlibsuff= 10384 ;; 10385 *) 10386 case $LD in # libtool.m4 will add one of these switches to LD 10387 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10388 libsuff= shlibsuff= libmagic=32-bit;; 10389 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10390 libsuff=32 shlibsuff=N32 libmagic=N32;; 10391 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10392 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10393 *) libsuff= shlibsuff= libmagic=never-match;; 10394 esac 10395 ;; 10396 esac 10397 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10398 shlibpath_overrides_runpath=no 10399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10401 hardcode_into_libs=yes 10402 ;; 10403 10404# No shared lib support for Linux oldld, aout, or coff. 10405linux*oldld* | linux*aout* | linux*coff*) 10406 dynamic_linker=no 10407 ;; 10408 10409# This must be glibc/ELF. 10410linux* | k*bsd*-gnu | kopensolaris*-gnu) 10411 version_type=linux # correct to gnu/linux during the next big refactor 10412 need_lib_prefix=no 10413 need_version=no 10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10415 soname_spec='${libname}${release}${shared_ext}$major' 10416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10417 shlibpath_var=LD_LIBRARY_PATH 10418 shlibpath_overrides_runpath=no 10419 10420 # Some binutils ld are patched to set DT_RUNPATH 10421 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423else 10424 lt_cv_shlibpath_overrides_runpath=no 10425 save_LDFLAGS=$LDFLAGS 10426 save_libdir=$libdir 10427 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10428 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10430/* end confdefs.h. */ 10431 10432int 10433main () 10434{ 10435 10436 ; 10437 return 0; 10438} 10439_ACEOF 10440if ac_fn_c_try_link "$LINENO"; then : 10441 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10442 lt_cv_shlibpath_overrides_runpath=yes 10443fi 10444fi 10445rm -f core conftest.err conftest.$ac_objext \ 10446 conftest$ac_exeext conftest.$ac_ext 10447 LDFLAGS=$save_LDFLAGS 10448 libdir=$save_libdir 10449 10450fi 10451 10452 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10453 10454 # This implies no fast_install, which is unacceptable. 10455 # Some rework will be needed to allow for fast_install 10456 # before this can be enabled. 10457 hardcode_into_libs=yes 10458 10459 # Append ld.so.conf contents to the search path 10460 if test -f /etc/ld.so.conf; then 10461 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' ' '` 10462 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10463 fi 10464 10465 # We used to test for /lib/ld.so.1 and disable shared libraries on 10466 # powerpc, because MkLinux only supported shared libraries with the 10467 # GNU dynamic linker. Since this was broken with cross compilers, 10468 # most powerpc-linux boxes support dynamic linking these days and 10469 # people can always --disable-shared, the test was removed, and we 10470 # assume the GNU/Linux dynamic linker is in use. 10471 dynamic_linker='GNU/Linux ld.so' 10472 ;; 10473 10474netbsd*) 10475 version_type=sunos 10476 need_lib_prefix=no 10477 need_version=no 10478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10481 dynamic_linker='NetBSD (a.out) ld.so' 10482 else 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10484 soname_spec='${libname}${release}${shared_ext}$major' 10485 dynamic_linker='NetBSD ld.elf_so' 10486 fi 10487 shlibpath_var=LD_LIBRARY_PATH 10488 shlibpath_overrides_runpath=yes 10489 hardcode_into_libs=yes 10490 ;; 10491 10492newsos6) 10493 version_type=linux # correct to gnu/linux during the next big refactor 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10495 shlibpath_var=LD_LIBRARY_PATH 10496 shlibpath_overrides_runpath=yes 10497 ;; 10498 10499*nto* | *qnx*) 10500 version_type=qnx 10501 need_lib_prefix=no 10502 need_version=no 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10504 soname_spec='${libname}${release}${shared_ext}$major' 10505 shlibpath_var=LD_LIBRARY_PATH 10506 shlibpath_overrides_runpath=no 10507 hardcode_into_libs=yes 10508 dynamic_linker='ldqnx.so' 10509 ;; 10510 10511openbsd*) 10512 version_type=sunos 10513 sys_lib_dlsearch_path_spec="/usr/lib" 10514 need_lib_prefix=no 10515 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10516 case $host_os in 10517 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10518 *) need_version=no ;; 10519 esac 10520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10522 shlibpath_var=LD_LIBRARY_PATH 10523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10524 case $host_os in 10525 openbsd2.[89] | openbsd2.[89].*) 10526 shlibpath_overrides_runpath=no 10527 ;; 10528 *) 10529 shlibpath_overrides_runpath=yes 10530 ;; 10531 esac 10532 else 10533 shlibpath_overrides_runpath=yes 10534 fi 10535 ;; 10536 10537os2*) 10538 libname_spec='$name' 10539 shrext_cmds=".dll" 10540 need_lib_prefix=no 10541 library_names_spec='$libname${shared_ext} $libname.a' 10542 dynamic_linker='OS/2 ld.exe' 10543 shlibpath_var=LIBPATH 10544 ;; 10545 10546osf3* | osf4* | osf5*) 10547 version_type=osf 10548 need_lib_prefix=no 10549 need_version=no 10550 soname_spec='${libname}${release}${shared_ext}$major' 10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10554 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10555 ;; 10556 10557rdos*) 10558 dynamic_linker=no 10559 ;; 10560 10561solaris*) 10562 version_type=linux # correct to gnu/linux during the next big refactor 10563 need_lib_prefix=no 10564 need_version=no 10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10566 soname_spec='${libname}${release}${shared_ext}$major' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 shlibpath_overrides_runpath=yes 10569 hardcode_into_libs=yes 10570 # ldd complains unless libraries are executable 10571 postinstall_cmds='chmod +x $lib' 10572 ;; 10573 10574sunos4*) 10575 version_type=sunos 10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10578 shlibpath_var=LD_LIBRARY_PATH 10579 shlibpath_overrides_runpath=yes 10580 if test "$with_gnu_ld" = yes; then 10581 need_lib_prefix=no 10582 fi 10583 need_version=yes 10584 ;; 10585 10586sysv4 | sysv4.3*) 10587 version_type=linux # correct to gnu/linux during the next big refactor 10588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10589 soname_spec='${libname}${release}${shared_ext}$major' 10590 shlibpath_var=LD_LIBRARY_PATH 10591 case $host_vendor in 10592 sni) 10593 shlibpath_overrides_runpath=no 10594 need_lib_prefix=no 10595 runpath_var=LD_RUN_PATH 10596 ;; 10597 siemens) 10598 need_lib_prefix=no 10599 ;; 10600 motorola) 10601 need_lib_prefix=no 10602 need_version=no 10603 shlibpath_overrides_runpath=no 10604 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10605 ;; 10606 esac 10607 ;; 10608 10609sysv4*MP*) 10610 if test -d /usr/nec ;then 10611 version_type=linux # correct to gnu/linux during the next big refactor 10612 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10613 soname_spec='$libname${shared_ext}.$major' 10614 shlibpath_var=LD_LIBRARY_PATH 10615 fi 10616 ;; 10617 10618sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10619 version_type=freebsd-elf 10620 need_lib_prefix=no 10621 need_version=no 10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10623 soname_spec='${libname}${release}${shared_ext}$major' 10624 shlibpath_var=LD_LIBRARY_PATH 10625 shlibpath_overrides_runpath=yes 10626 hardcode_into_libs=yes 10627 if test "$with_gnu_ld" = yes; then 10628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10629 else 10630 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10631 case $host_os in 10632 sco3.2v5*) 10633 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10634 ;; 10635 esac 10636 fi 10637 sys_lib_dlsearch_path_spec='/usr/lib' 10638 ;; 10639 10640tpf*) 10641 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10642 version_type=linux # correct to gnu/linux during the next big refactor 10643 need_lib_prefix=no 10644 need_version=no 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=no 10648 hardcode_into_libs=yes 10649 ;; 10650 10651uts4*) 10652 version_type=linux # correct to gnu/linux during the next big refactor 10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10654 soname_spec='${libname}${release}${shared_ext}$major' 10655 shlibpath_var=LD_LIBRARY_PATH 10656 ;; 10657 10658*) 10659 dynamic_linker=no 10660 ;; 10661esac 10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10663$as_echo "$dynamic_linker" >&6; } 10664test "$dynamic_linker" = no && can_build_shared=no 10665 10666variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10667if test "$GCC" = yes; then 10668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10669fi 10670 10671if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10672 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10673fi 10674if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10675 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10676fi 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10770$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10771hardcode_action= 10772if test -n "$hardcode_libdir_flag_spec" || 10773 test -n "$runpath_var" || 10774 test "X$hardcode_automatic" = "Xyes" ; then 10775 10776 # We can hardcode non-existent directories. 10777 if test "$hardcode_direct" != no && 10778 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10779 # have to relink, otherwise we might link with an installed library 10780 # when we should be linking with a yet-to-be-installed one 10781 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10782 test "$hardcode_minus_L" != no; then 10783 # Linking always hardcodes the temporary library directory. 10784 hardcode_action=relink 10785 else 10786 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10787 hardcode_action=immediate 10788 fi 10789else 10790 # We cannot hardcode anything, or else we can only hardcode existing 10791 # directories. 10792 hardcode_action=unsupported 10793fi 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10795$as_echo "$hardcode_action" >&6; } 10796 10797if test "$hardcode_action" = relink || 10798 test "$inherit_rpath" = yes; then 10799 # Fast installation is not supported 10800 enable_fast_install=no 10801elif test "$shlibpath_overrides_runpath" = yes || 10802 test "$enable_shared" = no; then 10803 # Fast installation is not necessary 10804 enable_fast_install=needless 10805fi 10806 10807 10808 10809 10810 10811 10812 if test "x$enable_dlopen" != xyes; then 10813 enable_dlopen=unknown 10814 enable_dlopen_self=unknown 10815 enable_dlopen_self_static=unknown 10816else 10817 lt_cv_dlopen=no 10818 lt_cv_dlopen_libs= 10819 10820 case $host_os in 10821 beos*) 10822 lt_cv_dlopen="load_add_on" 10823 lt_cv_dlopen_libs= 10824 lt_cv_dlopen_self=yes 10825 ;; 10826 10827 mingw* | pw32* | cegcc*) 10828 lt_cv_dlopen="LoadLibrary" 10829 lt_cv_dlopen_libs= 10830 ;; 10831 10832 cygwin*) 10833 lt_cv_dlopen="dlopen" 10834 lt_cv_dlopen_libs= 10835 ;; 10836 10837 darwin*) 10838 # if libdl is installed we need to link against it 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10840$as_echo_n "checking for dlopen in -ldl... " >&6; } 10841if ${ac_cv_lib_dl_dlopen+:} false; then : 10842 $as_echo_n "(cached) " >&6 10843else 10844 ac_check_lib_save_LIBS=$LIBS 10845LIBS="-ldl $LIBS" 10846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10847/* end confdefs.h. */ 10848 10849/* Override any GCC internal prototype to avoid an error. 10850 Use char because int might match the return type of a GCC 10851 builtin and then its argument prototype would still apply. */ 10852#ifdef __cplusplus 10853extern "C" 10854#endif 10855char dlopen (); 10856int 10857main () 10858{ 10859return dlopen (); 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864if ac_fn_c_try_link "$LINENO"; then : 10865 ac_cv_lib_dl_dlopen=yes 10866else 10867 ac_cv_lib_dl_dlopen=no 10868fi 10869rm -f core conftest.err conftest.$ac_objext \ 10870 conftest$ac_exeext conftest.$ac_ext 10871LIBS=$ac_check_lib_save_LIBS 10872fi 10873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10874$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10875if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10877else 10878 10879 lt_cv_dlopen="dyld" 10880 lt_cv_dlopen_libs= 10881 lt_cv_dlopen_self=yes 10882 10883fi 10884 10885 ;; 10886 10887 *) 10888 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10889if test "x$ac_cv_func_shl_load" = xyes; then : 10890 lt_cv_dlopen="shl_load" 10891else 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10893$as_echo_n "checking for shl_load in -ldld... " >&6; } 10894if ${ac_cv_lib_dld_shl_load+:} false; then : 10895 $as_echo_n "(cached) " >&6 10896else 10897 ac_check_lib_save_LIBS=$LIBS 10898LIBS="-ldld $LIBS" 10899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10900/* end confdefs.h. */ 10901 10902/* Override any GCC internal prototype to avoid an error. 10903 Use char because int might match the return type of a GCC 10904 builtin and then its argument prototype would still apply. */ 10905#ifdef __cplusplus 10906extern "C" 10907#endif 10908char shl_load (); 10909int 10910main () 10911{ 10912return shl_load (); 10913 ; 10914 return 0; 10915} 10916_ACEOF 10917if ac_fn_c_try_link "$LINENO"; then : 10918 ac_cv_lib_dld_shl_load=yes 10919else 10920 ac_cv_lib_dld_shl_load=no 10921fi 10922rm -f core conftest.err conftest.$ac_objext \ 10923 conftest$ac_exeext conftest.$ac_ext 10924LIBS=$ac_check_lib_save_LIBS 10925fi 10926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10927$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10928if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10930else 10931 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10932if test "x$ac_cv_func_dlopen" = xyes; then : 10933 lt_cv_dlopen="dlopen" 10934else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10936$as_echo_n "checking for dlopen in -ldl... " >&6; } 10937if ${ac_cv_lib_dl_dlopen+:} false; then : 10938 $as_echo_n "(cached) " >&6 10939else 10940 ac_check_lib_save_LIBS=$LIBS 10941LIBS="-ldl $LIBS" 10942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10943/* end confdefs.h. */ 10944 10945/* Override any GCC internal prototype to avoid an error. 10946 Use char because int might match the return type of a GCC 10947 builtin and then its argument prototype would still apply. */ 10948#ifdef __cplusplus 10949extern "C" 10950#endif 10951char dlopen (); 10952int 10953main () 10954{ 10955return dlopen (); 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960if ac_fn_c_try_link "$LINENO"; then : 10961 ac_cv_lib_dl_dlopen=yes 10962else 10963 ac_cv_lib_dl_dlopen=no 10964fi 10965rm -f core conftest.err conftest.$ac_objext \ 10966 conftest$ac_exeext conftest.$ac_ext 10967LIBS=$ac_check_lib_save_LIBS 10968fi 10969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10970$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10971if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10973else 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10975$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10976if ${ac_cv_lib_svld_dlopen+:} false; then : 10977 $as_echo_n "(cached) " >&6 10978else 10979 ac_check_lib_save_LIBS=$LIBS 10980LIBS="-lsvld $LIBS" 10981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10982/* end confdefs.h. */ 10983 10984/* Override any GCC internal prototype to avoid an error. 10985 Use char because int might match the return type of a GCC 10986 builtin and then its argument prototype would still apply. */ 10987#ifdef __cplusplus 10988extern "C" 10989#endif 10990char dlopen (); 10991int 10992main () 10993{ 10994return dlopen (); 10995 ; 10996 return 0; 10997} 10998_ACEOF 10999if ac_fn_c_try_link "$LINENO"; then : 11000 ac_cv_lib_svld_dlopen=yes 11001else 11002 ac_cv_lib_svld_dlopen=no 11003fi 11004rm -f core conftest.err conftest.$ac_objext \ 11005 conftest$ac_exeext conftest.$ac_ext 11006LIBS=$ac_check_lib_save_LIBS 11007fi 11008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11009$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11010if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11012else 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11014$as_echo_n "checking for dld_link in -ldld... " >&6; } 11015if ${ac_cv_lib_dld_dld_link+:} false; then : 11016 $as_echo_n "(cached) " >&6 11017else 11018 ac_check_lib_save_LIBS=$LIBS 11019LIBS="-ldld $LIBS" 11020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11021/* end confdefs.h. */ 11022 11023/* Override any GCC internal prototype to avoid an error. 11024 Use char because int might match the return type of a GCC 11025 builtin and then its argument prototype would still apply. */ 11026#ifdef __cplusplus 11027extern "C" 11028#endif 11029char dld_link (); 11030int 11031main () 11032{ 11033return dld_link (); 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038if ac_fn_c_try_link "$LINENO"; then : 11039 ac_cv_lib_dld_dld_link=yes 11040else 11041 ac_cv_lib_dld_dld_link=no 11042fi 11043rm -f core conftest.err conftest.$ac_objext \ 11044 conftest$ac_exeext conftest.$ac_ext 11045LIBS=$ac_check_lib_save_LIBS 11046fi 11047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11048$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11049if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11051fi 11052 11053 11054fi 11055 11056 11057fi 11058 11059 11060fi 11061 11062 11063fi 11064 11065 11066fi 11067 11068 ;; 11069 esac 11070 11071 if test "x$lt_cv_dlopen" != xno; then 11072 enable_dlopen=yes 11073 else 11074 enable_dlopen=no 11075 fi 11076 11077 case $lt_cv_dlopen in 11078 dlopen) 11079 save_CPPFLAGS="$CPPFLAGS" 11080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11081 11082 save_LDFLAGS="$LDFLAGS" 11083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11084 11085 save_LIBS="$LIBS" 11086 LIBS="$lt_cv_dlopen_libs $LIBS" 11087 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11089$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11090if ${lt_cv_dlopen_self+:} false; then : 11091 $as_echo_n "(cached) " >&6 11092else 11093 if test "$cross_compiling" = yes; then : 11094 lt_cv_dlopen_self=cross 11095else 11096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11097 lt_status=$lt_dlunknown 11098 cat > conftest.$ac_ext <<_LT_EOF 11099#line $LINENO "configure" 11100#include "confdefs.h" 11101 11102#if HAVE_DLFCN_H 11103#include <dlfcn.h> 11104#endif 11105 11106#include <stdio.h> 11107 11108#ifdef RTLD_GLOBAL 11109# define LT_DLGLOBAL RTLD_GLOBAL 11110#else 11111# ifdef DL_GLOBAL 11112# define LT_DLGLOBAL DL_GLOBAL 11113# else 11114# define LT_DLGLOBAL 0 11115# endif 11116#endif 11117 11118/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11119 find out it does not work in some platform. */ 11120#ifndef LT_DLLAZY_OR_NOW 11121# ifdef RTLD_LAZY 11122# define LT_DLLAZY_OR_NOW RTLD_LAZY 11123# else 11124# ifdef DL_LAZY 11125# define LT_DLLAZY_OR_NOW DL_LAZY 11126# else 11127# ifdef RTLD_NOW 11128# define LT_DLLAZY_OR_NOW RTLD_NOW 11129# else 11130# ifdef DL_NOW 11131# define LT_DLLAZY_OR_NOW DL_NOW 11132# else 11133# define LT_DLLAZY_OR_NOW 0 11134# endif 11135# endif 11136# endif 11137# endif 11138#endif 11139 11140/* When -fvisbility=hidden is used, assume the code has been annotated 11141 correspondingly for the symbols needed. */ 11142#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11143int fnord () __attribute__((visibility("default"))); 11144#endif 11145 11146int fnord () { return 42; } 11147int main () 11148{ 11149 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11150 int status = $lt_dlunknown; 11151 11152 if (self) 11153 { 11154 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11155 else 11156 { 11157 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11158 else puts (dlerror ()); 11159 } 11160 /* dlclose (self); */ 11161 } 11162 else 11163 puts (dlerror ()); 11164 11165 return status; 11166} 11167_LT_EOF 11168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11169 (eval $ac_link) 2>&5 11170 ac_status=$? 11171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11172 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11173 (./conftest; exit; ) >&5 2>/dev/null 11174 lt_status=$? 11175 case x$lt_status in 11176 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11177 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11178 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11179 esac 11180 else : 11181 # compilation failed 11182 lt_cv_dlopen_self=no 11183 fi 11184fi 11185rm -fr conftest* 11186 11187 11188fi 11189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11190$as_echo "$lt_cv_dlopen_self" >&6; } 11191 11192 if test "x$lt_cv_dlopen_self" = xyes; then 11193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11195$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11196if ${lt_cv_dlopen_self_static+:} false; then : 11197 $as_echo_n "(cached) " >&6 11198else 11199 if test "$cross_compiling" = yes; then : 11200 lt_cv_dlopen_self_static=cross 11201else 11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11203 lt_status=$lt_dlunknown 11204 cat > conftest.$ac_ext <<_LT_EOF 11205#line $LINENO "configure" 11206#include "confdefs.h" 11207 11208#if HAVE_DLFCN_H 11209#include <dlfcn.h> 11210#endif 11211 11212#include <stdio.h> 11213 11214#ifdef RTLD_GLOBAL 11215# define LT_DLGLOBAL RTLD_GLOBAL 11216#else 11217# ifdef DL_GLOBAL 11218# define LT_DLGLOBAL DL_GLOBAL 11219# else 11220# define LT_DLGLOBAL 0 11221# endif 11222#endif 11223 11224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11225 find out it does not work in some platform. */ 11226#ifndef LT_DLLAZY_OR_NOW 11227# ifdef RTLD_LAZY 11228# define LT_DLLAZY_OR_NOW RTLD_LAZY 11229# else 11230# ifdef DL_LAZY 11231# define LT_DLLAZY_OR_NOW DL_LAZY 11232# else 11233# ifdef RTLD_NOW 11234# define LT_DLLAZY_OR_NOW RTLD_NOW 11235# else 11236# ifdef DL_NOW 11237# define LT_DLLAZY_OR_NOW DL_NOW 11238# else 11239# define LT_DLLAZY_OR_NOW 0 11240# endif 11241# endif 11242# endif 11243# endif 11244#endif 11245 11246/* When -fvisbility=hidden is used, assume the code has been annotated 11247 correspondingly for the symbols needed. */ 11248#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11249int fnord () __attribute__((visibility("default"))); 11250#endif 11251 11252int fnord () { return 42; } 11253int main () 11254{ 11255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11256 int status = $lt_dlunknown; 11257 11258 if (self) 11259 { 11260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11261 else 11262 { 11263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11264 else puts (dlerror ()); 11265 } 11266 /* dlclose (self); */ 11267 } 11268 else 11269 puts (dlerror ()); 11270 11271 return status; 11272} 11273_LT_EOF 11274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11275 (eval $ac_link) 2>&5 11276 ac_status=$? 11277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11278 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11279 (./conftest; exit; ) >&5 2>/dev/null 11280 lt_status=$? 11281 case x$lt_status in 11282 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11283 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11284 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11285 esac 11286 else : 11287 # compilation failed 11288 lt_cv_dlopen_self_static=no 11289 fi 11290fi 11291rm -fr conftest* 11292 11293 11294fi 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11296$as_echo "$lt_cv_dlopen_self_static" >&6; } 11297 fi 11298 11299 CPPFLAGS="$save_CPPFLAGS" 11300 LDFLAGS="$save_LDFLAGS" 11301 LIBS="$save_LIBS" 11302 ;; 11303 esac 11304 11305 case $lt_cv_dlopen_self in 11306 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11307 *) enable_dlopen_self=unknown ;; 11308 esac 11309 11310 case $lt_cv_dlopen_self_static in 11311 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11312 *) enable_dlopen_self_static=unknown ;; 11313 esac 11314fi 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332striplib= 11333old_striplib= 11334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11335$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11336if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11337 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11338 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11340$as_echo "yes" >&6; } 11341else 11342# FIXME - insert some real tests, host_os isn't really good enough 11343 case $host_os in 11344 darwin*) 11345 if test -n "$STRIP" ; then 11346 striplib="$STRIP -x" 11347 old_striplib="$STRIP -S" 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11349$as_echo "yes" >&6; } 11350 else 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11352$as_echo "no" >&6; } 11353 fi 11354 ;; 11355 *) 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11357$as_echo "no" >&6; } 11358 ;; 11359 esac 11360fi 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 # Report which library types will actually be built 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11375$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11377$as_echo "$can_build_shared" >&6; } 11378 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11380$as_echo_n "checking whether to build shared libraries... " >&6; } 11381 test "$can_build_shared" = "no" && enable_shared=no 11382 11383 # On AIX, shared libraries and static libraries use the same namespace, and 11384 # are all built from PIC. 11385 case $host_os in 11386 aix3*) 11387 test "$enable_shared" = yes && enable_static=no 11388 if test -n "$RANLIB"; then 11389 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11390 postinstall_cmds='$RANLIB $lib' 11391 fi 11392 ;; 11393 11394 aix[4-9]*) 11395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11396 test "$enable_shared" = yes && enable_static=no 11397 fi 11398 ;; 11399 esac 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11401$as_echo "$enable_shared" >&6; } 11402 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11404$as_echo_n "checking whether to build static libraries... " >&6; } 11405 # Make sure either enable_shared or enable_static is yes. 11406 test "$enable_shared" = yes || enable_static=yes 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11408$as_echo "$enable_static" >&6; } 11409 11410 11411 11412 11413fi 11414ac_ext=c 11415ac_cpp='$CPP $CPPFLAGS' 11416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11418ac_compiler_gnu=$ac_cv_c_compiler_gnu 11419 11420CC="$lt_save_CC" 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 ac_config_commands="$ac_config_commands libtool" 11437 11438 11439 11440 11441# Only expand once: 11442 11443 11444 11445 11446# Sets a conditional makefile variable so that certain Makefile tasks will be 11447# performed only on linux (currently, add -luuid to LD_FLAGS) 11448 if case $host_os in linux*) true;; *) false;; esac; then 11449 LINUX_TRUE= 11450 LINUX_FALSE='#' 11451else 11452 LINUX_TRUE='#' 11453 LINUX_FALSE= 11454fi 11455 11456 11457# Checks for header files. 11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11459$as_echo_n "checking for ANSI C header files... " >&6; } 11460if ${ac_cv_header_stdc+:} false; then : 11461 $as_echo_n "(cached) " >&6 11462else 11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11464/* end confdefs.h. */ 11465#include <stdlib.h> 11466#include <stdarg.h> 11467#include <string.h> 11468#include <float.h> 11469 11470int 11471main () 11472{ 11473 11474 ; 11475 return 0; 11476} 11477_ACEOF 11478if ac_fn_c_try_compile "$LINENO"; then : 11479 ac_cv_header_stdc=yes 11480else 11481 ac_cv_header_stdc=no 11482fi 11483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11484 11485if test $ac_cv_header_stdc = yes; then 11486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11488/* end confdefs.h. */ 11489#include <string.h> 11490 11491_ACEOF 11492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11493 $EGREP "memchr" >/dev/null 2>&1; then : 11494 11495else 11496 ac_cv_header_stdc=no 11497fi 11498rm -f conftest* 11499 11500fi 11501 11502if test $ac_cv_header_stdc = yes; then 11503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11505/* end confdefs.h. */ 11506#include <stdlib.h> 11507 11508_ACEOF 11509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11510 $EGREP "free" >/dev/null 2>&1; then : 11511 11512else 11513 ac_cv_header_stdc=no 11514fi 11515rm -f conftest* 11516 11517fi 11518 11519if test $ac_cv_header_stdc = yes; then 11520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11521 if test "$cross_compiling" = yes; then : 11522 : 11523else 11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11525/* end confdefs.h. */ 11526#include <ctype.h> 11527#include <stdlib.h> 11528#if ((' ' & 0x0FF) == 0x020) 11529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11531#else 11532# define ISLOWER(c) \ 11533 (('a' <= (c) && (c) <= 'i') \ 11534 || ('j' <= (c) && (c) <= 'r') \ 11535 || ('s' <= (c) && (c) <= 'z')) 11536# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11537#endif 11538 11539#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11540int 11541main () 11542{ 11543 int i; 11544 for (i = 0; i < 256; i++) 11545 if (XOR (islower (i), ISLOWER (i)) 11546 || toupper (i) != TOUPPER (i)) 11547 return 2; 11548 return 0; 11549} 11550_ACEOF 11551if ac_fn_c_try_run "$LINENO"; then : 11552 11553else 11554 ac_cv_header_stdc=no 11555fi 11556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11557 conftest.$ac_objext conftest.beam conftest.$ac_ext 11558fi 11559 11560fi 11561fi 11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11563$as_echo "$ac_cv_header_stdc" >&6; } 11564if test $ac_cv_header_stdc = yes; then 11565 11566$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11567 11568fi 11569 11570 11571# Check for systems which need -lsocket and -lnsl 11572#AX_LIB_SOCKET_NSL 11573 11574# Solaris puts nanosleep in -lrt 11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 11576$as_echo_n "checking for library containing nanosleep... " >&6; } 11577if ${ac_cv_search_nanosleep+:} false; then : 11578 $as_echo_n "(cached) " >&6 11579else 11580 ac_func_search_save_LIBS=$LIBS 11581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582/* end confdefs.h. */ 11583 11584/* Override any GCC internal prototype to avoid an error. 11585 Use char because int might match the return type of a GCC 11586 builtin and then its argument prototype would still apply. */ 11587#ifdef __cplusplus 11588extern "C" 11589#endif 11590char nanosleep (); 11591int 11592main () 11593{ 11594return nanosleep (); 11595 ; 11596 return 0; 11597} 11598_ACEOF 11599for ac_lib in '' rt; do 11600 if test -z "$ac_lib"; then 11601 ac_res="none required" 11602 else 11603 ac_res=-l$ac_lib 11604 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11605 fi 11606 if ac_fn_c_try_link "$LINENO"; then : 11607 ac_cv_search_nanosleep=$ac_res 11608fi 11609rm -f core conftest.err conftest.$ac_objext \ 11610 conftest$ac_exeext 11611 if ${ac_cv_search_nanosleep+:} false; then : 11612 break 11613fi 11614done 11615if ${ac_cv_search_nanosleep+:} false; then : 11616 11617else 11618 ac_cv_search_nanosleep=no 11619fi 11620rm conftest.$ac_ext 11621LIBS=$ac_func_search_save_LIBS 11622fi 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 11624$as_echo "$ac_cv_search_nanosleep" >&6; } 11625ac_res=$ac_cv_search_nanosleep 11626if test "$ac_res" != no; then : 11627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11628 11629else 11630 11631echo "nanosleep() required for timing operations." 11632exit 1 11633 11634fi 11635 11636 11637# Solaris puts hstrerror in -lresolv 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 11639$as_echo_n "checking for library containing hstrerror... " >&6; } 11640if ${ac_cv_search_hstrerror+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 ac_func_search_save_LIBS=$LIBS 11644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646 11647/* Override any GCC internal prototype to avoid an error. 11648 Use char because int might match the return type of a GCC 11649 builtin and then its argument prototype would still apply. */ 11650#ifdef __cplusplus 11651extern "C" 11652#endif 11653char hstrerror (); 11654int 11655main () 11656{ 11657return hstrerror (); 11658 ; 11659 return 0; 11660} 11661_ACEOF 11662for ac_lib in '' resolv; do 11663 if test -z "$ac_lib"; then 11664 ac_res="none required" 11665 else 11666 ac_res=-l$ac_lib 11667 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11668 fi 11669 if ac_fn_c_try_link "$LINENO"; then : 11670 ac_cv_search_hstrerror=$ac_res 11671fi 11672rm -f core conftest.err conftest.$ac_objext \ 11673 conftest$ac_exeext 11674 if ${ac_cv_search_hstrerror+:} false; then : 11675 break 11676fi 11677done 11678if ${ac_cv_search_hstrerror+:} false; then : 11679 11680else 11681 ac_cv_search_hstrerror=no 11682fi 11683rm conftest.$ac_ext 11684LIBS=$ac_func_search_save_LIBS 11685fi 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 11687$as_echo "$ac_cv_search_hstrerror" >&6; } 11688ac_res=$ac_cv_search_hstrerror 11689if test "$ac_res" != no; then : 11690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11691 11692else 11693 11694echo "nanosleep() required for timing operations." 11695exit 1 11696 11697fi 11698 11699 11700# Checks for typedefs, structures, and compiler characteristics. 11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 11702$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11703if ${ac_cv_c_const+:} false; then : 11704 $as_echo_n "(cached) " >&6 11705else 11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11707/* end confdefs.h. */ 11708 11709int 11710main () 11711{ 11712 11713#ifndef __cplusplus 11714 /* Ultrix mips cc rejects this sort of thing. */ 11715 typedef int charset[2]; 11716 const charset cs = { 0, 0 }; 11717 /* SunOS 4.1.1 cc rejects this. */ 11718 char const *const *pcpcc; 11719 char **ppc; 11720 /* NEC SVR4.0.2 mips cc rejects this. */ 11721 struct point {int x, y;}; 11722 static struct point const zero = {0,0}; 11723 /* AIX XL C 1.02.0.0 rejects this. 11724 It does not let you subtract one const X* pointer from another in 11725 an arm of an if-expression whose if-part is not a constant 11726 expression */ 11727 const char *g = "string"; 11728 pcpcc = &g + (g ? g-g : 0); 11729 /* HPUX 7.0 cc rejects these. */ 11730 ++pcpcc; 11731 ppc = (char**) pcpcc; 11732 pcpcc = (char const *const *) ppc; 11733 { /* SCO 3.2v4 cc rejects this sort of thing. */ 11734 char tx; 11735 char *t = &tx; 11736 char const *s = 0 ? (char *) 0 : (char const *) 0; 11737 11738 *t++ = 0; 11739 if (s) return 0; 11740 } 11741 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11742 int x[] = {25, 17}; 11743 const int *foo = &x[0]; 11744 ++foo; 11745 } 11746 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11747 typedef const int *iptr; 11748 iptr p = 0; 11749 ++p; 11750 } 11751 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 11752 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11753 struct s { int j; const int *ap[3]; } bx; 11754 struct s *b = &bx; b->j = 5; 11755 } 11756 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11757 const int foo = 10; 11758 if (!foo) return 0; 11759 } 11760 return !cs[0] && !zero.x; 11761#endif 11762 11763 ; 11764 return 0; 11765} 11766_ACEOF 11767if ac_fn_c_try_compile "$LINENO"; then : 11768 ac_cv_c_const=yes 11769else 11770 ac_cv_c_const=no 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11773fi 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 11775$as_echo "$ac_cv_c_const" >&6; } 11776if test $ac_cv_c_const = no; then 11777 11778$as_echo "#define const /**/" >>confdefs.h 11779 11780fi 11781 11782 11783ac_config_files="$ac_config_files Makefile src/Makefile" 11784 11785cat >confcache <<\_ACEOF 11786# This file is a shell script that caches the results of configure 11787# tests run on this system so they can be shared between configure 11788# scripts and configure runs, see configure's option --config-cache. 11789# It is not useful on other systems. If it contains results you don't 11790# want to keep, you may remove or edit it. 11791# 11792# config.status only pays attention to the cache file if you give it 11793# the --recheck option to rerun configure. 11794# 11795# `ac_cv_env_foo' variables (set or unset) will be overridden when 11796# loading this file, other *unset* `ac_cv_foo' will be assigned the 11797# following values. 11798 11799_ACEOF 11800 11801# The following way of writing the cache mishandles newlines in values, 11802# but we know of no workaround that is simple, portable, and efficient. 11803# So, we kill variables containing newlines. 11804# Ultrix sh set writes to stderr and can't be redirected directly, 11805# and sets the high bit in the cache file unless we assign to the vars. 11806( 11807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11808 eval ac_val=\$$ac_var 11809 case $ac_val in #( 11810 *${as_nl}*) 11811 case $ac_var in #( 11812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11813$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11814 esac 11815 case $ac_var in #( 11816 _ | IFS | as_nl) ;; #( 11817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11818 *) { eval $ac_var=; unset $ac_var;} ;; 11819 esac ;; 11820 esac 11821 done 11822 11823 (set) 2>&1 | 11824 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11825 *${as_nl}ac_space=\ *) 11826 # `set' does not quote correctly, so add quotes: double-quote 11827 # substitution turns \\\\ into \\, and sed turns \\ into \. 11828 sed -n \ 11829 "s/'/'\\\\''/g; 11830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11831 ;; #( 11832 *) 11833 # `set' quotes correctly as required by POSIX, so do not add quotes. 11834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11835 ;; 11836 esac | 11837 sort 11838) | 11839 sed ' 11840 /^ac_cv_env_/b end 11841 t clear 11842 :clear 11843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11844 t end 11845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11846 :end' >>confcache 11847if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11848 if test -w "$cache_file"; then 11849 if test "x$cache_file" != "x/dev/null"; then 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11851$as_echo "$as_me: updating cache $cache_file" >&6;} 11852 if test ! -f "$cache_file" || test -h "$cache_file"; then 11853 cat confcache >"$cache_file" 11854 else 11855 case $cache_file in #( 11856 */* | ?:*) 11857 mv -f confcache "$cache_file"$$ && 11858 mv -f "$cache_file"$$ "$cache_file" ;; #( 11859 *) 11860 mv -f confcache "$cache_file" ;; 11861 esac 11862 fi 11863 fi 11864 else 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11866$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11867 fi 11868fi 11869rm -f confcache 11870 11871test "x$prefix" = xNONE && prefix=$ac_default_prefix 11872# Let make expand exec_prefix. 11873test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11874 11875DEFS=-DHAVE_CONFIG_H 11876 11877ac_libobjs= 11878ac_ltlibobjs= 11879for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11880 # 1. Remove the extension, and $U if already installed. 11881 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11882 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11883 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11884 # will be set to the directory where LIBOBJS objects are built. 11885 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11886 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11887done 11888LIBOBJS=$ac_libobjs 11889 11890LTLIBOBJS=$ac_ltlibobjs 11891 11892 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11894$as_echo_n "checking that generated files are newer than configure... " >&6; } 11895 if test -n "$am_sleep_pid"; then 11896 # Hide warnings about reused PIDs. 11897 wait $am_sleep_pid 2>/dev/null 11898 fi 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11900$as_echo "done" >&6; } 11901 if test -n "$EXEEXT"; then 11902 am__EXEEXT_TRUE= 11903 am__EXEEXT_FALSE='#' 11904else 11905 am__EXEEXT_TRUE='#' 11906 am__EXEEXT_FALSE= 11907fi 11908 11909if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11910 as_fn_error $? "conditional \"AMDEP\" was never defined. 11911Usually this means the macro was only invoked conditionally." "$LINENO" 5 11912fi 11913if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11914 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11915Usually this means the macro was only invoked conditionally." "$LINENO" 5 11916fi 11917if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 11918 as_fn_error $? "conditional \"LINUX\" was never defined. 11919Usually this means the macro was only invoked conditionally." "$LINENO" 5 11920fi 11921 11922: "${CONFIG_STATUS=./config.status}" 11923ac_write_fail=0 11924ac_clean_files_save=$ac_clean_files 11925ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11927$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11928as_write_fail=0 11929cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11930#! $SHELL 11931# Generated by $as_me. 11932# Run this file to recreate the current configuration. 11933# Compiler output produced by configure, useful for debugging 11934# configure, is in config.log if it exists. 11935 11936debug=false 11937ac_cs_recheck=false 11938ac_cs_silent=false 11939 11940SHELL=\${CONFIG_SHELL-$SHELL} 11941export SHELL 11942_ASEOF 11943cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11944## -------------------- ## 11945## M4sh Initialization. ## 11946## -------------------- ## 11947 11948# Be more Bourne compatible 11949DUALCASE=1; export DUALCASE # for MKS sh 11950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11951 emulate sh 11952 NULLCMD=: 11953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11954 # is contrary to our usage. Disable this feature. 11955 alias -g '${1+"$@"}'='"$@"' 11956 setopt NO_GLOB_SUBST 11957else 11958 case `(set -o) 2>/dev/null` in #( 11959 *posix*) : 11960 set -o posix ;; #( 11961 *) : 11962 ;; 11963esac 11964fi 11965 11966 11967as_nl=' 11968' 11969export as_nl 11970# Printing a long string crashes Solaris 7 /usr/bin/printf. 11971as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11974# Prefer a ksh shell builtin over an external printf program on Solaris, 11975# but without wasting forks for bash or zsh. 11976if test -z "$BASH_VERSION$ZSH_VERSION" \ 11977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11978 as_echo='print -r --' 11979 as_echo_n='print -rn --' 11980elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11981 as_echo='printf %s\n' 11982 as_echo_n='printf %s' 11983else 11984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11985 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11986 as_echo_n='/usr/ucb/echo -n' 11987 else 11988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11989 as_echo_n_body='eval 11990 arg=$1; 11991 case $arg in #( 11992 *"$as_nl"*) 11993 expr "X$arg" : "X\\(.*\\)$as_nl"; 11994 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11995 esac; 11996 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11997 ' 11998 export as_echo_n_body 11999 as_echo_n='sh -c $as_echo_n_body as_echo' 12000 fi 12001 export as_echo_body 12002 as_echo='sh -c $as_echo_body as_echo' 12003fi 12004 12005# The user is always right. 12006if test "${PATH_SEPARATOR+set}" != set; then 12007 PATH_SEPARATOR=: 12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12010 PATH_SEPARATOR=';' 12011 } 12012fi 12013 12014 12015# IFS 12016# We need space, tab and new line, in precisely that order. Quoting is 12017# there to prevent editors from complaining about space-tab. 12018# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12019# splitting by setting IFS to empty value.) 12020IFS=" "" $as_nl" 12021 12022# Find who we are. Look in the path if we contain no directory separator. 12023as_myself= 12024case $0 in #(( 12025 *[\\/]* ) as_myself=$0 ;; 12026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12027for as_dir in $PATH 12028do 12029 IFS=$as_save_IFS 12030 test -z "$as_dir" && as_dir=. 12031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12032 done 12033IFS=$as_save_IFS 12034 12035 ;; 12036esac 12037# We did not find ourselves, most probably we were run as `sh COMMAND' 12038# in which case we are not to be found in the path. 12039if test "x$as_myself" = x; then 12040 as_myself=$0 12041fi 12042if test ! -f "$as_myself"; then 12043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12044 exit 1 12045fi 12046 12047# Unset variables that we do not need and which cause bugs (e.g. in 12048# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12049# suppresses any "Segmentation fault" message there. '((' could 12050# trigger a bug in pdksh 5.2.14. 12051for as_var in BASH_ENV ENV MAIL MAILPATH 12052do eval test x\${$as_var+set} = xset \ 12053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12054done 12055PS1='$ ' 12056PS2='> ' 12057PS4='+ ' 12058 12059# NLS nuisances. 12060LC_ALL=C 12061export LC_ALL 12062LANGUAGE=C 12063export LANGUAGE 12064 12065# CDPATH. 12066(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12067 12068 12069# as_fn_error STATUS ERROR [LINENO LOG_FD] 12070# ---------------------------------------- 12071# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12072# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12073# script with STATUS, using 1 if that was 0. 12074as_fn_error () 12075{ 12076 as_status=$1; test $as_status -eq 0 && as_status=1 12077 if test "$4"; then 12078 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12080 fi 12081 $as_echo "$as_me: error: $2" >&2 12082 as_fn_exit $as_status 12083} # as_fn_error 12084 12085 12086# as_fn_set_status STATUS 12087# ----------------------- 12088# Set $? to STATUS, without forking. 12089as_fn_set_status () 12090{ 12091 return $1 12092} # as_fn_set_status 12093 12094# as_fn_exit STATUS 12095# ----------------- 12096# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12097as_fn_exit () 12098{ 12099 set +e 12100 as_fn_set_status $1 12101 exit $1 12102} # as_fn_exit 12103 12104# as_fn_unset VAR 12105# --------------- 12106# Portably unset VAR. 12107as_fn_unset () 12108{ 12109 { eval $1=; unset $1;} 12110} 12111as_unset=as_fn_unset 12112# as_fn_append VAR VALUE 12113# ---------------------- 12114# Append the text in VALUE to the end of the definition contained in VAR. Take 12115# advantage of any shell optimizations that allow amortized linear growth over 12116# repeated appends, instead of the typical quadratic growth present in naive 12117# implementations. 12118if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12119 eval 'as_fn_append () 12120 { 12121 eval $1+=\$2 12122 }' 12123else 12124 as_fn_append () 12125 { 12126 eval $1=\$$1\$2 12127 } 12128fi # as_fn_append 12129 12130# as_fn_arith ARG... 12131# ------------------ 12132# Perform arithmetic evaluation on the ARGs, and store the result in the 12133# global $as_val. Take advantage of shells that can avoid forks. The arguments 12134# must be portable across $(()) and expr. 12135if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12136 eval 'as_fn_arith () 12137 { 12138 as_val=$(( $* )) 12139 }' 12140else 12141 as_fn_arith () 12142 { 12143 as_val=`expr "$@" || test $? -eq 1` 12144 } 12145fi # as_fn_arith 12146 12147 12148if expr a : '\(a\)' >/dev/null 2>&1 && 12149 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12150 as_expr=expr 12151else 12152 as_expr=false 12153fi 12154 12155if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12156 as_basename=basename 12157else 12158 as_basename=false 12159fi 12160 12161if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12162 as_dirname=dirname 12163else 12164 as_dirname=false 12165fi 12166 12167as_me=`$as_basename -- "$0" || 12168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12169 X"$0" : 'X\(//\)$' \| \ 12170 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12171$as_echo X/"$0" | 12172 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12173 s//\1/ 12174 q 12175 } 12176 /^X\/\(\/\/\)$/{ 12177 s//\1/ 12178 q 12179 } 12180 /^X\/\(\/\).*/{ 12181 s//\1/ 12182 q 12183 } 12184 s/.*/./; q'` 12185 12186# Avoid depending upon Character Ranges. 12187as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12188as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12189as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12190as_cr_digits='0123456789' 12191as_cr_alnum=$as_cr_Letters$as_cr_digits 12192 12193ECHO_C= ECHO_N= ECHO_T= 12194case `echo -n x` in #((((( 12195-n*) 12196 case `echo 'xy\c'` in 12197 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12198 xy) ECHO_C='\c';; 12199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12200 ECHO_T=' ';; 12201 esac;; 12202*) 12203 ECHO_N='-n';; 12204esac 12205 12206rm -f conf$$ conf$$.exe conf$$.file 12207if test -d conf$$.dir; then 12208 rm -f conf$$.dir/conf$$.file 12209else 12210 rm -f conf$$.dir 12211 mkdir conf$$.dir 2>/dev/null 12212fi 12213if (echo >conf$$.file) 2>/dev/null; then 12214 if ln -s conf$$.file conf$$ 2>/dev/null; then 12215 as_ln_s='ln -s' 12216 # ... but there are two gotchas: 12217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12219 # In both cases, we have to default to `cp -pR'. 12220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12221 as_ln_s='cp -pR' 12222 elif ln conf$$.file conf$$ 2>/dev/null; then 12223 as_ln_s=ln 12224 else 12225 as_ln_s='cp -pR' 12226 fi 12227else 12228 as_ln_s='cp -pR' 12229fi 12230rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12231rmdir conf$$.dir 2>/dev/null 12232 12233 12234# as_fn_mkdir_p 12235# ------------- 12236# Create "$as_dir" as a directory, including parents if necessary. 12237as_fn_mkdir_p () 12238{ 12239 12240 case $as_dir in #( 12241 -*) as_dir=./$as_dir;; 12242 esac 12243 test -d "$as_dir" || eval $as_mkdir_p || { 12244 as_dirs= 12245 while :; do 12246 case $as_dir in #( 12247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12248 *) as_qdir=$as_dir;; 12249 esac 12250 as_dirs="'$as_qdir' $as_dirs" 12251 as_dir=`$as_dirname -- "$as_dir" || 12252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12253 X"$as_dir" : 'X\(//\)[^/]' \| \ 12254 X"$as_dir" : 'X\(//\)$' \| \ 12255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12256$as_echo X"$as_dir" | 12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12258 s//\1/ 12259 q 12260 } 12261 /^X\(\/\/\)[^/].*/{ 12262 s//\1/ 12263 q 12264 } 12265 /^X\(\/\/\)$/{ 12266 s//\1/ 12267 q 12268 } 12269 /^X\(\/\).*/{ 12270 s//\1/ 12271 q 12272 } 12273 s/.*/./; q'` 12274 test -d "$as_dir" && break 12275 done 12276 test -z "$as_dirs" || eval "mkdir $as_dirs" 12277 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12278 12279 12280} # as_fn_mkdir_p 12281if mkdir -p . 2>/dev/null; then 12282 as_mkdir_p='mkdir -p "$as_dir"' 12283else 12284 test -d ./-p && rmdir ./-p 12285 as_mkdir_p=false 12286fi 12287 12288 12289# as_fn_executable_p FILE 12290# ----------------------- 12291# Test if FILE is an executable regular file. 12292as_fn_executable_p () 12293{ 12294 test -f "$1" && test -x "$1" 12295} # as_fn_executable_p 12296as_test_x='test -x' 12297as_executable_p=as_fn_executable_p 12298 12299# Sed expression to map a string onto a valid CPP name. 12300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12301 12302# Sed expression to map a string onto a valid variable name. 12303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12304 12305 12306exec 6>&1 12307## ----------------------------------- ## 12308## Main body of $CONFIG_STATUS script. ## 12309## ----------------------------------- ## 12310_ASEOF 12311test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12312 12313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12314# Save the log message, to keep $0 and so on meaningful, and to 12315# report actual input values of CONFIG_FILES etc. instead of their 12316# values after options handling. 12317ac_log=" 12318This file was extended by iperf $as_me 3.0.1, which was 12319generated by GNU Autoconf 2.69. Invocation command line was 12320 12321 CONFIG_FILES = $CONFIG_FILES 12322 CONFIG_HEADERS = $CONFIG_HEADERS 12323 CONFIG_LINKS = $CONFIG_LINKS 12324 CONFIG_COMMANDS = $CONFIG_COMMANDS 12325 $ $0 $@ 12326 12327on `(hostname || uname -n) 2>/dev/null | sed 1q` 12328" 12329 12330_ACEOF 12331 12332case $ac_config_files in *" 12333"*) set x $ac_config_files; shift; ac_config_files=$*;; 12334esac 12335 12336case $ac_config_headers in *" 12337"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12338esac 12339 12340 12341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12342# Files that config.status was made for. 12343config_files="$ac_config_files" 12344config_headers="$ac_config_headers" 12345config_commands="$ac_config_commands" 12346 12347_ACEOF 12348 12349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12350ac_cs_usage="\ 12351\`$as_me' instantiates files and other configuration actions 12352from templates according to the current configuration. Unless the files 12353and actions are specified as TAGs, all are instantiated by default. 12354 12355Usage: $0 [OPTION]... [TAG]... 12356 12357 -h, --help print this help, then exit 12358 -V, --version print version number and configuration settings, then exit 12359 --config print configuration, then exit 12360 -q, --quiet, --silent 12361 do not print progress messages 12362 -d, --debug don't remove temporary files 12363 --recheck update $as_me by reconfiguring in the same conditions 12364 --file=FILE[:TEMPLATE] 12365 instantiate the configuration file FILE 12366 --header=FILE[:TEMPLATE] 12367 instantiate the configuration header FILE 12368 12369Configuration files: 12370$config_files 12371 12372Configuration headers: 12373$config_headers 12374 12375Configuration commands: 12376$config_commands 12377 12378Report bugs to <https://github.com/esnet/iperf>." 12379 12380_ACEOF 12381cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12382ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12383ac_cs_version="\\ 12384iperf config.status 3.0.1 12385configured by $0, generated by GNU Autoconf 2.69, 12386 with options \\"\$ac_cs_config\\" 12387 12388Copyright (C) 2012 Free Software Foundation, Inc. 12389This config.status script is free software; the Free Software Foundation 12390gives unlimited permission to copy, distribute and modify it." 12391 12392ac_pwd='$ac_pwd' 12393srcdir='$srcdir' 12394INSTALL='$INSTALL' 12395MKDIR_P='$MKDIR_P' 12396AWK='$AWK' 12397test -n "\$AWK" || AWK=awk 12398_ACEOF 12399 12400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12401# The default lists apply if the user does not specify any file. 12402ac_need_defaults=: 12403while test $# != 0 12404do 12405 case $1 in 12406 --*=?*) 12407 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12409 ac_shift=: 12410 ;; 12411 --*=) 12412 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12413 ac_optarg= 12414 ac_shift=: 12415 ;; 12416 *) 12417 ac_option=$1 12418 ac_optarg=$2 12419 ac_shift=shift 12420 ;; 12421 esac 12422 12423 case $ac_option in 12424 # Handling of the options. 12425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12426 ac_cs_recheck=: ;; 12427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12428 $as_echo "$ac_cs_version"; exit ;; 12429 --config | --confi | --conf | --con | --co | --c ) 12430 $as_echo "$ac_cs_config"; exit ;; 12431 --debug | --debu | --deb | --de | --d | -d ) 12432 debug=: ;; 12433 --file | --fil | --fi | --f ) 12434 $ac_shift 12435 case $ac_optarg in 12436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12437 '') as_fn_error $? "missing file argument" ;; 12438 esac 12439 as_fn_append CONFIG_FILES " '$ac_optarg'" 12440 ac_need_defaults=false;; 12441 --header | --heade | --head | --hea ) 12442 $ac_shift 12443 case $ac_optarg in 12444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12445 esac 12446 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12447 ac_need_defaults=false;; 12448 --he | --h) 12449 # Conflict between --help and --header 12450 as_fn_error $? "ambiguous option: \`$1' 12451Try \`$0 --help' for more information.";; 12452 --help | --hel | -h ) 12453 $as_echo "$ac_cs_usage"; exit ;; 12454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12455 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12456 ac_cs_silent=: ;; 12457 12458 # This is an error. 12459 -*) as_fn_error $? "unrecognized option: \`$1' 12460Try \`$0 --help' for more information." ;; 12461 12462 *) as_fn_append ac_config_targets " $1" 12463 ac_need_defaults=false ;; 12464 12465 esac 12466 shift 12467done 12468 12469ac_configure_extra_args= 12470 12471if $ac_cs_silent; then 12472 exec 6>/dev/null 12473 ac_configure_extra_args="$ac_configure_extra_args --silent" 12474fi 12475 12476_ACEOF 12477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12478if \$ac_cs_recheck; then 12479 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12480 shift 12481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12482 CONFIG_SHELL='$SHELL' 12483 export CONFIG_SHELL 12484 exec "\$@" 12485fi 12486 12487_ACEOF 12488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12489exec 5>>config.log 12490{ 12491 echo 12492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12493## Running $as_me. ## 12494_ASBOX 12495 $as_echo "$ac_log" 12496} >&5 12497 12498_ACEOF 12499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12500# 12501# INIT-COMMANDS 12502# 12503AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12504 12505 12506# The HP-UX ksh and POSIX shell print the target directory to stdout 12507# if CDPATH is set. 12508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12509 12510sed_quote_subst='$sed_quote_subst' 12511double_quote_subst='$double_quote_subst' 12512delay_variable_subst='$delay_variable_subst' 12513macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12514macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12515enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12516enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12517pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12518enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12519SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12520ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12521PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 12522host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12523host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12524host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12525build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12526build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12527build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12528SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12529Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12530GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12531EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12532FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12533LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12534NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12535LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12536max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12537ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12538exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12539lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12540lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12541lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12542lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 12543lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 12544reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12545reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12546OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12547deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12548file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12549file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 12550want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 12551DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12552sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 12553AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12554AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12555archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 12556STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12557RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12558old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12559old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12560old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12561lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12562CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12563CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12564compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12565GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12566lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12568lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12569lt_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"`' 12570nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 12571lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 12572objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12573MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12574lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12575lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12576lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12577lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12578lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12579need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12580MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 12581DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12582NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12583LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12584OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12585OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12586libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12587shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12588extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12589archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12590enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12591export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12592whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12593compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12594old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12595old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12596archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12597archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12598module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12599module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12600with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12601allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12602no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12603hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12604hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12605hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12606hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12607hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12608hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12609hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12610inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12611link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12612always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12613export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12614exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12615include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12616prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12617postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 12618file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12619variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12620need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12621need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12622version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12623runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12624shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12625shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12626libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12627library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12628soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12629install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12630postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12631postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12632finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12633finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12634hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12635sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12636sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12637hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12638enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12639enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12640enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12641old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12642striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12643 12644LTCC='$LTCC' 12645LTCFLAGS='$LTCFLAGS' 12646compiler='$compiler_DEFAULT' 12647 12648# A function that is used when there is no print builtin or printf. 12649func_fallback_echo () 12650{ 12651 eval 'cat <<_LTECHO_EOF 12652\$1 12653_LTECHO_EOF' 12654} 12655 12656# Quote evaled strings. 12657for var in SHELL \ 12658ECHO \ 12659PATH_SEPARATOR \ 12660SED \ 12661GREP \ 12662EGREP \ 12663FGREP \ 12664LD \ 12665NM \ 12666LN_S \ 12667lt_SP2NL \ 12668lt_NL2SP \ 12669reload_flag \ 12670OBJDUMP \ 12671deplibs_check_method \ 12672file_magic_cmd \ 12673file_magic_glob \ 12674want_nocaseglob \ 12675DLLTOOL \ 12676sharedlib_from_linklib_cmd \ 12677AR \ 12678AR_FLAGS \ 12679archiver_list_spec \ 12680STRIP \ 12681RANLIB \ 12682CC \ 12683CFLAGS \ 12684compiler \ 12685lt_cv_sys_global_symbol_pipe \ 12686lt_cv_sys_global_symbol_to_cdecl \ 12687lt_cv_sys_global_symbol_to_c_name_address \ 12688lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12689nm_file_list_spec \ 12690lt_prog_compiler_no_builtin_flag \ 12691lt_prog_compiler_pic \ 12692lt_prog_compiler_wl \ 12693lt_prog_compiler_static \ 12694lt_cv_prog_compiler_c_o \ 12695need_locks \ 12696MANIFEST_TOOL \ 12697DSYMUTIL \ 12698NMEDIT \ 12699LIPO \ 12700OTOOL \ 12701OTOOL64 \ 12702shrext_cmds \ 12703export_dynamic_flag_spec \ 12704whole_archive_flag_spec \ 12705compiler_needs_object \ 12706with_gnu_ld \ 12707allow_undefined_flag \ 12708no_undefined_flag \ 12709hardcode_libdir_flag_spec \ 12710hardcode_libdir_separator \ 12711exclude_expsyms \ 12712include_expsyms \ 12713file_list_spec \ 12714variables_saved_for_relink \ 12715libname_spec \ 12716library_names_spec \ 12717soname_spec \ 12718install_override_mode \ 12719finish_eval \ 12720old_striplib \ 12721striplib; do 12722 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12723 *[\\\\\\\`\\"\\\$]*) 12724 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12725 ;; 12726 *) 12727 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12728 ;; 12729 esac 12730done 12731 12732# Double-quote double-evaled strings. 12733for var in reload_cmds \ 12734old_postinstall_cmds \ 12735old_postuninstall_cmds \ 12736old_archive_cmds \ 12737extract_expsyms_cmds \ 12738old_archive_from_new_cmds \ 12739old_archive_from_expsyms_cmds \ 12740archive_cmds \ 12741archive_expsym_cmds \ 12742module_cmds \ 12743module_expsym_cmds \ 12744export_symbols_cmds \ 12745prelink_cmds \ 12746postlink_cmds \ 12747postinstall_cmds \ 12748postuninstall_cmds \ 12749finish_cmds \ 12750sys_lib_search_path_spec \ 12751sys_lib_dlsearch_path_spec; do 12752 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12753 *[\\\\\\\`\\"\\\$]*) 12754 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12755 ;; 12756 *) 12757 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12758 ;; 12759 esac 12760done 12761 12762ac_aux_dir='$ac_aux_dir' 12763xsi_shell='$xsi_shell' 12764lt_shell_append='$lt_shell_append' 12765 12766# See if we are running on zsh, and set the options which allow our 12767# commands through without removal of \ escapes INIT. 12768if test -n "\${ZSH_VERSION+set}" ; then 12769 setopt NO_GLOB_SUBST 12770fi 12771 12772 12773 PACKAGE='$PACKAGE' 12774 VERSION='$VERSION' 12775 TIMESTAMP='$TIMESTAMP' 12776 RM='$RM' 12777 ofile='$ofile' 12778 12779 12780 12781 12782_ACEOF 12783 12784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12785 12786# Handling of arguments. 12787for ac_config_target in $ac_config_targets 12788do 12789 case $ac_config_target in 12790 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 12791 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12792 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12793 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12794 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12795 12796 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12797 esac 12798done 12799 12800 12801# If the user did not use the arguments to specify the items to instantiate, 12802# then the envvar interface is used. Set only those that are not. 12803# We use the long form for the default assignment because of an extremely 12804# bizarre bug on SunOS 4.1.3. 12805if $ac_need_defaults; then 12806 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12807 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12808 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12809fi 12810 12811# Have a temporary directory for convenience. Make it in the build tree 12812# simply because there is no reason against having it here, and in addition, 12813# creating and moving files from /tmp can sometimes cause problems. 12814# Hook for its removal unless debugging. 12815# Note that there is a small window in which the directory will not be cleaned: 12816# after its creation but before its name has been assigned to `$tmp'. 12817$debug || 12818{ 12819 tmp= ac_tmp= 12820 trap 'exit_status=$? 12821 : "${ac_tmp:=$tmp}" 12822 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12823' 0 12824 trap 'as_fn_exit 1' 1 2 13 15 12825} 12826# Create a (secure) tmp directory for tmp files. 12827 12828{ 12829 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12830 test -d "$tmp" 12831} || 12832{ 12833 tmp=./conf$$-$RANDOM 12834 (umask 077 && mkdir "$tmp") 12835} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12836ac_tmp=$tmp 12837 12838# Set up the scripts for CONFIG_FILES section. 12839# No need to generate them if there are no CONFIG_FILES. 12840# This happens for instance with `./config.status config.h'. 12841if test -n "$CONFIG_FILES"; then 12842 12843 12844ac_cr=`echo X | tr X '\015'` 12845# On cygwin, bash can eat \r inside `` if the user requested igncr. 12846# But we know of no other shell where ac_cr would be empty at this 12847# point, so we can use a bashism as a fallback. 12848if test "x$ac_cr" = x; then 12849 eval ac_cr=\$\'\\r\' 12850fi 12851ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12852if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12853 ac_cs_awk_cr='\\r' 12854else 12855 ac_cs_awk_cr=$ac_cr 12856fi 12857 12858echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12859_ACEOF 12860 12861 12862{ 12863 echo "cat >conf$$subs.awk <<_ACEOF" && 12864 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12865 echo "_ACEOF" 12866} >conf$$subs.sh || 12867 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12868ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12869ac_delim='%!_!# ' 12870for ac_last_try in false false false false false :; do 12871 . ./conf$$subs.sh || 12872 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12873 12874 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12875 if test $ac_delim_n = $ac_delim_num; then 12876 break 12877 elif $ac_last_try; then 12878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12879 else 12880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12881 fi 12882done 12883rm -f conf$$subs.sh 12884 12885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12886cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12887_ACEOF 12888sed -n ' 12889h 12890s/^/S["/; s/!.*/"]=/ 12891p 12892g 12893s/^[^!]*!// 12894:repl 12895t repl 12896s/'"$ac_delim"'$// 12897t delim 12898:nl 12899h 12900s/\(.\{148\}\)..*/\1/ 12901t more1 12902s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12903p 12904n 12905b repl 12906:more1 12907s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12908p 12909g 12910s/.\{148\}// 12911t nl 12912:delim 12913h 12914s/\(.\{148\}\)..*/\1/ 12915t more2 12916s/["\\]/\\&/g; s/^/"/; s/$/"/ 12917p 12918b 12919:more2 12920s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12921p 12922g 12923s/.\{148\}// 12924t delim 12925' <conf$$subs.awk | sed ' 12926/^[^""]/{ 12927 N 12928 s/\n// 12929} 12930' >>$CONFIG_STATUS || ac_write_fail=1 12931rm -f conf$$subs.awk 12932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12933_ACAWK 12934cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12935 for (key in S) S_is_set[key] = 1 12936 FS = "" 12937 12938} 12939{ 12940 line = $ 0 12941 nfields = split(line, field, "@") 12942 substed = 0 12943 len = length(field[1]) 12944 for (i = 2; i < nfields; i++) { 12945 key = field[i] 12946 keylen = length(key) 12947 if (S_is_set[key]) { 12948 value = S[key] 12949 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12950 len += length(value) + length(field[++i]) 12951 substed = 1 12952 } else 12953 len += 1 + keylen 12954 } 12955 12956 print line 12957} 12958 12959_ACAWK 12960_ACEOF 12961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12962if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12963 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12964else 12965 cat 12966fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12967 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12968_ACEOF 12969 12970# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12971# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12972# trailing colons and then remove the whole line if VPATH becomes empty 12973# (actually we leave an empty line to preserve line numbers). 12974if test "x$srcdir" = x.; then 12975 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12976h 12977s/// 12978s/^/:/ 12979s/[ ]*$/:/ 12980s/:\$(srcdir):/:/g 12981s/:\${srcdir}:/:/g 12982s/:@srcdir@:/:/g 12983s/^:*// 12984s/:*$// 12985x 12986s/\(=[ ]*\).*/\1/ 12987G 12988s/\n// 12989s/^[^=]*=[ ]*$// 12990}' 12991fi 12992 12993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12994fi # test -n "$CONFIG_FILES" 12995 12996# Set up the scripts for CONFIG_HEADERS section. 12997# No need to generate them if there are no CONFIG_HEADERS. 12998# This happens for instance with `./config.status Makefile'. 12999if test -n "$CONFIG_HEADERS"; then 13000cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13001BEGIN { 13002_ACEOF 13003 13004# Transform confdefs.h into an awk script `defines.awk', embedded as 13005# here-document in config.status, that substitutes the proper values into 13006# config.h.in to produce config.h. 13007 13008# Create a delimiter string that does not exist in confdefs.h, to ease 13009# handling of long lines. 13010ac_delim='%!_!# ' 13011for ac_last_try in false false :; do 13012 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13013 if test -z "$ac_tt"; then 13014 break 13015 elif $ac_last_try; then 13016 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13017 else 13018 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13019 fi 13020done 13021 13022# For the awk script, D is an array of macro values keyed by name, 13023# likewise P contains macro parameters if any. Preserve backslash 13024# newline sequences. 13025 13026ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13027sed -n ' 13028s/.\{148\}/&'"$ac_delim"'/g 13029t rset 13030:rset 13031s/^[ ]*#[ ]*define[ ][ ]*/ / 13032t def 13033d 13034:def 13035s/\\$// 13036t bsnl 13037s/["\\]/\\&/g 13038s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13039D["\1"]=" \3"/p 13040s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13041d 13042:bsnl 13043s/["\\]/\\&/g 13044s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13045D["\1"]=" \3\\\\\\n"\\/p 13046t cont 13047s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13048t cont 13049d 13050:cont 13051n 13052s/.\{148\}/&'"$ac_delim"'/g 13053t clear 13054:clear 13055s/\\$// 13056t bsnlc 13057s/["\\]/\\&/g; s/^/"/; s/$/"/p 13058d 13059:bsnlc 13060s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13061b cont 13062' <confdefs.h | sed ' 13063s/'"$ac_delim"'/"\\\ 13064"/g' >>$CONFIG_STATUS || ac_write_fail=1 13065 13066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13067 for (key in D) D_is_set[key] = 1 13068 FS = "" 13069} 13070/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13071 line = \$ 0 13072 split(line, arg, " ") 13073 if (arg[1] == "#") { 13074 defundef = arg[2] 13075 mac1 = arg[3] 13076 } else { 13077 defundef = substr(arg[1], 2) 13078 mac1 = arg[2] 13079 } 13080 split(mac1, mac2, "(") #) 13081 macro = mac2[1] 13082 prefix = substr(line, 1, index(line, defundef) - 1) 13083 if (D_is_set[macro]) { 13084 # Preserve the white space surrounding the "#". 13085 print prefix "define", macro P[macro] D[macro] 13086 next 13087 } else { 13088 # Replace #undef with comments. This is necessary, for example, 13089 # in the case of _POSIX_SOURCE, which is predefined and required 13090 # on some systems where configure will not decide to define it. 13091 if (defundef == "undef") { 13092 print "/*", prefix defundef, macro, "*/" 13093 next 13094 } 13095 } 13096} 13097{ print } 13098_ACAWK 13099_ACEOF 13100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13101 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13102fi # test -n "$CONFIG_HEADERS" 13103 13104 13105eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13106shift 13107for ac_tag 13108do 13109 case $ac_tag in 13110 :[FHLC]) ac_mode=$ac_tag; continue;; 13111 esac 13112 case $ac_mode$ac_tag in 13113 :[FHL]*:*);; 13114 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13115 :[FH]-) ac_tag=-:-;; 13116 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13117 esac 13118 ac_save_IFS=$IFS 13119 IFS=: 13120 set x $ac_tag 13121 IFS=$ac_save_IFS 13122 shift 13123 ac_file=$1 13124 shift 13125 13126 case $ac_mode in 13127 :L) ac_source=$1;; 13128 :[FH]) 13129 ac_file_inputs= 13130 for ac_f 13131 do 13132 case $ac_f in 13133 -) ac_f="$ac_tmp/stdin";; 13134 *) # Look for the file first in the build tree, then in the source tree 13135 # (if the path is not absolute). The absolute path cannot be DOS-style, 13136 # because $ac_f cannot contain `:'. 13137 test -f "$ac_f" || 13138 case $ac_f in 13139 [\\/$]*) false;; 13140 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13141 esac || 13142 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13143 esac 13144 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13145 as_fn_append ac_file_inputs " '$ac_f'" 13146 done 13147 13148 # Let's still pretend it is `configure' which instantiates (i.e., don't 13149 # use $as_me), people would be surprised to read: 13150 # /* config.h. Generated by config.status. */ 13151 configure_input='Generated from '` 13152 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13153 `' by configure.' 13154 if test x"$ac_file" != x-; then 13155 configure_input="$ac_file. $configure_input" 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13157$as_echo "$as_me: creating $ac_file" >&6;} 13158 fi 13159 # Neutralize special characters interpreted by sed in replacement strings. 13160 case $configure_input in #( 13161 *\&* | *\|* | *\\* ) 13162 ac_sed_conf_input=`$as_echo "$configure_input" | 13163 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13164 *) ac_sed_conf_input=$configure_input;; 13165 esac 13166 13167 case $ac_tag in 13168 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13170 esac 13171 ;; 13172 esac 13173 13174 ac_dir=`$as_dirname -- "$ac_file" || 13175$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13176 X"$ac_file" : 'X\(//\)[^/]' \| \ 13177 X"$ac_file" : 'X\(//\)$' \| \ 13178 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13179$as_echo X"$ac_file" | 13180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13181 s//\1/ 13182 q 13183 } 13184 /^X\(\/\/\)[^/].*/{ 13185 s//\1/ 13186 q 13187 } 13188 /^X\(\/\/\)$/{ 13189 s//\1/ 13190 q 13191 } 13192 /^X\(\/\).*/{ 13193 s//\1/ 13194 q 13195 } 13196 s/.*/./; q'` 13197 as_dir="$ac_dir"; as_fn_mkdir_p 13198 ac_builddir=. 13199 13200case "$ac_dir" in 13201.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13202*) 13203 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13204 # A ".." for each directory in $ac_dir_suffix. 13205 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13206 case $ac_top_builddir_sub in 13207 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13208 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13209 esac ;; 13210esac 13211ac_abs_top_builddir=$ac_pwd 13212ac_abs_builddir=$ac_pwd$ac_dir_suffix 13213# for backward compatibility: 13214ac_top_builddir=$ac_top_build_prefix 13215 13216case $srcdir in 13217 .) # We are building in place. 13218 ac_srcdir=. 13219 ac_top_srcdir=$ac_top_builddir_sub 13220 ac_abs_top_srcdir=$ac_pwd ;; 13221 [\\/]* | ?:[\\/]* ) # Absolute name. 13222 ac_srcdir=$srcdir$ac_dir_suffix; 13223 ac_top_srcdir=$srcdir 13224 ac_abs_top_srcdir=$srcdir ;; 13225 *) # Relative name. 13226 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13227 ac_top_srcdir=$ac_top_build_prefix$srcdir 13228 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13229esac 13230ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13231 13232 13233 case $ac_mode in 13234 :F) 13235 # 13236 # CONFIG_FILE 13237 # 13238 13239 case $INSTALL in 13240 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13241 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13242 esac 13243 ac_MKDIR_P=$MKDIR_P 13244 case $MKDIR_P in 13245 [\\/$]* | ?:[\\/]* ) ;; 13246 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13247 esac 13248_ACEOF 13249 13250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13251# If the template does not know about datarootdir, expand it. 13252# FIXME: This hack should be removed a few years after 2.60. 13253ac_datarootdir_hack=; ac_datarootdir_seen= 13254ac_sed_dataroot=' 13255/datarootdir/ { 13256 p 13257 q 13258} 13259/@datadir@/p 13260/@docdir@/p 13261/@infodir@/p 13262/@localedir@/p 13263/@mandir@/p' 13264case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13265*datarootdir*) ac_datarootdir_seen=yes;; 13266*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13268$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13269_ACEOF 13270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13271 ac_datarootdir_hack=' 13272 s&@datadir@&$datadir&g 13273 s&@docdir@&$docdir&g 13274 s&@infodir@&$infodir&g 13275 s&@localedir@&$localedir&g 13276 s&@mandir@&$mandir&g 13277 s&\\\${datarootdir}&$datarootdir&g' ;; 13278esac 13279_ACEOF 13280 13281# Neutralize VPATH when `$srcdir' = `.'. 13282# Shell code in configure.ac might set extrasub. 13283# FIXME: do we really want to maintain this feature? 13284cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13285ac_sed_extra="$ac_vpsub 13286$extrasub 13287_ACEOF 13288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13289:t 13290/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13291s|@configure_input@|$ac_sed_conf_input|;t t 13292s&@top_builddir@&$ac_top_builddir_sub&;t t 13293s&@top_build_prefix@&$ac_top_build_prefix&;t t 13294s&@srcdir@&$ac_srcdir&;t t 13295s&@abs_srcdir@&$ac_abs_srcdir&;t t 13296s&@top_srcdir@&$ac_top_srcdir&;t t 13297s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13298s&@builddir@&$ac_builddir&;t t 13299s&@abs_builddir@&$ac_abs_builddir&;t t 13300s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13301s&@INSTALL@&$ac_INSTALL&;t t 13302s&@MKDIR_P@&$ac_MKDIR_P&;t t 13303$ac_datarootdir_hack 13304" 13305eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13306 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13307 13308test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13309 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13311 "$ac_tmp/out"`; test -z "$ac_out"; } && 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13313which seems to be undefined. Please make sure it is defined" >&5 13314$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13315which seems to be undefined. Please make sure it is defined" >&2;} 13316 13317 rm -f "$ac_tmp/stdin" 13318 case $ac_file in 13319 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13320 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13321 esac \ 13322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13323 ;; 13324 :H) 13325 # 13326 # CONFIG_HEADER 13327 # 13328 if test x"$ac_file" != x-; then 13329 { 13330 $as_echo "/* $configure_input */" \ 13331 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13332 } >"$ac_tmp/config.h" \ 13333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13334 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13336$as_echo "$as_me: $ac_file is unchanged" >&6;} 13337 else 13338 rm -f "$ac_file" 13339 mv "$ac_tmp/config.h" "$ac_file" \ 13340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13341 fi 13342 else 13343 $as_echo "/* $configure_input */" \ 13344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13345 || as_fn_error $? "could not create -" "$LINENO" 5 13346 fi 13347# Compute "$ac_file"'s index in $config_headers. 13348_am_arg="$ac_file" 13349_am_stamp_count=1 13350for _am_header in $config_headers :; do 13351 case $_am_header in 13352 $_am_arg | $_am_arg:* ) 13353 break ;; 13354 * ) 13355 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13356 esac 13357done 13358echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13359$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13360 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13361 X"$_am_arg" : 'X\(//\)$' \| \ 13362 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13363$as_echo X"$_am_arg" | 13364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13365 s//\1/ 13366 q 13367 } 13368 /^X\(\/\/\)[^/].*/{ 13369 s//\1/ 13370 q 13371 } 13372 /^X\(\/\/\)$/{ 13373 s//\1/ 13374 q 13375 } 13376 /^X\(\/\).*/{ 13377 s//\1/ 13378 q 13379 } 13380 s/.*/./; q'`/stamp-h$_am_stamp_count 13381 ;; 13382 13383 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13384$as_echo "$as_me: executing $ac_file commands" >&6;} 13385 ;; 13386 esac 13387 13388 13389 case $ac_file$ac_mode in 13390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13391 # Older Autoconf quotes --file arguments for eval, but not when files 13392 # are listed without --file. Let's play safe and only enable the eval 13393 # if we detect the quoting. 13394 case $CONFIG_FILES in 13395 *\'*) eval set x "$CONFIG_FILES" ;; 13396 *) set x $CONFIG_FILES ;; 13397 esac 13398 shift 13399 for mf 13400 do 13401 # Strip MF so we end up with the name of the file. 13402 mf=`echo "$mf" | sed -e 's/:.*$//'` 13403 # Check whether this is an Automake generated Makefile or not. 13404 # We used to match only the files named 'Makefile.in', but 13405 # some people rename them; so instead we look at the file content. 13406 # Grep'ing the first line is not enough: some people post-process 13407 # each Makefile.in and add a new line on top of each file to say so. 13408 # Grep'ing the whole file is not good either: AIX grep has a line 13409 # limit of 2048, but all sed's we know have understand at least 4000. 13410 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13411 dirpart=`$as_dirname -- "$mf" || 13412$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13413 X"$mf" : 'X\(//\)[^/]' \| \ 13414 X"$mf" : 'X\(//\)$' \| \ 13415 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13416$as_echo X"$mf" | 13417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13418 s//\1/ 13419 q 13420 } 13421 /^X\(\/\/\)[^/].*/{ 13422 s//\1/ 13423 q 13424 } 13425 /^X\(\/\/\)$/{ 13426 s//\1/ 13427 q 13428 } 13429 /^X\(\/\).*/{ 13430 s//\1/ 13431 q 13432 } 13433 s/.*/./; q'` 13434 else 13435 continue 13436 fi 13437 # Extract the definition of DEPDIR, am__include, and am__quote 13438 # from the Makefile without running 'make'. 13439 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13440 test -z "$DEPDIR" && continue 13441 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13442 test -z "$am__include" && continue 13443 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13444 # Find all dependency output files, they are included files with 13445 # $(DEPDIR) in their names. We invoke sed twice because it is the 13446 # simplest approach to changing $(DEPDIR) to its actual value in the 13447 # expansion. 13448 for file in `sed -n " 13449 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13450 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 13451 # Make sure the directory exists. 13452 test -f "$dirpart/$file" && continue 13453 fdir=`$as_dirname -- "$file" || 13454$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13455 X"$file" : 'X\(//\)[^/]' \| \ 13456 X"$file" : 'X\(//\)$' \| \ 13457 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13458$as_echo X"$file" | 13459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13460 s//\1/ 13461 q 13462 } 13463 /^X\(\/\/\)[^/].*/{ 13464 s//\1/ 13465 q 13466 } 13467 /^X\(\/\/\)$/{ 13468 s//\1/ 13469 q 13470 } 13471 /^X\(\/\).*/{ 13472 s//\1/ 13473 q 13474 } 13475 s/.*/./; q'` 13476 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13477 # echo "creating $dirpart/$file" 13478 echo '# dummy' > "$dirpart/$file" 13479 done 13480 done 13481} 13482 ;; 13483 "libtool":C) 13484 13485 # See if we are running on zsh, and set the options which allow our 13486 # commands through without removal of \ escapes. 13487 if test -n "${ZSH_VERSION+set}" ; then 13488 setopt NO_GLOB_SUBST 13489 fi 13490 13491 cfgfile="${ofile}T" 13492 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13493 $RM "$cfgfile" 13494 13495 cat <<_LT_EOF >> "$cfgfile" 13496#! $SHELL 13497 13498# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13499# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13500# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13501# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13502# 13503# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13504# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 13505# Foundation, Inc. 13506# Written by Gordon Matzigkeit, 1996 13507# 13508# This file is part of GNU Libtool. 13509# 13510# GNU Libtool is free software; you can redistribute it and/or 13511# modify it under the terms of the GNU General Public License as 13512# published by the Free Software Foundation; either version 2 of 13513# the License, or (at your option) any later version. 13514# 13515# As a special exception to the GNU General Public License, 13516# if you distribute this file as part of a program or library that 13517# is built using GNU Libtool, you may include this file under the 13518# same distribution terms that you use for the rest of that program. 13519# 13520# GNU Libtool is distributed in the hope that it will be useful, 13521# but WITHOUT ANY WARRANTY; without even the implied warranty of 13522# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13523# GNU General Public License for more details. 13524# 13525# You should have received a copy of the GNU General Public License 13526# along with GNU Libtool; see the file COPYING. If not, a copy 13527# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13528# obtained by writing to the Free Software Foundation, Inc., 13529# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13530 13531 13532# The names of the tagged configurations supported by this script. 13533available_tags="" 13534 13535# ### BEGIN LIBTOOL CONFIG 13536 13537# Which release of libtool.m4 was used? 13538macro_version=$macro_version 13539macro_revision=$macro_revision 13540 13541# Whether or not to build shared libraries. 13542build_libtool_libs=$enable_shared 13543 13544# Whether or not to build static libraries. 13545build_old_libs=$enable_static 13546 13547# What type of objects to build. 13548pic_mode=$pic_mode 13549 13550# Whether or not to optimize for fast installation. 13551fast_install=$enable_fast_install 13552 13553# Shell to use when invoking shell scripts. 13554SHELL=$lt_SHELL 13555 13556# An echo program that protects backslashes. 13557ECHO=$lt_ECHO 13558 13559# The PATH separator for the build system. 13560PATH_SEPARATOR=$lt_PATH_SEPARATOR 13561 13562# The host system. 13563host_alias=$host_alias 13564host=$host 13565host_os=$host_os 13566 13567# The build system. 13568build_alias=$build_alias 13569build=$build 13570build_os=$build_os 13571 13572# A sed program that does not truncate output. 13573SED=$lt_SED 13574 13575# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13576Xsed="\$SED -e 1s/^X//" 13577 13578# A grep program that handles long lines. 13579GREP=$lt_GREP 13580 13581# An ERE matcher. 13582EGREP=$lt_EGREP 13583 13584# A literal string matcher. 13585FGREP=$lt_FGREP 13586 13587# A BSD- or MS-compatible name lister. 13588NM=$lt_NM 13589 13590# Whether we need soft or hard links. 13591LN_S=$lt_LN_S 13592 13593# What is the maximum length of a command? 13594max_cmd_len=$max_cmd_len 13595 13596# Object file suffix (normally "o"). 13597objext=$ac_objext 13598 13599# Executable file suffix (normally ""). 13600exeext=$exeext 13601 13602# whether the shell understands "unset". 13603lt_unset=$lt_unset 13604 13605# turn spaces into newlines. 13606SP2NL=$lt_lt_SP2NL 13607 13608# turn newlines into spaces. 13609NL2SP=$lt_lt_NL2SP 13610 13611# convert \$build file names to \$host format. 13612to_host_file_cmd=$lt_cv_to_host_file_cmd 13613 13614# convert \$build files to toolchain format. 13615to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13616 13617# An object symbol dumper. 13618OBJDUMP=$lt_OBJDUMP 13619 13620# Method to check whether dependent libraries are shared objects. 13621deplibs_check_method=$lt_deplibs_check_method 13622 13623# Command to use when deplibs_check_method = "file_magic". 13624file_magic_cmd=$lt_file_magic_cmd 13625 13626# How to find potential files when deplibs_check_method = "file_magic". 13627file_magic_glob=$lt_file_magic_glob 13628 13629# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 13630want_nocaseglob=$lt_want_nocaseglob 13631 13632# DLL creation program. 13633DLLTOOL=$lt_DLLTOOL 13634 13635# Command to associate shared and link libraries. 13636sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 13637 13638# The archiver. 13639AR=$lt_AR 13640 13641# Flags to create an archive. 13642AR_FLAGS=$lt_AR_FLAGS 13643 13644# How to feed a file listing to the archiver. 13645archiver_list_spec=$lt_archiver_list_spec 13646 13647# A symbol stripping program. 13648STRIP=$lt_STRIP 13649 13650# Commands used to install an old-style archive. 13651RANLIB=$lt_RANLIB 13652old_postinstall_cmds=$lt_old_postinstall_cmds 13653old_postuninstall_cmds=$lt_old_postuninstall_cmds 13654 13655# Whether to use a lock for old archive extraction. 13656lock_old_archive_extraction=$lock_old_archive_extraction 13657 13658# A C compiler. 13659LTCC=$lt_CC 13660 13661# LTCC compiler flags. 13662LTCFLAGS=$lt_CFLAGS 13663 13664# Take the output of nm and produce a listing of raw symbols and C names. 13665global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13666 13667# Transform the output of nm in a proper C declaration. 13668global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13669 13670# Transform the output of nm in a C name address pair. 13671global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13672 13673# Transform the output of nm in a C name address pair when lib prefix is needed. 13674global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13675 13676# Specify filename containing input files for \$NM. 13677nm_file_list_spec=$lt_nm_file_list_spec 13678 13679# The root where to search for dependent libraries,and in which our libraries should be installed. 13680lt_sysroot=$lt_sysroot 13681 13682# The name of the directory that contains temporary libtool files. 13683objdir=$objdir 13684 13685# Used to examine libraries when file_magic_cmd begins with "file". 13686MAGIC_CMD=$MAGIC_CMD 13687 13688# Must we lock files when doing compilation? 13689need_locks=$lt_need_locks 13690 13691# Manifest tool. 13692MANIFEST_TOOL=$lt_MANIFEST_TOOL 13693 13694# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13695DSYMUTIL=$lt_DSYMUTIL 13696 13697# Tool to change global to local symbols on Mac OS X. 13698NMEDIT=$lt_NMEDIT 13699 13700# Tool to manipulate fat objects and archives on Mac OS X. 13701LIPO=$lt_LIPO 13702 13703# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13704OTOOL=$lt_OTOOL 13705 13706# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13707OTOOL64=$lt_OTOOL64 13708 13709# Old archive suffix (normally "a"). 13710libext=$libext 13711 13712# Shared library suffix (normally ".so"). 13713shrext_cmds=$lt_shrext_cmds 13714 13715# The commands to extract the exported symbol list from a shared archive. 13716extract_expsyms_cmds=$lt_extract_expsyms_cmds 13717 13718# Variables whose values should be saved in libtool wrapper scripts and 13719# restored at link time. 13720variables_saved_for_relink=$lt_variables_saved_for_relink 13721 13722# Do we need the "lib" prefix for modules? 13723need_lib_prefix=$need_lib_prefix 13724 13725# Do we need a version for libraries? 13726need_version=$need_version 13727 13728# Library versioning type. 13729version_type=$version_type 13730 13731# Shared library runtime path variable. 13732runpath_var=$runpath_var 13733 13734# Shared library path variable. 13735shlibpath_var=$shlibpath_var 13736 13737# Is shlibpath searched before the hard-coded library search path? 13738shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13739 13740# Format of library name prefix. 13741libname_spec=$lt_libname_spec 13742 13743# List of archive names. First name is the real one, the rest are links. 13744# The last name is the one that the linker finds with -lNAME 13745library_names_spec=$lt_library_names_spec 13746 13747# The coded name of the library, if different from the real name. 13748soname_spec=$lt_soname_spec 13749 13750# Permission mode override for installation of shared libraries. 13751install_override_mode=$lt_install_override_mode 13752 13753# Command to use after installation of a shared archive. 13754postinstall_cmds=$lt_postinstall_cmds 13755 13756# Command to use after uninstallation of a shared archive. 13757postuninstall_cmds=$lt_postuninstall_cmds 13758 13759# Commands used to finish a libtool library installation in a directory. 13760finish_cmds=$lt_finish_cmds 13761 13762# As "finish_cmds", except a single script fragment to be evaled but 13763# not shown. 13764finish_eval=$lt_finish_eval 13765 13766# Whether we should hardcode library paths into libraries. 13767hardcode_into_libs=$hardcode_into_libs 13768 13769# Compile-time system search path for libraries. 13770sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13771 13772# Run-time system search path for libraries. 13773sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13774 13775# Whether dlopen is supported. 13776dlopen_support=$enable_dlopen 13777 13778# Whether dlopen of programs is supported. 13779dlopen_self=$enable_dlopen_self 13780 13781# Whether dlopen of statically linked programs is supported. 13782dlopen_self_static=$enable_dlopen_self_static 13783 13784# Commands to strip libraries. 13785old_striplib=$lt_old_striplib 13786striplib=$lt_striplib 13787 13788 13789# The linker used to build libraries. 13790LD=$lt_LD 13791 13792# How to create reloadable object files. 13793reload_flag=$lt_reload_flag 13794reload_cmds=$lt_reload_cmds 13795 13796# Commands used to build an old-style archive. 13797old_archive_cmds=$lt_old_archive_cmds 13798 13799# A language specific compiler. 13800CC=$lt_compiler 13801 13802# Is the compiler the GNU compiler? 13803with_gcc=$GCC 13804 13805# Compiler flag to turn off builtin functions. 13806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13807 13808# Additional compiler flags for building library objects. 13809pic_flag=$lt_lt_prog_compiler_pic 13810 13811# How to pass a linker flag through the compiler. 13812wl=$lt_lt_prog_compiler_wl 13813 13814# Compiler flag to prevent dynamic linking. 13815link_static_flag=$lt_lt_prog_compiler_static 13816 13817# Does compiler simultaneously support -c and -o options? 13818compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13819 13820# Whether or not to add -lc for building shared libraries. 13821build_libtool_need_lc=$archive_cmds_need_lc 13822 13823# Whether or not to disallow shared libs when runtime libs are static. 13824allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13825 13826# Compiler flag to allow reflexive dlopens. 13827export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13828 13829# Compiler flag to generate shared objects directly from archives. 13830whole_archive_flag_spec=$lt_whole_archive_flag_spec 13831 13832# Whether the compiler copes with passing no objects directly. 13833compiler_needs_object=$lt_compiler_needs_object 13834 13835# Create an old-style archive from a shared archive. 13836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13837 13838# Create a temporary old-style archive to link instead of a shared archive. 13839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13840 13841# Commands used to build a shared archive. 13842archive_cmds=$lt_archive_cmds 13843archive_expsym_cmds=$lt_archive_expsym_cmds 13844 13845# Commands used to build a loadable module if different from building 13846# a shared archive. 13847module_cmds=$lt_module_cmds 13848module_expsym_cmds=$lt_module_expsym_cmds 13849 13850# Whether we are building with GNU ld or not. 13851with_gnu_ld=$lt_with_gnu_ld 13852 13853# Flag that allows shared libraries with undefined symbols to be built. 13854allow_undefined_flag=$lt_allow_undefined_flag 13855 13856# Flag that enforces no undefined symbols. 13857no_undefined_flag=$lt_no_undefined_flag 13858 13859# Flag to hardcode \$libdir into a binary during linking. 13860# This must work even if \$libdir does not exist 13861hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13862 13863# Whether we need a single "-rpath" flag with a separated argument. 13864hardcode_libdir_separator=$lt_hardcode_libdir_separator 13865 13866# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13867# DIR into the resulting binary. 13868hardcode_direct=$hardcode_direct 13869 13870# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13871# DIR into the resulting binary and the resulting library dependency is 13872# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13873# library is relocated. 13874hardcode_direct_absolute=$hardcode_direct_absolute 13875 13876# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13877# into the resulting binary. 13878hardcode_minus_L=$hardcode_minus_L 13879 13880# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13881# into the resulting binary. 13882hardcode_shlibpath_var=$hardcode_shlibpath_var 13883 13884# Set to "yes" if building a shared library automatically hardcodes DIR 13885# into the library and all subsequent libraries and executables linked 13886# against it. 13887hardcode_automatic=$hardcode_automatic 13888 13889# Set to yes if linker adds runtime paths of dependent libraries 13890# to runtime path list. 13891inherit_rpath=$inherit_rpath 13892 13893# Whether libtool must link a program against all its dependency libraries. 13894link_all_deplibs=$link_all_deplibs 13895 13896# Set to "yes" if exported symbols are required. 13897always_export_symbols=$always_export_symbols 13898 13899# The commands to list exported symbols. 13900export_symbols_cmds=$lt_export_symbols_cmds 13901 13902# Symbols that should not be listed in the preloaded symbols. 13903exclude_expsyms=$lt_exclude_expsyms 13904 13905# Symbols that must always be exported. 13906include_expsyms=$lt_include_expsyms 13907 13908# Commands necessary for linking programs (against libraries) with templates. 13909prelink_cmds=$lt_prelink_cmds 13910 13911# Commands necessary for finishing linking programs. 13912postlink_cmds=$lt_postlink_cmds 13913 13914# Specify filename containing input files. 13915file_list_spec=$lt_file_list_spec 13916 13917# How to hardcode a shared library path into an executable. 13918hardcode_action=$hardcode_action 13919 13920# ### END LIBTOOL CONFIG 13921 13922_LT_EOF 13923 13924 case $host_os in 13925 aix3*) 13926 cat <<\_LT_EOF >> "$cfgfile" 13927# AIX sometimes has problems with the GCC collect2 program. For some 13928# reason, if we set the COLLECT_NAMES environment variable, the problems 13929# vanish in a puff of smoke. 13930if test "X${COLLECT_NAMES+set}" != Xset; then 13931 COLLECT_NAMES= 13932 export COLLECT_NAMES 13933fi 13934_LT_EOF 13935 ;; 13936 esac 13937 13938 13939ltmain="$ac_aux_dir/ltmain.sh" 13940 13941 13942 # We use sed instead of cat because bash on DJGPP gets confused if 13943 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13944 # text mode, it properly converts lines to CR/LF. This bash problem 13945 # is reportedly fixed, but why not run on old versions too? 13946 sed '$q' "$ltmain" >> "$cfgfile" \ 13947 || (rm -f "$cfgfile"; exit 1) 13948 13949 if test x"$xsi_shell" = xyes; then 13950 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 13951func_dirname ()\ 13952{\ 13953\ case ${1} in\ 13954\ */*) func_dirname_result="${1%/*}${2}" ;;\ 13955\ * ) func_dirname_result="${3}" ;;\ 13956\ esac\ 13957} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 13958 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13960test 0 -eq $? || _lt_function_replace_fail=: 13961 13962 13963 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 13964func_basename ()\ 13965{\ 13966\ func_basename_result="${1##*/}"\ 13967} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 13968 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13970test 0 -eq $? || _lt_function_replace_fail=: 13971 13972 13973 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 13974func_dirname_and_basename ()\ 13975{\ 13976\ case ${1} in\ 13977\ */*) func_dirname_result="${1%/*}${2}" ;;\ 13978\ * ) func_dirname_result="${3}" ;;\ 13979\ esac\ 13980\ func_basename_result="${1##*/}"\ 13981} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 13982 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13983 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13984test 0 -eq $? || _lt_function_replace_fail=: 13985 13986 13987 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 13988func_stripname ()\ 13989{\ 13990\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 13991\ # positional parameters, so assign one to ordinary parameter first.\ 13992\ func_stripname_result=${3}\ 13993\ func_stripname_result=${func_stripname_result#"${1}"}\ 13994\ func_stripname_result=${func_stripname_result%"${2}"}\ 13995} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 13996 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13998test 0 -eq $? || _lt_function_replace_fail=: 13999 14000 14001 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14002func_split_long_opt ()\ 14003{\ 14004\ func_split_long_opt_name=${1%%=*}\ 14005\ func_split_long_opt_arg=${1#*=}\ 14006} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14009test 0 -eq $? || _lt_function_replace_fail=: 14010 14011 14012 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14013func_split_short_opt ()\ 14014{\ 14015\ func_split_short_opt_arg=${1#??}\ 14016\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14017} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14018 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14020test 0 -eq $? || _lt_function_replace_fail=: 14021 14022 14023 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14024func_lo2o ()\ 14025{\ 14026\ case ${1} in\ 14027\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14028\ *) func_lo2o_result=${1} ;;\ 14029\ esac\ 14030} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14031 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14033test 0 -eq $? || _lt_function_replace_fail=: 14034 14035 14036 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14037func_xform ()\ 14038{\ 14039 func_xform_result=${1%.*}.lo\ 14040} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14041 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14043test 0 -eq $? || _lt_function_replace_fail=: 14044 14045 14046 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14047func_arith ()\ 14048{\ 14049 func_arith_result=$(( $* ))\ 14050} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14051 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14053test 0 -eq $? || _lt_function_replace_fail=: 14054 14055 14056 sed -e '/^func_len ()$/,/^} # func_len /c\ 14057func_len ()\ 14058{\ 14059 func_len_result=${#1}\ 14060} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14061 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14063test 0 -eq $? || _lt_function_replace_fail=: 14064 14065fi 14066 14067if test x"$lt_shell_append" = xyes; then 14068 sed -e '/^func_append ()$/,/^} # func_append /c\ 14069func_append ()\ 14070{\ 14071 eval "${1}+=\\${2}"\ 14072} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14073 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14075test 0 -eq $? || _lt_function_replace_fail=: 14076 14077 14078 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14079func_append_quoted ()\ 14080{\ 14081\ func_quote_for_eval "${2}"\ 14082\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14083} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14084 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14086test 0 -eq $? || _lt_function_replace_fail=: 14087 14088 14089 # Save a `func_append' function call where possible by direct use of '+=' 14090 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14091 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14093 test 0 -eq $? || _lt_function_replace_fail=: 14094else 14095 # Save a `func_append' function call even when '+=' is not available 14096 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14097 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14099 test 0 -eq $? || _lt_function_replace_fail=: 14100fi 14101 14102if test x"$_lt_function_replace_fail" = x":"; then 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14104$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14105fi 14106 14107 14108 mv -f "$cfgfile" "$ofile" || 14109 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14110 chmod +x "$ofile" 14111 14112 ;; 14113 14114 esac 14115done # for ac_tag 14116 14117 14118as_fn_exit 0 14119_ACEOF 14120ac_clean_files=$ac_clean_files_save 14121 14122test $ac_write_fail = 0 || 14123 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14124 14125 14126# configure is writing to config.log, and then calls config.status. 14127# config.status does its own redirection, appending to config.log. 14128# Unfortunately, on DOS this fails, as config.log is still kept open 14129# by configure, so config.status won't be able to write to it; its 14130# output is simply discarded. So we exec the FD to /dev/null, 14131# effectively closing config.log, so it can be properly (re)opened and 14132# appended to by config.status. When coming back to configure, we 14133# need to make the FD available again. 14134if test "$no_create" != yes; then 14135 ac_cs_success=: 14136 ac_config_status_args= 14137 test "$silent" = yes && 14138 ac_config_status_args="$ac_config_status_args --quiet" 14139 exec 5>/dev/null 14140 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14141 exec 5>>config.log 14142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14143 # would make configure fail if this is the last instruction. 14144 $ac_cs_success || as_fn_exit 1 14145fi 14146if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14148$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14149fi 14150 14151