1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for iperf 3.0.1. 4# 5# Report bugs to <https://github.com/esnet/iperf>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (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# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576 577# Check that we are running under the correct shell. 578SHELL=${CONFIG_SHELL-/bin/sh} 579 580case X$lt_ECHO in 581X*--fallback-echo) 582 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 ;; 585esac 586 587ECHO=${lt_ECHO-echo} 588if test "X$1" = X--no-reexec; then 589 # Discard the --no-reexec flag, and continue. 590 shift 591elif test "X$1" = X--fallback-echo; then 592 # Avoid inline document here, it may be left over 593 : 594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 595 # Yippee, $ECHO works! 596 : 597else 598 # Restart under the correct shell. 599 exec $SHELL "$0" --no-reexec ${1+"$@"} 600fi 601 602if test "X$1" = X--fallback-echo; then 603 # used as fallback echo 604 shift 605 cat <<_LT_EOF 606$* 607_LT_EOF 608 exit 0 609fi 610 611# The HP-UX ksh and POSIX shell print the target directory to stdout 612# if CDPATH is set. 613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 615if test -z "$lt_ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 622 then 623 break 624 fi 625 done 626 fi 627 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 : 632 else 633 # The Solaris, AIX, and Digital Unix default echo programs unquote 634 # backslashes. This makes it impossible to quote backslashes using 635 # echo "$something" | sed 's/\\/\\\\/g' 636 # 637 # So, first we look for a working echo in the user's PATH. 638 639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 640 for dir in $PATH /usr/ucb; do 641 IFS="$lt_save_ifs" 642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$dir/echo" 647 break 648 fi 649 done 650 IFS="$lt_save_ifs" 651 652 if test "X$ECHO" = Xecho; then 653 # We didn't find a better echo, so look for alternatives. 654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 # This shell has a builtin print -r that does the trick. 658 ECHO='print -r' 659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 660 test "X$CONFIG_SHELL" != X/bin/ksh; then 661 # If we have ksh, try running configure again with it. 662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 663 export ORIGINAL_CONFIG_SHELL 664 CONFIG_SHELL=/bin/ksh 665 export CONFIG_SHELL 666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 667 else 668 # Try using printf. 669 ECHO='printf %s\n' 670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 672 test "X$echo_testing_string" = "X$echo_test_string"; then 673 # Cool, printf works 674 : 675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 676 test "X$echo_testing_string" = 'X\t' && 677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 678 test "X$echo_testing_string" = "X$echo_test_string"; then 679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 680 export CONFIG_SHELL 681 SHELL="$CONFIG_SHELL" 682 export SHELL 683 ECHO="$CONFIG_SHELL $0 --fallback-echo" 684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 685 test "X$echo_testing_string" = 'X\t' && 686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 687 test "X$echo_testing_string" = "X$echo_test_string"; then 688 ECHO="$CONFIG_SHELL $0 --fallback-echo" 689 else 690 # maybe with a smaller string... 691 prev=: 692 693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 695 then 696 break 697 fi 698 prev="$cmd" 699 done 700 701 if test "$prev" != 'sed 50q "$0"'; then 702 echo_test_string=`eval $prev` 703 export echo_test_string 704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 705 else 706 # Oops. We lost completely, so just stick with echo. 707 ECHO=echo 708 fi 709 fi 710 fi 711 fi 712 fi 713fi 714 715# Copy echo and quote the copy suitably for passing to libtool from 716# the Makefile, instead of quoting the original, which is used later. 717lt_ECHO=$ECHO 718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 720fi 721 722 723 724 725exec 7<&0 </dev/null 6>&1 726 727# Name of the host. 728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 729# so uname gets run too. 730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 731 732# 733# Initializations. 734# 735ac_default_prefix=/usr/local 736ac_clean_files= 737ac_config_libobj_dir=. 738LIBOBJS= 739cross_compiling=no 740subdirs= 741MFLAGS= 742MAKEFLAGS= 743SHELL=${CONFIG_SHELL-/bin/sh} 744 745# Identity of this package. 746PACKAGE_NAME='iperf' 747PACKAGE_TARNAME='iperf' 748PACKAGE_VERSION='3.0.1' 749PACKAGE_STRING='iperf 3.0.1' 750PACKAGE_BUGREPORT='https://github.com/esnet/iperf' 751 752# Factoring default headers for most tests. 753ac_includes_default="\ 754#include <stdio.h> 755#ifdef HAVE_SYS_TYPES_H 756# include <sys/types.h> 757#endif 758#ifdef HAVE_SYS_STAT_H 759# include <sys/stat.h> 760#endif 761#ifdef STDC_HEADERS 762# include <stdlib.h> 763# include <stddef.h> 764#else 765# ifdef HAVE_STDLIB_H 766# include <stdlib.h> 767# endif 768#endif 769#ifdef HAVE_STRING_H 770# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 771# include <memory.h> 772# endif 773# include <string.h> 774#endif 775#ifdef HAVE_STRINGS_H 776# include <strings.h> 777#endif 778#ifdef HAVE_INTTYPES_H 779# include <inttypes.h> 780#endif 781#ifdef HAVE_STDINT_H 782# include <stdint.h> 783#endif 784#ifdef HAVE_UNISTD_H 785# include <unistd.h> 786#endif" 787 788ac_subst_vars='am__EXEEXT_FALSE 789am__EXEEXT_TRUE 790LTLIBOBJS 791LIBOBJS 792CPP 793OTOOL64 794OTOOL 795LIPO 796NMEDIT 797DSYMUTIL 798lt_ECHO 799AR 800OBJDUMP 801NM 802ac_ct_DUMPBIN 803DUMPBIN 804LD 805FGREP 806EGREP 807GREP 808SED 809LIBTOOL 810LN_S 811RANLIB 812am__fastdepCC_FALSE 813am__fastdepCC_TRUE 814CCDEPMODE 815AMDEPBACKSLASH 816AMDEP_FALSE 817AMDEP_TRUE 818am__quote 819am__include 820DEPDIR 821OBJEXT 822EXEEXT 823ac_ct_CC 824CPPFLAGS 825LDFLAGS 826CFLAGS 827CC 828host_os 829host_vendor 830host_cpu 831host 832build_os 833build_vendor 834build_cpu 835build 836am__untar 837am__tar 838AMTAR 839am__leading_dot 840SET_MAKE 841AWK 842mkdir_p 843MKDIR_P 844INSTALL_STRIP_PROGRAM 845STRIP 846install_sh 847MAKEINFO 848AUTOHEADER 849AUTOMAKE 850AUTOCONF 851ACLOCAL 852VERSION 853PACKAGE 854CYGPATH_W 855am__isrc 856INSTALL_DATA 857INSTALL_SCRIPT 858INSTALL_PROGRAM 859target_alias 860host_alias 861build_alias 862LIBS 863ECHO_T 864ECHO_N 865ECHO_C 866DEFS 867mandir 868localedir 869libdir 870psdir 871pdfdir 872dvidir 873htmldir 874infodir 875docdir 876oldincludedir 877includedir 878localstatedir 879sharedstatedir 880sysconfdir 881datadir 882datarootdir 883libexecdir 884sbindir 885bindir 886program_transform_name 887prefix 888exec_prefix 889PACKAGE_BUGREPORT 890PACKAGE_STRING 891PACKAGE_VERSION 892PACKAGE_TARNAME 893PACKAGE_NAME 894PATH_SEPARATOR 895SHELL' 896ac_subst_files='' 897ac_user_opts=' 898enable_option_checking 899enable_dependency_tracking 900enable_shared 901enable_static 902with_pic 903enable_fast_install 904with_gnu_ld 905enable_libtool_lock 906' 907 ac_precious_vars='build_alias 908host_alias 909target_alias 910CC 911CFLAGS 912LDFLAGS 913LIBS 914CPPFLAGS 915CPP' 916 917 918# Initialize some variables set by options. 919ac_init_help= 920ac_init_version=false 921ac_unrecognized_opts= 922ac_unrecognized_sep= 923# The variables have the same names as the options, with 924# dashes changed to underlines. 925cache_file=/dev/null 926exec_prefix=NONE 927no_create= 928no_recursion= 929prefix=NONE 930program_prefix=NONE 931program_suffix=NONE 932program_transform_name=s,x,x, 933silent= 934site= 935srcdir= 936verbose= 937x_includes=NONE 938x_libraries=NONE 939 940# Installation directory options. 941# These are left unexpanded so users can "make install exec_prefix=/foo" 942# and all the variables that are supposed to be based on exec_prefix 943# by default will actually change. 944# Use braces instead of parens because sh, perl, etc. also accept them. 945# (The list follows the same order as the GNU Coding Standards.) 946bindir='${exec_prefix}/bin' 947sbindir='${exec_prefix}/sbin' 948libexecdir='${exec_prefix}/libexec' 949datarootdir='${prefix}/share' 950datadir='${datarootdir}' 951sysconfdir='${prefix}/etc' 952sharedstatedir='${prefix}/com' 953localstatedir='${prefix}/var' 954includedir='${prefix}/include' 955oldincludedir='/usr/include' 956docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 957infodir='${datarootdir}/info' 958htmldir='${docdir}' 959dvidir='${docdir}' 960pdfdir='${docdir}' 961psdir='${docdir}' 962libdir='${exec_prefix}/lib' 963localedir='${datarootdir}/locale' 964mandir='${datarootdir}/man' 965 966ac_prev= 967ac_dashdash= 968for ac_option 969do 970 # If the previous option needs an argument, assign it. 971 if test -n "$ac_prev"; then 972 eval $ac_prev=\$ac_option 973 ac_prev= 974 continue 975 fi 976 977 case $ac_option in 978 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 979 *) ac_optarg=yes ;; 980 esac 981 982 # Accept the important Cygnus configure options, so we can diagnose typos. 983 984 case $ac_dashdash$ac_option in 985 --) 986 ac_dashdash=yes ;; 987 988 -bindir | --bindir | --bindi | --bind | --bin | --bi) 989 ac_prev=bindir ;; 990 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 991 bindir=$ac_optarg ;; 992 993 -build | --build | --buil | --bui | --bu) 994 ac_prev=build_alias ;; 995 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 996 build_alias=$ac_optarg ;; 997 998 -cache-file | --cache-file | --cache-fil | --cache-fi \ 999 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1000 ac_prev=cache_file ;; 1001 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1002 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1003 cache_file=$ac_optarg ;; 1004 1005 --config-cache | -C) 1006 cache_file=config.cache ;; 1007 1008 -datadir | --datadir | --datadi | --datad) 1009 ac_prev=datadir ;; 1010 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1011 datadir=$ac_optarg ;; 1012 1013 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1014 | --dataroo | --dataro | --datar) 1015 ac_prev=datarootdir ;; 1016 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1017 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1018 datarootdir=$ac_optarg ;; 1019 1020 -disable-* | --disable-*) 1021 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1024 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_useropt_orig=$ac_useropt 1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1028 case $ac_user_opts in 1029 *" 1030"enable_$ac_useropt" 1031"*) ;; 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1033 ac_unrecognized_sep=', ';; 1034 esac 1035 eval enable_$ac_useropt=no ;; 1036 1037 -docdir | --docdir | --docdi | --doc | --do) 1038 ac_prev=docdir ;; 1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1040 docdir=$ac_optarg ;; 1041 1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1043 ac_prev=dvidir ;; 1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1045 dvidir=$ac_optarg ;; 1046 1047 -enable-* | --enable-*) 1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1049 # Reject names that are not valid shell variable names. 1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1052 { (exit 1); exit 1; }; } 1053 ac_useropt_orig=$ac_useropt 1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1055 case $ac_user_opts in 1056 *" 1057"enable_$ac_useropt" 1058"*) ;; 1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1060 ac_unrecognized_sep=', ';; 1061 esac 1062 eval enable_$ac_useropt=\$ac_optarg ;; 1063 1064 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1065 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1066 | --exec | --exe | --ex) 1067 ac_prev=exec_prefix ;; 1068 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1069 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1070 | --exec=* | --exe=* | --ex=*) 1071 exec_prefix=$ac_optarg ;; 1072 1073 -gas | --gas | --ga | --g) 1074 # Obsolete; use --with-gas. 1075 with_gas=yes ;; 1076 1077 -help | --help | --hel | --he | -h) 1078 ac_init_help=long ;; 1079 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1080 ac_init_help=recursive ;; 1081 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1082 ac_init_help=short ;; 1083 1084 -host | --host | --hos | --ho) 1085 ac_prev=host_alias ;; 1086 -host=* | --host=* | --hos=* | --ho=*) 1087 host_alias=$ac_optarg ;; 1088 1089 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1090 ac_prev=htmldir ;; 1091 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1092 | --ht=*) 1093 htmldir=$ac_optarg ;; 1094 1095 -includedir | --includedir | --includedi | --included | --include \ 1096 | --includ | --inclu | --incl | --inc) 1097 ac_prev=includedir ;; 1098 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1099 | --includ=* | --inclu=* | --incl=* | --inc=*) 1100 includedir=$ac_optarg ;; 1101 1102 -infodir | --infodir | --infodi | --infod | --info | --inf) 1103 ac_prev=infodir ;; 1104 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1105 infodir=$ac_optarg ;; 1106 1107 -libdir | --libdir | --libdi | --libd) 1108 ac_prev=libdir ;; 1109 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1110 libdir=$ac_optarg ;; 1111 1112 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1113 | --libexe | --libex | --libe) 1114 ac_prev=libexecdir ;; 1115 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1116 | --libexe=* | --libex=* | --libe=*) 1117 libexecdir=$ac_optarg ;; 1118 1119 -localedir | --localedir | --localedi | --localed | --locale) 1120 ac_prev=localedir ;; 1121 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1122 localedir=$ac_optarg ;; 1123 1124 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1125 | --localstate | --localstat | --localsta | --localst | --locals) 1126 ac_prev=localstatedir ;; 1127 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1128 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1129 localstatedir=$ac_optarg ;; 1130 1131 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1132 ac_prev=mandir ;; 1133 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1134 mandir=$ac_optarg ;; 1135 1136 -nfp | --nfp | --nf) 1137 # Obsolete; use --without-fp. 1138 with_fp=no ;; 1139 1140 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1141 | --no-cr | --no-c | -n) 1142 no_create=yes ;; 1143 1144 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1145 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1146 no_recursion=yes ;; 1147 1148 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1149 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1150 | --oldin | --oldi | --old | --ol | --o) 1151 ac_prev=oldincludedir ;; 1152 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1153 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1154 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1155 oldincludedir=$ac_optarg ;; 1156 1157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1158 ac_prev=prefix ;; 1159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1160 prefix=$ac_optarg ;; 1161 1162 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1163 | --program-pre | --program-pr | --program-p) 1164 ac_prev=program_prefix ;; 1165 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1166 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1167 program_prefix=$ac_optarg ;; 1168 1169 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1170 | --program-suf | --program-su | --program-s) 1171 ac_prev=program_suffix ;; 1172 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1173 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1174 program_suffix=$ac_optarg ;; 1175 1176 -program-transform-name | --program-transform-name \ 1177 | --program-transform-nam | --program-transform-na \ 1178 | --program-transform-n | --program-transform- \ 1179 | --program-transform | --program-transfor \ 1180 | --program-transfo | --program-transf \ 1181 | --program-trans | --program-tran \ 1182 | --progr-tra | --program-tr | --program-t) 1183 ac_prev=program_transform_name ;; 1184 -program-transform-name=* | --program-transform-name=* \ 1185 | --program-transform-nam=* | --program-transform-na=* \ 1186 | --program-transform-n=* | --program-transform-=* \ 1187 | --program-transform=* | --program-transfor=* \ 1188 | --program-transfo=* | --program-transf=* \ 1189 | --program-trans=* | --program-tran=* \ 1190 | --progr-tra=* | --program-tr=* | --program-t=*) 1191 program_transform_name=$ac_optarg ;; 1192 1193 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1194 ac_prev=pdfdir ;; 1195 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1196 pdfdir=$ac_optarg ;; 1197 1198 -psdir | --psdir | --psdi | --psd | --ps) 1199 ac_prev=psdir ;; 1200 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1201 psdir=$ac_optarg ;; 1202 1203 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1204 | -silent | --silent | --silen | --sile | --sil) 1205 silent=yes ;; 1206 1207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1208 ac_prev=sbindir ;; 1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1210 | --sbi=* | --sb=*) 1211 sbindir=$ac_optarg ;; 1212 1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1215 | --sharedst | --shareds | --shared | --share | --shar \ 1216 | --sha | --sh) 1217 ac_prev=sharedstatedir ;; 1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1221 | --sha=* | --sh=*) 1222 sharedstatedir=$ac_optarg ;; 1223 1224 -site | --site | --sit) 1225 ac_prev=site ;; 1226 -site=* | --site=* | --sit=*) 1227 site=$ac_optarg ;; 1228 1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1230 ac_prev=srcdir ;; 1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1232 srcdir=$ac_optarg ;; 1233 1234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1235 | --syscon | --sysco | --sysc | --sys | --sy) 1236 ac_prev=sysconfdir ;; 1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1239 sysconfdir=$ac_optarg ;; 1240 1241 -target | --target | --targe | --targ | --tar | --ta | --t) 1242 ac_prev=target_alias ;; 1243 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1244 target_alias=$ac_optarg ;; 1245 1246 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1247 verbose=yes ;; 1248 1249 -version | --version | --versio | --versi | --vers | -V) 1250 ac_init_version=: ;; 1251 1252 -with-* | --with-*) 1253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1254 # Reject names that are not valid shell variable names. 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1256 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1257 { (exit 1); exit 1; }; } 1258 ac_useropt_orig=$ac_useropt 1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1260 case $ac_user_opts in 1261 *" 1262"with_$ac_useropt" 1263"*) ;; 1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1265 ac_unrecognized_sep=', ';; 1266 esac 1267 eval with_$ac_useropt=\$ac_optarg ;; 1268 1269 -without-* | --without-*) 1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1271 # Reject names that are not valid shell variable names. 1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1273 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1274 { (exit 1); exit 1; }; } 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=no ;; 1285 1286 --x) 1287 # Obsolete; use --with-x. 1288 with_x=yes ;; 1289 1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1291 | --x-incl | --x-inc | --x-in | --x-i) 1292 ac_prev=x_includes ;; 1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1295 x_includes=$ac_optarg ;; 1296 1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1299 ac_prev=x_libraries ;; 1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1302 x_libraries=$ac_optarg ;; 1303 1304 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1305Try \`$0 --help' for more information." >&2 1306 { (exit 1); exit 1; }; } 1307 ;; 1308 1309 *=*) 1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1311 # Reject names that are not valid shell variable names. 1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1313 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1314 { (exit 1); exit 1; }; } 1315 eval $ac_envvar=\$ac_optarg 1316 export $ac_envvar ;; 1317 1318 *) 1319 # FIXME: should be removed in autoconf 3.0. 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1324 ;; 1325 1326 esac 1327done 1328 1329if test -n "$ac_prev"; then 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1331 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1332 { (exit 1); exit 1; }; } 1333fi 1334 1335if test -n "$ac_unrecognized_opts"; then 1336 case $enable_option_checking in 1337 no) ;; 1338 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1339 { (exit 1); exit 1; }; } ;; 1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1341 esac 1342fi 1343 1344# Check all directory arguments for consistency. 1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1346 datadir sysconfdir sharedstatedir localstatedir includedir \ 1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1348 libdir localedir mandir 1349do 1350 eval ac_val=\$$ac_var 1351 # Remove trailing slashes. 1352 case $ac_val in 1353 */ ) 1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1355 eval $ac_var=\$ac_val;; 1356 esac 1357 # Be sure to have absolute directory names. 1358 case $ac_val in 1359 [\\/$]* | ?:[\\/]* ) continue;; 1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1361 esac 1362 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1363 { (exit 1); exit 1; }; } 1364done 1365 1366# There might be people who depend on the old broken behavior: `$host' 1367# used to hold the argument of --host etc. 1368# FIXME: To remove some day. 1369build=$build_alias 1370host=$host_alias 1371target=$target_alias 1372 1373# FIXME: To remove some day. 1374if test "x$host_alias" != x; then 1375 if test "x$build_alias" = x; then 1376 cross_compiling=maybe 1377 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1378 If a cross compiler is detected then cross compile mode will be used." >&2 1379 elif test "x$build_alias" != "x$host_alias"; then 1380 cross_compiling=yes 1381 fi 1382fi 1383 1384ac_tool_prefix= 1385test -n "$host_alias" && ac_tool_prefix=$host_alias- 1386 1387test "$silent" = yes && exec 6>/dev/null 1388 1389 1390ac_pwd=`pwd` && test -n "$ac_pwd" && 1391ac_ls_di=`ls -di .` && 1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1393 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1394 { (exit 1); exit 1; }; } 1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1396 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1397 { (exit 1); exit 1; }; } 1398 1399 1400# Find the source files, if location was not specified. 1401if test -z "$srcdir"; then 1402 ac_srcdir_defaulted=yes 1403 # Try the directory containing this script, then the parent directory. 1404 ac_confdir=`$as_dirname -- "$as_myself" || 1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1406 X"$as_myself" : 'X\(//\)[^/]' \| \ 1407 X"$as_myself" : 'X\(//\)$' \| \ 1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1409$as_echo X"$as_myself" | 1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1411 s//\1/ 1412 q 1413 } 1414 /^X\(\/\/\)[^/].*/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\/\)$/{ 1419 s//\1/ 1420 q 1421 } 1422 /^X\(\/\).*/{ 1423 s//\1/ 1424 q 1425 } 1426 s/.*/./; q'` 1427 srcdir=$ac_confdir 1428 if test ! -r "$srcdir/$ac_unique_file"; then 1429 srcdir=.. 1430 fi 1431else 1432 ac_srcdir_defaulted=no 1433fi 1434if test ! -r "$srcdir/$ac_unique_file"; then 1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1436 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1437 { (exit 1); exit 1; }; } 1438fi 1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1440ac_abs_confdir=`( 1441 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1442 { (exit 1); exit 1; }; } 1443 pwd)` 1444# When building in place, set srcdir=. 1445if test "$ac_abs_confdir" = "$ac_pwd"; then 1446 srcdir=. 1447fi 1448# Remove unnecessary trailing slashes from srcdir. 1449# Double slashes in file names in object file debugging info 1450# mess up M-x gdb in Emacs. 1451case $srcdir in 1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1453esac 1454for ac_var in $ac_precious_vars; do 1455 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1456 eval ac_env_${ac_var}_value=\$${ac_var} 1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1458 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1459done 1460 1461# 1462# Report the --help message. 1463# 1464if test "$ac_init_help" = "long"; then 1465 # Omit some internal or obsolete options to make the list less imposing. 1466 # This message is too long to be a string in the A/UX 3.1 sh. 1467 cat <<_ACEOF 1468\`configure' configures iperf 3.0.1 to adapt to many kinds of systems. 1469 1470Usage: $0 [OPTION]... [VAR=VALUE]... 1471 1472To assign environment variables (e.g., CC, CFLAGS...), specify them as 1473VAR=VALUE. See below for descriptions of some of the useful variables. 1474 1475Defaults for the options are specified in brackets. 1476 1477Configuration: 1478 -h, --help display this help and exit 1479 --help=short display options specific to this package 1480 --help=recursive display the short help of all the included packages 1481 -V, --version display version information and exit 1482 -q, --quiet, --silent do not print \`checking...' messages 1483 --cache-file=FILE cache test results in FILE [disabled] 1484 -C, --config-cache alias for \`--cache-file=config.cache' 1485 -n, --no-create do not create output files 1486 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1487 1488Installation directories: 1489 --prefix=PREFIX install architecture-independent files in PREFIX 1490 [$ac_default_prefix] 1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1492 [PREFIX] 1493 1494By default, \`make install' will install all the files in 1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1496an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1497for instance \`--prefix=\$HOME'. 1498 1499For better control, use the options below. 1500 1501Fine tuning of the installation directories: 1502 --bindir=DIR user executables [EPREFIX/bin] 1503 --sbindir=DIR system admin executables [EPREFIX/sbin] 1504 --libexecdir=DIR program executables [EPREFIX/libexec] 1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1508 --libdir=DIR object code libraries [EPREFIX/lib] 1509 --includedir=DIR C header files [PREFIX/include] 1510 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1513 --infodir=DIR info documentation [DATAROOTDIR/info] 1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1515 --mandir=DIR man documentation [DATAROOTDIR/man] 1516 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf] 1517 --htmldir=DIR html documentation [DOCDIR] 1518 --dvidir=DIR dvi documentation [DOCDIR] 1519 --pdfdir=DIR pdf documentation [DOCDIR] 1520 --psdir=DIR ps documentation [DOCDIR] 1521_ACEOF 1522 1523 cat <<\_ACEOF 1524 1525Program names: 1526 --program-prefix=PREFIX prepend PREFIX to installed program names 1527 --program-suffix=SUFFIX append SUFFIX to installed program names 1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1529 1530System types: 1531 --build=BUILD configure for building on BUILD [guessed] 1532 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1533_ACEOF 1534fi 1535 1536if test -n "$ac_init_help"; then 1537 case $ac_init_help in 1538 short | recursive ) echo "Configuration of iperf 3.0.1:";; 1539 esac 1540 cat <<\_ACEOF 1541 1542Optional Features: 1543 --disable-option-checking ignore unrecognized --enable/--with options 1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1546 --disable-dependency-tracking speeds up one-time build 1547 --enable-dependency-tracking do not reject slow dependency extractors 1548 --enable-shared[=PKGS] build shared libraries [default=yes] 1549 --enable-static[=PKGS] build static libraries [default=yes] 1550 --enable-fast-install[=PKGS] 1551 optimize for fast installation [default=yes] 1552 --disable-libtool-lock avoid locking (might break parallel builds) 1553 1554Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-pic try to use only PIC/non-PIC objects [default=use 1558 both] 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1560 1561Some influential environment variables: 1562 CC C compiler command 1563 CFLAGS C compiler flags 1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1565 nonstandard directory <lib dir> 1566 LIBS libraries to pass to the linker, e.g. -l<library> 1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1568 you have headers in a nonstandard directory <include dir> 1569 CPP C preprocessor 1570 1571Use these variables to override the choices made by `configure' or to help 1572it to find libraries and programs with nonstandard names/locations. 1573 1574Report bugs to <https://github.com/esnet/iperf>. 1575_ACEOF 1576ac_status=$? 1577fi 1578 1579if test "$ac_init_help" = "recursive"; then 1580 # If there are subdirs, report their specific --help. 1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1582 test -d "$ac_dir" || 1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1584 continue 1585 ac_builddir=. 1586 1587case "$ac_dir" in 1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1589*) 1590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1591 # A ".." for each directory in $ac_dir_suffix. 1592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1593 case $ac_top_builddir_sub in 1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1596 esac ;; 1597esac 1598ac_abs_top_builddir=$ac_pwd 1599ac_abs_builddir=$ac_pwd$ac_dir_suffix 1600# for backward compatibility: 1601ac_top_builddir=$ac_top_build_prefix 1602 1603case $srcdir in 1604 .) # We are building in place. 1605 ac_srcdir=. 1606 ac_top_srcdir=$ac_top_builddir_sub 1607 ac_abs_top_srcdir=$ac_pwd ;; 1608 [\\/]* | ?:[\\/]* ) # Absolute name. 1609 ac_srcdir=$srcdir$ac_dir_suffix; 1610 ac_top_srcdir=$srcdir 1611 ac_abs_top_srcdir=$srcdir ;; 1612 *) # Relative name. 1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1614 ac_top_srcdir=$ac_top_build_prefix$srcdir 1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1616esac 1617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1618 1619 cd "$ac_dir" || { ac_status=$?; continue; } 1620 # Check for guested configure. 1621 if test -f "$ac_srcdir/configure.gnu"; then 1622 echo && 1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1624 elif test -f "$ac_srcdir/configure"; then 1625 echo && 1626 $SHELL "$ac_srcdir/configure" --help=recursive 1627 else 1628 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1629 fi || ac_status=$? 1630 cd "$ac_pwd" || { ac_status=$?; break; } 1631 done 1632fi 1633 1634test -n "$ac_init_help" && exit $ac_status 1635if $ac_init_version; then 1636 cat <<\_ACEOF 1637iperf configure 3.0.1 1638generated by GNU Autoconf 2.63 1639 1640Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16412002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1642This configure script is free software; the Free Software Foundation 1643gives unlimited permission to copy, distribute and modify it. 1644_ACEOF 1645 exit 1646fi 1647cat >config.log <<_ACEOF 1648This file contains any messages produced by compilers while 1649running configure, to aid debugging if configure makes a mistake. 1650 1651It was created by iperf $as_me 3.0.1, which was 1652generated by GNU Autoconf 2.63. Invocation command line was 1653 1654 $ $0 $@ 1655 1656_ACEOF 1657exec 5>>config.log 1658{ 1659cat <<_ASUNAME 1660## --------- ## 1661## Platform. ## 1662## --------- ## 1663 1664hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1665uname -m = `(uname -m) 2>/dev/null || echo unknown` 1666uname -r = `(uname -r) 2>/dev/null || echo unknown` 1667uname -s = `(uname -s) 2>/dev/null || echo unknown` 1668uname -v = `(uname -v) 2>/dev/null || echo unknown` 1669 1670/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1671/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1672 1673/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1674/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1675/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1676/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1677/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1678/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1679/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1680 1681_ASUNAME 1682 1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1684for as_dir in $PATH 1685do 1686 IFS=$as_save_IFS 1687 test -z "$as_dir" && as_dir=. 1688 $as_echo "PATH: $as_dir" 1689done 1690IFS=$as_save_IFS 1691 1692} >&5 1693 1694cat >&5 <<_ACEOF 1695 1696 1697## ----------- ## 1698## Core tests. ## 1699## ----------- ## 1700 1701_ACEOF 1702 1703 1704# Keep a trace of the command line. 1705# Strip out --no-create and --no-recursion so they do not pile up. 1706# Strip out --silent because we don't want to record it for future runs. 1707# Also quote any args containing shell meta-characters. 1708# Make two passes to allow for proper duplicate-argument suppression. 1709ac_configure_args= 1710ac_configure_args0= 1711ac_configure_args1= 1712ac_must_keep_next=false 1713for ac_pass in 1 2 1714do 1715 for ac_arg 1716 do 1717 case $ac_arg in 1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1720 | -silent | --silent | --silen | --sile | --sil) 1721 continue ;; 1722 *\'*) 1723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1724 esac 1725 case $ac_pass in 1726 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1727 2) 1728 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1729 if test $ac_must_keep_next = true; then 1730 ac_must_keep_next=false # Got value, back to normal. 1731 else 1732 case $ac_arg in 1733 *=* | --config-cache | -C | -disable-* | --disable-* \ 1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1736 | -with-* | --with-* | -without-* | --without-* | --x) 1737 case "$ac_configure_args0 " in 1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1739 esac 1740 ;; 1741 -* ) ac_must_keep_next=true ;; 1742 esac 1743 fi 1744 ac_configure_args="$ac_configure_args '$ac_arg'" 1745 ;; 1746 esac 1747 done 1748done 1749$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1750$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1751 1752# When interrupted or exit'd, cleanup temporary files, and complete 1753# config.log. We remove comments because anyway the quotes in there 1754# would cause problems or look ugly. 1755# WARNING: Use '\'' to represent an apostrophe within the trap. 1756# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1757trap 'exit_status=$? 1758 # Save into config.log some information that might help in debugging. 1759 { 1760 echo 1761 1762 cat <<\_ASBOX 1763## ---------------- ## 1764## Cache variables. ## 1765## ---------------- ## 1766_ASBOX 1767 echo 1768 # The following way of writing the cache mishandles newlines in values, 1769( 1770 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1771 eval ac_val=\$$ac_var 1772 case $ac_val in #( 1773 *${as_nl}*) 1774 case $ac_var in #( 1775 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1776$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1777 esac 1778 case $ac_var in #( 1779 _ | IFS | as_nl) ;; #( 1780 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1781 *) $as_unset $ac_var ;; 1782 esac ;; 1783 esac 1784 done 1785 (set) 2>&1 | 1786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1787 *${as_nl}ac_space=\ *) 1788 sed -n \ 1789 "s/'\''/'\''\\\\'\'''\''/g; 1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1791 ;; #( 1792 *) 1793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1794 ;; 1795 esac | 1796 sort 1797) 1798 echo 1799 1800 cat <<\_ASBOX 1801## ----------------- ## 1802## Output variables. ## 1803## ----------------- ## 1804_ASBOX 1805 echo 1806 for ac_var in $ac_subst_vars 1807 do 1808 eval ac_val=\$$ac_var 1809 case $ac_val in 1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1811 esac 1812 $as_echo "$ac_var='\''$ac_val'\''" 1813 done | sort 1814 echo 1815 1816 if test -n "$ac_subst_files"; then 1817 cat <<\_ASBOX 1818## ------------------- ## 1819## File substitutions. ## 1820## ------------------- ## 1821_ASBOX 1822 echo 1823 for ac_var in $ac_subst_files 1824 do 1825 eval ac_val=\$$ac_var 1826 case $ac_val in 1827 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1828 esac 1829 $as_echo "$ac_var='\''$ac_val'\''" 1830 done | sort 1831 echo 1832 fi 1833 1834 if test -s confdefs.h; then 1835 cat <<\_ASBOX 1836## ----------- ## 1837## confdefs.h. ## 1838## ----------- ## 1839_ASBOX 1840 echo 1841 cat confdefs.h 1842 echo 1843 fi 1844 test "$ac_signal" != 0 && 1845 $as_echo "$as_me: caught signal $ac_signal" 1846 $as_echo "$as_me: exit $exit_status" 1847 } >&5 1848 rm -f core *.core core.conftest.* && 1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1850 exit $exit_status 1851' 0 1852for ac_signal in 1 2 13 15; do 1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1854done 1855ac_signal=0 1856 1857# confdefs.h avoids OS command line length limits that DEFS can exceed. 1858rm -f -r conftest* confdefs.h 1859 1860# Predefined preprocessor variables. 1861 1862cat >>confdefs.h <<_ACEOF 1863#define PACKAGE_NAME "$PACKAGE_NAME" 1864_ACEOF 1865 1866 1867cat >>confdefs.h <<_ACEOF 1868#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1869_ACEOF 1870 1871 1872cat >>confdefs.h <<_ACEOF 1873#define PACKAGE_VERSION "$PACKAGE_VERSION" 1874_ACEOF 1875 1876 1877cat >>confdefs.h <<_ACEOF 1878#define PACKAGE_STRING "$PACKAGE_STRING" 1879_ACEOF 1880 1881 1882cat >>confdefs.h <<_ACEOF 1883#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1884_ACEOF 1885 1886 1887# Let the site file select an alternate cache file if it wants to. 1888# Prefer an explicitly selected file to automatically selected ones. 1889ac_site_file1=NONE 1890ac_site_file2=NONE 1891if test -n "$CONFIG_SITE"; then 1892 ac_site_file1=$CONFIG_SITE 1893elif test "x$prefix" != xNONE; then 1894 ac_site_file1=$prefix/share/config.site 1895 ac_site_file2=$prefix/etc/config.site 1896else 1897 ac_site_file1=$ac_default_prefix/share/config.site 1898 ac_site_file2=$ac_default_prefix/etc/config.site 1899fi 1900for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1901do 1902 test "x$ac_site_file" = xNONE && continue 1903 if test -r "$ac_site_file"; then 1904 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1905$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1906 sed 's/^/| /' "$ac_site_file" >&5 1907 . "$ac_site_file" 1908 fi 1909done 1910 1911if test -r "$cache_file"; then 1912 # Some versions of bash will fail to source /dev/null (special 1913 # files actually), so we avoid doing that. 1914 if test -f "$cache_file"; then 1915 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1916$as_echo "$as_me: loading cache $cache_file" >&6;} 1917 case $cache_file in 1918 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1919 *) . "./$cache_file";; 1920 esac 1921 fi 1922else 1923 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1924$as_echo "$as_me: creating cache $cache_file" >&6;} 1925 >$cache_file 1926fi 1927 1928# Check that the precious variables saved in the cache have kept the same 1929# value. 1930ac_cache_corrupted=false 1931for ac_var in $ac_precious_vars; do 1932 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1933 eval ac_new_set=\$ac_env_${ac_var}_set 1934 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1935 eval ac_new_val=\$ac_env_${ac_var}_value 1936 case $ac_old_set,$ac_new_set in 1937 set,) 1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1939$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1940 ac_cache_corrupted=: ;; 1941 ,set) 1942 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1943$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1944 ac_cache_corrupted=: ;; 1945 ,);; 1946 *) 1947 if test "x$ac_old_val" != "x$ac_new_val"; then 1948 # differences in whitespace do not lead to failure. 1949 ac_old_val_w=`echo x $ac_old_val` 1950 ac_new_val_w=`echo x $ac_new_val` 1951 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1952 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1953$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1954 ac_cache_corrupted=: 1955 else 1956 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1957$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1958 eval $ac_var=\$ac_old_val 1959 fi 1960 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1961$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1962 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1963$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1964 fi;; 1965 esac 1966 # Pass precious variables to config.status. 1967 if test "$ac_new_set" = set; then 1968 case $ac_new_val in 1969 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1970 *) ac_arg=$ac_var=$ac_new_val ;; 1971 esac 1972 case " $ac_configure_args " in 1973 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1974 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1975 esac 1976 fi 1977done 1978if $ac_cache_corrupted; then 1979 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1981 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1982$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1983 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1984$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1985 { (exit 1); exit 1; }; } 1986fi 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012ac_ext=c 2013ac_cpp='$CPP $CPPFLAGS' 2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2016ac_compiler_gnu=$ac_cv_c_compiler_gnu 2017 2018 2019 2020# Specify where the auxiliary files created by configure should go. The config 2021# directory is picked so that they don't clutter up more useful directories. 2022ac_aux_dir= 2023for ac_dir in config "$srcdir"/config; do 2024 if test -f "$ac_dir/install-sh"; then 2025 ac_aux_dir=$ac_dir 2026 ac_install_sh="$ac_aux_dir/install-sh -c" 2027 break 2028 elif test -f "$ac_dir/install.sh"; then 2029 ac_aux_dir=$ac_dir 2030 ac_install_sh="$ac_aux_dir/install.sh -c" 2031 break 2032 elif test -f "$ac_dir/shtool"; then 2033 ac_aux_dir=$ac_dir 2034 ac_install_sh="$ac_aux_dir/shtool install -c" 2035 break 2036 fi 2037done 2038if test -z "$ac_aux_dir"; then 2039 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 2040$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 2041 { (exit 1); exit 1; }; } 2042fi 2043 2044# These three variables are undocumented and unsupported, 2045# and are intended to be withdrawn in a future Autoconf release. 2046# They can cause serious problems if a builder's source tree is in a directory 2047# whose full name contains unusual characters. 2048ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2049ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2050ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2051 2052 2053 2054 2055# Initialize the automake system 2056am__api_version='1.11' 2057 2058# Find a good install program. We prefer a C program (faster), 2059# so one script is as good as another. But avoid the broken or 2060# incompatible versions: 2061# SysV /etc/install, /usr/sbin/install 2062# SunOS /usr/etc/install 2063# IRIX /sbin/install 2064# AIX /bin/install 2065# AmigaOS /C/install, which installs bootblocks on floppy discs 2066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2067# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2069# OS/2's system install, which has a completely different semantic 2070# ./install, which can be erroneously created by make from ./install.sh. 2071# Reject install programs that cannot install multiple files. 2072{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2073$as_echo_n "checking for a BSD-compatible install... " >&6; } 2074if test -z "$INSTALL"; then 2075if test "${ac_cv_path_install+set}" = set; then 2076 $as_echo_n "(cached) " >&6 2077else 2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2079for as_dir in $PATH 2080do 2081 IFS=$as_save_IFS 2082 test -z "$as_dir" && as_dir=. 2083 # Account for people who put trailing slashes in PATH elements. 2084case $as_dir/ in 2085 ./ | .// | /cC/* | \ 2086 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2087 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2088 /usr/ucb/* ) ;; 2089 *) 2090 # OSF1 and SCO ODT 3.0 have their own names for install. 2091 # Don't use installbsd from OSF since it installs stuff as root 2092 # by default. 2093 for ac_prog in ginstall scoinst install; do 2094 for ac_exec_ext in '' $ac_executable_extensions; do 2095 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2096 if test $ac_prog = install && 2097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2098 # AIX install. It has an incompatible calling convention. 2099 : 2100 elif test $ac_prog = install && 2101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2102 # program-specific install script used by HP pwplus--don't use. 2103 : 2104 else 2105 rm -rf conftest.one conftest.two conftest.dir 2106 echo one > conftest.one 2107 echo two > conftest.two 2108 mkdir conftest.dir 2109 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2110 test -s conftest.one && test -s conftest.two && 2111 test -s conftest.dir/conftest.one && 2112 test -s conftest.dir/conftest.two 2113 then 2114 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2115 break 3 2116 fi 2117 fi 2118 fi 2119 done 2120 done 2121 ;; 2122esac 2123 2124done 2125IFS=$as_save_IFS 2126 2127rm -rf conftest.one conftest.two conftest.dir 2128 2129fi 2130 if test "${ac_cv_path_install+set}" = set; then 2131 INSTALL=$ac_cv_path_install 2132 else 2133 # As a last resort, use the slow shell script. Don't cache a 2134 # value for INSTALL within a source directory, because that will 2135 # break other packages using the cache if that directory is 2136 # removed, or if the value is a relative name. 2137 INSTALL=$ac_install_sh 2138 fi 2139fi 2140{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2141$as_echo "$INSTALL" >&6; } 2142 2143# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2144# It thinks the first close brace ends the variable substitution. 2145test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2146 2147test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2148 2149test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2150 2151{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2152$as_echo_n "checking whether build environment is sane... " >&6; } 2153# Just in case 2154sleep 1 2155echo timestamp > conftest.file 2156# Reject unsafe characters in $srcdir or the absolute working directory 2157# name. Accept space and tab only in the latter. 2158am_lf=' 2159' 2160case `pwd` in 2161 *[\\\"\#\$\&\'\`$am_lf]*) 2162 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2163$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2164 { (exit 1); exit 1; }; };; 2165esac 2166case $srcdir in 2167 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2168 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2169$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2170 { (exit 1); exit 1; }; };; 2171esac 2172 2173# Do `set' in a subshell so we don't clobber the current shell's 2174# arguments. Must try -L first in case configure is actually a 2175# symlink; some systems play weird games with the mod time of symlinks 2176# (eg FreeBSD returns the mod time of the symlink's containing 2177# directory). 2178if ( 2179 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2180 if test "$*" = "X"; then 2181 # -L didn't work. 2182 set X `ls -t "$srcdir/configure" conftest.file` 2183 fi 2184 rm -f conftest.file 2185 if test "$*" != "X $srcdir/configure conftest.file" \ 2186 && test "$*" != "X conftest.file $srcdir/configure"; then 2187 2188 # If neither matched, then we have a broken ls. This can happen 2189 # if, for instance, CONFIG_SHELL is bash and it inherits a 2190 # broken ls alias from the environment. This has actually 2191 # happened. Such a system could not be considered "sane". 2192 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2193alias in your environment" >&5 2194$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2195alias in your environment" >&2;} 2196 { (exit 1); exit 1; }; } 2197 fi 2198 2199 test "$2" = conftest.file 2200 ) 2201then 2202 # Ok. 2203 : 2204else 2205 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2206Check your system clock" >&5 2207$as_echo "$as_me: error: newly created file is older than distributed files! 2208Check your system clock" >&2;} 2209 { (exit 1); exit 1; }; } 2210fi 2211{ $as_echo "$as_me:$LINENO: result: yes" >&5 2212$as_echo "yes" >&6; } 2213test "$program_prefix" != NONE && 2214 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2215# Use a double $ so make ignores it. 2216test "$program_suffix" != NONE && 2217 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2218# Double any \ or $. 2219# By default was `s,x,x', remove it if useless. 2220ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2221program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2222 2223# expand $ac_aux_dir to an absolute path 2224am_aux_dir=`cd $ac_aux_dir && pwd` 2225 2226if test x"${MISSING+set}" != xset; then 2227 case $am_aux_dir in 2228 *\ * | *\ *) 2229 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2230 *) 2231 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2232 esac 2233fi 2234# Use eval to expand $SHELL 2235if eval "$MISSING --run true"; then 2236 am_missing_run="$MISSING --run " 2237else 2238 am_missing_run= 2239 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2240$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2241fi 2242 2243if test x"${install_sh}" != xset; then 2244 case $am_aux_dir in 2245 *\ * | *\ *) 2246 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2247 *) 2248 install_sh="\${SHELL} $am_aux_dir/install-sh" 2249 esac 2250fi 2251 2252# Installed binaries are usually stripped using `strip' when the user 2253# run `make install-strip'. However `strip' might not be the right 2254# tool to use in cross-compilation environments, therefore Automake 2255# will honor the `STRIP' environment variable to overrule this program. 2256if test "$cross_compiling" != no; then 2257 if test -n "$ac_tool_prefix"; then 2258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2259set dummy ${ac_tool_prefix}strip; ac_word=$2 2260{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2261$as_echo_n "checking for $ac_word... " >&6; } 2262if test "${ac_cv_prog_STRIP+set}" = set; then 2263 $as_echo_n "(cached) " >&6 2264else 2265 if test -n "$STRIP"; then 2266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2267else 2268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2269for as_dir in $PATH 2270do 2271 IFS=$as_save_IFS 2272 test -z "$as_dir" && as_dir=. 2273 for ac_exec_ext in '' $ac_executable_extensions; do 2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2275 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2277 break 2 2278 fi 2279done 2280done 2281IFS=$as_save_IFS 2282 2283fi 2284fi 2285STRIP=$ac_cv_prog_STRIP 2286if test -n "$STRIP"; then 2287 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2288$as_echo "$STRIP" >&6; } 2289else 2290 { $as_echo "$as_me:$LINENO: result: no" >&5 2291$as_echo "no" >&6; } 2292fi 2293 2294 2295fi 2296if test -z "$ac_cv_prog_STRIP"; then 2297 ac_ct_STRIP=$STRIP 2298 # Extract the first word of "strip", so it can be a program name with args. 2299set dummy strip; ac_word=$2 2300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2301$as_echo_n "checking for $ac_word... " >&6; } 2302if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2303 $as_echo_n "(cached) " >&6 2304else 2305 if test -n "$ac_ct_STRIP"; then 2306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2307else 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 for ac_exec_ext in '' $ac_executable_extensions; do 2314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2315 ac_cv_prog_ac_ct_STRIP="strip" 2316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2317 break 2 2318 fi 2319done 2320done 2321IFS=$as_save_IFS 2322 2323fi 2324fi 2325ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2326if test -n "$ac_ct_STRIP"; then 2327 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2328$as_echo "$ac_ct_STRIP" >&6; } 2329else 2330 { $as_echo "$as_me:$LINENO: result: no" >&5 2331$as_echo "no" >&6; } 2332fi 2333 2334 if test "x$ac_ct_STRIP" = x; then 2335 STRIP=":" 2336 else 2337 case $cross_compiling:$ac_tool_warned in 2338yes:) 2339{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2340$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2341ac_tool_warned=yes ;; 2342esac 2343 STRIP=$ac_ct_STRIP 2344 fi 2345else 2346 STRIP="$ac_cv_prog_STRIP" 2347fi 2348 2349fi 2350INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2351 2352{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2353$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2354if test -z "$MKDIR_P"; then 2355 if test "${ac_cv_path_mkdir+set}" = set; then 2356 $as_echo_n "(cached) " >&6 2357else 2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2359for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2360do 2361 IFS=$as_save_IFS 2362 test -z "$as_dir" && as_dir=. 2363 for ac_prog in mkdir gmkdir; do 2364 for ac_exec_ext in '' $ac_executable_extensions; do 2365 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2366 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2367 'mkdir (GNU coreutils) '* | \ 2368 'mkdir (coreutils) '* | \ 2369 'mkdir (fileutils) '4.1*) 2370 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2371 break 3;; 2372 esac 2373 done 2374 done 2375done 2376IFS=$as_save_IFS 2377 2378fi 2379 2380 if test "${ac_cv_path_mkdir+set}" = set; then 2381 MKDIR_P="$ac_cv_path_mkdir -p" 2382 else 2383 # As a last resort, use the slow shell script. Don't cache a 2384 # value for MKDIR_P within a source directory, because that will 2385 # break other packages using the cache if that directory is 2386 # removed, or if the value is a relative name. 2387 test -d ./--version && rmdir ./--version 2388 MKDIR_P="$ac_install_sh -d" 2389 fi 2390fi 2391{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2392$as_echo "$MKDIR_P" >&6; } 2393 2394mkdir_p="$MKDIR_P" 2395case $mkdir_p in 2396 [\\/$]* | ?:[\\/]*) ;; 2397 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2398esac 2399 2400for ac_prog in gawk mawk nawk awk 2401do 2402 # Extract the first word of "$ac_prog", so it can be a program name with args. 2403set dummy $ac_prog; ac_word=$2 2404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2405$as_echo_n "checking for $ac_word... " >&6; } 2406if test "${ac_cv_prog_AWK+set}" = set; then 2407 $as_echo_n "(cached) " >&6 2408else 2409 if test -n "$AWK"; then 2410 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2411else 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2413for as_dir in $PATH 2414do 2415 IFS=$as_save_IFS 2416 test -z "$as_dir" && as_dir=. 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2419 ac_cv_prog_AWK="$ac_prog" 2420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2421 break 2 2422 fi 2423done 2424done 2425IFS=$as_save_IFS 2426 2427fi 2428fi 2429AWK=$ac_cv_prog_AWK 2430if test -n "$AWK"; then 2431 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2432$as_echo "$AWK" >&6; } 2433else 2434 { $as_echo "$as_me:$LINENO: result: no" >&5 2435$as_echo "no" >&6; } 2436fi 2437 2438 2439 test -n "$AWK" && break 2440done 2441 2442{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2443$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2444set x ${MAKE-make} 2445ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2446if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2447 $as_echo_n "(cached) " >&6 2448else 2449 cat >conftest.make <<\_ACEOF 2450SHELL = /bin/sh 2451all: 2452 @echo '@@@%%%=$(MAKE)=@@@%%%' 2453_ACEOF 2454# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2455case `${MAKE-make} -f conftest.make 2>/dev/null` in 2456 *@@@%%%=?*=@@@%%%*) 2457 eval ac_cv_prog_make_${ac_make}_set=yes;; 2458 *) 2459 eval ac_cv_prog_make_${ac_make}_set=no;; 2460esac 2461rm -f conftest.make 2462fi 2463if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2464 { $as_echo "$as_me:$LINENO: result: yes" >&5 2465$as_echo "yes" >&6; } 2466 SET_MAKE= 2467else 2468 { $as_echo "$as_me:$LINENO: result: no" >&5 2469$as_echo "no" >&6; } 2470 SET_MAKE="MAKE=${MAKE-make}" 2471fi 2472 2473rm -rf .tst 2>/dev/null 2474mkdir .tst 2>/dev/null 2475if test -d .tst; then 2476 am__leading_dot=. 2477else 2478 am__leading_dot=_ 2479fi 2480rmdir .tst 2>/dev/null 2481 2482if test "`cd $srcdir && pwd`" != "`pwd`"; then 2483 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2484 # is not polluted with repeated "-I." 2485 am__isrc=' -I$(srcdir)' 2486 # test to see if srcdir already configured 2487 if test -f $srcdir/config.status; then 2488 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2489$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2490 { (exit 1); exit 1; }; } 2491 fi 2492fi 2493 2494# test whether we have cygpath 2495if test -z "$CYGPATH_W"; then 2496 if (cygpath --version) >/dev/null 2>/dev/null; then 2497 CYGPATH_W='cygpath -w' 2498 else 2499 CYGPATH_W=echo 2500 fi 2501fi 2502 2503 2504# Define the identity of the package. 2505 PACKAGE='iperf' 2506 VERSION='3.0.1' 2507 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE "$PACKAGE" 2511_ACEOF 2512 2513 2514cat >>confdefs.h <<_ACEOF 2515#define VERSION "$VERSION" 2516_ACEOF 2517 2518# Some tools Automake needs. 2519 2520ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2521 2522 2523AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2524 2525 2526AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2527 2528 2529AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2530 2531 2532MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2533 2534# We need awk for the "check" target. The system "awk" is bad on 2535# some platforms. 2536# Always define AMTAR for backward compatibility. 2537 2538AMTAR=${AMTAR-"${am_missing_run}tar"} 2539 2540am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2541 2542 2543 2544 2545 2546 2547ac_config_headers="$ac_config_headers src/iperf_config.h" 2548 2549 2550# Make sure we can run config.sub. 2551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2552 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2553$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2554 { (exit 1); exit 1; }; } 2555 2556{ $as_echo "$as_me:$LINENO: checking build system type" >&5 2557$as_echo_n "checking build system type... " >&6; } 2558if test "${ac_cv_build+set}" = set; then 2559 $as_echo_n "(cached) " >&6 2560else 2561 ac_build_alias=$build_alias 2562test "x$ac_build_alias" = x && 2563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2564test "x$ac_build_alias" = x && 2565 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2566$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2567 { (exit 1); exit 1; }; } 2568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2569 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2570$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2571 { (exit 1); exit 1; }; } 2572 2573fi 2574{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2575$as_echo "$ac_cv_build" >&6; } 2576case $ac_cv_build in 2577*-*-*) ;; 2578*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2579$as_echo "$as_me: error: invalid value of canonical build" >&2;} 2580 { (exit 1); exit 1; }; };; 2581esac 2582build=$ac_cv_build 2583ac_save_IFS=$IFS; IFS='-' 2584set x $ac_cv_build 2585shift 2586build_cpu=$1 2587build_vendor=$2 2588shift; shift 2589# Remember, the first character of IFS is used to create $*, 2590# except with old shells: 2591build_os=$* 2592IFS=$ac_save_IFS 2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2594 2595 2596{ $as_echo "$as_me:$LINENO: checking host system type" >&5 2597$as_echo_n "checking host system type... " >&6; } 2598if test "${ac_cv_host+set}" = set; then 2599 $as_echo_n "(cached) " >&6 2600else 2601 if test "x$host_alias" = x; then 2602 ac_cv_host=$ac_cv_build 2603else 2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2605 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2606$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2607 { (exit 1); exit 1; }; } 2608fi 2609 2610fi 2611{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2612$as_echo "$ac_cv_host" >&6; } 2613case $ac_cv_host in 2614*-*-*) ;; 2615*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2616$as_echo "$as_me: error: invalid value of canonical host" >&2;} 2617 { (exit 1); exit 1; }; };; 2618esac 2619host=$ac_cv_host 2620ac_save_IFS=$IFS; IFS='-' 2621set x $ac_cv_host 2622shift 2623host_cpu=$1 2624host_vendor=$2 2625shift; shift 2626# Remember, the first character of IFS is used to create $*, 2627# except with old shells: 2628host_os=$* 2629IFS=$ac_save_IFS 2630case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2631 2632 2633 2634# Checks for tools: c compiler, ranlib (used for creating static libraries), 2635# symlinks and libtool 2636ac_ext=c 2637ac_cpp='$CPP $CPPFLAGS' 2638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2640ac_compiler_gnu=$ac_cv_c_compiler_gnu 2641if test -n "$ac_tool_prefix"; then 2642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2643set dummy ${ac_tool_prefix}gcc; ac_word=$2 2644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2645$as_echo_n "checking for $ac_word... " >&6; } 2646if test "${ac_cv_prog_CC+set}" = set; then 2647 $as_echo_n "(cached) " >&6 2648else 2649 if test -n "$CC"; then 2650 ac_cv_prog_CC="$CC" # Let the user override the test. 2651else 2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2653for as_dir in $PATH 2654do 2655 IFS=$as_save_IFS 2656 test -z "$as_dir" && as_dir=. 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2659 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2661 break 2 2662 fi 2663done 2664done 2665IFS=$as_save_IFS 2666 2667fi 2668fi 2669CC=$ac_cv_prog_CC 2670if test -n "$CC"; then 2671 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2672$as_echo "$CC" >&6; } 2673else 2674 { $as_echo "$as_me:$LINENO: result: no" >&5 2675$as_echo "no" >&6; } 2676fi 2677 2678 2679fi 2680if test -z "$ac_cv_prog_CC"; then 2681 ac_ct_CC=$CC 2682 # Extract the first word of "gcc", so it can be a program name with args. 2683set dummy gcc; ac_word=$2 2684{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2685$as_echo_n "checking for $ac_word... " >&6; } 2686if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2687 $as_echo_n "(cached) " >&6 2688else 2689 if test -n "$ac_ct_CC"; then 2690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2691else 2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 test -z "$as_dir" && as_dir=. 2697 for ac_exec_ext in '' $ac_executable_extensions; do 2698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2699 ac_cv_prog_ac_ct_CC="gcc" 2700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2701 break 2 2702 fi 2703done 2704done 2705IFS=$as_save_IFS 2706 2707fi 2708fi 2709ac_ct_CC=$ac_cv_prog_ac_ct_CC 2710if test -n "$ac_ct_CC"; then 2711 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2712$as_echo "$ac_ct_CC" >&6; } 2713else 2714 { $as_echo "$as_me:$LINENO: result: no" >&5 2715$as_echo "no" >&6; } 2716fi 2717 2718 if test "x$ac_ct_CC" = x; then 2719 CC="" 2720 else 2721 case $cross_compiling:$ac_tool_warned in 2722yes:) 2723{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2725ac_tool_warned=yes ;; 2726esac 2727 CC=$ac_ct_CC 2728 fi 2729else 2730 CC="$ac_cv_prog_CC" 2731fi 2732 2733if test -z "$CC"; then 2734 if test -n "$ac_tool_prefix"; then 2735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2736set dummy ${ac_tool_prefix}cc; ac_word=$2 2737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2738$as_echo_n "checking for $ac_word... " >&6; } 2739if test "${ac_cv_prog_CC+set}" = set; then 2740 $as_echo_n "(cached) " >&6 2741else 2742 if test -n "$CC"; then 2743 ac_cv_prog_CC="$CC" # Let the user override the test. 2744else 2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2746for as_dir in $PATH 2747do 2748 IFS=$as_save_IFS 2749 test -z "$as_dir" && as_dir=. 2750 for ac_exec_ext in '' $ac_executable_extensions; do 2751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2752 ac_cv_prog_CC="${ac_tool_prefix}cc" 2753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2754 break 2 2755 fi 2756done 2757done 2758IFS=$as_save_IFS 2759 2760fi 2761fi 2762CC=$ac_cv_prog_CC 2763if test -n "$CC"; then 2764 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2765$as_echo "$CC" >&6; } 2766else 2767 { $as_echo "$as_me:$LINENO: result: no" >&5 2768$as_echo "no" >&6; } 2769fi 2770 2771 2772 fi 2773fi 2774if test -z "$CC"; then 2775 # Extract the first word of "cc", so it can be a program name with args. 2776set dummy cc; ac_word=$2 2777{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2778$as_echo_n "checking for $ac_word... " >&6; } 2779if test "${ac_cv_prog_CC+set}" = set; then 2780 $as_echo_n "(cached) " >&6 2781else 2782 if test -n "$CC"; then 2783 ac_cv_prog_CC="$CC" # Let the user override the test. 2784else 2785 ac_prog_rejected=no 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 test -z "$as_dir" && as_dir=. 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2794 ac_prog_rejected=yes 2795 continue 2796 fi 2797 ac_cv_prog_CC="cc" 2798 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2799 break 2 2800 fi 2801done 2802done 2803IFS=$as_save_IFS 2804 2805if test $ac_prog_rejected = yes; then 2806 # We found a bogon in the path, so make sure we never use it. 2807 set dummy $ac_cv_prog_CC 2808 shift 2809 if test $# != 0; then 2810 # We chose a different compiler from the bogus one. 2811 # However, it has the same basename, so the bogon will be chosen 2812 # first if we set CC to just the basename; use the full file name. 2813 shift 2814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2815 fi 2816fi 2817fi 2818fi 2819CC=$ac_cv_prog_CC 2820if test -n "$CC"; then 2821 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2822$as_echo "$CC" >&6; } 2823else 2824 { $as_echo "$as_me:$LINENO: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829fi 2830if test -z "$CC"; then 2831 if test -n "$ac_tool_prefix"; then 2832 for ac_prog in cl.exe 2833 do 2834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2836{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2837$as_echo_n "checking for $ac_word... " >&6; } 2838if test "${ac_cv_prog_CC+set}" = set; then 2839 $as_echo_n "(cached) " >&6 2840else 2841 if test -n "$CC"; then 2842 ac_cv_prog_CC="$CC" # Let the user override the test. 2843else 2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845for as_dir in $PATH 2846do 2847 IFS=$as_save_IFS 2848 test -z "$as_dir" && as_dir=. 2849 for ac_exec_ext in '' $ac_executable_extensions; do 2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2852 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2853 break 2 2854 fi 2855done 2856done 2857IFS=$as_save_IFS 2858 2859fi 2860fi 2861CC=$ac_cv_prog_CC 2862if test -n "$CC"; then 2863 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2864$as_echo "$CC" >&6; } 2865else 2866 { $as_echo "$as_me:$LINENO: result: no" >&5 2867$as_echo "no" >&6; } 2868fi 2869 2870 2871 test -n "$CC" && break 2872 done 2873fi 2874if test -z "$CC"; then 2875 ac_ct_CC=$CC 2876 for ac_prog in cl.exe 2877do 2878 # Extract the first word of "$ac_prog", so it can be a program name with args. 2879set dummy $ac_prog; ac_word=$2 2880{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2881$as_echo_n "checking for $ac_word... " >&6; } 2882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2883 $as_echo_n "(cached) " >&6 2884else 2885 if test -n "$ac_ct_CC"; then 2886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2887else 2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2889for as_dir in $PATH 2890do 2891 IFS=$as_save_IFS 2892 test -z "$as_dir" && as_dir=. 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2895 ac_cv_prog_ac_ct_CC="$ac_prog" 2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900done 2901IFS=$as_save_IFS 2902 2903fi 2904fi 2905ac_ct_CC=$ac_cv_prog_ac_ct_CC 2906if test -n "$ac_ct_CC"; then 2907 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2908$as_echo "$ac_ct_CC" >&6; } 2909else 2910 { $as_echo "$as_me:$LINENO: result: no" >&5 2911$as_echo "no" >&6; } 2912fi 2913 2914 2915 test -n "$ac_ct_CC" && break 2916done 2917 2918 if test "x$ac_ct_CC" = x; then 2919 CC="" 2920 else 2921 case $cross_compiling:$ac_tool_warned in 2922yes:) 2923{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2925ac_tool_warned=yes ;; 2926esac 2927 CC=$ac_ct_CC 2928 fi 2929fi 2930 2931fi 2932 2933 2934test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2936{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2937See \`config.log' for more details." >&5 2938$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2939See \`config.log' for more details." >&2;} 2940 { (exit 1); exit 1; }; }; } 2941 2942# Provide some information about the compiler. 2943$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2944set X $ac_compile 2945ac_compiler=$2 2946{ (ac_try="$ac_compiler --version >&5" 2947case "(($ac_try" in 2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2949 *) ac_try_echo=$ac_try;; 2950esac 2951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2952$as_echo "$ac_try_echo") >&5 2953 (eval "$ac_compiler --version >&5") 2>&5 2954 ac_status=$? 2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); } 2957{ (ac_try="$ac_compiler -v >&5" 2958case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961esac 2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2963$as_echo "$ac_try_echo") >&5 2964 (eval "$ac_compiler -v >&5") 2>&5 2965 ac_status=$? 2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2967 (exit $ac_status); } 2968{ (ac_try="$ac_compiler -V >&5" 2969case "(($ac_try" in 2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2971 *) ac_try_echo=$ac_try;; 2972esac 2973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2974$as_echo "$ac_try_echo") >&5 2975 (eval "$ac_compiler -V >&5") 2>&5 2976 ac_status=$? 2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } 2979 2980cat >conftest.$ac_ext <<_ACEOF 2981/* confdefs.h. */ 2982_ACEOF 2983cat confdefs.h >>conftest.$ac_ext 2984cat >>conftest.$ac_ext <<_ACEOF 2985/* end confdefs.h. */ 2986 2987int 2988main () 2989{ 2990 2991 ; 2992 return 0; 2993} 2994_ACEOF 2995ac_clean_files_save=$ac_clean_files 2996ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2997# Try to create an executable without -o first, disregard a.out. 2998# It will help us diagnose broken compilers, and finding out an intuition 2999# of exeext. 3000{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3001$as_echo_n "checking for C compiler default output file name... " >&6; } 3002ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3003 3004# The possible output files: 3005ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3006 3007ac_rmfiles= 3008for ac_file in $ac_files 3009do 3010 case $ac_file in 3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3012 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3013 esac 3014done 3015rm -f $ac_rmfiles 3016 3017if { (ac_try="$ac_link_default" 3018case "(($ac_try" in 3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020 *) ac_try_echo=$ac_try;; 3021esac 3022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3023$as_echo "$ac_try_echo") >&5 3024 (eval "$ac_link_default") 2>&5 3025 ac_status=$? 3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); }; then 3028 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3029# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3030# in a Makefile. We should not override ac_cv_exeext if it was cached, 3031# so that the user can short-circuit this test for compilers unknown to 3032# Autoconf. 3033for ac_file in $ac_files '' 3034do 3035 test -f "$ac_file" || continue 3036 case $ac_file in 3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3038 ;; 3039 [ab].out ) 3040 # We found the default executable, but exeext='' is most 3041 # certainly right. 3042 break;; 3043 *.* ) 3044 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3045 then :; else 3046 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3047 fi 3048 # We set ac_cv_exeext here because the later test for it is not 3049 # safe: cross compilers may not add the suffix if given an `-o' 3050 # argument, so we may need to know it at that point already. 3051 # Even if this section looks crufty: it has the advantage of 3052 # actually working. 3053 break;; 3054 * ) 3055 break;; 3056 esac 3057done 3058test "$ac_cv_exeext" = no && ac_cv_exeext= 3059 3060else 3061 ac_file='' 3062fi 3063 3064{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3065$as_echo "$ac_file" >&6; } 3066if test -z "$ac_file"; then 3067 $as_echo "$as_me: failed program was:" >&5 3068sed 's/^/| /' conftest.$ac_ext >&5 3069 3070{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3072{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 3073See \`config.log' for more details." >&5 3074$as_echo "$as_me: error: C compiler cannot create executables 3075See \`config.log' for more details." >&2;} 3076 { (exit 77); exit 77; }; }; } 3077fi 3078 3079ac_exeext=$ac_cv_exeext 3080 3081# Check that the compiler produces executables we can run. If not, either 3082# the compiler is broken, or we cross compile. 3083{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3084$as_echo_n "checking whether the C compiler works... " >&6; } 3085# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3086# If not cross compiling, check that we can run a simple program. 3087if test "$cross_compiling" != yes; then 3088 if { ac_try='./$ac_file' 3089 { (case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3094$as_echo "$ac_try_echo") >&5 3095 (eval "$ac_try") 2>&5 3096 ac_status=$? 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3098 (exit $ac_status); }; }; then 3099 cross_compiling=no 3100 else 3101 if test "$cross_compiling" = maybe; then 3102 cross_compiling=yes 3103 else 3104 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3106{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 3107If you meant to cross compile, use \`--host'. 3108See \`config.log' for more details." >&5 3109$as_echo "$as_me: error: cannot run C compiled programs. 3110If you meant to cross compile, use \`--host'. 3111See \`config.log' for more details." >&2;} 3112 { (exit 1); exit 1; }; }; } 3113 fi 3114 fi 3115fi 3116{ $as_echo "$as_me:$LINENO: result: yes" >&5 3117$as_echo "yes" >&6; } 3118 3119rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3120ac_clean_files=$ac_clean_files_save 3121# Check that the compiler produces executables we can run. If not, either 3122# the compiler is broken, or we cross compile. 3123{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3124$as_echo_n "checking whether we are cross compiling... " >&6; } 3125{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 3126$as_echo "$cross_compiling" >&6; } 3127 3128{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 3129$as_echo_n "checking for suffix of executables... " >&6; } 3130if { (ac_try="$ac_link" 3131case "(($ac_try" in 3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3133 *) ac_try_echo=$ac_try;; 3134esac 3135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3136$as_echo "$ac_try_echo") >&5 3137 (eval "$ac_link") 2>&5 3138 ac_status=$? 3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3140 (exit $ac_status); }; then 3141 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3142# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3143# work properly (i.e., refer to `conftest.exe'), while it won't with 3144# `rm'. 3145for ac_file in conftest.exe conftest conftest.*; do 3146 test -f "$ac_file" || continue 3147 case $ac_file in 3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3149 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3150 break;; 3151 * ) break;; 3152 esac 3153done 3154else 3155 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3157{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3158See \`config.log' for more details." >&5 3159$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3160See \`config.log' for more details." >&2;} 3161 { (exit 1); exit 1; }; }; } 3162fi 3163 3164rm -f conftest$ac_cv_exeext 3165{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3166$as_echo "$ac_cv_exeext" >&6; } 3167 3168rm -f conftest.$ac_ext 3169EXEEXT=$ac_cv_exeext 3170ac_exeext=$EXEEXT 3171{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3172$as_echo_n "checking for suffix of object files... " >&6; } 3173if test "${ac_cv_objext+set}" = set; then 3174 $as_echo_n "(cached) " >&6 3175else 3176 cat >conftest.$ac_ext <<_ACEOF 3177/* confdefs.h. */ 3178_ACEOF 3179cat confdefs.h >>conftest.$ac_ext 3180cat >>conftest.$ac_ext <<_ACEOF 3181/* end confdefs.h. */ 3182 3183int 3184main () 3185{ 3186 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191rm -f conftest.o conftest.obj 3192if { (ac_try="$ac_compile" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3198$as_echo "$ac_try_echo") >&5 3199 (eval "$ac_compile") 2>&5 3200 ac_status=$? 3201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); }; then 3203 for ac_file in conftest.o conftest.obj conftest.*; do 3204 test -f "$ac_file" || continue; 3205 case $ac_file in 3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3208 break;; 3209 esac 3210done 3211else 3212 $as_echo "$as_me: failed program was:" >&5 3213sed 's/^/| /' conftest.$ac_ext >&5 3214 3215{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3217{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3218See \`config.log' for more details." >&5 3219$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3220See \`config.log' for more details." >&2;} 3221 { (exit 1); exit 1; }; }; } 3222fi 3223 3224rm -f conftest.$ac_cv_objext conftest.$ac_ext 3225fi 3226{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3227$as_echo "$ac_cv_objext" >&6; } 3228OBJEXT=$ac_cv_objext 3229ac_objext=$OBJEXT 3230{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3231$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3232if test "${ac_cv_c_compiler_gnu+set}" = set; then 3233 $as_echo_n "(cached) " >&6 3234else 3235 cat >conftest.$ac_ext <<_ACEOF 3236/* confdefs.h. */ 3237_ACEOF 3238cat confdefs.h >>conftest.$ac_ext 3239cat >>conftest.$ac_ext <<_ACEOF 3240/* end confdefs.h. */ 3241 3242int 3243main () 3244{ 3245#ifndef __GNUC__ 3246 choke me 3247#endif 3248 3249 ; 3250 return 0; 3251} 3252_ACEOF 3253rm -f conftest.$ac_objext 3254if { (ac_try="$ac_compile" 3255case "(($ac_try" in 3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3257 *) ac_try_echo=$ac_try;; 3258esac 3259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3260$as_echo "$ac_try_echo") >&5 3261 (eval "$ac_compile") 2>conftest.er1 3262 ac_status=$? 3263 grep -v '^ *+' conftest.er1 >conftest.err 3264 rm -f conftest.er1 3265 cat conftest.err >&5 3266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3267 (exit $ac_status); } && { 3268 test -z "$ac_c_werror_flag" || 3269 test ! -s conftest.err 3270 } && test -s conftest.$ac_objext; then 3271 ac_compiler_gnu=yes 3272else 3273 $as_echo "$as_me: failed program was:" >&5 3274sed 's/^/| /' conftest.$ac_ext >&5 3275 3276 ac_compiler_gnu=no 3277fi 3278 3279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3280ac_cv_c_compiler_gnu=$ac_compiler_gnu 3281 3282fi 3283{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3284$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3285if test $ac_compiler_gnu = yes; then 3286 GCC=yes 3287else 3288 GCC= 3289fi 3290ac_test_CFLAGS=${CFLAGS+set} 3291ac_save_CFLAGS=$CFLAGS 3292{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3293$as_echo_n "checking whether $CC accepts -g... " >&6; } 3294if test "${ac_cv_prog_cc_g+set}" = set; then 3295 $as_echo_n "(cached) " >&6 3296else 3297 ac_save_c_werror_flag=$ac_c_werror_flag 3298 ac_c_werror_flag=yes 3299 ac_cv_prog_cc_g=no 3300 CFLAGS="-g" 3301 cat >conftest.$ac_ext <<_ACEOF 3302/* confdefs.h. */ 3303_ACEOF 3304cat confdefs.h >>conftest.$ac_ext 3305cat >>conftest.$ac_ext <<_ACEOF 3306/* end confdefs.h. */ 3307 3308int 3309main () 3310{ 3311 3312 ; 3313 return 0; 3314} 3315_ACEOF 3316rm -f conftest.$ac_objext 3317if { (ac_try="$ac_compile" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3323$as_echo "$ac_try_echo") >&5 3324 (eval "$ac_compile") 2>conftest.er1 3325 ac_status=$? 3326 grep -v '^ *+' conftest.er1 >conftest.err 3327 rm -f conftest.er1 3328 cat conftest.err >&5 3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3330 (exit $ac_status); } && { 3331 test -z "$ac_c_werror_flag" || 3332 test ! -s conftest.err 3333 } && test -s conftest.$ac_objext; then 3334 ac_cv_prog_cc_g=yes 3335else 3336 $as_echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339 CFLAGS="" 3340 cat >conftest.$ac_ext <<_ACEOF 3341/* confdefs.h. */ 3342_ACEOF 3343cat confdefs.h >>conftest.$ac_ext 3344cat >>conftest.$ac_ext <<_ACEOF 3345/* end confdefs.h. */ 3346 3347int 3348main () 3349{ 3350 3351 ; 3352 return 0; 3353} 3354_ACEOF 3355rm -f conftest.$ac_objext 3356if { (ac_try="$ac_compile" 3357case "(($ac_try" in 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3359 *) ac_try_echo=$ac_try;; 3360esac 3361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3362$as_echo "$ac_try_echo") >&5 3363 (eval "$ac_compile") 2>conftest.er1 3364 ac_status=$? 3365 grep -v '^ *+' conftest.er1 >conftest.err 3366 rm -f conftest.er1 3367 cat conftest.err >&5 3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3369 (exit $ac_status); } && { 3370 test -z "$ac_c_werror_flag" || 3371 test ! -s conftest.err 3372 } && test -s conftest.$ac_objext; then 3373 : 3374else 3375 $as_echo "$as_me: failed program was:" >&5 3376sed 's/^/| /' conftest.$ac_ext >&5 3377 3378 ac_c_werror_flag=$ac_save_c_werror_flag 3379 CFLAGS="-g" 3380 cat >conftest.$ac_ext <<_ACEOF 3381/* confdefs.h. */ 3382_ACEOF 3383cat confdefs.h >>conftest.$ac_ext 3384cat >>conftest.$ac_ext <<_ACEOF 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395rm -f conftest.$ac_objext 3396if { (ac_try="$ac_compile" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3402$as_echo "$ac_try_echo") >&5 3403 (eval "$ac_compile") 2>conftest.er1 3404 ac_status=$? 3405 grep -v '^ *+' conftest.er1 >conftest.err 3406 rm -f conftest.er1 3407 cat conftest.err >&5 3408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3409 (exit $ac_status); } && { 3410 test -z "$ac_c_werror_flag" || 3411 test ! -s conftest.err 3412 } && test -s conftest.$ac_objext; then 3413 ac_cv_prog_cc_g=yes 3414else 3415 $as_echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 3419fi 3420 3421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3422fi 3423 3424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3425fi 3426 3427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3428 ac_c_werror_flag=$ac_save_c_werror_flag 3429fi 3430{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3431$as_echo "$ac_cv_prog_cc_g" >&6; } 3432if test "$ac_test_CFLAGS" = set; then 3433 CFLAGS=$ac_save_CFLAGS 3434elif test $ac_cv_prog_cc_g = yes; then 3435 if test "$GCC" = yes; then 3436 CFLAGS="-g -O2" 3437 else 3438 CFLAGS="-g" 3439 fi 3440else 3441 if test "$GCC" = yes; then 3442 CFLAGS="-O2" 3443 else 3444 CFLAGS= 3445 fi 3446fi 3447{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3448$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3449if test "${ac_cv_prog_cc_c89+set}" = set; then 3450 $as_echo_n "(cached) " >&6 3451else 3452 ac_cv_prog_cc_c89=no 3453ac_save_CC=$CC 3454cat >conftest.$ac_ext <<_ACEOF 3455/* confdefs.h. */ 3456_ACEOF 3457cat confdefs.h >>conftest.$ac_ext 3458cat >>conftest.$ac_ext <<_ACEOF 3459/* end confdefs.h. */ 3460#include <stdarg.h> 3461#include <stdio.h> 3462#include <sys/types.h> 3463#include <sys/stat.h> 3464/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3465struct buf { int x; }; 3466FILE * (*rcsopen) (struct buf *, struct stat *, int); 3467static char *e (p, i) 3468 char **p; 3469 int i; 3470{ 3471 return p[i]; 3472} 3473static char *f (char * (*g) (char **, int), char **p, ...) 3474{ 3475 char *s; 3476 va_list v; 3477 va_start (v,p); 3478 s = g (p, va_arg (v,int)); 3479 va_end (v); 3480 return s; 3481} 3482 3483/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3484 function prototypes and stuff, but not '\xHH' hex character constants. 3485 These don't provoke an error unfortunately, instead are silently treated 3486 as 'x'. The following induces an error, until -std is added to get 3487 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3488 array size at least. It's necessary to write '\x00'==0 to get something 3489 that's true only with -std. */ 3490int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3491 3492/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3493 inside strings and character constants. */ 3494#define FOO(x) 'x' 3495int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3496 3497int test (int i, double x); 3498struct s1 {int (*f) (int a);}; 3499struct s2 {int (*f) (double a);}; 3500int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3501int argc; 3502char **argv; 3503int 3504main () 3505{ 3506return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3512 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3513do 3514 CC="$ac_save_CC $ac_arg" 3515 rm -f conftest.$ac_objext 3516if { (ac_try="$ac_compile" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3522$as_echo "$ac_try_echo") >&5 3523 (eval "$ac_compile") 2>conftest.er1 3524 ac_status=$? 3525 grep -v '^ *+' conftest.er1 >conftest.err 3526 rm -f conftest.er1 3527 cat conftest.err >&5 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3529 (exit $ac_status); } && { 3530 test -z "$ac_c_werror_flag" || 3531 test ! -s conftest.err 3532 } && test -s conftest.$ac_objext; then 3533 ac_cv_prog_cc_c89=$ac_arg 3534else 3535 $as_echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538 3539fi 3540 3541rm -f core conftest.err conftest.$ac_objext 3542 test "x$ac_cv_prog_cc_c89" != "xno" && break 3543done 3544rm -f conftest.$ac_ext 3545CC=$ac_save_CC 3546 3547fi 3548# AC_CACHE_VAL 3549case "x$ac_cv_prog_cc_c89" in 3550 x) 3551 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3552$as_echo "none needed" >&6; } ;; 3553 xno) 3554 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3555$as_echo "unsupported" >&6; } ;; 3556 *) 3557 CC="$CC $ac_cv_prog_cc_c89" 3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3559$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3560esac 3561 3562 3563ac_ext=c 3564ac_cpp='$CPP $CPPFLAGS' 3565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3567ac_compiler_gnu=$ac_cv_c_compiler_gnu 3568DEPDIR="${am__leading_dot}deps" 3569 3570ac_config_commands="$ac_config_commands depfiles" 3571 3572 3573am_make=${MAKE-make} 3574cat > confinc << 'END' 3575am__doit: 3576 @echo this is the am__doit target 3577.PHONY: am__doit 3578END 3579# If we don't find an include directive, just comment out the code. 3580{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3581$as_echo_n "checking for style of include used by $am_make... " >&6; } 3582am__include="#" 3583am__quote= 3584_am_result=none 3585# First try GNU make style include. 3586echo "include confinc" > confmf 3587# Ignore all kinds of additional output from `make'. 3588case `$am_make -s -f confmf 2> /dev/null` in #( 3589*the\ am__doit\ target*) 3590 am__include=include 3591 am__quote= 3592 _am_result=GNU 3593 ;; 3594esac 3595# Now try BSD make style include. 3596if test "$am__include" = "#"; then 3597 echo '.include "confinc"' > confmf 3598 case `$am_make -s -f confmf 2> /dev/null` in #( 3599 *the\ am__doit\ target*) 3600 am__include=.include 3601 am__quote="\"" 3602 _am_result=BSD 3603 ;; 3604 esac 3605fi 3606 3607 3608{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3609$as_echo "$_am_result" >&6; } 3610rm -f confinc confmf 3611 3612# Check whether --enable-dependency-tracking was given. 3613if test "${enable_dependency_tracking+set}" = set; then 3614 enableval=$enable_dependency_tracking; 3615fi 3616 3617if test "x$enable_dependency_tracking" != xno; then 3618 am_depcomp="$ac_aux_dir/depcomp" 3619 AMDEPBACKSLASH='\' 3620fi 3621 if test "x$enable_dependency_tracking" != xno; then 3622 AMDEP_TRUE= 3623 AMDEP_FALSE='#' 3624else 3625 AMDEP_TRUE='#' 3626 AMDEP_FALSE= 3627fi 3628 3629 3630 3631depcc="$CC" am_compiler_list= 3632 3633{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3634$as_echo_n "checking dependency style of $depcc... " >&6; } 3635if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3639 # We make a subdir and do the tests there. Otherwise we can end up 3640 # making bogus files that we don't know about and never remove. For 3641 # instance it was reported that on HP-UX the gcc test will end up 3642 # making a dummy file named `D' -- because `-MD' means `put the output 3643 # in D'. 3644 mkdir conftest.dir 3645 # Copy depcomp to subdir because otherwise we won't find it if we're 3646 # using a relative directory. 3647 cp "$am_depcomp" conftest.dir 3648 cd conftest.dir 3649 # We will build objects and dependencies in a subdirectory because 3650 # it helps to detect inapplicable dependency modes. For instance 3651 # both Tru64's cc and ICC support -MD to output dependencies as a 3652 # side effect of compilation, but ICC will put the dependencies in 3653 # the current directory while Tru64 will put them in the object 3654 # directory. 3655 mkdir sub 3656 3657 am_cv_CC_dependencies_compiler_type=none 3658 if test "$am_compiler_list" = ""; then 3659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3660 fi 3661 am__universal=false 3662 case " $depcc " in #( 3663 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3664 esac 3665 3666 for depmode in $am_compiler_list; do 3667 # Setup a source with many dependencies, because some compilers 3668 # like to wrap large dependency lists on column 80 (with \), and 3669 # we should not choose a depcomp mode which is confused by this. 3670 # 3671 # We need to recreate these files for each test, as the compiler may 3672 # overwrite some of them when testing with obscure command lines. 3673 # This happens at least with the AIX C compiler. 3674 : > sub/conftest.c 3675 for i in 1 2 3 4 5 6; do 3676 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3678 # Solaris 8's {/usr,}/bin/sh. 3679 touch sub/conftst$i.h 3680 done 3681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3682 3683 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3684 # mode. It turns out that the SunPro C++ compiler does not properly 3685 # handle `-M -o', and we need to detect this. Also, some Intel 3686 # versions had trouble with output in subdirs 3687 am__obj=sub/conftest.${OBJEXT-o} 3688 am__minus_obj="-o $am__obj" 3689 case $depmode in 3690 gcc) 3691 # This depmode causes a compiler race in universal mode. 3692 test "$am__universal" = false || continue 3693 ;; 3694 nosideeffect) 3695 # after this tag, mechanisms are not by side-effect, so they'll 3696 # only be used when explicitly requested 3697 if test "x$enable_dependency_tracking" = xyes; then 3698 continue 3699 else 3700 break 3701 fi 3702 ;; 3703 msvisualcpp | msvcmsys) 3704 # This compiler won't grok `-c -o', but also, the minuso test has 3705 # not run yet. These depmodes are late enough in the game, and 3706 # so weak that their functioning should not be impacted. 3707 am__obj=conftest.${OBJEXT-o} 3708 am__minus_obj= 3709 ;; 3710 none) break ;; 3711 esac 3712 if depmode=$depmode \ 3713 source=sub/conftest.c object=$am__obj \ 3714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3716 >/dev/null 2>conftest.err && 3717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3721 # icc doesn't choke on unknown options, it will just issue warnings 3722 # or remarks (even with -Werror). So we grep stderr for any message 3723 # that says an option was ignored or not supported. 3724 # When given -MP, icc 7.0 and 7.1 complain thusly: 3725 # icc: Command line warning: ignoring option '-M'; no argument required 3726 # The diagnosis changed in icc 8.0: 3727 # icc: Command line remark: option '-MP' not supported 3728 if (grep 'ignoring option' conftest.err || 3729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3730 am_cv_CC_dependencies_compiler_type=$depmode 3731 break 3732 fi 3733 fi 3734 done 3735 3736 cd .. 3737 rm -rf conftest.dir 3738else 3739 am_cv_CC_dependencies_compiler_type=none 3740fi 3741 3742fi 3743{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3744$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3745CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3746 3747 if 3748 test "x$enable_dependency_tracking" != xno \ 3749 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3750 am__fastdepCC_TRUE= 3751 am__fastdepCC_FALSE='#' 3752else 3753 am__fastdepCC_TRUE='#' 3754 am__fastdepCC_FALSE= 3755fi 3756 3757 3758if test -n "$ac_tool_prefix"; then 3759 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3760set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3761{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3762$as_echo_n "checking for $ac_word... " >&6; } 3763if test "${ac_cv_prog_RANLIB+set}" = set; then 3764 $as_echo_n "(cached) " >&6 3765else 3766 if test -n "$RANLIB"; then 3767 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3768else 3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770for as_dir in $PATH 3771do 3772 IFS=$as_save_IFS 3773 test -z "$as_dir" && as_dir=. 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3776 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3777 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3778 break 2 3779 fi 3780done 3781done 3782IFS=$as_save_IFS 3783 3784fi 3785fi 3786RANLIB=$ac_cv_prog_RANLIB 3787if test -n "$RANLIB"; then 3788 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 3789$as_echo "$RANLIB" >&6; } 3790else 3791 { $as_echo "$as_me:$LINENO: result: no" >&5 3792$as_echo "no" >&6; } 3793fi 3794 3795 3796fi 3797if test -z "$ac_cv_prog_RANLIB"; then 3798 ac_ct_RANLIB=$RANLIB 3799 # Extract the first word of "ranlib", so it can be a program name with args. 3800set dummy ranlib; ac_word=$2 3801{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3802$as_echo_n "checking for $ac_word... " >&6; } 3803if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3804 $as_echo_n "(cached) " >&6 3805else 3806 if test -n "$ac_ct_RANLIB"; then 3807 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3808else 3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3810for as_dir in $PATH 3811do 3812 IFS=$as_save_IFS 3813 test -z "$as_dir" && as_dir=. 3814 for ac_exec_ext in '' $ac_executable_extensions; do 3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3816 ac_cv_prog_ac_ct_RANLIB="ranlib" 3817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3818 break 2 3819 fi 3820done 3821done 3822IFS=$as_save_IFS 3823 3824fi 3825fi 3826ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3827if test -n "$ac_ct_RANLIB"; then 3828 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3829$as_echo "$ac_ct_RANLIB" >&6; } 3830else 3831 { $as_echo "$as_me:$LINENO: result: no" >&5 3832$as_echo "no" >&6; } 3833fi 3834 3835 if test "x$ac_ct_RANLIB" = x; then 3836 RANLIB=":" 3837 else 3838 case $cross_compiling:$ac_tool_warned in 3839yes:) 3840{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3842ac_tool_warned=yes ;; 3843esac 3844 RANLIB=$ac_ct_RANLIB 3845 fi 3846else 3847 RANLIB="$ac_cv_prog_RANLIB" 3848fi 3849 3850{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 3851$as_echo_n "checking whether ln -s works... " >&6; } 3852LN_S=$as_ln_s 3853if test "$LN_S" = "ln -s"; then 3854 { $as_echo "$as_me:$LINENO: result: yes" >&5 3855$as_echo "yes" >&6; } 3856else 3857 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3858$as_echo "no, using $LN_S" >&6; } 3859fi 3860 3861case `pwd` in 3862 *\ * | *\ *) 3863 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3864$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3865esac 3866 3867 3868 3869macro_version='2.2.6b' 3870macro_revision='1.3017' 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884ltmain="$ac_aux_dir/ltmain.sh" 3885 3886{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3887$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3888if test "${ac_cv_path_SED+set}" = set; then 3889 $as_echo_n "(cached) " >&6 3890else 3891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3892 for ac_i in 1 2 3 4 5 6 7; do 3893 ac_script="$ac_script$as_nl$ac_script" 3894 done 3895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3896 $as_unset ac_script || ac_script= 3897 if test -z "$SED"; then 3898 ac_path_SED_found=false 3899 # Loop through the user's path and test for each of PROGNAME-LIST 3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3901for as_dir in $PATH 3902do 3903 IFS=$as_save_IFS 3904 test -z "$as_dir" && as_dir=. 3905 for ac_prog in sed gsed; do 3906 for ac_exec_ext in '' $ac_executable_extensions; do 3907 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3908 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3909# Check for GNU ac_path_SED and select it if it is found. 3910 # Check for GNU $ac_path_SED 3911case `"$ac_path_SED" --version 2>&1` in 3912*GNU*) 3913 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3914*) 3915 ac_count=0 3916 $as_echo_n 0123456789 >"conftest.in" 3917 while : 3918 do 3919 cat "conftest.in" "conftest.in" >"conftest.tmp" 3920 mv "conftest.tmp" "conftest.in" 3921 cp "conftest.in" "conftest.nl" 3922 $as_echo '' >> "conftest.nl" 3923 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3925 ac_count=`expr $ac_count + 1` 3926 if test $ac_count -gt ${ac_path_SED_max-0}; then 3927 # Best one so far, save it but keep looking for a better one 3928 ac_cv_path_SED="$ac_path_SED" 3929 ac_path_SED_max=$ac_count 3930 fi 3931 # 10*(2^10) chars as input seems more than enough 3932 test $ac_count -gt 10 && break 3933 done 3934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3935esac 3936 3937 $ac_path_SED_found && break 3 3938 done 3939 done 3940done 3941IFS=$as_save_IFS 3942 if test -z "$ac_cv_path_SED"; then 3943 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 3944$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} 3945 { (exit 1); exit 1; }; } 3946 fi 3947else 3948 ac_cv_path_SED=$SED 3949fi 3950 3951fi 3952{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 3953$as_echo "$ac_cv_path_SED" >&6; } 3954 SED="$ac_cv_path_SED" 3955 rm -f conftest.sed 3956 3957test -z "$SED" && SED=sed 3958Xsed="$SED -e 1s/^X//" 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3971$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3972if test "${ac_cv_path_GREP+set}" = set; then 3973 $as_echo_n "(cached) " >&6 3974else 3975 if test -z "$GREP"; then 3976 ac_path_GREP_found=false 3977 # Loop through the user's path and test for each of PROGNAME-LIST 3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3979for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3980do 3981 IFS=$as_save_IFS 3982 test -z "$as_dir" && as_dir=. 3983 for ac_prog in grep ggrep; do 3984 for ac_exec_ext in '' $ac_executable_extensions; do 3985 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3986 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3987# Check for GNU ac_path_GREP and select it if it is found. 3988 # Check for GNU $ac_path_GREP 3989case `"$ac_path_GREP" --version 2>&1` in 3990*GNU*) 3991 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3992*) 3993 ac_count=0 3994 $as_echo_n 0123456789 >"conftest.in" 3995 while : 3996 do 3997 cat "conftest.in" "conftest.in" >"conftest.tmp" 3998 mv "conftest.tmp" "conftest.in" 3999 cp "conftest.in" "conftest.nl" 4000 $as_echo 'GREP' >> "conftest.nl" 4001 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4003 ac_count=`expr $ac_count + 1` 4004 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4005 # Best one so far, save it but keep looking for a better one 4006 ac_cv_path_GREP="$ac_path_GREP" 4007 ac_path_GREP_max=$ac_count 4008 fi 4009 # 10*(2^10) chars as input seems more than enough 4010 test $ac_count -gt 10 && break 4011 done 4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4013esac 4014 4015 $ac_path_GREP_found && break 3 4016 done 4017 done 4018done 4019IFS=$as_save_IFS 4020 if test -z "$ac_cv_path_GREP"; then 4021 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4022$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4023 { (exit 1); exit 1; }; } 4024 fi 4025else 4026 ac_cv_path_GREP=$GREP 4027fi 4028 4029fi 4030{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4031$as_echo "$ac_cv_path_GREP" >&6; } 4032 GREP="$ac_cv_path_GREP" 4033 4034 4035{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4036$as_echo_n "checking for egrep... " >&6; } 4037if test "${ac_cv_path_EGREP+set}" = set; then 4038 $as_echo_n "(cached) " >&6 4039else 4040 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4041 then ac_cv_path_EGREP="$GREP -E" 4042 else 4043 if test -z "$EGREP"; then 4044 ac_path_EGREP_found=false 4045 # Loop through the user's path and test for each of PROGNAME-LIST 4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4047for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4048do 4049 IFS=$as_save_IFS 4050 test -z "$as_dir" && as_dir=. 4051 for ac_prog in egrep; do 4052 for ac_exec_ext in '' $ac_executable_extensions; do 4053 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4054 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4055# Check for GNU ac_path_EGREP and select it if it is found. 4056 # Check for GNU $ac_path_EGREP 4057case `"$ac_path_EGREP" --version 2>&1` in 4058*GNU*) 4059 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4060*) 4061 ac_count=0 4062 $as_echo_n 0123456789 >"conftest.in" 4063 while : 4064 do 4065 cat "conftest.in" "conftest.in" >"conftest.tmp" 4066 mv "conftest.tmp" "conftest.in" 4067 cp "conftest.in" "conftest.nl" 4068 $as_echo 'EGREP' >> "conftest.nl" 4069 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4071 ac_count=`expr $ac_count + 1` 4072 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4073 # Best one so far, save it but keep looking for a better one 4074 ac_cv_path_EGREP="$ac_path_EGREP" 4075 ac_path_EGREP_max=$ac_count 4076 fi 4077 # 10*(2^10) chars as input seems more than enough 4078 test $ac_count -gt 10 && break 4079 done 4080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4081esac 4082 4083 $ac_path_EGREP_found && break 3 4084 done 4085 done 4086done 4087IFS=$as_save_IFS 4088 if test -z "$ac_cv_path_EGREP"; then 4089 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4090$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4091 { (exit 1); exit 1; }; } 4092 fi 4093else 4094 ac_cv_path_EGREP=$EGREP 4095fi 4096 4097 fi 4098fi 4099{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4100$as_echo "$ac_cv_path_EGREP" >&6; } 4101 EGREP="$ac_cv_path_EGREP" 4102 4103 4104{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 4105$as_echo_n "checking for fgrep... " >&6; } 4106if test "${ac_cv_path_FGREP+set}" = set; then 4107 $as_echo_n "(cached) " >&6 4108else 4109 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4110 then ac_cv_path_FGREP="$GREP -F" 4111 else 4112 if test -z "$FGREP"; then 4113 ac_path_FGREP_found=false 4114 # Loop through the user's path and test for each of PROGNAME-LIST 4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4116for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4117do 4118 IFS=$as_save_IFS 4119 test -z "$as_dir" && as_dir=. 4120 for ac_prog in fgrep; do 4121 for ac_exec_ext in '' $ac_executable_extensions; do 4122 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4123 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4124# Check for GNU ac_path_FGREP and select it if it is found. 4125 # Check for GNU $ac_path_FGREP 4126case `"$ac_path_FGREP" --version 2>&1` in 4127*GNU*) 4128 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4129*) 4130 ac_count=0 4131 $as_echo_n 0123456789 >"conftest.in" 4132 while : 4133 do 4134 cat "conftest.in" "conftest.in" >"conftest.tmp" 4135 mv "conftest.tmp" "conftest.in" 4136 cp "conftest.in" "conftest.nl" 4137 $as_echo 'FGREP' >> "conftest.nl" 4138 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4140 ac_count=`expr $ac_count + 1` 4141 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4142 # Best one so far, save it but keep looking for a better one 4143 ac_cv_path_FGREP="$ac_path_FGREP" 4144 ac_path_FGREP_max=$ac_count 4145 fi 4146 # 10*(2^10) chars as input seems more than enough 4147 test $ac_count -gt 10 && break 4148 done 4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4150esac 4151 4152 $ac_path_FGREP_found && break 3 4153 done 4154 done 4155done 4156IFS=$as_save_IFS 4157 if test -z "$ac_cv_path_FGREP"; then 4158 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4159$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4160 { (exit 1); exit 1; }; } 4161 fi 4162else 4163 ac_cv_path_FGREP=$FGREP 4164fi 4165 4166 fi 4167fi 4168{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 4169$as_echo "$ac_cv_path_FGREP" >&6; } 4170 FGREP="$ac_cv_path_FGREP" 4171 4172 4173test -z "$GREP" && GREP=grep 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193# Check whether --with-gnu-ld was given. 4194if test "${with_gnu_ld+set}" = set; then 4195 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4196else 4197 with_gnu_ld=no 4198fi 4199 4200ac_prog=ld 4201if test "$GCC" = yes; then 4202 # Check if gcc -print-prog-name=ld gives a path. 4203 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4204$as_echo_n "checking for ld used by $CC... " >&6; } 4205 case $host in 4206 *-*-mingw*) 4207 # gcc leaves a trailing carriage return which upsets mingw 4208 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4209 *) 4210 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4211 esac 4212 case $ac_prog in 4213 # Accept absolute paths. 4214 [\\/]* | ?:[\\/]*) 4215 re_direlt='/[^/][^/]*/\.\./' 4216 # Canonicalize the pathname of ld 4217 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4218 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4219 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4220 done 4221 test -z "$LD" && LD="$ac_prog" 4222 ;; 4223 "") 4224 # If it fails, then pretend we aren't using GCC. 4225 ac_prog=ld 4226 ;; 4227 *) 4228 # If it is relative, then search for the first ld in PATH. 4229 with_gnu_ld=unknown 4230 ;; 4231 esac 4232elif test "$with_gnu_ld" = yes; then 4233 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 4234$as_echo_n "checking for GNU ld... " >&6; } 4235else 4236 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4237$as_echo_n "checking for non-GNU ld... " >&6; } 4238fi 4239if test "${lt_cv_path_LD+set}" = set; then 4240 $as_echo_n "(cached) " >&6 4241else 4242 if test -z "$LD"; then 4243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4244 for ac_dir in $PATH; do 4245 IFS="$lt_save_ifs" 4246 test -z "$ac_dir" && ac_dir=. 4247 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4248 lt_cv_path_LD="$ac_dir/$ac_prog" 4249 # Check to see if the program is GNU ld. I'd rather use --version, 4250 # but apparently some variants of GNU ld only accept -v. 4251 # Break only if it was the GNU/non-GNU ld that we prefer. 4252 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4253 *GNU* | *'with BFD'*) 4254 test "$with_gnu_ld" != no && break 4255 ;; 4256 *) 4257 test "$with_gnu_ld" != yes && break 4258 ;; 4259 esac 4260 fi 4261 done 4262 IFS="$lt_save_ifs" 4263else 4264 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4265fi 4266fi 4267 4268LD="$lt_cv_path_LD" 4269if test -n "$LD"; then 4270 { $as_echo "$as_me:$LINENO: result: $LD" >&5 4271$as_echo "$LD" >&6; } 4272else 4273 { $as_echo "$as_me:$LINENO: result: no" >&5 4274$as_echo "no" >&6; } 4275fi 4276test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4277$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4278 { (exit 1); exit 1; }; } 4279{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4280$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4281if test "${lt_cv_prog_gnu_ld+set}" = set; then 4282 $as_echo_n "(cached) " >&6 4283else 4284 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4285case `$LD -v 2>&1 </dev/null` in 4286*GNU* | *'with BFD'*) 4287 lt_cv_prog_gnu_ld=yes 4288 ;; 4289*) 4290 lt_cv_prog_gnu_ld=no 4291 ;; 4292esac 4293fi 4294{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4295$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4296with_gnu_ld=$lt_cv_prog_gnu_ld 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4307$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4308if test "${lt_cv_path_NM+set}" = set; then 4309 $as_echo_n "(cached) " >&6 4310else 4311 if test -n "$NM"; then 4312 # Let the user override the test. 4313 lt_cv_path_NM="$NM" 4314else 4315 lt_nm_to_check="${ac_tool_prefix}nm" 4316 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4317 lt_nm_to_check="$lt_nm_to_check nm" 4318 fi 4319 for lt_tmp_nm in $lt_nm_to_check; do 4320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4321 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4322 IFS="$lt_save_ifs" 4323 test -z "$ac_dir" && ac_dir=. 4324 tmp_nm="$ac_dir/$lt_tmp_nm" 4325 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4326 # Check to see if the nm accepts a BSD-compat flag. 4327 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4328 # nm: unknown option "B" ignored 4329 # Tru64's nm complains that /dev/null is an invalid object file 4330 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4331 */dev/null* | *'Invalid file or object type'*) 4332 lt_cv_path_NM="$tmp_nm -B" 4333 break 4334 ;; 4335 *) 4336 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4337 */dev/null*) 4338 lt_cv_path_NM="$tmp_nm -p" 4339 break 4340 ;; 4341 *) 4342 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4343 continue # so that we can try to find one that supports BSD flags 4344 ;; 4345 esac 4346 ;; 4347 esac 4348 fi 4349 done 4350 IFS="$lt_save_ifs" 4351 done 4352 : ${lt_cv_path_NM=no} 4353fi 4354fi 4355{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4356$as_echo "$lt_cv_path_NM" >&6; } 4357if test "$lt_cv_path_NM" != "no"; then 4358 NM="$lt_cv_path_NM" 4359else 4360 # Didn't find any BSD compatible name lister, look for dumpbin. 4361 if test -n "$ac_tool_prefix"; then 4362 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4363 do 4364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4365set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4367$as_echo_n "checking for $ac_word... " >&6; } 4368if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4369 $as_echo_n "(cached) " >&6 4370else 4371 if test -n "$DUMPBIN"; then 4372 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4373else 4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4375for as_dir in $PATH 4376do 4377 IFS=$as_save_IFS 4378 test -z "$as_dir" && as_dir=. 4379 for ac_exec_ext in '' $ac_executable_extensions; do 4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4381 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4383 break 2 4384 fi 4385done 4386done 4387IFS=$as_save_IFS 4388 4389fi 4390fi 4391DUMPBIN=$ac_cv_prog_DUMPBIN 4392if test -n "$DUMPBIN"; then 4393 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4394$as_echo "$DUMPBIN" >&6; } 4395else 4396 { $as_echo "$as_me:$LINENO: result: no" >&5 4397$as_echo "no" >&6; } 4398fi 4399 4400 4401 test -n "$DUMPBIN" && break 4402 done 4403fi 4404if test -z "$DUMPBIN"; then 4405 ac_ct_DUMPBIN=$DUMPBIN 4406 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4407do 4408 # Extract the first word of "$ac_prog", so it can be a program name with args. 4409set dummy $ac_prog; ac_word=$2 4410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4411$as_echo_n "checking for $ac_word... " >&6; } 4412if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4413 $as_echo_n "(cached) " >&6 4414else 4415 if test -n "$ac_ct_DUMPBIN"; then 4416 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4417else 4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4419for as_dir in $PATH 4420do 4421 IFS=$as_save_IFS 4422 test -z "$as_dir" && as_dir=. 4423 for ac_exec_ext in '' $ac_executable_extensions; do 4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4425 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4427 break 2 4428 fi 4429done 4430done 4431IFS=$as_save_IFS 4432 4433fi 4434fi 4435ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4436if test -n "$ac_ct_DUMPBIN"; then 4437 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4438$as_echo "$ac_ct_DUMPBIN" >&6; } 4439else 4440 { $as_echo "$as_me:$LINENO: result: no" >&5 4441$as_echo "no" >&6; } 4442fi 4443 4444 4445 test -n "$ac_ct_DUMPBIN" && break 4446done 4447 4448 if test "x$ac_ct_DUMPBIN" = x; then 4449 DUMPBIN=":" 4450 else 4451 case $cross_compiling:$ac_tool_warned in 4452yes:) 4453{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4455ac_tool_warned=yes ;; 4456esac 4457 DUMPBIN=$ac_ct_DUMPBIN 4458 fi 4459fi 4460 4461 4462 if test "$DUMPBIN" != ":"; then 4463 NM="$DUMPBIN" 4464 fi 4465fi 4466test -z "$NM" && NM=nm 4467 4468 4469 4470 4471 4472 4473{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4474$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4475if test "${lt_cv_nm_interface+set}" = set; then 4476 $as_echo_n "(cached) " >&6 4477else 4478 lt_cv_nm_interface="BSD nm" 4479 echo "int some_variable = 0;" > conftest.$ac_ext 4480 (eval echo "\"\$as_me:4480: $ac_compile\"" >&5) 4481 (eval "$ac_compile" 2>conftest.err) 4482 cat conftest.err >&5 4483 (eval echo "\"\$as_me:4483: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4484 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4485 cat conftest.err >&5 4486 (eval echo "\"\$as_me:4486: output\"" >&5) 4487 cat conftest.out >&5 4488 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4489 lt_cv_nm_interface="MS dumpbin" 4490 fi 4491 rm -f conftest* 4492fi 4493{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4494$as_echo "$lt_cv_nm_interface" >&6; } 4495 4496# find the maximum length of command line arguments 4497{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4498$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4499if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4500 $as_echo_n "(cached) " >&6 4501else 4502 i=0 4503 teststring="ABCD" 4504 4505 case $build_os in 4506 msdosdjgpp*) 4507 # On DJGPP, this test can blow up pretty badly due to problems in libc 4508 # (any single argument exceeding 2000 bytes causes a buffer overrun 4509 # during glob expansion). Even if it were fixed, the result of this 4510 # check would be larger than it should be. 4511 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4512 ;; 4513 4514 gnu*) 4515 # Under GNU Hurd, this test is not required because there is 4516 # no limit to the length of command line arguments. 4517 # Libtool will interpret -1 as no limit whatsoever 4518 lt_cv_sys_max_cmd_len=-1; 4519 ;; 4520 4521 cygwin* | mingw* | cegcc*) 4522 # On Win9x/ME, this test blows up -- it succeeds, but takes 4523 # about 5 minutes as the teststring grows exponentially. 4524 # Worse, since 9x/ME are not pre-emptively multitasking, 4525 # you end up with a "frozen" computer, even though with patience 4526 # the test eventually succeeds (with a max line length of 256k). 4527 # Instead, let's just punt: use the minimum linelength reported by 4528 # all of the supported platforms: 8192 (on NT/2K/XP). 4529 lt_cv_sys_max_cmd_len=8192; 4530 ;; 4531 4532 amigaos*) 4533 # On AmigaOS with pdksh, this test takes hours, literally. 4534 # So we just punt and use a minimum line length of 8192. 4535 lt_cv_sys_max_cmd_len=8192; 4536 ;; 4537 4538 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4539 # This has been around since 386BSD, at least. Likely further. 4540 if test -x /sbin/sysctl; then 4541 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4542 elif test -x /usr/sbin/sysctl; then 4543 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4544 else 4545 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4546 fi 4547 # And add a safety zone 4548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4550 ;; 4551 4552 interix*) 4553 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4554 lt_cv_sys_max_cmd_len=196608 4555 ;; 4556 4557 osf*) 4558 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4559 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4560 # nice to cause kernel panics so lets avoid the loop below. 4561 # First set a reasonable default. 4562 lt_cv_sys_max_cmd_len=16384 4563 # 4564 if test -x /sbin/sysconfig; then 4565 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4566 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4567 esac 4568 fi 4569 ;; 4570 sco3.2v5*) 4571 lt_cv_sys_max_cmd_len=102400 4572 ;; 4573 sysv5* | sco5v6* | sysv4.2uw2*) 4574 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4575 if test -n "$kargmax"; then 4576 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4577 else 4578 lt_cv_sys_max_cmd_len=32768 4579 fi 4580 ;; 4581 *) 4582 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4583 if test -n "$lt_cv_sys_max_cmd_len"; then 4584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4586 else 4587 # Make teststring a little bigger before we do anything with it. 4588 # a 1K string should be a reasonable start. 4589 for i in 1 2 3 4 5 6 7 8 ; do 4590 teststring=$teststring$teststring 4591 done 4592 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4593 # If test is not a shell built-in, we'll probably end up computing a 4594 # maximum length that is only half of the actual maximum length, but 4595 # we can't tell. 4596 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4597 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4598 test $i != 17 # 1/2 MB should be enough 4599 do 4600 i=`expr $i + 1` 4601 teststring=$teststring$teststring 4602 done 4603 # Only check the string length outside the loop. 4604 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4605 teststring= 4606 # Add a significant safety factor because C++ compilers can tack on 4607 # massive amounts of additional arguments before passing them to the 4608 # linker. It appears as though 1/2 is a usable value. 4609 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4610 fi 4611 ;; 4612 esac 4613 4614fi 4615 4616if test -n $lt_cv_sys_max_cmd_len ; then 4617 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4618$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4619else 4620 { $as_echo "$as_me:$LINENO: result: none" >&5 4621$as_echo "none" >&6; } 4622fi 4623max_cmd_len=$lt_cv_sys_max_cmd_len 4624 4625 4626 4627 4628 4629 4630: ${CP="cp -f"} 4631: ${MV="mv -f"} 4632: ${RM="rm -f"} 4633 4634{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4635$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4636# Try some XSI features 4637xsi_shell=no 4638( _lt_dummy="a/b/c" 4639 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4640 = c,a/b,, \ 4641 && eval 'test $(( 1 + 1 )) -eq 2 \ 4642 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4643 && xsi_shell=yes 4644{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 4645$as_echo "$xsi_shell" >&6; } 4646 4647 4648{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4649$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4650lt_shell_append=no 4651( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4652 >/dev/null 2>&1 \ 4653 && lt_shell_append=yes 4654{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4655$as_echo "$lt_shell_append" >&6; } 4656 4657 4658if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4659 lt_unset=unset 4660else 4661 lt_unset=false 4662fi 4663 4664 4665 4666 4667 4668# test EBCDIC or ASCII 4669case `echo X|tr X '\101'` in 4670 A) # ASCII based system 4671 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4672 lt_SP2NL='tr \040 \012' 4673 lt_NL2SP='tr \015\012 \040\040' 4674 ;; 4675 *) # EBCDIC based system 4676 lt_SP2NL='tr \100 \n' 4677 lt_NL2SP='tr \r\n \100\100' 4678 ;; 4679esac 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4690$as_echo_n "checking for $LD option to reload object files... " >&6; } 4691if test "${lt_cv_ld_reload_flag+set}" = set; then 4692 $as_echo_n "(cached) " >&6 4693else 4694 lt_cv_ld_reload_flag='-r' 4695fi 4696{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4697$as_echo "$lt_cv_ld_reload_flag" >&6; } 4698reload_flag=$lt_cv_ld_reload_flag 4699case $reload_flag in 4700"" | " "*) ;; 4701*) reload_flag=" $reload_flag" ;; 4702esac 4703reload_cmds='$LD$reload_flag -o $output$reload_objs' 4704case $host_os in 4705 darwin*) 4706 if test "$GCC" = yes; then 4707 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4708 else 4709 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4710 fi 4711 ;; 4712esac 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722if test -n "$ac_tool_prefix"; then 4723 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4724set dummy ${ac_tool_prefix}objdump; ac_word=$2 4725{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4726$as_echo_n "checking for $ac_word... " >&6; } 4727if test "${ac_cv_prog_OBJDUMP+set}" = set; then 4728 $as_echo_n "(cached) " >&6 4729else 4730 if test -n "$OBJDUMP"; then 4731 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4732else 4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734for as_dir in $PATH 4735do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4740 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744done 4745done 4746IFS=$as_save_IFS 4747 4748fi 4749fi 4750OBJDUMP=$ac_cv_prog_OBJDUMP 4751if test -n "$OBJDUMP"; then 4752 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 4753$as_echo "$OBJDUMP" >&6; } 4754else 4755 { $as_echo "$as_me:$LINENO: result: no" >&5 4756$as_echo "no" >&6; } 4757fi 4758 4759 4760fi 4761if test -z "$ac_cv_prog_OBJDUMP"; then 4762 ac_ct_OBJDUMP=$OBJDUMP 4763 # Extract the first word of "objdump", so it can be a program name with args. 4764set dummy objdump; ac_word=$2 4765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4766$as_echo_n "checking for $ac_word... " >&6; } 4767if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then 4768 $as_echo_n "(cached) " >&6 4769else 4770 if test -n "$ac_ct_OBJDUMP"; then 4771 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4772else 4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4774for as_dir in $PATH 4775do 4776 IFS=$as_save_IFS 4777 test -z "$as_dir" && as_dir=. 4778 for ac_exec_ext in '' $ac_executable_extensions; do 4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4780 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4782 break 2 4783 fi 4784done 4785done 4786IFS=$as_save_IFS 4787 4788fi 4789fi 4790ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4791if test -n "$ac_ct_OBJDUMP"; then 4792 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 4793$as_echo "$ac_ct_OBJDUMP" >&6; } 4794else 4795 { $as_echo "$as_me:$LINENO: result: no" >&5 4796$as_echo "no" >&6; } 4797fi 4798 4799 if test "x$ac_ct_OBJDUMP" = x; then 4800 OBJDUMP="false" 4801 else 4802 case $cross_compiling:$ac_tool_warned in 4803yes:) 4804{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4806ac_tool_warned=yes ;; 4807esac 4808 OBJDUMP=$ac_ct_OBJDUMP 4809 fi 4810else 4811 OBJDUMP="$ac_cv_prog_OBJDUMP" 4812fi 4813 4814test -z "$OBJDUMP" && OBJDUMP=objdump 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4825$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4826if test "${lt_cv_deplibs_check_method+set}" = set; then 4827 $as_echo_n "(cached) " >&6 4828else 4829 lt_cv_file_magic_cmd='$MAGIC_CMD' 4830lt_cv_file_magic_test_file= 4831lt_cv_deplibs_check_method='unknown' 4832# Need to set the preceding variable on all platforms that support 4833# interlibrary dependencies. 4834# 'none' -- dependencies not supported. 4835# `unknown' -- same as none, but documents that we really don't know. 4836# 'pass_all' -- all dependencies passed with no checks. 4837# 'test_compile' -- check by making test program. 4838# 'file_magic [[regex]]' -- check by looking for files in library path 4839# which responds to the $file_magic_cmd with a given extended regex. 4840# If you have `file' or equivalent on your system and you're not sure 4841# whether `pass_all' will *always* work, you probably want this one. 4842 4843case $host_os in 4844aix[4-9]*) 4845 lt_cv_deplibs_check_method=pass_all 4846 ;; 4847 4848beos*) 4849 lt_cv_deplibs_check_method=pass_all 4850 ;; 4851 4852bsdi[45]*) 4853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4854 lt_cv_file_magic_cmd='/usr/bin/file -L' 4855 lt_cv_file_magic_test_file=/shlib/libc.so 4856 ;; 4857 4858cygwin*) 4859 # func_win32_libid is a shell function defined in ltmain.sh 4860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4861 lt_cv_file_magic_cmd='func_win32_libid' 4862 ;; 4863 4864mingw* | pw32*) 4865 # Base MSYS/MinGW do not provide the 'file' command needed by 4866 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4867 # unless we find 'file', for example because we are cross-compiling. 4868 if ( file / ) >/dev/null 2>&1; then 4869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4870 lt_cv_file_magic_cmd='func_win32_libid' 4871 else 4872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4873 lt_cv_file_magic_cmd='$OBJDUMP -f' 4874 fi 4875 ;; 4876 4877cegcc) 4878 # use the weaker test based on 'objdump'. See mingw*. 4879 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4880 lt_cv_file_magic_cmd='$OBJDUMP -f' 4881 ;; 4882 4883darwin* | rhapsody*) 4884 lt_cv_deplibs_check_method=pass_all 4885 ;; 4886 4887freebsd* | dragonfly*) 4888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4889 case $host_cpu in 4890 i*86 ) 4891 # Not sure whether the presence of OpenBSD here was a mistake. 4892 # Let's accept both of them until this is cleared up. 4893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4894 lt_cv_file_magic_cmd=/usr/bin/file 4895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4896 ;; 4897 esac 4898 else 4899 lt_cv_deplibs_check_method=pass_all 4900 fi 4901 ;; 4902 4903gnu*) 4904 lt_cv_deplibs_check_method=pass_all 4905 ;; 4906 4907hpux10.20* | hpux11*) 4908 lt_cv_file_magic_cmd=/usr/bin/file 4909 case $host_cpu in 4910 ia64*) 4911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4913 ;; 4914 hppa*64*) 4915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 4916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4917 ;; 4918 *) 4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4920 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4921 ;; 4922 esac 4923 ;; 4924 4925interix[3-9]*) 4926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4928 ;; 4929 4930irix5* | irix6* | nonstopux*) 4931 case $LD in 4932 *-32|*"-32 ") libmagic=32-bit;; 4933 *-n32|*"-n32 ") libmagic=N32;; 4934 *-64|*"-64 ") libmagic=64-bit;; 4935 *) libmagic=never-match;; 4936 esac 4937 lt_cv_deplibs_check_method=pass_all 4938 ;; 4939 4940# This must be Linux ELF. 4941linux* | k*bsd*-gnu) 4942 lt_cv_deplibs_check_method=pass_all 4943 ;; 4944 4945netbsd*) 4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4948 else 4949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4950 fi 4951 ;; 4952 4953newos6*) 4954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4955 lt_cv_file_magic_cmd=/usr/bin/file 4956 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4957 ;; 4958 4959*nto* | *qnx*) 4960 lt_cv_deplibs_check_method=pass_all 4961 ;; 4962 4963openbsd*) 4964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4966 else 4967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4968 fi 4969 ;; 4970 4971osf3* | osf4* | osf5*) 4972 lt_cv_deplibs_check_method=pass_all 4973 ;; 4974 4975rdos*) 4976 lt_cv_deplibs_check_method=pass_all 4977 ;; 4978 4979solaris*) 4980 lt_cv_deplibs_check_method=pass_all 4981 ;; 4982 4983sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4984 lt_cv_deplibs_check_method=pass_all 4985 ;; 4986 4987sysv4 | sysv4.3*) 4988 case $host_vendor in 4989 motorola) 4990 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]' 4991 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4992 ;; 4993 ncr) 4994 lt_cv_deplibs_check_method=pass_all 4995 ;; 4996 sequent) 4997 lt_cv_file_magic_cmd='/bin/file' 4998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4999 ;; 5000 sni) 5001 lt_cv_file_magic_cmd='/bin/file' 5002 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5003 lt_cv_file_magic_test_file=/lib/libc.so 5004 ;; 5005 siemens) 5006 lt_cv_deplibs_check_method=pass_all 5007 ;; 5008 pc) 5009 lt_cv_deplibs_check_method=pass_all 5010 ;; 5011 esac 5012 ;; 5013 5014tpf*) 5015 lt_cv_deplibs_check_method=pass_all 5016 ;; 5017esac 5018 5019fi 5020{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 5021$as_echo "$lt_cv_deplibs_check_method" >&6; } 5022file_magic_cmd=$lt_cv_file_magic_cmd 5023deplibs_check_method=$lt_cv_deplibs_check_method 5024test -z "$deplibs_check_method" && deplibs_check_method=unknown 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037if test -n "$ac_tool_prefix"; then 5038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5039set dummy ${ac_tool_prefix}ar; ac_word=$2 5040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5041$as_echo_n "checking for $ac_word... " >&6; } 5042if test "${ac_cv_prog_AR+set}" = set; then 5043 $as_echo_n "(cached) " >&6 5044else 5045 if test -n "$AR"; then 5046 ac_cv_prog_AR="$AR" # Let the user override the test. 5047else 5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5049for as_dir in $PATH 5050do 5051 IFS=$as_save_IFS 5052 test -z "$as_dir" && as_dir=. 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5055 ac_cv_prog_AR="${ac_tool_prefix}ar" 5056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059done 5060done 5061IFS=$as_save_IFS 5062 5063fi 5064fi 5065AR=$ac_cv_prog_AR 5066if test -n "$AR"; then 5067 { $as_echo "$as_me:$LINENO: result: $AR" >&5 5068$as_echo "$AR" >&6; } 5069else 5070 { $as_echo "$as_me:$LINENO: result: no" >&5 5071$as_echo "no" >&6; } 5072fi 5073 5074 5075fi 5076if test -z "$ac_cv_prog_AR"; then 5077 ac_ct_AR=$AR 5078 # Extract the first word of "ar", so it can be a program name with args. 5079set dummy ar; ac_word=$2 5080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$ac_ct_AR"; then 5086 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5095 ac_cv_prog_ac_ct_AR="ar" 5096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105ac_ct_AR=$ac_cv_prog_ac_ct_AR 5106if test -n "$ac_ct_AR"; then 5107 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5108$as_echo "$ac_ct_AR" >&6; } 5109else 5110 { $as_echo "$as_me:$LINENO: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 if test "x$ac_ct_AR" = x; then 5115 AR="false" 5116 else 5117 case $cross_compiling:$ac_tool_warned in 5118yes:) 5119{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5121ac_tool_warned=yes ;; 5122esac 5123 AR=$ac_ct_AR 5124 fi 5125else 5126 AR="$ac_cv_prog_AR" 5127fi 5128 5129test -z "$AR" && AR=ar 5130test -z "$AR_FLAGS" && AR_FLAGS=cru 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142if test -n "$ac_tool_prefix"; then 5143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5144set dummy ${ac_tool_prefix}strip; ac_word=$2 5145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5146$as_echo_n "checking for $ac_word... " >&6; } 5147if test "${ac_cv_prog_STRIP+set}" = set; then 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -n "$STRIP"; then 5151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5152else 5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165done 5166IFS=$as_save_IFS 5167 5168fi 5169fi 5170STRIP=$ac_cv_prog_STRIP 5171if test -n "$STRIP"; then 5172 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 5173$as_echo "$STRIP" >&6; } 5174else 5175 { $as_echo "$as_me:$LINENO: result: no" >&5 5176$as_echo "no" >&6; } 5177fi 5178 5179 5180fi 5181if test -z "$ac_cv_prog_STRIP"; then 5182 ac_ct_STRIP=$STRIP 5183 # Extract the first word of "strip", so it can be a program name with args. 5184set dummy strip; ac_word=$2 5185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5186$as_echo_n "checking for $ac_word... " >&6; } 5187if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -n "$ac_ct_STRIP"; then 5191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5192else 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5200 ac_cv_prog_ac_ct_STRIP="strip" 5201 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205done 5206IFS=$as_save_IFS 5207 5208fi 5209fi 5210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5211if test -n "$ac_ct_STRIP"; then 5212 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5213$as_echo "$ac_ct_STRIP" >&6; } 5214else 5215 { $as_echo "$as_me:$LINENO: result: no" >&5 5216$as_echo "no" >&6; } 5217fi 5218 5219 if test "x$ac_ct_STRIP" = x; then 5220 STRIP=":" 5221 else 5222 case $cross_compiling:$ac_tool_warned in 5223yes:) 5224{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5226ac_tool_warned=yes ;; 5227esac 5228 STRIP=$ac_ct_STRIP 5229 fi 5230else 5231 STRIP="$ac_cv_prog_STRIP" 5232fi 5233 5234test -z "$STRIP" && STRIP=: 5235 5236 5237 5238 5239 5240 5241if test -n "$ac_tool_prefix"; then 5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5243set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5244{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5245$as_echo_n "checking for $ac_word... " >&6; } 5246if test "${ac_cv_prog_RANLIB+set}" = set; then 5247 $as_echo_n "(cached) " >&6 5248else 5249 if test -n "$RANLIB"; then 5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5251else 5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5253for as_dir in $PATH 5254do 5255 IFS=$as_save_IFS 5256 test -z "$as_dir" && as_dir=. 5257 for ac_exec_ext in '' $ac_executable_extensions; do 5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5260 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5261 break 2 5262 fi 5263done 5264done 5265IFS=$as_save_IFS 5266 5267fi 5268fi 5269RANLIB=$ac_cv_prog_RANLIB 5270if test -n "$RANLIB"; then 5271 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5272$as_echo "$RANLIB" >&6; } 5273else 5274 { $as_echo "$as_me:$LINENO: result: no" >&5 5275$as_echo "no" >&6; } 5276fi 5277 5278 5279fi 5280if test -z "$ac_cv_prog_RANLIB"; then 5281 ac_ct_RANLIB=$RANLIB 5282 # Extract the first word of "ranlib", so it can be a program name with args. 5283set dummy ranlib; ac_word=$2 5284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5285$as_echo_n "checking for $ac_word... " >&6; } 5286if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5287 $as_echo_n "(cached) " >&6 5288else 5289 if test -n "$ac_ct_RANLIB"; then 5290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5291else 5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293for as_dir in $PATH 5294do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5299 ac_cv_prog_ac_ct_RANLIB="ranlib" 5300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303done 5304done 5305IFS=$as_save_IFS 5306 5307fi 5308fi 5309ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5310if test -n "$ac_ct_RANLIB"; then 5311 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5312$as_echo "$ac_ct_RANLIB" >&6; } 5313else 5314 { $as_echo "$as_me:$LINENO: result: no" >&5 5315$as_echo "no" >&6; } 5316fi 5317 5318 if test "x$ac_ct_RANLIB" = x; then 5319 RANLIB=":" 5320 else 5321 case $cross_compiling:$ac_tool_warned in 5322yes:) 5323{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5325ac_tool_warned=yes ;; 5326esac 5327 RANLIB=$ac_ct_RANLIB 5328 fi 5329else 5330 RANLIB="$ac_cv_prog_RANLIB" 5331fi 5332 5333test -z "$RANLIB" && RANLIB=: 5334 5335 5336 5337 5338 5339 5340# Determine commands to create old-style static archives. 5341old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5342old_postinstall_cmds='chmod 644 $oldlib' 5343old_postuninstall_cmds= 5344 5345if test -n "$RANLIB"; then 5346 case $host_os in 5347 openbsd*) 5348 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5349 ;; 5350 *) 5351 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5352 ;; 5353 esac 5354 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5355fi 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390# If no C compiler was specified, use CC. 5391LTCC=${LTCC-"$CC"} 5392 5393# If no C compiler flags were specified, use CFLAGS. 5394LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5395 5396# Allow CC to be a program name with arguments. 5397compiler=$CC 5398 5399 5400# Check for command to grab the raw symbol name followed by C symbol from nm. 5401{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5402$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5403if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5404 $as_echo_n "(cached) " >&6 5405else 5406 5407# These are sane defaults that work on at least a few old systems. 5408# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5409 5410# Character class describing NM global symbol codes. 5411symcode='[BCDEGRST]' 5412 5413# Regexp to match symbols that can be accessed directly from C. 5414sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5415 5416# Define system-specific variables. 5417case $host_os in 5418aix*) 5419 symcode='[BCDT]' 5420 ;; 5421cygwin* | mingw* | pw32* | cegcc*) 5422 symcode='[ABCDGISTW]' 5423 ;; 5424hpux*) 5425 if test "$host_cpu" = ia64; then 5426 symcode='[ABCDEGRST]' 5427 fi 5428 ;; 5429irix* | nonstopux*) 5430 symcode='[BCDEGRST]' 5431 ;; 5432osf*) 5433 symcode='[BCDEGQRST]' 5434 ;; 5435solaris*) 5436 symcode='[BDRT]' 5437 ;; 5438sco3.2v5*) 5439 symcode='[DT]' 5440 ;; 5441sysv4.2uw2*) 5442 symcode='[DT]' 5443 ;; 5444sysv5* | sco5v6* | unixware* | OpenUNIX*) 5445 symcode='[ABDT]' 5446 ;; 5447sysv4) 5448 symcode='[DFNSTU]' 5449 ;; 5450esac 5451 5452# If we're using GNU nm, then use its standard symbol codes. 5453case `$NM -V 2>&1` in 5454*GNU* | *'with BFD'*) 5455 symcode='[ABCDGIRSTW]' ;; 5456esac 5457 5458# Transform an extracted symbol line into a proper C declaration. 5459# Some systems (esp. on ia64) link data and code symbols differently, 5460# so use this general approach. 5461lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5462 5463# Transform an extracted symbol line into symbol name and symbol address 5464lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5465lt_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'" 5466 5467# Handle CRLF in mingw tool chain 5468opt_cr= 5469case $build_os in 5470mingw*) 5471 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5472 ;; 5473esac 5474 5475# Try without a prefix underscore, then with it. 5476for ac_symprfx in "" "_"; do 5477 5478 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5479 symxfrm="\\1 $ac_symprfx\\2 \\2" 5480 5481 # Write the raw and C identifiers. 5482 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5483 # Fake it for dumpbin and say T for any non-static function 5484 # and D for any global variable. 5485 # Also find C++ and __fastcall symbols from MSVC++, 5486 # which start with @ or ?. 5487 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5488" {last_section=section; section=\$ 3};"\ 5489" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5490" \$ 0!~/External *\|/{next};"\ 5491" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5492" {if(hide[section]) next};"\ 5493" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5494" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5495" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5496" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5497" ' prfx=^$ac_symprfx" 5498 else 5499 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5500 fi 5501 5502 # Check to see that the pipe works correctly. 5503 pipe_works=no 5504 5505 rm -f conftest* 5506 cat > conftest.$ac_ext <<_LT_EOF 5507#ifdef __cplusplus 5508extern "C" { 5509#endif 5510char nm_test_var; 5511void nm_test_func(void); 5512void nm_test_func(void){} 5513#ifdef __cplusplus 5514} 5515#endif 5516int main(){nm_test_var='a';nm_test_func();return(0);} 5517_LT_EOF 5518 5519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5520 (eval $ac_compile) 2>&5 5521 ac_status=$? 5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5523 (exit $ac_status); }; then 5524 # Now try to grab the symbols. 5525 nlist=conftest.nm 5526 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5527 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5528 ac_status=$? 5529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } && test -s "$nlist"; then 5531 # Try sorting and uniquifying the output. 5532 if sort "$nlist" | uniq > "$nlist"T; then 5533 mv -f "$nlist"T "$nlist" 5534 else 5535 rm -f "$nlist"T 5536 fi 5537 5538 # Make sure that we snagged all the symbols we need. 5539 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5540 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5541 cat <<_LT_EOF > conftest.$ac_ext 5542#ifdef __cplusplus 5543extern "C" { 5544#endif 5545 5546_LT_EOF 5547 # Now generate the symbol file. 5548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5549 5550 cat <<_LT_EOF >> conftest.$ac_ext 5551 5552/* The mapping between symbol names and symbols. */ 5553const struct { 5554 const char *name; 5555 void *address; 5556} 5557lt__PROGRAM__LTX_preloaded_symbols[] = 5558{ 5559 { "@PROGRAM@", (void *) 0 }, 5560_LT_EOF 5561 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5562 cat <<\_LT_EOF >> conftest.$ac_ext 5563 {0, (void *) 0} 5564}; 5565 5566/* This works around a problem in FreeBSD linker */ 5567#ifdef FREEBSD_WORKAROUND 5568static const void *lt_preloaded_setup() { 5569 return lt__PROGRAM__LTX_preloaded_symbols; 5570} 5571#endif 5572 5573#ifdef __cplusplus 5574} 5575#endif 5576_LT_EOF 5577 # Now try linking the two files. 5578 mv conftest.$ac_objext conftstm.$ac_objext 5579 lt_save_LIBS="$LIBS" 5580 lt_save_CFLAGS="$CFLAGS" 5581 LIBS="conftstm.$ac_objext" 5582 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5584 (eval $ac_link) 2>&5 5585 ac_status=$? 5586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5587 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5588 pipe_works=yes 5589 fi 5590 LIBS="$lt_save_LIBS" 5591 CFLAGS="$lt_save_CFLAGS" 5592 else 5593 echo "cannot find nm_test_func in $nlist" >&5 5594 fi 5595 else 5596 echo "cannot find nm_test_var in $nlist" >&5 5597 fi 5598 else 5599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5600 fi 5601 else 5602 echo "$progname: failed program was:" >&5 5603 cat conftest.$ac_ext >&5 5604 fi 5605 rm -rf conftest* conftst* 5606 5607 # Do not use the global_symbol_pipe unless it works. 5608 if test "$pipe_works" = yes; then 5609 break 5610 else 5611 lt_cv_sys_global_symbol_pipe= 5612 fi 5613done 5614 5615fi 5616 5617if test -z "$lt_cv_sys_global_symbol_pipe"; then 5618 lt_cv_sys_global_symbol_to_cdecl= 5619fi 5620if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5621 { $as_echo "$as_me:$LINENO: result: failed" >&5 5622$as_echo "failed" >&6; } 5623else 5624 { $as_echo "$as_me:$LINENO: result: ok" >&5 5625$as_echo "ok" >&6; } 5626fi 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650# Check whether --enable-libtool-lock was given. 5651if test "${enable_libtool_lock+set}" = set; then 5652 enableval=$enable_libtool_lock; 5653fi 5654 5655test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5656 5657# Some flags need to be propagated to the compiler or linker for good 5658# libtool support. 5659case $host in 5660ia64-*-hpux*) 5661 # Find out which ABI we are using. 5662 echo 'int i;' > conftest.$ac_ext 5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5664 (eval $ac_compile) 2>&5 5665 ac_status=$? 5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5667 (exit $ac_status); }; then 5668 case `/usr/bin/file conftest.$ac_objext` in 5669 *ELF-32*) 5670 HPUX_IA64_MODE="32" 5671 ;; 5672 *ELF-64*) 5673 HPUX_IA64_MODE="64" 5674 ;; 5675 esac 5676 fi 5677 rm -rf conftest* 5678 ;; 5679*-*-irix6*) 5680 # Find out which ABI we are using. 5681 echo '#line 5681 "configure"' > conftest.$ac_ext 5682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5683 (eval $ac_compile) 2>&5 5684 ac_status=$? 5685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5686 (exit $ac_status); }; then 5687 if test "$lt_cv_prog_gnu_ld" = yes; then 5688 case `/usr/bin/file conftest.$ac_objext` in 5689 *32-bit*) 5690 LD="${LD-ld} -melf32bsmip" 5691 ;; 5692 *N32*) 5693 LD="${LD-ld} -melf32bmipn32" 5694 ;; 5695 *64-bit*) 5696 LD="${LD-ld} -melf64bmip" 5697 ;; 5698 esac 5699 else 5700 case `/usr/bin/file conftest.$ac_objext` in 5701 *32-bit*) 5702 LD="${LD-ld} -32" 5703 ;; 5704 *N32*) 5705 LD="${LD-ld} -n32" 5706 ;; 5707 *64-bit*) 5708 LD="${LD-ld} -64" 5709 ;; 5710 esac 5711 fi 5712 fi 5713 rm -rf conftest* 5714 ;; 5715 5716x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5717s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5718 # Find out which ABI we are using. 5719 echo 'int i;' > conftest.$ac_ext 5720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5721 (eval $ac_compile) 2>&5 5722 ac_status=$? 5723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); }; then 5725 case `/usr/bin/file conftest.o` in 5726 *32-bit*) 5727 case $host in 5728 x86_64-*kfreebsd*-gnu) 5729 LD="${LD-ld} -m elf_i386_fbsd" 5730 ;; 5731 x86_64-*linux*) 5732 LD="${LD-ld} -m elf_i386" 5733 ;; 5734 ppc64-*linux*|powerpc64-*linux*) 5735 LD="${LD-ld} -m elf32ppclinux" 5736 ;; 5737 s390x-*linux*) 5738 LD="${LD-ld} -m elf_s390" 5739 ;; 5740 sparc64-*linux*) 5741 LD="${LD-ld} -m elf32_sparc" 5742 ;; 5743 esac 5744 ;; 5745 *64-bit*) 5746 case $host in 5747 x86_64-*kfreebsd*-gnu) 5748 LD="${LD-ld} -m elf_x86_64_fbsd" 5749 ;; 5750 x86_64-*linux*) 5751 LD="${LD-ld} -m elf_x86_64" 5752 ;; 5753 ppc*-*linux*|powerpc*-*linux*) 5754 LD="${LD-ld} -m elf64ppc" 5755 ;; 5756 s390*-*linux*|s390*-*tpf*) 5757 LD="${LD-ld} -m elf64_s390" 5758 ;; 5759 sparc*-*linux*) 5760 LD="${LD-ld} -m elf64_sparc" 5761 ;; 5762 esac 5763 ;; 5764 esac 5765 fi 5766 rm -rf conftest* 5767 ;; 5768 5769*-*-sco3.2v5*) 5770 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5771 SAVE_CFLAGS="$CFLAGS" 5772 CFLAGS="$CFLAGS -belf" 5773 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5774$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5775if test "${lt_cv_cc_needs_belf+set}" = set; then 5776 $as_echo_n "(cached) " >&6 5777else 5778 ac_ext=c 5779ac_cpp='$CPP $CPPFLAGS' 5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5782ac_compiler_gnu=$ac_cv_c_compiler_gnu 5783 5784 cat >conftest.$ac_ext <<_ACEOF 5785/* confdefs.h. */ 5786_ACEOF 5787cat confdefs.h >>conftest.$ac_ext 5788cat >>conftest.$ac_ext <<_ACEOF 5789/* end confdefs.h. */ 5790 5791int 5792main () 5793{ 5794 5795 ; 5796 return 0; 5797} 5798_ACEOF 5799rm -f conftest.$ac_objext conftest$ac_exeext 5800if { (ac_try="$ac_link" 5801case "(($ac_try" in 5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5803 *) ac_try_echo=$ac_try;; 5804esac 5805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5806$as_echo "$ac_try_echo") >&5 5807 (eval "$ac_link") 2>conftest.er1 5808 ac_status=$? 5809 grep -v '^ *+' conftest.er1 >conftest.err 5810 rm -f conftest.er1 5811 cat conftest.err >&5 5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5813 (exit $ac_status); } && { 5814 test -z "$ac_c_werror_flag" || 5815 test ! -s conftest.err 5816 } && test -s conftest$ac_exeext && { 5817 test "$cross_compiling" = yes || 5818 $as_test_x conftest$ac_exeext 5819 }; then 5820 lt_cv_cc_needs_belf=yes 5821else 5822 $as_echo "$as_me: failed program was:" >&5 5823sed 's/^/| /' conftest.$ac_ext >&5 5824 5825 lt_cv_cc_needs_belf=no 5826fi 5827 5828rm -rf conftest.dSYM 5829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5830 conftest$ac_exeext conftest.$ac_ext 5831 ac_ext=c 5832ac_cpp='$CPP $CPPFLAGS' 5833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5835ac_compiler_gnu=$ac_cv_c_compiler_gnu 5836 5837fi 5838{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5839$as_echo "$lt_cv_cc_needs_belf" >&6; } 5840 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5841 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5842 CFLAGS="$SAVE_CFLAGS" 5843 fi 5844 ;; 5845sparc*-*solaris*) 5846 # Find out which ABI we are using. 5847 echo 'int i;' > conftest.$ac_ext 5848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5849 (eval $ac_compile) 2>&5 5850 ac_status=$? 5851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5852 (exit $ac_status); }; then 5853 case `/usr/bin/file conftest.o` in 5854 *64-bit*) 5855 case $lt_cv_prog_gnu_ld in 5856 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5857 *) 5858 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5859 LD="${LD-ld} -64" 5860 fi 5861 ;; 5862 esac 5863 ;; 5864 esac 5865 fi 5866 rm -rf conftest* 5867 ;; 5868esac 5869 5870need_locks="$enable_libtool_lock" 5871 5872 5873 case $host_os in 5874 rhapsody* | darwin*) 5875 if test -n "$ac_tool_prefix"; then 5876 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5877set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5879$as_echo_n "checking for $ac_word... " >&6; } 5880if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 5881 $as_echo_n "(cached) " >&6 5882else 5883 if test -n "$DSYMUTIL"; then 5884 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 5885else 5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5887for as_dir in $PATH 5888do 5889 IFS=$as_save_IFS 5890 test -z "$as_dir" && as_dir=. 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5893 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 5894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5895 break 2 5896 fi 5897done 5898done 5899IFS=$as_save_IFS 5900 5901fi 5902fi 5903DSYMUTIL=$ac_cv_prog_DSYMUTIL 5904if test -n "$DSYMUTIL"; then 5905 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 5906$as_echo "$DSYMUTIL" >&6; } 5907else 5908 { $as_echo "$as_me:$LINENO: result: no" >&5 5909$as_echo "no" >&6; } 5910fi 5911 5912 5913fi 5914if test -z "$ac_cv_prog_DSYMUTIL"; then 5915 ac_ct_DSYMUTIL=$DSYMUTIL 5916 # Extract the first word of "dsymutil", so it can be a program name with args. 5917set dummy dsymutil; ac_word=$2 5918{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5919$as_echo_n "checking for $ac_word... " >&6; } 5920if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 5921 $as_echo_n "(cached) " >&6 5922else 5923 if test -n "$ac_ct_DSYMUTIL"; then 5924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 5925else 5926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5927for as_dir in $PATH 5928do 5929 IFS=$as_save_IFS 5930 test -z "$as_dir" && as_dir=. 5931 for ac_exec_ext in '' $ac_executable_extensions; do 5932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 5934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5935 break 2 5936 fi 5937done 5938done 5939IFS=$as_save_IFS 5940 5941fi 5942fi 5943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 5944if test -n "$ac_ct_DSYMUTIL"; then 5945 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 5946$as_echo "$ac_ct_DSYMUTIL" >&6; } 5947else 5948 { $as_echo "$as_me:$LINENO: result: no" >&5 5949$as_echo "no" >&6; } 5950fi 5951 5952 if test "x$ac_ct_DSYMUTIL" = x; then 5953 DSYMUTIL=":" 5954 else 5955 case $cross_compiling:$ac_tool_warned in 5956yes:) 5957{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5959ac_tool_warned=yes ;; 5960esac 5961 DSYMUTIL=$ac_ct_DSYMUTIL 5962 fi 5963else 5964 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 5965fi 5966 5967 if test -n "$ac_tool_prefix"; then 5968 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 5969set dummy ${ac_tool_prefix}nmedit; ac_word=$2 5970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if test "${ac_cv_prog_NMEDIT+set}" = set; then 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$NMEDIT"; then 5976 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5985 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 5986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995NMEDIT=$ac_cv_prog_NMEDIT 5996if test -n "$NMEDIT"; then 5997 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 5998$as_echo "$NMEDIT" >&6; } 5999else 6000 { $as_echo "$as_me:$LINENO: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 6005fi 6006if test -z "$ac_cv_prog_NMEDIT"; then 6007 ac_ct_NMEDIT=$NMEDIT 6008 # Extract the first word of "nmedit", so it can be a program name with args. 6009set dummy nmedit; ac_word=$2 6010{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6011$as_echo_n "checking for $ac_word... " >&6; } 6012if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 6013 $as_echo_n "(cached) " >&6 6014else 6015 if test -n "$ac_ct_NMEDIT"; then 6016 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6017else 6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6019for as_dir in $PATH 6020do 6021 IFS=$as_save_IFS 6022 test -z "$as_dir" && as_dir=. 6023 for ac_exec_ext in '' $ac_executable_extensions; do 6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6025 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6026 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 break 2 6028 fi 6029done 6030done 6031IFS=$as_save_IFS 6032 6033fi 6034fi 6035ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6036if test -n "$ac_ct_NMEDIT"; then 6037 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 6038$as_echo "$ac_ct_NMEDIT" >&6; } 6039else 6040 { $as_echo "$as_me:$LINENO: result: no" >&5 6041$as_echo "no" >&6; } 6042fi 6043 6044 if test "x$ac_ct_NMEDIT" = x; then 6045 NMEDIT=":" 6046 else 6047 case $cross_compiling:$ac_tool_warned in 6048yes:) 6049{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6051ac_tool_warned=yes ;; 6052esac 6053 NMEDIT=$ac_ct_NMEDIT 6054 fi 6055else 6056 NMEDIT="$ac_cv_prog_NMEDIT" 6057fi 6058 6059 if test -n "$ac_tool_prefix"; then 6060 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6061set dummy ${ac_tool_prefix}lipo; ac_word=$2 6062{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6063$as_echo_n "checking for $ac_word... " >&6; } 6064if test "${ac_cv_prog_LIPO+set}" = set; then 6065 $as_echo_n "(cached) " >&6 6066else 6067 if test -n "$LIPO"; then 6068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6069else 6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6071for as_dir in $PATH 6072do 6073 IFS=$as_save_IFS 6074 test -z "$as_dir" && as_dir=. 6075 for ac_exec_ext in '' $ac_executable_extensions; do 6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6079 break 2 6080 fi 6081done 6082done 6083IFS=$as_save_IFS 6084 6085fi 6086fi 6087LIPO=$ac_cv_prog_LIPO 6088if test -n "$LIPO"; then 6089 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 6090$as_echo "$LIPO" >&6; } 6091else 6092 { $as_echo "$as_me:$LINENO: result: no" >&5 6093$as_echo "no" >&6; } 6094fi 6095 6096 6097fi 6098if test -z "$ac_cv_prog_LIPO"; then 6099 ac_ct_LIPO=$LIPO 6100 # Extract the first word of "lipo", so it can be a program name with args. 6101set dummy lipo; ac_word=$2 6102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6103$as_echo_n "checking for $ac_word... " >&6; } 6104if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 6105 $as_echo_n "(cached) " >&6 6106else 6107 if test -n "$ac_ct_LIPO"; then 6108 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6109else 6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111for as_dir in $PATH 6112do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6117 ac_cv_prog_ac_ct_LIPO="lipo" 6118 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121done 6122done 6123IFS=$as_save_IFS 6124 6125fi 6126fi 6127ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6128if test -n "$ac_ct_LIPO"; then 6129 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 6130$as_echo "$ac_ct_LIPO" >&6; } 6131else 6132 { $as_echo "$as_me:$LINENO: result: no" >&5 6133$as_echo "no" >&6; } 6134fi 6135 6136 if test "x$ac_ct_LIPO" = x; then 6137 LIPO=":" 6138 else 6139 case $cross_compiling:$ac_tool_warned in 6140yes:) 6141{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6143ac_tool_warned=yes ;; 6144esac 6145 LIPO=$ac_ct_LIPO 6146 fi 6147else 6148 LIPO="$ac_cv_prog_LIPO" 6149fi 6150 6151 if test -n "$ac_tool_prefix"; then 6152 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6153set dummy ${ac_tool_prefix}otool; ac_word=$2 6154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6155$as_echo_n "checking for $ac_word... " >&6; } 6156if test "${ac_cv_prog_OTOOL+set}" = set; then 6157 $as_echo_n "(cached) " >&6 6158else 6159 if test -n "$OTOOL"; then 6160 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6161else 6162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6163for as_dir in $PATH 6164do 6165 IFS=$as_save_IFS 6166 test -z "$as_dir" && as_dir=. 6167 for ac_exec_ext in '' $ac_executable_extensions; do 6168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6171 break 2 6172 fi 6173done 6174done 6175IFS=$as_save_IFS 6176 6177fi 6178fi 6179OTOOL=$ac_cv_prog_OTOOL 6180if test -n "$OTOOL"; then 6181 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 6182$as_echo "$OTOOL" >&6; } 6183else 6184 { $as_echo "$as_me:$LINENO: result: no" >&5 6185$as_echo "no" >&6; } 6186fi 6187 6188 6189fi 6190if test -z "$ac_cv_prog_OTOOL"; then 6191 ac_ct_OTOOL=$OTOOL 6192 # Extract the first word of "otool", so it can be a program name with args. 6193set dummy otool; ac_word=$2 6194{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6195$as_echo_n "checking for $ac_word... " >&6; } 6196if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 6197 $as_echo_n "(cached) " >&6 6198else 6199 if test -n "$ac_ct_OTOOL"; then 6200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6201else 6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6203for as_dir in $PATH 6204do 6205 IFS=$as_save_IFS 6206 test -z "$as_dir" && as_dir=. 6207 for ac_exec_ext in '' $ac_executable_extensions; do 6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6209 ac_cv_prog_ac_ct_OTOOL="otool" 6210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6211 break 2 6212 fi 6213done 6214done 6215IFS=$as_save_IFS 6216 6217fi 6218fi 6219ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6220if test -n "$ac_ct_OTOOL"; then 6221 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 6222$as_echo "$ac_ct_OTOOL" >&6; } 6223else 6224 { $as_echo "$as_me:$LINENO: result: no" >&5 6225$as_echo "no" >&6; } 6226fi 6227 6228 if test "x$ac_ct_OTOOL" = x; then 6229 OTOOL=":" 6230 else 6231 case $cross_compiling:$ac_tool_warned in 6232yes:) 6233{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6235ac_tool_warned=yes ;; 6236esac 6237 OTOOL=$ac_ct_OTOOL 6238 fi 6239else 6240 OTOOL="$ac_cv_prog_OTOOL" 6241fi 6242 6243 if test -n "$ac_tool_prefix"; then 6244 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6245set dummy ${ac_tool_prefix}otool64; ac_word=$2 6246{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6247$as_echo_n "checking for $ac_word... " >&6; } 6248if test "${ac_cv_prog_OTOOL64+set}" = set; then 6249 $as_echo_n "(cached) " >&6 6250else 6251 if test -n "$OTOOL64"; then 6252 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6253else 6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255for as_dir in $PATH 6256do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6261 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265done 6266done 6267IFS=$as_save_IFS 6268 6269fi 6270fi 6271OTOOL64=$ac_cv_prog_OTOOL64 6272if test -n "$OTOOL64"; then 6273 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 6274$as_echo "$OTOOL64" >&6; } 6275else 6276 { $as_echo "$as_me:$LINENO: result: no" >&5 6277$as_echo "no" >&6; } 6278fi 6279 6280 6281fi 6282if test -z "$ac_cv_prog_OTOOL64"; then 6283 ac_ct_OTOOL64=$OTOOL64 6284 # Extract the first word of "otool64", so it can be a program name with args. 6285set dummy otool64; ac_word=$2 6286{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6287$as_echo_n "checking for $ac_word... " >&6; } 6288if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 6289 $as_echo_n "(cached) " >&6 6290else 6291 if test -n "$ac_ct_OTOOL64"; then 6292 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6293else 6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295for as_dir in $PATH 6296do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6301 ac_cv_prog_ac_ct_OTOOL64="otool64" 6302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305done 6306done 6307IFS=$as_save_IFS 6308 6309fi 6310fi 6311ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6312if test -n "$ac_ct_OTOOL64"; then 6313 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 6314$as_echo "$ac_ct_OTOOL64" >&6; } 6315else 6316 { $as_echo "$as_me:$LINENO: result: no" >&5 6317$as_echo "no" >&6; } 6318fi 6319 6320 if test "x$ac_ct_OTOOL64" = x; then 6321 OTOOL64=":" 6322 else 6323 case $cross_compiling:$ac_tool_warned in 6324yes:) 6325{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6327ac_tool_warned=yes ;; 6328esac 6329 OTOOL64=$ac_ct_OTOOL64 6330 fi 6331else 6332 OTOOL64="$ac_cv_prog_OTOOL64" 6333fi 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 6362$as_echo_n "checking for -single_module linker flag... " >&6; } 6363if test "${lt_cv_apple_cc_single_mod+set}" = set; then 6364 $as_echo_n "(cached) " >&6 6365else 6366 lt_cv_apple_cc_single_mod=no 6367 if test -z "${LT_MULTI_MODULE}"; then 6368 # By default we will add the -single_module flag. You can override 6369 # by either setting the environment variable LT_MULTI_MODULE 6370 # non-empty at configure time, or by adding -multi_module to the 6371 # link flags. 6372 rm -rf libconftest.dylib* 6373 echo "int foo(void){return 1;}" > conftest.c 6374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6375-dynamiclib -Wl,-single_module conftest.c" >&5 6376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6378 _lt_result=$? 6379 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6380 lt_cv_apple_cc_single_mod=yes 6381 else 6382 cat conftest.err >&5 6383 fi 6384 rm -rf libconftest.dylib* 6385 rm -f conftest.* 6386 fi 6387fi 6388{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 6389$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6390 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 6391$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6392if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 6393 $as_echo_n "(cached) " >&6 6394else 6395 lt_cv_ld_exported_symbols_list=no 6396 save_LDFLAGS=$LDFLAGS 6397 echo "_main" > conftest.sym 6398 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6399 cat >conftest.$ac_ext <<_ACEOF 6400/* confdefs.h. */ 6401_ACEOF 6402cat confdefs.h >>conftest.$ac_ext 6403cat >>conftest.$ac_ext <<_ACEOF 6404/* end confdefs.h. */ 6405 6406int 6407main () 6408{ 6409 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414rm -f conftest.$ac_objext conftest$ac_exeext 6415if { (ac_try="$ac_link" 6416case "(($ac_try" in 6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6418 *) ac_try_echo=$ac_try;; 6419esac 6420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6421$as_echo "$ac_try_echo") >&5 6422 (eval "$ac_link") 2>conftest.er1 6423 ac_status=$? 6424 grep -v '^ *+' conftest.er1 >conftest.err 6425 rm -f conftest.er1 6426 cat conftest.err >&5 6427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6428 (exit $ac_status); } && { 6429 test -z "$ac_c_werror_flag" || 6430 test ! -s conftest.err 6431 } && test -s conftest$ac_exeext && { 6432 test "$cross_compiling" = yes || 6433 $as_test_x conftest$ac_exeext 6434 }; then 6435 lt_cv_ld_exported_symbols_list=yes 6436else 6437 $as_echo "$as_me: failed program was:" >&5 6438sed 's/^/| /' conftest.$ac_ext >&5 6439 6440 lt_cv_ld_exported_symbols_list=no 6441fi 6442 6443rm -rf conftest.dSYM 6444rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6445 conftest$ac_exeext conftest.$ac_ext 6446 LDFLAGS="$save_LDFLAGS" 6447 6448fi 6449{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 6450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6451 case $host_os in 6452 rhapsody* | darwin1.[012]) 6453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6454 darwin1.*) 6455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6456 darwin*) # darwin 5.x on 6457 # if running on 10.5 or later, the deployment target defaults 6458 # to the OS version, if on x86, and 10.4, the deployment 6459 # target defaults to 10.4. Don't you love it? 6460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6461 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6463 10.[012]*) 6464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6465 10.*) 6466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6467 esac 6468 ;; 6469 esac 6470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6471 _lt_dar_single_mod='$single_module' 6472 fi 6473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6475 else 6476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6477 fi 6478 if test "$DSYMUTIL" != ":"; then 6479 _lt_dsymutil='~$DSYMUTIL $lib || :' 6480 else 6481 _lt_dsymutil= 6482 fi 6483 ;; 6484 esac 6485 6486ac_ext=c 6487ac_cpp='$CPP $CPPFLAGS' 6488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6490ac_compiler_gnu=$ac_cv_c_compiler_gnu 6491{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 6492$as_echo_n "checking how to run the C preprocessor... " >&6; } 6493# On Suns, sometimes $CPP names a directory. 6494if test -n "$CPP" && test -d "$CPP"; then 6495 CPP= 6496fi 6497if test -z "$CPP"; then 6498 if test "${ac_cv_prog_CPP+set}" = set; then 6499 $as_echo_n "(cached) " >&6 6500else 6501 # Double quotes because CPP needs to be expanded 6502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6503 do 6504 ac_preproc_ok=false 6505for ac_c_preproc_warn_flag in '' yes 6506do 6507 # Use a header file that comes with gcc, so configuring glibc 6508 # with a fresh cross-compiler works. 6509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6510 # <limits.h> exists even on freestanding compilers. 6511 # On the NeXT, cc -E runs the code through the compiler's parser, 6512 # not just through cpp. "Syntax error" is here to catch this case. 6513 cat >conftest.$ac_ext <<_ACEOF 6514/* confdefs.h. */ 6515_ACEOF 6516cat confdefs.h >>conftest.$ac_ext 6517cat >>conftest.$ac_ext <<_ACEOF 6518/* end confdefs.h. */ 6519#ifdef __STDC__ 6520# include <limits.h> 6521#else 6522# include <assert.h> 6523#endif 6524 Syntax error 6525_ACEOF 6526if { (ac_try="$ac_cpp conftest.$ac_ext" 6527case "(($ac_try" in 6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6529 *) ac_try_echo=$ac_try;; 6530esac 6531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6532$as_echo "$ac_try_echo") >&5 6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6534 ac_status=$? 6535 grep -v '^ *+' conftest.er1 >conftest.err 6536 rm -f conftest.er1 6537 cat conftest.err >&5 6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6539 (exit $ac_status); } >/dev/null && { 6540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6541 test ! -s conftest.err 6542 }; then 6543 : 6544else 6545 $as_echo "$as_me: failed program was:" >&5 6546sed 's/^/| /' conftest.$ac_ext >&5 6547 6548 # Broken: fails on valid input. 6549continue 6550fi 6551 6552rm -f conftest.err conftest.$ac_ext 6553 6554 # OK, works on sane cases. Now check whether nonexistent headers 6555 # can be detected and how. 6556 cat >conftest.$ac_ext <<_ACEOF 6557/* confdefs.h. */ 6558_ACEOF 6559cat confdefs.h >>conftest.$ac_ext 6560cat >>conftest.$ac_ext <<_ACEOF 6561/* end confdefs.h. */ 6562#include <ac_nonexistent.h> 6563_ACEOF 6564if { (ac_try="$ac_cpp conftest.$ac_ext" 6565case "(($ac_try" in 6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6567 *) ac_try_echo=$ac_try;; 6568esac 6569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6570$as_echo "$ac_try_echo") >&5 6571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6572 ac_status=$? 6573 grep -v '^ *+' conftest.er1 >conftest.err 6574 rm -f conftest.er1 6575 cat conftest.err >&5 6576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 (exit $ac_status); } >/dev/null && { 6578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6579 test ! -s conftest.err 6580 }; then 6581 # Broken: success on invalid input. 6582continue 6583else 6584 $as_echo "$as_me: failed program was:" >&5 6585sed 's/^/| /' conftest.$ac_ext >&5 6586 6587 # Passes both tests. 6588ac_preproc_ok=: 6589break 6590fi 6591 6592rm -f conftest.err conftest.$ac_ext 6593 6594done 6595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6596rm -f conftest.err conftest.$ac_ext 6597if $ac_preproc_ok; then 6598 break 6599fi 6600 6601 done 6602 ac_cv_prog_CPP=$CPP 6603 6604fi 6605 CPP=$ac_cv_prog_CPP 6606else 6607 ac_cv_prog_CPP=$CPP 6608fi 6609{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 6610$as_echo "$CPP" >&6; } 6611ac_preproc_ok=false 6612for ac_c_preproc_warn_flag in '' yes 6613do 6614 # Use a header file that comes with gcc, so configuring glibc 6615 # with a fresh cross-compiler works. 6616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6617 # <limits.h> exists even on freestanding compilers. 6618 # On the NeXT, cc -E runs the code through the compiler's parser, 6619 # not just through cpp. "Syntax error" is here to catch this case. 6620 cat >conftest.$ac_ext <<_ACEOF 6621/* confdefs.h. */ 6622_ACEOF 6623cat confdefs.h >>conftest.$ac_ext 6624cat >>conftest.$ac_ext <<_ACEOF 6625/* end confdefs.h. */ 6626#ifdef __STDC__ 6627# include <limits.h> 6628#else 6629# include <assert.h> 6630#endif 6631 Syntax error 6632_ACEOF 6633if { (ac_try="$ac_cpp conftest.$ac_ext" 6634case "(($ac_try" in 6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6636 *) ac_try_echo=$ac_try;; 6637esac 6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6639$as_echo "$ac_try_echo") >&5 6640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6641 ac_status=$? 6642 grep -v '^ *+' conftest.er1 >conftest.err 6643 rm -f conftest.er1 6644 cat conftest.err >&5 6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6646 (exit $ac_status); } >/dev/null && { 6647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6648 test ! -s conftest.err 6649 }; then 6650 : 6651else 6652 $as_echo "$as_me: failed program was:" >&5 6653sed 's/^/| /' conftest.$ac_ext >&5 6654 6655 # Broken: fails on valid input. 6656continue 6657fi 6658 6659rm -f conftest.err conftest.$ac_ext 6660 6661 # OK, works on sane cases. Now check whether nonexistent headers 6662 # can be detected and how. 6663 cat >conftest.$ac_ext <<_ACEOF 6664/* confdefs.h. */ 6665_ACEOF 6666cat confdefs.h >>conftest.$ac_ext 6667cat >>conftest.$ac_ext <<_ACEOF 6668/* end confdefs.h. */ 6669#include <ac_nonexistent.h> 6670_ACEOF 6671if { (ac_try="$ac_cpp conftest.$ac_ext" 6672case "(($ac_try" in 6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6674 *) ac_try_echo=$ac_try;; 6675esac 6676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6677$as_echo "$ac_try_echo") >&5 6678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6679 ac_status=$? 6680 grep -v '^ *+' conftest.er1 >conftest.err 6681 rm -f conftest.er1 6682 cat conftest.err >&5 6683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6684 (exit $ac_status); } >/dev/null && { 6685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6686 test ! -s conftest.err 6687 }; then 6688 # Broken: success on invalid input. 6689continue 6690else 6691 $as_echo "$as_me: failed program was:" >&5 6692sed 's/^/| /' conftest.$ac_ext >&5 6693 6694 # Passes both tests. 6695ac_preproc_ok=: 6696break 6697fi 6698 6699rm -f conftest.err conftest.$ac_ext 6700 6701done 6702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6703rm -f conftest.err conftest.$ac_ext 6704if $ac_preproc_ok; then 6705 : 6706else 6707 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6709{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 6710See \`config.log' for more details." >&5 6711$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 6712See \`config.log' for more details." >&2;} 6713 { (exit 1); exit 1; }; }; } 6714fi 6715 6716ac_ext=c 6717ac_cpp='$CPP $CPPFLAGS' 6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6720ac_compiler_gnu=$ac_cv_c_compiler_gnu 6721 6722 6723{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6724$as_echo_n "checking for ANSI C header files... " >&6; } 6725if test "${ac_cv_header_stdc+set}" = set; then 6726 $as_echo_n "(cached) " >&6 6727else 6728 cat >conftest.$ac_ext <<_ACEOF 6729/* confdefs.h. */ 6730_ACEOF 6731cat confdefs.h >>conftest.$ac_ext 6732cat >>conftest.$ac_ext <<_ACEOF 6733/* end confdefs.h. */ 6734#include <stdlib.h> 6735#include <stdarg.h> 6736#include <string.h> 6737#include <float.h> 6738 6739int 6740main () 6741{ 6742 6743 ; 6744 return 0; 6745} 6746_ACEOF 6747rm -f conftest.$ac_objext 6748if { (ac_try="$ac_compile" 6749case "(($ac_try" in 6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6751 *) ac_try_echo=$ac_try;; 6752esac 6753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6754$as_echo "$ac_try_echo") >&5 6755 (eval "$ac_compile") 2>conftest.er1 6756 ac_status=$? 6757 grep -v '^ *+' conftest.er1 >conftest.err 6758 rm -f conftest.er1 6759 cat conftest.err >&5 6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6761 (exit $ac_status); } && { 6762 test -z "$ac_c_werror_flag" || 6763 test ! -s conftest.err 6764 } && test -s conftest.$ac_objext; then 6765 ac_cv_header_stdc=yes 6766else 6767 $as_echo "$as_me: failed program was:" >&5 6768sed 's/^/| /' conftest.$ac_ext >&5 6769 6770 ac_cv_header_stdc=no 6771fi 6772 6773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6774 6775if test $ac_cv_header_stdc = yes; then 6776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6777 cat >conftest.$ac_ext <<_ACEOF 6778/* confdefs.h. */ 6779_ACEOF 6780cat confdefs.h >>conftest.$ac_ext 6781cat >>conftest.$ac_ext <<_ACEOF 6782/* end confdefs.h. */ 6783#include <string.h> 6784 6785_ACEOF 6786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6787 $EGREP "memchr" >/dev/null 2>&1; then 6788 : 6789else 6790 ac_cv_header_stdc=no 6791fi 6792rm -f conftest* 6793 6794fi 6795 6796if test $ac_cv_header_stdc = yes; then 6797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6798 cat >conftest.$ac_ext <<_ACEOF 6799/* confdefs.h. */ 6800_ACEOF 6801cat confdefs.h >>conftest.$ac_ext 6802cat >>conftest.$ac_ext <<_ACEOF 6803/* end confdefs.h. */ 6804#include <stdlib.h> 6805 6806_ACEOF 6807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6808 $EGREP "free" >/dev/null 2>&1; then 6809 : 6810else 6811 ac_cv_header_stdc=no 6812fi 6813rm -f conftest* 6814 6815fi 6816 6817if test $ac_cv_header_stdc = yes; then 6818 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6819 if test "$cross_compiling" = yes; then 6820 : 6821else 6822 cat >conftest.$ac_ext <<_ACEOF 6823/* confdefs.h. */ 6824_ACEOF 6825cat confdefs.h >>conftest.$ac_ext 6826cat >>conftest.$ac_ext <<_ACEOF 6827/* end confdefs.h. */ 6828#include <ctype.h> 6829#include <stdlib.h> 6830#if ((' ' & 0x0FF) == 0x020) 6831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6833#else 6834# define ISLOWER(c) \ 6835 (('a' <= (c) && (c) <= 'i') \ 6836 || ('j' <= (c) && (c) <= 'r') \ 6837 || ('s' <= (c) && (c) <= 'z')) 6838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6839#endif 6840 6841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6842int 6843main () 6844{ 6845 int i; 6846 for (i = 0; i < 256; i++) 6847 if (XOR (islower (i), ISLOWER (i)) 6848 || toupper (i) != TOUPPER (i)) 6849 return 2; 6850 return 0; 6851} 6852_ACEOF 6853rm -f conftest$ac_exeext 6854if { (ac_try="$ac_link" 6855case "(($ac_try" in 6856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6857 *) ac_try_echo=$ac_try;; 6858esac 6859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6860$as_echo "$ac_try_echo") >&5 6861 (eval "$ac_link") 2>&5 6862 ac_status=$? 6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6865 { (case "(($ac_try" in 6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6867 *) ac_try_echo=$ac_try;; 6868esac 6869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6870$as_echo "$ac_try_echo") >&5 6871 (eval "$ac_try") 2>&5 6872 ac_status=$? 6873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6874 (exit $ac_status); }; }; then 6875 : 6876else 6877 $as_echo "$as_me: program exited with status $ac_status" >&5 6878$as_echo "$as_me: failed program was:" >&5 6879sed 's/^/| /' conftest.$ac_ext >&5 6880 6881( exit $ac_status ) 6882ac_cv_header_stdc=no 6883fi 6884rm -rf conftest.dSYM 6885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6886fi 6887 6888 6889fi 6890fi 6891{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6892$as_echo "$ac_cv_header_stdc" >&6; } 6893if test $ac_cv_header_stdc = yes; then 6894 6895cat >>confdefs.h <<\_ACEOF 6896#define STDC_HEADERS 1 6897_ACEOF 6898 6899fi 6900 6901# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6912 inttypes.h stdint.h unistd.h 6913do 6914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6916$as_echo_n "checking for $ac_header... " >&6; } 6917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6918 $as_echo_n "(cached) " >&6 6919else 6920 cat >conftest.$ac_ext <<_ACEOF 6921/* confdefs.h. */ 6922_ACEOF 6923cat confdefs.h >>conftest.$ac_ext 6924cat >>conftest.$ac_ext <<_ACEOF 6925/* end confdefs.h. */ 6926$ac_includes_default 6927 6928#include <$ac_header> 6929_ACEOF 6930rm -f conftest.$ac_objext 6931if { (ac_try="$ac_compile" 6932case "(($ac_try" in 6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6934 *) ac_try_echo=$ac_try;; 6935esac 6936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6937$as_echo "$ac_try_echo") >&5 6938 (eval "$ac_compile") 2>conftest.er1 6939 ac_status=$? 6940 grep -v '^ *+' conftest.er1 >conftest.err 6941 rm -f conftest.er1 6942 cat conftest.err >&5 6943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6944 (exit $ac_status); } && { 6945 test -z "$ac_c_werror_flag" || 6946 test ! -s conftest.err 6947 } && test -s conftest.$ac_objext; then 6948 eval "$as_ac_Header=yes" 6949else 6950 $as_echo "$as_me: failed program was:" >&5 6951sed 's/^/| /' conftest.$ac_ext >&5 6952 6953 eval "$as_ac_Header=no" 6954fi 6955 6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6957fi 6958ac_res=`eval 'as_val=${'$as_ac_Header'} 6959 $as_echo "$as_val"'` 6960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 6961$as_echo "$ac_res" >&6; } 6962as_val=`eval 'as_val=${'$as_ac_Header'} 6963 $as_echo "$as_val"'` 6964 if test "x$as_val" = x""yes; then 6965 cat >>confdefs.h <<_ACEOF 6966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6967_ACEOF 6968 6969fi 6970 6971done 6972 6973 6974 6975for ac_header in dlfcn.h 6976do 6977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6978{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6979$as_echo_n "checking for $ac_header... " >&6; } 6980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6981 $as_echo_n "(cached) " >&6 6982else 6983 cat >conftest.$ac_ext <<_ACEOF 6984/* confdefs.h. */ 6985_ACEOF 6986cat confdefs.h >>conftest.$ac_ext 6987cat >>conftest.$ac_ext <<_ACEOF 6988/* end confdefs.h. */ 6989$ac_includes_default 6990 6991#include <$ac_header> 6992_ACEOF 6993rm -f conftest.$ac_objext 6994if { (ac_try="$ac_compile" 6995case "(($ac_try" in 6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6997 *) ac_try_echo=$ac_try;; 6998esac 6999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7000$as_echo "$ac_try_echo") >&5 7001 (eval "$ac_compile") 2>conftest.er1 7002 ac_status=$? 7003 grep -v '^ *+' conftest.er1 >conftest.err 7004 rm -f conftest.er1 7005 cat conftest.err >&5 7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 7007 (exit $ac_status); } && { 7008 test -z "$ac_c_werror_flag" || 7009 test ! -s conftest.err 7010 } && test -s conftest.$ac_objext; then 7011 eval "$as_ac_Header=yes" 7012else 7013 $as_echo "$as_me: failed program was:" >&5 7014sed 's/^/| /' conftest.$ac_ext >&5 7015 7016 eval "$as_ac_Header=no" 7017fi 7018 7019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7020fi 7021ac_res=`eval 'as_val=${'$as_ac_Header'} 7022 $as_echo "$as_val"'` 7023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 7024$as_echo "$ac_res" >&6; } 7025as_val=`eval 'as_val=${'$as_ac_Header'} 7026 $as_echo "$as_val"'` 7027 if test "x$as_val" = x""yes; then 7028 cat >>confdefs.h <<_ACEOF 7029#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7030_ACEOF 7031 7032fi 7033 7034done 7035 7036 7037 7038# Set options 7039 7040 7041 7042 enable_dlopen=no 7043 7044 7045 enable_win32_dll=no 7046 7047 7048 # Check whether --enable-shared was given. 7049if test "${enable_shared+set}" = set; then 7050 enableval=$enable_shared; p=${PACKAGE-default} 7051 case $enableval in 7052 yes) enable_shared=yes ;; 7053 no) enable_shared=no ;; 7054 *) 7055 enable_shared=no 7056 # Look at the argument we got. We use all the common list separators. 7057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7058 for pkg in $enableval; do 7059 IFS="$lt_save_ifs" 7060 if test "X$pkg" = "X$p"; then 7061 enable_shared=yes 7062 fi 7063 done 7064 IFS="$lt_save_ifs" 7065 ;; 7066 esac 7067else 7068 enable_shared=yes 7069fi 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 # Check whether --enable-static was given. 7080if test "${enable_static+set}" = set; then 7081 enableval=$enable_static; p=${PACKAGE-default} 7082 case $enableval in 7083 yes) enable_static=yes ;; 7084 no) enable_static=no ;; 7085 *) 7086 enable_static=no 7087 # Look at the argument we got. We use all the common list separators. 7088 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7089 for pkg in $enableval; do 7090 IFS="$lt_save_ifs" 7091 if test "X$pkg" = "X$p"; then 7092 enable_static=yes 7093 fi 7094 done 7095 IFS="$lt_save_ifs" 7096 ;; 7097 esac 7098else 7099 enable_static=yes 7100fi 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111# Check whether --with-pic was given. 7112if test "${with_pic+set}" = set; then 7113 withval=$with_pic; pic_mode="$withval" 7114else 7115 pic_mode=default 7116fi 7117 7118 7119test -z "$pic_mode" && pic_mode=default 7120 7121 7122 7123 7124 7125 7126 7127 # Check whether --enable-fast-install was given. 7128if test "${enable_fast_install+set}" = set; then 7129 enableval=$enable_fast_install; p=${PACKAGE-default} 7130 case $enableval in 7131 yes) enable_fast_install=yes ;; 7132 no) enable_fast_install=no ;; 7133 *) 7134 enable_fast_install=no 7135 # Look at the argument we got. We use all the common list separators. 7136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7137 for pkg in $enableval; do 7138 IFS="$lt_save_ifs" 7139 if test "X$pkg" = "X$p"; then 7140 enable_fast_install=yes 7141 fi 7142 done 7143 IFS="$lt_save_ifs" 7144 ;; 7145 esac 7146else 7147 enable_fast_install=yes 7148fi 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160# This can be used to rebuild libtool when needed 7161LIBTOOL_DEPS="$ltmain" 7162 7163# Always use our own libtool. 7164LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190test -z "$LN_S" && LN_S="ln -s" 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205if test -n "${ZSH_VERSION+set}" ; then 7206 setopt NO_GLOB_SUBST 7207fi 7208 7209{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 7210$as_echo_n "checking for objdir... " >&6; } 7211if test "${lt_cv_objdir+set}" = set; then 7212 $as_echo_n "(cached) " >&6 7213else 7214 rm -f .libs 2>/dev/null 7215mkdir .libs 2>/dev/null 7216if test -d .libs; then 7217 lt_cv_objdir=.libs 7218else 7219 # MS-DOS does not allow filenames that begin with a dot. 7220 lt_cv_objdir=_libs 7221fi 7222rmdir .libs 2>/dev/null 7223fi 7224{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 7225$as_echo "$lt_cv_objdir" >&6; } 7226objdir=$lt_cv_objdir 7227 7228 7229 7230 7231 7232cat >>confdefs.h <<_ACEOF 7233#define LT_OBJDIR "$lt_cv_objdir/" 7234_ACEOF 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252case $host_os in 7253aix3*) 7254 # AIX sometimes has problems with the GCC collect2 program. For some 7255 # reason, if we set the COLLECT_NAMES environment variable, the problems 7256 # vanish in a puff of smoke. 7257 if test "X${COLLECT_NAMES+set}" != Xset; then 7258 COLLECT_NAMES= 7259 export COLLECT_NAMES 7260 fi 7261 ;; 7262esac 7263 7264# Sed substitution that helps us do robust quoting. It backslashifies 7265# metacharacters that are still active within double-quoted strings. 7266sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7267 7268# Same as above, but do not quote variable references. 7269double_quote_subst='s/\(["`\\]\)/\\\1/g' 7270 7271# Sed substitution to delay expansion of an escaped shell variable in a 7272# double_quote_subst'ed string. 7273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7274 7275# Sed substitution to delay expansion of an escaped single quote. 7276delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7277 7278# Sed substitution to avoid accidental globbing in evaled expressions 7279no_glob_subst='s/\*/\\\*/g' 7280 7281# Global variables: 7282ofile=libtool 7283can_build_shared=yes 7284 7285# All known linkers require a `.a' archive for static linking (except MSVC, 7286# which needs '.lib'). 7287libext=a 7288 7289with_gnu_ld="$lt_cv_prog_gnu_ld" 7290 7291old_CC="$CC" 7292old_CFLAGS="$CFLAGS" 7293 7294# Set sane defaults for various variables 7295test -z "$CC" && CC=cc 7296test -z "$LTCC" && LTCC=$CC 7297test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7298test -z "$LD" && LD=ld 7299test -z "$ac_objext" && ac_objext=o 7300 7301for cc_temp in $compiler""; do 7302 case $cc_temp in 7303 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7304 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7305 \-*) ;; 7306 *) break;; 7307 esac 7308done 7309cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7310 7311 7312# Only perform the check for file, if the check method requires it 7313test -z "$MAGIC_CMD" && MAGIC_CMD=file 7314case $deplibs_check_method in 7315file_magic*) 7316 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7317 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7318$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7319if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7320 $as_echo_n "(cached) " >&6 7321else 7322 case $MAGIC_CMD in 7323[\\/*] | ?:[\\/]*) 7324 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7325 ;; 7326*) 7327 lt_save_MAGIC_CMD="$MAGIC_CMD" 7328 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7329 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7330 for ac_dir in $ac_dummy; do 7331 IFS="$lt_save_ifs" 7332 test -z "$ac_dir" && ac_dir=. 7333 if test -f $ac_dir/${ac_tool_prefix}file; then 7334 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7335 if test -n "$file_magic_test_file"; then 7336 case $deplibs_check_method in 7337 "file_magic "*) 7338 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7340 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7341 $EGREP "$file_magic_regex" > /dev/null; then 7342 : 7343 else 7344 cat <<_LT_EOF 1>&2 7345 7346*** Warning: the command libtool uses to detect shared libraries, 7347*** $file_magic_cmd, produces output that libtool cannot recognize. 7348*** The result is that libtool may fail to recognize shared libraries 7349*** as such. This will affect the creation of libtool libraries that 7350*** depend on shared libraries, but programs linked with such libtool 7351*** libraries will work regardless of this problem. Nevertheless, you 7352*** may want to report the problem to your system manager and/or to 7353*** [email protected] 7354 7355_LT_EOF 7356 fi ;; 7357 esac 7358 fi 7359 break 7360 fi 7361 done 7362 IFS="$lt_save_ifs" 7363 MAGIC_CMD="$lt_save_MAGIC_CMD" 7364 ;; 7365esac 7366fi 7367 7368MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7369if test -n "$MAGIC_CMD"; then 7370 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7371$as_echo "$MAGIC_CMD" >&6; } 7372else 7373 { $as_echo "$as_me:$LINENO: result: no" >&5 7374$as_echo "no" >&6; } 7375fi 7376 7377 7378 7379 7380 7381if test -z "$lt_cv_path_MAGIC_CMD"; then 7382 if test -n "$ac_tool_prefix"; then 7383 { $as_echo "$as_me:$LINENO: checking for file" >&5 7384$as_echo_n "checking for file... " >&6; } 7385if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7386 $as_echo_n "(cached) " >&6 7387else 7388 case $MAGIC_CMD in 7389[\\/*] | ?:[\\/]*) 7390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7391 ;; 7392*) 7393 lt_save_MAGIC_CMD="$MAGIC_CMD" 7394 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7395 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7396 for ac_dir in $ac_dummy; do 7397 IFS="$lt_save_ifs" 7398 test -z "$ac_dir" && ac_dir=. 7399 if test -f $ac_dir/file; then 7400 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7401 if test -n "$file_magic_test_file"; then 7402 case $deplibs_check_method in 7403 "file_magic "*) 7404 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7406 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7407 $EGREP "$file_magic_regex" > /dev/null; then 7408 : 7409 else 7410 cat <<_LT_EOF 1>&2 7411 7412*** Warning: the command libtool uses to detect shared libraries, 7413*** $file_magic_cmd, produces output that libtool cannot recognize. 7414*** The result is that libtool may fail to recognize shared libraries 7415*** as such. This will affect the creation of libtool libraries that 7416*** depend on shared libraries, but programs linked with such libtool 7417*** libraries will work regardless of this problem. Nevertheless, you 7418*** may want to report the problem to your system manager and/or to 7419*** [email protected] 7420 7421_LT_EOF 7422 fi ;; 7423 esac 7424 fi 7425 break 7426 fi 7427 done 7428 IFS="$lt_save_ifs" 7429 MAGIC_CMD="$lt_save_MAGIC_CMD" 7430 ;; 7431esac 7432fi 7433 7434MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7435if test -n "$MAGIC_CMD"; then 7436 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7437$as_echo "$MAGIC_CMD" >&6; } 7438else 7439 { $as_echo "$as_me:$LINENO: result: no" >&5 7440$as_echo "no" >&6; } 7441fi 7442 7443 7444 else 7445 MAGIC_CMD=: 7446 fi 7447fi 7448 7449 fi 7450 ;; 7451esac 7452 7453# Use C for the default configuration in the libtool script 7454 7455lt_save_CC="$CC" 7456ac_ext=c 7457ac_cpp='$CPP $CPPFLAGS' 7458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7460ac_compiler_gnu=$ac_cv_c_compiler_gnu 7461 7462 7463# Source file extension for C test sources. 7464ac_ext=c 7465 7466# Object file extension for compiled C test sources. 7467objext=o 7468objext=$objext 7469 7470# Code to be used in simple compile tests 7471lt_simple_compile_test_code="int some_variable = 0;" 7472 7473# Code to be used in simple link tests 7474lt_simple_link_test_code='int main(){return(0);}' 7475 7476 7477 7478 7479 7480 7481 7482# If no C compiler was specified, use CC. 7483LTCC=${LTCC-"$CC"} 7484 7485# If no C compiler flags were specified, use CFLAGS. 7486LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7487 7488# Allow CC to be a program name with arguments. 7489compiler=$CC 7490 7491# Save the default compiler, since it gets overwritten when the other 7492# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7493compiler_DEFAULT=$CC 7494 7495# save warnings/boilerplate of simple test code 7496ac_outfile=conftest.$ac_objext 7497echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7498eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7499_lt_compiler_boilerplate=`cat conftest.err` 7500$RM conftest* 7501 7502ac_outfile=conftest.$ac_objext 7503echo "$lt_simple_link_test_code" >conftest.$ac_ext 7504eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7505_lt_linker_boilerplate=`cat conftest.err` 7506$RM -r conftest* 7507 7508 7509if test -n "$compiler"; then 7510 7511lt_prog_compiler_no_builtin_flag= 7512 7513if test "$GCC" = yes; then 7514 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7515 7516 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7517$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7518if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7519 $as_echo_n "(cached) " >&6 7520else 7521 lt_cv_prog_compiler_rtti_exceptions=no 7522 ac_outfile=conftest.$ac_objext 7523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7524 lt_compiler_flag="-fno-rtti -fno-exceptions" 7525 # Insert the option either (1) after the last *FLAGS variable, or 7526 # (2) before a word containing "conftest.", or (3) at the end. 7527 # Note that $ac_compile itself does not contain backslashes and begins 7528 # with a dollar sign (not a hyphen), so the echo should work correctly. 7529 # The option is referenced via a variable to avoid confusing sed. 7530 lt_compile=`echo "$ac_compile" | $SED \ 7531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7533 -e 's:$: $lt_compiler_flag:'` 7534 (eval echo "\"\$as_me:7534: $lt_compile\"" >&5) 7535 (eval "$lt_compile" 2>conftest.err) 7536 ac_status=$? 7537 cat conftest.err >&5 7538 echo "$as_me:7538: \$? = $ac_status" >&5 7539 if (exit $ac_status) && test -s "$ac_outfile"; then 7540 # The compiler can only warn and ignore the option if not recognized 7541 # So say no if there are warnings other than the usual output. 7542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7545 lt_cv_prog_compiler_rtti_exceptions=yes 7546 fi 7547 fi 7548 $RM conftest* 7549 7550fi 7551{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7552$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7553 7554if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7556else 7557 : 7558fi 7559 7560fi 7561 7562 7563 7564 7565 7566 7567 lt_prog_compiler_wl= 7568lt_prog_compiler_pic= 7569lt_prog_compiler_static= 7570 7571{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7572$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7573 7574 if test "$GCC" = yes; then 7575 lt_prog_compiler_wl='-Wl,' 7576 lt_prog_compiler_static='-static' 7577 7578 case $host_os in 7579 aix*) 7580 # All AIX code is PIC. 7581 if test "$host_cpu" = ia64; then 7582 # AIX 5 now supports IA64 processor 7583 lt_prog_compiler_static='-Bstatic' 7584 fi 7585 ;; 7586 7587 amigaos*) 7588 case $host_cpu in 7589 powerpc) 7590 # see comment about AmigaOS4 .so support 7591 lt_prog_compiler_pic='-fPIC' 7592 ;; 7593 m68k) 7594 # FIXME: we need at least 68020 code to build shared libraries, but 7595 # adding the `-m68020' flag to GCC prevents building anything better, 7596 # like `-m68040'. 7597 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7598 ;; 7599 esac 7600 ;; 7601 7602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7603 # PIC is the default for these OSes. 7604 ;; 7605 7606 mingw* | cygwin* | pw32* | os2* | cegcc*) 7607 # This hack is so that the source file can tell whether it is being 7608 # built for inclusion in a dll (and should export symbols for example). 7609 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7610 # (--disable-auto-import) libraries 7611 lt_prog_compiler_pic='-DDLL_EXPORT' 7612 ;; 7613 7614 darwin* | rhapsody*) 7615 # PIC is the default on this platform 7616 # Common symbols not allowed in MH_DYLIB files 7617 lt_prog_compiler_pic='-fno-common' 7618 ;; 7619 7620 hpux*) 7621 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7622 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7623 # sets the default TLS model and affects inlining. 7624 case $host_cpu in 7625 hppa*64*) 7626 # +Z the default 7627 ;; 7628 *) 7629 lt_prog_compiler_pic='-fPIC' 7630 ;; 7631 esac 7632 ;; 7633 7634 interix[3-9]*) 7635 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7636 # Instead, we relocate shared libraries at runtime. 7637 ;; 7638 7639 msdosdjgpp*) 7640 # Just because we use GCC doesn't mean we suddenly get shared libraries 7641 # on systems that don't support them. 7642 lt_prog_compiler_can_build_shared=no 7643 enable_shared=no 7644 ;; 7645 7646 *nto* | *qnx*) 7647 # QNX uses GNU C++, but need to define -shared option too, otherwise 7648 # it will coredump. 7649 lt_prog_compiler_pic='-fPIC -shared' 7650 ;; 7651 7652 sysv4*MP*) 7653 if test -d /usr/nec; then 7654 lt_prog_compiler_pic=-Kconform_pic 7655 fi 7656 ;; 7657 7658 *) 7659 lt_prog_compiler_pic='-fPIC' 7660 ;; 7661 esac 7662 else 7663 # PORTME Check for flag to pass linker flags through the system compiler. 7664 case $host_os in 7665 aix*) 7666 lt_prog_compiler_wl='-Wl,' 7667 if test "$host_cpu" = ia64; then 7668 # AIX 5 now supports IA64 processor 7669 lt_prog_compiler_static='-Bstatic' 7670 else 7671 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7672 fi 7673 ;; 7674 7675 mingw* | cygwin* | pw32* | os2* | cegcc*) 7676 # This hack is so that the source file can tell whether it is being 7677 # built for inclusion in a dll (and should export symbols for example). 7678 lt_prog_compiler_pic='-DDLL_EXPORT' 7679 ;; 7680 7681 hpux9* | hpux10* | hpux11*) 7682 lt_prog_compiler_wl='-Wl,' 7683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7684 # not for PA HP-UX. 7685 case $host_cpu in 7686 hppa*64*|ia64*) 7687 # +Z the default 7688 ;; 7689 *) 7690 lt_prog_compiler_pic='+Z' 7691 ;; 7692 esac 7693 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7694 lt_prog_compiler_static='${wl}-a ${wl}archive' 7695 ;; 7696 7697 irix5* | irix6* | nonstopux*) 7698 lt_prog_compiler_wl='-Wl,' 7699 # PIC (with -KPIC) is the default. 7700 lt_prog_compiler_static='-non_shared' 7701 ;; 7702 7703 linux* | k*bsd*-gnu) 7704 case $cc_basename in 7705 # old Intel for x86_64 which still supported -KPIC. 7706 ecc*) 7707 lt_prog_compiler_wl='-Wl,' 7708 lt_prog_compiler_pic='-KPIC' 7709 lt_prog_compiler_static='-static' 7710 ;; 7711 # icc used to be incompatible with GCC. 7712 # ICC 10 doesn't accept -KPIC any more. 7713 icc* | ifort*) 7714 lt_prog_compiler_wl='-Wl,' 7715 lt_prog_compiler_pic='-fPIC' 7716 lt_prog_compiler_static='-static' 7717 ;; 7718 # Lahey Fortran 8.1. 7719 lf95*) 7720 lt_prog_compiler_wl='-Wl,' 7721 lt_prog_compiler_pic='--shared' 7722 lt_prog_compiler_static='--static' 7723 ;; 7724 pgcc* | pgf77* | pgf90* | pgf95*) 7725 # Portland Group compilers (*not* the Pentium gcc compiler, 7726 # which looks to be a dead project) 7727 lt_prog_compiler_wl='-Wl,' 7728 lt_prog_compiler_pic='-fpic' 7729 lt_prog_compiler_static='-Bstatic' 7730 ;; 7731 ccc*) 7732 lt_prog_compiler_wl='-Wl,' 7733 # All Alpha code is PIC. 7734 lt_prog_compiler_static='-non_shared' 7735 ;; 7736 xl*) 7737 # IBM XL C 8.0/Fortran 10.1 on PPC 7738 lt_prog_compiler_wl='-Wl,' 7739 lt_prog_compiler_pic='-qpic' 7740 lt_prog_compiler_static='-qstaticlink' 7741 ;; 7742 *) 7743 case `$CC -V 2>&1 | sed 5q` in 7744 *Sun\ C*) 7745 # Sun C 5.9 7746 lt_prog_compiler_pic='-KPIC' 7747 lt_prog_compiler_static='-Bstatic' 7748 lt_prog_compiler_wl='-Wl,' 7749 ;; 7750 *Sun\ F*) 7751 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7752 lt_prog_compiler_pic='-KPIC' 7753 lt_prog_compiler_static='-Bstatic' 7754 lt_prog_compiler_wl='' 7755 ;; 7756 esac 7757 ;; 7758 esac 7759 ;; 7760 7761 newsos6) 7762 lt_prog_compiler_pic='-KPIC' 7763 lt_prog_compiler_static='-Bstatic' 7764 ;; 7765 7766 *nto* | *qnx*) 7767 # QNX uses GNU C++, but need to define -shared option too, otherwise 7768 # it will coredump. 7769 lt_prog_compiler_pic='-fPIC -shared' 7770 ;; 7771 7772 osf3* | osf4* | osf5*) 7773 lt_prog_compiler_wl='-Wl,' 7774 # All OSF/1 code is PIC. 7775 lt_prog_compiler_static='-non_shared' 7776 ;; 7777 7778 rdos*) 7779 lt_prog_compiler_static='-non_shared' 7780 ;; 7781 7782 solaris*) 7783 lt_prog_compiler_pic='-KPIC' 7784 lt_prog_compiler_static='-Bstatic' 7785 case $cc_basename in 7786 f77* | f90* | f95*) 7787 lt_prog_compiler_wl='-Qoption ld ';; 7788 *) 7789 lt_prog_compiler_wl='-Wl,';; 7790 esac 7791 ;; 7792 7793 sunos4*) 7794 lt_prog_compiler_wl='-Qoption ld ' 7795 lt_prog_compiler_pic='-PIC' 7796 lt_prog_compiler_static='-Bstatic' 7797 ;; 7798 7799 sysv4 | sysv4.2uw2* | sysv4.3*) 7800 lt_prog_compiler_wl='-Wl,' 7801 lt_prog_compiler_pic='-KPIC' 7802 lt_prog_compiler_static='-Bstatic' 7803 ;; 7804 7805 sysv4*MP*) 7806 if test -d /usr/nec ;then 7807 lt_prog_compiler_pic='-Kconform_pic' 7808 lt_prog_compiler_static='-Bstatic' 7809 fi 7810 ;; 7811 7812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7813 lt_prog_compiler_wl='-Wl,' 7814 lt_prog_compiler_pic='-KPIC' 7815 lt_prog_compiler_static='-Bstatic' 7816 ;; 7817 7818 unicos*) 7819 lt_prog_compiler_wl='-Wl,' 7820 lt_prog_compiler_can_build_shared=no 7821 ;; 7822 7823 uts4*) 7824 lt_prog_compiler_pic='-pic' 7825 lt_prog_compiler_static='-Bstatic' 7826 ;; 7827 7828 *) 7829 lt_prog_compiler_can_build_shared=no 7830 ;; 7831 esac 7832 fi 7833 7834case $host_os in 7835 # For platforms which do not support PIC, -DPIC is meaningless: 7836 *djgpp*) 7837 lt_prog_compiler_pic= 7838 ;; 7839 *) 7840 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7841 ;; 7842esac 7843{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7844$as_echo "$lt_prog_compiler_pic" >&6; } 7845 7846 7847 7848 7849 7850 7851# 7852# Check to make sure the PIC flag actually works. 7853# 7854if test -n "$lt_prog_compiler_pic"; then 7855 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7856$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7857if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7858 $as_echo_n "(cached) " >&6 7859else 7860 lt_cv_prog_compiler_pic_works=no 7861 ac_outfile=conftest.$ac_objext 7862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7863 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7864 # Insert the option either (1) after the last *FLAGS variable, or 7865 # (2) before a word containing "conftest.", or (3) at the end. 7866 # Note that $ac_compile itself does not contain backslashes and begins 7867 # with a dollar sign (not a hyphen), so the echo should work correctly. 7868 # The option is referenced via a variable to avoid confusing sed. 7869 lt_compile=`echo "$ac_compile" | $SED \ 7870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7872 -e 's:$: $lt_compiler_flag:'` 7873 (eval echo "\"\$as_me:7873: $lt_compile\"" >&5) 7874 (eval "$lt_compile" 2>conftest.err) 7875 ac_status=$? 7876 cat conftest.err >&5 7877 echo "$as_me:7877: \$? = $ac_status" >&5 7878 if (exit $ac_status) && test -s "$ac_outfile"; then 7879 # The compiler can only warn and ignore the option if not recognized 7880 # So say no if there are warnings other than the usual output. 7881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7883 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7884 lt_cv_prog_compiler_pic_works=yes 7885 fi 7886 fi 7887 $RM conftest* 7888 7889fi 7890{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7891$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7892 7893if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7894 case $lt_prog_compiler_pic in 7895 "" | " "*) ;; 7896 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7897 esac 7898else 7899 lt_prog_compiler_pic= 7900 lt_prog_compiler_can_build_shared=no 7901fi 7902 7903fi 7904 7905 7906 7907 7908 7909 7910# 7911# Check to make sure the static flag actually works. 7912# 7913wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7914{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7915$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7916if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7917 $as_echo_n "(cached) " >&6 7918else 7919 lt_cv_prog_compiler_static_works=no 7920 save_LDFLAGS="$LDFLAGS" 7921 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7922 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7923 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7924 # The linker can only warn and ignore the option if not recognized 7925 # So say no if there are warnings 7926 if test -s conftest.err; then 7927 # Append any errors to the config.log. 7928 cat conftest.err 1>&5 7929 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7931 if diff conftest.exp conftest.er2 >/dev/null; then 7932 lt_cv_prog_compiler_static_works=yes 7933 fi 7934 else 7935 lt_cv_prog_compiler_static_works=yes 7936 fi 7937 fi 7938 $RM -r conftest* 7939 LDFLAGS="$save_LDFLAGS" 7940 7941fi 7942{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7943$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7944 7945if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7946 : 7947else 7948 lt_prog_compiler_static= 7949fi 7950 7951 7952 7953 7954 7955 7956 7957 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7958$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7959if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7960 $as_echo_n "(cached) " >&6 7961else 7962 lt_cv_prog_compiler_c_o=no 7963 $RM -r conftest 2>/dev/null 7964 mkdir conftest 7965 cd conftest 7966 mkdir out 7967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7968 7969 lt_compiler_flag="-o out/conftest2.$ac_objext" 7970 # Insert the option either (1) after the last *FLAGS variable, or 7971 # (2) before a word containing "conftest.", or (3) at the end. 7972 # Note that $ac_compile itself does not contain backslashes and begins 7973 # with a dollar sign (not a hyphen), so the echo should work correctly. 7974 lt_compile=`echo "$ac_compile" | $SED \ 7975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7977 -e 's:$: $lt_compiler_flag:'` 7978 (eval echo "\"\$as_me:7978: $lt_compile\"" >&5) 7979 (eval "$lt_compile" 2>out/conftest.err) 7980 ac_status=$? 7981 cat out/conftest.err >&5 7982 echo "$as_me:7982: \$? = $ac_status" >&5 7983 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7984 then 7985 # The compiler can only warn and ignore the option if not recognized 7986 # So say no if there are warnings 7987 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7988 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7989 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7990 lt_cv_prog_compiler_c_o=yes 7991 fi 7992 fi 7993 chmod u+w . 2>&5 7994 $RM conftest* 7995 # SGI C++ compiler will create directory out/ii_files/ for 7996 # template instantiation 7997 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7998 $RM out/* && rmdir out 7999 cd .. 8000 $RM -r conftest 8001 $RM conftest* 8002 8003fi 8004{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8005$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8006 8007 8008 8009 8010 8011 8012 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8014if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8015 $as_echo_n "(cached) " >&6 8016else 8017 lt_cv_prog_compiler_c_o=no 8018 $RM -r conftest 2>/dev/null 8019 mkdir conftest 8020 cd conftest 8021 mkdir out 8022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8023 8024 lt_compiler_flag="-o out/conftest2.$ac_objext" 8025 # Insert the option either (1) after the last *FLAGS variable, or 8026 # (2) before a word containing "conftest.", or (3) at the end. 8027 # Note that $ac_compile itself does not contain backslashes and begins 8028 # with a dollar sign (not a hyphen), so the echo should work correctly. 8029 lt_compile=`echo "$ac_compile" | $SED \ 8030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8032 -e 's:$: $lt_compiler_flag:'` 8033 (eval echo "\"\$as_me:8033: $lt_compile\"" >&5) 8034 (eval "$lt_compile" 2>out/conftest.err) 8035 ac_status=$? 8036 cat out/conftest.err >&5 8037 echo "$as_me:8037: \$? = $ac_status" >&5 8038 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8039 then 8040 # The compiler can only warn and ignore the option if not recognized 8041 # So say no if there are warnings 8042 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8045 lt_cv_prog_compiler_c_o=yes 8046 fi 8047 fi 8048 chmod u+w . 2>&5 8049 $RM conftest* 8050 # SGI C++ compiler will create directory out/ii_files/ for 8051 # template instantiation 8052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8053 $RM out/* && rmdir out 8054 cd .. 8055 $RM -r conftest 8056 $RM conftest* 8057 8058fi 8059{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 8060$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8061 8062 8063 8064 8065hard_links="nottested" 8066if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8067 # do not overwrite the value of need_locks provided by the user 8068 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 8069$as_echo_n "checking if we can lock with hard links... " >&6; } 8070 hard_links=yes 8071 $RM conftest* 8072 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8073 touch conftest.a 8074 ln conftest.a conftest.b 2>&5 || hard_links=no 8075 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8076 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 8077$as_echo "$hard_links" >&6; } 8078 if test "$hard_links" = no; then 8079 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8080$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8081 need_locks=warn 8082 fi 8083else 8084 need_locks=no 8085fi 8086 8087 8088 8089 8090 8091 8092 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8093$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8094 8095 runpath_var= 8096 allow_undefined_flag= 8097 always_export_symbols=no 8098 archive_cmds= 8099 archive_expsym_cmds= 8100 compiler_needs_object=no 8101 enable_shared_with_static_runtimes=no 8102 export_dynamic_flag_spec= 8103 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8104 hardcode_automatic=no 8105 hardcode_direct=no 8106 hardcode_direct_absolute=no 8107 hardcode_libdir_flag_spec= 8108 hardcode_libdir_flag_spec_ld= 8109 hardcode_libdir_separator= 8110 hardcode_minus_L=no 8111 hardcode_shlibpath_var=unsupported 8112 inherit_rpath=no 8113 link_all_deplibs=unknown 8114 module_cmds= 8115 module_expsym_cmds= 8116 old_archive_from_new_cmds= 8117 old_archive_from_expsyms_cmds= 8118 thread_safe_flag_spec= 8119 whole_archive_flag_spec= 8120 # include_expsyms should be a list of space-separated symbols to be *always* 8121 # included in the symbol list 8122 include_expsyms= 8123 # exclude_expsyms can be an extended regexp of symbols to exclude 8124 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8125 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8126 # as well as any symbol that contains `d'. 8127 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8128 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8129 # platforms (ab)use it in PIC code, but their linkers get confused if 8130 # the symbol is explicitly referenced. Since portable code cannot 8131 # rely on this symbol name, it's probably fine to never include it in 8132 # preloaded symbol tables. 8133 # Exclude shared library initialization/finalization symbols. 8134 extract_expsyms_cmds= 8135 8136 case $host_os in 8137 cygwin* | mingw* | pw32* | cegcc*) 8138 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8139 # When not using gcc, we currently assume that we are using 8140 # Microsoft Visual C++. 8141 if test "$GCC" != yes; then 8142 with_gnu_ld=no 8143 fi 8144 ;; 8145 interix*) 8146 # we just hope/assume this is gcc and not c89 (= MSVC++) 8147 with_gnu_ld=yes 8148 ;; 8149 openbsd*) 8150 with_gnu_ld=no 8151 ;; 8152 esac 8153 8154 ld_shlibs=yes 8155 if test "$with_gnu_ld" = yes; then 8156 # If archive_cmds runs LD, not CC, wlarc should be empty 8157 wlarc='${wl}' 8158 8159 # Set some defaults for GNU ld with shared library support. These 8160 # are reset later if shared libraries are not supported. Putting them 8161 # here allows them to be overridden if necessary. 8162 runpath_var=LD_RUN_PATH 8163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8164 export_dynamic_flag_spec='${wl}--export-dynamic' 8165 # ancient GNU ld didn't support --whole-archive et. al. 8166 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8167 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8168 else 8169 whole_archive_flag_spec= 8170 fi 8171 supports_anon_versioning=no 8172 case `$LD -v 2>&1` in 8173 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8176 *\ 2.11.*) ;; # other 2.11 versions 8177 *) supports_anon_versioning=yes ;; 8178 esac 8179 8180 # See if GNU ld supports shared libraries. 8181 case $host_os in 8182 aix[3-9]*) 8183 # On AIX/PPC, the GNU linker is very broken 8184 if test "$host_cpu" != ia64; then 8185 ld_shlibs=no 8186 cat <<_LT_EOF 1>&2 8187 8188*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8189*** to be unable to reliably create shared libraries on AIX. 8190*** Therefore, libtool is disabling shared libraries support. If you 8191*** really care for shared libraries, you may want to modify your PATH 8192*** so that a non-GNU linker is found, and then restart. 8193 8194_LT_EOF 8195 fi 8196 ;; 8197 8198 amigaos*) 8199 case $host_cpu in 8200 powerpc) 8201 # see comment about AmigaOS4 .so support 8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8203 archive_expsym_cmds='' 8204 ;; 8205 m68k) 8206 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)' 8207 hardcode_libdir_flag_spec='-L$libdir' 8208 hardcode_minus_L=yes 8209 ;; 8210 esac 8211 ;; 8212 8213 beos*) 8214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8215 allow_undefined_flag=unsupported 8216 # Joseph Beckenbach <[email protected]> says some releases of gcc 8217 # support --undefined. This deserves some investigation. FIXME 8218 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8219 else 8220 ld_shlibs=no 8221 fi 8222 ;; 8223 8224 cygwin* | mingw* | pw32* | cegcc*) 8225 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8226 # as there is no search path for DLLs. 8227 hardcode_libdir_flag_spec='-L$libdir' 8228 allow_undefined_flag=unsupported 8229 always_export_symbols=no 8230 enable_shared_with_static_runtimes=yes 8231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8232 8233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8235 # If the export-symbols file already is a .def file (1st line 8236 # is EXPORTS), use it as is; otherwise, prepend... 8237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8238 cp $export_symbols $output_objdir/$soname.def; 8239 else 8240 echo EXPORTS > $output_objdir/$soname.def; 8241 cat $export_symbols >> $output_objdir/$soname.def; 8242 fi~ 8243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8244 else 8245 ld_shlibs=no 8246 fi 8247 ;; 8248 8249 interix[3-9]*) 8250 hardcode_direct=no 8251 hardcode_shlibpath_var=no 8252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8253 export_dynamic_flag_spec='${wl}-E' 8254 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8255 # Instead, shared libraries are loaded at an image base (0x10000000 by 8256 # default) and relocated if they conflict, which is a slow very memory 8257 # consuming and fragmenting process. To avoid this, we pick a random, 8258 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8259 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8261 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' 8262 ;; 8263 8264 gnu* | linux* | tpf* | k*bsd*-gnu) 8265 tmp_diet=no 8266 if test "$host_os" = linux-dietlibc; then 8267 case $cc_basename in 8268 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8269 esac 8270 fi 8271 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8272 && test "$tmp_diet" = no 8273 then 8274 tmp_addflag= 8275 tmp_sharedflag='-shared' 8276 case $cc_basename,$host_cpu in 8277 pgcc*) # Portland Group C compiler 8278 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8279 tmp_addflag=' $pic_flag' 8280 ;; 8281 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8282 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8283 tmp_addflag=' $pic_flag -Mnomain' ;; 8284 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8285 tmp_addflag=' -i_dynamic' ;; 8286 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8287 tmp_addflag=' -i_dynamic -nofor_main' ;; 8288 ifc* | ifort*) # Intel Fortran compiler 8289 tmp_addflag=' -nofor_main' ;; 8290 lf95*) # Lahey Fortran 8.1 8291 whole_archive_flag_spec= 8292 tmp_sharedflag='--shared' ;; 8293 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8294 tmp_sharedflag='-qmkshrobj' 8295 tmp_addflag= ;; 8296 esac 8297 case `$CC -V 2>&1 | sed 5q` in 8298 *Sun\ C*) # Sun C 5.9 8299 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8300 compiler_needs_object=yes 8301 tmp_sharedflag='-G' ;; 8302 *Sun\ F*) # Sun Fortran 8.3 8303 tmp_sharedflag='-G' ;; 8304 esac 8305 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8306 8307 if test "x$supports_anon_versioning" = xyes; then 8308 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8310 echo "local: *; };" >> $output_objdir/$libname.ver~ 8311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8312 fi 8313 8314 case $cc_basename in 8315 xlf*) 8316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8317 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8318 hardcode_libdir_flag_spec= 8319 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8320 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8321 if test "x$supports_anon_versioning" = xyes; then 8322 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8324 echo "local: *; };" >> $output_objdir/$libname.ver~ 8325 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8326 fi 8327 ;; 8328 esac 8329 else 8330 ld_shlibs=no 8331 fi 8332 ;; 8333 8334 netbsd*) 8335 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8336 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8337 wlarc= 8338 else 8339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8341 fi 8342 ;; 8343 8344 solaris*) 8345 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8346 ld_shlibs=no 8347 cat <<_LT_EOF 1>&2 8348 8349*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8350*** create shared libraries on Solaris systems. Therefore, libtool 8351*** is disabling shared libraries support. We urge you to upgrade GNU 8352*** binutils to release 2.9.1 or newer. Another option is to modify 8353*** your PATH or compiler configuration so that the native linker is 8354*** used, and then restart. 8355 8356_LT_EOF 8357 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8360 else 8361 ld_shlibs=no 8362 fi 8363 ;; 8364 8365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8366 case `$LD -v 2>&1` in 8367 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8368 ld_shlibs=no 8369 cat <<_LT_EOF 1>&2 8370 8371*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8372*** reliably create shared libraries on SCO systems. Therefore, libtool 8373*** is disabling shared libraries support. We urge you to upgrade GNU 8374*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8375*** your PATH or compiler configuration so that the native linker is 8376*** used, and then restart. 8377 8378_LT_EOF 8379 ;; 8380 *) 8381 # For security reasons, it is highly recommended that you always 8382 # use absolute paths for naming shared libraries, and exclude the 8383 # DT_RUNPATH tag from executables and libraries. But doing so 8384 # requires that you compile everything twice, which is a pain. 8385 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8389 else 8390 ld_shlibs=no 8391 fi 8392 ;; 8393 esac 8394 ;; 8395 8396 sunos4*) 8397 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8398 wlarc= 8399 hardcode_direct=yes 8400 hardcode_shlibpath_var=no 8401 ;; 8402 8403 *) 8404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8407 else 8408 ld_shlibs=no 8409 fi 8410 ;; 8411 esac 8412 8413 if test "$ld_shlibs" = no; then 8414 runpath_var= 8415 hardcode_libdir_flag_spec= 8416 export_dynamic_flag_spec= 8417 whole_archive_flag_spec= 8418 fi 8419 else 8420 # PORTME fill in a description of your system's linker (not GNU ld) 8421 case $host_os in 8422 aix3*) 8423 allow_undefined_flag=unsupported 8424 always_export_symbols=yes 8425 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' 8426 # Note: this linker hardcodes the directories in LIBPATH if there 8427 # are no directories specified by -L. 8428 hardcode_minus_L=yes 8429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8430 # Neither direct hardcoding nor static linking is supported with a 8431 # broken collect2. 8432 hardcode_direct=unsupported 8433 fi 8434 ;; 8435 8436 aix[4-9]*) 8437 if test "$host_cpu" = ia64; then 8438 # On IA64, the linker does run time linking by default, so we don't 8439 # have to do anything special. 8440 aix_use_runtimelinking=no 8441 exp_sym_flag='-Bexport' 8442 no_entry_flag="" 8443 else 8444 # If we're using GNU nm, then we don't want the "-C" option. 8445 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8446 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8447 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8448 else 8449 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' 8450 fi 8451 aix_use_runtimelinking=no 8452 8453 # Test if we are trying to use run time linking or normal 8454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8455 # need to do runtime linking. 8456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8457 for ld_flag in $LDFLAGS; do 8458 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8459 aix_use_runtimelinking=yes 8460 break 8461 fi 8462 done 8463 ;; 8464 esac 8465 8466 exp_sym_flag='-bexport' 8467 no_entry_flag='-bnoentry' 8468 fi 8469 8470 # When large executables or shared objects are built, AIX ld can 8471 # have problems creating the table of contents. If linking a library 8472 # or program results in "error TOC overflow" add -mminimal-toc to 8473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8475 8476 archive_cmds='' 8477 hardcode_direct=yes 8478 hardcode_direct_absolute=yes 8479 hardcode_libdir_separator=':' 8480 link_all_deplibs=yes 8481 file_list_spec='${wl}-f,' 8482 8483 if test "$GCC" = yes; then 8484 case $host_os in aix4.[012]|aix4.[012].*) 8485 # We only want to do this on AIX 4.2 and lower, the check 8486 # below for broken collect2 doesn't work under 4.3+ 8487 collect2name=`${CC} -print-prog-name=collect2` 8488 if test -f "$collect2name" && 8489 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8490 then 8491 # We have reworked collect2 8492 : 8493 else 8494 # We have old collect2 8495 hardcode_direct=unsupported 8496 # It fails to find uninstalled libraries when the uninstalled 8497 # path is not listed in the libpath. Setting hardcode_minus_L 8498 # to unsupported forces relinking 8499 hardcode_minus_L=yes 8500 hardcode_libdir_flag_spec='-L$libdir' 8501 hardcode_libdir_separator= 8502 fi 8503 ;; 8504 esac 8505 shared_flag='-shared' 8506 if test "$aix_use_runtimelinking" = yes; then 8507 shared_flag="$shared_flag "'${wl}-G' 8508 fi 8509 else 8510 # not using gcc 8511 if test "$host_cpu" = ia64; then 8512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8513 # chokes on -Wl,-G. The following line is correct: 8514 shared_flag='-G' 8515 else 8516 if test "$aix_use_runtimelinking" = yes; then 8517 shared_flag='${wl}-G' 8518 else 8519 shared_flag='${wl}-bM:SRE' 8520 fi 8521 fi 8522 fi 8523 8524 export_dynamic_flag_spec='${wl}-bexpall' 8525 # It seems that -bexpall does not export symbols beginning with 8526 # underscore (_), so it is better to generate a list of symbols to export. 8527 always_export_symbols=yes 8528 if test "$aix_use_runtimelinking" = yes; then 8529 # Warning - without using the other runtime loading flags (-brtl), 8530 # -berok will link without error, but may produce a broken library. 8531 allow_undefined_flag='-berok' 8532 # Determine the default libpath from the value encoded in an 8533 # empty executable. 8534 cat >conftest.$ac_ext <<_ACEOF 8535/* confdefs.h. */ 8536_ACEOF 8537cat confdefs.h >>conftest.$ac_ext 8538cat >>conftest.$ac_ext <<_ACEOF 8539/* end confdefs.h. */ 8540 8541int 8542main () 8543{ 8544 8545 ; 8546 return 0; 8547} 8548_ACEOF 8549rm -f conftest.$ac_objext conftest$ac_exeext 8550if { (ac_try="$ac_link" 8551case "(($ac_try" in 8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8553 *) ac_try_echo=$ac_try;; 8554esac 8555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8556$as_echo "$ac_try_echo") >&5 8557 (eval "$ac_link") 2>conftest.er1 8558 ac_status=$? 8559 grep -v '^ *+' conftest.er1 >conftest.err 8560 rm -f conftest.er1 8561 cat conftest.err >&5 8562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8563 (exit $ac_status); } && { 8564 test -z "$ac_c_werror_flag" || 8565 test ! -s conftest.err 8566 } && test -s conftest$ac_exeext && { 8567 test "$cross_compiling" = yes || 8568 $as_test_x conftest$ac_exeext 8569 }; then 8570 8571lt_aix_libpath_sed=' 8572 /Import File Strings/,/^$/ { 8573 /^0/ { 8574 s/^0 *\(.*\)$/\1/ 8575 p 8576 } 8577 }' 8578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8579# Check for a 64-bit object if we didn't find anything. 8580if test -z "$aix_libpath"; then 8581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8582fi 8583else 8584 $as_echo "$as_me: failed program was:" >&5 8585sed 's/^/| /' conftest.$ac_ext >&5 8586 8587 8588fi 8589 8590rm -rf conftest.dSYM 8591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8592 conftest$ac_exeext conftest.$ac_ext 8593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8594 8595 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8596 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8597 else 8598 if test "$host_cpu" = ia64; then 8599 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8600 allow_undefined_flag="-z nodefs" 8601 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" 8602 else 8603 # Determine the default libpath from the value encoded in an 8604 # empty executable. 8605 cat >conftest.$ac_ext <<_ACEOF 8606/* confdefs.h. */ 8607_ACEOF 8608cat confdefs.h >>conftest.$ac_ext 8609cat >>conftest.$ac_ext <<_ACEOF 8610/* end confdefs.h. */ 8611 8612int 8613main () 8614{ 8615 8616 ; 8617 return 0; 8618} 8619_ACEOF 8620rm -f conftest.$ac_objext conftest$ac_exeext 8621if { (ac_try="$ac_link" 8622case "(($ac_try" in 8623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8624 *) ac_try_echo=$ac_try;; 8625esac 8626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8627$as_echo "$ac_try_echo") >&5 8628 (eval "$ac_link") 2>conftest.er1 8629 ac_status=$? 8630 grep -v '^ *+' conftest.er1 >conftest.err 8631 rm -f conftest.er1 8632 cat conftest.err >&5 8633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8634 (exit $ac_status); } && { 8635 test -z "$ac_c_werror_flag" || 8636 test ! -s conftest.err 8637 } && test -s conftest$ac_exeext && { 8638 test "$cross_compiling" = yes || 8639 $as_test_x conftest$ac_exeext 8640 }; then 8641 8642lt_aix_libpath_sed=' 8643 /Import File Strings/,/^$/ { 8644 /^0/ { 8645 s/^0 *\(.*\)$/\1/ 8646 p 8647 } 8648 }' 8649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8650# Check for a 64-bit object if we didn't find anything. 8651if test -z "$aix_libpath"; then 8652 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8653fi 8654else 8655 $as_echo "$as_me: failed program was:" >&5 8656sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 8659fi 8660 8661rm -rf conftest.dSYM 8662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8663 conftest$ac_exeext conftest.$ac_ext 8664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8665 8666 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8667 # Warning - without using the other run time loading flags, 8668 # -berok will link without error, but may produce a broken library. 8669 no_undefined_flag=' ${wl}-bernotok' 8670 allow_undefined_flag=' ${wl}-berok' 8671 # Exported symbols can be pulled into shared objects from archives 8672 whole_archive_flag_spec='$convenience' 8673 archive_cmds_need_lc=yes 8674 # This is similar to how AIX traditionally builds its shared libraries. 8675 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' 8676 fi 8677 fi 8678 ;; 8679 8680 amigaos*) 8681 case $host_cpu in 8682 powerpc) 8683 # see comment about AmigaOS4 .so support 8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8685 archive_expsym_cmds='' 8686 ;; 8687 m68k) 8688 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)' 8689 hardcode_libdir_flag_spec='-L$libdir' 8690 hardcode_minus_L=yes 8691 ;; 8692 esac 8693 ;; 8694 8695 bsdi[45]*) 8696 export_dynamic_flag_spec=-rdynamic 8697 ;; 8698 8699 cygwin* | mingw* | pw32* | cegcc*) 8700 # When not using gcc, we currently assume that we are using 8701 # Microsoft Visual C++. 8702 # hardcode_libdir_flag_spec is actually meaningless, as there is 8703 # no search path for DLLs. 8704 hardcode_libdir_flag_spec=' ' 8705 allow_undefined_flag=unsupported 8706 # Tell ltmain to make .lib files, not .a files. 8707 libext=lib 8708 # Tell ltmain to make .dll files, not .so files. 8709 shrext_cmds=".dll" 8710 # FIXME: Setting linknames here is a bad hack. 8711 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8712 # The linker will automatically build a .lib file if we build a DLL. 8713 old_archive_from_new_cmds='true' 8714 # FIXME: Should let the user specify the lib program. 8715 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8716 fix_srcfile_path='`cygpath -w "$srcfile"`' 8717 enable_shared_with_static_runtimes=yes 8718 ;; 8719 8720 darwin* | rhapsody*) 8721 8722 8723 archive_cmds_need_lc=no 8724 hardcode_direct=no 8725 hardcode_automatic=yes 8726 hardcode_shlibpath_var=unsupported 8727 whole_archive_flag_spec='' 8728 link_all_deplibs=yes 8729 allow_undefined_flag="$_lt_dar_allow_undefined" 8730 case $cc_basename in 8731 ifort*) _lt_dar_can_shared=yes ;; 8732 *) _lt_dar_can_shared=$GCC ;; 8733 esac 8734 if test "$_lt_dar_can_shared" = "yes"; then 8735 output_verbose_link_cmd=echo 8736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8738 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}" 8739 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}" 8740 8741 else 8742 ld_shlibs=no 8743 fi 8744 8745 ;; 8746 8747 dgux*) 8748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8749 hardcode_libdir_flag_spec='-L$libdir' 8750 hardcode_shlibpath_var=no 8751 ;; 8752 8753 freebsd1*) 8754 ld_shlibs=no 8755 ;; 8756 8757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8758 # support. Future versions do this automatically, but an explicit c++rt0.o 8759 # does not break anything, and helps significantly (at the cost of a little 8760 # extra space). 8761 freebsd2.2*) 8762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8763 hardcode_libdir_flag_spec='-R$libdir' 8764 hardcode_direct=yes 8765 hardcode_shlibpath_var=no 8766 ;; 8767 8768 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8769 freebsd2*) 8770 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8771 hardcode_direct=yes 8772 hardcode_minus_L=yes 8773 hardcode_shlibpath_var=no 8774 ;; 8775 8776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8777 freebsd* | dragonfly*) 8778 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8779 hardcode_libdir_flag_spec='-R$libdir' 8780 hardcode_direct=yes 8781 hardcode_shlibpath_var=no 8782 ;; 8783 8784 hpux9*) 8785 if test "$GCC" = yes; then 8786 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8787 else 8788 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' 8789 fi 8790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8791 hardcode_libdir_separator=: 8792 hardcode_direct=yes 8793 8794 # hardcode_minus_L: Not really in the search PATH, 8795 # but as the default location of the library. 8796 hardcode_minus_L=yes 8797 export_dynamic_flag_spec='${wl}-E' 8798 ;; 8799 8800 hpux10*) 8801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8802 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8803 else 8804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8805 fi 8806 if test "$with_gnu_ld" = no; then 8807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8808 hardcode_libdir_flag_spec_ld='+b $libdir' 8809 hardcode_libdir_separator=: 8810 hardcode_direct=yes 8811 hardcode_direct_absolute=yes 8812 export_dynamic_flag_spec='${wl}-E' 8813 # hardcode_minus_L: Not really in the search PATH, 8814 # but as the default location of the library. 8815 hardcode_minus_L=yes 8816 fi 8817 ;; 8818 8819 hpux11*) 8820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8821 case $host_cpu in 8822 hppa*64*) 8823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8824 ;; 8825 ia64*) 8826 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8827 ;; 8828 *) 8829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8830 ;; 8831 esac 8832 else 8833 case $host_cpu in 8834 hppa*64*) 8835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8836 ;; 8837 ia64*) 8838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8839 ;; 8840 *) 8841 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8842 ;; 8843 esac 8844 fi 8845 if test "$with_gnu_ld" = no; then 8846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8847 hardcode_libdir_separator=: 8848 8849 case $host_cpu in 8850 hppa*64*|ia64*) 8851 hardcode_direct=no 8852 hardcode_shlibpath_var=no 8853 ;; 8854 *) 8855 hardcode_direct=yes 8856 hardcode_direct_absolute=yes 8857 export_dynamic_flag_spec='${wl}-E' 8858 8859 # hardcode_minus_L: Not really in the search PATH, 8860 # but as the default location of the library. 8861 hardcode_minus_L=yes 8862 ;; 8863 esac 8864 fi 8865 ;; 8866 8867 irix5* | irix6* | nonstopux*) 8868 if test "$GCC" = yes; then 8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8870 # Try to use the -exported_symbol ld option, if it does not 8871 # work, assume that -exports_file does not work either and 8872 # implicitly export all symbols. 8873 save_LDFLAGS="$LDFLAGS" 8874 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8875 cat >conftest.$ac_ext <<_ACEOF 8876int foo(void) {} 8877_ACEOF 8878rm -f conftest.$ac_objext conftest$ac_exeext 8879if { (ac_try="$ac_link" 8880case "(($ac_try" in 8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8882 *) ac_try_echo=$ac_try;; 8883esac 8884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8885$as_echo "$ac_try_echo") >&5 8886 (eval "$ac_link") 2>conftest.er1 8887 ac_status=$? 8888 grep -v '^ *+' conftest.er1 >conftest.err 8889 rm -f conftest.er1 8890 cat conftest.err >&5 8891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8892 (exit $ac_status); } && { 8893 test -z "$ac_c_werror_flag" || 8894 test ! -s conftest.err 8895 } && test -s conftest$ac_exeext && { 8896 test "$cross_compiling" = yes || 8897 $as_test_x conftest$ac_exeext 8898 }; then 8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8900 8901else 8902 $as_echo "$as_me: failed program was:" >&5 8903sed 's/^/| /' conftest.$ac_ext >&5 8904 8905 8906fi 8907 8908rm -rf conftest.dSYM 8909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8910 conftest$ac_exeext conftest.$ac_ext 8911 LDFLAGS="$save_LDFLAGS" 8912 else 8913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8914 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8915 fi 8916 archive_cmds_need_lc='no' 8917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8918 hardcode_libdir_separator=: 8919 inherit_rpath=yes 8920 link_all_deplibs=yes 8921 ;; 8922 8923 netbsd*) 8924 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8926 else 8927 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8928 fi 8929 hardcode_libdir_flag_spec='-R$libdir' 8930 hardcode_direct=yes 8931 hardcode_shlibpath_var=no 8932 ;; 8933 8934 newsos6) 8935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8936 hardcode_direct=yes 8937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8938 hardcode_libdir_separator=: 8939 hardcode_shlibpath_var=no 8940 ;; 8941 8942 *nto* | *qnx*) 8943 ;; 8944 8945 openbsd*) 8946 if test -f /usr/libexec/ld.so; then 8947 hardcode_direct=yes 8948 hardcode_shlibpath_var=no 8949 hardcode_direct_absolute=yes 8950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8954 export_dynamic_flag_spec='${wl}-E' 8955 else 8956 case $host_os in 8957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8959 hardcode_libdir_flag_spec='-R$libdir' 8960 ;; 8961 *) 8962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8964 ;; 8965 esac 8966 fi 8967 else 8968 ld_shlibs=no 8969 fi 8970 ;; 8971 8972 os2*) 8973 hardcode_libdir_flag_spec='-L$libdir' 8974 hardcode_minus_L=yes 8975 allow_undefined_flag=unsupported 8976 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' 8977 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8978 ;; 8979 8980 osf3*) 8981 if test "$GCC" = yes; then 8982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8983 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8984 else 8985 allow_undefined_flag=' -expect_unresolved \*' 8986 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8987 fi 8988 archive_cmds_need_lc='no' 8989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8990 hardcode_libdir_separator=: 8991 ;; 8992 8993 osf4* | osf5*) # as osf3* with the addition of -msym flag 8994 if test "$GCC" = yes; then 8995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8996 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8998 else 8999 allow_undefined_flag=' -expect_unresolved \*' 9000 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9001 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~ 9002 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9003 9004 # Both c and cxx compiler support -rpath directly 9005 hardcode_libdir_flag_spec='-rpath $libdir' 9006 fi 9007 archive_cmds_need_lc='no' 9008 hardcode_libdir_separator=: 9009 ;; 9010 9011 solaris*) 9012 no_undefined_flag=' -z defs' 9013 if test "$GCC" = yes; then 9014 wlarc='${wl}' 9015 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9017 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9018 else 9019 case `$CC -V 2>&1` in 9020 *"Compilers 5.0"*) 9021 wlarc='' 9022 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9024 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9025 ;; 9026 *) 9027 wlarc='${wl}' 9028 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9030 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9031 ;; 9032 esac 9033 fi 9034 hardcode_libdir_flag_spec='-R$libdir' 9035 hardcode_shlibpath_var=no 9036 case $host_os in 9037 solaris2.[0-5] | solaris2.[0-5].*) ;; 9038 *) 9039 # The compiler driver will combine and reorder linker options, 9040 # but understands `-z linker_flag'. GCC discards it without `$wl', 9041 # but is careful enough not to reorder. 9042 # Supported since Solaris 2.6 (maybe 2.5.1?) 9043 if test "$GCC" = yes; then 9044 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9045 else 9046 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9047 fi 9048 ;; 9049 esac 9050 link_all_deplibs=yes 9051 ;; 9052 9053 sunos4*) 9054 if test "x$host_vendor" = xsequent; then 9055 # Use $CC to link under sequent, because it throws in some extra .o 9056 # files that make .init and .fini sections work. 9057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9058 else 9059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9060 fi 9061 hardcode_libdir_flag_spec='-L$libdir' 9062 hardcode_direct=yes 9063 hardcode_minus_L=yes 9064 hardcode_shlibpath_var=no 9065 ;; 9066 9067 sysv4) 9068 case $host_vendor in 9069 sni) 9070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9071 hardcode_direct=yes # is this really true??? 9072 ;; 9073 siemens) 9074 ## LD is ld it makes a PLAMLIB 9075 ## CC just makes a GrossModule. 9076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9077 reload_cmds='$CC -r -o $output$reload_objs' 9078 hardcode_direct=no 9079 ;; 9080 motorola) 9081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9083 ;; 9084 esac 9085 runpath_var='LD_RUN_PATH' 9086 hardcode_shlibpath_var=no 9087 ;; 9088 9089 sysv4.3*) 9090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9091 hardcode_shlibpath_var=no 9092 export_dynamic_flag_spec='-Bexport' 9093 ;; 9094 9095 sysv4*MP*) 9096 if test -d /usr/nec; then 9097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9098 hardcode_shlibpath_var=no 9099 runpath_var=LD_RUN_PATH 9100 hardcode_runpath_var=yes 9101 ld_shlibs=yes 9102 fi 9103 ;; 9104 9105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9106 no_undefined_flag='${wl}-z,text' 9107 archive_cmds_need_lc=no 9108 hardcode_shlibpath_var=no 9109 runpath_var='LD_RUN_PATH' 9110 9111 if test "$GCC" = yes; then 9112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9114 else 9115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9117 fi 9118 ;; 9119 9120 sysv5* | sco3.2v5* | sco5v6*) 9121 # Note: We can NOT use -z defs as we might desire, because we do not 9122 # link with -lc, and that would cause any symbols used from libc to 9123 # always be unresolved, which means just about no library would 9124 # ever link correctly. If we're not using GNU ld we use -z text 9125 # though, which does catch some bad symbols but isn't as heavy-handed 9126 # as -z defs. 9127 no_undefined_flag='${wl}-z,text' 9128 allow_undefined_flag='${wl}-z,nodefs' 9129 archive_cmds_need_lc=no 9130 hardcode_shlibpath_var=no 9131 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9132 hardcode_libdir_separator=':' 9133 link_all_deplibs=yes 9134 export_dynamic_flag_spec='${wl}-Bexport' 9135 runpath_var='LD_RUN_PATH' 9136 9137 if test "$GCC" = yes; then 9138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9140 else 9141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9143 fi 9144 ;; 9145 9146 uts4*) 9147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9148 hardcode_libdir_flag_spec='-L$libdir' 9149 hardcode_shlibpath_var=no 9150 ;; 9151 9152 *) 9153 ld_shlibs=no 9154 ;; 9155 esac 9156 9157 if test x$host_vendor = xsni; then 9158 case $host in 9159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9160 export_dynamic_flag_spec='${wl}-Blargedynsym' 9161 ;; 9162 esac 9163 fi 9164 fi 9165 9166{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 9167$as_echo "$ld_shlibs" >&6; } 9168test "$ld_shlibs" = no && can_build_shared=no 9169 9170with_gnu_ld=$with_gnu_ld 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186# 9187# Do we need to explicitly link libc? 9188# 9189case "x$archive_cmds_need_lc" in 9190x|xyes) 9191 # Assume -lc should be added 9192 archive_cmds_need_lc=yes 9193 9194 if test "$enable_shared" = yes && test "$GCC" = yes; then 9195 case $archive_cmds in 9196 *'~'*) 9197 # FIXME: we may have to deal with multi-command sequences. 9198 ;; 9199 '$CC '*) 9200 # Test whether the compiler implicitly links with -lc since on some 9201 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9202 # to ld, don't add -lc before -lgcc. 9203 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 9204$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9205 $RM conftest* 9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9207 9208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9209 (eval $ac_compile) 2>&5 9210 ac_status=$? 9211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); } 2>conftest.err; then 9213 soname=conftest 9214 lib=conftest 9215 libobjs=conftest.$ac_objext 9216 deplibs= 9217 wl=$lt_prog_compiler_wl 9218 pic_flag=$lt_prog_compiler_pic 9219 compiler_flags=-v 9220 linker_flags=-v 9221 verstring= 9222 output_objdir=. 9223 libname=conftest 9224 lt_save_allow_undefined_flag=$allow_undefined_flag 9225 allow_undefined_flag= 9226 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 9227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9228 ac_status=$? 9229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9230 (exit $ac_status); } 9231 then 9232 archive_cmds_need_lc=no 9233 else 9234 archive_cmds_need_lc=yes 9235 fi 9236 allow_undefined_flag=$lt_save_allow_undefined_flag 9237 else 9238 cat conftest.err 1>&5 9239 fi 9240 $RM conftest* 9241 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 9242$as_echo "$archive_cmds_need_lc" >&6; } 9243 ;; 9244 esac 9245 fi 9246 ;; 9247esac 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9406$as_echo_n "checking dynamic linker characteristics... " >&6; } 9407 9408if test "$GCC" = yes; then 9409 case $host_os in 9410 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9411 *) lt_awk_arg="/^libraries:/" ;; 9412 esac 9413 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9414 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9415 # if the path contains ";" then we assume it to be the separator 9416 # otherwise default to the standard path separator (i.e. ":") - it is 9417 # assumed that no part of a normal pathname contains ";" but that should 9418 # okay in the real world where ";" in dirpaths is itself problematic. 9419 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9420 else 9421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9422 fi 9423 # Ok, now we have the path, separated by spaces, we can step through it 9424 # and add multilib dir if necessary. 9425 lt_tmp_lt_search_path_spec= 9426 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9427 for lt_sys_path in $lt_search_path_spec; do 9428 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9430 else 9431 test -d "$lt_sys_path" && \ 9432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9433 fi 9434 done 9435 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9436BEGIN {RS=" "; FS="/|\n";} { 9437 lt_foo=""; 9438 lt_count=0; 9439 for (lt_i = NF; lt_i > 0; lt_i--) { 9440 if ($lt_i != "" && $lt_i != ".") { 9441 if ($lt_i == "..") { 9442 lt_count++; 9443 } else { 9444 if (lt_count == 0) { 9445 lt_foo="/" $lt_i lt_foo; 9446 } else { 9447 lt_count--; 9448 } 9449 } 9450 } 9451 } 9452 if (lt_foo != "") { lt_freq[lt_foo]++; } 9453 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9454}'` 9455 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9456else 9457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9458fi 9459library_names_spec= 9460libname_spec='lib$name' 9461soname_spec= 9462shrext_cmds=".so" 9463postinstall_cmds= 9464postuninstall_cmds= 9465finish_cmds= 9466finish_eval= 9467shlibpath_var= 9468shlibpath_overrides_runpath=unknown 9469version_type=none 9470dynamic_linker="$host_os ld.so" 9471sys_lib_dlsearch_path_spec="/lib /usr/lib" 9472need_lib_prefix=unknown 9473hardcode_into_libs=no 9474 9475# when you set need_version to no, make sure it does not cause -set_version 9476# flags to be left without arguments 9477need_version=unknown 9478 9479case $host_os in 9480aix3*) 9481 version_type=linux 9482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9483 shlibpath_var=LIBPATH 9484 9485 # AIX 3 has no versioning support, so we append a major version to the name. 9486 soname_spec='${libname}${release}${shared_ext}$major' 9487 ;; 9488 9489aix[4-9]*) 9490 version_type=linux 9491 need_lib_prefix=no 9492 need_version=no 9493 hardcode_into_libs=yes 9494 if test "$host_cpu" = ia64; then 9495 # AIX 5 supports IA64 9496 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9497 shlibpath_var=LD_LIBRARY_PATH 9498 else 9499 # With GCC up to 2.95.x, collect2 would create an import file 9500 # for dependence libraries. The import file would start with 9501 # the line `#! .'. This would cause the generated library to 9502 # depend on `.', always an invalid library. This was fixed in 9503 # development snapshots of GCC prior to 3.0. 9504 case $host_os in 9505 aix4 | aix4.[01] | aix4.[01].*) 9506 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9507 echo ' yes ' 9508 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9509 : 9510 else 9511 can_build_shared=no 9512 fi 9513 ;; 9514 esac 9515 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9516 # soname into executable. Probably we can add versioning support to 9517 # collect2, so additional links can be useful in future. 9518 if test "$aix_use_runtimelinking" = yes; then 9519 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9520 # instead of lib<name>.a to let people know that these are not 9521 # typical AIX shared libraries. 9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9523 else 9524 # We preserve .a as extension for shared libraries through AIX4.2 9525 # and later when we are not doing run time linking. 9526 library_names_spec='${libname}${release}.a $libname.a' 9527 soname_spec='${libname}${release}${shared_ext}$major' 9528 fi 9529 shlibpath_var=LIBPATH 9530 fi 9531 ;; 9532 9533amigaos*) 9534 case $host_cpu in 9535 powerpc) 9536 # Since July 2007 AmigaOS4 officially supports .so libraries. 9537 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9539 ;; 9540 m68k) 9541 library_names_spec='$libname.ixlibrary $libname.a' 9542 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9543 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 9544 ;; 9545 esac 9546 ;; 9547 9548beos*) 9549 library_names_spec='${libname}${shared_ext}' 9550 dynamic_linker="$host_os ld.so" 9551 shlibpath_var=LIBRARY_PATH 9552 ;; 9553 9554bsdi[45]*) 9555 version_type=linux 9556 need_version=no 9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9558 soname_spec='${libname}${release}${shared_ext}$major' 9559 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9560 shlibpath_var=LD_LIBRARY_PATH 9561 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9562 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9563 # the default ld.so.conf also contains /usr/contrib/lib and 9564 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9565 # libtool to hard-code these into programs 9566 ;; 9567 9568cygwin* | mingw* | pw32* | cegcc*) 9569 version_type=windows 9570 shrext_cmds=".dll" 9571 need_version=no 9572 need_lib_prefix=no 9573 9574 case $GCC,$host_os in 9575 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9576 library_names_spec='$libname.dll.a' 9577 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9578 postinstall_cmds='base_file=`basename \${file}`~ 9579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9580 dldir=$destdir/`dirname \$dlpath`~ 9581 test -d \$dldir || mkdir -p \$dldir~ 9582 $install_prog $dir/$dlname \$dldir/$dlname~ 9583 chmod a+x \$dldir/$dlname~ 9584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9586 fi' 9587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9588 dlpath=$dir/\$dldll~ 9589 $RM \$dlpath' 9590 shlibpath_overrides_runpath=yes 9591 9592 case $host_os in 9593 cygwin*) 9594 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9597 ;; 9598 mingw* | cegcc*) 9599 # MinGW DLLs use traditional 'lib' prefix 9600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9601 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9602 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9603 # It is most probably a Windows format PATH printed by 9604 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9605 # path with ; separators, and with drive letters. We can handle the 9606 # drive letters (cygwin fileutils understands them), so leave them, 9607 # especially as we might pass files found there to a mingw objdump, 9608 # which wouldn't understand a cygwinified path. Ahh. 9609 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9610 else 9611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9612 fi 9613 ;; 9614 pw32*) 9615 # pw32 DLLs use 'pw' prefix rather than 'lib' 9616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9617 ;; 9618 esac 9619 ;; 9620 9621 *) 9622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9623 ;; 9624 esac 9625 dynamic_linker='Win32 ld.exe' 9626 # FIXME: first we should search . and the directory the executable is in 9627 shlibpath_var=PATH 9628 ;; 9629 9630darwin* | rhapsody*) 9631 dynamic_linker="$host_os dyld" 9632 version_type=darwin 9633 need_lib_prefix=no 9634 need_version=no 9635 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9636 soname_spec='${libname}${release}${major}$shared_ext' 9637 shlibpath_overrides_runpath=yes 9638 shlibpath_var=DYLD_LIBRARY_PATH 9639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9640 9641 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9642 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9643 ;; 9644 9645dgux*) 9646 version_type=linux 9647 need_lib_prefix=no 9648 need_version=no 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9650 soname_spec='${libname}${release}${shared_ext}$major' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 ;; 9653 9654freebsd1*) 9655 dynamic_linker=no 9656 ;; 9657 9658freebsd* | dragonfly*) 9659 # DragonFly does not have aout. When/if they implement a new 9660 # versioning mechanism, adjust this. 9661 if test -x /usr/bin/objformat; then 9662 objformat=`/usr/bin/objformat` 9663 else 9664 case $host_os in 9665 freebsd[123]*) objformat=aout ;; 9666 *) objformat=elf ;; 9667 esac 9668 fi 9669 version_type=freebsd-$objformat 9670 case $version_type in 9671 freebsd-elf*) 9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9673 need_version=no 9674 need_lib_prefix=no 9675 ;; 9676 freebsd-*) 9677 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9678 need_version=yes 9679 ;; 9680 esac 9681 shlibpath_var=LD_LIBRARY_PATH 9682 case $host_os in 9683 freebsd2*) 9684 shlibpath_overrides_runpath=yes 9685 ;; 9686 freebsd3.[01]* | freebsdelf3.[01]*) 9687 shlibpath_overrides_runpath=yes 9688 hardcode_into_libs=yes 9689 ;; 9690 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9691 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9692 shlibpath_overrides_runpath=no 9693 hardcode_into_libs=yes 9694 ;; 9695 *) # from 4.6 on, and DragonFly 9696 shlibpath_overrides_runpath=yes 9697 hardcode_into_libs=yes 9698 ;; 9699 esac 9700 ;; 9701 9702gnu*) 9703 version_type=linux 9704 need_lib_prefix=no 9705 need_version=no 9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9707 soname_spec='${libname}${release}${shared_ext}$major' 9708 shlibpath_var=LD_LIBRARY_PATH 9709 hardcode_into_libs=yes 9710 ;; 9711 9712hpux9* | hpux10* | hpux11*) 9713 # Give a soname corresponding to the major version so that dld.sl refuses to 9714 # link against other versions. 9715 version_type=sunos 9716 need_lib_prefix=no 9717 need_version=no 9718 case $host_cpu in 9719 ia64*) 9720 shrext_cmds='.so' 9721 hardcode_into_libs=yes 9722 dynamic_linker="$host_os dld.so" 9723 shlibpath_var=LD_LIBRARY_PATH 9724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9726 soname_spec='${libname}${release}${shared_ext}$major' 9727 if test "X$HPUX_IA64_MODE" = X32; then 9728 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9729 else 9730 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9731 fi 9732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9733 ;; 9734 hppa*64*) 9735 shrext_cmds='.sl' 9736 hardcode_into_libs=yes 9737 dynamic_linker="$host_os dld.sl" 9738 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9741 soname_spec='${libname}${release}${shared_ext}$major' 9742 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9743 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9744 ;; 9745 *) 9746 shrext_cmds='.sl' 9747 dynamic_linker="$host_os dld.sl" 9748 shlibpath_var=SHLIB_PATH 9749 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9751 soname_spec='${libname}${release}${shared_ext}$major' 9752 ;; 9753 esac 9754 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9755 postinstall_cmds='chmod 555 $lib' 9756 ;; 9757 9758interix[3-9]*) 9759 version_type=linux 9760 need_lib_prefix=no 9761 need_version=no 9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9763 soname_spec='${libname}${release}${shared_ext}$major' 9764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9765 shlibpath_var=LD_LIBRARY_PATH 9766 shlibpath_overrides_runpath=no 9767 hardcode_into_libs=yes 9768 ;; 9769 9770irix5* | irix6* | nonstopux*) 9771 case $host_os in 9772 nonstopux*) version_type=nonstopux ;; 9773 *) 9774 if test "$lt_cv_prog_gnu_ld" = yes; then 9775 version_type=linux 9776 else 9777 version_type=irix 9778 fi ;; 9779 esac 9780 need_lib_prefix=no 9781 need_version=no 9782 soname_spec='${libname}${release}${shared_ext}$major' 9783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9784 case $host_os in 9785 irix5* | nonstopux*) 9786 libsuff= shlibsuff= 9787 ;; 9788 *) 9789 case $LD in # libtool.m4 will add one of these switches to LD 9790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9791 libsuff= shlibsuff= libmagic=32-bit;; 9792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9793 libsuff=32 shlibsuff=N32 libmagic=N32;; 9794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9795 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9796 *) libsuff= shlibsuff= libmagic=never-match;; 9797 esac 9798 ;; 9799 esac 9800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9801 shlibpath_overrides_runpath=no 9802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9804 hardcode_into_libs=yes 9805 ;; 9806 9807# No shared lib support for Linux oldld, aout, or coff. 9808linux*oldld* | linux*aout* | linux*coff*) 9809 dynamic_linker=no 9810 ;; 9811 9812# This must be Linux ELF. 9813linux* | k*bsd*-gnu) 9814 version_type=linux 9815 need_lib_prefix=no 9816 need_version=no 9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9818 soname_spec='${libname}${release}${shared_ext}$major' 9819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9820 shlibpath_var=LD_LIBRARY_PATH 9821 shlibpath_overrides_runpath=no 9822 # Some binutils ld are patched to set DT_RUNPATH 9823 save_LDFLAGS=$LDFLAGS 9824 save_libdir=$libdir 9825 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9826 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9827 cat >conftest.$ac_ext <<_ACEOF 9828/* confdefs.h. */ 9829_ACEOF 9830cat confdefs.h >>conftest.$ac_ext 9831cat >>conftest.$ac_ext <<_ACEOF 9832/* end confdefs.h. */ 9833 9834int 9835main () 9836{ 9837 9838 ; 9839 return 0; 9840} 9841_ACEOF 9842rm -f conftest.$ac_objext conftest$ac_exeext 9843if { (ac_try="$ac_link" 9844case "(($ac_try" in 9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9846 *) ac_try_echo=$ac_try;; 9847esac 9848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9849$as_echo "$ac_try_echo") >&5 9850 (eval "$ac_link") 2>conftest.er1 9851 ac_status=$? 9852 grep -v '^ *+' conftest.er1 >conftest.err 9853 rm -f conftest.er1 9854 cat conftest.err >&5 9855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9856 (exit $ac_status); } && { 9857 test -z "$ac_c_werror_flag" || 9858 test ! -s conftest.err 9859 } && test -s conftest$ac_exeext && { 9860 test "$cross_compiling" = yes || 9861 $as_test_x conftest$ac_exeext 9862 }; then 9863 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 9864 shlibpath_overrides_runpath=yes 9865fi 9866 9867else 9868 $as_echo "$as_me: failed program was:" >&5 9869sed 's/^/| /' conftest.$ac_ext >&5 9870 9871 9872fi 9873 9874rm -rf conftest.dSYM 9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9876 conftest$ac_exeext conftest.$ac_ext 9877 LDFLAGS=$save_LDFLAGS 9878 libdir=$save_libdir 9879 9880 # This implies no fast_install, which is unacceptable. 9881 # Some rework will be needed to allow for fast_install 9882 # before this can be enabled. 9883 hardcode_into_libs=yes 9884 9885 # Add ABI-specific directories to the system library path. 9886 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9887 9888 # Append ld.so.conf contents to the search path 9889 if test -f /etc/ld.so.conf; then 9890 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;/^$/d' | tr '\n' ' '` 9891 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9892 fi 9893 9894 # We used to test for /lib/ld.so.1 and disable shared libraries on 9895 # powerpc, because MkLinux only supported shared libraries with the 9896 # GNU dynamic linker. Since this was broken with cross compilers, 9897 # most powerpc-linux boxes support dynamic linking these days and 9898 # people can always --disable-shared, the test was removed, and we 9899 # assume the GNU/Linux dynamic linker is in use. 9900 dynamic_linker='GNU/Linux ld.so' 9901 ;; 9902 9903netbsd*) 9904 version_type=sunos 9905 need_lib_prefix=no 9906 need_version=no 9907 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9910 dynamic_linker='NetBSD (a.out) ld.so' 9911 else 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9913 soname_spec='${libname}${release}${shared_ext}$major' 9914 dynamic_linker='NetBSD ld.elf_so' 9915 fi 9916 shlibpath_var=LD_LIBRARY_PATH 9917 shlibpath_overrides_runpath=yes 9918 hardcode_into_libs=yes 9919 ;; 9920 9921newsos6) 9922 version_type=linux 9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9924 shlibpath_var=LD_LIBRARY_PATH 9925 shlibpath_overrides_runpath=yes 9926 ;; 9927 9928*nto* | *qnx*) 9929 version_type=qnx 9930 need_lib_prefix=no 9931 need_version=no 9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9933 soname_spec='${libname}${release}${shared_ext}$major' 9934 shlibpath_var=LD_LIBRARY_PATH 9935 shlibpath_overrides_runpath=no 9936 hardcode_into_libs=yes 9937 dynamic_linker='ldqnx.so' 9938 ;; 9939 9940openbsd*) 9941 version_type=sunos 9942 sys_lib_dlsearch_path_spec="/usr/lib" 9943 need_lib_prefix=no 9944 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9945 case $host_os in 9946 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9947 *) need_version=no ;; 9948 esac 9949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9951 shlibpath_var=LD_LIBRARY_PATH 9952 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9953 case $host_os in 9954 openbsd2.[89] | openbsd2.[89].*) 9955 shlibpath_overrides_runpath=no 9956 ;; 9957 *) 9958 shlibpath_overrides_runpath=yes 9959 ;; 9960 esac 9961 else 9962 shlibpath_overrides_runpath=yes 9963 fi 9964 ;; 9965 9966os2*) 9967 libname_spec='$name' 9968 shrext_cmds=".dll" 9969 need_lib_prefix=no 9970 library_names_spec='$libname${shared_ext} $libname.a' 9971 dynamic_linker='OS/2 ld.exe' 9972 shlibpath_var=LIBPATH 9973 ;; 9974 9975osf3* | osf4* | osf5*) 9976 version_type=osf 9977 need_lib_prefix=no 9978 need_version=no 9979 soname_spec='${libname}${release}${shared_ext}$major' 9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9981 shlibpath_var=LD_LIBRARY_PATH 9982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9983 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9984 ;; 9985 9986rdos*) 9987 dynamic_linker=no 9988 ;; 9989 9990solaris*) 9991 version_type=linux 9992 need_lib_prefix=no 9993 need_version=no 9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9995 soname_spec='${libname}${release}${shared_ext}$major' 9996 shlibpath_var=LD_LIBRARY_PATH 9997 shlibpath_overrides_runpath=yes 9998 hardcode_into_libs=yes 9999 # ldd complains unless libraries are executable 10000 postinstall_cmds='chmod +x $lib' 10001 ;; 10002 10003sunos4*) 10004 version_type=sunos 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=yes 10009 if test "$with_gnu_ld" = yes; then 10010 need_lib_prefix=no 10011 fi 10012 need_version=yes 10013 ;; 10014 10015sysv4 | sysv4.3*) 10016 version_type=linux 10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10018 soname_spec='${libname}${release}${shared_ext}$major' 10019 shlibpath_var=LD_LIBRARY_PATH 10020 case $host_vendor in 10021 sni) 10022 shlibpath_overrides_runpath=no 10023 need_lib_prefix=no 10024 runpath_var=LD_RUN_PATH 10025 ;; 10026 siemens) 10027 need_lib_prefix=no 10028 ;; 10029 motorola) 10030 need_lib_prefix=no 10031 need_version=no 10032 shlibpath_overrides_runpath=no 10033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10034 ;; 10035 esac 10036 ;; 10037 10038sysv4*MP*) 10039 if test -d /usr/nec ;then 10040 version_type=linux 10041 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10042 soname_spec='$libname${shared_ext}.$major' 10043 shlibpath_var=LD_LIBRARY_PATH 10044 fi 10045 ;; 10046 10047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10048 version_type=freebsd-elf 10049 need_lib_prefix=no 10050 need_version=no 10051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10052 soname_spec='${libname}${release}${shared_ext}$major' 10053 shlibpath_var=LD_LIBRARY_PATH 10054 shlibpath_overrides_runpath=yes 10055 hardcode_into_libs=yes 10056 if test "$with_gnu_ld" = yes; then 10057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10058 else 10059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10060 case $host_os in 10061 sco3.2v5*) 10062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10063 ;; 10064 esac 10065 fi 10066 sys_lib_dlsearch_path_spec='/usr/lib' 10067 ;; 10068 10069tpf*) 10070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10071 version_type=linux 10072 need_lib_prefix=no 10073 need_version=no 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 shlibpath_var=LD_LIBRARY_PATH 10076 shlibpath_overrides_runpath=no 10077 hardcode_into_libs=yes 10078 ;; 10079 10080uts4*) 10081 version_type=linux 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 shlibpath_var=LD_LIBRARY_PATH 10085 ;; 10086 10087*) 10088 dynamic_linker=no 10089 ;; 10090esac 10091{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10092$as_echo "$dynamic_linker" >&6; } 10093test "$dynamic_linker" = no && can_build_shared=no 10094 10095variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10096if test "$GCC" = yes; then 10097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10098fi 10099 10100if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10102fi 10103if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10104 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10105fi 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10194$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10195hardcode_action= 10196if test -n "$hardcode_libdir_flag_spec" || 10197 test -n "$runpath_var" || 10198 test "X$hardcode_automatic" = "Xyes" ; then 10199 10200 # We can hardcode non-existent directories. 10201 if test "$hardcode_direct" != no && 10202 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10203 # have to relink, otherwise we might link with an installed library 10204 # when we should be linking with a yet-to-be-installed one 10205 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10206 test "$hardcode_minus_L" != no; then 10207 # Linking always hardcodes the temporary library directory. 10208 hardcode_action=relink 10209 else 10210 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10211 hardcode_action=immediate 10212 fi 10213else 10214 # We cannot hardcode anything, or else we can only hardcode existing 10215 # directories. 10216 hardcode_action=unsupported 10217fi 10218{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 10219$as_echo "$hardcode_action" >&6; } 10220 10221if test "$hardcode_action" = relink || 10222 test "$inherit_rpath" = yes; then 10223 # Fast installation is not supported 10224 enable_fast_install=no 10225elif test "$shlibpath_overrides_runpath" = yes || 10226 test "$enable_shared" = no; then 10227 # Fast installation is not necessary 10228 enable_fast_install=needless 10229fi 10230 10231 10232 10233 10234 10235 10236 if test "x$enable_dlopen" != xyes; then 10237 enable_dlopen=unknown 10238 enable_dlopen_self=unknown 10239 enable_dlopen_self_static=unknown 10240else 10241 lt_cv_dlopen=no 10242 lt_cv_dlopen_libs= 10243 10244 case $host_os in 10245 beos*) 10246 lt_cv_dlopen="load_add_on" 10247 lt_cv_dlopen_libs= 10248 lt_cv_dlopen_self=yes 10249 ;; 10250 10251 mingw* | pw32* | cegcc*) 10252 lt_cv_dlopen="LoadLibrary" 10253 lt_cv_dlopen_libs= 10254 ;; 10255 10256 cygwin*) 10257 lt_cv_dlopen="dlopen" 10258 lt_cv_dlopen_libs= 10259 ;; 10260 10261 darwin*) 10262 # if libdl is installed we need to link against it 10263 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10264$as_echo_n "checking for dlopen in -ldl... " >&6; } 10265if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10266 $as_echo_n "(cached) " >&6 10267else 10268 ac_check_lib_save_LIBS=$LIBS 10269LIBS="-ldl $LIBS" 10270cat >conftest.$ac_ext <<_ACEOF 10271/* confdefs.h. */ 10272_ACEOF 10273cat confdefs.h >>conftest.$ac_ext 10274cat >>conftest.$ac_ext <<_ACEOF 10275/* end confdefs.h. */ 10276 10277/* Override any GCC internal prototype to avoid an error. 10278 Use char because int might match the return type of a GCC 10279 builtin and then its argument prototype would still apply. */ 10280#ifdef __cplusplus 10281extern "C" 10282#endif 10283char dlopen (); 10284int 10285main () 10286{ 10287return dlopen (); 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292rm -f conftest.$ac_objext conftest$ac_exeext 10293if { (ac_try="$ac_link" 10294case "(($ac_try" in 10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10296 *) ac_try_echo=$ac_try;; 10297esac 10298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10299$as_echo "$ac_try_echo") >&5 10300 (eval "$ac_link") 2>conftest.er1 10301 ac_status=$? 10302 grep -v '^ *+' conftest.er1 >conftest.err 10303 rm -f conftest.er1 10304 cat conftest.err >&5 10305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10306 (exit $ac_status); } && { 10307 test -z "$ac_c_werror_flag" || 10308 test ! -s conftest.err 10309 } && test -s conftest$ac_exeext && { 10310 test "$cross_compiling" = yes || 10311 $as_test_x conftest$ac_exeext 10312 }; then 10313 ac_cv_lib_dl_dlopen=yes 10314else 10315 $as_echo "$as_me: failed program was:" >&5 10316sed 's/^/| /' conftest.$ac_ext >&5 10317 10318 ac_cv_lib_dl_dlopen=no 10319fi 10320 10321rm -rf conftest.dSYM 10322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10323 conftest$ac_exeext conftest.$ac_ext 10324LIBS=$ac_check_lib_save_LIBS 10325fi 10326{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10327$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10328if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10330else 10331 10332 lt_cv_dlopen="dyld" 10333 lt_cv_dlopen_libs= 10334 lt_cv_dlopen_self=yes 10335 10336fi 10337 10338 ;; 10339 10340 *) 10341 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 10342$as_echo_n "checking for shl_load... " >&6; } 10343if test "${ac_cv_func_shl_load+set}" = set; then 10344 $as_echo_n "(cached) " >&6 10345else 10346 cat >conftest.$ac_ext <<_ACEOF 10347/* confdefs.h. */ 10348_ACEOF 10349cat confdefs.h >>conftest.$ac_ext 10350cat >>conftest.$ac_ext <<_ACEOF 10351/* end confdefs.h. */ 10352/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10353 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10354#define shl_load innocuous_shl_load 10355 10356/* System header to define __stub macros and hopefully few prototypes, 10357 which can conflict with char shl_load (); below. 10358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10359 <limits.h> exists even on freestanding compilers. */ 10360 10361#ifdef __STDC__ 10362# include <limits.h> 10363#else 10364# include <assert.h> 10365#endif 10366 10367#undef shl_load 10368 10369/* Override any GCC internal prototype to avoid an error. 10370 Use char because int might match the return type of a GCC 10371 builtin and then its argument prototype would still apply. */ 10372#ifdef __cplusplus 10373extern "C" 10374#endif 10375char shl_load (); 10376/* The GNU C library defines this for functions which it implements 10377 to always fail with ENOSYS. Some functions are actually named 10378 something starting with __ and the normal name is an alias. */ 10379#if defined __stub_shl_load || defined __stub___shl_load 10380choke me 10381#endif 10382 10383int 10384main () 10385{ 10386return shl_load (); 10387 ; 10388 return 0; 10389} 10390_ACEOF 10391rm -f conftest.$ac_objext conftest$ac_exeext 10392if { (ac_try="$ac_link" 10393case "(($ac_try" in 10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10395 *) ac_try_echo=$ac_try;; 10396esac 10397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10398$as_echo "$ac_try_echo") >&5 10399 (eval "$ac_link") 2>conftest.er1 10400 ac_status=$? 10401 grep -v '^ *+' conftest.er1 >conftest.err 10402 rm -f conftest.er1 10403 cat conftest.err >&5 10404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); } && { 10406 test -z "$ac_c_werror_flag" || 10407 test ! -s conftest.err 10408 } && test -s conftest$ac_exeext && { 10409 test "$cross_compiling" = yes || 10410 $as_test_x conftest$ac_exeext 10411 }; then 10412 ac_cv_func_shl_load=yes 10413else 10414 $as_echo "$as_me: failed program was:" >&5 10415sed 's/^/| /' conftest.$ac_ext >&5 10416 10417 ac_cv_func_shl_load=no 10418fi 10419 10420rm -rf conftest.dSYM 10421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10422 conftest$ac_exeext conftest.$ac_ext 10423fi 10424{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10425$as_echo "$ac_cv_func_shl_load" >&6; } 10426if test "x$ac_cv_func_shl_load" = x""yes; then 10427 lt_cv_dlopen="shl_load" 10428else 10429 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10430$as_echo_n "checking for shl_load in -ldld... " >&6; } 10431if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10432 $as_echo_n "(cached) " >&6 10433else 10434 ac_check_lib_save_LIBS=$LIBS 10435LIBS="-ldld $LIBS" 10436cat >conftest.$ac_ext <<_ACEOF 10437/* confdefs.h. */ 10438_ACEOF 10439cat confdefs.h >>conftest.$ac_ext 10440cat >>conftest.$ac_ext <<_ACEOF 10441/* end confdefs.h. */ 10442 10443/* Override any GCC internal prototype to avoid an error. 10444 Use char because int might match the return type of a GCC 10445 builtin and then its argument prototype would still apply. */ 10446#ifdef __cplusplus 10447extern "C" 10448#endif 10449char shl_load (); 10450int 10451main () 10452{ 10453return shl_load (); 10454 ; 10455 return 0; 10456} 10457_ACEOF 10458rm -f conftest.$ac_objext conftest$ac_exeext 10459if { (ac_try="$ac_link" 10460case "(($ac_try" in 10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10462 *) ac_try_echo=$ac_try;; 10463esac 10464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10465$as_echo "$ac_try_echo") >&5 10466 (eval "$ac_link") 2>conftest.er1 10467 ac_status=$? 10468 grep -v '^ *+' conftest.er1 >conftest.err 10469 rm -f conftest.er1 10470 cat conftest.err >&5 10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10472 (exit $ac_status); } && { 10473 test -z "$ac_c_werror_flag" || 10474 test ! -s conftest.err 10475 } && test -s conftest$ac_exeext && { 10476 test "$cross_compiling" = yes || 10477 $as_test_x conftest$ac_exeext 10478 }; then 10479 ac_cv_lib_dld_shl_load=yes 10480else 10481 $as_echo "$as_me: failed program was:" >&5 10482sed 's/^/| /' conftest.$ac_ext >&5 10483 10484 ac_cv_lib_dld_shl_load=no 10485fi 10486 10487rm -rf conftest.dSYM 10488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10489 conftest$ac_exeext conftest.$ac_ext 10490LIBS=$ac_check_lib_save_LIBS 10491fi 10492{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10493$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10494if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10495 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10496else 10497 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10498$as_echo_n "checking for dlopen... " >&6; } 10499if test "${ac_cv_func_dlopen+set}" = set; then 10500 $as_echo_n "(cached) " >&6 10501else 10502 cat >conftest.$ac_ext <<_ACEOF 10503/* confdefs.h. */ 10504_ACEOF 10505cat confdefs.h >>conftest.$ac_ext 10506cat >>conftest.$ac_ext <<_ACEOF 10507/* end confdefs.h. */ 10508/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10510#define dlopen innocuous_dlopen 10511 10512/* System header to define __stub macros and hopefully few prototypes, 10513 which can conflict with char dlopen (); below. 10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10515 <limits.h> exists even on freestanding compilers. */ 10516 10517#ifdef __STDC__ 10518# include <limits.h> 10519#else 10520# include <assert.h> 10521#endif 10522 10523#undef dlopen 10524 10525/* Override any GCC internal prototype to avoid an error. 10526 Use char because int might match the return type of a GCC 10527 builtin and then its argument prototype would still apply. */ 10528#ifdef __cplusplus 10529extern "C" 10530#endif 10531char dlopen (); 10532/* The GNU C library defines this for functions which it implements 10533 to always fail with ENOSYS. Some functions are actually named 10534 something starting with __ and the normal name is an alias. */ 10535#if defined __stub_dlopen || defined __stub___dlopen 10536choke me 10537#endif 10538 10539int 10540main () 10541{ 10542return dlopen (); 10543 ; 10544 return 0; 10545} 10546_ACEOF 10547rm -f conftest.$ac_objext conftest$ac_exeext 10548if { (ac_try="$ac_link" 10549case "(($ac_try" in 10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10551 *) ac_try_echo=$ac_try;; 10552esac 10553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10554$as_echo "$ac_try_echo") >&5 10555 (eval "$ac_link") 2>conftest.er1 10556 ac_status=$? 10557 grep -v '^ *+' conftest.er1 >conftest.err 10558 rm -f conftest.er1 10559 cat conftest.err >&5 10560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10561 (exit $ac_status); } && { 10562 test -z "$ac_c_werror_flag" || 10563 test ! -s conftest.err 10564 } && test -s conftest$ac_exeext && { 10565 test "$cross_compiling" = yes || 10566 $as_test_x conftest$ac_exeext 10567 }; then 10568 ac_cv_func_dlopen=yes 10569else 10570 $as_echo "$as_me: failed program was:" >&5 10571sed 's/^/| /' conftest.$ac_ext >&5 10572 10573 ac_cv_func_dlopen=no 10574fi 10575 10576rm -rf conftest.dSYM 10577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10578 conftest$ac_exeext conftest.$ac_ext 10579fi 10580{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10581$as_echo "$ac_cv_func_dlopen" >&6; } 10582if test "x$ac_cv_func_dlopen" = x""yes; then 10583 lt_cv_dlopen="dlopen" 10584else 10585 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10586$as_echo_n "checking for dlopen in -ldl... " >&6; } 10587if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10588 $as_echo_n "(cached) " >&6 10589else 10590 ac_check_lib_save_LIBS=$LIBS 10591LIBS="-ldl $LIBS" 10592cat >conftest.$ac_ext <<_ACEOF 10593/* confdefs.h. */ 10594_ACEOF 10595cat confdefs.h >>conftest.$ac_ext 10596cat >>conftest.$ac_ext <<_ACEOF 10597/* end confdefs.h. */ 10598 10599/* Override any GCC internal prototype to avoid an error. 10600 Use char because int might match the return type of a GCC 10601 builtin and then its argument prototype would still apply. */ 10602#ifdef __cplusplus 10603extern "C" 10604#endif 10605char dlopen (); 10606int 10607main () 10608{ 10609return dlopen (); 10610 ; 10611 return 0; 10612} 10613_ACEOF 10614rm -f conftest.$ac_objext conftest$ac_exeext 10615if { (ac_try="$ac_link" 10616case "(($ac_try" in 10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10618 *) ac_try_echo=$ac_try;; 10619esac 10620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10621$as_echo "$ac_try_echo") >&5 10622 (eval "$ac_link") 2>conftest.er1 10623 ac_status=$? 10624 grep -v '^ *+' conftest.er1 >conftest.err 10625 rm -f conftest.er1 10626 cat conftest.err >&5 10627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10628 (exit $ac_status); } && { 10629 test -z "$ac_c_werror_flag" || 10630 test ! -s conftest.err 10631 } && test -s conftest$ac_exeext && { 10632 test "$cross_compiling" = yes || 10633 $as_test_x conftest$ac_exeext 10634 }; then 10635 ac_cv_lib_dl_dlopen=yes 10636else 10637 $as_echo "$as_me: failed program was:" >&5 10638sed 's/^/| /' conftest.$ac_ext >&5 10639 10640 ac_cv_lib_dl_dlopen=no 10641fi 10642 10643rm -rf conftest.dSYM 10644rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10645 conftest$ac_exeext conftest.$ac_ext 10646LIBS=$ac_check_lib_save_LIBS 10647fi 10648{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10649$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10650if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10652else 10653 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10654$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10655if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-lsvld $LIBS" 10660cat >conftest.$ac_ext <<_ACEOF 10661/* confdefs.h. */ 10662_ACEOF 10663cat confdefs.h >>conftest.$ac_ext 10664cat >>conftest.$ac_ext <<_ACEOF 10665/* end confdefs.h. */ 10666 10667/* Override any GCC internal prototype to avoid an error. 10668 Use char because int might match the return type of a GCC 10669 builtin and then its argument prototype would still apply. */ 10670#ifdef __cplusplus 10671extern "C" 10672#endif 10673char dlopen (); 10674int 10675main () 10676{ 10677return dlopen (); 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682rm -f conftest.$ac_objext conftest$ac_exeext 10683if { (ac_try="$ac_link" 10684case "(($ac_try" in 10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10686 *) ac_try_echo=$ac_try;; 10687esac 10688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10689$as_echo "$ac_try_echo") >&5 10690 (eval "$ac_link") 2>conftest.er1 10691 ac_status=$? 10692 grep -v '^ *+' conftest.er1 >conftest.err 10693 rm -f conftest.er1 10694 cat conftest.err >&5 10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10696 (exit $ac_status); } && { 10697 test -z "$ac_c_werror_flag" || 10698 test ! -s conftest.err 10699 } && test -s conftest$ac_exeext && { 10700 test "$cross_compiling" = yes || 10701 $as_test_x conftest$ac_exeext 10702 }; then 10703 ac_cv_lib_svld_dlopen=yes 10704else 10705 $as_echo "$as_me: failed program was:" >&5 10706sed 's/^/| /' conftest.$ac_ext >&5 10707 10708 ac_cv_lib_svld_dlopen=no 10709fi 10710 10711rm -rf conftest.dSYM 10712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10713 conftest$ac_exeext conftest.$ac_ext 10714LIBS=$ac_check_lib_save_LIBS 10715fi 10716{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10717$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10718if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 10719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10720else 10721 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10722$as_echo_n "checking for dld_link in -ldld... " >&6; } 10723if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10724 $as_echo_n "(cached) " >&6 10725else 10726 ac_check_lib_save_LIBS=$LIBS 10727LIBS="-ldld $LIBS" 10728cat >conftest.$ac_ext <<_ACEOF 10729/* confdefs.h. */ 10730_ACEOF 10731cat confdefs.h >>conftest.$ac_ext 10732cat >>conftest.$ac_ext <<_ACEOF 10733/* end confdefs.h. */ 10734 10735/* Override any GCC internal prototype to avoid an error. 10736 Use char because int might match the return type of a GCC 10737 builtin and then its argument prototype would still apply. */ 10738#ifdef __cplusplus 10739extern "C" 10740#endif 10741char dld_link (); 10742int 10743main () 10744{ 10745return dld_link (); 10746 ; 10747 return 0; 10748} 10749_ACEOF 10750rm -f conftest.$ac_objext conftest$ac_exeext 10751if { (ac_try="$ac_link" 10752case "(($ac_try" in 10753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10754 *) ac_try_echo=$ac_try;; 10755esac 10756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10757$as_echo "$ac_try_echo") >&5 10758 (eval "$ac_link") 2>conftest.er1 10759 ac_status=$? 10760 grep -v '^ *+' conftest.er1 >conftest.err 10761 rm -f conftest.er1 10762 cat conftest.err >&5 10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10764 (exit $ac_status); } && { 10765 test -z "$ac_c_werror_flag" || 10766 test ! -s conftest.err 10767 } && test -s conftest$ac_exeext && { 10768 test "$cross_compiling" = yes || 10769 $as_test_x conftest$ac_exeext 10770 }; then 10771 ac_cv_lib_dld_dld_link=yes 10772else 10773 $as_echo "$as_me: failed program was:" >&5 10774sed 's/^/| /' conftest.$ac_ext >&5 10775 10776 ac_cv_lib_dld_dld_link=no 10777fi 10778 10779rm -rf conftest.dSYM 10780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10781 conftest$ac_exeext conftest.$ac_ext 10782LIBS=$ac_check_lib_save_LIBS 10783fi 10784{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10785$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10786if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 10787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10788fi 10789 10790 10791fi 10792 10793 10794fi 10795 10796 10797fi 10798 10799 10800fi 10801 10802 10803fi 10804 10805 ;; 10806 esac 10807 10808 if test "x$lt_cv_dlopen" != xno; then 10809 enable_dlopen=yes 10810 else 10811 enable_dlopen=no 10812 fi 10813 10814 case $lt_cv_dlopen in 10815 dlopen) 10816 save_CPPFLAGS="$CPPFLAGS" 10817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10818 10819 save_LDFLAGS="$LDFLAGS" 10820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10821 10822 save_LIBS="$LIBS" 10823 LIBS="$lt_cv_dlopen_libs $LIBS" 10824 10825 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10826$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10827if test "${lt_cv_dlopen_self+set}" = set; then 10828 $as_echo_n "(cached) " >&6 10829else 10830 if test "$cross_compiling" = yes; then : 10831 lt_cv_dlopen_self=cross 10832else 10833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10834 lt_status=$lt_dlunknown 10835 cat > conftest.$ac_ext <<_LT_EOF 10836#line 10836 "configure" 10837#include "confdefs.h" 10838 10839#if HAVE_DLFCN_H 10840#include <dlfcn.h> 10841#endif 10842 10843#include <stdio.h> 10844 10845#ifdef RTLD_GLOBAL 10846# define LT_DLGLOBAL RTLD_GLOBAL 10847#else 10848# ifdef DL_GLOBAL 10849# define LT_DLGLOBAL DL_GLOBAL 10850# else 10851# define LT_DLGLOBAL 0 10852# endif 10853#endif 10854 10855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10856 find out it does not work in some platform. */ 10857#ifndef LT_DLLAZY_OR_NOW 10858# ifdef RTLD_LAZY 10859# define LT_DLLAZY_OR_NOW RTLD_LAZY 10860# else 10861# ifdef DL_LAZY 10862# define LT_DLLAZY_OR_NOW DL_LAZY 10863# else 10864# ifdef RTLD_NOW 10865# define LT_DLLAZY_OR_NOW RTLD_NOW 10866# else 10867# ifdef DL_NOW 10868# define LT_DLLAZY_OR_NOW DL_NOW 10869# else 10870# define LT_DLLAZY_OR_NOW 0 10871# endif 10872# endif 10873# endif 10874# endif 10875#endif 10876 10877void fnord() { int i=42;} 10878int main () 10879{ 10880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10881 int status = $lt_dlunknown; 10882 10883 if (self) 10884 { 10885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10886 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10887 /* dlclose (self); */ 10888 } 10889 else 10890 puts (dlerror ()); 10891 10892 return status; 10893} 10894_LT_EOF 10895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10896 (eval $ac_link) 2>&5 10897 ac_status=$? 10898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10899 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10900 (./conftest; exit; ) >&5 2>/dev/null 10901 lt_status=$? 10902 case x$lt_status in 10903 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10904 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10905 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10906 esac 10907 else : 10908 # compilation failed 10909 lt_cv_dlopen_self=no 10910 fi 10911fi 10912rm -fr conftest* 10913 10914 10915fi 10916{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10917$as_echo "$lt_cv_dlopen_self" >&6; } 10918 10919 if test "x$lt_cv_dlopen_self" = xyes; then 10920 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10921 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10922$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10923if test "${lt_cv_dlopen_self_static+set}" = set; then 10924 $as_echo_n "(cached) " >&6 10925else 10926 if test "$cross_compiling" = yes; then : 10927 lt_cv_dlopen_self_static=cross 10928else 10929 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10930 lt_status=$lt_dlunknown 10931 cat > conftest.$ac_ext <<_LT_EOF 10932#line 10932 "configure" 10933#include "confdefs.h" 10934 10935#if HAVE_DLFCN_H 10936#include <dlfcn.h> 10937#endif 10938 10939#include <stdio.h> 10940 10941#ifdef RTLD_GLOBAL 10942# define LT_DLGLOBAL RTLD_GLOBAL 10943#else 10944# ifdef DL_GLOBAL 10945# define LT_DLGLOBAL DL_GLOBAL 10946# else 10947# define LT_DLGLOBAL 0 10948# endif 10949#endif 10950 10951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10952 find out it does not work in some platform. */ 10953#ifndef LT_DLLAZY_OR_NOW 10954# ifdef RTLD_LAZY 10955# define LT_DLLAZY_OR_NOW RTLD_LAZY 10956# else 10957# ifdef DL_LAZY 10958# define LT_DLLAZY_OR_NOW DL_LAZY 10959# else 10960# ifdef RTLD_NOW 10961# define LT_DLLAZY_OR_NOW RTLD_NOW 10962# else 10963# ifdef DL_NOW 10964# define LT_DLLAZY_OR_NOW DL_NOW 10965# else 10966# define LT_DLLAZY_OR_NOW 0 10967# endif 10968# endif 10969# endif 10970# endif 10971#endif 10972 10973void fnord() { int i=42;} 10974int main () 10975{ 10976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10977 int status = $lt_dlunknown; 10978 10979 if (self) 10980 { 10981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10982 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10983 /* dlclose (self); */ 10984 } 10985 else 10986 puts (dlerror ()); 10987 10988 return status; 10989} 10990_LT_EOF 10991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10992 (eval $ac_link) 2>&5 10993 ac_status=$? 10994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10995 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10996 (./conftest; exit; ) >&5 2>/dev/null 10997 lt_status=$? 10998 case x$lt_status in 10999 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11000 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11001 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11002 esac 11003 else : 11004 # compilation failed 11005 lt_cv_dlopen_self_static=no 11006 fi 11007fi 11008rm -fr conftest* 11009 11010 11011fi 11012{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 11013$as_echo "$lt_cv_dlopen_self_static" >&6; } 11014 fi 11015 11016 CPPFLAGS="$save_CPPFLAGS" 11017 LDFLAGS="$save_LDFLAGS" 11018 LIBS="$save_LIBS" 11019 ;; 11020 esac 11021 11022 case $lt_cv_dlopen_self in 11023 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11024 *) enable_dlopen_self=unknown ;; 11025 esac 11026 11027 case $lt_cv_dlopen_self_static in 11028 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11029 *) enable_dlopen_self_static=unknown ;; 11030 esac 11031fi 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049striplib= 11050old_striplib= 11051{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11052$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11053if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11054 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11055 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11056 { $as_echo "$as_me:$LINENO: result: yes" >&5 11057$as_echo "yes" >&6; } 11058else 11059# FIXME - insert some real tests, host_os isn't really good enough 11060 case $host_os in 11061 darwin*) 11062 if test -n "$STRIP" ; then 11063 striplib="$STRIP -x" 11064 old_striplib="$STRIP -S" 11065 { $as_echo "$as_me:$LINENO: result: yes" >&5 11066$as_echo "yes" >&6; } 11067 else 11068 { $as_echo "$as_me:$LINENO: result: no" >&5 11069$as_echo "no" >&6; } 11070 fi 11071 ;; 11072 *) 11073 { $as_echo "$as_me:$LINENO: result: no" >&5 11074$as_echo "no" >&6; } 11075 ;; 11076 esac 11077fi 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 # Report which library types will actually be built 11091 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 11092$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11093 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 11094$as_echo "$can_build_shared" >&6; } 11095 11096 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 11097$as_echo_n "checking whether to build shared libraries... " >&6; } 11098 test "$can_build_shared" = "no" && enable_shared=no 11099 11100 # On AIX, shared libraries and static libraries use the same namespace, and 11101 # are all built from PIC. 11102 case $host_os in 11103 aix3*) 11104 test "$enable_shared" = yes && enable_static=no 11105 if test -n "$RANLIB"; then 11106 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11107 postinstall_cmds='$RANLIB $lib' 11108 fi 11109 ;; 11110 11111 aix[4-9]*) 11112 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11113 test "$enable_shared" = yes && enable_static=no 11114 fi 11115 ;; 11116 esac 11117 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 11118$as_echo "$enable_shared" >&6; } 11119 11120 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 11121$as_echo_n "checking whether to build static libraries... " >&6; } 11122 # Make sure either enable_shared or enable_static is yes. 11123 test "$enable_shared" = yes || enable_static=yes 11124 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 11125$as_echo "$enable_static" >&6; } 11126 11127 11128 11129 11130fi 11131ac_ext=c 11132ac_cpp='$CPP $CPPFLAGS' 11133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11135ac_compiler_gnu=$ac_cv_c_compiler_gnu 11136 11137CC="$lt_save_CC" 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 ac_config_commands="$ac_config_commands libtool" 11152 11153 11154 11155 11156# Only expand once: 11157 11158 11159 11160# Checks for header files. 11161{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 11162$as_echo_n "checking for ANSI C header files... " >&6; } 11163if test "${ac_cv_header_stdc+set}" = set; then 11164 $as_echo_n "(cached) " >&6 11165else 11166 cat >conftest.$ac_ext <<_ACEOF 11167/* confdefs.h. */ 11168_ACEOF 11169cat confdefs.h >>conftest.$ac_ext 11170cat >>conftest.$ac_ext <<_ACEOF 11171/* end confdefs.h. */ 11172#include <stdlib.h> 11173#include <stdarg.h> 11174#include <string.h> 11175#include <float.h> 11176 11177int 11178main () 11179{ 11180 11181 ; 11182 return 0; 11183} 11184_ACEOF 11185rm -f conftest.$ac_objext 11186if { (ac_try="$ac_compile" 11187case "(($ac_try" in 11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11189 *) ac_try_echo=$ac_try;; 11190esac 11191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11192$as_echo "$ac_try_echo") >&5 11193 (eval "$ac_compile") 2>conftest.er1 11194 ac_status=$? 11195 grep -v '^ *+' conftest.er1 >conftest.err 11196 rm -f conftest.er1 11197 cat conftest.err >&5 11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11199 (exit $ac_status); } && { 11200 test -z "$ac_c_werror_flag" || 11201 test ! -s conftest.err 11202 } && test -s conftest.$ac_objext; then 11203 ac_cv_header_stdc=yes 11204else 11205 $as_echo "$as_me: failed program was:" >&5 11206sed 's/^/| /' conftest.$ac_ext >&5 11207 11208 ac_cv_header_stdc=no 11209fi 11210 11211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11212 11213if test $ac_cv_header_stdc = yes; then 11214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11215 cat >conftest.$ac_ext <<_ACEOF 11216/* confdefs.h. */ 11217_ACEOF 11218cat confdefs.h >>conftest.$ac_ext 11219cat >>conftest.$ac_ext <<_ACEOF 11220/* end confdefs.h. */ 11221#include <string.h> 11222 11223_ACEOF 11224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11225 $EGREP "memchr" >/dev/null 2>&1; then 11226 : 11227else 11228 ac_cv_header_stdc=no 11229fi 11230rm -f conftest* 11231 11232fi 11233 11234if test $ac_cv_header_stdc = yes; then 11235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11236 cat >conftest.$ac_ext <<_ACEOF 11237/* confdefs.h. */ 11238_ACEOF 11239cat confdefs.h >>conftest.$ac_ext 11240cat >>conftest.$ac_ext <<_ACEOF 11241/* end confdefs.h. */ 11242#include <stdlib.h> 11243 11244_ACEOF 11245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11246 $EGREP "free" >/dev/null 2>&1; then 11247 : 11248else 11249 ac_cv_header_stdc=no 11250fi 11251rm -f conftest* 11252 11253fi 11254 11255if test $ac_cv_header_stdc = yes; then 11256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11257 if test "$cross_compiling" = yes; then 11258 : 11259else 11260 cat >conftest.$ac_ext <<_ACEOF 11261/* confdefs.h. */ 11262_ACEOF 11263cat confdefs.h >>conftest.$ac_ext 11264cat >>conftest.$ac_ext <<_ACEOF 11265/* end confdefs.h. */ 11266#include <ctype.h> 11267#include <stdlib.h> 11268#if ((' ' & 0x0FF) == 0x020) 11269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11271#else 11272# define ISLOWER(c) \ 11273 (('a' <= (c) && (c) <= 'i') \ 11274 || ('j' <= (c) && (c) <= 'r') \ 11275 || ('s' <= (c) && (c) <= 'z')) 11276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11277#endif 11278 11279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11280int 11281main () 11282{ 11283 int i; 11284 for (i = 0; i < 256; i++) 11285 if (XOR (islower (i), ISLOWER (i)) 11286 || toupper (i) != TOUPPER (i)) 11287 return 2; 11288 return 0; 11289} 11290_ACEOF 11291rm -f conftest$ac_exeext 11292if { (ac_try="$ac_link" 11293case "(($ac_try" in 11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11295 *) ac_try_echo=$ac_try;; 11296esac 11297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11298$as_echo "$ac_try_echo") >&5 11299 (eval "$ac_link") 2>&5 11300 ac_status=$? 11301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11303 { (case "(($ac_try" in 11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11305 *) ac_try_echo=$ac_try;; 11306esac 11307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11308$as_echo "$ac_try_echo") >&5 11309 (eval "$ac_try") 2>&5 11310 ac_status=$? 11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11312 (exit $ac_status); }; }; then 11313 : 11314else 11315 $as_echo "$as_me: program exited with status $ac_status" >&5 11316$as_echo "$as_me: failed program was:" >&5 11317sed 's/^/| /' conftest.$ac_ext >&5 11318 11319( exit $ac_status ) 11320ac_cv_header_stdc=no 11321fi 11322rm -rf conftest.dSYM 11323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11324fi 11325 11326 11327fi 11328fi 11329{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 11330$as_echo "$ac_cv_header_stdc" >&6; } 11331if test $ac_cv_header_stdc = yes; then 11332 11333cat >>confdefs.h <<\_ACEOF 11334#define STDC_HEADERS 1 11335_ACEOF 11336 11337fi 11338 11339 11340# Check for systems which need -lsocket and -lnsl 11341#AX_LIB_SOCKET_NSL 11342 11343# Solaris puts nanosleep in -lrt 11344{ $as_echo "$as_me:$LINENO: checking for library containing nanosleep" >&5 11345$as_echo_n "checking for library containing nanosleep... " >&6; } 11346if test "${ac_cv_search_nanosleep+set}" = set; then 11347 $as_echo_n "(cached) " >&6 11348else 11349 ac_func_search_save_LIBS=$LIBS 11350cat >conftest.$ac_ext <<_ACEOF 11351/* confdefs.h. */ 11352_ACEOF 11353cat confdefs.h >>conftest.$ac_ext 11354cat >>conftest.$ac_ext <<_ACEOF 11355/* end confdefs.h. */ 11356 11357/* Override any GCC internal prototype to avoid an error. 11358 Use char because int might match the return type of a GCC 11359 builtin and then its argument prototype would still apply. */ 11360#ifdef __cplusplus 11361extern "C" 11362#endif 11363char nanosleep (); 11364int 11365main () 11366{ 11367return nanosleep (); 11368 ; 11369 return 0; 11370} 11371_ACEOF 11372for ac_lib in '' rt; do 11373 if test -z "$ac_lib"; then 11374 ac_res="none required" 11375 else 11376 ac_res=-l$ac_lib 11377 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11378 fi 11379 rm -f conftest.$ac_objext conftest$ac_exeext 11380if { (ac_try="$ac_link" 11381case "(($ac_try" in 11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11383 *) ac_try_echo=$ac_try;; 11384esac 11385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11386$as_echo "$ac_try_echo") >&5 11387 (eval "$ac_link") 2>conftest.er1 11388 ac_status=$? 11389 grep -v '^ *+' conftest.er1 >conftest.err 11390 rm -f conftest.er1 11391 cat conftest.err >&5 11392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11393 (exit $ac_status); } && { 11394 test -z "$ac_c_werror_flag" || 11395 test ! -s conftest.err 11396 } && test -s conftest$ac_exeext && { 11397 test "$cross_compiling" = yes || 11398 $as_test_x conftest$ac_exeext 11399 }; then 11400 ac_cv_search_nanosleep=$ac_res 11401else 11402 $as_echo "$as_me: failed program was:" >&5 11403sed 's/^/| /' conftest.$ac_ext >&5 11404 11405 11406fi 11407 11408rm -rf conftest.dSYM 11409rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11410 conftest$ac_exeext 11411 if test "${ac_cv_search_nanosleep+set}" = set; then 11412 break 11413fi 11414done 11415if test "${ac_cv_search_nanosleep+set}" = set; then 11416 : 11417else 11418 ac_cv_search_nanosleep=no 11419fi 11420rm conftest.$ac_ext 11421LIBS=$ac_func_search_save_LIBS 11422fi 11423{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5 11424$as_echo "$ac_cv_search_nanosleep" >&6; } 11425ac_res=$ac_cv_search_nanosleep 11426if test "$ac_res" != no; then 11427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11428 11429else 11430 11431echo "nanosleep() required for timing operations." 11432exit 1 11433 11434fi 11435 11436 11437# Solaris puts hstrerror in -lresolv 11438{ $as_echo "$as_me:$LINENO: checking for library containing hstrerror" >&5 11439$as_echo_n "checking for library containing hstrerror... " >&6; } 11440if test "${ac_cv_search_hstrerror+set}" = set; then 11441 $as_echo_n "(cached) " >&6 11442else 11443 ac_func_search_save_LIBS=$LIBS 11444cat >conftest.$ac_ext <<_ACEOF 11445/* confdefs.h. */ 11446_ACEOF 11447cat confdefs.h >>conftest.$ac_ext 11448cat >>conftest.$ac_ext <<_ACEOF 11449/* end confdefs.h. */ 11450 11451/* Override any GCC internal prototype to avoid an error. 11452 Use char because int might match the return type of a GCC 11453 builtin and then its argument prototype would still apply. */ 11454#ifdef __cplusplus 11455extern "C" 11456#endif 11457char hstrerror (); 11458int 11459main () 11460{ 11461return hstrerror (); 11462 ; 11463 return 0; 11464} 11465_ACEOF 11466for ac_lib in '' resolv; do 11467 if test -z "$ac_lib"; then 11468 ac_res="none required" 11469 else 11470 ac_res=-l$ac_lib 11471 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11472 fi 11473 rm -f conftest.$ac_objext conftest$ac_exeext 11474if { (ac_try="$ac_link" 11475case "(($ac_try" in 11476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11477 *) ac_try_echo=$ac_try;; 11478esac 11479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11480$as_echo "$ac_try_echo") >&5 11481 (eval "$ac_link") 2>conftest.er1 11482 ac_status=$? 11483 grep -v '^ *+' conftest.er1 >conftest.err 11484 rm -f conftest.er1 11485 cat conftest.err >&5 11486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11487 (exit $ac_status); } && { 11488 test -z "$ac_c_werror_flag" || 11489 test ! -s conftest.err 11490 } && test -s conftest$ac_exeext && { 11491 test "$cross_compiling" = yes || 11492 $as_test_x conftest$ac_exeext 11493 }; then 11494 ac_cv_search_hstrerror=$ac_res 11495else 11496 $as_echo "$as_me: failed program was:" >&5 11497sed 's/^/| /' conftest.$ac_ext >&5 11498 11499 11500fi 11501 11502rm -rf conftest.dSYM 11503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11504 conftest$ac_exeext 11505 if test "${ac_cv_search_hstrerror+set}" = set; then 11506 break 11507fi 11508done 11509if test "${ac_cv_search_hstrerror+set}" = set; then 11510 : 11511else 11512 ac_cv_search_hstrerror=no 11513fi 11514rm conftest.$ac_ext 11515LIBS=$ac_func_search_save_LIBS 11516fi 11517{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_hstrerror" >&5 11518$as_echo "$ac_cv_search_hstrerror" >&6; } 11519ac_res=$ac_cv_search_hstrerror 11520if test "$ac_res" != no; then 11521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11522 11523else 11524 11525echo "nanosleep() required for timing operations." 11526exit 1 11527 11528fi 11529 11530 11531# Checks for typedefs, structures, and compiler characteristics. 11532{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11533$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 11534if test "${ac_cv_c_const+set}" = set; then 11535 $as_echo_n "(cached) " >&6 11536else 11537 cat >conftest.$ac_ext <<_ACEOF 11538/* confdefs.h. */ 11539_ACEOF 11540cat confdefs.h >>conftest.$ac_ext 11541cat >>conftest.$ac_ext <<_ACEOF 11542/* end confdefs.h. */ 11543 11544int 11545main () 11546{ 11547/* FIXME: Include the comments suggested by Paul. */ 11548#ifndef __cplusplus 11549 /* Ultrix mips cc rejects this. */ 11550 typedef int charset[2]; 11551 const charset cs; 11552 /* SunOS 4.1.1 cc rejects this. */ 11553 char const *const *pcpcc; 11554 char **ppc; 11555 /* NEC SVR4.0.2 mips cc rejects this. */ 11556 struct point {int x, y;}; 11557 static struct point const zero = {0,0}; 11558 /* AIX XL C 1.02.0.0 rejects this. 11559 It does not let you subtract one const X* pointer from another in 11560 an arm of an if-expression whose if-part is not a constant 11561 expression */ 11562 const char *g = "string"; 11563 pcpcc = &g + (g ? g-g : 0); 11564 /* HPUX 7.0 cc rejects these. */ 11565 ++pcpcc; 11566 ppc = (char**) pcpcc; 11567 pcpcc = (char const *const *) ppc; 11568 { /* SCO 3.2v4 cc rejects this. */ 11569 char *t; 11570 char const *s = 0 ? (char *) 0 : (char const *) 0; 11571 11572 *t++ = 0; 11573 if (s) return 0; 11574 } 11575 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11576 int x[] = {25, 17}; 11577 const int *foo = &x[0]; 11578 ++foo; 11579 } 11580 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11581 typedef const int *iptr; 11582 iptr p = 0; 11583 ++p; 11584 } 11585 { /* AIX XL C 1.02.0.0 rejects this saying 11586 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11587 struct s { int j; const int *ap[3]; }; 11588 struct s *b; b->j = 5; 11589 } 11590 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11591 const int foo = 10; 11592 if (!foo) return 0; 11593 } 11594 return !cs[0] && !zero.x; 11595#endif 11596 11597 ; 11598 return 0; 11599} 11600_ACEOF 11601rm -f conftest.$ac_objext 11602if { (ac_try="$ac_compile" 11603case "(($ac_try" in 11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11605 *) ac_try_echo=$ac_try;; 11606esac 11607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11608$as_echo "$ac_try_echo") >&5 11609 (eval "$ac_compile") 2>conftest.er1 11610 ac_status=$? 11611 grep -v '^ *+' conftest.er1 >conftest.err 11612 rm -f conftest.er1 11613 cat conftest.err >&5 11614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11615 (exit $ac_status); } && { 11616 test -z "$ac_c_werror_flag" || 11617 test ! -s conftest.err 11618 } && test -s conftest.$ac_objext; then 11619 ac_cv_c_const=yes 11620else 11621 $as_echo "$as_me: failed program was:" >&5 11622sed 's/^/| /' conftest.$ac_ext >&5 11623 11624 ac_cv_c_const=no 11625fi 11626 11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11628fi 11629{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11630$as_echo "$ac_cv_c_const" >&6; } 11631if test $ac_cv_c_const = no; then 11632 11633cat >>confdefs.h <<\_ACEOF 11634#define const /**/ 11635_ACEOF 11636 11637fi 11638 11639 11640# Check for SCTP support 11641 11642for ac_header in netinet/sctp.h 11643do 11644as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11647$as_echo_n "checking for $ac_header... " >&6; } 11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11649 $as_echo_n "(cached) " >&6 11650fi 11651ac_res=`eval 'as_val=${'$as_ac_Header'} 11652 $as_echo "$as_val"'` 11653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11654$as_echo "$ac_res" >&6; } 11655else 11656 # Is the header compilable? 11657{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 11658$as_echo_n "checking $ac_header usability... " >&6; } 11659cat >conftest.$ac_ext <<_ACEOF 11660/* confdefs.h. */ 11661_ACEOF 11662cat confdefs.h >>conftest.$ac_ext 11663cat >>conftest.$ac_ext <<_ACEOF 11664/* end confdefs.h. */ 11665$ac_includes_default 11666#include <$ac_header> 11667_ACEOF 11668rm -f conftest.$ac_objext 11669if { (ac_try="$ac_compile" 11670case "(($ac_try" in 11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11672 *) ac_try_echo=$ac_try;; 11673esac 11674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11675$as_echo "$ac_try_echo") >&5 11676 (eval "$ac_compile") 2>conftest.er1 11677 ac_status=$? 11678 grep -v '^ *+' conftest.er1 >conftest.err 11679 rm -f conftest.er1 11680 cat conftest.err >&5 11681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11682 (exit $ac_status); } && { 11683 test -z "$ac_c_werror_flag" || 11684 test ! -s conftest.err 11685 } && test -s conftest.$ac_objext; then 11686 ac_header_compiler=yes 11687else 11688 $as_echo "$as_me: failed program was:" >&5 11689sed 's/^/| /' conftest.$ac_ext >&5 11690 11691 ac_header_compiler=no 11692fi 11693 11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11695{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11696$as_echo "$ac_header_compiler" >&6; } 11697 11698# Is the header present? 11699{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 11700$as_echo_n "checking $ac_header presence... " >&6; } 11701cat >conftest.$ac_ext <<_ACEOF 11702/* confdefs.h. */ 11703_ACEOF 11704cat confdefs.h >>conftest.$ac_ext 11705cat >>conftest.$ac_ext <<_ACEOF 11706/* end confdefs.h. */ 11707#include <$ac_header> 11708_ACEOF 11709if { (ac_try="$ac_cpp conftest.$ac_ext" 11710case "(($ac_try" in 11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11712 *) ac_try_echo=$ac_try;; 11713esac 11714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11715$as_echo "$ac_try_echo") >&5 11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11717 ac_status=$? 11718 grep -v '^ *+' conftest.er1 >conftest.err 11719 rm -f conftest.er1 11720 cat conftest.err >&5 11721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11722 (exit $ac_status); } >/dev/null && { 11723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11724 test ! -s conftest.err 11725 }; then 11726 ac_header_preproc=yes 11727else 11728 $as_echo "$as_me: failed program was:" >&5 11729sed 's/^/| /' conftest.$ac_ext >&5 11730 11731 ac_header_preproc=no 11732fi 11733 11734rm -f conftest.err conftest.$ac_ext 11735{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11736$as_echo "$ac_header_preproc" >&6; } 11737 11738# So? What about this header? 11739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11740 yes:no: ) 11741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11742$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11744$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11745 ac_header_preproc=yes 11746 ;; 11747 no:yes:* ) 11748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11749$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11751$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11753$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11755$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11757$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11759$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11760 ( cat <<\_ASBOX 11761## --------------------------------------------- ## 11762## Report this to https://github.com/esnet/iperf ## 11763## --------------------------------------------- ## 11764_ASBOX 11765 ) | sed "s/^/$as_me: WARNING: /" >&2 11766 ;; 11767esac 11768{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11769$as_echo_n "checking for $ac_header... " >&6; } 11770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11771 $as_echo_n "(cached) " >&6 11772else 11773 eval "$as_ac_Header=\$ac_header_preproc" 11774fi 11775ac_res=`eval 'as_val=${'$as_ac_Header'} 11776 $as_echo "$as_val"'` 11777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11778$as_echo "$ac_res" >&6; } 11779 11780fi 11781as_val=`eval 'as_val=${'$as_ac_Header'} 11782 $as_echo "$as_val"'` 11783 if test "x$as_val" = x""yes; then 11784 cat >>confdefs.h <<_ACEOF 11785#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11786_ACEOF 11787 11788cat >>confdefs.h <<\_ACEOF 11789#define HAVE_SCTP 1 11790_ACEOF 11791 11792fi 11793 11794done 11795 11796 11797# Check for TCP_CONGESTION sockopt (believed to be Linux only) 11798{ $as_echo "$as_me:$LINENO: checking TCP_CONGESTION socket option" >&5 11799$as_echo_n "checking TCP_CONGESTION socket option... " >&6; } 11800if test "${iperf3_cv_header_tcp_congestion+set}" = set; then 11801 $as_echo_n "(cached) " >&6 11802else 11803 cat >conftest.$ac_ext <<_ACEOF 11804/* confdefs.h. */ 11805_ACEOF 11806cat confdefs.h >>conftest.$ac_ext 11807cat >>conftest.$ac_ext <<_ACEOF 11808/* end confdefs.h. */ 11809#include <netinet/tcp.h> 11810#ifdef TCP_CONGESTION 11811 yes 11812#endif 11813 11814_ACEOF 11815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11816 $EGREP "yes" >/dev/null 2>&1; then 11817 iperf3_cv_header_tcp_congestion=yes 11818else 11819 iperf3_cv_header_tcp_congestion=no 11820fi 11821rm -f conftest* 11822 11823fi 11824{ $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_tcp_congestion" >&5 11825$as_echo "$iperf3_cv_header_tcp_congestion" >&6; } 11826if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then 11827 11828cat >>confdefs.h <<\_ACEOF 11829#define HAVE_TCP_CONGESTION 1 11830_ACEOF 11831 11832fi 11833 11834# Check for IPv6 flowlabel support (believed to be Linux only) 11835# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we 11836# don't use that file directly (we have our own stripped-down 11837# copy, see src/flowlabel.h for more details). 11838{ $as_echo "$as_me:$LINENO: checking IPv6 flowlabel support" >&5 11839$as_echo_n "checking IPv6 flowlabel support... " >&6; } 11840if test "${iperf3_cv_header_flowlabel+set}" = set; then 11841 $as_echo_n "(cached) " >&6 11842else 11843 cat >conftest.$ac_ext <<_ACEOF 11844/* confdefs.h. */ 11845_ACEOF 11846cat confdefs.h >>conftest.$ac_ext 11847cat >>conftest.$ac_ext <<_ACEOF 11848/* end confdefs.h. */ 11849#include <sys/types.h> 11850#include <linux/in6.h> 11851#ifdef IPV6_FLOWLABEL_MGR 11852 yes 11853#endif 11854 11855_ACEOF 11856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11857 $EGREP "yes" >/dev/null 2>&1; then 11858 iperf3_cv_header_flowlabel=yes 11859else 11860 iperf3_cv_header_flowlabel=no 11861fi 11862rm -f conftest* 11863 11864fi 11865{ $as_echo "$as_me:$LINENO: result: $iperf3_cv_header_flowlabel" >&5 11866$as_echo "$iperf3_cv_header_flowlabel" >&6; } 11867if test "x$iperf3_cv_header_flowlabel" = "xyes"; then 11868 11869cat >>confdefs.h <<\_ACEOF 11870#define HAVE_FLOWLABEL 1 11871_ACEOF 11872 11873fi 11874 11875# Check for CPU affinity support. FreeBSD and Linux do this differently 11876# unfortunately so we have to check separately for each of them. 11877# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity. 11878# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a 11879# generic concept is available. 11880 11881 11882for ac_func in cpuset_setaffinity sched_setaffinity 11883do 11884as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11885{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11886$as_echo_n "checking for $ac_func... " >&6; } 11887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11888 $as_echo_n "(cached) " >&6 11889else 11890 cat >conftest.$ac_ext <<_ACEOF 11891/* confdefs.h. */ 11892_ACEOF 11893cat confdefs.h >>conftest.$ac_ext 11894cat >>conftest.$ac_ext <<_ACEOF 11895/* end confdefs.h. */ 11896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11897 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11898#define $ac_func innocuous_$ac_func 11899 11900/* System header to define __stub macros and hopefully few prototypes, 11901 which can conflict with char $ac_func (); below. 11902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11903 <limits.h> exists even on freestanding compilers. */ 11904 11905#ifdef __STDC__ 11906# include <limits.h> 11907#else 11908# include <assert.h> 11909#endif 11910 11911#undef $ac_func 11912 11913/* Override any GCC internal prototype to avoid an error. 11914 Use char because int might match the return type of a GCC 11915 builtin and then its argument prototype would still apply. */ 11916#ifdef __cplusplus 11917extern "C" 11918#endif 11919char $ac_func (); 11920/* The GNU C library defines this for functions which it implements 11921 to always fail with ENOSYS. Some functions are actually named 11922 something starting with __ and the normal name is an alias. */ 11923#if defined __stub_$ac_func || defined __stub___$ac_func 11924choke me 11925#endif 11926 11927int 11928main () 11929{ 11930return $ac_func (); 11931 ; 11932 return 0; 11933} 11934_ACEOF 11935rm -f conftest.$ac_objext conftest$ac_exeext 11936if { (ac_try="$ac_link" 11937case "(($ac_try" in 11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11939 *) ac_try_echo=$ac_try;; 11940esac 11941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11942$as_echo "$ac_try_echo") >&5 11943 (eval "$ac_link") 2>conftest.er1 11944 ac_status=$? 11945 grep -v '^ *+' conftest.er1 >conftest.err 11946 rm -f conftest.er1 11947 cat conftest.err >&5 11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11949 (exit $ac_status); } && { 11950 test -z "$ac_c_werror_flag" || 11951 test ! -s conftest.err 11952 } && test -s conftest$ac_exeext && { 11953 test "$cross_compiling" = yes || 11954 $as_test_x conftest$ac_exeext 11955 }; then 11956 eval "$as_ac_var=yes" 11957else 11958 $as_echo "$as_me: failed program was:" >&5 11959sed 's/^/| /' conftest.$ac_ext >&5 11960 11961 eval "$as_ac_var=no" 11962fi 11963 11964rm -rf conftest.dSYM 11965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11966 conftest$ac_exeext conftest.$ac_ext 11967fi 11968ac_res=`eval 'as_val=${'$as_ac_var'} 11969 $as_echo "$as_val"'` 11970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11971$as_echo "$ac_res" >&6; } 11972as_val=`eval 'as_val=${'$as_ac_var'} 11973 $as_echo "$as_val"'` 11974 if test "x$as_val" = x""yes; then 11975 cat >>confdefs.h <<_ACEOF 11976#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11977_ACEOF 11978 11979cat >>confdefs.h <<\_ACEOF 11980#define HAVE_CPU_AFFINITY 1 11981_ACEOF 11982 11983fi 11984done 11985 11986 11987ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile" 11988 11989cat >confcache <<\_ACEOF 11990# This file is a shell script that caches the results of configure 11991# tests run on this system so they can be shared between configure 11992# scripts and configure runs, see configure's option --config-cache. 11993# It is not useful on other systems. If it contains results you don't 11994# want to keep, you may remove or edit it. 11995# 11996# config.status only pays attention to the cache file if you give it 11997# the --recheck option to rerun configure. 11998# 11999# `ac_cv_env_foo' variables (set or unset) will be overridden when 12000# loading this file, other *unset* `ac_cv_foo' will be assigned the 12001# following values. 12002 12003_ACEOF 12004 12005# The following way of writing the cache mishandles newlines in values, 12006# but we know of no workaround that is simple, portable, and efficient. 12007# So, we kill variables containing newlines. 12008# Ultrix sh set writes to stderr and can't be redirected directly, 12009# and sets the high bit in the cache file unless we assign to the vars. 12010( 12011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12012 eval ac_val=\$$ac_var 12013 case $ac_val in #( 12014 *${as_nl}*) 12015 case $ac_var in #( 12016 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 12017$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12018 esac 12019 case $ac_var in #( 12020 _ | IFS | as_nl) ;; #( 12021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12022 *) $as_unset $ac_var ;; 12023 esac ;; 12024 esac 12025 done 12026 12027 (set) 2>&1 | 12028 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12029 *${as_nl}ac_space=\ *) 12030 # `set' does not quote correctly, so add quotes (double-quote 12031 # substitution turns \\\\ into \\, and sed turns \\ into \). 12032 sed -n \ 12033 "s/'/'\\\\''/g; 12034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12035 ;; #( 12036 *) 12037 # `set' quotes correctly as required by POSIX, so do not add quotes. 12038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12039 ;; 12040 esac | 12041 sort 12042) | 12043 sed ' 12044 /^ac_cv_env_/b end 12045 t clear 12046 :clear 12047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12048 t end 12049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12050 :end' >>confcache 12051if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12052 if test -w "$cache_file"; then 12053 test "x$cache_file" != "x/dev/null" && 12054 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 12055$as_echo "$as_me: updating cache $cache_file" >&6;} 12056 cat confcache >$cache_file 12057 else 12058 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12059$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12060 fi 12061fi 12062rm -f confcache 12063 12064test "x$prefix" = xNONE && prefix=$ac_default_prefix 12065# Let make expand exec_prefix. 12066test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12067 12068DEFS=-DHAVE_CONFIG_H 12069 12070ac_libobjs= 12071ac_ltlibobjs= 12072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12073 # 1. Remove the extension, and $U if already installed. 12074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12077 # will be set to the directory where LIBOBJS objects are built. 12078 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12079 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12080done 12081LIBOBJS=$ac_libobjs 12082 12083LTLIBOBJS=$ac_ltlibobjs 12084 12085 12086 if test -n "$EXEEXT"; then 12087 am__EXEEXT_TRUE= 12088 am__EXEEXT_FALSE='#' 12089else 12090 am__EXEEXT_TRUE='#' 12091 am__EXEEXT_FALSE= 12092fi 12093 12094if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12095 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12096Usually this means the macro was only invoked conditionally." >&5 12097$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 12098Usually this means the macro was only invoked conditionally." >&2;} 12099 { (exit 1); exit 1; }; } 12100fi 12101if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12102 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12103Usually this means the macro was only invoked conditionally." >&5 12104$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12105Usually this means the macro was only invoked conditionally." >&2;} 12106 { (exit 1); exit 1; }; } 12107fi 12108 12109: ${CONFIG_STATUS=./config.status} 12110ac_write_fail=0 12111ac_clean_files_save=$ac_clean_files 12112ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12113{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12114$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12115cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12116#! $SHELL 12117# Generated by $as_me. 12118# Run this file to recreate the current configuration. 12119# Compiler output produced by configure, useful for debugging 12120# configure, is in config.log if it exists. 12121 12122debug=false 12123ac_cs_recheck=false 12124ac_cs_silent=false 12125SHELL=\${CONFIG_SHELL-$SHELL} 12126_ACEOF 12127 12128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12129## --------------------- ## 12130## M4sh Initialization. ## 12131## --------------------- ## 12132 12133# Be more Bourne compatible 12134DUALCASE=1; export DUALCASE # for MKS sh 12135if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12136 emulate sh 12137 NULLCMD=: 12138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12139 # is contrary to our usage. Disable this feature. 12140 alias -g '${1+"$@"}'='"$@"' 12141 setopt NO_GLOB_SUBST 12142else 12143 case `(set -o) 2>/dev/null` in 12144 *posix*) set -o posix ;; 12145esac 12146 12147fi 12148 12149 12150 12151 12152# PATH needs CR 12153# Avoid depending upon Character Ranges. 12154as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12155as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12156as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12157as_cr_digits='0123456789' 12158as_cr_alnum=$as_cr_Letters$as_cr_digits 12159 12160as_nl=' 12161' 12162export as_nl 12163# Printing a long string crashes Solaris 7 /usr/bin/printf. 12164as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12165as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12167if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12168 as_echo='printf %s\n' 12169 as_echo_n='printf %s' 12170else 12171 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12172 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12173 as_echo_n='/usr/ucb/echo -n' 12174 else 12175 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12176 as_echo_n_body='eval 12177 arg=$1; 12178 case $arg in 12179 *"$as_nl"*) 12180 expr "X$arg" : "X\\(.*\\)$as_nl"; 12181 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12182 esac; 12183 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12184 ' 12185 export as_echo_n_body 12186 as_echo_n='sh -c $as_echo_n_body as_echo' 12187 fi 12188 export as_echo_body 12189 as_echo='sh -c $as_echo_body as_echo' 12190fi 12191 12192# The user is always right. 12193if test "${PATH_SEPARATOR+set}" != set; then 12194 PATH_SEPARATOR=: 12195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12197 PATH_SEPARATOR=';' 12198 } 12199fi 12200 12201# Support unset when possible. 12202if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12203 as_unset=unset 12204else 12205 as_unset=false 12206fi 12207 12208 12209# IFS 12210# We need space, tab and new line, in precisely that order. Quoting is 12211# there to prevent editors from complaining about space-tab. 12212# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12213# splitting by setting IFS to empty value.) 12214IFS=" "" $as_nl" 12215 12216# Find who we are. Look in the path if we contain no directory separator. 12217case $0 in 12218 *[\\/]* ) as_myself=$0 ;; 12219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12220for as_dir in $PATH 12221do 12222 IFS=$as_save_IFS 12223 test -z "$as_dir" && as_dir=. 12224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12225done 12226IFS=$as_save_IFS 12227 12228 ;; 12229esac 12230# We did not find ourselves, most probably we were run as `sh COMMAND' 12231# in which case we are not to be found in the path. 12232if test "x$as_myself" = x; then 12233 as_myself=$0 12234fi 12235if test ! -f "$as_myself"; then 12236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12237 { (exit 1); exit 1; } 12238fi 12239 12240# Work around bugs in pre-3.0 UWIN ksh. 12241for as_var in ENV MAIL MAILPATH 12242do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12243done 12244PS1='$ ' 12245PS2='> ' 12246PS4='+ ' 12247 12248# NLS nuisances. 12249LC_ALL=C 12250export LC_ALL 12251LANGUAGE=C 12252export LANGUAGE 12253 12254# Required to use basename. 12255if expr a : '\(a\)' >/dev/null 2>&1 && 12256 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12257 as_expr=expr 12258else 12259 as_expr=false 12260fi 12261 12262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12263 as_basename=basename 12264else 12265 as_basename=false 12266fi 12267 12268 12269# Name of the executable. 12270as_me=`$as_basename -- "$0" || 12271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12272 X"$0" : 'X\(//\)$' \| \ 12273 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12274$as_echo X/"$0" | 12275 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12276 s//\1/ 12277 q 12278 } 12279 /^X\/\(\/\/\)$/{ 12280 s//\1/ 12281 q 12282 } 12283 /^X\/\(\/\).*/{ 12284 s//\1/ 12285 q 12286 } 12287 s/.*/./; q'` 12288 12289# CDPATH. 12290$as_unset CDPATH 12291 12292 12293 12294 as_lineno_1=$LINENO 12295 as_lineno_2=$LINENO 12296 test "x$as_lineno_1" != "x$as_lineno_2" && 12297 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12298 12299 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12300 # uniformly replaced by the line number. The first 'sed' inserts a 12301 # line-number line after each line using $LINENO; the second 'sed' 12302 # does the real work. The second script uses 'N' to pair each 12303 # line-number line with the line containing $LINENO, and appends 12304 # trailing '-' during substitution so that $LINENO is not a special 12305 # case at line end. 12306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12307 # scripts with optimization help from Paolo Bonzini. Blame Lee 12308 # E. McMahon (1931-1989) for sed's syntax. :-) 12309 sed -n ' 12310 p 12311 /[$]LINENO/= 12312 ' <$as_myself | 12313 sed ' 12314 s/[$]LINENO.*/&-/ 12315 t lineno 12316 b 12317 :lineno 12318 N 12319 :loop 12320 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12321 t loop 12322 s/-\n.*// 12323 ' >$as_me.lineno && 12324 chmod +x "$as_me.lineno" || 12325 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12326 { (exit 1); exit 1; }; } 12327 12328 # Don't try to exec as it changes $[0], causing all sort of problems 12329 # (the dirname of $[0] is not the place where we might find the 12330 # original and so on. Autoconf is especially sensitive to this). 12331 . "./$as_me.lineno" 12332 # Exit status is that of the last command. 12333 exit 12334} 12335 12336 12337if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12338 as_dirname=dirname 12339else 12340 as_dirname=false 12341fi 12342 12343ECHO_C= ECHO_N= ECHO_T= 12344case `echo -n x` in 12345-n*) 12346 case `echo 'x\c'` in 12347 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12348 *) ECHO_C='\c';; 12349 esac;; 12350*) 12351 ECHO_N='-n';; 12352esac 12353if expr a : '\(a\)' >/dev/null 2>&1 && 12354 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12355 as_expr=expr 12356else 12357 as_expr=false 12358fi 12359 12360rm -f conf$$ conf$$.exe conf$$.file 12361if test -d conf$$.dir; then 12362 rm -f conf$$.dir/conf$$.file 12363else 12364 rm -f conf$$.dir 12365 mkdir conf$$.dir 2>/dev/null 12366fi 12367if (echo >conf$$.file) 2>/dev/null; then 12368 if ln -s conf$$.file conf$$ 2>/dev/null; then 12369 as_ln_s='ln -s' 12370 # ... but there are two gotchas: 12371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12373 # In both cases, we have to default to `cp -p'. 12374 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12375 as_ln_s='cp -p' 12376 elif ln conf$$.file conf$$ 2>/dev/null; then 12377 as_ln_s=ln 12378 else 12379 as_ln_s='cp -p' 12380 fi 12381else 12382 as_ln_s='cp -p' 12383fi 12384rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12385rmdir conf$$.dir 2>/dev/null 12386 12387if mkdir -p . 2>/dev/null; then 12388 as_mkdir_p=: 12389else 12390 test -d ./-p && rmdir ./-p 12391 as_mkdir_p=false 12392fi 12393 12394if test -x / >/dev/null 2>&1; then 12395 as_test_x='test -x' 12396else 12397 if ls -dL / >/dev/null 2>&1; then 12398 as_ls_L_option=L 12399 else 12400 as_ls_L_option= 12401 fi 12402 as_test_x=' 12403 eval sh -c '\'' 12404 if test -d "$1"; then 12405 test -d "$1/."; 12406 else 12407 case $1 in 12408 -*)set "./$1";; 12409 esac; 12410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 12411 ???[sx]*):;;*)false;;esac;fi 12412 '\'' sh 12413 ' 12414fi 12415as_executable_p=$as_test_x 12416 12417# Sed expression to map a string onto a valid CPP name. 12418as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12419 12420# Sed expression to map a string onto a valid variable name. 12421as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12422 12423 12424exec 6>&1 12425 12426# Save the log message, to keep $[0] and so on meaningful, and to 12427# report actual input values of CONFIG_FILES etc. instead of their 12428# values after options handling. 12429ac_log=" 12430This file was extended by iperf $as_me 3.0.1, which was 12431generated by GNU Autoconf 2.63. Invocation command line was 12432 12433 CONFIG_FILES = $CONFIG_FILES 12434 CONFIG_HEADERS = $CONFIG_HEADERS 12435 CONFIG_LINKS = $CONFIG_LINKS 12436 CONFIG_COMMANDS = $CONFIG_COMMANDS 12437 $ $0 $@ 12438 12439on `(hostname || uname -n) 2>/dev/null | sed 1q` 12440" 12441 12442_ACEOF 12443 12444case $ac_config_files in *" 12445"*) set x $ac_config_files; shift; ac_config_files=$*;; 12446esac 12447 12448case $ac_config_headers in *" 12449"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12450esac 12451 12452 12453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12454# Files that config.status was made for. 12455config_files="$ac_config_files" 12456config_headers="$ac_config_headers" 12457config_commands="$ac_config_commands" 12458 12459_ACEOF 12460 12461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12462ac_cs_usage="\ 12463\`$as_me' instantiates files from templates according to the 12464current configuration. 12465 12466Usage: $0 [OPTION]... [FILE]... 12467 12468 -h, --help print this help, then exit 12469 -V, --version print version number and configuration settings, then exit 12470 -q, --quiet, --silent 12471 do not print progress messages 12472 -d, --debug don't remove temporary files 12473 --recheck update $as_me by reconfiguring in the same conditions 12474 --file=FILE[:TEMPLATE] 12475 instantiate the configuration file FILE 12476 --header=FILE[:TEMPLATE] 12477 instantiate the configuration header FILE 12478 12479Configuration files: 12480$config_files 12481 12482Configuration headers: 12483$config_headers 12484 12485Configuration commands: 12486$config_commands 12487 12488Report bugs to <[email protected]>." 12489 12490_ACEOF 12491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12492ac_cs_version="\\ 12493iperf config.status 3.0.1 12494configured by $0, generated by GNU Autoconf 2.63, 12495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12496 12497Copyright (C) 2008 Free Software Foundation, Inc. 12498This config.status script is free software; the Free Software Foundation 12499gives unlimited permission to copy, distribute and modify it." 12500 12501ac_pwd='$ac_pwd' 12502srcdir='$srcdir' 12503INSTALL='$INSTALL' 12504MKDIR_P='$MKDIR_P' 12505AWK='$AWK' 12506test -n "\$AWK" || AWK=awk 12507_ACEOF 12508 12509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12510# The default lists apply if the user does not specify any file. 12511ac_need_defaults=: 12512while test $# != 0 12513do 12514 case $1 in 12515 --*=*) 12516 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12518 ac_shift=: 12519 ;; 12520 *) 12521 ac_option=$1 12522 ac_optarg=$2 12523 ac_shift=shift 12524 ;; 12525 esac 12526 12527 case $ac_option in 12528 # Handling of the options. 12529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12530 ac_cs_recheck=: ;; 12531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12532 $as_echo "$ac_cs_version"; exit ;; 12533 --debug | --debu | --deb | --de | --d | -d ) 12534 debug=: ;; 12535 --file | --fil | --fi | --f ) 12536 $ac_shift 12537 case $ac_optarg in 12538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12539 esac 12540 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 12541 ac_need_defaults=false;; 12542 --header | --heade | --head | --hea ) 12543 $ac_shift 12544 case $ac_optarg in 12545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12546 esac 12547 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 12548 ac_need_defaults=false;; 12549 --he | --h) 12550 # Conflict between --help and --header 12551 { $as_echo "$as_me: error: ambiguous option: $1 12552Try \`$0 --help' for more information." >&2 12553 { (exit 1); exit 1; }; };; 12554 --help | --hel | -h ) 12555 $as_echo "$ac_cs_usage"; exit ;; 12556 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12557 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12558 ac_cs_silent=: ;; 12559 12560 # This is an error. 12561 -*) { $as_echo "$as_me: error: unrecognized option: $1 12562Try \`$0 --help' for more information." >&2 12563 { (exit 1); exit 1; }; } ;; 12564 12565 *) ac_config_targets="$ac_config_targets $1" 12566 ac_need_defaults=false ;; 12567 12568 esac 12569 shift 12570done 12571 12572ac_configure_extra_args= 12573 12574if $ac_cs_silent; then 12575 exec 6>/dev/null 12576 ac_configure_extra_args="$ac_configure_extra_args --silent" 12577fi 12578 12579_ACEOF 12580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12581if \$ac_cs_recheck; then 12582 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12583 shift 12584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12585 CONFIG_SHELL='$SHELL' 12586 export CONFIG_SHELL 12587 exec "\$@" 12588fi 12589 12590_ACEOF 12591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12592exec 5>>config.log 12593{ 12594 echo 12595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12596## Running $as_me. ## 12597_ASBOX 12598 $as_echo "$ac_log" 12599} >&5 12600 12601_ACEOF 12602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12603# 12604# INIT-COMMANDS 12605# 12606AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12607 12608 12609# The HP-UX ksh and POSIX shell print the target directory to stdout 12610# if CDPATH is set. 12611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12612 12613sed_quote_subst='$sed_quote_subst' 12614double_quote_subst='$double_quote_subst' 12615delay_variable_subst='$delay_variable_subst' 12616macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 12617macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 12618enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 12619enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 12620pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 12621enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 12622host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 12623host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 12624host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 12625build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 12626build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 12627build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 12628SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 12629Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 12630GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 12631EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 12632FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 12633LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 12634NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 12635LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 12636max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 12637ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 12638exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 12639lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 12640lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 12641lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 12642reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 12643reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12644OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 12645deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 12646file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 12647AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 12648AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12649STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 12650RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 12651old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12652old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12653old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12654CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 12655CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 12656compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 12657GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 12658lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 12659lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 12660lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 12661lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12662objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 12663SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 12664ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 12665MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 12666lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 12667lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 12668lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 12669lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 12670lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 12671need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 12672DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 12673NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 12674LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 12675OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 12676OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 12677libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 12678shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12679extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12680archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 12681enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 12682export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12683whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12684compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 12685old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12686old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12687archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12688archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12689module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12690module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12691with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 12692allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12693no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 12694hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 12695hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 12696hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 12697hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 12698hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 12699hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 12700hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12701hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 12702inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 12703link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 12704fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 12705always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 12706export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12707exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12708include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 12709prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12710file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 12711variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 12712need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 12713need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 12714version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 12715runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12716shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 12717shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 12718libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12719library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 12720soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 12721postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12722postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12723finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 12724finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 12725hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 12726sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12727sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 12728hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 12729enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 12730enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 12731enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 12732old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 12733striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 12734 12735LTCC='$LTCC' 12736LTCFLAGS='$LTCFLAGS' 12737compiler='$compiler_DEFAULT' 12738 12739# Quote evaled strings. 12740for var in SED \ 12741GREP \ 12742EGREP \ 12743FGREP \ 12744LD \ 12745NM \ 12746LN_S \ 12747lt_SP2NL \ 12748lt_NL2SP \ 12749reload_flag \ 12750OBJDUMP \ 12751deplibs_check_method \ 12752file_magic_cmd \ 12753AR \ 12754AR_FLAGS \ 12755STRIP \ 12756RANLIB \ 12757CC \ 12758CFLAGS \ 12759compiler \ 12760lt_cv_sys_global_symbol_pipe \ 12761lt_cv_sys_global_symbol_to_cdecl \ 12762lt_cv_sys_global_symbol_to_c_name_address \ 12763lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12764SHELL \ 12765ECHO \ 12766lt_prog_compiler_no_builtin_flag \ 12767lt_prog_compiler_wl \ 12768lt_prog_compiler_pic \ 12769lt_prog_compiler_static \ 12770lt_cv_prog_compiler_c_o \ 12771need_locks \ 12772DSYMUTIL \ 12773NMEDIT \ 12774LIPO \ 12775OTOOL \ 12776OTOOL64 \ 12777shrext_cmds \ 12778export_dynamic_flag_spec \ 12779whole_archive_flag_spec \ 12780compiler_needs_object \ 12781with_gnu_ld \ 12782allow_undefined_flag \ 12783no_undefined_flag \ 12784hardcode_libdir_flag_spec \ 12785hardcode_libdir_flag_spec_ld \ 12786hardcode_libdir_separator \ 12787fix_srcfile_path \ 12788exclude_expsyms \ 12789include_expsyms \ 12790file_list_spec \ 12791variables_saved_for_relink \ 12792libname_spec \ 12793library_names_spec \ 12794soname_spec \ 12795finish_eval \ 12796old_striplib \ 12797striplib; do 12798 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12799 *[\\\\\\\`\\"\\\$]*) 12800 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12801 ;; 12802 *) 12803 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12804 ;; 12805 esac 12806done 12807 12808# Double-quote double-evaled strings. 12809for var in reload_cmds \ 12810old_postinstall_cmds \ 12811old_postuninstall_cmds \ 12812old_archive_cmds \ 12813extract_expsyms_cmds \ 12814old_archive_from_new_cmds \ 12815old_archive_from_expsyms_cmds \ 12816archive_cmds \ 12817archive_expsym_cmds \ 12818module_cmds \ 12819module_expsym_cmds \ 12820export_symbols_cmds \ 12821prelink_cmds \ 12822postinstall_cmds \ 12823postuninstall_cmds \ 12824finish_cmds \ 12825sys_lib_search_path_spec \ 12826sys_lib_dlsearch_path_spec; do 12827 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 12828 *[\\\\\\\`\\"\\\$]*) 12829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12830 ;; 12831 *) 12832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12833 ;; 12834 esac 12835done 12836 12837# Fix-up fallback echo if it was mangled by the above quoting rules. 12838case \$lt_ECHO in 12839*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 12840 ;; 12841esac 12842 12843ac_aux_dir='$ac_aux_dir' 12844xsi_shell='$xsi_shell' 12845lt_shell_append='$lt_shell_append' 12846 12847# See if we are running on zsh, and set the options which allow our 12848# commands through without removal of \ escapes INIT. 12849if test -n "\${ZSH_VERSION+set}" ; then 12850 setopt NO_GLOB_SUBST 12851fi 12852 12853 12854 PACKAGE='$PACKAGE' 12855 VERSION='$VERSION' 12856 TIMESTAMP='$TIMESTAMP' 12857 RM='$RM' 12858 ofile='$ofile' 12859 12860 12861 12862 12863_ACEOF 12864 12865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12866 12867# Handling of arguments. 12868for ac_config_target in $ac_config_targets 12869do 12870 case $ac_config_target in 12871 "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;; 12872 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12873 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12874 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12875 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12876 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 12877 12878 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12879$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12880 { (exit 1); exit 1; }; };; 12881 esac 12882done 12883 12884 12885# If the user did not use the arguments to specify the items to instantiate, 12886# then the envvar interface is used. Set only those that are not. 12887# We use the long form for the default assignment because of an extremely 12888# bizarre bug on SunOS 4.1.3. 12889if $ac_need_defaults; then 12890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12892 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12893fi 12894 12895# Have a temporary directory for convenience. Make it in the build tree 12896# simply because there is no reason against having it here, and in addition, 12897# creating and moving files from /tmp can sometimes cause problems. 12898# Hook for its removal unless debugging. 12899# Note that there is a small window in which the directory will not be cleaned: 12900# after its creation but before its name has been assigned to `$tmp'. 12901$debug || 12902{ 12903 tmp= 12904 trap 'exit_status=$? 12905 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12906' 0 12907 trap '{ (exit 1); exit 1; }' 1 2 13 15 12908} 12909# Create a (secure) tmp directory for tmp files. 12910 12911{ 12912 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12913 test -n "$tmp" && test -d "$tmp" 12914} || 12915{ 12916 tmp=./conf$$-$RANDOM 12917 (umask 077 && mkdir "$tmp") 12918} || 12919{ 12920 $as_echo "$as_me: cannot create a temporary directory in ." >&2 12921 { (exit 1); exit 1; } 12922} 12923 12924# Set up the scripts for CONFIG_FILES section. 12925# No need to generate them if there are no CONFIG_FILES. 12926# This happens for instance with `./config.status config.h'. 12927if test -n "$CONFIG_FILES"; then 12928 12929 12930ac_cr=' 12931' 12932ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12933if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12934 ac_cs_awk_cr='\\r' 12935else 12936 ac_cs_awk_cr=$ac_cr 12937fi 12938 12939echo 'BEGIN {' >"$tmp/subs1.awk" && 12940_ACEOF 12941 12942 12943{ 12944 echo "cat >conf$$subs.awk <<_ACEOF" && 12945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12946 echo "_ACEOF" 12947} >conf$$subs.sh || 12948 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12949$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12950 { (exit 1); exit 1; }; } 12951ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12952ac_delim='%!_!# ' 12953for ac_last_try in false false false false false :; do 12954 . ./conf$$subs.sh || 12955 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12956$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12957 { (exit 1); exit 1; }; } 12958 12959 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12960 if test $ac_delim_n = $ac_delim_num; then 12961 break 12962 elif $ac_last_try; then 12963 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12964$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12965 { (exit 1); exit 1; }; } 12966 else 12967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12968 fi 12969done 12970rm -f conf$$subs.sh 12971 12972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12973cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12974_ACEOF 12975sed -n ' 12976h 12977s/^/S["/; s/!.*/"]=/ 12978p 12979g 12980s/^[^!]*!// 12981:repl 12982t repl 12983s/'"$ac_delim"'$// 12984t delim 12985:nl 12986h 12987s/\(.\{148\}\).*/\1/ 12988t more1 12989s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12990p 12991n 12992b repl 12993:more1 12994s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12995p 12996g 12997s/.\{148\}// 12998t nl 12999:delim 13000h 13001s/\(.\{148\}\).*/\1/ 13002t more2 13003s/["\\]/\\&/g; s/^/"/; s/$/"/ 13004p 13005b 13006:more2 13007s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13008p 13009g 13010s/.\{148\}// 13011t delim 13012' <conf$$subs.awk | sed ' 13013/^[^""]/{ 13014 N 13015 s/\n// 13016} 13017' >>$CONFIG_STATUS || ac_write_fail=1 13018rm -f conf$$subs.awk 13019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13020_ACAWK 13021cat >>"\$tmp/subs1.awk" <<_ACAWK && 13022 for (key in S) S_is_set[key] = 1 13023 FS = "" 13024 13025} 13026{ 13027 line = $ 0 13028 nfields = split(line, field, "@") 13029 substed = 0 13030 len = length(field[1]) 13031 for (i = 2; i < nfields; i++) { 13032 key = field[i] 13033 keylen = length(key) 13034 if (S_is_set[key]) { 13035 value = S[key] 13036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13037 len += length(value) + length(field[++i]) 13038 substed = 1 13039 } else 13040 len += 1 + keylen 13041 } 13042 13043 print line 13044} 13045 13046_ACAWK 13047_ACEOF 13048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13049if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13051else 13052 cat 13053fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13054 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 13055$as_echo "$as_me: error: could not setup config files machinery" >&2;} 13056 { (exit 1); exit 1; }; } 13057_ACEOF 13058 13059# VPATH may cause trouble with some makes, so we remove $(srcdir), 13060# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13061# trailing colons and then remove the whole line if VPATH becomes empty 13062# (actually we leave an empty line to preserve line numbers). 13063if test "x$srcdir" = x.; then 13064 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13065s/:*\$(srcdir):*/:/ 13066s/:*\${srcdir}:*/:/ 13067s/:*@srcdir@:*/:/ 13068s/^\([^=]*=[ ]*\):*/\1/ 13069s/:*$// 13070s/^[^=]*=[ ]*$// 13071}' 13072fi 13073 13074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13075fi # test -n "$CONFIG_FILES" 13076 13077# Set up the scripts for CONFIG_HEADERS section. 13078# No need to generate them if there are no CONFIG_HEADERS. 13079# This happens for instance with `./config.status Makefile'. 13080if test -n "$CONFIG_HEADERS"; then 13081cat >"$tmp/defines.awk" <<\_ACAWK || 13082BEGIN { 13083_ACEOF 13084 13085# Transform confdefs.h into an awk script `defines.awk', embedded as 13086# here-document in config.status, that substitutes the proper values into 13087# config.h.in to produce config.h. 13088 13089# Create a delimiter string that does not exist in confdefs.h, to ease 13090# handling of long lines. 13091ac_delim='%!_!# ' 13092for ac_last_try in false false :; do 13093 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13094 if test -z "$ac_t"; then 13095 break 13096 elif $ac_last_try; then 13097 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 13098$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 13099 { (exit 1); exit 1; }; } 13100 else 13101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13102 fi 13103done 13104 13105# For the awk script, D is an array of macro values keyed by name, 13106# likewise P contains macro parameters if any. Preserve backslash 13107# newline sequences. 13108 13109ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13110sed -n ' 13111s/.\{148\}/&'"$ac_delim"'/g 13112t rset 13113:rset 13114s/^[ ]*#[ ]*define[ ][ ]*/ / 13115t def 13116d 13117:def 13118s/\\$// 13119t bsnl 13120s/["\\]/\\&/g 13121s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13122D["\1"]=" \3"/p 13123s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13124d 13125:bsnl 13126s/["\\]/\\&/g 13127s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13128D["\1"]=" \3\\\\\\n"\\/p 13129t cont 13130s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13131t cont 13132d 13133:cont 13134n 13135s/.\{148\}/&'"$ac_delim"'/g 13136t clear 13137:clear 13138s/\\$// 13139t bsnlc 13140s/["\\]/\\&/g; s/^/"/; s/$/"/p 13141d 13142:bsnlc 13143s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13144b cont 13145' <confdefs.h | sed ' 13146s/'"$ac_delim"'/"\\\ 13147"/g' >>$CONFIG_STATUS || ac_write_fail=1 13148 13149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13150 for (key in D) D_is_set[key] = 1 13151 FS = "" 13152} 13153/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13154 line = \$ 0 13155 split(line, arg, " ") 13156 if (arg[1] == "#") { 13157 defundef = arg[2] 13158 mac1 = arg[3] 13159 } else { 13160 defundef = substr(arg[1], 2) 13161 mac1 = arg[2] 13162 } 13163 split(mac1, mac2, "(") #) 13164 macro = mac2[1] 13165 prefix = substr(line, 1, index(line, defundef) - 1) 13166 if (D_is_set[macro]) { 13167 # Preserve the white space surrounding the "#". 13168 print prefix "define", macro P[macro] D[macro] 13169 next 13170 } else { 13171 # Replace #undef with comments. This is necessary, for example, 13172 # in the case of _POSIX_SOURCE, which is predefined and required 13173 # on some systems where configure will not decide to define it. 13174 if (defundef == "undef") { 13175 print "/*", prefix defundef, macro, "*/" 13176 next 13177 } 13178 } 13179} 13180{ print } 13181_ACAWK 13182_ACEOF 13183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13184 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 13185$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 13186 { (exit 1); exit 1; }; } 13187fi # test -n "$CONFIG_HEADERS" 13188 13189 13190eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13191shift 13192for ac_tag 13193do 13194 case $ac_tag in 13195 :[FHLC]) ac_mode=$ac_tag; continue;; 13196 esac 13197 case $ac_mode$ac_tag in 13198 :[FHL]*:*);; 13199 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 13200$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 13201 { (exit 1); exit 1; }; };; 13202 :[FH]-) ac_tag=-:-;; 13203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13204 esac 13205 ac_save_IFS=$IFS 13206 IFS=: 13207 set x $ac_tag 13208 IFS=$ac_save_IFS 13209 shift 13210 ac_file=$1 13211 shift 13212 13213 case $ac_mode in 13214 :L) ac_source=$1;; 13215 :[FH]) 13216 ac_file_inputs= 13217 for ac_f 13218 do 13219 case $ac_f in 13220 -) ac_f="$tmp/stdin";; 13221 *) # Look for the file first in the build tree, then in the source tree 13222 # (if the path is not absolute). The absolute path cannot be DOS-style, 13223 # because $ac_f cannot contain `:'. 13224 test -f "$ac_f" || 13225 case $ac_f in 13226 [\\/$]*) false;; 13227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13228 esac || 13229 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13230$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13231 { (exit 1); exit 1; }; };; 13232 esac 13233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13234 ac_file_inputs="$ac_file_inputs '$ac_f'" 13235 done 13236 13237 # Let's still pretend it is `configure' which instantiates (i.e., don't 13238 # use $as_me), people would be surprised to read: 13239 # /* config.h. Generated by config.status. */ 13240 configure_input='Generated from '` 13241 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13242 `' by configure.' 13243 if test x"$ac_file" != x-; then 13244 configure_input="$ac_file. $configure_input" 13245 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 13246$as_echo "$as_me: creating $ac_file" >&6;} 13247 fi 13248 # Neutralize special characters interpreted by sed in replacement strings. 13249 case $configure_input in #( 13250 *\&* | *\|* | *\\* ) 13251 ac_sed_conf_input=`$as_echo "$configure_input" | 13252 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13253 *) ac_sed_conf_input=$configure_input;; 13254 esac 13255 13256 case $ac_tag in 13257 *:-:* | *:-) cat >"$tmp/stdin" \ 13258 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13259$as_echo "$as_me: error: could not create $ac_file" >&2;} 13260 { (exit 1); exit 1; }; } ;; 13261 esac 13262 ;; 13263 esac 13264 13265 ac_dir=`$as_dirname -- "$ac_file" || 13266$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13267 X"$ac_file" : 'X\(//\)[^/]' \| \ 13268 X"$ac_file" : 'X\(//\)$' \| \ 13269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13270$as_echo X"$ac_file" | 13271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13272 s//\1/ 13273 q 13274 } 13275 /^X\(\/\/\)[^/].*/{ 13276 s//\1/ 13277 q 13278 } 13279 /^X\(\/\/\)$/{ 13280 s//\1/ 13281 q 13282 } 13283 /^X\(\/\).*/{ 13284 s//\1/ 13285 q 13286 } 13287 s/.*/./; q'` 13288 { as_dir="$ac_dir" 13289 case $as_dir in #( 13290 -*) as_dir=./$as_dir;; 13291 esac 13292 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13293 as_dirs= 13294 while :; do 13295 case $as_dir in #( 13296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13297 *) as_qdir=$as_dir;; 13298 esac 13299 as_dirs="'$as_qdir' $as_dirs" 13300 as_dir=`$as_dirname -- "$as_dir" || 13301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13302 X"$as_dir" : 'X\(//\)[^/]' \| \ 13303 X"$as_dir" : 'X\(//\)$' \| \ 13304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13305$as_echo X"$as_dir" | 13306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13307 s//\1/ 13308 q 13309 } 13310 /^X\(\/\/\)[^/].*/{ 13311 s//\1/ 13312 q 13313 } 13314 /^X\(\/\/\)$/{ 13315 s//\1/ 13316 q 13317 } 13318 /^X\(\/\).*/{ 13319 s//\1/ 13320 q 13321 } 13322 s/.*/./; q'` 13323 test -d "$as_dir" && break 13324 done 13325 test -z "$as_dirs" || eval "mkdir $as_dirs" 13326 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13327$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13328 { (exit 1); exit 1; }; }; } 13329 ac_builddir=. 13330 13331case "$ac_dir" in 13332.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13333*) 13334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13335 # A ".." for each directory in $ac_dir_suffix. 13336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13337 case $ac_top_builddir_sub in 13338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13340 esac ;; 13341esac 13342ac_abs_top_builddir=$ac_pwd 13343ac_abs_builddir=$ac_pwd$ac_dir_suffix 13344# for backward compatibility: 13345ac_top_builddir=$ac_top_build_prefix 13346 13347case $srcdir in 13348 .) # We are building in place. 13349 ac_srcdir=. 13350 ac_top_srcdir=$ac_top_builddir_sub 13351 ac_abs_top_srcdir=$ac_pwd ;; 13352 [\\/]* | ?:[\\/]* ) # Absolute name. 13353 ac_srcdir=$srcdir$ac_dir_suffix; 13354 ac_top_srcdir=$srcdir 13355 ac_abs_top_srcdir=$srcdir ;; 13356 *) # Relative name. 13357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13358 ac_top_srcdir=$ac_top_build_prefix$srcdir 13359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13360esac 13361ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13362 13363 13364 case $ac_mode in 13365 :F) 13366 # 13367 # CONFIG_FILE 13368 # 13369 13370 case $INSTALL in 13371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13373 esac 13374 ac_MKDIR_P=$MKDIR_P 13375 case $MKDIR_P in 13376 [\\/$]* | ?:[\\/]* ) ;; 13377 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13378 esac 13379_ACEOF 13380 13381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13382# If the template does not know about datarootdir, expand it. 13383# FIXME: This hack should be removed a few years after 2.60. 13384ac_datarootdir_hack=; ac_datarootdir_seen= 13385 13386ac_sed_dataroot=' 13387/datarootdir/ { 13388 p 13389 q 13390} 13391/@datadir@/p 13392/@docdir@/p 13393/@infodir@/p 13394/@localedir@/p 13395/@mandir@/p 13396' 13397case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13398*datarootdir*) ac_datarootdir_seen=yes;; 13399*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13400 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13401$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13402_ACEOF 13403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13404 ac_datarootdir_hack=' 13405 s&@datadir@&$datadir&g 13406 s&@docdir@&$docdir&g 13407 s&@infodir@&$infodir&g 13408 s&@localedir@&$localedir&g 13409 s&@mandir@&$mandir&g 13410 s&\\\${datarootdir}&$datarootdir&g' ;; 13411esac 13412_ACEOF 13413 13414# Neutralize VPATH when `$srcdir' = `.'. 13415# Shell code in configure.ac might set extrasub. 13416# FIXME: do we really want to maintain this feature? 13417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13418ac_sed_extra="$ac_vpsub 13419$extrasub 13420_ACEOF 13421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13422:t 13423/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13424s|@configure_input@|$ac_sed_conf_input|;t t 13425s&@top_builddir@&$ac_top_builddir_sub&;t t 13426s&@top_build_prefix@&$ac_top_build_prefix&;t t 13427s&@srcdir@&$ac_srcdir&;t t 13428s&@abs_srcdir@&$ac_abs_srcdir&;t t 13429s&@top_srcdir@&$ac_top_srcdir&;t t 13430s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13431s&@builddir@&$ac_builddir&;t t 13432s&@abs_builddir@&$ac_abs_builddir&;t t 13433s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13434s&@INSTALL@&$ac_INSTALL&;t t 13435s&@MKDIR_P@&$ac_MKDIR_P&;t t 13436$ac_datarootdir_hack 13437" 13438eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13439 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13440$as_echo "$as_me: error: could not create $ac_file" >&2;} 13441 { (exit 1); exit 1; }; } 13442 13443test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13446 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13447which seems to be undefined. Please make sure it is defined." >&5 13448$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13449which seems to be undefined. Please make sure it is defined." >&2;} 13450 13451 rm -f "$tmp/stdin" 13452 case $ac_file in 13453 -) cat "$tmp/out" && rm -f "$tmp/out";; 13454 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13455 esac \ 13456 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13457$as_echo "$as_me: error: could not create $ac_file" >&2;} 13458 { (exit 1); exit 1; }; } 13459 ;; 13460 :H) 13461 # 13462 # CONFIG_HEADER 13463 # 13464 if test x"$ac_file" != x-; then 13465 { 13466 $as_echo "/* $configure_input */" \ 13467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13468 } >"$tmp/config.h" \ 13469 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13470$as_echo "$as_me: error: could not create $ac_file" >&2;} 13471 { (exit 1); exit 1; }; } 13472 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13473 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13474$as_echo "$as_me: $ac_file is unchanged" >&6;} 13475 else 13476 rm -f "$ac_file" 13477 mv "$tmp/config.h" "$ac_file" \ 13478 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 13479$as_echo "$as_me: error: could not create $ac_file" >&2;} 13480 { (exit 1); exit 1; }; } 13481 fi 13482 else 13483 $as_echo "/* $configure_input */" \ 13484 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13485 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 13486$as_echo "$as_me: error: could not create -" >&2;} 13487 { (exit 1); exit 1; }; } 13488 fi 13489# Compute "$ac_file"'s index in $config_headers. 13490_am_arg="$ac_file" 13491_am_stamp_count=1 13492for _am_header in $config_headers :; do 13493 case $_am_header in 13494 $_am_arg | $_am_arg:* ) 13495 break ;; 13496 * ) 13497 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13498 esac 13499done 13500echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13501$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13502 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13503 X"$_am_arg" : 'X\(//\)$' \| \ 13504 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13505$as_echo X"$_am_arg" | 13506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13507 s//\1/ 13508 q 13509 } 13510 /^X\(\/\/\)[^/].*/{ 13511 s//\1/ 13512 q 13513 } 13514 /^X\(\/\/\)$/{ 13515 s//\1/ 13516 q 13517 } 13518 /^X\(\/\).*/{ 13519 s//\1/ 13520 q 13521 } 13522 s/.*/./; q'`/stamp-h$_am_stamp_count 13523 ;; 13524 13525 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 13526$as_echo "$as_me: executing $ac_file commands" >&6;} 13527 ;; 13528 esac 13529 13530 13531 case $ac_file$ac_mode in 13532 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13533 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13534 # are listed without --file. Let's play safe and only enable the eval 13535 # if we detect the quoting. 13536 case $CONFIG_FILES in 13537 *\'*) eval set x "$CONFIG_FILES" ;; 13538 *) set x $CONFIG_FILES ;; 13539 esac 13540 shift 13541 for mf 13542 do 13543 # Strip MF so we end up with the name of the file. 13544 mf=`echo "$mf" | sed -e 's/:.*$//'` 13545 # Check whether this is an Automake generated Makefile or not. 13546 # We used to match only the files named `Makefile.in', but 13547 # some people rename them; so instead we look at the file content. 13548 # Grep'ing the first line is not enough: some people post-process 13549 # each Makefile.in and add a new line on top of each file to say so. 13550 # Grep'ing the whole file is not good either: AIX grep has a line 13551 # limit of 2048, but all sed's we know have understand at least 4000. 13552 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13553 dirpart=`$as_dirname -- "$mf" || 13554$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13555 X"$mf" : 'X\(//\)[^/]' \| \ 13556 X"$mf" : 'X\(//\)$' \| \ 13557 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13558$as_echo X"$mf" | 13559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13560 s//\1/ 13561 q 13562 } 13563 /^X\(\/\/\)[^/].*/{ 13564 s//\1/ 13565 q 13566 } 13567 /^X\(\/\/\)$/{ 13568 s//\1/ 13569 q 13570 } 13571 /^X\(\/\).*/{ 13572 s//\1/ 13573 q 13574 } 13575 s/.*/./; q'` 13576 else 13577 continue 13578 fi 13579 # Extract the definition of DEPDIR, am__include, and am__quote 13580 # from the Makefile without running `make'. 13581 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13582 test -z "$DEPDIR" && continue 13583 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13584 test -z "am__include" && continue 13585 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13586 # When using ansi2knr, U may be empty or an underscore; expand it 13587 U=`sed -n 's/^U = //p' < "$mf"` 13588 # Find all dependency output files, they are included files with 13589 # $(DEPDIR) in their names. We invoke sed twice because it is the 13590 # simplest approach to changing $(DEPDIR) to its actual value in the 13591 # expansion. 13592 for file in `sed -n " 13593 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13594 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13595 # Make sure the directory exists. 13596 test -f "$dirpart/$file" && continue 13597 fdir=`$as_dirname -- "$file" || 13598$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13599 X"$file" : 'X\(//\)[^/]' \| \ 13600 X"$file" : 'X\(//\)$' \| \ 13601 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13602$as_echo X"$file" | 13603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13604 s//\1/ 13605 q 13606 } 13607 /^X\(\/\/\)[^/].*/{ 13608 s//\1/ 13609 q 13610 } 13611 /^X\(\/\/\)$/{ 13612 s//\1/ 13613 q 13614 } 13615 /^X\(\/\).*/{ 13616 s//\1/ 13617 q 13618 } 13619 s/.*/./; q'` 13620 { as_dir=$dirpart/$fdir 13621 case $as_dir in #( 13622 -*) as_dir=./$as_dir;; 13623 esac 13624 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13625 as_dirs= 13626 while :; do 13627 case $as_dir in #( 13628 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13629 *) as_qdir=$as_dir;; 13630 esac 13631 as_dirs="'$as_qdir' $as_dirs" 13632 as_dir=`$as_dirname -- "$as_dir" || 13633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13634 X"$as_dir" : 'X\(//\)[^/]' \| \ 13635 X"$as_dir" : 'X\(//\)$' \| \ 13636 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13637$as_echo X"$as_dir" | 13638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13639 s//\1/ 13640 q 13641 } 13642 /^X\(\/\/\)[^/].*/{ 13643 s//\1/ 13644 q 13645 } 13646 /^X\(\/\/\)$/{ 13647 s//\1/ 13648 q 13649 } 13650 /^X\(\/\).*/{ 13651 s//\1/ 13652 q 13653 } 13654 s/.*/./; q'` 13655 test -d "$as_dir" && break 13656 done 13657 test -z "$as_dirs" || eval "mkdir $as_dirs" 13658 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13659$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 13660 { (exit 1); exit 1; }; }; } 13661 # echo "creating $dirpart/$file" 13662 echo '# dummy' > "$dirpart/$file" 13663 done 13664 done 13665} 13666 ;; 13667 "libtool":C) 13668 13669 # See if we are running on zsh, and set the options which allow our 13670 # commands through without removal of \ escapes. 13671 if test -n "${ZSH_VERSION+set}" ; then 13672 setopt NO_GLOB_SUBST 13673 fi 13674 13675 cfgfile="${ofile}T" 13676 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13677 $RM "$cfgfile" 13678 13679 cat <<_LT_EOF >> "$cfgfile" 13680#! $SHELL 13681 13682# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13683# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13685# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13686# 13687# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13688# 2006, 2007, 2008 Free Software Foundation, Inc. 13689# Written by Gordon Matzigkeit, 1996 13690# 13691# This file is part of GNU Libtool. 13692# 13693# GNU Libtool is free software; you can redistribute it and/or 13694# modify it under the terms of the GNU General Public License as 13695# published by the Free Software Foundation; either version 2 of 13696# the License, or (at your option) any later version. 13697# 13698# As a special exception to the GNU General Public License, 13699# if you distribute this file as part of a program or library that 13700# is built using GNU Libtool, you may include this file under the 13701# same distribution terms that you use for the rest of that program. 13702# 13703# GNU Libtool is distributed in the hope that it will be useful, 13704# but WITHOUT ANY WARRANTY; without even the implied warranty of 13705# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13706# GNU General Public License for more details. 13707# 13708# You should have received a copy of the GNU General Public License 13709# along with GNU Libtool; see the file COPYING. If not, a copy 13710# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13711# obtained by writing to the Free Software Foundation, Inc., 13712# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13713 13714 13715# The names of the tagged configurations supported by this script. 13716available_tags="" 13717 13718# ### BEGIN LIBTOOL CONFIG 13719 13720# Which release of libtool.m4 was used? 13721macro_version=$macro_version 13722macro_revision=$macro_revision 13723 13724# Whether or not to build shared libraries. 13725build_libtool_libs=$enable_shared 13726 13727# Whether or not to build static libraries. 13728build_old_libs=$enable_static 13729 13730# What type of objects to build. 13731pic_mode=$pic_mode 13732 13733# Whether or not to optimize for fast installation. 13734fast_install=$enable_fast_install 13735 13736# The host system. 13737host_alias=$host_alias 13738host=$host 13739host_os=$host_os 13740 13741# The build system. 13742build_alias=$build_alias 13743build=$build 13744build_os=$build_os 13745 13746# A sed program that does not truncate output. 13747SED=$lt_SED 13748 13749# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13750Xsed="\$SED -e 1s/^X//" 13751 13752# A grep program that handles long lines. 13753GREP=$lt_GREP 13754 13755# An ERE matcher. 13756EGREP=$lt_EGREP 13757 13758# A literal string matcher. 13759FGREP=$lt_FGREP 13760 13761# A BSD- or MS-compatible name lister. 13762NM=$lt_NM 13763 13764# Whether we need soft or hard links. 13765LN_S=$lt_LN_S 13766 13767# What is the maximum length of a command? 13768max_cmd_len=$max_cmd_len 13769 13770# Object file suffix (normally "o"). 13771objext=$ac_objext 13772 13773# Executable file suffix (normally ""). 13774exeext=$exeext 13775 13776# whether the shell understands "unset". 13777lt_unset=$lt_unset 13778 13779# turn spaces into newlines. 13780SP2NL=$lt_lt_SP2NL 13781 13782# turn newlines into spaces. 13783NL2SP=$lt_lt_NL2SP 13784 13785# How to create reloadable object files. 13786reload_flag=$lt_reload_flag 13787reload_cmds=$lt_reload_cmds 13788 13789# An object symbol dumper. 13790OBJDUMP=$lt_OBJDUMP 13791 13792# Method to check whether dependent libraries are shared objects. 13793deplibs_check_method=$lt_deplibs_check_method 13794 13795# Command to use when deplibs_check_method == "file_magic". 13796file_magic_cmd=$lt_file_magic_cmd 13797 13798# The archiver. 13799AR=$lt_AR 13800AR_FLAGS=$lt_AR_FLAGS 13801 13802# A symbol stripping program. 13803STRIP=$lt_STRIP 13804 13805# Commands used to install an old-style archive. 13806RANLIB=$lt_RANLIB 13807old_postinstall_cmds=$lt_old_postinstall_cmds 13808old_postuninstall_cmds=$lt_old_postuninstall_cmds 13809 13810# A C compiler. 13811LTCC=$lt_CC 13812 13813# LTCC compiler flags. 13814LTCFLAGS=$lt_CFLAGS 13815 13816# Take the output of nm and produce a listing of raw symbols and C names. 13817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13818 13819# Transform the output of nm in a proper C declaration. 13820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13821 13822# Transform the output of nm in a C name address pair. 13823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13824 13825# Transform the output of nm in a C name address pair when lib prefix is needed. 13826global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13827 13828# The name of the directory that contains temporary libtool files. 13829objdir=$objdir 13830 13831# Shell to use when invoking shell scripts. 13832SHELL=$lt_SHELL 13833 13834# An echo program that does not interpret backslashes. 13835ECHO=$lt_ECHO 13836 13837# Used to examine libraries when file_magic_cmd begins with "file". 13838MAGIC_CMD=$MAGIC_CMD 13839 13840# Must we lock files when doing compilation? 13841need_locks=$lt_need_locks 13842 13843# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13844DSYMUTIL=$lt_DSYMUTIL 13845 13846# Tool to change global to local symbols on Mac OS X. 13847NMEDIT=$lt_NMEDIT 13848 13849# Tool to manipulate fat objects and archives on Mac OS X. 13850LIPO=$lt_LIPO 13851 13852# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13853OTOOL=$lt_OTOOL 13854 13855# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13856OTOOL64=$lt_OTOOL64 13857 13858# Old archive suffix (normally "a"). 13859libext=$libext 13860 13861# Shared library suffix (normally ".so"). 13862shrext_cmds=$lt_shrext_cmds 13863 13864# The commands to extract the exported symbol list from a shared archive. 13865extract_expsyms_cmds=$lt_extract_expsyms_cmds 13866 13867# Variables whose values should be saved in libtool wrapper scripts and 13868# restored at link time. 13869variables_saved_for_relink=$lt_variables_saved_for_relink 13870 13871# Do we need the "lib" prefix for modules? 13872need_lib_prefix=$need_lib_prefix 13873 13874# Do we need a version for libraries? 13875need_version=$need_version 13876 13877# Library versioning type. 13878version_type=$version_type 13879 13880# Shared library runtime path variable. 13881runpath_var=$runpath_var 13882 13883# Shared library path variable. 13884shlibpath_var=$shlibpath_var 13885 13886# Is shlibpath searched before the hard-coded library search path? 13887shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13888 13889# Format of library name prefix. 13890libname_spec=$lt_libname_spec 13891 13892# List of archive names. First name is the real one, the rest are links. 13893# The last name is the one that the linker finds with -lNAME 13894library_names_spec=$lt_library_names_spec 13895 13896# The coded name of the library, if different from the real name. 13897soname_spec=$lt_soname_spec 13898 13899# Command to use after installation of a shared archive. 13900postinstall_cmds=$lt_postinstall_cmds 13901 13902# Command to use after uninstallation of a shared archive. 13903postuninstall_cmds=$lt_postuninstall_cmds 13904 13905# Commands used to finish a libtool library installation in a directory. 13906finish_cmds=$lt_finish_cmds 13907 13908# As "finish_cmds", except a single script fragment to be evaled but 13909# not shown. 13910finish_eval=$lt_finish_eval 13911 13912# Whether we should hardcode library paths into libraries. 13913hardcode_into_libs=$hardcode_into_libs 13914 13915# Compile-time system search path for libraries. 13916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13917 13918# Run-time system search path for libraries. 13919sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13920 13921# Whether dlopen is supported. 13922dlopen_support=$enable_dlopen 13923 13924# Whether dlopen of programs is supported. 13925dlopen_self=$enable_dlopen_self 13926 13927# Whether dlopen of statically linked programs is supported. 13928dlopen_self_static=$enable_dlopen_self_static 13929 13930# Commands to strip libraries. 13931old_striplib=$lt_old_striplib 13932striplib=$lt_striplib 13933 13934 13935# The linker used to build libraries. 13936LD=$lt_LD 13937 13938# Commands used to build an old-style archive. 13939old_archive_cmds=$lt_old_archive_cmds 13940 13941# A language specific compiler. 13942CC=$lt_compiler 13943 13944# Is the compiler the GNU compiler? 13945with_gcc=$GCC 13946 13947# Compiler flag to turn off builtin functions. 13948no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13949 13950# How to pass a linker flag through the compiler. 13951wl=$lt_lt_prog_compiler_wl 13952 13953# Additional compiler flags for building library objects. 13954pic_flag=$lt_lt_prog_compiler_pic 13955 13956# Compiler flag to prevent dynamic linking. 13957link_static_flag=$lt_lt_prog_compiler_static 13958 13959# Does compiler simultaneously support -c and -o options? 13960compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13961 13962# Whether or not to add -lc for building shared libraries. 13963build_libtool_need_lc=$archive_cmds_need_lc 13964 13965# Whether or not to disallow shared libs when runtime libs are static. 13966allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13967 13968# Compiler flag to allow reflexive dlopens. 13969export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13970 13971# Compiler flag to generate shared objects directly from archives. 13972whole_archive_flag_spec=$lt_whole_archive_flag_spec 13973 13974# Whether the compiler copes with passing no objects directly. 13975compiler_needs_object=$lt_compiler_needs_object 13976 13977# Create an old-style archive from a shared archive. 13978old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13979 13980# Create a temporary old-style archive to link instead of a shared archive. 13981old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13982 13983# Commands used to build a shared archive. 13984archive_cmds=$lt_archive_cmds 13985archive_expsym_cmds=$lt_archive_expsym_cmds 13986 13987# Commands used to build a loadable module if different from building 13988# a shared archive. 13989module_cmds=$lt_module_cmds 13990module_expsym_cmds=$lt_module_expsym_cmds 13991 13992# Whether we are building with GNU ld or not. 13993with_gnu_ld=$lt_with_gnu_ld 13994 13995# Flag that allows shared libraries with undefined symbols to be built. 13996allow_undefined_flag=$lt_allow_undefined_flag 13997 13998# Flag that enforces no undefined symbols. 13999no_undefined_flag=$lt_no_undefined_flag 14000 14001# Flag to hardcode \$libdir into a binary during linking. 14002# This must work even if \$libdir does not exist 14003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14004 14005# If ld is used when linking, flag to hardcode \$libdir into a binary 14006# during linking. This must work even if \$libdir does not exist. 14007hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14008 14009# Whether we need a single "-rpath" flag with a separated argument. 14010hardcode_libdir_separator=$lt_hardcode_libdir_separator 14011 14012# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14013# DIR into the resulting binary. 14014hardcode_direct=$hardcode_direct 14015 14016# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14017# DIR into the resulting binary and the resulting library dependency is 14018# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14019# library is relocated. 14020hardcode_direct_absolute=$hardcode_direct_absolute 14021 14022# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14023# into the resulting binary. 14024hardcode_minus_L=$hardcode_minus_L 14025 14026# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14027# into the resulting binary. 14028hardcode_shlibpath_var=$hardcode_shlibpath_var 14029 14030# Set to "yes" if building a shared library automatically hardcodes DIR 14031# into the library and all subsequent libraries and executables linked 14032# against it. 14033hardcode_automatic=$hardcode_automatic 14034 14035# Set to yes if linker adds runtime paths of dependent libraries 14036# to runtime path list. 14037inherit_rpath=$inherit_rpath 14038 14039# Whether libtool must link a program against all its dependency libraries. 14040link_all_deplibs=$link_all_deplibs 14041 14042# Fix the shell variable \$srcfile for the compiler. 14043fix_srcfile_path=$lt_fix_srcfile_path 14044 14045# Set to "yes" if exported symbols are required. 14046always_export_symbols=$always_export_symbols 14047 14048# The commands to list exported symbols. 14049export_symbols_cmds=$lt_export_symbols_cmds 14050 14051# Symbols that should not be listed in the preloaded symbols. 14052exclude_expsyms=$lt_exclude_expsyms 14053 14054# Symbols that must always be exported. 14055include_expsyms=$lt_include_expsyms 14056 14057# Commands necessary for linking programs (against libraries) with templates. 14058prelink_cmds=$lt_prelink_cmds 14059 14060# Specify filename containing input files. 14061file_list_spec=$lt_file_list_spec 14062 14063# How to hardcode a shared library path into an executable. 14064hardcode_action=$hardcode_action 14065 14066# ### END LIBTOOL CONFIG 14067 14068_LT_EOF 14069 14070 case $host_os in 14071 aix3*) 14072 cat <<\_LT_EOF >> "$cfgfile" 14073# AIX sometimes has problems with the GCC collect2 program. For some 14074# reason, if we set the COLLECT_NAMES environment variable, the problems 14075# vanish in a puff of smoke. 14076if test "X${COLLECT_NAMES+set}" != Xset; then 14077 COLLECT_NAMES= 14078 export COLLECT_NAMES 14079fi 14080_LT_EOF 14081 ;; 14082 esac 14083 14084 14085ltmain="$ac_aux_dir/ltmain.sh" 14086 14087 14088 # We use sed instead of cat because bash on DJGPP gets confused if 14089 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14090 # text mode, it properly converts lines to CR/LF. This bash problem 14091 # is reportedly fixed, but why not run on old versions too? 14092 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14093 || (rm -f "$cfgfile"; exit 1) 14094 14095 case $xsi_shell in 14096 yes) 14097 cat << \_LT_EOF >> "$cfgfile" 14098 14099# func_dirname file append nondir_replacement 14100# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14101# otherwise set result to NONDIR_REPLACEMENT. 14102func_dirname () 14103{ 14104 case ${1} in 14105 */*) func_dirname_result="${1%/*}${2}" ;; 14106 * ) func_dirname_result="${3}" ;; 14107 esac 14108} 14109 14110# func_basename file 14111func_basename () 14112{ 14113 func_basename_result="${1##*/}" 14114} 14115 14116# func_dirname_and_basename file append nondir_replacement 14117# perform func_basename and func_dirname in a single function 14118# call: 14119# dirname: Compute the dirname of FILE. If nonempty, 14120# add APPEND to the result, otherwise set result 14121# to NONDIR_REPLACEMENT. 14122# value returned in "$func_dirname_result" 14123# basename: Compute filename of FILE. 14124# value retuned in "$func_basename_result" 14125# Implementation must be kept synchronized with func_dirname 14126# and func_basename. For efficiency, we do not delegate to 14127# those functions but instead duplicate the functionality here. 14128func_dirname_and_basename () 14129{ 14130 case ${1} in 14131 */*) func_dirname_result="${1%/*}${2}" ;; 14132 * ) func_dirname_result="${3}" ;; 14133 esac 14134 func_basename_result="${1##*/}" 14135} 14136 14137# func_stripname prefix suffix name 14138# strip PREFIX and SUFFIX off of NAME. 14139# PREFIX and SUFFIX must not contain globbing or regex special 14140# characters, hashes, percent signs, but SUFFIX may contain a leading 14141# dot (in which case that matches only a dot). 14142func_stripname () 14143{ 14144 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14145 # positional parameters, so assign one to ordinary parameter first. 14146 func_stripname_result=${3} 14147 func_stripname_result=${func_stripname_result#"${1}"} 14148 func_stripname_result=${func_stripname_result%"${2}"} 14149} 14150 14151# func_opt_split 14152func_opt_split () 14153{ 14154 func_opt_split_opt=${1%%=*} 14155 func_opt_split_arg=${1#*=} 14156} 14157 14158# func_lo2o object 14159func_lo2o () 14160{ 14161 case ${1} in 14162 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14163 *) func_lo2o_result=${1} ;; 14164 esac 14165} 14166 14167# func_xform libobj-or-source 14168func_xform () 14169{ 14170 func_xform_result=${1%.*}.lo 14171} 14172 14173# func_arith arithmetic-term... 14174func_arith () 14175{ 14176 func_arith_result=$(( $* )) 14177} 14178 14179# func_len string 14180# STRING may not start with a hyphen. 14181func_len () 14182{ 14183 func_len_result=${#1} 14184} 14185 14186_LT_EOF 14187 ;; 14188 *) # Bourne compatible functions. 14189 cat << \_LT_EOF >> "$cfgfile" 14190 14191# func_dirname file append nondir_replacement 14192# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14193# otherwise set result to NONDIR_REPLACEMENT. 14194func_dirname () 14195{ 14196 # Extract subdirectory from the argument. 14197 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14198 if test "X$func_dirname_result" = "X${1}"; then 14199 func_dirname_result="${3}" 14200 else 14201 func_dirname_result="$func_dirname_result${2}" 14202 fi 14203} 14204 14205# func_basename file 14206func_basename () 14207{ 14208 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14209} 14210 14211 14212# func_stripname prefix suffix name 14213# strip PREFIX and SUFFIX off of NAME. 14214# PREFIX and SUFFIX must not contain globbing or regex special 14215# characters, hashes, percent signs, but SUFFIX may contain a leading 14216# dot (in which case that matches only a dot). 14217# func_strip_suffix prefix name 14218func_stripname () 14219{ 14220 case ${2} in 14221 .*) func_stripname_result=`$ECHO "X${3}" \ 14222 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14223 *) func_stripname_result=`$ECHO "X${3}" \ 14224 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14225 esac 14226} 14227 14228# sed scripts: 14229my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14230my_sed_long_arg='1s/^-[^=]*=//' 14231 14232# func_opt_split 14233func_opt_split () 14234{ 14235 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14236 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14237} 14238 14239# func_lo2o object 14240func_lo2o () 14241{ 14242 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14243} 14244 14245# func_xform libobj-or-source 14246func_xform () 14247{ 14248 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14249} 14250 14251# func_arith arithmetic-term... 14252func_arith () 14253{ 14254 func_arith_result=`expr "$@"` 14255} 14256 14257# func_len string 14258# STRING may not start with a hyphen. 14259func_len () 14260{ 14261 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14262} 14263 14264_LT_EOF 14265esac 14266 14267case $lt_shell_append in 14268 yes) 14269 cat << \_LT_EOF >> "$cfgfile" 14270 14271# func_append var value 14272# Append VALUE to the end of shell variable VAR. 14273func_append () 14274{ 14275 eval "$1+=\$2" 14276} 14277_LT_EOF 14278 ;; 14279 *) 14280 cat << \_LT_EOF >> "$cfgfile" 14281 14282# func_append var value 14283# Append VALUE to the end of shell variable VAR. 14284func_append () 14285{ 14286 eval "$1=\$$1\$2" 14287} 14288 14289_LT_EOF 14290 ;; 14291 esac 14292 14293 14294 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14295 || (rm -f "$cfgfile"; exit 1) 14296 14297 mv -f "$cfgfile" "$ofile" || 14298 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14299 chmod +x "$ofile" 14300 14301 ;; 14302 14303 esac 14304done # for ac_tag 14305 14306 14307{ (exit 0); exit 0; } 14308_ACEOF 14309chmod +x $CONFIG_STATUS 14310ac_clean_files=$ac_clean_files_save 14311 14312test $ac_write_fail = 0 || 14313 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14314$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 14315 { (exit 1); exit 1; }; } 14316 14317 14318# configure is writing to config.log, and then calls config.status. 14319# config.status does its own redirection, appending to config.log. 14320# Unfortunately, on DOS this fails, as config.log is still kept open 14321# by configure, so config.status won't be able to write to it; its 14322# output is simply discarded. So we exec the FD to /dev/null, 14323# effectively closing config.log, so it can be properly (re)opened and 14324# appended to by config.status. When coming back to configure, we 14325# need to make the FD available again. 14326if test "$no_create" != yes; then 14327 ac_cs_success=: 14328 ac_config_status_args= 14329 test "$silent" = yes && 14330 ac_config_status_args="$ac_config_status_args --quiet" 14331 exec 5>/dev/null 14332 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14333 exec 5>>config.log 14334 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14335 # would make configure fail if this is the last instruction. 14336 $ac_cs_success || { (exit 1); exit 1; } 14337fi 14338if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14339 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14340$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14341fi 14342 14343